1 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
5 2000-02-11 Tom Tromey <tromey@cygnus.com>
7 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
8 astore instruction. From Hans Boehm.
10 2000-02-04 Warren Levy <warrenl@cygnus.com>
12 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
13 (BigInteger(String)): New constructor.
14 (not): Rewritten using version from Kawa's BitOps class.
15 (valueOf): New private methods from Kawa's BitOps class.
22 (andNot): Implemented.
23 (clearBit): Implemented.
24 (setBit): Implemented.
25 (bitCount): Implemented.
26 (toByteArray): Implemented.
28 2000-02-11 Tom Tromey <tromey@cygnus.com>
30 * java/io/File.java (nextValue): Now synchronized.
32 2000-02-10 Tom Tromey <tromey@cygnus.com>
34 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
35 * java/io/FileDescriptor.java (EXCL): New static field.
36 * java/io/File.java (tmpdir): New static field.
37 (createTempFile): New method.
38 (nextValue): New method.
39 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
42 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
43 (jboolean): Declare as an attributed int, not a bool.
44 (_Jv_func): Declare differently for C.
46 * gnu/gcj/jni/natNativeThread.cc: New file.
47 * gnu/gcj/jni/NativeThread.java: New file.
48 * java/lang/Thread.java (data): Now a RawData.
49 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
51 * Makefile.in: Rebuilt.
52 * Makefile.am (java/lang/Thread.h): New target.
53 (ordinary_java_source_files): Added NativeThread.java.
54 (nat_source_files): Added natNativeThread.cc.
55 * java/lang/natThread.cc: Include <jni.h>
56 (struct natThread): Added `jni_env' field.
57 (_Jv_GetCurrentJNIEnv): New function.
58 (_Jv_SetCurrentJNIEnv): Likewise.
59 (initialize_native): Initialize jni_env.
61 * jni.cc (ThreadGroupClass): New define.
62 (_Jv_JNI_InvokeFunctions): New structure.
63 (JNI_GetCreatedJavaVMs): New function.
65 (JNI_GetDefaultJavaVMInitArgs): New function.
66 Include NativeThread.h.
67 (NativeThreadClass): New define.
68 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
69 (_Jv_JNI_DestroyJavaVM): New function.
70 (_Jv_JNI_AttachCurrentThread): New function.
71 (_Jv_JNI_DetachCurrentThread): New function.
72 (_Jv_JNI_GetEnv): New function.
73 (JNI_CreateJavaVM): New function.
74 (_Jv_JNI_GetJavaVM): New function.
75 (_Jv_JNIFunctions): Added entry for GetJavaVM.
76 * include/jni.h (JavaVMAttachArgs): New structure.
77 (JNI_EDETACHED): New define.
78 (JNI_EVERSION): Likewise.
79 (JavaVM): Define properly.
80 (struct JNIInvokeInterface): New structure.
81 (class _Jv_JavaVM): New class.
82 (JNI_OnLoad, JNI_OnUnload): Declare.
83 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
84 JNI_GetCreatedJavaVMs): Declare.
85 (JavaVMInitArgs): New typedef.
86 (JavaVMOption): Likewise.
87 (JNI_ERR): New define.
90 2000-02-10 Andrew Haley <aph@cygnus.com>
92 * interpret.cc: Don't include fdlibm.h.
93 Replace #if with #ifdef throughout.
94 Declare extern __ieee754_fmod.
95 (continue1): Remove op_getfield, op_getstatic, op_putfield,
97 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
98 Search class hierarchy for superclass vtable.
100 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
101 off the end of a pointer list.
103 * java/lang/natThread.cc (stop): Don't abort, throw an exception
107 2000-02-09 Tom Tromey <tromey@cygnus.com>
109 * java/lang/natRuntime.cc (_load): Call add_library.
110 (loadLibraryInternal): Likewise.
112 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
113 iconv_close when handle is not NULL. Thanks to Andrew Haley.
114 (Output_iconv::finalize): Likewise.
116 2000-02-08 Tom Tromey <tromey@cygnus.com>
118 * java/util/Properties.java (setProperty): New method.
121 2000-02-07 Tom Tromey <tromey@cygnus.com>
123 * java/lang/Runtime.java (_load): Declare.
124 (load, loadLibrary): Wrote in terms of _load.
125 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
127 (loadLibrary): Likewise.
130 (loadLibrary, load): Removed.
132 * jni.cc (ThrowableClass): New define.
133 (_Jv_JNI_Throw): Check argument.
134 (_Jv_JNI_ThrowNew): Likewise.
135 (wrap_value): Don't wrap object if it is NULL.
136 (_Jv_JNI_DefineClass): Use wrap_value.
137 (_Jv_JNI_FindClass): Likewise.
138 (_Jv_JNI_GetSuperclass): Likewise.
139 (_Jv_JNI_ExceptionOccurred): Likewise.
140 (_Jv_JNI_AllocObject): Likewise.
141 (_Jv_JNI_GetObjectClass): Likewise.
142 (_Jv_JNI_NewString): Likewise.
143 (_Jv_JNI_NewStringUTF): Likewise.
144 (_Jv_JNI_NewObjectArray): Likewise.
145 (_Jv_JNI_GetObjectArrayElement): Likewise.
146 (_Jv_JNI_NewPrimitiveArray): Likewise.
147 (_Jv_JNI_ToReflectedField): Likewise.
148 (_Jv_JNI_ToReflectedMethod): Likewise.
149 (_Jv_JNI_AllocObject): Check argument.
150 (_Jv_JNI_NewObjectV): Likewise.
151 (_Jv_JNI_NewObject): Likewise.
152 (_Jv_JNI_NewObjectA): Likewise.
153 (_Jv_JNI_GetObjectClass): Likewise.
154 (_Jv_JNI_GetField): Likewise.
155 (_Jv_JNI_SetField): Likewise.
157 * interpret.cc (PUSHL): Don't use expression statement.
162 * jni.cc (add_char): Conditional on INTERPRETER.
163 (mangled_name): Likewise.
165 * include/java-interp.h (class _Jv_MethodBase): Conditional on
167 (class _Jv_JNIMethod): Likewise.
169 2000-02-04 Warren Levy <warrenl@cygnus.com>
171 * Makefile.am: Added MPN.java and BigInteger.java.
172 * Makefile.in: Rebuilt.
173 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
175 * java/math/BigInteger.java: New file. Based primarily on
176 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
178 2000-02-04 Tom Tromey <tromey@cygnus.com>
180 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
182 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
183 if the method is native.
184 * resolve.cc (ncode): Don't handle native methods.
185 (_Jv_JNIMethod::ncode): New method.
186 (_Jv_PrepareClass): Handle native methods.
187 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
188 Include AbstractMethodError.h.
189 (add_char): New function.
190 (mangled_name): Likewise.
191 * include/java-interp.h (class _Jv_JNIMethod): New class.
192 (class _Jv_MethodBase): New class.
193 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
194 (_Jv_InterpClass): Changed `interpreted_methods' field to type
197 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
198 * java/lang/natRuntime.cc (libraries_size, libraries_count,
199 libraries): New globals.
200 (add_library): New function.
201 (_Jv_FindSymbolInExecutable): New function.
203 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
206 2000-02-04 Andrew Haley <aph@cygnus.com>
208 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
209 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
210 * java/lang/natThrowable.cc (printRawStackTrace): Rename
211 printStackTrace to printRawStackTrace.
213 2000-02-03 Tom Tromey <tromey@cygnus.com>
215 * java/util/Calendar.java (toString): New method.
216 * java/util/SimpleTimeZone.java (clone): New method.
217 (toString): New method.
218 * java/util/TimeZone.java (clone): New method.
219 * java/text/SimpleDateFormat.java (clone): New method.
220 * java/text/NumberFormat.java (clone): New method.
221 (equals): New method.
222 * java/text/Format.java (clone): New method.
223 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
226 * java/text/DateFormat.java (clone): New method.
227 * java/text/Collator.java (clone): New method.
229 2000-02-03 Tom Tromey <tromey@cygnus.com>
231 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
234 2000-02-01 Tom Tromey <tromey@cygnus.com>
236 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
237 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
238 constructing the closure if the function is native.
239 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
240 a template function, #if'd out, or static.
241 Include <java-interp.h>.
243 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
245 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
247 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
248 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
250 (wrap_value): New function.
251 (_Jv_JNI_CallAnyMethodV): Use it.
252 (_Jv_JNI_CallAnyMethodA): Likewise.
253 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
254 (_Jv_JNI_GetStaticField): Likewise.
256 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
257 (_Jv_JNI_GetStaticField): Likewise.
259 2000-01-31 Tom Tromey <tromey@cygnus.com>
261 * prims.cc (_Jv_MallocUnchecked): New function.
262 (main_init): Call _Jv_JNI_Init.
263 * include/jvm.h (_Jv_MallocUnchecked): Declare.
264 (_Jv_JNI_Init): Declare.
265 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
267 (_Jv_JNI_NewGlobalRef): New function.
268 (_Jv_JNI_DeleteGlobalRef): New function.
269 (_Jv_JNI_DeleteLocalRef): New function.
270 (_Jv_JNI_conversion_call): Initialize and clear local reference
272 (_Jv_JNI_NewLocalRef): New function.
273 (struct _Jv_JNI_LocalFrame): New structure.
274 (_Jv_JNI_PushLocalFrame): New function.
275 (_Jv_JNI_EnsureLocalCapacity): New function.
276 (FRAME_SIZE): New define.
277 (_Jv_JNI_GetStringChars): Mark string, not characters.
278 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
279 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
280 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
282 (_Jv_JNI_DefineClass): Make return value a local ref.
283 (_Jv_JNI_FindClass): Likewise.
284 (_Jv_JNI_GetSuperclass): Likewise.
285 (_Jv_JNI_ExceptionOccurred): Likewise.
286 (_Jv_JNI_AllocObject): Likewise.
287 (_Jv_JNI_GetObjectClass): Likewise.
288 (_Jv_JNI_CallAnyMethodV): Likewise.
289 (_Jv_JNI_NewString): Likewise.
290 (_Jv_JNI_NewStringUTF): Likewise.
291 (_Jv_JNI_NewObjectArray): Likewise.
292 (_Jv_JNI_GetObjectArrayElement): Likewise.
293 (_Jv_JNI_ToReflectedField): Likewise.
294 (_Jv_JNI_ToReflectedMethod): Likewise.
295 (_Jv_JNIFunctions): Updated table for new functions.
296 (_Jv_JNI_Init): New function.
297 (mark_for_gc): Wrote.
298 (unmark_for_gc): Wrote.
299 * include/jni.h (struct JNINativeInterface): Removed name from
300 PopLocalFrame parameter.
301 (class _Jv_JNIEnv): Added `locals' field.
303 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
305 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
308 2000-01-30 Tom Tromey <tromey@cygnus.com>
310 * include/config.h.in: Rebuilt.
311 * acconfig.h (HAVE_ICONV): Define.
312 * configure: Rebuilt.
313 * configure.in: Check for `iconv' function.
314 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
315 no specific encoder exists.
316 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
317 no specific encoder exists.
318 * Makefile.in: Rebuilt.
319 * Makefile.am (convert_source_files): Mention Input_iconv.java and
321 (nat_source_files): Added natIconv.cc.
322 * gnu/gcj/convert/natIconv.cc: New file.
323 * gnu/gcj/convert/Input_iconv.java: New file.
324 * gnu/gcj/convert/Output_iconv.java: New file.
326 2000-01-28 Tom Tromey <tromey@cygnus.com>
328 * Makefile.in: Rebuilt.
329 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
331 2000-01-26 Tom Tromey <tromey@cygnus.com>
333 * gcj/method.h (JvNumMethods): Moved from Class.h.
334 (JvGetFirstMethod): Likewise.
335 * java/lang/Class.h (Object): Updated decl of
336 _Jv_JNI_ToReflectedField.
337 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
338 * Makefile.in: Rebuilt.
339 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
340 argument of _Jv_JNI_ToReflectedField.
341 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
343 (java/lang/reflect/Method.h): Likewise.
344 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
346 (jweak): New typedef.
347 (struct JNINativeInterface): Correctly declare remaining entries.
348 * jni.cc: Include Class.h, ClassLoader.h.
349 (_Jv_JNI_FindClass): New function.
350 (_Jv_JNI_DefineClass): New function.
351 (_Jv_JNI_conversion_call): New function.
352 (_Jv_JNI_FindClass): Use current class loader to find class.
353 (_Jv_JNI_ExceptionCheck): New function.
354 (_Jv_JNI_FromReflectedField): Now static.
355 (MethodClass): New define.
356 (_Jv_JNI_FromReflectedMethod): New function.
357 (_Jv_JNI_ToReflectedMethod): Likewise.
359 (_Jv_JNI_IsAssignableFrom): Renamed.
360 (_Jv_JNI_GetStringRegion): New function.
361 Include StringIndexOutOfBoundsException.h.
362 (_Jv_JNI_GetStringUTFRegion): New function.
363 (_Jv_JNIFunctions): Updated for new functions.
364 (_Jv_JNI_GetPrimitiveArrayCritical): New function
365 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
366 (_Jv_JNI_GetStringCritical): New function.
367 (_Jv_JNI_ReleaseStringCritical): Likewise.
368 (get_throwable): Removed.
369 (GCJ_JV_JNIENV_FRIEND): Removed.
370 (__GCJ_JNI_IMPL__): Define.
373 * resolve.cc (get_ffi_type_from_signature): Handle case where
376 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
378 * interpret.cc (run): Don't call println.
379 Don't include PrintStream.h.
381 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
382 nameIndex. Use "jint" as type for boffset.
383 * java/lang/Class.h (struct _Jv_Method): Made accflags a
385 (Class): Likewise. Also changed type of method_count,
386 vtable_method_count, size_in_bytes, field_count,
387 static_field_count, interface_count.
388 * gcj/array.h (__JArray): Made `length' a const jsize, not an
391 2000-01-21 Tom Tromey <tromey@cygnus.com>
393 * java/lang/reflect/natConstructor.cc (newInstance): Use
395 * include/jvm.h: Declare _Jv_CallAnyMethodA.
396 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
397 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
400 (invoke): Use _Jv_CallAnyMethodA.
402 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
403 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
405 (struct _Jv_Method): Added getNextMethod method.
406 (JvNumMethods): New function.
407 (JvGetFirstMethod): Likewise.
408 * gcj/field.h (JvGetFirstStaticField): New function.
409 (JvNumStaticFields): Likewise.
410 (getNextField): Renamed from getNextInstanceField.
411 (struct _Jv_Field): New method getClass.
412 * jni.cc: Wrote many new functions.
413 * include/jni.h (JNI_TRUE): Define.
414 (JNI_FALSE): Likewise.
415 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
416 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
417 jcharArray, jfloatArray, jdoubleArray): New typedefs.
418 (jfieldID, jmethodID): Likewise.
419 (JNI_COMMIT, JNI_ABORT): New defines.
420 (JNINativeMethod): New struct.
421 (struct JNINativeInterface): Correctly declared more entries.
422 (class _Jv_JNIEnv): Added `ex' member.
423 (JNI_VERSION_1_1): New define.
424 (JNI_VERSION_1_2): Likewise.
426 * boehm.cc (_Jv_MarkObj): Use getNextField, not
427 getNextInstanceField.
429 2000-01-20 Tom Tromey <tromey@cygnus.com>
431 * resolve.cc (StringClass): Removed.
432 * defineclass.cc (StringClass): Removed.
434 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
438 2000-01-19 Tom Tromey <tromey@cygnus.com>
440 * interpret.cc (PC_REGISTER_ASM): Removed.
442 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
445 * All files: Updated copyright to reflect Cygnus purchase.
447 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
449 * configure: Rebuilt.
450 * configure.in: Recognize --disable-interpreter.
452 2000-01-18 Andrew Haley <aph@cygnus.com>
454 * name-finder.cc (lookup): Check for dladdr function.
455 acconfig.h (HAVE_DLADDR): Add.
456 configure.in: Check for HAVE_DLADDR
458 include/config.h.in: Rebuilt.
460 2000-01-17 Andrew Haley <aph@cygnus.com>
462 * prims.cc (_Jv_RunMain): Set the name of this executable.
464 2000-01-17 Tom Tromey <tromey@cygnus.com>
466 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
467 when backtrace can't be computed.
469 * configure: Rebuilt.
470 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
472 * java/lang/Runtime.java (loadLibraryInternal): Declare.
473 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
474 (_Jv_FindClassInCache): Likewise.
475 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
476 (findSystemClass): Try to load class from compiled module.
478 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
479 (loadLibrary): Likewise.
480 (lt_preloaded_symbols): Define.
481 (loadLibraryInternal): New method.
482 * include/config.h.in: Rebuilt.
483 * acconfig.h (USE_LTDL): Added.
484 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
485 (INCLUDES): Added $(INCLTDL).
486 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
487 (libgcj_la_LIBADD): Likewise.
488 * aclocal.m4, configure: Rebuilt.
489 * configure.in: Added libltdl support.
491 2000-01-15 Tom Tromey <tromey@cygnus.com>
493 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
495 2000-01-14 Andrew Haley <aph@cygnus.com>
497 * java/lang/natThrowable.cc: New file.
499 * java/lang/Throwable.java (fillInStackTrace): Make native.
500 (printStackTrace): Call native method to do this.
501 (Throwable): Call fillInStackTrace.
502 (stackTrace): New variable.
504 * include/jvm.h: Add _Jv_ThisExecutable functions.
506 * prims.cc: (_Jv_execName): New variable.
507 (catch_segv): Call fillInStackTrace.
509 (_Jv_ThisExecutable): New functions.
510 (JvRunMain): Set the name of this executable.
512 * Makefile.am: Add java/lang/natThrowable.cc.
514 * Makefile.in: Rebuilt.
516 * acconfig.h: Add HAVE_PROC_SELF_EXE.
518 * configure.in: Force link with __frame_state_for in
519 FORCELIBGCCSPEC. Add new checks for backtrace.
520 * include/config.h.in: Rebuilt.
522 * name-finder.cc: New file.
523 * include/name-finder.h: New file.
525 2000-01-16 Anthony Green <green@cygnus.com>
527 * java/lang/StringBuffer.java (StringBuffer): Don't special case
530 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
532 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
534 2000-01-13 Tom Tromey <tromey@cygnus.com>
536 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
537 not system loader, as initiating loader.
539 2000-01-11 Tom Tromey <tromey@cygnus.com>
541 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
542 HP/UX. From David Scott Urban.
544 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
546 * java/lang/natMath.cc (pow): Cast args to `double', not
549 (IEEEremainder): Likewise.
550 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
551 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
553 2000-01-09 Anthony Green <green@cygnus.com>
555 * java/lang/natString.cc (init): Test for overflow condition
556 during out of bounds check.
557 (getChars): Throw StringIndexOutOfBoundsException, not
558 ArrayIndexOutOfBoundsException.
560 (regionMatches): Obey case option during string comparison.
562 * configure.host (ligcj_interpreter): New variable. Enable
563 interpreter by default on IA-32.
564 * configure.in: Examine libgcj_interpreter.
565 * configure: Rebuilt.
567 2000-01-07 Tom Tromey <tromey@cygnus.com>
569 * mauve-libgcj: Don't disable ClassTest.
571 * java/lang/natClass.cc (getClasses): Wrote.
573 2000-01-06 Tom Tromey <tromey@cygnus.com>
575 * java/lang/natClass.cc (_getConstructors): Correctly check
576 whether method name is the init name.
577 (getMethod): Look at accflags on method in `klass', not `this'.
579 2000-01-05 Tom Tromey <tromey@cygnus.com>
581 * java/lang/natClass.cc (getMethod): Compute offset relative to
582 `klass's methods table, not `this's table.
584 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
585 In unwrapping/widening case, check whether `k' is null, not
586 whether it is primitive. Initialize `num' from `argelts', not
587 `paramelts'. Correct create and pass arguments to ffi_call.
588 Don't let presence of `this' argument affect index used to look in
590 (COPY): Set appropriate element in `values' vector.
592 * java/lang/natClass.cc: Include <gcj/method.h>.
594 * java/lang/Class.h (_getMethods): Correctly declare as private,
597 * java/lang/Class.h (_getMethods): Declare.
598 * java/lang/Class.java (_getMethods): Declare.
599 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
600 (getDeclaredClasses): Always return empty array.
601 (_getMethods): New method.
603 (getDeclaredMethod): Return `rmethod'.
604 (finit_name): New global.
605 (getDeclaredMethods): Check for finit_name.
606 (_getMethods): Likewise.
607 (getMethod): Only return public methods.
609 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
610 jboolean and select correct ffi type on that basis.
611 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
612 Constructor call always has `void' return type.
614 2000-01-04 Tom Tromey <tromey@cygnus.com>
616 * java/lang/Class.h (getSignature): Updated.
617 * java/lang/Class.java (getSignature): Updated.
618 * java/lang/natClass.cc (getSignature): Added `is_constructor'
620 (getConstructor): Ensure constructor is public.
621 (_getConstructors): Check for public-ness of constructor when
622 `declared' is false, not when it is true.
624 2000-01-04 Warren Levy <warrenl@cygnus.com>
626 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
628 (receive): Set the sender's address in the DatagramPacket.
630 2000-01-04 Tom Tromey <tromey@cygnus.com>
632 * java/lang/reflect/natConstructor.cc (newInstance): Pass
633 declaring class as return_type argument to
634 _Jv_CallNonvirtualMethodA.
635 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
636 constructor case, create object and use it as `this' argument.
637 * java/lang/Class.h (_getConstructors): Declare.
638 (_getFields): Declare.
639 * java/lang/Class.java (getConstructors): Wrote.
640 (_getConstructors): New native method.
641 (getDeclaredConstructors): Wrote.
642 (_getFields): Declare new native method.
643 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
645 (getMethod): Work correctly when class is primitive.
646 (getDeclaredMethods): Likewise. Compute offset using `method',
648 (getDeclaredMethod): Likewise.
649 (getConstructor): Wrote.
650 (ConstructorClass): New define.
651 (getDeclaredConstructor): Wrote.
652 (_getConstructors): New method.
653 (_getFields): New method.
656 * Makefile.in: Rebuilt.
657 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
659 * prims.cc: Remove `#pragma implementation'.
660 * gcj/array.h: Remove `#pragma interface'.
662 * prims.cc (_Jv_equaln): New function.
663 * java/lang/Class.java (getSignature): Declare.
664 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
665 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
667 (getSignature): New method.
668 (getDeclaredMethod): Wrote.
670 Include StringBuffer.h.
671 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
672 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
674 (getSignature): Declare.
675 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
676 (_Jv_equaln): Declare.
677 (_Jv_CallNonvirtualMethodA): Declare.
678 * Makefile.in: Rebuilt.
679 * Makefile.am (nat_source_files): Added natConstructor.cc.
680 (java/lang/reflect/Constructor.h): New target.
681 * java/lang/reflect/natConstructor.cc: New file.
682 * java/lang/reflect/Constructor.java (newInstance): Now native.
683 (declaringClass): Renamed from decl_class.
684 (offset): Renamed from index.
685 (getType): New native method.
686 (getModifiers): Now native.
687 (getParameterTypes): Call getType if required.
688 (hashCode): Include hash code from declaring class.
689 (modifiers): Removed.
690 (toString): Call getType if required.
691 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
692 * java/lang/reflect/natMethod.cc (hack_call): New method.
693 Removed `#if 0' around FFI code.
694 Include <gnu/gcj/RawData.h>.
695 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
696 IllegalArgumentException when argument object and class disagree.
697 (_Jv_GetTypesFromSignature): New function.
699 (ObjectClass): New define.
700 (_Jv_CallNonvirtualMethodA): New function.
701 * java/lang/reflect/Method.java (hack_trampoline): New method.
702 (hack_call): New native method.
704 1999-12-21 Per Bothner <per@bothner.com>
706 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
707 offset in new Method.
709 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
711 * java/lang/natObject.cc (notify): Throw message with
712 IllegalMonitorStateException.
715 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
716 (isInterrupted_): New function, which does clear interrupt_flag.
717 (interrupt): Use `isInterrupted_'.
718 * java/lang/natThread.cc (interrupt): Add comment.
719 (join): Set `prev' in joiner loop.
720 Change various calls to `isInterrupted' to use `isInterrupted_'.
721 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
722 on linux. Set result to 0 on an interrupt. Test interrupted status
723 of java Thread object directly.
724 FLAG_INTERRUPTED: removed.
725 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
726 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
727 (_Jv_InitThreads): Don't block SIGINT.
728 (_Jv_ThreadWait): Don't configure SIGINT handler.
730 1999-12-21 Tom Tromey <tromey@cygnus.com>
732 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
734 1999-12-20 Tom Tromey <tromey@cygnus.com>
736 * java/lang/reflect/Modifier.java (STRICT): New constant.
737 (isStrict): New method.
738 (toString): Added `strict'.
740 1999-12-23 Anthony Green <green@cygnus.com>
742 * configure: Rebuilt.
743 * configure.in (LIBDATASTARTSPEC): Force data_start in with
746 1999-12-19 Anthony Green <green@cygnus.com>
748 * libgcjdata.c: New file.
749 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
750 * configure: Rebuilt.
751 * configure.in (LIBDATASTARTSPEC): Force data with a known name
753 * Makefile.in: Rebuilt.
754 * Makefile.am: Build libgcjdata.a.
756 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
757 * configure: Rebuilt.
758 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
761 1999-12-17 Tom Tromey <tromey@cygnus.com>
763 * java/lang/reflect/Method.java (toString): Call getType if
764 required. Partial fix for PR libgcj/111. From Per Bothner.
766 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
768 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
770 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
771 null String constructor parameter.
772 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
773 for exception messages.
774 BooleanClass: declare.
775 (setOption): Use BooleanClass instead of Class.forName() for
777 (bind): Cast 4th parameter of setsockopt to `char *' for
778 compatibility with older Solaris headers.
779 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
780 sprintf calls for exception messages.
781 BooleanClass, IntegerClass: declare.
782 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
785 1999-12-15 Tom Tromey <tromey@cygnus.com>
787 * java/lang/natSystem.cc (init_properties): Don't set user.name or
788 user.home if NO_GETUID defined. Only set user.dir if getcwd
791 * include/config.h.in: Rebuilt.
792 * acconfig.h (NO_GETUID): New define.
793 * configure.in: Rebuilt.
794 * configure.in: Define NO_GETUID in cross case. Check for getcwd
797 1999-12-08 Tom Tromey <tromey@cygnus.com>
799 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
800 where no recursive mutexes exist. Fixes PR libgcj/117.
802 1999-12-05 Anthony Green <green@cygnus.com>
804 * include/jvm.h: Declare many functions with
805 __attribute__((__malloc__)).
806 * gcj/javaprims.h: Ditto.
808 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
810 * THANKS: Giving credit where credit is due.
812 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
814 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
816 * java/lang/natString.cc (equalsIgnoreCase): return false if
817 anotherString is null.
818 * java/lang/Boolean.java (valueOf): return FALSE if argument is
821 1999-11-30 Tom Tromey <tromey@cygnus.com>
823 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
824 mutex to initialize. Initialize `count' if required.
827 1999-11-27 Per Bothner <per@bothner.com>
829 * exception.cc: Remove prototype declarations for malloc and free.
830 These clash with recent versions of glibc, which specifies `throws ()'
831 when __cplusplus is defined. Instead, #include <stdlib.h>.
833 1999-11-24 Tom Tromey <tromey@cygnus.com>
835 * prims.cc (_Jv_NewObjectArray): Use
836 _Jv_GetArrayElementFromElementType.
837 (_Jv_NewPrimArray): Likewise.
838 * java/lang/natObject.cc (clone): Use
839 _Jv_GetArrayElementFromElementType instead of sizeof.
840 * java/lang/natSystem.cc (arraycopy): Use
841 _Jv_GetArrayElementFromElementType.
842 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
845 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
847 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
848 Exception messages. PR java.net/57.
849 (bind): set SO_REUSEADDR before bind.
850 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
851 overruns. PR java.net/57.
853 1999-11-19 Tom Tromey <tromey@cygnus.com>
855 * Makefile.am (DIVIDESPEC): Removed.
856 (EXCEPTIONSPEC): Removed.
858 1999-11-19 Andrew Haley <aph@cygnus.com>
860 * Makefile.am (JCFLAGS): Add -L$(here)
862 * Makefile.in: Rebuild.
864 1999-11-18 Tom Tromey <tromey@cygnus.com>
866 * java/lang/natDouble.cc: Include <config.h>.
868 * include/config.h.in: Rebuilt.
869 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
870 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
872 * configure: Rebuilt.
873 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
874 requested by configure.host. Don't put `-D' option into
875 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
877 * configure: Rebuilt.
878 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
881 1999-11-18 Andrew Haley <aph@cygnus.com>
883 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
884 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
886 * Makefile.in: Rebuild
887 * acconfig.h: remove SJLJ_EXCEPTIONS
888 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
889 Do not AC_DEFINE SJLJ_EXCEPTIONS.
890 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
891 * gcj/Makefile.in, include/Makefile.in: rebuild.
892 * include/config.h.in: remove SJLJ_EXCEPTIONS.
894 1999-11-18 Andrew Haley <aph@cygnus.com>
896 * gij.cc (main): Rename label to prevent conflict.
898 * exception.cc (_Jv_type_matcher): Don't check the table if we're
899 using setjmp/longjmp exceptions: there isn't one.
901 1999-11-17 Andrew Haley <aph@cygnus.com>
903 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
904 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
905 (__sjthrow): Add declaration.
906 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
910 * Makefile.in: Rebuild
911 * acconfig.h: Add SJLJ_EXCEPTIONS
912 * configure.in: Add SJLJ_EXCEPTIONS
913 * configure: Rebuild.
914 * gcj/Makefile.in: Rebuild.
915 * gcj/cni.h: Add support for sjlj-exceptions.
916 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
917 * include/Makefile.in: Rebuild.
918 * include/default-signal.h: Add support for sjlj-exceptions.
920 1999-11-18 Tom Tromey <tromey@cygnus.com>
922 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
924 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
926 (method_cache): Made larger.
928 1999-11-11 Tom Tromey <tromey@cygnus.com>
930 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
931 initializing mutex. Initialize `count' when required.
933 1999-11-07 Anthony Green <green@trip.cygnus.com>
935 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
938 1999-11-05 Tom Tromey <tromey@cygnus.com>
940 * java/lang/natThread.cc (destroy): Removed incorrect comment.
942 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
944 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
945 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
948 1999-11-05 Tom Tromey <tromey@cygnus.com>
950 * java/lang/natThread.cc (stop): Removed argument name.
952 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
953 `private'; now has default access.
954 * Makefile.in: Rebuilt.
955 * Makefile.am (java/lang/ThreadGroup.h): Removed.
957 1999-11-04 Tom Tromey <tromey@cygnus.com>
959 * java/lang/natClass.cc (method_cache_count): Removed.
960 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
961 (_Jv_AddMethodToCache): Don't loop.
963 * configure.in: Removed `qt' threads case.
964 * include/quick-threads.h: Removed.
965 * quick-threads.cc: Removed.
967 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
968 (_Jv_ThreadDestroy): Likewise.
969 * include/no-threads.h (_Jv_ThreadCancel): Removed.
970 (_Jv_ThreadDestroy): Likewise.
971 * include/posix-threads.h (struct _Jv_Thread_t): Removed
973 (_Jv_ThreadCancel): Removed decl.
974 (_Jv_ThreadDestroy): Removed.
975 * posix-threads.cc (_Jv_ThreadCancel): Removed.
976 (throw_cleanup): Removed.
977 (really_start): Don't push or pop cleanup.
978 (_Jv_ThreadInitData): Don't initialize `exception' field.
979 * java/lang/Thread.java (stop): Officially unimplemented.
980 * java/lang/natThread.cc (stop): Officially unimplemented.
982 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
984 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
987 1999-11-02 Tom Tromey <tromey@cygnus.com>
989 * boehm.cc: Don't include boehm-config.h.
991 1999-11-01 Tom Tromey <tromey@cygnus.com>
993 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
994 (sum_blocks): Removed.
995 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
997 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
999 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
1001 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
1002 * java/io/InputStreamReader (InputStreamReader): ditto.
1004 1999-10-22 Tom Tromey <tromey@cygnus.com>
1006 * Makefile.in: Rebuilt.
1007 * Makefile.am (java/lang/ClassLoader.h): New target.
1008 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
1011 * include/java-props.h (_Jv_Compiler_Properties): Changed
1013 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
1014 * include/jvm.h (_Jv_GCSetInitialHeapSize,
1015 _Jv_GCSetMaximumHeapSize): Declare.
1016 (JvRunMain, _Jv_RunMain): Declare.
1017 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
1018 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
1019 (_Jv_GCSetMaximumHeapSize): Likewise.
1020 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
1021 (_Jv_GCSetMaximumHeapSize): Likewise.
1022 * prims.cc (parse_heap_size): New function.
1023 (_Jv_SetInitialHeapSize): Likewise.
1024 (_Jv_SetMaximumHeapSize): Likewise.
1025 (_Jv_Compiler_Properties): New global.
1026 * gij.cc (help): New function.
1027 (version): Likewise.
1028 (heap_size): Likewise.
1029 (heap_max_size): Likewise.
1030 (main): Parse arguments. Set _Jv_Compiler_Properties.
1031 Include <config.h>, <java-props.h>.
1032 (_Jv_Compiler_Properties): Removed.
1034 1999-10-18 Tom Tromey <tromey@cygnus.com>
1036 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
1038 (redirect): New static field.
1039 * java/lang/ClassLoader.java (getSystemClassLoader): Now
1041 (getVMClassLoader0): Removed.
1042 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
1043 (redirect): Removed.
1044 (getSystemClassLoader): Implemented.
1046 1999-10-16 Anthony Green <green@cygnus.com>
1048 * java/lang/ClassLoader.java (getSystemResource): Use
1049 getSystemClassLoader instead of ClassLoader.system.
1050 (getSystemResourceAsStream): Ditto.
1052 * java/lang/natClassLoader.cc (redirect): Make static and
1053 remove #ifdef INTERPRETER so it is always defined.
1054 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
1055 returns a VMClassLoader.
1057 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
1058 PropertyResourceBundle if a properties file is found before a
1059 ResourceBundle class.
1061 1999-10-15 Tom Tromey <tromey@cygnus.com>
1063 * gij.cc (main): Formatting fixes.
1064 (_Jv_Compiler_Properties): Define.
1065 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
1067 (init_properties): Set properites from _Jv_Compiler_Properties.
1068 * include/java-props.h (_Jv_Compiler_Properties,
1069 _Jv_Environment_Properties): Declare.
1071 * include/java-props.h: Added copyright.
1073 1999-10-13 Anthony Green <green@cygnus.com>
1075 * libtool-version: Catch up by incrementing current.
1077 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
1078 * configure, include/config.h.in: Rebuilt.
1079 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
1080 * configure.in: Added --disable-getenv-properties and new define
1081 `DISABLE_GETENV_PROPERTIES'.
1083 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
1084 (next_property_key): New function.
1085 (next_property_value): New function.
1086 (process_gcj_properties): New function.
1087 (JvRunMain): Call process_gcj_properties.
1088 (_JvRunMain): Ditto.
1090 * java/lang/natSystem.cc (init_properties): Set properties defined
1093 * include/java-props.h: New file.
1095 * java/lang/natSystem.cc (init_properties): Add new properties to
1096 conform with Java Product Versioning Specification.
1098 1999-10-12 Tom Tromey <tromey@cygnus.com>
1100 * configure: Rebuilt.
1101 * configure.in: Fixed test for --disable-java-net.
1103 1999-10-06 Tom Tromey <tromey@cygnus.com>
1105 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
1106 when building Canadian cross.
1107 (NATIVE): Don't define when cross-compiling.
1109 1999-10-04 Tom Tromey <tromey@cygnus.com>
1111 * java/net/natPlainSocketImpl.cc: Don't include headers if
1112 java.net is disabled.
1114 * Makefile.in: Rebuilt.
1115 * Makefile.am (ZINCS): Removed. This is defined in configure.in
1116 when needed, and must be left empty when not needed.
1118 1999-10-01 Anthony Green <green@cygnus.com>
1120 * THANKS: Refreshed from htdocs version.
1122 1999-10-01 Steve Chamberlain <sac@pobox.com>
1124 * Makefile.in: Rebuilt.
1125 * Makefile.am (ZINCS): Define
1127 * configure: Rebuilt.
1128 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
1130 * java/lang/ieeefp.h: Add definitions for picoJava.
1132 1999-10-01 Tom Tromey <tromey@cygnus.com>
1134 * configure: Rebuilt.
1135 * configure.in: Set classpath when invoking gcj. Use changequote
1136 around sed invocation.
1138 * java/net/natPlainSocketImpl.cc: Stub native functions if
1139 DISABLE_JAVA_NET is defined.
1140 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
1141 typo in exception string.
1142 (getTimeToLive): Likewise.
1143 Stub native functions if DISABLE_JAVA_NET is defined.
1144 * java/net/natInetAddress.cc: Stub native functions if
1145 DISABLE_JAVA_NET is defined.
1146 * configure.host: Disable java.net for mips-tx39.
1147 * configure, include/config.h.in: Rebuilt.
1148 * acconfig.h (DISABLE_JAVA_NET): Undefine.
1149 * configure.in: Added --disable-java-net and new define
1152 1999-09-30 Tom Tromey <tromey@cygnus.com>
1154 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
1156 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
1160 1999-09-28 Tom Tromey <tromey@cygnus.com>
1162 * configure: Rebuilt.
1163 * configure.in (PROCESS): In POSIX case, only set if not already
1165 * configure.host (PROCESS): Set in mips-tx39 case.
1167 * aclocal.m4, configure: Rebuilt.
1168 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
1169 appropriate AC_PROG_ symbol.
1171 1999-09-24 Tom Tromey <tromey@cygnus.com>
1173 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
1175 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
1177 Fix for PR java.util/47:
1178 * configure, include/config.h: Rebuilt.
1179 * configure.in: Don't look for ctime or ctime_r.
1180 * Makefile.in: Rebuilt.
1181 * Makefile.am (nat_source_files): Don't mention natDate.cc.
1182 * java/util/natDate.cc: Removed.
1183 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
1185 (getAvailableIDs): Rewrote.
1186 (getTimeZone): Rewrote.
1187 * java/util/Date.java (toGMTString): New method.
1188 (toLocaleString): New method.
1189 (toString): Rewrote.
1191 1999-09-23 Tom Tromey <tromey@cygnus.com>
1193 * configure: Rebuilt.
1194 * configure.in: Print message when checking to see if gcj can
1195 handle -fuse-divide-subroutine.
1197 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
1199 * java/lang/FirstThread.java (run0): Renamed to `run'.
1202 * prims.cc (main_init): New function.
1203 (JvRunMain): Call it.
1204 (_Jv_RunMain): Likewise.
1206 (main_init): Ignore SIGPIPE. Fixes PR 51.
1208 1999-09-22 Tom Tromey <tromey@cygnus.com>
1210 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1212 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
1214 * java/text/MessageFormat.java (MessageFormat(String)): Set the
1216 * java/text/NumberFormat.java: Check that object is a Number. If
1217 not, throw IllegialArgumentException.
1219 1999-09-21 Tom Tromey <tromey@cygnus.com>
1221 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1222 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
1224 * include/posix-threads.h (_Jv_MutexDestroy): Use
1225 _Jv_PthreadGetMutex.
1226 (_Jv_MutexLock): Likewise.
1227 (_Jv_MutexUnlock): Likewise.
1229 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1230 previous patch; it too was incorrect.
1231 * java/io/PrintStream.java (PrintStream): Likewise.
1233 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1234 refer to `this' before calling superclass constructor.
1235 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1236 before calling superclass constructor.
1238 1999-09-20 Tom Tromey <tromey@cygnus.com>
1240 * configure: Rebuilt.
1241 * configure.in: Send output of `-fuse-divide-subroutine' test
1242 compilation to /dev/null.
1244 1999-09-14 Tom Tromey <tromey@cygnus.com>
1246 * include/java-insns.h: Turned constants into an enum. Added
1247 multiple-inclusion protection.
1249 1999-09-10 Tom Tromey <tromey@cygnus.com>
1251 * configure: Rebuilt.
1252 * configure.in: Build include/Makefile.
1253 * Makefile.in: Rebuilt.
1254 * Makefile.am (SUBDIRS): Added gcj and include.
1255 (install-data-local): New target.
1256 (extra_headers): New macro.
1257 * include/Makefile.in: New file.
1258 * include/Makefile.am: New file.
1260 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1261 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1263 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1264 * resolve.cc: Include config.h.
1265 * defineclass.cc: Include config.h.
1266 * include/java-interp.h: Don't include config.h.
1267 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1270 * gcj/javaprims.h: Regenerated namespace decls.
1271 * classes.pl (scan): Don't put `;' after closing brace.
1273 * Makefile.in: Rebuilt.
1274 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1275 * configure.in: Create gcj/Makefile.
1276 * gcj/Makefile.in: New file.
1277 * gcj/Makefile.am: New file.
1278 * java/lang/Object.h: Don't include any other headers.
1279 * gcj/array.h: Renamed from include/java-array.h.
1280 * gcj/field.h: Renamed from include/java-field.h.
1281 * gcj/method.h: Renamed from include/java-method.h.
1282 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1283 Updated all files to reflect new include structure.
1285 1999-09-09 Tom Tromey <tromey@cygnus.com>
1287 * configure: Rebuilt.
1288 * configure.in: Fixed typo; variable is THREADSPEC and not
1291 1999-09-08 Tom Tromey <tromey@cygnus.com>
1293 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1294 previous change and implemented a correct test in the __m_count
1297 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1300 1999-09-07 Tom Tromey <tromey@cygnus.com>
1302 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1303 code and don't set errno.
1305 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1306 not `r'. Changed `done_sleeping' to a `bool'.
1308 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1310 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1311 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1312 by another thread, rather than by the GC.
1313 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1314 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1315 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1318 1999-09-03 Tom Tromey <tromey@cygnus.com>
1320 * configure: Rebuilt.
1321 * configure.in: Check for fstat function.
1322 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1325 1999-09-02 Tom Tromey <tromey@cygnus.com>
1327 * include/java-array.h (jobjectArrayjchar): Removed unused
1330 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1331 _Jv_PrepareCompiledClass while holding class mutex.
1333 1999-09-01 Tom Tromey <tromey@cygnus.com>
1335 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1336 (_Jv_PthreadGetMutex): Use it.
1337 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1338 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1339 (_Jv_MutexLock): Likewise.
1340 (_Jv_MutexUnlock): Likewise.
1341 * include/config.h.in: Rebuilt.
1342 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1343 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1344 * configure: Rebuilt.
1345 * libgcj.spec.in: Don't mention INTERPSPEC.
1346 * configure.in (INTERPSPEC): Removed.
1347 Only run pthreads-related checks when using POSIX threads. Check
1348 for m_count and __m_count in mutex structure.
1350 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1352 * java/lang/natClass.cc: Fixed notification of threads
1353 when class initialization is complete.
1355 1999-09-01 Tom Tromey <tromey@cygnus.com>
1357 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1358 * resolve.cc: Removed constants defined by
1359 java.lang.reflect.Modifier.
1360 Include <java/lang/reflect/Modifier.h>.
1361 (_Jv_ResolvePoolEntry): Use values from Modifier.
1362 (_Jv_DetermineVTableIndex): Likewise.
1363 (_Jv_PrepareClass): Likewise.
1365 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1366 java.lang.reflect.Modifier.
1367 Include <java/lang/reflect/Modifier.h>.
1368 (checkExtends): Use values from Modifier.
1369 (checkImplements): Likewise.
1370 (handleField): Likewise.
1371 (handleConstantValueAttribute): Likewise.
1372 (handleFieldsEnd): Likewise.
1373 (handleMethod ): Likewise.
1374 (handleMethodsEnd): Likewise.
1375 (handleClassBegin): Likewise.
1376 * interpret.cc: Removed constants defined by
1377 java.lang.reflect.Modifier.
1378 (continue1): Use values from Modifier.
1379 * java/lang/natClassLoader.cc: Removed constants defined by
1380 java.lang.reflect.Modifier.
1382 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1383 JV_STATE_NOTHING, not `0'.
1384 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1386 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1387 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1389 (_Jv_PthreadGetMutex): New function.
1390 (_Jv_PthreadCheckMonitor): Use it.
1391 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1392 (_Jv_MutexLock): Update `count'.
1393 (_Jv_MutexUnlock): Likewise.
1394 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1397 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1399 * Makefile.am (.java.lo): Add rule.
1401 * Makefile.in: Rebuilt.
1403 1999-09-01 Tom Tromey <tromey@cygnus.com>
1405 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1406 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1408 (_Jv_CondNotify): Use it.
1409 (_Jv_CondNotifyAll): Likewise.
1411 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1413 1999-08-31 Tom Tromey <tromey@cygnus.com>
1415 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1418 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1420 * posix-threads.cc: Include <errno.h>.
1422 1999-08-23 Tom Tromey <tromey@cygnus.com>
1424 * boehm.cc: Undefine TRUE and FALSE.
1426 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1428 1999-08-21 Tom Tromey <tromey@cygnus.com>
1430 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1433 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1435 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1437 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1438 (HAVE_STRUCT_IP_MREQ): Added.
1439 * configure, include/config.h.in: Rebuilt.
1440 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1442 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1443 Disable if ip_mreq is not available.
1445 * configure.in: Check types ssize_t and in_addr_t.
1446 * acconfig.h: Undefine them.
1447 * configure, include/config.h.in: Rebuilt.
1449 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1450 function that detects the signature of getpwuid_r.
1451 (init_properties): Use it.
1452 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1455 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1457 * interpret.cc (continue1): Implement explicit dispatch table.
1458 insn_target: Explicit interpreter switch table.
1459 SAVE_PC: New macro, moves pc saving code into instructions that
1461 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1462 PC_REGISTER_ASM: New macro.
1463 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1464 opcode: Remove local variable.
1465 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1466 (POKEI): Use _Jv_word.
1467 (iinc): Use _Jv_word.
1468 (dupx): Change reference argument (sp) to pointer.
1471 * interpret.cc: Remove instruction timing instrumentation.
1473 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1474 comment. Don't use _Jv_ClassNameSamePackage.
1476 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1477 URLPathEntry, CacheEntry}: Removed.
1479 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1481 (.java.lo): Rule removed.
1483 * Makefile.in: Rebuilt.
1485 1999-08-19 Tom Tromey <tromey@cygnus.com>
1487 * java/lang/natThread.cc (class locker): New class.
1488 (join): Use a locker around _Jv_CondWait.
1491 1999-08-18 Tom Tromey <tromey@cygnus.com>
1493 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1494 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1496 1999-08-18 Tom Tromey <tromey@cygnus.com>
1498 * include/javaprims.h ("Java"): Regenerated namespace decls.
1500 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1502 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1503 from _Jv_InternClassStrings.
1505 * prims.cc (_Jv_RunMain): New function.
1506 (JvRunMain): Remove gij-support.
1508 * gij.cc (main): Use _Jv_RunMain.
1510 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1512 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1513 argument in temp variable.
1514 (continue1): For all op_x2y insns, use temp variable for
1515 intermediate value. Also remove some comments.
1517 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1518 (forName): Don't call _Jv_InitClass.
1520 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1522 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1524 * java/util/jar/JarInputStream.java: New file.
1526 * java/util/jar/JarEntry.java: New file.
1528 * java/util/jar/JarFile.java: New file.
1530 * java/net/URLClassLoader.java: New file.
1532 * java/net/JarURLConnection.java: New file.
1534 * gnu/gcj/protocol/jar/Handler.java: New file.
1536 * gnu/gcj/protocol/jar/Connection.java: New file.
1538 * java/security/SecureClassLoader.java: New file.
1540 * java/lang/ClassLoader.java (parent): New variable.
1541 (ClassLoader (ClassLoader)): new constructor.
1542 (findClass): New method.
1543 (loadClass): Add default 1.2 implementation.
1544 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1545 (readfully): Removed.
1547 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1548 (findSystemClass): New method.
1549 (VMClassLoader): Constructor rewritten.
1551 All other methods removed.
1553 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1554 to gnu::gcj::runtime::VMClassLoader.
1555 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1557 (VMClassLoader::findSystemClass): renamed from findBootClass.
1559 * Makefile.am: Add new files.
1560 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1562 * Makefile.in: Rebuilt.
1564 1999-08-17 Tom Tromey <tromey@cygnus.com>
1566 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1568 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1571 1999-08-16 Tom Tromey <tromey@cygnus.com>
1573 * configure: Rebuilt.
1574 * configure.in: Set DIVIDESPEC to empty string if compiler does
1575 not support -fuse-divide-subroutine.
1577 1999-08-14 Per Bothner <per@bothner.com>
1579 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1580 * java/lang/natClass.cc (initializeClass): Likewise.
1581 * java/lang/ClassLoader.java (resolveClass0): New static method.
1582 (resolveClass): Call resolveClass0.
1583 (findSystemClass): No longer static.
1585 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1587 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1589 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1591 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1594 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1596 * Makefile: Rebuilt.
1597 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1600 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1603 * configure: Rebuilt.
1604 * configure.in: Properly align --help output, fix capitalization
1606 * acinclude.m4: Likewise.
1608 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1610 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1612 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1613 (_Jv_callInterpretedMethod): Unused. Remove.
1614 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1616 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1617 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1618 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1619 * interpret.cc: use _Jv_word.
1620 * defineclass.cc: use_Jv_word.
1621 * resolve.cc: Use _Jv_word.
1622 (_Jv_ResolvePoolEntry): Return _Jv_word.
1623 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1624 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1626 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1629 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1631 * configure: Rebuilt.
1632 * configure.in (sched_yield): Try librt first, then libposix4.
1633 Add -lrt, -lposix4 to THREADSPEC.
1635 1999-08-08 Anthony Green <green@cygnus.com>
1637 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1639 1999-08-08 Anthony Green <green@cygnus.com>
1641 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1644 1999-08-08 Anthony Green <green@cygnus.com>
1648 * include/config.h.in: Rebuilt.
1649 * acconfig.h: Add INTERPRETER.
1651 * Makefile.in: Rebuilt.
1652 * Makefile.am (libffi_files): Identify the libffi object files for
1653 inclusion in libgcj.
1654 (LIBFFIINCS): Define.
1656 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1657 Dummy definition for configurations without an interpreter.
1659 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1660 java::lang::Boolean constructor.
1662 * include/java-interp.h: Always include java-cpool.h.
1664 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1665 when INTERPRETER not defined.
1667 * java/lang/Class.h (finalize): Define.
1669 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1670 IOException from File.getCanonicalPath.
1671 (getStream): Likewise.
1674 * THANKS: More thanks.
1676 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1678 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1680 (_Jv_PrepareClass): Allow non-abstract classes to
1681 have abstract subclasses.
1682 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1684 * interpret.cc (continue1/perform_invoke): Don't sign extend
1686 (continue1/lshl,lshr): Push long, not int.
1687 (continue1/ulshr): Use UINT64, not long long.
1688 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1690 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1691 * java/lang/FirstThread.java (run): Add top-level exception
1693 (run0): Renamed from run.
1695 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1697 * configure.in (--with-interpreter): Added.
1698 * include/config.h.in (INTERPRETER): Added.
1700 * java/lang/ClassLoader.java: File replaced.
1701 * java/lang/VMClassLoader.java: New file.
1702 * java/lang/natClassLoader.cc: New file.
1703 * gnu/gcj/runtime/MethodInvocation.java: New file.
1704 * gnu/gcj/util/path/SearchPath.java: New file.
1705 * gnu/gcj/util/path/PathEntry.java: New file.
1706 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1707 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1708 * gnu/gcj/util/path/URLPathEntry.java: New file.
1709 * gnu/gcj/util/path/CacheEntry.java: New file.
1710 * include/java-interp.h: New file.
1711 * include/java-cpool.h: New file.
1712 * include/java-insns.h: New file.
1713 * defineclass.cc: New file.
1714 * interpret.cc: New file.
1715 * resolve.cc: New file.
1717 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1718 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1719 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1721 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1722 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1724 (initializeClass): Use new JV_ prefixed names. Also, call
1725 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1727 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1728 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1729 JV_STATE_LINKED): New.
1730 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1731 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1732 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1733 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1734 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1735 _Jv_InterpMethodInvocation): New friends for interpreter.
1737 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1738 include/java-cpool.h and renamed with JV_ prefix.
1740 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1742 (_Jv_UnregisterClass): New decl.
1744 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1745 class loader argument.
1746 (_Jv_FindClass): Use class loader.
1748 * prims.cc (_Jv_makeUtf8Const): New function.
1749 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1750 (_Jv_NewPrimArray): Ditto.
1751 (_Jv_FindClassFromSignature): Ditto.
1752 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1753 * java/lang/reflect/natMethod.cc (getType): Ditto.
1755 * include/java-field.h (_Jv_Field::isRef): Make robust for
1756 non-resolved contexts.
1758 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1759 Also, don't mark class->next field.
1761 * java/lang/VirtualMachineError.java: Added FIXME note.
1763 * configure.in (INTERPSPEC): New spec.
1764 * libgcj.spec.in: Added INTERPSPEC.
1765 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1766 gnu/gcj/runtime/MethodInvocation.
1767 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1768 (ordinary_java_source_files): Added above mentioned java classes.
1770 * configure: Rebuilt.
1771 * Makefile.in: Rebuilt.
1773 1999-08-06 Tom Tromey <tromey@cygnus.com>
1775 * configure: Rebuilt.
1776 * configure.in: Look for sched_yield in -lrt.
1778 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1780 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1781 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1782 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1784 (toString): Print correctly when `country' is empty.
1786 1999-08-04 Per Bothner <per@bothner.com>
1788 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1790 1999-08-02 Tom Tromey <tromey@cygnus.com>
1792 * aclocal.m4, configure: Rebuilt for new libtool.
1794 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1796 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1797 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1798 * java/net/ServerSocket.java: Define ANY_IF.
1799 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1800 all network interfaces.
1801 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1802 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1804 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1806 * java/io/natFile.cc (performMkdir): Remove FIXME.
1807 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1809 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1811 * configure.in: Check for bstring.h.
1812 * configure, include/config.h.in: Rebuilt.
1813 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1814 * java/net/natPlainSocketImpl.cc: Likewise.
1816 1999-07-31 Tom Tromey <tromey@cygnus.com>
1821 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1823 * configure.in: Check for struct hostent_data and need for
1824 -D_REENTRANT for gethostbyname_r declaration.
1825 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1826 (lookup): Use hostent_data for fixed_buffer.
1827 * configure, include/config.h.in: Rebuilt.
1829 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1831 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1832 available. Don't cast memmove args to (void*).
1833 * configure.in: Do not abort if memmove is not available.
1835 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1837 * java/lang/natString.cc (substring): optimize where substring is
1839 * java/io/File.java (getName): don't return separator with file name.
1840 * java/io/natFile.cc (attr): fix overflow.
1842 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1844 * mauve-libgcj: Disable Object Serialization tests.
1846 1999-07-20 Warren Levy <warrenl@cygnus.com>
1848 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1849 Default to using PlainDatagramSocketImpl.
1850 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1852 1999-07-19 Tom Tromey <tromey@cygnus.com>
1854 * include/stamp-h.in: New file.
1856 1999-07-12 Tom Tromey <tromey@cygnus.com>
1858 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1861 1999-07-07 Andrew Haley <aph@cygnus.com>
1863 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1864 bytes to make it point after the instruction where the trap
1866 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1868 1999-07-07 Tom Tromey <tromey@cygnus.com>
1870 * mauve-libgcj: Explicitly enable formerly disabled java.text
1873 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1876 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1878 * java/net/URL.java (equals): Compare strings using String.equals.
1879 * java/net/URL.java (sameFile): Ditto.
1881 1999-07-02 Warren Levy <warrenl@cygnus.com>
1883 * configure: Rebuilt.
1884 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1885 * include/config.h.in: Rebuilt.
1886 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1887 (mcastGrp): Updated FIXME comments.
1888 (setOption): Fixed typo.
1889 (getOption):Implemented IP_MULTICAST_IF.
1891 1999-07-02 Warren Levy <warrenl@cygnus.com>
1893 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1894 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1895 (getTimeToLive): Implemented.
1896 (setOption): Implemented IP_MULTICAST_IF.
1898 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1900 * java/lang/String.java (toString): Check for this == null and throw
1901 NullPointerException.
1903 1999-07-01 Warren Levy <warrenl@cygnus.com>
1905 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1906 to count and revised comments to match.
1907 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1908 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1909 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1910 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1911 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1912 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1914 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1916 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1917 properly as count rather than outlength.
1918 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1919 output on overflow rather than buffer fill.
1920 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1921 if markPos is 0 and there is still room in the buffer.
1923 1999-07-01 Andrew Haley <aph@cygnus.com>
1925 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1926 This is a workaround for a bug in glibc's pthreads package which
1927 doesn't deliver any sigcontext information to a signal handler.
1929 1999-06-24 Tom Tromey <tromey@cygnus.com>
1931 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1932 * java/lang/fdlibm.h (HUGE): Conditionally define.
1934 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1936 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1937 * java/lang/e_log.c: Don't use __uint32_t.
1939 1999-05-27 Eric Christopher <echristo@cygnus.com>
1941 * configure: Rebuilt
1942 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1943 * acconfig.h: Rebuilt
1944 * include/config.h.in: Rebuilt
1946 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1947 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1948 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1949 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1950 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1951 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1952 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1953 and namespace collision with __uint32_t
1955 1999-06-23 Tom Tromey <tromey@cygnus.com>
1957 * java/util/zip/InflaterInputStream.java (read): Throw
1958 ZipException if inflater throws a DataFormatException.
1960 1999-06-23 Warren Levy <warrenl@cygnus.com>
1962 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1963 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1964 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1965 is not final per JDK.
1966 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1968 * java/util/zip/DataFormatException.java: Class extends Exception.
1969 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1970 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1971 * java/util/zip/ZipInputStream.java: ditto.
1972 (closeEntry): Changed method name to match JDK spec.
1974 1999-06-21 Tom Tromey <tromey@cygnus.com>
1976 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1979 * Makefile.in: Rebuilt.
1980 * Makefile.am (toolexeclibdir): Define as libdir when
1982 * configure: Rebuilt.
1983 * configure.in (USE_LIBDIR): New conditional.
1985 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1987 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1988 hostname in returned InetAddress objects.
1989 (getLocalHostname): Fix typo.
1990 * java/net/InetAddress.java (getByName): Set hostname on return
1992 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1995 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1997 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1998 interfaces if host==NULL.
1999 (accept): Throw message with InterruptedIOException.
2000 (getOption): Cache localAddress.
2001 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
2002 'address' for DatagramSocket.
2003 (setTimeToLive): Fix compiler warnings.
2004 (getOption): Cache localAddress.
2005 * java/net/Socket.java (getLocalAddress): Don't need local
2006 InetAddress object. Add FIXME comment about calling checkConnect().
2007 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
2008 connection queue to 50 as per JDK 1.2 docs.
2009 (ServerSocket(int,int)): Listen on all network interfaces by
2010 default, per JDK 1.2 docs.
2011 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
2012 Add localAddress caching.
2014 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
2016 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
2018 (write(byte[],int,int)): ditto.
2020 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
2022 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
2024 1999-06-11 Warren Levy <warrenl@cygnus.com>
2026 * mauve-libgcj: Activated java.net Mauve tests.
2028 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
2030 * java/net/natInetAddress.cc (aton): Fix typos.
2031 (lookup): Use a bigger buffer size for gethostbyname_r on all
2032 versions of glibc. Updated FIXME comment explaining this.
2033 Modified while loops to not set herr = ERANGE to work around glibc
2034 problems. Use user specified hostname in InetAddress result when
2035 available (consistent with JDK).
2037 1999-06-10 Warren Levy <warrenl@cygnus.com>
2039 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
2040 Throw FileNotFoundException instead of IOException.
2042 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
2044 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
2045 in static field name.
2046 * java/text/DecimalFormat.java: Throw IllegalArgumentException
2047 throughout rather than ParseException.
2049 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
2051 * java/lang/Runtime.java (exec): Convert prog name and arguments
2053 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
2054 environment array conversion. Preserve current environment if envp
2055 not passed. Preserve PATH unless explicitly specified.
2056 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
2057 followed by EOF. Set a flag when a line is terminated by '\r' and
2058 ignore following '\n' if set.
2060 1999-06-02 Warren Levy <warrenl@cygnus.com>
2062 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
2063 Ignore context if spec is an absolute URL. Fix braindead
2065 (hashCode): Use JDK 1.2 style algorithm.
2066 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
2067 context URL properly.
2069 1999-05-30 Anthony Green <green@cygnus.com>
2071 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
2072 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
2074 1999-05-28 Warren Levy <warrenl@cygnus.com>
2076 * java/net/DatagramSocket.java (laddr): Removed.
2077 (DatagramSocket): Removed attempts to get or set laddr if null.
2078 (getLocalAddress): Reimplemented per spec.
2079 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
2081 (joinGroup): Throw NullPointerException if any argument is null.
2082 (leaveGroup): ditto.
2083 * java/net/PlainDatagramSocketImpl.java: Updated comments.
2084 * java/net/PlainSocketImpl.java (timeout): Added.
2085 (getInputStream): Added FIXME comment on how to support timeouts
2087 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
2088 * java/net/Socket.java: Added FIXME comments to identify
2089 conflicting specs between the JCL and JDK 1.2 documents.
2090 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
2091 if host is null. Get localport value resolved by kernel if bind
2093 (receive): Implemented support for timeouts in UDP.
2094 (setOption): Implemented based on natPlainSocketImpl version.
2096 * java/net/natPlainSocketImpl.cc (bind): Get localport value
2097 resolved by kernel if bind lport is 0.
2098 (connect): Get localport value resolved by kernel if bind wasn't
2099 done to set localport.
2100 (accept): Implemented support for timeouts for ServerSocket.
2101 (setOption): Save value for SO_TIMEOUT.
2102 (getOption): Return timeout for SO_TIMEOUT.
2104 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
2106 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
2107 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
2108 (setOption): Made abstract.
2109 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
2110 to avoid cpp conflicts in native code.
2111 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
2112 cpp conflicts in native code.
2113 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
2114 * java/net/Socket.java (getLocalAddress): Implemented.
2115 (setTcpNoDelay): Implemented.
2116 (getTcpNoDelay): Implemented.
2117 (setSoLinger): Implemented.
2118 (getSoLinger): Implemented.
2119 (getSoTimeout): Verify class type.
2120 (setSendBufferSize): Implemented.
2121 (getSendBufferSize): Implemented.
2122 (setReceiveBufferSize): Implemented.
2123 (getReceiveBufferSize): Implemented.
2124 (toString): Prepended "Socket".
2125 * java/net/SocketImpl.java (toString): Rewritten.
2126 (getOption): Made abstract.
2127 (setOption): Made abstract.
2128 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
2129 (setOption): Implemented.
2130 (getOption): Implemented.
2132 1999-05-26 Warren Levy <warrenl@cygnus.com>
2134 * java/net/DatagramSocket.java (DatagramSocket): Get local host
2135 address when null. Set SO_REUSEADDR for multicasts.
2136 (getSoTimeout): Implemented.
2137 (setSoTimeout): Implemented.
2138 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
2139 * java/net/MulticastSocket.java (getInterface): Implemented.
2140 (setInterface): Implemented.
2141 (setTimeToLive): Check for invalid ttl.
2142 (joinGroup): Verify multicast address and security.
2143 (leaveGroup): Verify multicast address and security.
2144 (send): Implemented.
2145 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
2151 (getTTL): Implemented as non-native.
2155 * java/net/ServerSocket.java (setSoTimeout): Implemented.
2156 (getSoTimeout): Implemented.
2157 (setSocketFactory): Made synchronized.
2158 * java/net/Socket.java (setSoTimeout): Implemented.
2159 (getSoTimeout): Implemented.
2160 (close): Made synchronized.
2161 (setSocketImplFactory): Made synchronized.
2162 * java/net/SocketImpl.java: Implement SocketOptions interface.
2163 * java/net/natInetAddress.cc: Corrected module name at top of file.
2164 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
2165 (bind): Added FIXME.
2166 (peek): Implemented.
2172 (setOption): Implemented for SO_REUSEADDR.
2173 (getOption): Implemented for SO_REUSEADDR.
2175 1999-05-24 Tom Tromey <tromey@cygnus.com>
2177 * java/util/ResourceBundle.java (getBundle): Throw
2178 NullPointerException if baseName is null.
2180 1999-05-22 Tom Tromey <tromey@cygnus.com>
2182 * java/util/zip/ZipInputStream.java (fill): New method.
2183 (compressed_len): New instance variable.
2184 (getNextStream): Set it.
2185 (read): Reset inflater on EOF. Only read via `super' if entry is
2187 (skip): Only skip via `super' if entry is deflated.
2188 * java/util/zip/Deflater.java (last_input_count): Removed.
2189 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
2191 (needsInput): Don't use last_input_count.
2192 (setInput): Don't set last_input_count.
2193 * java/util/zip/natInflater.cc (getRemaining): Return correct
2195 (inflate): Return 0 if input array is length 0.
2196 (setInput): Don't set last_input_count.
2197 * java/util/zip/Inflater.java (last_input_count): Removed.
2199 1999-05-21 Tom Tromey <tromey@cygnus.com>
2201 * Makefile.in: Rebuilt.
2202 * Makefile.am (INCLUDES): Added $(ZINCS).
2203 * configure: Rebuilt.
2204 * configure.in (ZINCS): New subst.
2206 1999-05-21 Andrew Haley <aph@cygnus.com>
2208 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2209 to signal options to allow the same exceptions to be rethrown
2212 1999-05-20 Andrew Haley <aph@cygnus.com>
2214 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2216 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2217 (INIT_FPE): Exception string made more informative.
2218 * include/sparc-signal.h (INIT_FPE): Exception string made more
2220 * testsuite/libjava.lang/Divide_1.java: New file.
2221 * testsuite/libjava.lang/Divide_1.out: New file.
2223 1999-05-19 Tom Tromey <tromey@cygnus.com>
2225 * aclocal.m4, configure: Rebuilt.
2226 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2228 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2231 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2233 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2235 (update): Fail in default case. Always initialize `strat'.
2237 * mauve-libgcj: Enable java.util.zip.
2239 1999-05-18 Warren Levy <warrenl@cygnus.com>
2241 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2242 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2243 PlainDatagramSocketImpl.java, and SocketOptions.java.
2244 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2245 * Makefile.in: Rebuilt.
2247 * java/net/DatagramPacket.java: New file.
2248 * java/net/DatagramSocket.java: New file.
2249 * java/net/DatagramSocketImpl.java: New file.
2250 * java/net/MulticastSocket.java: New file.
2251 * java/net/PlainDatagramSocketImpl.java: New file.
2252 * java/net/SocketOptions.java: New file.
2253 * java/net/natPlainDatagramSocketImpl.cc: New file.
2255 1999-05-18 Tom Tromey <tromey@cygnus.com>
2257 * java/util/zip/ZipOutputStream.java (level): Initial value is
2258 Deflater.DEFAULT_COMPRESSION.
2259 (close): New method.
2260 (closeEntry): Likewise.
2262 (put_version): Likewise.
2263 (write_entry): Likewise.
2264 (put2, put4): Now return `int'.
2265 (comment): Default to empty string.
2266 (bytes_written): New instance variable.
2268 * java/util/zip/ZipEntry.java (setComment): Limit length of
2270 (setCrc): Check CRC validity.
2271 (setExtra): Check argument validity.
2272 (setMethod): Likewise.
2273 (setSize): Likewise.
2274 (ZipEntry): Likewise.
2275 * include/javaprims.h: Updated namespace declarations.
2276 * Makefile.in: Rebuilt.
2277 * Makefile.am (ordinary_java_source_files): Mention new files.
2278 (nat_source_files): Likewise.
2279 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2282 (getInputStream): Handle compressed entries.
2283 * java/util/zip/GZIPOutputStream.java: New file.
2284 * java/util/zip/GZIPInputStream.java: New file.
2285 * java/util/zip/DataFormatException.java: New file.
2286 * java/util/zip/CheckedInputStream.java: New file.
2287 * java/util/zip/CheckedOutputStream.java: New file.
2288 * java/util/zip/InflaterInputStream.java: Implemented.
2289 * java/util/zip/natInflater.cc: New file.
2290 * java/util/zip/Deflater.java: Implemented.
2291 * java/util/zip/natDeflater.cc: New file.
2292 * java/util/zip/DeflaterOutputStream.java: Implemented.
2294 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2295 ZipException, not IOException.
2296 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2299 1999-05-17 Tom Tromey <tromey@cygnus.com>
2301 * java/lang/natSystem.cc (init_properties): URL now points to
2304 1999-05-12 Per Bothner <bothner@cygnus.com>
2306 * java/util/Calendar.java (set): First call computeFields if needed.
2307 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2309 1999-05-12 Tom Tromey <tromey@cygnus.com>
2311 * configure: Rebuilt.
2312 * configure.in: Look for -ldl when using the Boehm collector.
2313 Look for sched_yield in -lposix4.
2315 1999-05-12 Per Bothner <bothner@cygnus.com>
2317 * java/io/File.java (mkdirs): Handle a null parent directory.
2319 1999-05-12 Tom Tromey <tromey@cygnus.com>
2321 * include/javaprims.h: Updated namespace declarations.
2322 * classes.pl (scan): Uniquify class list.
2323 * Makefile.in, configure: Rebuilt.
2324 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2325 (built_java_source_files): New macro.
2326 (nat_headers): Added built_java_source_files.
2327 (javao_files): Likewise.
2328 (EXTRA_libgcj_la_SOURCES): Likewise.
2329 (libgcj.zip): Create built class files.
2330 ($(built_java_source_files:.java=.class)): New target.
2331 (jv_convert_LDADD): Added -L$(here)/.libs.
2332 * configure.in: Create links for ConcreteProcess.java and
2333 natConcreteProcess.cc.
2334 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2335 * java/lang/natEcosProcess.cc: New file.
2336 * java/lang/EcosProcess.java: New file.
2337 * java/lang/PosixProcess.java: New file.
2338 * java/lang/natPosixProcess.cc: New file.
2340 1999-05-12 Warren Levy <warrenl@cygnus.com>
2342 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2343 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2344 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2345 (connect): Throw ConnectException.
2347 1999-05-11 Tom Tromey <tromey@cygnus.com>
2349 * Makefile.in: Rebuilt.
2350 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2351 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2354 * Makefile.in: Rebuilt.
2355 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2356 and it causes problems with libtool.
2358 * Makefile.in, configure: Rebuilt.
2359 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2360 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2361 (jv_convert_DEPENDENCIES): Added ZDEPS.
2362 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2364 (THREADSPEC): Added `-L' to point to qthreads build directory.
2368 * configure, Makefile.in: Rebuilt.
2369 * Makefile.am (toolexeclib_DATA): New macro.
2370 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2371 Recognize --with-system-zlib.
2372 (GCSPEC): New subst.
2373 (THREADSPEC): New subst.
2374 (SYSTEMSPEC): New subst.
2375 (ZLIBSPEC): New subst.
2376 * libgcj.spec.in: New file.
2378 1999-05-10 Tom Tromey <tromey@cygnus.com>
2380 * java/io/InputStreamReader.java (read): If length is 0, return
2381 0. Reset `wpos' and `wcount' when buffer has been filled and
2384 * java/util/Properties.java (save): Removed `FIXME' comment.
2385 (load): Invalid characters in \u now treated as terminators.
2386 Make sure to append character resulting from `\' handling.
2387 Cast to `char' when appending to key or value.
2388 (skip_ws): Inverted test for whitespace.
2390 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2392 (readLine): Likewise.
2393 (readFully): Implemented.
2395 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2397 * java/awt/natToolkit.cc: Added copyright header.
2398 * java/util/zip/InflaterInputStream.java: Added copyright header.
2400 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2402 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2404 (getNextStream): Likewise.
2406 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2408 (getBundle): Don't explicitly throw null pointer exception.
2410 * gnu/gcj/RawData.java: Added copyright header.
2412 * include/jni.h (_Jv_va_list): Always define as va_list.
2414 1999-05-9 Anthony Green <green@cygnus.com>
2416 * java/text/DateFormat.java (computeInstance): Separate time
2418 (getDateTimeInstance): Ditto.
2419 (getDateTimeInstance(int,int)): New method.
2421 * Makefile.in: Rebuilt.
2422 * Makefile.am (ordinary_java_source_files): Add new classes.
2424 * java/util/PropertyResourceBundle.java: New file.
2425 * gnu/gcj/util/EnumerationChain.java: New file.
2427 1999-05-07 Tom Tromey <tromey@cygnus.com>
2429 * acconfig.h (GCJVERSION): New undef.
2430 * java/lang/natSystem.cc (init_properties): Define java.version,
2431 java.class.version, os.name, os.arch, os.version.
2432 Include <sys/utsname.h> if required.
2433 * configure: Rebuilt.
2434 * configure.in: Compute and define GCJVERSION.
2436 * java/lang/natSystem.cc (default_file_encoding): Now static.
2438 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2440 * libtool-version: New file.
2441 * Makefile.in: Rebuilt.
2442 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2445 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2446 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2449 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2450 (we pick those up already).
2452 1999-05-05 Per Bothner <bothner@cygnus.com>
2454 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2455 stub classes. (This is enough to get Kawa to compile against libgcj.)
2457 * gnu/gcj/RawData.java: New class.
2458 * doc/cni.sgml: Document RawData.
2460 * java/util/zip/InflaterInputStream.java: New stub class.
2461 * java/util/zip/ZipInputStream.java: New class. Partly works.
2462 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2463 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2464 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2465 * java/util/zip/ZipOutputStream.java: Start implementation.
2467 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2468 (default_file_encoding): New global, initial value is above macro.
2469 (init_properties): Default file.encoding to default_file_encoding.
2471 * Makefile.am: Add new classes.
2473 1999-05-05 Tom Tromey <tromey@cygnus.com>
2475 * Makefile.in: Rebuilt.
2476 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2477 (clean-local): New target
2479 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2480 (load, loadLibrary): Now native.
2482 * java/lang/Runtime.java (load, loadLibrary): Now native.
2483 (init): New native method.
2484 (Runtime): Use init.
2485 * prims.cc: Include <ltdl.h> if required.
2486 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2488 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2490 * configure.in: Switch from irix threads to posix threads
2491 * configure: Regenerate.
2493 1999-04-30 Tom Tromey <tromey@cygnus.com>
2495 * Makefile.in: Rebuilt.
2496 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2498 1999-04-29 Tom Tromey <tromey@cygnus.com>
2500 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2503 * java/util/Locale.java (Locale(String,String)): Implement in
2504 terms of 3-argument version; variant now defaults to empty
2506 (toString): Assume variant is not null.
2507 (equals): Assume all strings are not null.
2508 (Locale): Throw NullPointerException if any argument is null.
2510 * java/util/ResourceBundle.java (getBundle): Don't try the base
2511 name; now implicit in partialGetBundle call.
2512 (trySomeGetBundle): Search for parent bundles and call setParent
2514 (partialGetBundle): Added `langStop' argument. Use
2515 `Locale.toString' to compute bundleName.
2516 (resource_cache): New static field.
2517 (partialGetBundle): Cache the returned resource bundle. Now
2520 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2523 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2524 * java/text/natCollator.cc (decomposeCharacter): `base' now
2526 * Makefile.in: Rebuilt.
2527 * Makefile.am (ordinary_java_source_files): Added
2528 CollationElementIterator, CollationKey, Collator,
2530 (nat_source_files): Added natCollator.cc.
2531 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2532 (compare): Pass `this' to CollationElementIterator constructor.
2533 (getCollationElementIterator): Likewise.
2534 (ceiNext): Fix off-by-one error when finding initial substring.
2535 (next): Correctly mask off bits when computing return value.
2536 Fixed return values when one string is shorter than the other.
2537 * java/text/CollationElementIterator.java (collator): New field.
2538 (CollationElementIterator): Added collator argument.
2539 (next): Call ceiNext on collator object.
2541 1999-04-26 Tom Tromey <tromey@cygnus.com>
2543 * natCollator.cc: New file.
2545 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2546 (GregorianCalendar): Use it in all constructors.
2547 * java/util/Calendar.java (Calendar): Changed argument name to
2548 `zone' to match code.
2550 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2551 * java/text/CollationKey.java: New file.
2552 * java/text/CollationElementIterator.java: New file.
2553 * java/text/Collator.java: New file.
2554 * java/text/RuleBasedCollator.java: New file.
2556 * Makefile.in: Rebuilt.
2557 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2558 (jv_convert_LDADD): Explicltly add -lm -lc.
2560 1999-04-26 Tom Tromey <tromey@cygnus.com>
2562 * configure, Makefile.in: Rebuilt.
2563 * configure.in: Added AM_PROG_LIBTOOL.
2564 (GCOBJS): Use `.lo' form of files.
2565 (THREADOBJS): Likewise.
2566 (GCDEPS): Use `.la' form of library.
2567 (GCLIBS): Set to be the same as GCDEPS.
2568 (THREADDEPS): Use `.la' form of library.
2569 (THREADLIBS): Set to be the same as THREADDEPS.
2570 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2571 toolexeclib_LIBRARIES.
2572 (libgcj_la_SOURCES): Renamed for libtoolization.
2573 (EXTRA_libgcj_la_SOURCES): Likewise.
2574 (libgcj_la_DEPENDENCIES): Likewise.
2575 (libgcj_la_LIBADD): Likewise.
2576 ($(nat_files)): Use LTCXXCOMPILE.
2577 ($(c_files)): Use LTCOMPILE.
2578 (GCJCOMPILE): New macro.
2580 (.java.o): Likewise.
2581 ($(javao_files)): Likewise.
2582 (jv_convert_LINK): Use LIBTOOL.
2583 (nat_files): Use `.lo' files.
2584 (c_files): Likewise.
2585 (javao_files): Likewise.
2586 (.class.lo): Renamed.
2587 (.java.lo): Likewise.
2588 ($(nat_files)): Depend on %.lo.
2589 ($(c_files)): Likewise.
2590 ($(javao_files)): Likewise.
2591 (jv_convert_LDADD): Link against .lo files.
2592 (jv_convert_DEPENDENCIES): Depend on .lo files.
2593 (maintainer-check): Depend on libgcj.la, but examine .a file.
2594 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2595 (libgcj_la_LDFLAGS): New macro.
2597 1999-04-23 Warren Levy <warrenl@cygnus.com>
2599 * Makefile.am: Added URLDecoder and URLEncoder.
2600 * Makefile.in: Rebuilt.
2602 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2603 setSocketImplFactory to match spec.
2604 * java/net/Socket.java (getSoLinger): Changed return type to
2607 * java/net/URLDecoder.java: New file.
2608 * java/net/URLEncoder.java: New file.
2610 1999-04-21 Tom Tromey <tromey@cygnus.com>
2612 * java/lang/natString.cc (getBytes): Reverted earlier change and
2613 applied correct fix from Per Bothner.
2615 * java/lang/String.java: Don't throw
2616 UnsupportedEncodingException.
2618 * java/lang/natString.cc (getBytes): Correctly size result
2619 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2621 1999-04-20 Andrew Haley <aph@cygnus.com>
2623 * include/sparc-signal.h: new file.
2624 * configure.in: include/sparc-signal.h added.
2625 * configure: regenerated.
2626 * prims.cc (JvRunMain): signal handling code rewritten to be more
2628 (catch_segv): ditto.
2630 * include/i386-signal.h: reorganized.
2631 * include/default-signal.h: reorganized.
2633 1999-04-19 Tom Tromey <tromey@cygnus.com>
2635 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2636 once. From Anthony Green.
2638 1999-04-19 Andrew Haley <aph@cygnus.com>
2640 * Makefile.in: Processed with new automake.
2642 1999-04-19 Tom Tromey <tromey@cygnus.com>
2644 * include/javaprims.h: Removed security namespace.
2646 1999-04-20 Anthony Green <green@cygnus.com>
2648 * java/io/PrintStream.java (println): Remove extra println.
2650 1999-04-19 Anthony Green <green@cygnus.com>
2652 * Makefile.in: Rebuilt.
2653 * Makefile.am (ordinary_java_source_files): Add new security files.
2655 * java/security/NoSuchAlgorithmException.java,
2656 java/security/MessageDigest.java: New files.
2658 * include/javaprims.h: Add security namespace.
2660 1999-04-16 Per Bothner <bothner@cygnus.com>
2662 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2663 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2664 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2665 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2666 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2667 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2668 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2669 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2670 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2671 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2672 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2673 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2674 * Makefile.am: Various changes for new files and conversions.
2676 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2677 New overloading, allows greater efficiency.
2678 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2679 New overloading (for efficiency - avoids copying).
2681 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2682 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2684 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2685 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2686 (writeChars): Don't be quite so eager to flush.
2687 * java/io/PrintStream.java: Rewrite. Now more similar to
2688 OutputStreamWriter, using explicit UnicodeToBytes converter.
2689 Also, autoflush does not need to flush so often.
2690 * java/lang/natString.cc (getBytes): More efficient algorithm.
2691 (init(jbyteArray,jint,jint,jstring)): More efficient.
2693 1999-04-15 Warren Levy <warrenl@cygnus.com>
2695 * Makefile.am (ordinary_java_source_files): Added new Connection
2696 and Handler classes in gnu.gcj.protocol.file package.
2697 * Makefile.in: Rebuilt.
2699 * gnu/gcj/protocol/file/Connection.java: New file.
2700 * gnu/gcj/protocol/file/Handler.java: New file.
2701 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2702 if doInput allows input.
2703 (getOutputStream): Check if doOutput allows output.
2704 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2706 1999-04-14 Tom Tromey <tromey@cygnus.com>
2708 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2709 buffer larger to work around bug.
2710 From Bryce McKinlay <bryce@albatross.co.nz>.
2712 1999-04-14 Andrew Haley <aph@cygnus.com>
2714 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2715 NaNs are always converted to the same long value.
2716 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2719 1999-04-13 Tom Tromey <tromey@cygnus.com>
2721 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2722 instead switch on actual element type.
2724 * Makefile.in: Rebuilt.
2725 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2727 1999-04-13 Andrew Haley <aph@cygnus.com>
2729 * include/i386-signal.h, include/default-signal.h: New files.
2730 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2732 (catch_fpe): New function.
2733 * configure.in: Make link to appropriate include/java-signal.h.
2734 * configure: Rebuilt.
2735 * Makefile.am: include/java-signal.h added to dependency list.
2736 * Makefile.in: Rebuilt.
2738 1999-04-12 Urban Widmark <urban@svenskatest.se>
2740 * java/io/DataInputStream.java (readLine): Corrected handling of
2741 empty lines, from null to "".
2743 1999-04-12 Tom Tromey <tromey@cygnus.com>
2745 * Makefile.in: Rebuilt.
2746 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2748 * java/lang/natSystem.cc (SystemClass): New define.
2749 (init_properties): Synchronize.
2751 1999-04-08 Geoff Berry <gcb@gnu.org>
2753 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2754 * natPlainSocketImpl.cc (accept): Add missing else if check
2757 1999-04-08 Tom Tromey <tromey@cygnus.com>
2759 * java/lang/Long.java (parseLong): Corrected overflow detection
2761 * java/lang/Integer.java (parseInt): Corrected overflow detection
2764 * java/io/PrintStream.java (print): Handle null string argument.
2765 (println): Likewise.
2767 1999-04-07 Warren Levy <warrenl@cygnus.com>
2769 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2770 Set count to 0 when InputStreamReader returns -1 for EOF.
2772 1999-04-07 Tom Tromey <tromey@cygnus.com>
2774 * mauve-libgcj: Omit java.text.Collator,
2775 java.text.RuleBasedCollator.
2777 1999-04-06 Tom Tromey <tromey@cygnus.com>
2779 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2780 IOException from getHttpHeaders().
2781 (getHeaderFieldKey): Likewise.
2783 * include/javaprims.h: Regenerated declarations.
2785 * Makefile.in: Rebuilt.
2786 * Makefile.am (ordinary_java_source_files): Updated for removed
2789 1999-04-06 Per Bothner <bothner@cygnus.com>
2791 * java/util/zip/Adler32.java: New class.
2792 * java/util/zip/CRC32.java: Add working method bodies.
2793 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2794 * Makefile.in: Re-generate.
2796 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2798 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2799 from version in removed www hierarchy.
2800 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2801 version in removed www hierarchy.
2803 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2804 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2805 * gnu/gcj/www/protocol/http: Removed dir.
2806 * gnu/gcj/www/protocol: Removed dir.
2807 * gnu/gcj/www: Removed dir.
2809 * java/net/HttpURLConnection.java: Revised comments to indicate
2810 missing JDK 1.2 methods.
2812 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2813 hierarchy rather than the gnu/gcj/www/protocol one.
2814 * java/net/URLConnection.java: Updated status comments.
2815 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2816 the gnu/gcj/www/content one.
2818 1999-04-06 Per Bothner <bothner@cygnus.com>
2820 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2821 The gen-from-JIS program is in $(CONVERT_DIR).
2823 1999-04-06 Tom Tromey <tromey@cygnus.com>
2825 * mauve-libgcj: Renamed from mauve-libjava.
2827 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2829 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2830 (getResponseMessage): Implemented.
2831 (getResponseVals): New private method.
2833 * java/net/URLConnection.java (getContent): Implemented.
2834 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2836 1999-04-05 Tom Tromey <tromey@cygnus.com>
2838 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2839 (jv_convert_SOURCES): Renamed.
2840 (EXTRA_jv_convert_SOURCES): Likewise.
2841 (jv_convert_LDFLAGS): Likewise.
2842 (jv_convert_LINK): Likewise.
2843 (jv_convert_LDADD): Likewise.
2844 (jv_convert_DEPENDENCIES): Likewise.
2846 * Makefile.in: Rebuilt.
2847 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2850 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2852 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2853 method for comparison.
2855 * java/net/URLConnection.java (getContentLength): Implemented.
2856 (getContentType): Implemented.
2857 (getContentEncoding): Implemented.
2858 (getExpiration): Implemented.
2859 (getDate): Implemented.
2860 (getLastModified): Implemented.
2861 (getHeaderFieldInt): Implemented.
2862 (getHeaderFieldDate): Implemented.
2864 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2866 * java/net/URLConnection.java (toString): Implemented.
2867 (setContentHandlerFactory): Implemented.
2868 (setContentHandler): Wrote new private helper method.
2870 1999-04-01 Tom Tromey <tromey@cygnus.com>
2872 * Makefile.in: Rebuilt.
2873 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2874 of 1999-03-31; we always want to build all the .class files.
2875 Depend on java_source_files, not libgcj.zip.
2876 (nat_headers): Define in terms of ordinary_java_source_files.
2878 1999-03-31 Tom Tromey <tromey@cygnus.com>
2880 * Makefile.in: Rebuilt.
2881 * Makefile.am (special_java_source_files): New macro.
2882 (java_source_files): Use it.
2883 (ordinary_java_source_files): New macro.
2884 (java_source_files): Use it.
2885 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2886 creating headers for those files with hand-maintained headers.
2888 * include/javaprims.h: Regenerated namespace declarations.
2889 * classes.pl (scan): Include [0-9] in regexp for matching class
2890 names; for java.util.zip.CRC32.
2892 * Makefile.in: Rebuilt.
2893 * Makefile.am (nat_headers): Redefined to generate all possible
2896 * java/util/zip/ZipException.java: In package java.util.zip, not
2899 1999-03-30 Tom Tromey <tromey@cygnus.com>
2901 * configure: Rebuilt.
2902 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2903 eh-common.h when not building in tree with gcc.
2905 * Makefile.in: Rebuilt.
2906 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2907 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2909 ($(java_source_files:.java=.class)): New target.
2911 * Makefile.in: Rebuilt.
2912 * Makefile.am (java_source_files): Added
2913 java/net/HttpURLConnection.java and
2914 gnu/gcj/www/protocol/http/Connection.java.
2916 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2918 * gnu/gcj/www/protocol/http/Connection.java: New file.
2919 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2920 * java/net/HttpURLConnection.java: New file.
2921 * java/net/URLConnection.java (getHeaderField): Implemented default.
2922 (getHeaderFieldKey): Implemented default method.
2924 1999-03-30 Tom Tromey <tromey@cygnus.com>
2926 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2928 * java/util/zip/Deflater.java: Added copyright header.
2929 * java/util/zip/CRC32.java: Added copyright header.
2931 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2932 that it is automatically generated.
2933 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2935 * gnu/gcj/convert/BytesToUnicode.java,
2936 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2937 gnu/gcj/convert/Input_EUCJIS.java,
2938 gnu/gcj/convert/Input_UTF8.java,
2939 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2940 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2941 gnu/gcj/convert/Output_8859_1.java,
2942 gnu/gcj/convert/Output_JavaSrc.java,
2943 gnu/gcj/convert/Output_UTF8.java,
2944 gnu/gcj/convert/UnicodeToBytes.java,
2945 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2947 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2949 * Makefile.in, configure: Rebuilt.
2950 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2951 not if test subdir exists.
2952 (--enable-gcj-classes): Removed; gcj always used to generate
2954 (JAVA, JAVAC): Removed.
2955 (--enable-single-compilation, --enable-source-compilation):
2958 (NATIVE): New conditional.
2959 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2960 `install-exec' to work.
2961 (toolexeclibdir): Likewise.
2962 (toollib_LIBRARIES): Likewise.
2963 (AM_MAKEFLAGS): Don't pass tooldir.
2965 (javao_files): Redefined.
2966 (java_source_files): New macro.
2967 (c_source_files): New macro.
2968 (c_files): Redefined in terms of c_source_files.
2969 (java_io_files, java_lang_files, java_net_files, java_text_files,
2970 java_util_files, gnu_files, java_files): Removed.
2971 (class_io_files, class_lang_files, class_net_files,
2972 class_text_files, class_util_files, class_gnu_files, class_files):
2974 (nat_source_files): New macro.
2975 (nat_files): Redefined in terms of nat_source_files.
2976 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2977 java_source_files. Removed no-such-file.c.
2979 (ETAGS_ARGS): Removed.
2980 (TAGS_DEPENDENCIES): Likewise.
2981 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2983 (src_io_files, src_lang_files, src_text_files, src_util_files,
2984 src_gnu_files): Removed.
2985 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2986 (BUILT_SOURCES): Removed.
2987 (header-check): New target.
2989 (noinst_PROGRAMS): New macro.
2990 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2992 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2993 (gen-from-JIS): Build in top directory.
2994 (convert_source_files): New macro.
2995 (convert_SOURCES): New macro.
2996 (convert_LDFLAGS): Likewise.
2997 (convert_LINK): Likewise.
2998 (convert_LDADD): Likewise.
2999 (convert_DEPENDENCIES): Likewise.
3001 (gen-from-JIS): Removed.
3002 (gen_from_JIS_SOURCES): New macro.
3003 (gen_from_JIS_LDADD): Likewise.
3004 (gen_from_JIS_DEPENDENCIES): Likewise.
3006 * configure: Rebuilt.
3007 * configure.in (CANADIAN): Set to `yes', not `canadian'.
3008 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
3009 when defining conditional.
3011 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
3013 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
3014 The Unicode Consortium does not permit their re-distribution.
3015 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
3016 (JIS0208.h, JIS0212.h): Do not depend on removed files.
3018 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
3020 * natSystem.c (init_properties): Use malloc, realloc, free after all.
3022 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
3024 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
3025 from Unicode Consortium.
3026 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
3027 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
3028 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
3029 New tables, generated using gen-from-JIS.
3030 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
3031 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
3032 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
3033 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
3035 * gnu/gcj/convert/Convert.java: New application.
3036 * Makefile.am, Makefile.in (convert): New program, using Convert.
3037 Build the various JIS conversion tables (in maintainer mode).
3039 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
3041 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
3043 * java/net/URL.java (URL): Deal with null property value. Use "."
3044 as separator in building class name.
3045 * java/net/URLConnection.java: Implemented majority of stubbed methods.
3046 * java/net/URLStreamHandler.java (parseURL): Use "" in string
3047 manipulations instead of 'null'. Comment cleanup. Use 0 for the
3048 beginning of the substring rather than 'start'.
3050 1999-03-26 Tom Tromey <tromey@cygnus.com>
3052 * include/java-chartables.h: Rebuilt.
3053 * include/java-chardecomp.h: New file.
3054 * chartables.pl: Generate output files directly. Added support
3055 for generating decomposition header.
3056 (canonical_decomposition, full_decomposition): New globals.
3057 (DECOMPOSITION): New constant.
3058 (process_char): Call add_decomposition.
3059 (add_decomposition): New sub.
3060 (write_decompositions): New sub.
3062 1999-03-25 Tom Tromey <tromey@cygnus.com>
3064 * java/text/CollationElementIterator.java: New file.
3066 * mauve-libjava: Omit StringTest.
3068 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
3070 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
3071 without a '/' when parsing protocol. Handle ref outside of parseURL.
3072 (hashCode): Implemented.
3073 (set): Don't expand -1 to default port.
3074 (getDefaultPort): Removed.
3076 * java/net/URLStreamHandler.java (parseURL): Implemented.
3077 (toExternalForm): Implemented.
3079 1999-03-23 Tom Tromey <tromey@cygnus.com>
3081 * java/text/BreakIterator.java (getSentenceInstance):
3083 * gnu/gcj/text/SentenceBreakIterator.java: New file.
3085 * Makefile.in: Rebuilt.
3086 * Makefile.am (nat_headers): Added IllegalAccessException.
3087 * java/lang/natClass.cc (newInstance): Throw
3088 IllegalAccessException, not IllegalAccessError.
3089 Include IllegalAccessException.h.
3091 1999-03-22 Tom Tromey <tromey@cygnus.com>
3093 * gnu/gcj/text/LineBreakIterator.java: New file.
3094 * java/text/BreakIterator.java (getLineInstance): Implemented.
3096 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
3097 copy constructor private.
3098 (previous, next): Removed erroneous comment about line
3100 (previous): Correctly recognize break between non-letter on the
3101 left and letter on the right. Handle apostrophes correctly.
3103 * java/text/BreakIterator.java (getWordInstance): Implemented.
3104 * gnu/gcj/text/WordBreakIterator.java: New file.
3105 * gnu/gcj/text/CharacterBreakIterator.java: Extend
3107 * gnu/gcj/text/BaseBreakIterator.java: New file.
3109 1999-03-19 Tom Tromey <tromey@cygnus.com>
3111 * java/text/BreakIterator.java: New file (partially stubbed out).
3112 * gnu/gcj/text/CharacterBreakIterator.java: New file.
3114 * include/config.h.in: Rebuilt.
3115 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
3116 (HAVE_TIMEZONE): Likewise.
3117 * configure: Rebuilt.
3118 * configure.in: Added timezone checks.
3119 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
3122 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
3124 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
3125 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
3126 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
3127 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
3128 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
3129 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
3130 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
3131 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
3133 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
3134 (BSD_COMP): Kludge needed for Solaris2.
3136 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
3138 * java/net/URL.java (URL(java.net.URL, string): Moved code to
3139 URL(java.net.URL, string, URLStreamHandler) and call it with a
3140 null handler. In latter constructor, added SecurityManager check.
3141 (set): Expect null handler on bad protocol rather than an exception.
3142 (setURLStreamHandler): Simplified exception handling; return null
3143 on invalid protocol.
3145 1999-03-18 Tom Tromey <tromey@cygnus.com>
3147 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
3149 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
3151 Include PrintStream.h, InputStream.h.
3152 * java/lang/System.java (ForwardingInputStream,
3153 ForwardingOutputStream): Removed.
3154 (setErr, setIn, setOut): Now native.
3156 Reverted patch from 1999-02-12 to work around problem in
3158 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
3159 (_Jv_eh_free): Use free.
3161 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
3162 for path name. Minor formatting fixes.
3164 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
3166 * prims.cc (fail_on_finalization): New function.
3167 (_Jv_GCWatch): Likewise.
3169 * prims.cc (JvRunMain): Initialize `nullp'.
3170 (nullp): New global.
3171 (catch_segv): Throw nullp.
3173 * Makefile.in: Rebuilt.
3174 * Makefile.am (ZIP): In "null target" case, zip is found in the
3177 * prims.cc (_Jv_PrimClass): Initialize all elements of class
3181 * java/lang/StringBuffer.java (StringBuffer): Don't use
3182 ensureCapacity to set initial capacity.
3183 (capacity): Subtract `length' from return result.
3185 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
3187 * java/io/natFileDescriptorPosix.cc (open): Throw
3188 FileNotFoundException, but with filename and errno in msg.
3190 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
3192 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
3193 functionality folded into java/net/URL.java per spec.
3195 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
3196 than EEXIST for throwing FileNotFoundException.
3198 * java/net/URL.java: Folded in default URLStreamHandlerFactory
3199 algorithm per JDK 1.2 doc. Added SecurityManager checks.
3201 * java/net/URLStreamHandler.java (parseURL): Added stub.
3203 1999-03-15 Andrew Haley <aph@cygnus.com>
3205 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3208 1999-03-15 Andrew Haley <aph@cygnus.com>
3210 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3213 1999-03-12 Tom Tromey <tromey@cygnus.com>
3215 * prims.cc (catch_segv): New function.
3216 Include <signal.h> if HANDLE_SEGV defined. Include
3217 NullPointerException.h.
3218 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3221 * java/text/SimpleDateFormat.java (equals): Ensure that object is
3222 a SimpleDateFormat, not just a DateFormat.
3223 (defaultCenturyStart, formatData, pattern): Now private.
3224 (append): Now `final'. Use `NumberFormat.format'.
3226 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3228 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3231 * java/text/MessageFormat.java (format): Use default MessageFormat
3233 (parse, parseObject): Wrote.
3235 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3238 1999-03-12 Andrew Haley <aph@cygnus.com>
3240 * java/lang/String.java (indexOf): Replace with native method for
3242 * java/lang/natString.cc (IndexOf): As above.
3244 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3245 Argument check corrected.
3246 (init(jbyteArray,jint,jint,jstring)): Likewise.
3248 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3249 1.2 compliant method.
3251 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3253 * java/lang/Float.java (byteValue, shortValue): Likewise.
3255 1999-03-11 Tom Tromey <tromey@cygnus.com>
3257 * java/text/DecimalFormat.java (parse): Wrote.
3259 * java/text/ChoiceFormat.java (parse): Set error index on
3260 ParsePosition object.
3262 * java/lang/Integer.java (parseInt): Throw exception on overflow
3263 when intermediate result is most negative number. Changed
3264 overflow detection as well.
3265 * java/lang/Long.java (parseLong): Likewise.
3267 * configure, Makefile.in: Rebuilt.
3268 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3269 CANADIAN when building in source tree that doesn't include gcc.
3270 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3273 * java/text/ChoiceFormat.java (nextDouble): Correct some
3274 off-by-one errors when masking or adding.
3276 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3277 parameter, if given. Use `%', not IEEEremainder.
3278 (scanFix): Throw error if multiplier already set.
3279 (computePattern): Wrote.
3281 1999-03-11 Andrew Haley <aph@cygnus.com>
3283 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3285 (nextDouble): Corrected masking logic. Handle interaction between
3286 `next' and negative numbers.
3288 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3290 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3291 * java/net/URL.java: Added general comments.
3293 1999-03-10 Tom Tromey <tromey@cygnus.com>
3295 * java/text/ChoiceFormat.java (parse): Wrote.
3297 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3299 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3300 Create ChoiceFormat objects.
3301 (format): Special-case ChoiceFormat.
3302 (scanFormatElement): Include { and } in generated style string.
3304 1999-03-09 Tom Tromey <tromey@cygnus.com>
3306 * java/text/ChoiceFormat.java: New file.
3308 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3310 * java/net/BindException.java: Created.
3311 * java/net/ConnectException.java: Created.
3312 * java/net/ContentHandler.java: Created.
3313 * java/net/ContentHandlerFactory.java: Created.
3314 * java/net/FileNameMap.java: Created.
3315 * java/net/MalformedURLException.java: Created.
3316 * java/net/NoRouteToHostException.java: Created.
3317 * java/net/ProtocolException.java: Created.
3318 * java/net/ServerSocket.java (@author): Fixed typo.
3319 * java/net/Socket.java (@author): Fixed typo.
3320 * java/net/SocketImpl.java (@author): Fixed typo.
3321 * java/net/SocketImplFactory.java (@author): Fixed typo.
3322 * java/net/URL.java: Created - nearly complete.
3323 * java/net/URLConnection.java: Created - near-empty stub.
3324 * java/net/URLStreamHandler.java: Created - incomplete stub.
3325 * java/net/URLStreamHandlerFactory.java: Created.
3326 * java/net/UnknownServiceException.java: Created.
3328 1999-03-09 Tom Tromey <tromey@cygnus.com>
3330 * java/lang/System.java (ForwardingInputStream): New class.
3331 (ForwardingOutputStream): Likewise.
3332 (in, out, err): Now `final' forwarding streams.
3333 (setIn, setOut, setErr): Use appropriate method on forwarding
3336 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3339 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3341 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3342 * java/util/zip/Checksum.java: New interface (complete).
3343 * java/util/zip/Deflater.java: New class (near-empty stub).
3344 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3345 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3346 * java/util/zip/ZipEntry.java: New class (complete).
3347 * java/util/zip/ZipException.java: New class (complete).
3348 * java/util/zip/ZipFile.java: New class (incomplete stub).
3349 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3351 1999-03-09 Tom Tromey <tromey@cygnus.com>
3353 * java/text/MessageFormat.java (MessageFormatElement): Removed
3354 `public' specifiers.
3356 * java/text/DecimalFormat.java (scanFormat): Increment index
3357 before processing exponential format. Fixed a couple typos in
3359 (format): Correct normalization of exponent.
3361 1999-03-08 Tom Tromey <tromey@cygnus.com>
3363 * java/text/SimpleDateFormat.java (parse): Throw
3364 IllegalArgumentException, not ParseException.
3366 1999-03-05 Tom Tromey <tromey@cygnus.com>
3368 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3369 when constructing DateFormatSymbols. Initialize numberFormat
3370 field of superclass.
3372 * java/text/DateFormat.java (equals): Rewrote.
3373 (getAvailableLocales): New method.
3374 (getDateInstance): New methods.
3375 (getDateTimeInstance): Likewise.
3376 (getTimeInstance): Likewise.
3377 (getInstance): New method.
3378 (computeInstance): New method.
3380 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3382 (safeGetResource): New method.
3383 (DateFormatSymbols): Use Locale paramater.
3384 (equals): Now protected.
3385 Made instance variables private.
3387 1999-03-04 Tom Tromey <tromey@cygnus.com>
3389 * java/text/DecimalFormat.java: New file.
3391 * java/text/NumberFormat.java (groupingUsed,
3392 maximumFractionDigits, maximumIntegerDigits,
3393 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3395 (setDecimalSeparatorAlwaysShown, setMultiplier,
3396 setPositivePrefix): Removed.
3397 (setMinimumFractionDigits, setMaximumFractionDigits):
3399 (format): Now final.
3400 Added many new methods.
3402 * Makefile.in: Rebuilt.
3403 * Makefile.am (gnu_files): New macro.
3404 (java_files): Added gnu_files.
3405 (class_gnu_files): New macro.
3406 (class_files): Use it.
3407 (src_gnu_files): New macro.
3408 (gnu.o): New target.
3409 (javao_files): Added gnu.o.
3411 * gnu/gcj/text/LocaleData_en_US.java: New file.
3412 * gnu/gcj/text/LocaleData_en.java: New file.
3413 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3414 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3415 (safeGetString): New method.
3416 (safeGetChar): Likewise.
3418 1999-03-03 Tom Tromey <tromey@cygnus.com>
3420 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3423 * java/text/FieldPosition.java (equals): Don't check for null
3424 object; instanceof does this.
3426 * java/util/Locale.java (clone): New method.
3429 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3431 * doc/cni.sgml: New file.
3433 1999-03-03 Tom Tromey <tromey@cygnus.com>
3435 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3437 * java/text/DecimalFormatSymbols.java: New file.
3439 1999-03-02 Tom Tromey <tromey@cygnus.com>
3441 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3443 * configure: Rebuilt.
3444 * configure.in: Check for sys/filio.h.
3446 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3448 (load): Always throw UnsatisfiedLinkError.
3449 (loadLibrary): Likewise.
3451 1999-03-02 Anthony Green <green@cygnus.com>
3453 * LIBGCJ_LICENSE: New file.
3454 * LIBJAVA_LICENSE: Removed.
3455 * Many files: libjava now libgcj.
3457 1999-03-02 Tom Tromey <tromey@cygnus.com>
3459 * include/java-chartables.h: Rebuilt.
3460 * chartables.pl (print_block): Make table `const'.
3461 (print_numerics): Likewise.
3462 (print_single_map): Likewise.
3463 (print_all_block): Likewise.
3464 (print_case_table): Likewise.
3465 (print_fast_tables): Likewise.
3466 * java/lang/natCharacter.cc (table_search): `table' argument now
3469 1999-03-01 Tom Tromey <tromey@cygnus.com>
3471 * java/util/Date.java (before, after): Inverted logic.
3473 * java/util/Date.java (parse): Handle case where first character
3474 in string is open parenthesis.
3475 (skipParens): Rewrote.
3477 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3478 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3480 * java/util/Date.java (parse): Correctly compute beginning of
3483 * java/util/Hashtable.java (get): Throw NullPointerException if
3485 (containsKey): Likewise.
3487 * java/util/Properties.java (list): Truncate value to 37
3488 characters and add `...'.
3490 * java/lang/Byte.java (parseByte): Pass `radix' to
3493 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3495 Include System.h, PrintStream.h.
3497 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3500 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3502 * configure: Rebuilt.
3503 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3506 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3508 * java/lang/SecurityManager.java: Import java.net.*.
3509 (checkMulticast): New methods.
3511 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3513 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3514 (nat_files): Add java/lang/reflect/natArray.o.
3515 (nat_headers): Add Field.h and NoSuchFieldException.h.
3517 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3518 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3519 (_Jv_FromReflectedField): Fix buglet.
3520 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3521 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3522 * prims.cc (_Jv_Abort): Include message in print-out.
3524 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3525 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3526 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3528 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3529 * include/config.h.in (HAVE_PWD_H): New feature macro.
3530 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3531 user.name, user.home, user.dir.
3533 * java/lang/reflect/Array.java: New class.
3534 * java/lang/reflect/natArray.cc: New native methods.
3535 * include/javaprims.h: Declare java::lang::reflect::Array.
3537 * java/lang/Class.h (getField): New private method. Add friends.
3538 * java/lang/Class.java (getField): Add private overload.
3539 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3540 getDeclaredMethods): Add working implementations.
3541 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3542 Finish implementation, except for access control.
3544 * java/lang/reflect/Modifier.java (toString): New overload.
3545 * include/java-method.h: New file.
3546 * java/lang/reflect/Method.java (index): Replaced by offset field.
3547 Remove various private fields - get them from _Jv_Field instead.
3548 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3549 New method implementations.
3551 * java/text/NumberFormat.java: Add a bunch of methods.
3553 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3555 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3557 1999-02-26 Tom Tromey <tromey@cygnus.com>
3559 * include/config.h.in: Rebuilt.
3560 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3561 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3562 HAVE_GETHOSTBYADDR_R): New defines.
3563 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3564 gethostbyaddr_r if available.
3566 * configure: Rebuilt.
3567 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3569 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3573 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3574 * prims.cc (_Jv_AllocBytesChecked): New function.
3576 * Makefile.in: Rebuilt.
3577 * Makefile.am (SUBDIRS): Removed `test'.
3578 * configure: Rebuilt.
3579 * configure.in: Don't build test/Makefile.
3580 * test/*: Removed all files.
3582 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3584 * java/lang/reflect/Constructor.java: Make class final to match spec.
3585 * java/lang/reflect/Method.java: Ditto.
3587 1999-02-25 Tom Tromey <tromey@cygnus.com>
3589 * java/net/natInetAddress.cc: Include <sys/types.h> before
3591 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3594 * java/net/natInetAddress.cc: Declare gethostname if required.
3595 * include/config.h.in: Rebuilt.
3596 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3597 * configure: Rebuilt.
3598 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3599 declared in unistd.h.
3601 1999-02-24 Tom Tromey <tromey@cygnus.com>
3603 * Makefile.in: Rebuilt.
3604 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3605 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3606 from private to "none".
3608 * include/javaprims.h: Regenerated class declarations with new
3610 * classes.pl (scan): Only generate decls for java.lang, java.io,
3613 1999-02-24 Tom Tromey <tromey@cygnus.com>
3615 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3616 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3618 1999-02-23 Tom Tromey <tromey@cygnus.com>
3620 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3621 not already defined.
3622 * java/io/natFile.cc (_REENTRANT): Only define if not already
3624 * include/config.h.in: Rebuilt.
3625 * acconfig.h (HAVE_BOEHM_GC): New define.
3626 * configure: Rebuilt.
3627 * configure.in: Define HAVE_BOEHM_GC if using it.
3628 * posix-threads.cc: Include boehm-config.h and gc.h if
3630 * include/posix-threads.h: Added explanatory note about Boehm GC.
3632 * java/io/BufferedReader.java (readLine): Only return null when
3633 EOF seen before any characters read. (In particular, an empty
3634 line should not return null.)
3636 * java/io/BufferedInputStream.java (read): Only refill once per
3639 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3640 java.lang.Character.classify12, java.lang.String.hash,
3641 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3642 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3644 * java/text/StringCharacterIterator.java (setIndex): No error if
3646 (next): Check for `pos == end', not `end - 1'.
3647 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3648 for null text in each constructor.
3649 (clone): Fixed order of arguments to constructor.
3651 1999-02-22 Tom Tromey <tromey@cygnus.com>
3653 * include/config.h.in: Rebuilt.
3654 * acconfig.h (HAVE_INET6): New define.
3655 (HAVE_SOCKLEN_T): Likewise.
3656 * java/net/PlainSocketImpl.java: Added copyright header.
3657 * java/net/natPlainSocketImpl.cc: Added copyright header.
3658 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3660 (connect): Likewise.
3662 (socklen_t): New typedef.
3663 (accept): Use socklen_t.
3664 * java/net/natInetAddress.cc: Added copyright header.
3665 (HAVE_GETHOSTNAME): Don't define.
3666 (HAVE_INET_ADDR): Likewise.
3667 (lookup): Fixed typo.
3668 (aton): Don't use `address' as name of local variable.
3669 (lookup): Use HAVE_INET6, not AF_INET6.
3671 * configure: Rebuilt.
3672 * configure.in: Look for functions inet_aton, inet_addr,
3673 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3674 Check for socklen_t typedef.
3676 * exception.cc (__throw): Declare as __noreturn__.
3678 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3680 * Makefile.am, Makefile.in: Also build java/net.
3681 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3683 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3684 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3686 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3687 * include/cni.h (JvMalloc, JvFree): New inline functions.
3688 (JvThrow): Add __noreturn__ attribute.
3689 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3690 (_Jv_Throw): Add __noreturn__ attribute.
3692 * java/net/PlainSocketImpl.java: Init fnum to -1.
3693 * java/net/ServerSocket.java: Add missing throws clauses.
3694 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3695 don't call create on the latter. Instead, other constructors
3696 have to explicitly call SocketImpl.create.
3697 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3698 from size_t to int, to match ::accept prototype.
3699 * java/net/natInetAddress.cc: Use JvFree rather than free.
3702 1999-02-22 Tom Tromey <tromey@cygnus.com>
3704 * include/javaprims.h: Added new classes.
3705 * java/text/StringCharacterIterator.java: New file.
3706 * java/text/CharacterIterator.java: New file.
3708 * java/text/ParseException.java (errorOffset): Now private.
3710 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3712 * java/net: New package.
3713 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3714 Socket.java,SocketException.java,SocketImpl.java,
3715 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3716 natPlainSocketImpl.cc}: New classes.
3718 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3719 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3720 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3721 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3723 * classes.pl: Translate package into "namespace", not "class".
3724 * include/javaprims.h: Update class list, using "namespace".
3726 1999-02-21 Tom Tromey <tromey@cygnus.com>
3728 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3729 Define when appropriate.
3731 1999-02-20 Tom Tromey <tromey@cygnus.com>
3733 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3734 as a single byte and \u07ff as two bytes.
3735 (_Jv_GetStringUTFLength): Likewise.
3736 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3737 with 0x0f, not 0x1f.
3739 1999-02-19 Tom Tromey <tromey@cygnus.com>
3741 * java/io/DataOutputStream.java (writeUTF): When encoding
3742 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3743 * java/io/DataInputStream.java (readUTF): Mask second byte of
3744 3-byte character with 0x3f, not 0x1f.
3746 * java/io/DataInputStream.java (readLong): Cast result of
3747 readUnsignedByte to long before using.
3749 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3752 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3753 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3754 argument to avoid warning.
3755 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3756 argument to avoid warning.
3758 1999-02-18 Tom Tromey <tromey@cygnus.com>
3760 * mauve-libjava: Omit java.io.DataInputOutput and
3761 java.io.Utf8Encoding.
3763 1999-02-17 Tom Tromey <tromey@cygnus.com>
3765 * Makefile.in: Rebuilt.
3766 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3767 * java/io/natFileDescriptorPosix.cc: Include
3768 InterruptedIOException.h, Thread.h.
3769 (write): Throw InterruptedIOException when required.
3771 * posix-threads.cc: Include <signal.h>.
3772 (_Jv_ThreadInterrupt): New function.
3774 (handle_intr): New function.
3775 (_Jv_InitThreads): Register handle_intr via sigaction.
3776 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3777 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3778 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3779 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3781 1999-02-19 Andrew Haley <aph@cygnus.com>
3783 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3785 (ThreadGroup (int)): Set the maximum priority of the initial
3788 1999-02-18 Andrew Haley <aph@cygnus.com>
3790 * java/lang/natClass.cc (forName): Check for the case where a
3791 classname is the name of an array and call FindClassFromSignature
3794 1999-02-18 Andrew Haley <aph@cygnus.com>
3796 * java/lang/StringBuffer (insert (int, String)): Move up any
3797 characters above the insert position and increase the length of
3798 the string buffer by the length of the argument.
3799 (insert (int, char[])): Likewise.
3800 (insert (int, char)): Likewise.
3801 (StringBuffer (String)): The initial capacity of the string buffer
3802 is 16 plus the length of the argument.
3803 (getChars): Add a JDK 1.2 FIXME.
3805 1999-02-18 Andrew Haley <aph@cygnus.com>
3807 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3810 1999-02-18 Andrew Haley <aph@cygnus.com>
3812 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3813 instead of floating-point equality. This is necessary for
3814 correct floating-point Hashtables.
3815 * java/lang/Float.java (equals): Ditto.
3817 1999-02-16 Tom Tromey <tromey@cygnus.com>
3819 * java/util/Properties.java (list): Truncate value to 37
3820 characters and add "...".
3822 1999-02-16 Tom Tromey <tromey@cygnus.com>
3824 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3825 if initCap is negative.
3826 (contains): Implement JDK1.2-style handling of null argument.
3827 (removeElement): Likewise.
3828 (indexOf): Likewise. Also, correctly handle case where idx is
3830 (lastIndexOf): Likewise.
3832 1999-02-16 Tom Tromey <tromey@cygnus.com>
3834 * java/lang/natString.cc (init): Increment source pointer in
3837 1999-02-16 Tom Tromey <tromey@cygnus.com>
3839 * exception.cc: Include NullPointerException.h.
3840 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3842 1999-02-16 Tom Tromey <tromey@cygnus.com>
3844 * Makefile.in: Rebuilt.
3845 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3847 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3849 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3850 we're compiling canadian.
3851 * configure: Regenerated.
3853 1999-02-12 Andrew Haley <aph@cygnus.com>
3855 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3856 deleted from libgcj.
3858 1999-02-12 Tom Tromey <tromey@cygnus.com>
3860 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3861 (_Jv_eh_free): Don't call free.
3862 Don't declare malloc or free.
3864 1999-02-11 Tom Tromey <tromey@cygnus.com>
3866 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3868 1999-02-11 Andrew Haley <aph@cygnus.com>
3870 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3871 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3872 needed by java.lang.*.
3873 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3874 wf_fmod.o: Removed from libjava.a.
3876 1999-02-11 Tom Tromey <tromey@cygnus.com>
3878 * include/javaprims.h: Reverted previous change; with it
3879 exception.cc can't compile.
3881 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3883 * include/config.h.in: Rebuilt.
3884 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3886 * configure: Rebuilt.
3887 * configure.in: Check for sched_yield. Look in thread library for
3888 all thread functions.
3890 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3891 no recursive mutexes.
3892 (_Jv_MutexDestroy): Define when required.
3893 (_Jv_MutexLock): Likewise.
3894 (_Jv_MutexUnlock): Likewise.
3895 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3896 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3897 (_Jv_Mutex_t): New structure.
3898 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3899 (_Jv_MutexLock): Likewise.
3900 (_Jv_MutexUnlock): Likewise.
3902 1999-02-10 Tom Tromey <tromey@cygnus.com>
3904 * aclocal.m4, configure, Makefile.in: Rebuilt.
3905 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3907 * configure.in: Changed to track library changes.
3908 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3909 (AM_CXXFLAGS): Likewise.
3910 (data_DATA): Likewise.
3911 (AM_CFLAGS): Likewise.
3912 (JC1FLAGS): Likewise.
3913 (libgcj_a_SOURCES): Likewise.
3914 (EXTRA_libgcj_a_SOURCES): Likewise.
3915 (libgcj_a_DEPENDENCIES): Likewise.
3916 (libgcj_a_LIBADD): Likewise.
3917 (libgcj.zip): Likewise.
3918 (CLEANFILES): Likewise.
3919 ($(nat_headers)): Likewise.
3920 (java/lang/FirstThread.h): Likewise.
3921 (java/lang/ThreadGroup.h): Likewise.
3922 (java/lang/String.h): Likewise.
3923 (java/lang/reflect/Field.h): Likewise.
3924 (BUILT_SOURCES): Likewise.
3925 (maintainer-check): Likewise.
3926 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3927 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3929 * java/util/natGregorianCalendar.cc (computeFields): Only use
3930 gmtime_r and localtime_r when configured for posix threads.
3932 * java/io/natFile.cc (get_entry): Only use readdir_r when
3933 configured for posix threads.
3935 * java/util/natGregorianCalendar.cc: Update copyright notice.
3936 * java/util/TimeZone.java: Ditto.
3937 * java/util/SimpleTimeZone.java: Ditto.
3939 1999-02-08 Tom Tromey <tromey@cygnus.com>
3941 * java/io/PrintStream.java (line_separator): New constant.
3942 (print): Use line_separator, not `file.separator' property.
3943 (println): Use line_separator.
3945 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3946 when trying to instantiate Class.
3948 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3949 NullPointerException if argument is null.
3951 * java/lang/Thread.java (setName): Throw NullPointerException, not
3952 IllegalArgumentException.
3955 1999-02-08 Andrew Haley <aph@cygnus.com>
3957 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3958 create new Classes with Class.newInstance().
3960 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3961 semiciolon to end of an array Class's signature if the elements of
3962 the array aren't themselves arrays.
3964 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3965 array of objects is always sizeof(jobject), not the size of the
3966 object to which the reference points.
3968 1999-02-08 Tom Tromey <tromey@cygnus.com>
3970 * java/util/BitSet.java (and): Throw NullPointerException when
3975 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3976 if argument is negative.
3977 (clear): Correctly compute `offset'. Throw
3978 IndexOutOfBoundsException when required.
3980 (get): Likewise. Also, return correct value.
3981 (ensure): Changed meaning of argument.
3982 (toString): Wrap contents in `{}'; put spaces after commas.
3983 (hashCode): Don't try to examine elements off the end of array.
3984 (or): Correctly include bits past the end of this bit set.
3987 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3989 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3990 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3992 1999-02-04 Andrew Haley <aph@cygnus.com>
3994 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3995 '/' in signatures to '.'
3996 (Class::getName): Likewise,
3997 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3999 * java/lang/natFirstThread.cc (run): Change '/' in main's
4002 1999-02-03 Andrew Haley <aph@cygnus.com>
4004 * configure.host: -ffloat-store added when compiling libjava on
4005 x86. fdlibm apparently relies on this.
4007 * java/lang/ThreadGroup.java (add): throw an exception if the
4008 ThreadGroup has been destroyed.
4010 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
4013 1999-01-27 Tom Tromey <tromey@cygnus.com>
4015 * java/lang/StringBuffer.java (StringBuffer): Handle null
4018 1999-01-21 Tom Tromey <tromey@cygnus.com>
4020 * java/lang/natFirstThread.cc (run): Don't require main to be
4023 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
4025 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
4027 1999-01-20 Tom Tromey <tromey@cygnus.com>
4029 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
4033 (unintern): Likewise.
4034 (_Jv_NewStringUtf8Const): Likewise.
4036 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
4037 Character.isLetter, to see if character is self-quoting. Also,
4038 correctly handle quoted characters.
4039 (parse): Fixed typo. Also now throws ParseException.
4041 1999-01-15 Tom Tromey <tromey@cygnus.com>
4043 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
4045 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
4046 _Jv_SyncInfo has `init' member.
4048 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
4051 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
4052 IllegalMonitorStateException if unlock fails.
4054 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
4056 (_Jv_NewObjectArray): Likewise.
4058 1999-01-14 Tom Tromey <tromey@cygnus.com>
4060 * java/lang/Character.java (isJavaIdentifierPart): Allow
4061 LETTER_NUMBER characters.
4063 * chartables.pl (process_char): Fixed error messages.
4065 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
4066 * chartables.pl: Updated comments. Changed detection of non-digit
4067 numeric values (no longer miss \u00b2 and friends).
4069 * java/lang/Character.java (isJavaIdentifierPart): Recognize
4070 currency symbols and connector punctuation.
4071 (isIdentifierIgnorable): Make 7f-9f ignorable.
4073 * prims.cc (_Jv_NewObjectArray): Check for overflow.
4074 (_Jv_NewPrimArray): Likewise.
4075 (SIZE_T_MAX): New define.
4077 * java/lang/ClassLoader.java (system): Now private and final.
4079 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
4082 * configure: Rebuilt.
4083 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
4085 * exception.cc: Include gansidecl.h.
4087 1999-01-14 Andrew Haley <aph@cygnus.com>
4089 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
4090 corrected: they didn't treat -0.0 and NaNs correctly.
4092 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
4094 * nogc.cc: Use calloc to zero out memory.
4096 1999-01-11 Tom Tromey <tromey@cygnus.com>
4098 * java/lang/natClass.cc (isInstance): Return false if this class
4099 is primitive, not if class of `obj' is primitive.
4100 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
4102 * java/io/SequenceInputStream.java (close): Handle case where `in'
4105 * java/text/DateFormat.java (format): New method.
4107 * mauve-libjava: Omit java.text.DateFormat.
4109 1999-01-08 Tom Tromey <tromey@cygnus.com>
4111 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
4113 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
4115 (_Jv_CondNotifyAll): Likewise.
4117 * configure: Rebuilt.
4118 * configure.in: Change --enable-source-compilation logic to work
4121 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
4123 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4124 and RUNTESTFLAGS from AM_MAKEFLAGS.
4125 * configure.in: AM_RUNTESTFLAGS added.
4126 * configure.host: AM_RUNTESTFLAGS added.
4127 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
4128 * configure: rebuilt.
4129 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
4131 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
4132 argv[] made conditional because embedded targets may not have
4134 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
4135 explanatory comments added in call to super.
4137 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
4138 exception thrown in the test harness itself added.
4139 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
4141 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
4143 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
4145 1999-01-06 Tom Tromey <tromey@cygnus.com>
4147 * java/io/natFile.cc (get_entry): New function.
4148 (performList): Use get_entry.
4149 * include/config.h.in: Rebuilt.
4150 * acconfig.h (HAVE_READDIR_R): New define.
4151 * configure: Rebuilt.
4152 * configure.in: Look for readdir_r.
4154 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
4156 * java/util/natDate.cc: Added copyright header.
4158 1999-01-05 Tom Tromey <tromey@cygnus.com>
4160 * include/config.h.in: Rebuilt.
4161 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
4162 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
4163 * configure: Rebuilt.
4164 * configure.in: Check for access, stat, mkdir, rename, rmdir,
4165 unlink, and realpath.
4166 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
4167 (stat): Conditionalize on HAVE_STAT.
4169 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
4170 (performMkdir): Conditionalize on HAVE_MKDIR.
4171 (performRenameTo): Conditionalize on HAVE_RENAME.
4172 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
4174 * include/config.h.in: Rebuilt.
4175 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
4176 * configure: Rebuilt.
4177 * configure.in: Check for gmtime_r and localtime_r. For cross
4178 builds, assume they exist.
4180 * mauve-libjava: Include java.text.DateFormatSymbols again.
4181 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
4182 from setAmPmStrings.
4184 * mauve-libjava: Omit java.text.DateFormatSymbols.
4186 1999-01-04 Tom Tromey <tromey@cygnus.com>
4188 * java/io/PushbackReader.java: `off' already includes `numBytes'.
4190 * java/io/LineNumberReader.java (read): Decrement `count' in
4193 * java/io/BufferedWriter.java (write): Correctly determine when
4194 incoming data would overrun buffer. Flush buffer if write causes
4197 * java/io/BufferedOutputStream.java (write): Increment `count'
4198 after copying data into buffer.
4200 * java/io/FilterOutputStream.java (close): Call flush first.
4202 * java/io/PipedReader.java (read): If read causes `out' to catch
4203 up with `in', then set `in' to -1.
4205 * java/io/LineNumberInputStream.java (read): If no bytes read,
4206 return -1. If no bytes requested, return 0.
4208 * java/lang/StringBuffer.java (insert): If `str' is null, use
4211 1998-12-30 Anthony Green <green@cygnus.com>
4214 * LIBJAVA_LICENSE, COPYING.LIB: Created.
4216 1998-12-23 Tom Tromey <tromey@cygnus.com>
4218 * java/io/PushbackInputStream.java (read): `off' already includes
4221 1998-12-17 Tom Tromey <tromey@cygnus.com>
4223 * Makefile.in: Rebuilt.
4224 * Makefile.am (GCJ_canadian): Include target_alias.
4226 * java/lang/natFirstThread.cc (run): Require main's class to be
4229 1998-12-16 Tom Tromey <tromey@cygnus.com>
4231 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4233 * java/util/ResourceBundle.java (getBundle): Throw
4234 NullPointerException if locale argument is null.
4236 * java/lang/natClass.cc (forName): Throw NullPointerException if
4238 Include NullPointerException.h.
4240 1998-12-14 Tom Tromey <tromey@cygnus.com>
4242 * java/lang/Character.java (Character): Implement Comparable.
4243 (compareTo): New methods.
4245 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4246 correct country and language codes.
4247 (UK, US): New constants.
4248 (setDefault): Language codes are lower-case.
4250 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4251 (getDeclaredConstructors): Likewise.
4252 (getDeclaredField): Likewise.
4253 (getDeclaredFields): Likewise.
4254 (getDeclaredMethod): Likewise.
4255 (getDeclaredMethods): Likewise.
4256 (getField): Likewise.
4257 (getFields): Likewise.
4258 (getMethod): Likewise.
4259 (getMethods): Likewise.
4260 * java/lang/Class.java: Declare new methods.
4261 * java/lang/Class.h: Declare new methods.
4263 * java/lang/natString.cc: Removed `#pragma implementation'.
4264 * include/cni.h (_Jv_GetStringChars): New function.
4265 * Makefile.in: Rebuilt.
4266 * Makefile.am (java/lang/String.h): Don't generate definition for
4269 * java/lang/natString.cc: Added `#pragma implementation'.
4271 * Makefile.in: Rebuilt.
4272 * Makefile.am (libjava.zip): Put build directory first in class
4273 path to avoid bug in compiler.
4275 1998-12-14 Anthony Green <green@cygnus.com>
4277 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4279 * include/javaprims.h: Add EventObject, ListResourceBundle and
4282 1998-12-13 Anthony Green <green@cygnus.com>
4284 * mauve-libjava: Run the ResourceBundle tests.
4286 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4289 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4291 * configure.in, configure: Make --enable-gcj-classes and
4292 --enable-source-compilation the default. (Nervously...) Yeah!
4293 Based on a patch from Tom Tromey.
4295 1998-12-13 Tom Tromey <tromey@cygnus.com>
4297 * java/util/EventObject.java: New file.
4298 * java/util/EventListener.java: New file.
4300 * include/javaprims.h: Updated class declarations.
4301 * Makefile.in: Rebuilt.
4302 * Makefile.am (nat_headers): Added Constructor.h.
4303 (java/lang/String.h): Don't inline String::length().
4304 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4305 * java/lang/Class.java (initializeClass, hackRunInitializers,
4306 hackTrampoline): No need to mark `final'.
4307 (getConstructor, getConstructors): Declare.
4308 * java/lang/reflect/Field.java (equals): New method.
4309 * java/lang/natClass.cc (getConstructor): New method.
4310 (getConstructors): Likewise.
4311 Include Method.h, Field.h, Constructor.h.
4312 * java/lang/reflect/Constructor.java: New file.
4313 * java/lang/reflect/Method.java (toString): No space before open
4315 (equals): Simplified.
4317 1998-12-13 Anthony Green <green@cygnus.com>
4319 * java/util/ResourceBundle.java: New file.
4320 * java/util/ListResourceBundle.java: New file.
4322 1998-12-12 Tom Tromey <tromey@cygnus.com>
4324 * java/lang/System.java (in, out, err): Now buffered streams by
4327 * include/javaprims.h: Updated class declarations.
4328 * Makefile.in: Rebuilt.
4329 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4330 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4332 (nat_files): Added natMethod.o.
4333 * java/lang/reflect/natMethod.cc: New file.
4334 * java/lang/reflect/Field.java (Field): Now extends
4336 * java/lang/reflect/AccessibleObject.java: New file.
4337 * java/lang/reflect/InvocationTargetException.java: New file.
4339 1998-12-11 Tom Tromey <tromey@cygnus.com>
4341 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4342 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4343 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4345 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4347 1998-12-09 Tom Tromey <tromey@cygnus.com>
4349 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4352 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4353 character is already titlecase.
4355 * java/lang/Character.java (isJavaLetter): Follow spec.
4356 (isJavaLetterOrDigit): Likewise.
4358 * java/util/GregorianCalendar.java (gregorianCutover): Append
4361 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4363 1998-12-08 Tom Tromey <tromey@cygnus.com>
4365 * java/lang/reflect/Modifier.java (toString): Replace second
4366 `static' with `synchronized'.
4368 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4369 * java/lang/Object.h (Object::hack12_6): Declare.
4370 * java/lang/Object.java (hack12_6): New function.
4372 1998-12-07 Tom Tromey <tromey@cygnus.com>
4374 * include/java-array.h (__JArray::clone): Removed decl.
4375 * prims.cc (__JArray::clone): Removed.
4376 * java/lang/natObject.cc (clone): Incorporate code to clone an
4379 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4380 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4381 Correctly use dtable_method_count.
4383 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4385 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4388 1998-12-06 Anthony Green <green@cygnus.com>
4390 * mauve-libjava: Don't test ResourceBundle.
4392 1998-12-04 Tom Tromey <tromey@cygnus.com>
4394 More JDK 1.2 spec fixes:
4395 * java/util/Date.java (millis): Now private.
4396 * java/text/DateFormat.java (DateFormat): Constructor now
4398 * java/lang/Void.java (Void): New private constructor.
4399 * java/lang/System.java (System): New private constructor.
4400 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4402 (currentClassLoader): New method.
4403 (currentLoadedClass): New method.
4404 * java/lang/Math.java (Math): New private constructor.
4405 * java/lang/Compiler.java (Compiler): New private constructor.
4406 * java/lang/Class.java (Class): New private constructor.
4407 * java/lang/Double.java (toString): Removed access specifier from
4408 two-argument `toString' method.
4410 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4412 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4413 causes it to be flushed from an fp register (where it may be
4414 longer than double precision) to a double in memory. This is
4415 essential to ensure correct rounding behaviour.
4417 1998-12-04 Tom Tromey <tromey@cygnus.com>
4419 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4422 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4423 explaining apparent divergence from JDK 1.2.
4425 1998-12-04 Per Bothner <bothner@cygnus.com>
4427 * include/no-threads.h: Remove unused parameter names.
4428 This silences a bunch of warnings.
4430 1998-12-04 Tom Tromey <tromey@cygnus.com>
4432 * include/config.h.in: Rebuilt.
4433 * acconfig.h (HAVE_CTIME_R): New symbol.
4435 1998-12-03 Tom Tromey <tromey@cygnus.com>
4437 * mauve-libjava: Added many more categories to reject.
4439 Changes to follow JDK1.2 spec:
4440 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4441 setErr, setIn, setOut): No need to be `final'.
4442 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4443 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4444 * java/lang/Object.java (wait): `nanos' argument is an int.
4445 * java/lang/VirtualMachineError.java: Class is abstract.
4446 * java/lang/ThreadDeath.java: Made constructors public.
4447 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4450 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4452 * java/text/DateFormatSymbols.java (getAmPmStrings,
4453 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4455 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4457 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4458 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4459 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4462 * java/lang/IllegalThreadStateException.java
4463 (IllegalThreadStateException): Changed extending class to match spec.
4465 * java/lang/NumberFormatException.java
4466 (java/lang/NumberFormatException): Changed extending class to match
4469 * java/util/Observer.java (Observer): Changed sig to match JCL.
4471 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4473 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4474 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4475 signature to match JDK 1.1 and 1.2.
4477 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4479 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4480 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4481 * Makefile.in, configure: Rebuilt.
4483 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4486 1998-12-02 Tom Tromey <tromey@cygnus.com>
4488 * mauve-libjava: New file.
4490 The remaining `-W -Wall' fixes:
4491 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4493 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4495 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4497 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4499 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4501 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4503 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4505 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4507 * java/lang/mprec.c (Balloc): Removed unused variable.
4508 (mult): Added parentheses per gcc suggestion.
4509 (pow5mult): Likewise.
4514 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4515 suggestion. Added cast to `int' to avoid signed/unsigned
4517 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4519 (IsAssignableFrom): Likewise.
4520 (_Jv_JNI_GetObjectField): Likewise.
4521 (_Jv_JNI_GetByteField): Likewise.
4522 (_Jv_JNI_GetShortField): Likewise.
4523 (_Jv_JNI_GetIntField): Likewise.
4524 (_Jv_JNI_GetLongField): Likewise.
4525 (_Jv_JNI_GetStringLength): Likewise.
4526 (_Jv_JNI_ToReflectedField): Likewise.
4527 (_Jv_JNI_FromReflectedField): Likewise.
4528 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4530 * Makefile.in: Rebuilt.
4531 * Makefile.am (AM_CFLAGS): Define conditionally.
4532 (WARNINGS): New macro.
4533 (AM_CXXFLAGS): Include WARNINGS.
4534 * configure: Rebuilt.
4535 * configure.in (USING_GCC): New conditional.
4537 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4539 * java/lang/Character.java: Changed classification constants to
4540 type `byte' to match JDK 1.2 docs.
4542 1998-12-01 Tom Tromey <tromey@cygnus.com>
4544 Some fixes to be `-W -Wall' clean:
4545 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4546 (_Jv_MarkArray): Likewise.
4547 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4548 (to_upper_title): Likewise.
4549 (isTitleCase): Likewise.
4550 (toTitleCase): Likewise.
4551 (getNumericValue): Likewise.
4552 (isLowerCase): Likewise.
4553 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4554 (avoids compiler warning).
4555 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4557 (getDeclaringClass): Likewise.
4558 (_Jv_LookupInterfaceMethod): Likewise.
4559 (_Jv_NewClass): Removed name of unused parameter.
4560 * exception.cc (_Jv_type_matcher): Removed unused variable.
4561 (_Jv_setup_eh_info): Removed name of unused parameter.
4562 * prims.cc (_Jv_NewArray): Always return a value.
4563 (_Jv_FindClassFromSignature): Likewise.
4564 * include/java-field.h (getNameUtf8Const): Removed name of unused
4566 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4568 (_Jv_ThreadSetPriority): Likewise.
4570 * java/lang/natString.cc (hashChars): Now static.
4572 * java/lang/FirstThread.java (FirstThread): Now final.
4574 * java/io/File.java (performMkdir, performRenameTo): Now private.
4576 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4577 if no time function defined.
4579 * configure: Rebuilt.
4580 * configure.in: Look for ctime_r, ctime.
4581 * java/util/Date.java (toString): Now native.
4582 * java/util/natDate.cc (toString): Rewrote.
4584 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4586 * Add LDFLAGS line to allow TX39 test cases to link when cross
4589 1998-11-23 Anthony Green <green@cygnus.com>
4591 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4592 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4593 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4594 include/java-array.h, include/java-assert.h, include/java-field.h,
4595 include/javaprims.h, include/jni.h, include/jvm.h,
4596 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4597 include/quick-threads.h, java/io/BufferedInputStream.java,
4598 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4599 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4600 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4601 java/io/CharArrayWriter.java,
4602 java/io/CharConversionException.java, java/io/DataInput.java,
4603 java/io/DataInputStream.java, java/io/DataOutput.java,
4604 java/io/DataOutputStream.java, java/io/EOFException.java,
4605 java/io/File.java, java/io/FileDescriptor.java,
4606 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4607 java/io/FileOutputStream.java, java/io/FileReader.java,
4608 java/io/FileWriter.java, java/io/FilenameFilter.java,
4609 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4610 java/io/FilterReader.java, java/io/FilterWriter.java,
4611 java/io/IOException.java, java/io/InputStream.java,
4612 java/io/InputStreamReader.java,
4613 java/io/InterruptedIOException.java,
4614 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4615 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4616 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4617 java/io/PipedReader.java, java/io/PipedWriter.java,
4618 java/io/PrintStream.java, java/io/PrintWriter.java,
4619 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4620 java/io/RandomAccessFile.java, java/io/Reader.java,
4621 java/io/SequenceInputStream.java, java/io/Serializable.java,
4622 java/io/StreamTokenizer.java,
4623 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4624 java/io/StringWriter.java, java/io/SyncFailedException.java,
4625 java/io/UTFDataFormatException.java,
4626 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4627 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4628 java/io/natFileDescriptorPosix.cc,
4629 java/lang/AbstractMethodError.java,
4630 java/lang/ArithmeticException.java,
4631 java/lang/ArrayIndexOutOfBoundsException.java,
4632 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4633 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4634 java/lang/Class.java, java/lang/ClassCastException.java,
4635 java/lang/ClassCircularityError.java,
4636 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4637 java/lang/ClassNotFoundException.java,
4638 java/lang/CloneNotSupportedException.java,
4639 java/lang/Cloneable.java, java/lang/Comparable.java,
4640 java/lang/Compiler.java, java/lang/Double.java,
4641 java/lang/Error.java, java/lang/Exception.java,
4642 java/lang/ExceptionInInitializerError.java,
4643 java/lang/FirstThread.java, java/lang/Float.java,
4644 java/lang/IllegalAccessError.java,
4645 java/lang/IllegalAccessException.java,
4646 java/lang/IllegalArgumentException.java,
4647 java/lang/IllegalMonitorStateException.java,
4648 java/lang/IllegalStateException.java,
4649 java/lang/IllegalThreadStateException.java,
4650 java/lang/IncompatibleClassChangeError.java,
4651 java/lang/IndexOutOfBoundsException.java,
4652 java/lang/InstantiationError.java,
4653 java/lang/InstantiationException.java, java/lang/Integer.java,
4654 java/lang/InternalError.java, java/lang/InterruptedException.java,
4655 java/lang/LinkageError.java, java/lang/Long.java,
4656 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4657 java/lang/NoClassDefFoundError.java,
4658 java/lang/NoSuchFieldError.java,
4659 java/lang/NoSuchFieldException.java,
4660 java/lang/NoSuchMethodError.java,
4661 java/lang/NoSuchMethodException.java,
4662 java/lang/NullPointerException.java, java/lang/Number.java,
4663 java/lang/NumberFormatException.java, java/lang/Object.h,
4664 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4665 java/lang/Process.java, java/lang/Runnable.java,
4666 java/lang/Runtime.java, java/lang/RuntimeException.java,
4667 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4668 java/lang/Short.java, java/lang/StackOverflowError.java,
4669 java/lang/String.java, java/lang/StringBuffer.java,
4670 java/lang/StringIndexOutOfBoundsException.java,
4671 java/lang/System.java, java/lang/Thread.java,
4672 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4673 java/lang/Throwable.java, java/lang/UnknownError.java,
4674 java/lang/UnsatisfiedLinkError.java,
4675 java/lang/UnsupportedOperationException.java,
4676 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4677 java/lang/Void.java, java/lang/natCharacter.cc,
4678 java/lang/natClass.cc, java/lang/natDouble.cc,
4679 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4680 java/lang/natMath.cc, java/lang/natObject.cc,
4681 java/lang/natRuntime.cc, java/lang/natString.cc,
4682 java/lang/natSystem.cc, java/lang/natThread.cc,
4683 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4684 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4685 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4686 java/text/FieldPosition.java, java/text/Format.java,
4687 java/text/NumberFormat.java, java/text/ParseException.java,
4688 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4689 java/util/BitSet.java, java/util/Calendar.java,
4690 java/util/ConcurrentModificationException.java,
4691 java/util/Date.java, java/util/Dictionary.java,
4692 java/util/EmptyStackException.java, java/util/Enumeration.java,
4693 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4694 java/util/Locale.java, java/util/MissingResourceException.java,
4695 java/util/NoSuchElementException.java, java/util/Observable.java,
4696 java/util/Observer.java, java/util/Properties.java,
4697 java/util/Random.java, java/util/SimpleTimeZone.java,
4698 java/util/Stack.java, java/util/StringTokenizer.java,
4699 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4700 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4703 * exception.cc: Include eh-common.h instead of duplicating
4706 1998-11-23 Tom Tromey <tromey@cygnus.com>
4708 * configure.host: Don't add `-O2' to libjava_flags. Only add
4709 `-Os' to libjava_flags once.
4711 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4713 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4714 * Makefile.in: likewise
4715 * acconfig.h: add ECOS conditional for configure.h
4716 * config.h.in: likewise
4717 * configure: add test for --with-ecos
4718 * configure.in: likewise
4719 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4720 rename call to avoid name clash.
4721 * java/lang/natSystem.cc: add eCos clock support.
4722 * java/util/natGregorianCalendar.cc: add eCos support.
4724 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4726 * Makefile.am, Makefile.in, configure.host: tx39 build option
4729 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4731 * java/io/BufferedReader.java: Added more comments for clarity.
4732 (mark): Used more mnemonic name for local var extraBuffSpace.
4734 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4735 confusion with private method of same name in superclass.
4736 (skipRedundantLF): Set fields in special case to avoid infinite
4737 recursion. Check if markPos has been invalidated in special case.
4738 (readLine): Rewritten to use readLine method of superclass.
4739 (skip): Incorporated code from lineEnd.
4741 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4743 * java/io/BufferedReader.java (readLine): New method.
4744 (lineEnd): new private method.
4745 (mark): Track special case for readLine of getting '\r' at the
4752 * java/io/InputStreamReader.java (read): Return number chars skipped
4753 rather than requested.
4755 * java/lang/StringBuffer.java (append): Update count and differentiate
4756 between field and local variable.
4758 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4759 seconds. Deal with military style time.
4760 (parse): Consistently treat all timezones in minutes until final
4761 calculation. Flag as non-local timezone. Return value in milliseconds.
4762 (setTime): Adjust for year offset from 1900.
4763 (UTC): Adjust for year offset from 1900.
4765 1998-11-17 Tom Tromey <tromey@cygnus.com>
4767 * configure: Rebuilt.
4768 * configure.in: Switch on host, not target.
4770 * Makefile.in: Rebuilt.
4771 * Makefile.am (GCJ_no): New macro.
4772 (GCJ): Use @CANADIAN@.
4773 (GCJH_no): New macro
4774 (GCJH_canadian): New macro.
4775 (GCJH): Use @CANADIAN@.
4776 (ZIP_no): New macro.
4777 (ZIP_canadian): New macro.
4778 (ZIP): Use @CANADIAN@.
4779 * aclocal.m4, configure: Rebuilt.
4780 * configure.in (CANADIAN): Compute and subst.
4782 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4784 * java/io/FileDescriptor.java (finalize): Only close file
4785 descriptor if valid.
4787 1998-11-17 Tom Tromey <tromey@cygnus.com>
4789 * prims.cc (_Jv_InitRuntime): Removed.
4791 1998-11-16 Tom Tromey <tromey@cygnus.com>
4793 * java/io/FileOutputStream.java (close): Only close file
4794 descriptor if valid.
4795 (finalize): New method.
4797 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4798 (_Jv_NewPrimArray): Likewise.
4799 * boehm.cc (_Jv_RegisterFinalizer): Use
4800 GC_REGISTER_FINALIZER_NO_ORDER.
4801 (GC_GENERIC_MALLOC): New define.
4802 (_Jv_AllocObj): Use it.
4803 (_Jv_AllocArray): Likewise.
4804 (_Jv_AllocBytes): Likewise.
4805 (_Jv_MarkObj): Just return if vtbl not set.
4806 (_Jv_MarkArray): Likewise.
4807 (MAYBE_MARK): New macro; use everywhere.
4808 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4810 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4812 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4813 to a jlong before calculation to prevent overflow.
4815 1998-11-16 Tom Tromey <tromey@cygnus.com>
4817 * Makefile.in: Rebuilt.
4818 * Makefile.am (nat_headers): Fixed typo.
4820 1998-11-15 Tom Tromey <tromey@cygnus.com>
4822 * java/lang/Class.h (Class::getName): Removed definition.
4823 * Makefile.in: Rebuilt.
4824 * Makefile.am (nat_headers): Added InstantiationException.h,
4825 NoSuchMethodException.h.
4826 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4827 (init_name): New global.
4828 (hackRunInitializers): Use clinit_name.
4829 Include InstantiationException.h, NoSuchMethodException.h.
4830 (newInstance): Do some error checking (but not all). Call
4832 (forName): Throw exception if class not found.
4833 (getName): New method.
4834 (forName): Transform class name from external format to internal
4835 format before lookup.
4837 1998-11-15 Anthony Green <green@cygnus.com>
4839 * java/lang/Class.h (Class::forName): Method is static.
4841 * java/lang/natClass.cc (newInstance): Add simple implementation.
4844 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4846 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4847 int), for compatibility with jc1.
4849 1998-11-14 Tom Tromey <tromey@cygnus.com>
4851 * include/config.h.in: Rebuilt.
4852 * acconfig.h (LINUX_THREADS): New define.
4853 * configure: Rebuilt.
4854 * configure.in: Define LINUX_THREADS if using POSIX threads on
4855 Linux. Look for pthread_mutexattr_setkind_np function.
4856 * posix-threads.cc (throw_cleanup): New function.
4857 (really_start): Push cleanup function.
4858 (_Jv_ThreadCancel): New function.
4859 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4860 (_Jv_ThreadInitData): Set `exception' field in new structure.
4861 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4863 (_Jv_ThreadWait): New function.
4864 (_Jv_InitThreads): Initialize daemon globals.
4865 (FLAG_DAEMON): New macro.
4866 (really_start): Notify daemon_cond when non-daemon thread exits.
4867 Include <java/lang/System.h>.
4868 (struct starter): `object' field now a thread.
4869 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4870 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4871 (_Jv_ThreadWait): Removed definition.
4872 (_Jv_Thread_t): Added `exception' field.
4873 (_Jv_ThreadCancel): Removed definition.
4875 1998-11-13 Tom Tromey <tromey@cygnus.com>
4877 * Makefile.in: Rebuilt.
4878 * Makefile.am (libjava.zip): Compute javac before changing
4881 * Makefile.in: Rebuilt.
4882 * Makefile.am (libjava.zip): Include directory entries.
4884 * Makefile.in: Rebuilt.
4885 * Makefile.am (expanded): New macro.
4888 1998-11-12 Tom Tromey <tromey@cygnus.com>
4890 * prims.cc (clone): New function.
4891 * include/java-array.h (__JArray::clone): Removed definition.
4893 * java/lang/natObject.cc (clone): Don't assert that class is not
4894 an array; array's `clone' method just calls this one.
4896 * Makefile.in: Rebuilt.
4897 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4898 Now creates zip file. Changed all users.
4900 (data_DATA): New macro.
4902 1998-11-11 Tom Tromey <tromey@cygnus.com>
4904 * configure: Rebuilt.
4905 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4907 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4909 * java/io/InputStream.java (reset): Add msg to thrown exception.
4911 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4913 * java/io/LineNumberInputStream.java: Rewritten.
4915 * java/io/StringBufferInputStream.java: Removed extraneous import.
4917 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4919 * java/io/StringBufferInputStream.java: Rewritten.
4921 * java/util/Date.java (parseMonth): Optimize.
4922 (parseDayOfWeek): Created.
4923 (parse): Optimize to use parseDayOfWeek.
4925 1998-11-11 Tom Tromey <tromey@cygnus.com>
4927 * java/lang/StringBuffer.java (append): Handle case where STR is
4930 * include/javaprims.h: Regenerated class declarations.
4932 * configure: Rebuilt.
4933 * configure.in: Added --enable-gcj-classes,
4934 --enable-single-compilation, --enable-source-compilation flags.
4935 * Makefile.in: Rebuilt.
4936 * Makefile.am (java_io_files): New macro.
4937 (java_lang_files): Likewise.
4938 (java_text_files): Likewise.
4939 (java_util_files): Likewise.
4940 (java_files): Use new macros.
4941 (java-io.o): New target.
4942 (java-lang.o): Likewise.
4943 (java-text.o): Likewise.
4944 (java-util.o): Likewise.
4945 (src_io_files): New macro.
4946 (src_lang_files): Likewise.
4947 (src_text_files): Likewise.
4948 (src_util_files): Likewise.
4949 (class_io_files): New macro.
4950 (class_lang_files): Likewise.
4951 (class_text_files): Likewise.
4952 (class_util_files): Likewise.
4953 (class_files): Use new macros.
4954 (javao_files): Define conditionally.
4955 (.java.o): New target.
4956 ($(javao_files)): New target.
4958 (GCJH): Added $(EXEEXT).
4959 (CLASSPATH_ENV): Removed.
4960 (GCJCOMPILE): New macro.
4962 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4964 * java/util/Date.java (parse): Written from scratch.
4966 1998-11-11 Tom Tromey <tromey@cygnus.com>
4968 * java/lang/Throwable.java (toString): Correct sense of test for
4969 determining when to include detail message in result.
4971 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4974 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4976 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4978 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4979 (_Jv_RegisterClass): Use it.
4980 * include/jvm.h (_Jv_RegisterClasses): Declare.
4981 * java/lang/natObject.cc (init): Removed.
4982 (sync_init): Never call _Jv_InitializeSyncMutex.
4983 (_Jv_InitializeSyncMutex): Don't set `init'.
4984 * prims.cc (JvRunMain): Don't run init functions.
4986 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4988 * java/lang/natClass.cc (initializeClass): Set state before
4989 resolving constants.
4991 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4992 (STATE_RESOLVED): New macro.
4993 (initializeClass): Call resolveConstants.
4994 (hackRunInitializers): Don't call resolveConstants.
4995 (_Jv_FindArrayClass): Move short-circuit return for primitive
4996 element types earlier in function.
4998 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
5000 * prims.cc (no_memory): New global.
5001 (_Jv_makeUtf8Const): Throw no_memory.
5002 (_Jv_AllocObject): Likewise.
5003 (_Jv_NewObjectArray): Likewise.
5004 (_Jv_NewPrimArray): Likewise.
5005 (JvRunMain): Initialize no_memory.
5007 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
5009 * java/io/FileInputStream.java: Corrected date comment.
5010 * java/io/SequenceInputStream.java: Rewritten.
5012 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
5014 * java/lang/FirstThread.java (die): New method.
5015 * java/lang/natFirstThread.cc (die): Removed.
5017 (run): Use `DIE', not `die'.
5019 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
5021 * java/io/CharArrayReader.java (read): Move check into synchronized
5022 block to prevent a close while in progress.
5025 * java/io/PushbackReader.java (read): Ditto.
5028 * java/io/StringReader.java (mark): Ditto.
5033 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
5035 * java/io/PipedInputStream.java: Updated status.
5036 (connect): Added code to prevent infinite recursion and to
5037 differentiate exception causes.
5038 (read): Added code to differentiate exception causes.
5039 (receive): Made exception pass string with the cause.
5041 * java/io/PipedOutputStream.java: Updated status.
5042 (connect): Added code to call connect at the other end of the pipe.
5044 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
5046 * java/io/PipedInputStream.java (connect): Throw exception if
5047 already connected to the same output stream.
5048 (read): Do bounds checking first.
5050 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
5052 * java/io/PipedInputStream.java: Added private boolean outClosed.
5053 (available): Removed check if output stream is open.
5054 (close): Mark the buffer as empty so available returns 0.
5055 (read): Check if the output stream was closed and then return EOF
5056 when the buffer is empty.
5057 (receive): Mark the output stream as closed when passed a -1.
5059 * java/io/PipedOutputStream.java (close): Notify the input stream
5060 that there's no more data coming.
5061 (connect): Added a FIXME comment to note more coordination needed
5062 with PipedInputStream.
5063 (flush): Added a FIXME comment to mark what this method might do
5066 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
5068 * java/io/PipedInputStream.java: Rewritten.
5070 1998-10-30 Tom Tromey <tromey@cygnus.com>
5072 * java/lang/Throwable.java: Rewrote from scratch.
5074 * java/lang/Class.h (Class): Don't mention newMultiArray.
5075 * prims.cc (newMultiArray): Removed.
5076 (_Jv_NewMultiArray): Removed.
5077 (newArray): Removed.
5078 (new_multi_array): New function.
5079 (_Jv_NewMultiArray): Rewrote from scratch.
5081 * include/javaprims.h: Regenerated class declarations.
5082 * classes.pl (scan): Don't declare PrimClass.
5083 * include/cni.h (JvPrimClass): Use new names for classes.
5084 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
5085 added _Jv_PrimClass.
5086 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
5087 (_Jv_initPrimClass): Removed.
5088 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
5089 (_Jv_AllocObject): Added comment.
5090 (_Jv_NewObjectArray): Likewise.
5091 (_Jv_NewPrimArray): Likewise.
5093 1998-10-29 Tom Tromey <tromey@cygnus.com>
5095 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
5096 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
5098 * java/lang/Class.h (Class): Added `dtable_method_count' field.
5100 * java/lang/natObject.cc (init): New global.
5101 (sync_init): Call _Jv_InitializeSyncMutex if required.
5103 * Makefile.in: Rebuilt.
5104 * Makefile.am (nat_headers): Added ClassLoader.h.
5105 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
5106 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
5107 internalAddClass, lookupArray no longer friends.
5108 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
5109 _Jv_FindArrayClass now friends.
5110 * java/lang/natClass.cc (HASH_LEN): New macro.
5111 (HASH_UTF): Likewise.
5112 (loaded_classes): New global.
5113 (_Jv_FindClass): New function.
5114 (ClassClass): New define.
5115 (_Jv_FindClassInCache): New function.
5116 (_Jv_RegisterClass): Likewise.
5117 (_Jv_NewClass): Likewise.
5119 (ObjectClass): New define.
5120 (CloneableClass): New define.
5121 * prims.cc (_Jv_FindClass): Removed.
5122 (simpleLookupClass): Removed.
5123 (insertClass): Removed.
5124 (CLASSHASHSZ): Removed.
5125 (classPool): Removed.
5126 (_Jv_RegisterClass): Removed.
5127 (internalAddClass): Removed.
5128 (ClassClass): Removed.
5129 (RuntimeClass): Removed.
5130 (lookupArray): Removed.
5131 (CloneableClass): Removed.
5132 (CLASSMAXSIG): Removed.
5133 Rearranged file to group related functions together.
5134 (_Jv_IsInstanceOf): Moved to natClass.cc.
5135 (abort_final): Removed.
5136 Removed some unused includes.
5137 (classFromSig): Removed.
5138 (_Jv_FindClassFromSignature): New function.
5139 (_Jv_initPrimClass): Renamed.
5140 (getClass): Removed.
5142 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
5144 * java/io/FileDescriptor.java (finalize): Throws IOException
5145 instead of Throwable.
5147 * java/io/FileInputStream.java: Rewritten.
5149 * java/io/StreamTokenizer.java (nextToken): Unread newline character
5150 at the end of a comment.
5152 1998-10-29 Tom Tromey <tromey@cygnus.com>
5154 * include/javaprims.h: Regenerated class declarations.
5155 * classes.pl (scan): Don't special-case ClassLoader.
5157 * prims.cc (processClass): Removed.
5158 (_Jv_InitClass): Removed.
5159 Removed all CSTATE_ macros.
5160 (resolveConstants): Removed.
5162 (_Jv_NewMultiArray): Cleaned up.
5163 * Makefile.in: Rebuilt.
5164 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
5165 * java/lang/Class.h (Class): Declare new methods. processClass no
5167 * java/lang/Class.java (hackTrampoline): New method.
5168 (initializeClass): Declare.
5169 (hackRunInitializers): Declare.
5170 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
5171 (initializeClass): New method.
5172 (hackRunInitializers): New method.
5173 (init_name, void_signature): Moved from prims.cc.
5174 (_Jv_InitClass): New function.
5175 (isAssignableFrom): Don't call processClass.
5176 (STATE_NOTHING): New macro.
5177 (resolveConstants): New function.
5179 (ErrorClass): New define.
5181 * java/lang/Class.java (getClassLoader): Declare.
5182 * java/lang/ClassLoader.java: Rewrote from scratch.
5184 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
5185 AbstractMethodError.h, IllegalAccessError.h,
5186 NoClassDefFoundError.h.
5187 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
5188 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
5189 longer static. Changed return type.
5190 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
5191 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
5192 * prims.cc (findMethodLocal): Removed.
5193 (processClass): Use _Jv_GetMethodLocal.
5195 1998-10-28 Tom Tromey <tromey@cygnus.com>
5197 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
5198 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
5200 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
5201 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
5203 * include/jni.h: Added copyright header.
5204 * include/javaprims.h: Added copyright header.
5205 * include/java-field.h: Added copyright header.
5206 * include/java-array.h: Added copyright header.
5207 * include/cni.h: Added copyright header.
5209 * include/javaprims.h: Regenerated class declarations using
5210 classes.pl; now they are complete.
5211 * classes.pl: New file.
5213 * java/lang/natMath.cc: Include <config.h>.
5214 * java/lang/reflect/natField.cc: Include <config.h>.
5215 * java/util/NativeUtil.java: Removed.
5216 * Makefile.in: Rebuilt.
5217 * Makefile.am (nat_headers): Added Math.h.
5218 * java/lang/Math.h: Removed.
5219 * java/util/natGregorianCalendar.cc: Added copyright header.
5221 * java/lang/natFloat.cc: Added copyright header.
5222 * java/lang/Byte.java: Added copyright header.
5223 * java/lang/Void.java: Added copyright header.
5224 * java/lang/Short.java: Added copyright header.
5226 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5228 * include/javaprims.h (java::io): Added bunch of missing classes.
5230 * java/io/DataInputStream.java (readLine): Added a special case
5231 for handling BufferedInputStream data to reduce the likelihood
5232 of a pushback error.
5233 (skipBytes): Added code to handle negative number of skip bytes.
5235 * java/io/StreamTokenizer.java: Rewritten.
5237 1998-10-28 Tom Tromey <tromey@cygnus.com>
5239 * java/util/natGregorianCalendar.cc (computeFields): Call
5240 getRawOffset as a method.
5242 * include/javaprims.h (java::io): Added FilterOutputStream.
5243 * Makefile.in: Rebuilt.
5244 * Makefile.am (nat_headers): Added PrintStream.h,
5245 FilterOutputStream.h.
5246 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5248 (die): New function.
5249 (run): Die if `main' not found, is not public, or is not static.
5251 * boehm.cc (_Jv_MarkObj): Use new field names.
5252 * include/java-field.h (JvGetFirstInstanceField): Use new field
5254 (JvNumInstanceFields): Likewise.
5255 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5256 (getInterfaces): Likewise.
5257 * prims.cc (CLASS_CONSTANTS): Removed.
5258 (CLASS_CONST_SIZE): Likewise.
5259 (CLASS_CONST_TAG): Likewise.
5260 (CLASS_CONST_DATA): Likewise.
5261 (CLASS_CONST_UTF8): Likewise.
5262 (WORD2UTF): Likewise.
5263 (CLASS_CLASS): Likewise.
5264 (CLASS_PRIM_SIG): Likewise.
5265 (CLASS_ARRAY_CACHE): Likewise.
5266 (HASH_CHARS): Likewise.
5267 (hashClassName): Likewise.
5268 Many changes to use new field names.
5269 * java/lang/Class.h (Class): Renamed fields to track compiler.
5271 1998-10-27 Tom Tromey <tromey@cygnus.com>
5273 * java/lang/natClass.cc: Use #pragma implementation.
5274 (getComponentType): Moved into header.
5275 (getModifiers): Likewise.
5276 (getName): Likewise.
5277 (getSuperclass): Likewise.
5278 (isArray): Likewise.
5279 (isPrimitive): Likewise.
5280 * include/jvm.h (_Jv_FindClass): Declare.
5281 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5282 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5283 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5284 * java/lang/Class.h: Rewrote from scratch.
5285 * prims.cc: Many changes to work with new Class.h.
5286 * include/java-field.h (CLASS_FIELDS): Removed.
5287 (CLASS_SFIELDS): Likewise.
5288 (CLASS_IFIELDS): Likewise.
5289 (CLASS_NFIELDS): Likewise.
5290 (CLASS_NIFIELDS): Likewise.
5291 (CLASS_NSFIELDS): Likewise.
5292 (CLASS_FSIZE): Likewise.
5293 (JvGetFirstInstanceField): Rewrote.
5294 (JvNumInstanceFields): Likewise.
5296 * java/lang/Object.h: Added copyright comment.
5298 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5300 * java/text: New package directory.
5301 * java/text/FieldPosition.java: New class.
5302 * java/text/ParsePosition.java: New class.
5303 * java/text/ParseException.java: New Exception class.
5304 * java/text/Format.java: New class.
5305 * java/text/NumberFormat.java: New (empty placeholder) class.
5306 * java/text/DateFormatSymbols.java: New class (no Locales support).
5307 * java/text/DateFormat.java: New Format class (incomplete).
5308 * java/text/SimpleDateFormat.java: New DateFormat class.
5310 * include/javaprims.h (java::test): Added new package and classes.
5311 * java/util/Calendar.java (clone): New method.
5312 * java/util/Date.java (toString): Added non-native implementation.
5313 (parse): Made public instead of synchronized.
5314 * java/util/natDate.cc (toString): Removed.
5315 * java/util/natGregorianCalendar.cc (computeFields):
5316 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5318 1998-10-27 Tom Tromey <tromey@cygnus.com>
5320 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5322 * prims.cc (lookupArray): Added explanatory comment.
5323 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5324 class. Mark the class of each object.
5325 (_Jv_MarkArray): Mark the object's class.
5327 * configure: Rebuilt.
5328 * configure.in: Create java-gc.h.
5329 * include/boehm-gc.h: New file.
5330 * include/no-gc.h: New file.
5331 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5333 * java/lang/Object.h: Include java-gc.h.
5334 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5335 friends, if defined.
5336 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5338 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5340 1998-10-26 Tom Tromey <tromey@cygnus.com>
5342 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5343 paragraph separators, not numbers.
5345 * java/io/Writer.java (write): Removed write(char) to avoid
5347 * java/util/Properties.java: Rewrote from scratch.
5348 * include/javaprims.h (java::io): Added PrintWriter,
5349 BufferedWriter, PushbackReader.
5351 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5353 * java/lang/System.java: exit() is a static method.
5355 1998-10-26 Tom Tromey <tromey@cygnus.com>
5357 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5359 (_Jv_NewStringUtf8Const): Likewise.
5360 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5361 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5363 * java/lang/Object.h (Object): Add mark_array as friend function.
5364 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5365 _Jv_AllocBytes, to ensure that header is marked.
5366 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5368 (mark_array): Push sync_info field for array.
5370 1998-10-24 Tom Tromey <tromey@cygnus.com>
5372 * java/lang/String.java (String): Updated for StringBuffer
5374 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5376 * java/lang/StringBuffer.java: Renamed fields to conform to
5377 serialization spec: buffer->value, next->count, copy->shared.
5379 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5381 * java/util/TimeZone.java: New class.
5382 * java/util/SimpleTimeZone.java: New class.
5383 * java/util/Locale.java: New file.
5384 * java/util/Calendar.java: Make almost complete.
5385 * java/util/GregorianCalendar.java
5386 * java/util/natGregorianCalendar.cc: New file.
5387 * java/util/Date.java: Re-written from scratch.
5388 * java/util/natDate.cc (setTime): Removed - no longer native.
5389 * include/javaprims.h (java::util): Add new classes.
5390 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5391 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5393 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5395 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5396 returning it as a jint.
5398 1998-10-23 Tom Tromey <tromey@cygnus.com>
5400 * prims.cc (arg_vec, main_group, main_thread): New globals.
5401 (JvRunMain): Use them.
5403 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5405 * java/io/DataInputStream.java: Rewritten.
5407 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5408 tertiary bytes with 0x80 per spec.
5410 1998-10-23 Tom Tromey <tromey@cygnus.com>
5412 * java/lang/String.java (init): Changed name of `copy' argument.
5413 * java/lang/natString.cc (init): Inverted sense of `copy'
5416 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5417 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5418 * boehm.cc (ObjectClass): New define.
5419 (ClassClass): Likewise.
5420 (mark_obj): Special-case Object and Class.
5422 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5424 * java/util/BitSet.java: Rewrote from scratch.
5426 * prims.cc (lookupArray): Removed useless cast.
5428 * java/lang/natObject.cc: Use `#pragma implementation'.
5430 * java/lang/String.java (init): Added `copy' argument.
5431 (String): Look in StringBuffer to find char array.
5432 * java/lang/natString.cc (init): Added `copy' argument.
5433 * java/lang/StringBuffer.java: Rewrote from scratch.
5435 * java/lang/Compiler.java: Rewrote from scratch.
5436 * java/lang/Throwable.java: Don't use NativeLang.
5437 * include/javaprims.h (java::lang): Don't mention NativeLang.
5438 * java/lang/Process.java: Rewrote from scratch.
5439 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5441 (currentClassLoader): Likewise.
5442 (currentLoadedClass): Likewise.
5443 * java/lang/natClass.cc (getClassLoader): Commented out.
5444 * java/lang/Class.java (getClassLoader): Commented out.
5445 * java/lang/Compiler.java: Removed.
5446 * java/lang/NativeLang.java: Removed.
5448 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5449 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5450 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5451 (_Jv_hashUtf8String): Now static.
5452 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5453 name of return type.
5455 * java/lang/Class.h (Class): Declare checkMemberAccess.
5456 * Makefile.in: Rebuilt.
5457 * Makefile.am (nat_headers): Added Member.h.
5458 * java/lang/natClass.cc: Include Member.h.
5459 (getDeclaredClasses): Call checkMemberAccess.
5460 * java/lang/Class.java (checkMemberAccess): Call
5461 SecurityManager.checkMemberAccess.
5463 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5465 * java/lang/SecurityManager.java: Rewritten.
5467 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5469 * java/applet/Applet.java, java/applet/AppletContext.java,
5470 java/applet/AppletStub.java, java/applet/AudioClip.java,
5471 java/awt/AWTError.java, java/awt/AWTException.java,
5472 java/awt/BorderLayout.java, java/awt/Button.java,
5473 java/awt/Canvas.java, java/awt/CardLayout.java,
5474 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5475 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5476 java/awt/Color.java, java/awt/Component.java,
5477 java/awt/Container.java, java/awt/Dialog.java,
5478 java/awt/Dimension.java, java/awt/Event.java,
5479 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5480 java/awt/Font.java, java/awt/FontMetrics.java,
5481 java/awt/Frame.java, java/awt/Graphics.java,
5482 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5483 java/awt/GridLayout.java, java/awt/Image.java,
5484 java/awt/Insets.java, java/awt/Label.java,
5485 java/awt/LayoutManager.java, java/awt/List.java,
5486 java/awt/MediaTracker.java, java/awt/Menu.java,
5487 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5488 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5489 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5490 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5491 java/awt/TextArea.java, java/awt/TextComponent.java,
5492 java/awt/TextField.java, java/awt/Toolkit.java,
5493 java/awt/Window.java, java/awt/image/ColorModel.java,
5494 java/awt/image/CropImageFilter.java,
5495 java/awt/image/DirectColorModel.java,
5496 java/awt/image/FilteredImageSource.java,
5497 java/awt/image/ImageConsumer.java,
5498 java/awt/image/ImageFilter.java,
5499 java/awt/image/ImageObserver.java,
5500 java/awt/image/ImageProducer.java,
5501 java/awt/image/IndexColorModel.java,
5502 java/awt/image/MemoryImageSource.java,
5503 java/awt/image/PixelGrabber.java,
5504 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5505 java/awt/peer/CanvasPeer.java,
5506 java/awt/peer/CheckboxMenuItemPeer.java,
5507 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5508 java/awt/peer/ComponentPeer.java,
5509 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5510 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5511 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5512 java/awt/peer/MenuBarPeer.java,
5513 java/awt/peer/MenuComponentPeer.java,
5514 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5515 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5516 java/awt/peer/TextAreaPeer.java,
5517 java/awt/peer/TextComponentPeer.java,
5518 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5519 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5520 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5521 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5522 java/net/MalformedURLException.java, java/net/NativeNet.java,
5523 java/net/ProtocolException.java, java/net/ServerSocket.java,
5524 java/net/Socket.java, java/net/SocketException.java,
5525 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5526 java/net/URL.java, java/net/URLConnection.java,
5527 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5528 java/net/URLStreamHandlerFactory.java,
5529 java/net/UnknownHostException.java,
5530 java/net/UnknownServiceException.java: Removed.
5532 1998-10-22 Tom Tromey <tromey@cygnus.com>
5534 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5535 finalizer is not Object.finalize.
5536 (internalAddClass): Don't set `final' member of class.
5537 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5538 other places that know about finalize() location.
5539 * java/lang/Class.h (Class): Removed `final' field.
5541 * aclocal.m4, configure: Rebuilt.
5542 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5543 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5545 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5546 * Makefile.in: Rebuilt.
5547 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5549 1998-10-21 Tom Tromey <tromey@cygnus.com>
5551 * java/lang/Object.java (finalize): Move to be first method in
5554 * configure: Rebuilt.
5555 * configure.in (GCINCS): Include contents of boehm-cflags file.
5557 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5559 * java/lang/ArrayIndexOutOfBoundsException.java
5560 (ArrayIndexOutOfBoundsException): Fixed string literal.
5561 * java/lang/StringIndexOutOfBoundsException.java
5562 (StringIndexOutOfBoundsException): Fixed string literal.
5564 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5566 * natFileDescriptorEcos.cc added.
5567 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5569 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5571 * acconfig.h: test for __int32_t and __uint32_t added.
5572 * include/config.h.in: test for __int32_t and __uint32_t added.
5573 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5574 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5575 * configure.in: test for __int32_t and __uint32_t added.
5576 * configure: test for __int32_t and __uint32_t added.
5578 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5580 * configure.in: Test for --enable ecos and link
5581 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5582 natFileDescriptorPosix.cc
5584 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5586 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5588 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5591 * java/io/CharArrayReader.java (close): Synchronize on lock
5592 object per Reader contract.
5593 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5594 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5595 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5596 Ensure that arg passed in isn't negative.
5598 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5599 constructing the superclass.
5601 * java/io/PushbackReader.java (close): Synchronize on lock
5602 object per Reader contract.
5603 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5604 (ready): Synchronize on lock obj. Throw IOException if reader
5606 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5607 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5608 Ensure that arg passed in isn't negative.
5609 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5611 * java/io/StringReader.java: Created.
5613 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5615 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5617 (read): Removed synchronized modifier to match JCL.
5618 (reset): Removed synchronized modifier to match JCL.
5619 (skip): Removed synchronized modifier to match JCL.
5621 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5623 * java/io/PushbackReader.java (PushbackReader): Made
5624 constructors public.
5626 1998-10-17 Tom Tromey <tromey@cygnus.com>
5628 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5629 constructors public.
5631 1998-10-16 Anthony Green <green@cygnus.com>
5633 * aclocal.m4, configure: Rebuilt.
5634 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5636 * configure.host: Rewrote.
5637 * Makefile.in: Rebuilt.
5638 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5639 (AM_CFLAGS): New macro.
5640 ($(c_files)): Use COMPILE macro.
5641 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5642 automake problem(s).
5644 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5646 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5648 * java/io/CharArrayReader.java: Created.
5650 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5652 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5653 size check to allow 0 per JCL.
5655 * java/io/PushbackReader.java: Created.
5657 1998-10-16 Tom Tromey <tromey@cygnus.com>
5659 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5660 <sys/time.h> includes.
5661 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5662 * include/no-threads.h: Conditionalize <unistd.h> include on
5665 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5667 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5670 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5672 * java/io/FilterReader.java: Created.
5674 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5676 * java/io/PushbackInputStream.java: Rewritten.
5678 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5679 that size passed to constructor is legal.
5680 (read): Check that args passed in are legal.
5681 (skip): Rewritten to get rid of the temporary buffer.
5682 (refill): Added marklimit check to grow the buffer.
5684 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5686 (bytesAvail): Removed.
5687 (read): Changed bytesAvail to Math.min.
5688 (skip): Changed bytesAvail to Math.min.
5690 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5691 from the throws clause.
5692 (skip): Rewritten to use a temporary buffer.
5694 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5696 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5699 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5701 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5702 to write the double one word at a time.
5704 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5706 * java/io/BufferedInputStream.java: Rewritten.
5708 1998-10-12 Tom Tromey <tromey@cygnus.com>
5710 * jni.cc: Include config.h and stddef.h.
5712 * java/lang/Class.h (_dispatchTable): Removed again.
5713 Removed all ACC_* defines again.
5715 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5717 * Makefile.am (nat_files): Add netField.o.
5718 (libjava_a_SOURCES): Add jni.cc.
5719 (java/lang/reflect/Field.h): New rule.
5720 * Makefile.in: Re-generated.
5721 * include/javaprims.h: Add some extra class and typedefs.
5722 * include/jni.h: New file.
5725 * include/java-field.h: New file.
5726 * include/jvm.h: #include <java-field.h>.
5727 * boehm.cc: #include <java-field.h>.
5728 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5729 * java/lang/reflect/Member.java: New class.
5730 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5731 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5733 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5735 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5736 testsuite/Makefile.in: Rebuilt.
5737 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5738 * configure.host: Created.
5740 1998-10-10 Tom Tromey <tromey@cygnus.com>
5742 * java/lang/natObject.cc (sync_init): Always allocate a new
5745 1998-10-09 Tom Tromey <tromey@cygnus.com>
5747 * java/io/ByteArrayInputStream.java (mark): Renamed from
5750 * java/io/FileOutputStream.java (finalize): Removed.
5751 * java/io/FileDescriptor.java (finalize): New method.
5753 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5755 * ByteArrayInputStream.java: Corrected status comment.
5757 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5759 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5761 1998-10-08 Tom Tromey <tromey@cygnus.com>
5763 * prims.cc (lookupArray): Use static array to initialize list of
5766 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5768 * prims.cc (lookupArray): Initialize the msize for new
5771 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5773 * configure: Rebuilt.
5774 * configure.in: Check for fsync and sleep.
5775 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5777 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5778 HAVE_SLEEP. Include config.h.
5780 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5781 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5784 1998-10-08 Tom Tromey <tromey@cygnus.com>
5786 * java/io/natFile.cc: Don't include SecurityManager.h.
5787 (performList): Renamed.
5788 (performMkdir): Likewise.
5789 (performRenameTo): Likewise.
5790 (performDelete): Likewise.
5792 * java/io/File.java (performDelete): Renamed from natDelete.
5793 (list): Now written in Java.
5794 (performList): New method.
5795 (performMkdir): New method.
5796 (mkdir): Now written in Java.
5797 (performRenameTo): New method.
5798 (renameTo): Now written in Java.
5800 1998-10-06 Tom Tromey <tromey@cygnus.com>
5802 * Makefile.in: Rebuilt.
5803 * Makefile.am (ETAGS_ARGS): New macro.
5804 (TAGS_DEPENDENCIES): Likewise.
5806 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5808 * Makefile.in: Rebuilt.
5809 * Makefile.am: Use -classpath option with javac.
5811 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5813 * java/io/FileOutputStream.java (finalize): Call
5816 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5818 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5820 * java/lang/mprec.c: Ditto.
5822 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5825 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5827 * java/io/InputStream.java (skip): Make local var i a long.
5829 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5831 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5832 * prims.cc (lookupArray): Use memcpy, not memmove.
5833 * include/config.h.in: Rebuilt.
5834 * acconfig.h (HAVE_MEMCPY): Added.
5835 * configure: Rebuilt.
5836 * configure.in: Check for memcpy again.
5838 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5839 String.compareTo, not ==.
5841 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5842 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5843 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5844 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5845 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5846 into new array's dtable.
5847 (_Jv_AllocObject): Use _Jv_DispatchTable.
5848 (_Jv_NewPrimArray): Likewise.
5849 (_Jv_NewObjectArray): Likewise.
5851 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5853 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5854 offending index value.
5855 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5857 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5858 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5860 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5862 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5864 * java/io/OutputStream.java (write): Use off and len parameters to
5865 output partial byte array.
5867 * java/io/BufferedReader.java, java/io/FileReader.java,
5868 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5869 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5870 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5871 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5873 * include/javaprims.h (java::lang): Added
5874 ExceptionInInitializerError, IllegalStateException,
5875 NoSuchFieldException, and UnsupportedOperationException.
5877 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5879 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5882 * include/java-array.h (__JArray): Added clone method.
5883 * prims.cc (CloneableClass): New define.
5884 (lookupArray): Initialize array class to indicate that it
5885 implements Cloneable.
5887 * java/lang/Class.h: Removed all ACC_* defines.
5888 * prims.cc: Include Modifier.h.
5889 (_Jv_LookupInterfaceMethod): Use methods in
5890 java.lang.reflect.Modifier, not ACC_ defines.
5892 * java/lang/Class.h (Class): Declare getClasses,
5893 getDeclaredClasses, getDeclaringClass, getModifiers,
5894 * java/lang/Class.java: Rewrote from scratch.
5896 * include/javaprims.h (java::lang): Added reflect and
5898 * Makefile.in: Rebuilt.
5899 * Makefile.am (nat_headers): Added Modifier.h.
5901 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5904 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5906 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5907 instead of test and abort.
5909 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5910 remove compiler warning.
5912 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5914 * java/lang/natDouble.cc: zero terminate string.
5915 * strtod.c: Set errno if no digits are found in fraction.
5917 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5919 * java/lang/reflect/Modifier.java: New file.
5921 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5922 * java/lang/VerifyError.java: Rewrote from scratch.
5923 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5924 * java/lang/UnknownError.java: Rewrote from scratch.
5925 * java/lang/StackOverflowError.java: Rewrote from scratch.
5926 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5927 * java/lang/InternalError.java: Rewrote from scratch.
5928 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5929 * java/lang/ExceptionInInitializerError.java: New file.
5930 * java/lang/Error.java: Rewrote from scratch.
5931 * java/lang/ClassFormatError.java: Rewrote from scratch.
5932 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5933 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5934 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5935 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5936 * java/lang/LinkageError.java: Rewrote from scratch.
5937 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5939 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5941 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5942 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5944 * include/cni.h (JvAllocObject): Moved from prims.cc.
5946 * prims.cc (JvAllocObject): Moved to cni.h.
5947 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5948 (finalize_name): Removed.
5950 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5952 * java/lang/Class.h (Class): Added size() method.
5953 * prims.cc (_Jv_MonitorEnter): Removed.
5954 (_Jv_MonitorExit): Removed.
5955 * java/lang/Object.h (JvSyncInfo): Removed.
5956 * Makefile.in: Rebuilt.
5957 * Makefile.am (nat_headers): Added Cloneable.h,
5958 CloneNotSupportedException.h.
5959 * java/lang/Object.h: Rewrote.
5960 * java/lang/natObject.cc: Rewrote from scratch.
5961 * java/lang/Object.java: Rewrote from scratch.
5963 * java/io/natFile.cc: Conditionally include <dirent.h>.
5964 (list): If no <dirent.h>, always return NULL.
5965 * configure: Rebuilt.
5966 * configure.in: Check for dirent.h.
5968 * prims.cc (lookupArray): Don't use sprintf.
5970 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5977 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5978 name conflict with method.
5980 * include/javaprims.h (java::util): Added HashtableEntry.
5982 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5984 * java/util/Hashtable.java: Rewritten.
5986 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5988 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5992 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5995 * posix-threads.cc (_Jv_CondWait): Now returns int.
5996 * include/javaprims.h (java::lang): Added
5997 IllegalMonitorStateException.
5998 * Makefile.in: Rebuilt.
5999 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
6000 * include/no-threads.h (_Jv_CondDestroy): Removed.
6001 (_Jv_MutexDestroy): Removed.
6002 (_Jv_CondWait): Now returns int.
6003 (_Jv_CondNotify): Likewise. Added mutex argument.
6004 (_Jv_CondNotifyAll): Likewise.
6005 (_Jv_MutexLock): Always succeed.
6006 (_Jv_MutexUnlock): Likewise.
6007 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
6008 (_Jv_HaveMutexDestroy): Define.
6009 (_Jv_CondNotify): Now returns int. Added mutex argument.
6010 (_Jv_CondNotifyAll): Likewise.
6011 * include/quick-threads.h (_Jv_CondDestroy): Removed.
6012 (_Jv_MutexDestroy): Removed.
6013 (_Jv_CondWait): Now returns int.
6014 (_Jv_CondNotify): Likewise. Added mutex argument.
6015 (_Jv_CondNotifyAll): Likewise.
6016 * java/lang/natObject.cc (finalize_sync_info): New function.
6017 (init_mutex): Initialize `init' and register finalizer if
6020 (init_mutex): Use it.
6022 (notifyAll): Use it.
6024 (notify): Throw IllegalMonitorStateException on failure.
6025 (notifyAll): Likewise.
6026 (wait): Likewise. Also, throw InterruptedException if
6028 Include cni.h, Thread.h, IllegalMonitorStateException.h,
6029 InterruptedException.h, IllegalArgumentException.h.
6030 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
6032 * java/lang/natString.cc: Renamed all `JvPriv' functions.
6033 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
6034 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
6035 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
6036 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
6037 * quick-threads.cc: Renamed all `JvPriv' functions.
6038 * prims.cc: Renamed all `JvPriv' functions.
6039 * posix-threads.cc: Renamed all `JvPriv' functions.
6040 * nogc.cc: Renamed all `JvPriv' functions.
6041 * no-threads.cc: Renamed all `JvPriv' functions.
6042 * boehm.cc: Renamed all `JvPriv' functions.
6043 * include/quick-threads.h: Renamed all `JvPriv' functions.
6044 * include/posix-threads.h: Renamed all `JvPriv' functions.
6045 * include/no-threads.h: Renamed all `JvPriv' functions.
6046 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
6048 * include/no-threads.h (JvPrivCondWait): Wrote minimal
6050 (JvPrivCondNotify): Do nothing.
6051 (JvPrivCondNotifyAll): Do nothing.
6053 * prims.cc (processClass): Handle case where state is
6056 * java/lang/natFirstThread.cc: Include <stdlib.h>
6058 * configure: Rebuilt.
6059 * configure.in: Fixed sense of --enable-libjava-debug.
6061 * java/lang/natThread.cc (join): Declare `t' outside the loop so
6062 it can be used afterward by the assertion.
6064 * configure: Rebuilt.
6065 * configure.in: When cross-compiling, assume alloca.
6067 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
6068 __builtin_alloca (autoconf docs are wrong here).
6070 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
6072 (available): Use `FD_ZERO' (typo fix).
6074 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6076 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6077 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
6079 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6080 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
6083 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
6085 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
6087 * java/lang/natDouble.cc: Declare alloca safely.
6089 * configure, include/config.h.in: Rebuilt.
6090 * configure.in: Add alloca check.
6092 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
6094 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
6095 condition while calling notify.
6096 (join): Remove `curr_nt' from `nt's join list, not vice versa.
6097 (interrupt): Hold mutex for interrupt condition while calling
6100 * java/lang/natString.cc (init): Allocate and try to read `count'
6101 characters, not `count - offset' characters.
6103 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
6104 Correctly compute `count'.
6106 * java/lang/Boolean.java (getBoolean): Return false if property
6109 * java/lang/System.java (setProperties): Set prop_init.
6111 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
6113 * java/io/PrintStream.java (println): Use line.separator, not
6115 * java/lang/System.java (out, err): Make both autoflush streams.
6116 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
6118 * include/config.h.in: Rebuilt.
6119 * acconfig.h (HAVE_MEMCPY): Removed.
6120 * configure: Rebuilt.
6121 * configure.in: Never define HAVE_MEMCPY.
6123 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
6125 (_Jv_AllocString): Use JvAllocObject again.
6126 * java/lang/Class.h (thread): New field.
6127 (_Jv_AllocString): No longer a friend.
6128 * prims.cc (processClass): Removed dead code. Changed to more
6129 closely follow the Java Language Specification.
6130 (processClass): Return early if already at the right state.
6132 * prims.cc (JvNewStringUTF): Removed.
6133 * include/cni.h (JvNewStringUTF): New function.
6134 (_Jv_NewStringUTF): Declare as `extern "C"'.
6135 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
6137 * java/lang/natDouble.cc: Added copyright info and header
6138 comment. Include <stdlib.h>.
6139 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
6140 bytes as are chars in string.
6142 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
6144 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
6148 * java/lang/System.java (init_properties): Now native.
6149 * java/lang/natSystem.cc (init_properties): New method.
6150 Include java/util/Properties.h.
6152 * Makefile.in: Rebuilt.
6153 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
6154 OutputStreamWriter.h, ByteArrayInputStream.h,
6155 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
6156 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
6157 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
6158 Properties.h, Hashtable.h, Dictionary.h.
6161 * include/javaprims.h (java::io): Added Reader, Writer,
6162 InputStreamReader, OutputStreamWriter,
6163 UnsupportedEncodingException, ByteArrayInputStream,
6164 ByteArrayOutputStream, EOFException, SyncFailedException,
6165 PushbackInputStream.
6166 (java::lang): Added Cloneable.
6167 (java::util): Added NoSuchElementException, VectorEnumeration,
6168 Dictionary, HashtableEnumeration, PropertiesEnumeration.
6170 * java/io/PipedReader.java: New file.
6172 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
6174 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
6177 * java/io/io-defs.h: Removed.
6179 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
6180 (FileInputStream): Use new constructor. Can throw IOException.
6182 * java/lang/System.java (getProperty): Don't throw
6183 NullPointerException.
6185 * java/io/RandomAccessFile.java: Rewrote from scratch.
6187 * java/io/natFileDescriptor.cc: Include EOFException.h.
6189 (length): New method.
6190 (getFilePointer): New method.
6192 (available): New method.
6193 * java/io/FileDescriptor.java (SET, CUR): New constants.
6194 (seek, length, getFilePointer, read, available): New decls.
6196 * java/io/PipedWriter.java: New file.
6197 * java/io/StringWriter.java: New file.
6198 * java/io/CharArrayWriter.java: New file.
6199 * java/io/CharConversionException.java: New file.
6200 * java/io/BufferedWriter.java: New file.
6201 * java/io/FilterWriter.java: New file.
6202 * java/io/FileWriter.java: New file.
6204 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6205 OutputStreamWriter.h, NullPointerException.h,
6206 ByteArrayInputStream.h, InputStreamReader.h.
6207 (getBytes): New method.
6208 (init): Throw NullPointerException.
6209 (init): New function.
6210 * java/lang/String.java (getBytes): Added missing decl.
6211 (getBytes): New method.
6212 (String): Added byte[]-based constructors.
6213 (copyValueOf): Wrote.
6214 (init): Declare variant which takes byte array and encoding.
6215 Import java.io.UnsupportedEncodingException.
6217 * java/io/File.java: Rewrote from scratch.
6218 * java/io/natFileDescriptor.cc: Rewrote from scratch.
6219 * java/io/FileDescriptor.java: Rewrote from scratch.
6220 * java/io/FilenameFilter.java: Rewrote from scratch.
6222 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6224 * java/io/SyncFailedException.java: New file.
6225 * java/io/UTFDataFormatException.java: Rewrote from scratch.
6226 * java/io/InterruptedIOException.java: Rewrote from scratch.
6227 * java/io/FileNotFoundException.java: Rewrote from scratch.
6228 * java/io/EOFException.java: Rewrote from scratch.
6229 * java/io/IOException.java: Rewrote from scratch.
6230 * java/io/PrintStream.java: Rewrote from scratch.
6231 * java/io/DataOutputStream.java: Rewrote from scratch.
6232 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6233 * java/io/FilterOutputStream.java: Rewrote from scratch.
6234 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6235 * java/io/PipedOutputStream.java: Rewrote from scratch.
6236 * java/io/FileOutputStream.java: Rewrote from scratch.
6237 * java/io/OutputStream.java: Rewrote from scratch.
6238 * java/io/DataOutput.java: Rewrote from scratch.
6240 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6242 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6244 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6246 * configure.in: Add --enable-libjava-debug
6248 * Makefile.am (nat_headers): Add java/lang/Float.h and
6251 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6253 * Makefile.in, configure, include/config.h.in: Rebuilt.
6255 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6257 * java/lang/Float.java: Rewritten
6258 * java/lang/Double.java: Rewritten
6259 * java/lang/natFloat.cc: toString() added.
6260 * java/lang/natDouble.cc: toString() added.
6261 * java/lang/natDouble.cc: doubleValueOf() added.
6262 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6263 java/lang/strtod.c: added.
6264 * ieeefp.h: __sparc added.
6265 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6267 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6269 * include/javaprims.h (java::lang): Added
6270 CloneNotSupportedException.
6272 * java/lang/Object.java (clone): No longer native. Implemented.
6273 * java/lang/natObject.cc (clone): Removed.
6275 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6277 * prims.cc: Don't make definitions `extern "C"'.
6278 (_Jv_RegisterClass): Renamed from registerClass.
6279 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6280 (_Jv_NewArray): Likewise.
6281 (_Jv_NewMultiArray): Likewise.
6282 (_Jv_CheckCast): Likewise.
6283 (_Jv_LookupInterfaceMethod): Likewise.
6284 (_Jv_CheckArrayStore): Likewise.
6285 (_Jv_RegisterClass): Likewise.
6287 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6288 * configure: Rebuilt.
6289 * configure.in: Don't check for fmod; it is provided by the fdlibm
6291 * prims.cc (fmod): Removed.
6293 * java/lang/natString.cc (charAt): Use _Jv_uint.
6294 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6295 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6296 (equalUtf8Consts): Likewise.
6297 (internalAddClass): Use _Jv_uint.
6298 (processClass): Likewise.
6299 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6300 (_Jv_uint): Renamed from uint32.
6301 (struct _Jv_Utf8Const): Changed members to use new type names.
6303 * configure: Rebuilt.
6304 * configure.in: Don't check for memcpy. Require memmove and a way
6306 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6308 (currentTimeMillis): Don't use #error.
6310 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6312 * java/lang/Math.java: static member random renamed to random_ to
6313 avoid conflict with member function of the same name.
6314 * include/javaprims.h: java.util.Random added.
6316 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6318 * include/java-chartables.h: Regenerated.
6319 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6322 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6324 * java/lang/Math.java: Rewritten.
6325 * java/lang/natMath.cc: New file.
6326 * Files added from fdlibm:
6327 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6328 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6329 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6330 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6331 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6332 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6333 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6334 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6335 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6336 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6337 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6338 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6339 java/lang/k_cos.c, java/lang/sf_ceil.c,
6340 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6341 java/lang/ieeefp.h, java/lang/fdlibm.h
6342 * Makefile.am: rules added for compiling C files from fdlibm.
6344 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6346 * chartables.pl: Minor documentation fixes.
6348 * configure: Rebuilt.
6349 * configure.in: Fixed --help output for --enable-fast-character.
6351 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6353 * configure: Rebuilt.
6354 * configure.in: Recognize --enable-fast-character.
6355 * acconfig.h (COMPACT_CHARACTER): New define.
6356 * include/config.h.in: Rebuilt.
6357 * include/java-chartables.h: New file.
6358 * Makefile.in: Rebuilt.
6359 * Makefile.am (nat_files): Added natCharacter.o.
6360 * java/lang/natCharacter.cc: New file.
6361 * chartables.pl (set_attribute): New function.
6362 (@attributes, @second_attributes): New globals.
6363 ($ROMAN_START, $ROMAN_END): Likewise.
6364 (process_char): Call set_attribute when required.
6365 (print_char): Just print hex value.
6366 (print_block): Generate C++ syntax.
6367 (print_numerics): Likewise.
6368 (print_single_map): Likewise.
6369 (print_all_block): Likewise.
6370 (print_case_table): Likewise.
6371 (print_fast_tables): New function.
6372 Generate C++ code suitable for a header file.
6373 * java/lang/Character.java (table_search): Removed.
6374 (digit_value): Now native.
6375 (getNumericValue): Likewise.
6376 (getType): Likewise.
6377 Removed all automatically-generated tables.
6378 (Tamil_Digit_One): Removed.
6379 (isSpaceChar): Now native.
6380 (isTitleCase): Likewise.
6381 (isLowerCase): Likewise.
6382 (isUpperCase): Likewise.
6383 (toLowerCase): Likewise.
6384 (toTitleCase): Likewise.
6385 (toUpperCase): Likewise.
6386 (isDefined): Fixed sense of test.
6388 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6390 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6392 (regionMatches): Likewise.
6394 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6396 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6398 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6400 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6403 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6406 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6408 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6410 * prims.cc (instanceof_class): Removed.
6411 (instanceof_array): Likewise.
6412 (instanceof): Likewise.
6413 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6414 (_Jv_CheckCast): Likewise.
6415 * java/lang/natClass.cc (isAssignableFrom): New method.
6416 * java/lang/Class.java (isAssignableFrom): Now native.
6418 * include/cni.h (JvThrow): Use `extern inline'.
6419 (JvAllocObject): Likewise.
6420 (JvInitClass): Likewise.
6422 * java/lang/natSystem.cc (arraycopy): Only check class of source
6425 * prims.cc (_Jv_CheckArrayStore): Wrote.
6426 (_Jv_MonitorEnter): Prefer `JvThrow'.
6427 Include ArrayStoreException.h.
6428 (_Jv_CheckCast): Indentation cleanup.
6430 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6432 * chartables.pl: New file.
6433 * java/lang/Character.java: Rewrote from scratch.
6435 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6437 * java/lang/ArithmeticException.java,
6438 java/lang/ArrayIndexOutOfBoundsException.java,
6439 java/lang/ArrayStoreException.java,
6440 java/lang/ClassCastException.java,
6441 java/lang/ClassNotFoundException.java,
6442 java/lang/CloneNotSupportedException.java,
6443 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6444 java/lang/IllegalArgumentException.java,
6445 java/lang/IllegalMonitorStateException.java,
6446 java/lang/IllegalThreadStateException.java,
6447 java/lang/IndexOutOfBoundsException.java,
6448 java/lang/InstantiationException.java,
6449 java/lang/InterruptedException.java,
6450 java/lang/NegativeArraySizeException.java,
6451 java/lang/NoSuchMethodException.java,
6452 java/lang/NullPointerException.java,
6453 java/lang/NumberFormatException.java,
6454 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6455 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6457 * java/lang/IllegalStateException.java,
6458 java/lang/NoSuchFieldException.java,
6459 java/lang/UnsupportedOperationException.java: Created.
6461 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6463 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6464 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6466 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6468 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6470 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6472 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6474 * Makefile.in: Rebuilt.
6476 * include/javaprims.h (java::lang): Added
6477 StringIndexOutOfBoundsException.
6479 * java/lang/String.java: Added header comment and FIXME comment for
6480 missing constructors/methods.
6481 (endsWith): Adjusted offset into string to look at just the last chars.
6482 Commented out undocumented method.
6484 * java/lang/natString.cc: Added includes for
6485 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6486 (String::init): Throw StringIndexOutOfBoundsException.
6487 (String::charAt): Throw StringIndexOutOfBoundsException.
6488 (String::substring): Throw StringIndexOutOfBoundsException.
6489 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6490 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6491 (String::compareTo): Return difference/offset between chars/strings.
6493 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6495 * java/lang/Boolean.java (TYPE): Added comment.
6497 * java/lang/Byte.java (decode): Added - commented out until dependent
6498 code for Integer is written.
6499 (compareTo): JDK 1.2 methods written.
6500 (hashCode): Added comment to note that values have been verified.
6502 * java/lang/Short.java (decode): Added - commented out until dependent
6503 code for Integer is written.
6504 (compareTo): JDK 1.2 methods written.
6505 (hashCode): Added comment to note that values have been verified.
6507 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6509 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6511 * include/javaprims.h (java::lang): Added VirtualMachineError,
6513 * Makefile.in: Rebuilt.
6514 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6515 VirtualMachineError.h.
6516 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6517 (lookupArray): Likewise.
6518 (makeUtf8Const): Likewise.
6519 (_Jv_AllocObject): Likewise.
6520 (_Jv_NewObjectArray): Likewise.
6521 Include OutOfMemoryError.h.
6523 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6524 to use JvNewStringLatin1.
6526 * java/io/io-defs.h: Include java/lang/IOException.h.
6527 * Makefile.in: Rebuilt.
6528 * Makefile.am (nat_headers): Added
6529 ArrayIndexOutOfBoundsException.h,
6530 ClassFormatError.h,ClassNotFoundException.h,
6531 ClassCircularityError.h, ClassCastException.h,
6532 IncompatibleClassChangeError.h, AbstractMethodError.h,
6533 IllegalAccessError.h, LinkageError.h, Error.h,
6534 NegativeArraySizeException.h, IOException.h.
6535 * include/cni.h (SignalError): Removed declaration.
6536 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6537 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6538 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6539 (newInstance): Likewise.
6540 (forName): Likewise.
6541 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6543 (read): Use JvThrow, not SignalError.
6548 (open_read): Likewise.
6549 (open_write): Likewise.
6552 (newstr): New function.
6553 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6555 (lastModifiedUnchecked): Likewise.
6556 (lengthUnchecked): Likewise.
6557 * include/javaprims.h (sorry): Removed declaration.
6558 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6559 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6560 ClassCastException, IncompatibleClassChangeError,
6561 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6562 * prims.cc (instanceof_array): Use JvFail, not sorry.
6564 Include ArrayIndexOutOfBoundsException.h,
6565 ClassFormatError.h,ClassNotFoundException.h,
6566 ClassCircularityError.h, ClassCastException.h,
6567 IncompatibleClassChangeError.h, AbstractMethodError.h,
6568 IllegalAccessError.h, NegativeArraySizeException.h.
6569 (_Jv_ThrowBadArrayIndex): Implemented.
6570 (JvNewStringUTF): Use JvFail, not sorry.
6571 (_Jv_FindClass): Likewise.
6572 (_Jv_NewArray): Likewise.
6573 (throwException): Removed.
6574 (getClass): Use JvThrow.
6575 (processClass): Likewise.
6576 (_Jv_NewObjectArray): Likewise.
6577 (_Jv_NewMultiArray): Likewise.
6578 (_Jv_CheckCast): Likewise.
6579 (_Jv_LookupInterfaceMethod): Likewise.
6580 (SignalError): Removed.
6581 (getClass): Use _Jv_NewStringUtf8Const to create String.
6583 * java/lang/natSystem.cc (arraycopy): Throw
6584 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6586 * Makefile.in: Rebuilt.
6587 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6589 * include/java-array.h: Mention gcjh, not gjavah.
6591 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6592 (canReadUnchecked): Likewise.
6593 (canWriteUnchecked): Likewise.
6594 (isFileUnchecked): Likewise.
6595 * java/io/natFileDescriptor.cc: Don't include cni.h.
6597 * java/lang/Thread.java (run__): Declare.
6598 * java/lang/natThread.cc (run__): New method, to avoid compiler
6600 (start): Use run__, not run_.
6602 * java/io/io-defs.h: Include cni.h and jvm.h.
6604 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6606 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6607 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6608 to natString.cc (with suitable renaming, inlines etc).
6609 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6610 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6611 * java/lang/String.h: Removed - now generated using gjavah.
6612 * java/lang/String.java: Re-written from scratch. Many native methods.
6613 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6614 * java/lang/natString.cc: Many functions re-written for "compact
6615 strings" representation, or native java.lang.String methods added.
6616 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6617 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6618 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6619 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6620 * include/cni.h: Add inline method.
6621 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6622 * include/javaprims.h: Moved some stuff frm String.h.
6623 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6624 * Makefile.am (nat_header): Added Character.h and String.h.
6625 (String.h): Add new rule.
6627 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6629 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6631 * posix-threads.cc: Include cni.h, jvm.h.
6632 * quick-threads.cc: Include cni.h, jvm.h.
6633 * nogc.cc: Include cni.h, not javaprims.h.
6634 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6635 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6636 include java-assert.h.
6637 * java/lang/natSystem.cc: Include cni.h. Don't include
6639 * java/lang/natRuntime.cc: Include cni.h. Don't include
6641 * prims.cc: Rearranged #include ordering. Don't include
6642 java-array.h or java-assert.h.
6643 * boehm.cc: Include config.h, cni.h.
6644 * exception.cc: Include config.h, cni.h.
6645 * include/jvm.h: Include java-assert.h.
6646 * include/cni.h: Include java/lang/Object.h. Don't include
6647 java-threads.h or java-array.h.
6649 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6651 * java/lang/Boolean.java: Rewritten.
6653 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6655 * java/lang/natFirstThread.cc (main_func): New typedef.
6656 (run): Use main_func, not JvPrivThreadStartFunc.
6657 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6659 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6661 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6664 Can't throw Java exceptions with C++ `throw':
6665 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6666 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6667 (setPriority): Likewise.
6671 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6672 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6674 Can't catch Java exceptions from C++:
6675 * java/lang/natThread.cc (finish_): New method.
6677 * java/lang/Thread.java (run_): Rewrote in Java.
6678 (finish_): New native method.
6680 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6682 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6684 * include/javaprims.h (java::io): Added Serializable.
6686 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6688 * java/util/EmptyStackException.java,
6689 java/util/NoSuchElementException.java: Rewritten.
6691 * java/util/ConcurrentModificationException.java,
6692 java/util/MissingResourceException.java,
6693 java/util/TooManyListenersException.java: Created.
6695 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6697 * include/cni.h (JvThrow): New function.
6698 * include/javaprims.h (_Jv_Throw): Declare.
6700 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6702 * java/util/Observable.java: Rewritten.
6704 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6706 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6707 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6708 Include NullPointerException.h.
6710 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6712 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6713 assignability checks. Don't bother using memcpy.
6715 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6717 * include/quick-threads.h (JvPrivThreadWait): New function.
6718 * include/no-threads.h (JvPrivThreadWait): New function.
6719 * include/posix-threads.h (JvPrivThreadWait): New function.
6720 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6722 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6724 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6725 offsets by size of type that is being copied.
6727 * java/lang/natThread.cc (start): Don't pass `object' argument to
6729 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6730 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6732 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6733 always pass thread as object.
6734 * include/quick-threads.h, include/posix-threads.h,
6735 include/no-threads.h (JvPrivThreadStart): Removed `object'
6738 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6740 * java/util/Dictionary.java: Rewritten.
6742 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6744 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6745 (JvPrivThreadDestroy): Likewise.
6747 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6749 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6751 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6753 * java/lang/natSystem.cc: Rewrote from scratch.
6754 * java/lang/System.java: Rewrote from scratch.
6755 * java/lang/Class.h (Class): Declare isAssignableFrom.
6756 * include/javaprims.h (java::lang): Added ArrayStoreException,
6757 IndexOutOfBoundsException.
6758 * Makefile.in: Rebuilt.
6759 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6760 IndexOutOfBoundsException.h.
6761 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6762 * include/jvm.h (_Jv_HashCode): New function.
6764 * java/lang/natThread.cc (suspend): Call checkAccess.
6766 * java/lang/Thread.java (setDaemon): Call checkAccess.
6768 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6770 * java/lang/Runtime.java: Rewrote from scratch.
6771 * java/lang/natRuntime.cc: Rewrote from scratch.
6773 * nogc.cc (JvPrivGCTotalMemory): New function.
6774 (JvPrivGCFreeMemory): Likewise.
6775 (total): New global.
6776 (JvPrivAllocObj): Increment total.
6777 (JvPrivAllocArray): Likewise.
6778 (JvPrivAllocBytes): Likewise.
6779 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6780 * boehm.cc (JvPrivGCTotalMemory): New function.
6781 (sum_blocks): Likewise.
6782 (JvPrivGCFreeMemory): Likewise.
6784 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6786 * include/javaprims.h (java::lang): Added FirstThread.
6787 * java/lang/natFirstThread.cc: New file.
6788 * java/lang/FirstThread.java: New file.
6789 * prims.cc (main_signature): Removed.
6790 (main_name): Removed.
6791 #include FirstThread.h.
6792 * Makefile.in: Rebuilt.
6793 * Makefile.am (TFRIEND): Removed.
6794 (java/lang/Thread.h): Likewise.
6795 (FTFRIEND): New macro.
6796 (java/lang/FirstThread.h): New target.
6797 (nat_files): Added natFirstThread.o.
6798 (nat_headers): Added FirstThread.h.
6799 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6800 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6802 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6806 * java/lang/natThread.cc (start): Synchronize the thread.
6807 (stop): Synchronize the thread.
6809 * java/lang/ThreadDeath.java: Rewrote from scratch.
6811 * Makefile.in: Rebuilt.
6812 * Makefile.am (TGFRIEND): New macro.
6813 (java/lang/ThreadGroup.h): New target.
6814 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6816 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6818 * nogc.cc: Include config.h.
6820 * java/lang/ThreadGroup.java: Rewrote from scratch.
6822 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6824 * java/lang/Thread.java (checkAccess): Only call in to security
6825 manager if it exists.
6826 (Thread): Don't check access when creating the first thread. Add
6827 this thread to the appropriate ThreadGroup.
6829 * java/lang/natThread.cc (run_): Call uncaughtException method on
6832 * java/lang/Runnable.java: Rewrote from scratch.
6833 * java/lang/Thread.java: Updated copyright comment to correct
6836 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6838 * java/util/Random.java: Rewritten.
6840 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6842 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6843 trailing 0 in array[].
6845 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6847 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6848 and RUNTESTFLAGS from AM_MAKEFLAGS.
6849 (SUBDIRS): Conditionally include testsuite.
6850 * Makefile.in: Rebuilt.
6852 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6854 * java/lang/Object.h: Include java-assert.h.
6856 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6858 * Makefile.am: Add testsuite directory.
6859 * configure.in: Build testsuite/Makefile.
6860 * Makefile.in, configure: Rebuilt.
6862 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6864 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6865 * include/jvm.h (_Jv_StartFirstThread): Declare.
6867 * include/javaprims.h (java::lang): Added Exception,
6870 * Makefile.in: Rebuilt.
6871 * Makefile.am (nat_headers): Added NullPointerException.h,
6872 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6873 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6874 (java/lang/Thread.h): New target.
6875 (TFRIEND): New macro
6877 * include/java-assert.h (JvFail): Use 0 and not NULL.
6879 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6880 instead of assuming we are a friend of Thread.
6881 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6882 instead of assuming we are a friend of Thread.
6884 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6886 * java/lang/natThread.cc: Rewrote from scratch.
6887 * java/lang/Thread.java: Rewrote from scratch.
6888 * prims.cc (JvRunMain): Use new Thread constructor.
6889 * include/javaprims.h (java::lang): Added InterruptedException.
6890 * Makefile.in: Rebuilt.
6891 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6892 * java/lang/Thread.h: Removed.
6893 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6894 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6896 * posix-threads.cc (JvPrivThreadJoin): Removed.
6897 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6898 (really_start): Don't notify join_cond.
6899 (JvPrivThreadStart): Added `data' argument.
6900 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6901 (JvPrivThreadJoin): Likewise.
6902 Use JvFail instead of sorry.
6903 (JvPrivThreadSuspend): Removed.
6904 (JvPrivThreadResume): Removed.
6905 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6906 (JvPrivThreadJoin): Likewise.
6907 (JvPrivThreadSuspend): Use JvFail.
6908 (JvPrivThreadResume): Likewise.
6909 (JvPrivThreadSuspend): Removed.
6910 (JvPrivThreadResume): Likewise.
6911 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6912 (JvPrivThread_t): Removed join_mutex, join_cond.
6913 Use JvFail instead of sorry.
6914 (JvPrivThreadSuspend): Removed.
6915 (JvPrivThreadResume): Likewise.
6917 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6919 * java/util/Observer.java: Rewritten
6920 * java/util/Enumeration.java: Rewritten
6922 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6924 * java/util/StringTokenizer.java: Rewritten
6925 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6926 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6927 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6929 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6931 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6934 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6935 Include java-assert.h.
6936 * include/java-assert.h: New file.
6937 * prims.cc (_Jv_Abort): New function.
6938 Include java-assert.h, not assert.h.
6939 (_Jv_MonitorExit): Use JvAssert.
6940 (resolveConstants): Likewise.
6941 (processClass): Likewise.
6942 (JvRunMain): Assert that method is found.
6944 * configure: Rebuilt.
6945 * configure.in: Check for test subdir.
6946 * Makefile.in: Rebuilt.
6947 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6949 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6950 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6952 * prims.cc (resolveConstants): Removed unused variables.
6953 (processClass): Likewise.
6955 * include/quick-threads.h (JvPrivThreadCurrent): Use
6957 * quick-threads.cc (destroy_data): New function.
6958 (JvPrivInitThreads): Create key.
6959 (JvPrivThreadKey): New global.
6960 (JvPrivThreadStart): Use coop_setspecific.
6962 * include/quick-threads.h, include/posix-threads.h,
6963 include/no-threads.h, no-threads.cc, quick-threads.cc,
6964 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6966 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6968 * include/no-threads.h (JvPrivThreadInitData): Don't set
6971 * include/quick-threads.h (JvPrivCondWait): coop function now
6973 (JvPrivThreadJoin): Likewise.
6975 * java/lang/Thread.h (Thread): Updated declaration of
6977 * include/quick-threads.h, include/posix-threads.h: Updated
6978 declaration of JvPrivThreadStart.
6979 * include/no-threads.h (JvPrivThreadStart): Changed definition
6981 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6982 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6983 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6985 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6987 * quick-threads.cc (qthrow): New function.
6988 (JvPrivInitThreads): New function.
6989 (started): New global.
6990 (JvPrivThreadStart): Call coop_start if required.
6991 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6992 (JvPrivThreadDestroy): Likewise.
6993 (JvPrivInitThreads): Removed.
6994 * include/posix-threads.h (JvPrivThreadCancel): Added error
6996 * java/lang/natThread.cc (stop_): Pass exception to
6999 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
7001 * include/javaprims.h (java::lang): Added
7002 IllegalArgumentException, IllegalThreadStateException, Math,
7003 NullPointerException, ThreadDeath.
7004 (java::util): Added Enumeration.
7006 * Makefile.in: Rebuilt.
7007 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
7009 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
7011 (threadsv): Renamed from threads to avoid clash in C++ header.
7012 (groupsv): Likewise.
7013 * include/no-threads.h (JvPrivThreadStart): Removed.
7014 * no-threads.cc (JvPrivThreadStart): New function.
7015 * java/lang/Thread.java (Thread): New constructor for internal use.
7016 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
7017 (Thread): Declare constructor.
7018 * prims.cc (JvRunMain): Create the initial Thread and
7020 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
7021 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
7022 Removed `daemon' argument.
7024 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
7025 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
7027 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
7029 * Makefile.in: Rebuilt.
7030 * Makefile.am (INCLUDES): Include THREADINCS.
7032 * configure: Rebuilt.
7033 * configure.in: Recognize `qt' as a threads package.
7035 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
7037 * java/util/Stack.java (pop): Null out topmost node for robustness.
7039 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
7041 * java/util/Stack.java: Rewritten.
7042 * java/util/Vector.java (isEmpty): Simplified expression.
7044 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
7046 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
7047 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
7049 * include/java-array.h (JvNewObjectArray): Created inline to
7052 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
7055 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
7057 * java/util/Vector.java: Rewritten.
7058 * java/io/Serializable.java: Created.
7060 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
7062 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
7063 Infinity is 1/0, not 1/1.
7065 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
7067 * configure: Rebuilt.
7068 * configure.in: Removed duplicate AC_ARG_WITH.
7070 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
7072 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
7074 (_Jv_InitClass): Renamed from soft_initialise_class.
7075 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
7076 (_Jv_CheckCast): Renamed from soft_checkcast.
7077 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
7078 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
7079 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
7080 * include/cni.h (JvInitClass): New function.
7081 (_Jv_InitClass): Renamed from soft_initialise_class.
7083 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
7085 * configure: Rebuilt.
7086 * configure.in (CXX): Don't set.
7087 * Makefile.in: Rebuilt.
7088 * Makefile.am (AM_CXXFLAGS): New macro.
7090 * Makefile.in: Rebuilt.
7091 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
7092 nogc.o): New target.
7094 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
7096 (mark_array): Likewise.
7098 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
7100 * java/lang/Class.h (JvMethod): Removed some unused fields.
7101 (JvField.info): Removed unused idx union variant.
7103 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
7105 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
7108 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
7110 * configure.in, configure (CXX): Add -fvtable-thunks.
7112 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
7114 * java/lang/Object.java (finalize): Move first.
7115 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
7116 (Object): Re-arrange order to match Object.java.
7118 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
7120 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
7121 * java/lang/natString.cc (hashChars): Likewise.
7123 * prims.cc (RuntimeClass): New macro.
7124 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
7126 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
7128 * Makefile.in: Rebuilt.
7129 * Makefile.am (AM_MAKEFLAGS): New macro.
7131 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
7133 * nogc.cc: Include <javaprims.h>.
7135 * Makefile.in: Rebuilt.
7136 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
7138 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
7140 * exception.cc (terminate): Removed.
7141 (unexpected): Removed.
7143 * configure: Rebuilt.
7144 * configure.in: Handle case where target subdir is ".".
7146 * configure: Rebuilt.
7147 * configure.in: Compute COMPPATH based on --with-target-subdir
7148 option. Added --with-target-subdir and --with-cross-host. Use
7149 --with-cross-host to determine when a cross compiler is in use.
7151 * Makefile.in: Rebuilt.
7152 * Makefile.am (GJAVAH): Include COMPPATH.
7153 * configure: Rebuilt.
7154 * configure.in: Subst COMPPATH.
7156 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
7158 * prims.cc (lockMutex): Removed.
7159 (unlockMutex): Likewise.
7160 (processClass): Lock the class using a JvSynchronize object.
7162 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
7164 * java/lang/natString.cc (gc_calloc_fixed): Removed.
7165 (gc_free_fixed): Removed.
7166 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
7167 freeing old value of strhash.
7169 * exception.cc (_Jv_type_matcher): Cast first argument to
7172 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
7174 * include/java-array.h (jstringArray): New type.
7175 * java/lang/natSystem.cc (setProperty): Removed.
7176 (initProperties): Directly call JvNewStringLatin1 for arguments.
7177 * java/util/natDate.cc: Include java/util/Date.h, not
7180 * java/io/FileDescriptor.java (available): No longer static.
7181 * java/lang/natDouble.cc (Double): Removed class definition.
7182 * include/javaprims.h (java::lang::Number): Declare.
7183 (java::lang::NumberFormatException): Likewise.
7184 (java::io::FilenameFilter): Likewise.
7185 (java::lang::Character): Likewise.
7186 (java::lang::Error): Likewise.
7187 (java::lang::SecurityManager): Likewise.
7188 (java::util::Vector): Likewise.
7189 (java::io::FileNotFoundException): Likewise.
7190 (java::io::IOException): Likewise.
7191 (java::lang::NativeLang): Likewise.
7192 (java::lang::UnsatisfiedLinkError): Likewise.
7193 (java::util::StringTokenizer): Likewise.
7194 (java::io::InputStream, java::io::OutputStream): Likewise.
7195 (java::io::PrintStream, java::lang::SecurityException): Likewise.
7196 (java::util::Hashtable): Likewise.
7197 * Makefile.in: Rebuilt.
7198 * Makefile.am (nat_headers): Added java/lang/Double.h,
7199 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
7200 (MOSTLYCLEANFILES): Added nat_headers.
7201 * include/jvm.h: Moved many defines, declarations, and functions
7202 to java/lang/Class.h.
7203 (struct JvSyncInfo): Moved to java/lang/Object.h.
7204 (UTF8_GET): Moved to java/lang/String.h.
7206 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
7208 * java/io/io-defs.h: Don't include java-io.h.
7209 * include/java-io.h: Removed.
7210 * include/javaprims.h: Include java::io.
7212 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
7214 * include/java-io.h (File): Removed
7215 (FileDescriptor): Likewise.
7217 * java/io/io-defs.h: Include java/io/File.h and
7218 java/io/FileDescriptor.h.
7220 * Makefile.in: Rebuilt.
7221 * Makefile.am (GJAVAH): New macro.
7222 (.class.h): New rule.
7223 (SUFFIXES): Added .h.
7224 (nat_headers): New macro.
7225 ($(nat_headers)): New target.
7226 (BUILT_SOURCES): Added nat_headers.
7228 * include/java-util.h: Removed.
7230 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7232 * include/java-io.h: Changed to avoid java-lang.h.
7233 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7235 * java/lang/natSystem.cc: Include java/lang/System.h, not
7237 * java/lang/natString.cc: Include java/lang/String.h, not
7239 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7241 * java/lang/natClass.cc: Include java/lang/Class.h, not
7243 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7245 * java/lang/natObject.cc: Include java/lang/Object.h, not
7247 * exception.cc: Don't include java-lang.h.
7248 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7249 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7250 * nogc.cc: Don't include java-lang.h.
7251 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7252 * prims.cc (processClass): Don't use `init_type'; just cast to
7254 Include java/lang/Class.h and jvm.h, not java-lang.h.
7255 (JvAllocObject): Wrote single-argument version.
7256 (PrimClass): Inherit from Class.
7257 (initPrimClass): Removed.
7258 * include/java-lang.h: Removed.
7259 * include/jvm.h: Declare struct _dispatchTable.
7260 * include/cni.h: Don't declare _Jv_MonitorEnter,
7261 _Jv_MonitorExit, struct _dispatchTable.
7262 * include/javaprims.h: Moved all typedefs here, from cni.h.
7263 * java/lang/Class.h: New file.
7264 * include/java-array.h: New file.
7265 * java/lang/Object.h: New file.
7267 * prims.cc (classFromSig): Now static.
7269 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7271 * include/cni.h: Don't mention soft_new.
7272 * include/java-lang.h (Object): Don't mention soft_new. Mention
7273 _Jv_NewPrimArray, not newPrimArray.
7274 * prims.cc (soft_new): Removed.
7275 (_Jv_NewArray): Renamed from soft_newarray.
7276 (soft_anewarray): Use JvNewObjectArray.
7277 (newArray): Likewise.
7278 (newRefArray): Removed.
7279 (_Jv_NewPrimArray): Renamed from newPrimArray.
7280 (equalUtf8Consts): Now static.
7281 (soft_instanceof): Removed.
7282 * java/lang/natDouble.cc (doubleToString): Now static.
7284 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7285 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7288 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7290 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7292 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7294 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7295 (JvPrivMutexUnlock): Likewise.
7296 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7297 Return value now jint.
7298 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7301 * Makefile.in: Rebuilt.
7302 * Makefile.am: Don't allow `jV' names.
7303 (maintainer-check): Depend on libjava.a.
7304 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7306 * Makefile.in: Rebuilt.
7307 * Makefile.am (NM): New macro.
7308 (maintainer-check): New target.
7310 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7312 * configure: Rebuilt.
7313 * configure.in: Use --enable-threads, not --enable-gc. Fix
7314 documentation for --enable-threads. Changed option to work like
7315 identical option in gcc/configure.
7317 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7319 * boehm.cc (mark_array): Use JvGetArrayLength.
7321 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7323 * exception.cc: New file (mostly written by Andrew MacLeod),
7324 exception handling support.
7325 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7326 Remove -fexceptions - it is now the default.
7328 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7329 (JvAllocObject): Renamed to _Jv_AllocObject.
7330 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7331 (loadClass): Renamed to _Jv_FindClass.
7332 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7333 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7334 * include/java-lang.h (JvGetArrayLength): New CNI function.
7335 * include/jvm.h (_Jv_FindClass): Added declaration.
7337 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7339 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7341 * java/lang/natClass.cc (getName): Add implementation.
7342 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7344 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7346 * Makefile.in: Rebuilt.
7347 * Makefile.am (.class.o): Added -fexceptions.
7349 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7351 * configure: Rebuilt.
7352 * configure.in: Don't check for __nanosleep.
7353 * posix-threads.cc (nanosleep): Never define.
7355 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7357 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7360 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7362 * java/lang/natThread.cc (enumerate): Uncommented.
7363 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7364 (interrupt): Call it.
7366 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7368 * configure: Rebuilt.
7369 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7371 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7373 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7374 * include/java-lang.h (Thread): Added `interrupted_' method.
7375 * java/lang/Thread.java (interrupted_): New method.
7376 * java/lang/natThread.cc (join): Possibly throw interrupted
7377 exception after join finishes.
7378 (interrupted_): New method.
7379 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7381 (JvPrivThreadJoin): New function.
7382 (really_start): Notify all threads waiting for this thread.
7383 (struct starter): Added `data' member.
7384 (JvPrivThreadStart): Set it.
7385 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7387 (JvPrivThreadJoin): No longer inline.
7388 (JvPrivThreadInterrupt): New function.
7390 * include/no-threads.h (JvPrivThreadSleep): Removed.
7391 * posix-threads.cc (JvPrivThreadSleep): Removed.
7393 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7395 * configure: Rebuilt.
7396 * configure.in (THREADOBJS): Initialize to no-threads.o in
7398 * posix-threads.cc (key): New global.
7399 (JvPrivInitThreads): New function.
7400 (really_start): Set thread-specific data to point to object.
7401 (JvPrivThreadStart): Added `daemon' argument.
7402 (JvPrivThreadSleep): Added `data' argument.
7403 * include/posix-threads.h (JvPrivInitThreads): Removed
7405 (JvPrivThreadCurrent): New function.
7406 * include/no-threads.h (JvPrivThreadInitData): Initialize
7407 JvPrivOnlyThread. Added `thread' argument.
7408 (JvPrivThreadCurrent): New function.
7409 (JvPrivThreadStart): Added `daemon' argument.
7410 * no-threads.cc: New file.
7411 * java/lang/natThread.cc (init_data): New function.
7413 (start): Set `alive' member.
7414 (stop_): Clear `alive' member.
7415 (destroy): Likewise.
7416 (currentThread): Implemented.
7417 (start): Pass `daemon' argument to JvPrivThreadStart.
7419 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7420 (Thread): Added `init_data' method.
7421 * java/lang/Thread.java (alive, data): New instance variables.
7422 (init_data): New private method.
7423 (isAlive): No longer native.
7425 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7427 * include/java-lang.h (JvRunMain): Declare.
7428 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7429 * prims.cc (JvRunMain): New function.
7430 (main_signature, main_name): New globals.
7432 * boehm.cc (mark_array): Use `elements' function and not
7433 operator[] on jarray.
7435 * posix-threads.cc: Include <config.h>. Define nanosleep if
7438 * configure: Rebuilt.
7439 * configure.in: Check for _nanosleep.
7441 * configure: Rebuilt.
7442 * configure.in: Check for pthread_mutexattr_settype.
7444 * include/cni.h (class JvSynchronize): New class.
7445 * java/lang/Thread.java (sleep): Throws InterruptedException.
7446 (join): Throws InterruptedException.
7447 (resume): Not native.
7448 (resume_): New method.
7449 (start): Now synchronized.
7450 (stop_): New method.
7451 (Thread): Synchronize when accessing threadNumber.
7453 * java/lang/natThread.cc (throwException): New macro.
7454 (sleep): Throw InterruptedException.
7457 * include/java-lang.h (Runtime): Added interrupted().
7459 * boehm.cc (call_finalizer): Correctly initialize jobj.
7460 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7462 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7465 * configure: Rebuilt.
7466 * configure.in: Added support for --disable-threads.
7467 * include/no-threads.h: New file.
7469 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7471 * Makefile.in: Rebuilt.
7472 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7473 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7474 (libjava_a_LIBADD): Added THREADOBJS.
7475 * configure: Rebuilt.
7476 * configure.in: Added --with-threads option.
7477 * posix-threads.cc: New file.
7478 * include/posix-threads.h: New file.
7479 * include/java-lang.h (Object): Added static member sync_mutex,
7480 member sync_info, method init_mutex.
7481 (struct JvSyncInfo): New struct.
7482 Include "java-threads.h".
7483 * prims.cc (soft_monitorenter): Wrote.
7484 (soft_monitorexit): Likewise.
7485 * java/lang/natObject.cc (init_mutex): New method.
7489 (sync_mutex): Define.
7490 Include "java-threads.h".
7492 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7494 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7495 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7497 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7499 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7500 Added extern "Java" in places to tell G++ Object is a "Java" type.
7501 Other minor renaming and fixes.
7502 * include/java-io.h (FileDescriptor): Add friend class declarations.
7503 G++ no longer allows non-Java types in method parameters and results
7504 of Java classes. Converted most offending methods to friends.
7505 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7506 * java/lang/natSystem.cc (setProperty): Make friend.
7507 * java/lang/natString.cc, include/java-lang.h (String): Rename
7508 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7509 * include/java-lang.h (JArray): Remove getData and eoprator[].
7510 Add elements friend function instead.
7511 * java/lang/natSystem.cc (arraycopy): Use elements function.
7512 * java/io/natFileDescriptor.cc (read, write): Likewise.
7513 * include/java-lang.h (Object): Remove unused make method.
7514 (System::setProperty(char*,char*)): Turn into friend function.
7515 (Class): Rename newObject by JvAllocObject.
7516 * prims.cc: Update to use JvAllocObject, and elements.
7518 * java/lang/natDouble.cc: Fix double -> jdouble.
7520 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7522 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7524 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7526 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7527 * include/java-lang.h (Runtime): finalize_on_exit and
7528 runFinalizersOnExit now static.
7529 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7531 (finalize_on_exit): Now static.
7533 * boehm.cc (mark_obj): Get class using getClass() method on
7535 (_dispatchTable): Removed.
7537 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7539 * java/io/natFileDescriptor.cc (open_read): Only call open if
7541 (open_write): Likewise.
7543 * Makefile.in: Rebuilt.
7544 * Makefile.am ($(nat_files)): Depend on config.h.
7546 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7548 * prims.cc (ObjectClass): Now a macro; updated for new class name
7550 (StringClass): Likewise.
7551 (ClassClass): Likewise.
7553 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7555 * java/io/natFileDescriptor.cc (available): Do nothing unless
7556 HAVE_SELECT defined.
7557 * java/util/natDate.cc (setTime): Conditional on
7559 (toString): Conditional on HAVE_TIME.
7560 * aclocal.m4, configure: Rebuilt.
7561 * acinclude.m4: New file.
7562 * configure.in: Don't actually call AM_EXEEXT. Call
7563 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7564 --with-target-subdir option. Check for select and open
7567 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7569 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7570 (call_finalizer): Likewise.
7571 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7572 * prims.cc (newObject): Pass actual method pointer to
7573 JvPrivRegisterFinalizer.
7574 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7575 (JvPrivRegisterFinalizer): Changed interface.
7577 * Makefile.in: Rebuilt.
7578 * Makefile.am (MOSTLYCLEANFILES): New macro.
7579 (CLEANFILES): Removed javao_files.
7581 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7583 * nogc.cc: New file.
7584 * Makefile.in: Rebuilt.
7585 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7586 (EXTRA_libjava_a_SOURCES): New macro.
7587 (libjava_a_SOURCES): Removed boehm.cc.
7588 (libjava_a_DEPENDENCIES): Added GCOBJS.
7589 (libjava_a_LIBADD): Likewise.
7590 * configure: Rebuilt.
7591 * configure.in: Added code for --enable-gc=TYPE.
7593 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7595 * boehm.cc (mark_array): Don't further dereference pointer from
7598 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7599 * Makefile.in: Rebuilt.
7600 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7601 one for boehm-gc build directory.
7603 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7605 * include/java-lang.h (finalize_on_exit): New instance variable in
7606 java::lang::Runtime.
7607 (runFinalizersOnExit): New method.
7608 * java/lang/Runtime.java (finalize_on_exit): New instance
7610 (runAllFinalizers_): New private method.
7611 (runFinalizersOnExit): New method.
7612 * boehm.cc (JvPrivRunFinalizers): New function.
7613 (JvPrivRunAllFinalizers): Likewise.
7614 (JvPrivRunGC): Likewise.
7615 * java/lang/natRuntime.cc: Include "jvm.h".
7616 (gc): Call JvPrivRunGC.
7617 (runFinalization): Call JvPrivRunFinalizers.
7618 (runFinalizersOnExit): New method.
7619 (exit_): Call JvPrivRunAllFinalizers if required.
7620 * include/jvm.h: Declare JvPrivRunFinalizers,
7621 JvPrivRunAllFinalizers, JvPrivRunGC.
7623 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7625 * boehm.cc (JvPrivRegisterFinalizer): New function.
7626 (call_finalizer): Likewise.
7627 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7628 * prims.cc (finalize_name): New global.
7629 (newObject): Just call other newObject.
7630 (newObject): Register finalizer if it exists.
7632 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7634 * prims.cc (gc_malloc): Removed.
7635 (makeUtf8Const): Use JvPrivAllocBytes.
7636 (lookupArray): Likewise.
7637 (newPrimArray): Likewise.
7638 (JvNewObjectArray): Use JvPrivAllocArray.
7639 (newObject): Use JvPrivAllocObj.
7640 (newObject): Likewise.
7641 Changed Method -> JvMethod everywhere.
7642 Changed Field -> JvField everywhere.
7643 * include/java-lang.h (Object): Changed type of `fields' to
7645 (jmethodID, jfieldID): New typedefs.
7646 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7648 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7650 (METHOD_NATIVECODE): Moved from java-lang.h.
7651 (class JvField): New class.
7652 (JvGetFirstInstanceField): New function.
7653 (JvFieldIsRef): Likewise.
7654 (JvGetObjectField): Likewise.
7655 (JvNumInstanceFields): Likewise.
7657 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7659 * boehm.cc: New file.
7660 * Makefile.in: Rebuilt.
7661 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7662 (INCLUDES): Added -I options to find boehm-gc files.
7664 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7666 * configure: Rebuilt.
7667 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7669 * Makefile.in: Rebuilt.
7670 * Makefile.am (nat_files): New macro.
7671 (libjava_a_DEPENDENCIES): Use it.
7672 (libjava_a_LIBADD): Likewise.
7673 ($(nat_files)): New static pattern rule.
7674 (class_files): Run separate find to find .class files.
7675 (javao_files): Compute based on class_files.
7676 (BUILT_SOURCES): New macro.
7678 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7680 * Makefile.am (java_files): New macro.
7681 (class_files): Likewise.
7682 (javao_files): Likewise.
7683 (libjava_a_DEPENDENCIES): Include $(javao_files).
7684 (libjava_a_LIBADD): Likewise.
7685 (classes.stamp): Depend on $(java_files); only recompile changed
7688 (CLEANFILES): Don't run find; use macros. Don't mention
7690 (.class.o): New target.
7691 (compiled.stamp): Removed.
7693 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7695 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7696 LineNumberReader}>java: Newly-implemented standard classes.
7698 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7700 * Makefile.in: Rebuilt.
7701 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7703 * Makefile.in: Rebuilt.
7704 * Makefile.am (hack): New macro.
7705 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7707 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7709 * include/config.h.in: New file.
7710 * include/config.h: Removed.
7711 * acconfig.h: New file.
7712 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7713 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7714 libjava_a_LIBADD): New macros.
7715 (INCLUDES): New macro.
7718 (SUFFIXES): Removed.
7720 (libjava.a): Removed.
7722 * configure: Rebuilt.
7723 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7724 Look for headers and functions we require. Create
7727 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7729 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7730 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7731 soft_lookupinterfacemethod): New functions.
7732 (PrimClass): Actually initialize the primitive classes.
7733 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7735 * include/java-util.h: Removed java::util definition.
7736 * include/cni.h: Moved java::util here and added Properties.
7737 Added more function prototypes.
7738 * include/java-lang.h: Added mroe methods and friend declarations.
7739 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7740 * include/jvm.h (strLengthUtf8): Add declaration.
7742 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7744 * java/lang/{Byte,Short,Void}.java: New classes.
7745 * java/lang/Character.java (isJavaIdentifierStart,
7746 JavaIdentifierPart): New static methods.
7747 * java/lang/Number.java (byteValue, shortValue): New methods.
7749 * java/lang/String.java (intern, hashCode): Make native.
7750 * java/lang/natString.cc: New file. Handle the string pool.
7751 * Makefile.am: Build natString.o. Use CXXFLAGS.
7753 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7754 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7755 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7756 * java/lang/System.java (setProperty): New private method.
7757 (initProperties): Take argument, and make native.
7758 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7759 (currentTimeMillis): Make more robust.
7761 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7762 * java/io/UnsupportedEncodingException.java: New exception class.
7764 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7765 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7767 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7769 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7770 * prims.cc: Added bunch of stuff.
7771 * include/cni.h: Added various definitions.
7772 * include/java-lang.h: Added Method, various friends, some macros.
7774 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7775 * java/lang/System.java (arraycopy): Make native.
7777 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7779 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7780 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7781 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7782 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7784 * java/lang/Runtime.java: Declare methods as native instead of
7786 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7787 * java/lang/System.java: Comment out some stuff, for now.
7788 * java/lang/Thread.java: Re-write. Use native methods.
7789 * java/lang/NativeLang.java: Remove most of it.
7791 * java/util/natDate.cc: Native (C++) methods for Date.
7792 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7793 * java/util/Date.java: Complete re-write.
7795 * java/io/io-defs.h: New header file.
7796 * java/io/FileDescriptor.java: Add a bunch of private methods,
7797 mostly moved from NativeIO.java and natNativeIO.cc.
7798 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7799 * java/io/File.java: Use new code.
7800 * java/io/{FileInputStream.java.FileOutputStream.java,
7801 RandomAccessFile.java}: Use new private FileDescriptor methods.
7802 * java/io/NativeIO.java: Removed, no longer used.
7804 * java/io/StreamTokenizer.java (numericChars): Make char array.
7806 * include/*.h: Various header files used by the C++ native code.
7808 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7809 New autoconf+automake-based setup.
7810 * prims.cc: New file for Java "primitives".