1 2000-02-10 Tom Tromey <tromey@cygnus.com>
3 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
4 * java/io/FileDescriptor.java (EXCL): New static field.
5 * java/io/File.java (tmpdir): New static field.
6 (createTempFile): New method.
7 (nextValue): New method.
8 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
11 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
12 (jboolean): Declare as an attributed int, not a bool.
13 (_Jv_func): Declare differently for C.
15 * gnu/gcj/jni/natNativeThread.cc: New file.
16 * gnu/gcj/jni/NativeThread.java: New file.
17 * java/lang/Thread.java (data): Now a RawData.
18 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
20 * Makefile.in: Rebuilt.
21 * Makefile.am (java/lang/Thread.h): New target.
22 (ordinary_java_source_files): Added NativeThread.java.
23 (nat_source_files): Added natNativeThread.cc.
24 * java/lang/natThread.cc: Include <jni.h>
25 (struct natThread): Added `jni_env' field.
26 (_Jv_GetCurrentJNIEnv): New function.
27 (_Jv_SetCurrentJNIEnv): Likewise.
28 (initialize_native): Initialize jni_env.
30 * jni.cc (ThreadGroupClass): New define.
31 (_Jv_JNI_InvokeFunctions): New structure.
32 (JNI_GetCreatedJavaVMs): New function.
34 (JNI_GetDefaultJavaVMInitArgs): New function.
35 Include NativeThread.h.
36 (NativeThreadClass): New define.
37 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
38 (_Jv_JNI_DestroyJavaVM): New function.
39 (_Jv_JNI_AttachCurrentThread): New function.
40 (_Jv_JNI_DetachCurrentThread): New function.
41 (_Jv_JNI_GetEnv): New function.
42 (JNI_CreateJavaVM): New function.
43 (_Jv_JNI_GetJavaVM): New function.
44 (_Jv_JNIFunctions): Added entry for GetJavaVM.
45 * include/jni.h (JavaVMAttachArgs): New structure.
46 (JNI_EDETACHED): New define.
47 (JNI_EVERSION): Likewise.
48 (JavaVM): Define properly.
49 (struct JNIInvokeInterface): New structure.
50 (class _Jv_JavaVM): New class.
51 (JNI_OnLoad, JNI_OnUnload): Declare.
52 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
53 JNI_GetCreatedJavaVMs): Declare.
54 (JavaVMInitArgs): New typedef.
55 (JavaVMOption): Likewise.
56 (JNI_ERR): New define.
59 2000-02-10 Andrew Haley <aph@cygnus.com>
61 * interpret.cc: Don't include fdlibm.h.
62 Replace #if with #ifdef throughout.
63 Declare extern __ieee754_fmod.
64 (continue1): Remove op_getfield, op_getstatic, op_putfield,
66 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
67 Search class hierarchy for superclass vtable.
69 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
70 off the end of a pointer list.
72 * java/lang/natThread.cc (stop): Don't abort, throw an exception
76 2000-02-09 Tom Tromey <tromey@cygnus.com>
78 * java/lang/natRuntime.cc (_load): Call add_library.
79 (loadLibraryInternal): Likewise.
81 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
82 iconv_close when handle is not NULL. Thanks to Andrew Haley.
83 (Output_iconv::finalize): Likewise.
85 2000-02-08 Tom Tromey <tromey@cygnus.com>
87 * java/util/Properties.java (setProperty): New method.
90 2000-02-07 Tom Tromey <tromey@cygnus.com>
92 * java/lang/Runtime.java (_load): Declare.
93 (load, loadLibrary): Wrote in terms of _load.
94 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
96 (loadLibrary): Likewise.
99 (loadLibrary, load): Removed.
101 * jni.cc (ThrowableClass): New define.
102 (_Jv_JNI_Throw): Check argument.
103 (_Jv_JNI_ThrowNew): Likewise.
104 (wrap_value): Don't wrap object if it is NULL.
105 (_Jv_JNI_DefineClass): Use wrap_value.
106 (_Jv_JNI_FindClass): Likewise.
107 (_Jv_JNI_GetSuperclass): Likewise.
108 (_Jv_JNI_ExceptionOccurred): Likewise.
109 (_Jv_JNI_AllocObject): Likewise.
110 (_Jv_JNI_GetObjectClass): Likewise.
111 (_Jv_JNI_NewString): Likewise.
112 (_Jv_JNI_NewStringUTF): Likewise.
113 (_Jv_JNI_NewObjectArray): Likewise.
114 (_Jv_JNI_GetObjectArrayElement): Likewise.
115 (_Jv_JNI_NewPrimitiveArray): Likewise.
116 (_Jv_JNI_ToReflectedField): Likewise.
117 (_Jv_JNI_ToReflectedMethod): Likewise.
118 (_Jv_JNI_AllocObject): Check argument.
119 (_Jv_JNI_NewObjectV): Likewise.
120 (_Jv_JNI_NewObject): Likewise.
121 (_Jv_JNI_NewObjectA): Likewise.
122 (_Jv_JNI_GetObjectClass): Likewise.
123 (_Jv_JNI_GetField): Likewise.
124 (_Jv_JNI_SetField): Likewise.
126 * interpret.cc (PUSHL): Don't use expression statement.
131 * jni.cc (add_char): Conditional on INTERPRETER.
132 (mangled_name): Likewise.
134 * include/java-interp.h (class _Jv_MethodBase): Conditional on
136 (class _Jv_JNIMethod): Likewise.
138 2000-02-04 Warren Levy <warrenl@cygnus.com>
140 * Makefile.am: Added MPN.java and BigInteger.java.
141 * Makefile.in: Rebuilt.
142 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
144 * java/math/BigInteger.java: New file. Based primarily on
145 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
147 2000-02-04 Tom Tromey <tromey@cygnus.com>
149 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
151 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
152 if the method is native.
153 * resolve.cc (ncode): Don't handle native methods.
154 (_Jv_JNIMethod::ncode): New method.
155 (_Jv_PrepareClass): Handle native methods.
156 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
157 Include AbstractMethodError.h.
158 (add_char): New function.
159 (mangled_name): Likewise.
160 * include/java-interp.h (class _Jv_JNIMethod): New class.
161 (class _Jv_MethodBase): New class.
162 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
163 (_Jv_InterpClass): Changed `interpreted_methods' field to type
166 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
167 * java/lang/natRuntime.cc (libraries_size, libraries_count,
168 libraries): New globals.
169 (add_library): New function.
170 (_Jv_FindSymbolInExecutable): New function.
172 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
175 2000-02-04 Andrew Haley <aph@cygnus.com>
177 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
178 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
179 * java/lang/natThrowable.cc (printRawStackTrace): Rename
180 printStackTrace to printRawStackTrace.
182 2000-02-03 Tom Tromey <tromey@cygnus.com>
184 * java/util/Calendar.java (toString): New method.
185 * java/util/SimpleTimeZone.java (clone): New method.
186 (toString): New method.
187 * java/util/TimeZone.java (clone): New method.
188 * java/text/SimpleDateFormat.java (clone): New method.
189 * java/text/NumberFormat.java (clone): New method.
190 (equals): New method.
191 * java/text/Format.java (clone): New method.
192 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
195 * java/text/DateFormat.java (clone): New method.
196 * java/text/Collator.java (clone): New method.
198 2000-02-03 Tom Tromey <tromey@cygnus.com>
200 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
203 2000-02-01 Tom Tromey <tromey@cygnus.com>
205 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
206 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
207 constructing the closure if the function is native.
208 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
209 a template function, #if'd out, or static.
210 Include <java-interp.h>.
212 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
214 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
216 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
217 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
219 (wrap_value): New function.
220 (_Jv_JNI_CallAnyMethodV): Use it.
221 (_Jv_JNI_CallAnyMethodA): Likewise.
222 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
223 (_Jv_JNI_GetStaticField): Likewise.
225 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
226 (_Jv_JNI_GetStaticField): Likewise.
228 2000-01-31 Tom Tromey <tromey@cygnus.com>
230 * prims.cc (_Jv_MallocUnchecked): New function.
231 (main_init): Call _Jv_JNI_Init.
232 * include/jvm.h (_Jv_MallocUnchecked): Declare.
233 (_Jv_JNI_Init): Declare.
234 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
236 (_Jv_JNI_NewGlobalRef): New function.
237 (_Jv_JNI_DeleteGlobalRef): New function.
238 (_Jv_JNI_DeleteLocalRef): New function.
239 (_Jv_JNI_conversion_call): Initialize and clear local reference
241 (_Jv_JNI_NewLocalRef): New function.
242 (struct _Jv_JNI_LocalFrame): New structure.
243 (_Jv_JNI_PushLocalFrame): New function.
244 (_Jv_JNI_EnsureLocalCapacity): New function.
245 (FRAME_SIZE): New define.
246 (_Jv_JNI_GetStringChars): Mark string, not characters.
247 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
248 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
249 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
251 (_Jv_JNI_DefineClass): Make return value a local ref.
252 (_Jv_JNI_FindClass): Likewise.
253 (_Jv_JNI_GetSuperclass): Likewise.
254 (_Jv_JNI_ExceptionOccurred): Likewise.
255 (_Jv_JNI_AllocObject): Likewise.
256 (_Jv_JNI_GetObjectClass): Likewise.
257 (_Jv_JNI_CallAnyMethodV): Likewise.
258 (_Jv_JNI_NewString): Likewise.
259 (_Jv_JNI_NewStringUTF): Likewise.
260 (_Jv_JNI_NewObjectArray): Likewise.
261 (_Jv_JNI_GetObjectArrayElement): Likewise.
262 (_Jv_JNI_ToReflectedField): Likewise.
263 (_Jv_JNI_ToReflectedMethod): Likewise.
264 (_Jv_JNIFunctions): Updated table for new functions.
265 (_Jv_JNI_Init): New function.
266 (mark_for_gc): Wrote.
267 (unmark_for_gc): Wrote.
268 * include/jni.h (struct JNINativeInterface): Removed name from
269 PopLocalFrame parameter.
270 (class _Jv_JNIEnv): Added `locals' field.
272 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
274 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
277 2000-01-30 Tom Tromey <tromey@cygnus.com>
279 * include/config.h.in: Rebuilt.
280 * acconfig.h (HAVE_ICONV): Define.
281 * configure: Rebuilt.
282 * configure.in: Check for `iconv' function.
283 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
284 no specific encoder exists.
285 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
286 no specific encoder exists.
287 * Makefile.in: Rebuilt.
288 * Makefile.am (convert_source_files): Mention Input_iconv.java and
290 (nat_source_files): Added natIconv.cc.
291 * gnu/gcj/convert/natIconv.cc: New file.
292 * gnu/gcj/convert/Input_iconv.java: New file.
293 * gnu/gcj/convert/Output_iconv.java: New file.
295 2000-01-28 Tom Tromey <tromey@cygnus.com>
297 * Makefile.in: Rebuilt.
298 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
300 2000-01-26 Tom Tromey <tromey@cygnus.com>
302 * gcj/method.h (JvNumMethods): Moved from Class.h.
303 (JvGetFirstMethod): Likewise.
304 * java/lang/Class.h (Object): Updated decl of
305 _Jv_JNI_ToReflectedField.
306 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
307 * Makefile.in: Rebuilt.
308 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
309 argument of _Jv_JNI_ToReflectedField.
310 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
312 (java/lang/reflect/Method.h): Likewise.
313 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
315 (jweak): New typedef.
316 (struct JNINativeInterface): Correctly declare remaining entries.
317 * jni.cc: Include Class.h, ClassLoader.h.
318 (_Jv_JNI_FindClass): New function.
319 (_Jv_JNI_DefineClass): New function.
320 (_Jv_JNI_conversion_call): New function.
321 (_Jv_JNI_FindClass): Use current class loader to find class.
322 (_Jv_JNI_ExceptionCheck): New function.
323 (_Jv_JNI_FromReflectedField): Now static.
324 (MethodClass): New define.
325 (_Jv_JNI_FromReflectedMethod): New function.
326 (_Jv_JNI_ToReflectedMethod): Likewise.
328 (_Jv_JNI_IsAssignableFrom): Renamed.
329 (_Jv_JNI_GetStringRegion): New function.
330 Include StringIndexOutOfBoundsException.h.
331 (_Jv_JNI_GetStringUTFRegion): New function.
332 (_Jv_JNIFunctions): Updated for new functions.
333 (_Jv_JNI_GetPrimitiveArrayCritical): New function
334 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
335 (_Jv_JNI_GetStringCritical): New function.
336 (_Jv_JNI_ReleaseStringCritical): Likewise.
337 (get_throwable): Removed.
338 (GCJ_JV_JNIENV_FRIEND): Removed.
339 (__GCJ_JNI_IMPL__): Define.
342 * resolve.cc (get_ffi_type_from_signature): Handle case where
345 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
347 * interpret.cc (run): Don't call println.
348 Don't include PrintStream.h.
350 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
351 nameIndex. Use "jint" as type for boffset.
352 * java/lang/Class.h (struct _Jv_Method): Made accflags a
354 (Class): Likewise. Also changed type of method_count,
355 vtable_method_count, size_in_bytes, field_count,
356 static_field_count, interface_count.
357 * gcj/array.h (__JArray): Made `length' a const jsize, not an
360 2000-01-21 Tom Tromey <tromey@cygnus.com>
362 * java/lang/reflect/natConstructor.cc (newInstance): Use
364 * include/jvm.h: Declare _Jv_CallAnyMethodA.
365 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
366 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
369 (invoke): Use _Jv_CallAnyMethodA.
371 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
372 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
374 (struct _Jv_Method): Added getNextMethod method.
375 (JvNumMethods): New function.
376 (JvGetFirstMethod): Likewise.
377 * gcj/field.h (JvGetFirstStaticField): New function.
378 (JvNumStaticFields): Likewise.
379 (getNextField): Renamed from getNextInstanceField.
380 (struct _Jv_Field): New method getClass.
381 * jni.cc: Wrote many new functions.
382 * include/jni.h (JNI_TRUE): Define.
383 (JNI_FALSE): Likewise.
384 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
385 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
386 jcharArray, jfloatArray, jdoubleArray): New typedefs.
387 (jfieldID, jmethodID): Likewise.
388 (JNI_COMMIT, JNI_ABORT): New defines.
389 (JNINativeMethod): New struct.
390 (struct JNINativeInterface): Correctly declared more entries.
391 (class _Jv_JNIEnv): Added `ex' member.
392 (JNI_VERSION_1_1): New define.
393 (JNI_VERSION_1_2): Likewise.
395 * boehm.cc (_Jv_MarkObj): Use getNextField, not
396 getNextInstanceField.
398 2000-01-20 Tom Tromey <tromey@cygnus.com>
400 * resolve.cc (StringClass): Removed.
401 * defineclass.cc (StringClass): Removed.
403 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
407 2000-01-19 Tom Tromey <tromey@cygnus.com>
409 * interpret.cc (PC_REGISTER_ASM): Removed.
411 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
414 * All files: Updated copyright to reflect Cygnus purchase.
416 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
418 * configure: Rebuilt.
419 * configure.in: Recognize --disable-interpreter.
421 2000-01-18 Andrew Haley <aph@cygnus.com>
423 * name-finder.cc (lookup): Check for dladdr function.
424 acconfig.h (HAVE_DLADDR): Add.
425 configure.in: Check for HAVE_DLADDR
427 include/config.h.in: Rebuilt.
429 2000-01-17 Andrew Haley <aph@cygnus.com>
431 * prims.cc (_Jv_RunMain): Set the name of this executable.
433 2000-01-17 Tom Tromey <tromey@cygnus.com>
435 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
436 when backtrace can't be computed.
438 * configure: Rebuilt.
439 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
441 * java/lang/Runtime.java (loadLibraryInternal): Declare.
442 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
443 (_Jv_FindClassInCache): Likewise.
444 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
445 (findSystemClass): Try to load class from compiled module.
447 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
448 (loadLibrary): Likewise.
449 (lt_preloaded_symbols): Define.
450 (loadLibraryInternal): New method.
451 * include/config.h.in: Rebuilt.
452 * acconfig.h (USE_LTDL): Added.
453 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
454 (INCLUDES): Added $(INCLTDL).
455 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
456 (libgcj_la_LIBADD): Likewise.
457 * aclocal.m4, configure: Rebuilt.
458 * configure.in: Added libltdl support.
460 2000-01-15 Tom Tromey <tromey@cygnus.com>
462 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
464 2000-01-14 Andrew Haley <aph@cygnus.com>
466 * java/lang/natThrowable.cc: New file.
468 * java/lang/Throwable.java (fillInStackTrace): Make native.
469 (printStackTrace): Call native method to do this.
470 (Throwable): Call fillInStackTrace.
471 (stackTrace): New variable.
473 * include/jvm.h: Add _Jv_ThisExecutable functions.
475 * prims.cc: (_Jv_execName): New variable.
476 (catch_segv): Call fillInStackTrace.
478 (_Jv_ThisExecutable): New functions.
479 (JvRunMain): Set the name of this executable.
481 * Makefile.am: Add java/lang/natThrowable.cc.
483 * Makefile.in: Rebuilt.
485 * acconfig.h: Add HAVE_PROC_SELF_EXE.
487 * configure.in: Force link with __frame_state_for in
488 FORCELIBGCCSPEC. Add new checks for backtrace.
489 * include/config.h.in: Rebuilt.
491 * name-finder.cc: New file.
492 * include/name-finder.h: New file.
494 2000-01-16 Anthony Green <green@cygnus.com>
496 * java/lang/StringBuffer.java (StringBuffer): Don't special case
499 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
501 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
503 2000-01-13 Tom Tromey <tromey@cygnus.com>
505 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
506 not system loader, as initiating loader.
508 2000-01-11 Tom Tromey <tromey@cygnus.com>
510 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
511 HP/UX. From David Scott Urban.
513 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
515 * java/lang/natMath.cc (pow): Cast args to `double', not
518 (IEEEremainder): Likewise.
519 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
520 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
522 2000-01-09 Anthony Green <green@cygnus.com>
524 * java/lang/natString.cc (init): Test for overflow condition
525 during out of bounds check.
526 (getChars): Throw StringIndexOutOfBoundsException, not
527 ArrayIndexOutOfBoundsException.
529 (regionMatches): Obey case option during string comparison.
531 * configure.host (ligcj_interpreter): New variable. Enable
532 interpreter by default on IA-32.
533 * configure.in: Examine libgcj_interpreter.
534 * configure: Rebuilt.
536 2000-01-07 Tom Tromey <tromey@cygnus.com>
538 * mauve-libgcj: Don't disable ClassTest.
540 * java/lang/natClass.cc (getClasses): Wrote.
542 2000-01-06 Tom Tromey <tromey@cygnus.com>
544 * java/lang/natClass.cc (_getConstructors): Correctly check
545 whether method name is the init name.
546 (getMethod): Look at accflags on method in `klass', not `this'.
548 2000-01-05 Tom Tromey <tromey@cygnus.com>
550 * java/lang/natClass.cc (getMethod): Compute offset relative to
551 `klass's methods table, not `this's table.
553 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
554 In unwrapping/widening case, check whether `k' is null, not
555 whether it is primitive. Initialize `num' from `argelts', not
556 `paramelts'. Correct create and pass arguments to ffi_call.
557 Don't let presence of `this' argument affect index used to look in
559 (COPY): Set appropriate element in `values' vector.
561 * java/lang/natClass.cc: Include <gcj/method.h>.
563 * java/lang/Class.h (_getMethods): Correctly declare as private,
566 * java/lang/Class.h (_getMethods): Declare.
567 * java/lang/Class.java (_getMethods): Declare.
568 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
569 (getDeclaredClasses): Always return empty array.
570 (_getMethods): New method.
572 (getDeclaredMethod): Return `rmethod'.
573 (finit_name): New global.
574 (getDeclaredMethods): Check for finit_name.
575 (_getMethods): Likewise.
576 (getMethod): Only return public methods.
578 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
579 jboolean and select correct ffi type on that basis.
580 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
581 Constructor call always has `void' return type.
583 2000-01-04 Tom Tromey <tromey@cygnus.com>
585 * java/lang/Class.h (getSignature): Updated.
586 * java/lang/Class.java (getSignature): Updated.
587 * java/lang/natClass.cc (getSignature): Added `is_constructor'
589 (getConstructor): Ensure constructor is public.
590 (_getConstructors): Check for public-ness of constructor when
591 `declared' is false, not when it is true.
593 2000-01-04 Warren Levy <warrenl@cygnus.com>
595 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
597 (receive): Set the sender's address in the DatagramPacket.
599 2000-01-04 Tom Tromey <tromey@cygnus.com>
601 * java/lang/reflect/natConstructor.cc (newInstance): Pass
602 declaring class as return_type argument to
603 _Jv_CallNonvirtualMethodA.
604 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
605 constructor case, create object and use it as `this' argument.
606 * java/lang/Class.h (_getConstructors): Declare.
607 (_getFields): Declare.
608 * java/lang/Class.java (getConstructors): Wrote.
609 (_getConstructors): New native method.
610 (getDeclaredConstructors): Wrote.
611 (_getFields): Declare new native method.
612 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
614 (getMethod): Work correctly when class is primitive.
615 (getDeclaredMethods): Likewise. Compute offset using `method',
617 (getDeclaredMethod): Likewise.
618 (getConstructor): Wrote.
619 (ConstructorClass): New define.
620 (getDeclaredConstructor): Wrote.
621 (_getConstructors): New method.
622 (_getFields): New method.
625 * Makefile.in: Rebuilt.
626 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
628 * prims.cc: Remove `#pragma implementation'.
629 * gcj/array.h: Remove `#pragma interface'.
631 * prims.cc (_Jv_equaln): New function.
632 * java/lang/Class.java (getSignature): Declare.
633 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
634 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
636 (getSignature): New method.
637 (getDeclaredMethod): Wrote.
639 Include StringBuffer.h.
640 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
641 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
643 (getSignature): Declare.
644 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
645 (_Jv_equaln): Declare.
646 (_Jv_CallNonvirtualMethodA): Declare.
647 * Makefile.in: Rebuilt.
648 * Makefile.am (nat_source_files): Added natConstructor.cc.
649 (java/lang/reflect/Constructor.h): New target.
650 * java/lang/reflect/natConstructor.cc: New file.
651 * java/lang/reflect/Constructor.java (newInstance): Now native.
652 (declaringClass): Renamed from decl_class.
653 (offset): Renamed from index.
654 (getType): New native method.
655 (getModifiers): Now native.
656 (getParameterTypes): Call getType if required.
657 (hashCode): Include hash code from declaring class.
658 (modifiers): Removed.
659 (toString): Call getType if required.
660 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
661 * java/lang/reflect/natMethod.cc (hack_call): New method.
662 Removed `#if 0' around FFI code.
663 Include <gnu/gcj/RawData.h>.
664 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
665 IllegalArgumentException when argument object and class disagree.
666 (_Jv_GetTypesFromSignature): New function.
668 (ObjectClass): New define.
669 (_Jv_CallNonvirtualMethodA): New function.
670 * java/lang/reflect/Method.java (hack_trampoline): New method.
671 (hack_call): New native method.
673 1999-12-21 Per Bothner <per@bothner.com>
675 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
676 offset in new Method.
678 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
680 * java/lang/natObject.cc (notify): Throw message with
681 IllegalMonitorStateException.
684 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
685 (isInterrupted_): New function, which does clear interrupt_flag.
686 (interrupt): Use `isInterrupted_'.
687 * java/lang/natThread.cc (interrupt): Add comment.
688 (join): Set `prev' in joiner loop.
689 Change various calls to `isInterrupted' to use `isInterrupted_'.
690 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
691 on linux. Set result to 0 on an interrupt. Test interrupted status
692 of java Thread object directly.
693 FLAG_INTERRUPTED: removed.
694 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
695 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
696 (_Jv_InitThreads): Don't block SIGINT.
697 (_Jv_ThreadWait): Don't configure SIGINT handler.
699 1999-12-21 Tom Tromey <tromey@cygnus.com>
701 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
703 1999-12-20 Tom Tromey <tromey@cygnus.com>
705 * java/lang/reflect/Modifier.java (STRICT): New constant.
706 (isStrict): New method.
707 (toString): Added `strict'.
709 1999-12-23 Anthony Green <green@cygnus.com>
711 * configure: Rebuilt.
712 * configure.in (LIBDATASTARTSPEC): Force data_start in with
715 1999-12-19 Anthony Green <green@cygnus.com>
717 * libgcjdata.c: New file.
718 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
719 * configure: Rebuilt.
720 * configure.in (LIBDATASTARTSPEC): Force data with a known name
722 * Makefile.in: Rebuilt.
723 * Makefile.am: Build libgcjdata.a.
725 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
726 * configure: Rebuilt.
727 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
730 1999-12-17 Tom Tromey <tromey@cygnus.com>
732 * java/lang/reflect/Method.java (toString): Call getType if
733 required. Partial fix for PR libgcj/111. From Per Bothner.
735 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
737 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
739 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
740 null String constructor parameter.
741 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
742 for exception messages.
743 BooleanClass: declare.
744 (setOption): Use BooleanClass instead of Class.forName() for
746 (bind): Cast 4th parameter of setsockopt to `char *' for
747 compatibility with older Solaris headers.
748 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
749 sprintf calls for exception messages.
750 BooleanClass, IntegerClass: declare.
751 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
754 1999-12-15 Tom Tromey <tromey@cygnus.com>
756 * java/lang/natSystem.cc (init_properties): Don't set user.name or
757 user.home if NO_GETUID defined. Only set user.dir if getcwd
760 * include/config.h.in: Rebuilt.
761 * acconfig.h (NO_GETUID): New define.
762 * configure.in: Rebuilt.
763 * configure.in: Define NO_GETUID in cross case. Check for getcwd
766 1999-12-08 Tom Tromey <tromey@cygnus.com>
768 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
769 where no recursive mutexes exist. Fixes PR libgcj/117.
771 1999-12-05 Anthony Green <green@cygnus.com>
773 * include/jvm.h: Declare many functions with
774 __attribute__((__malloc__)).
775 * gcj/javaprims.h: Ditto.
777 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
779 * THANKS: Giving credit where credit is due.
781 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
783 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
785 * java/lang/natString.cc (equalsIgnoreCase): return false if
786 anotherString is null.
787 * java/lang/Boolean.java (valueOf): return FALSE if argument is
790 1999-11-30 Tom Tromey <tromey@cygnus.com>
792 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
793 mutex to initialize. Initialize `count' if required.
796 1999-11-27 Per Bothner <per@bothner.com>
798 * exception.cc: Remove prototype declarations for malloc and free.
799 These clash with recent versions of glibc, which specifies `throws ()'
800 when __cplusplus is defined. Instead, #include <stdlib.h>.
802 1999-11-24 Tom Tromey <tromey@cygnus.com>
804 * prims.cc (_Jv_NewObjectArray): Use
805 _Jv_GetArrayElementFromElementType.
806 (_Jv_NewPrimArray): Likewise.
807 * java/lang/natObject.cc (clone): Use
808 _Jv_GetArrayElementFromElementType instead of sizeof.
809 * java/lang/natSystem.cc (arraycopy): Use
810 _Jv_GetArrayElementFromElementType.
811 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
814 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
816 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
817 Exception messages. PR java.net/57.
818 (bind): set SO_REUSEADDR before bind.
819 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
820 overruns. PR java.net/57.
822 1999-11-19 Tom Tromey <tromey@cygnus.com>
824 * Makefile.am (DIVIDESPEC): Removed.
825 (EXCEPTIONSPEC): Removed.
827 1999-11-19 Andrew Haley <aph@cygnus.com>
829 * Makefile.am (JCFLAGS): Add -L$(here)
831 * Makefile.in: Rebuild.
833 1999-11-18 Tom Tromey <tromey@cygnus.com>
835 * java/lang/natDouble.cc: Include <config.h>.
837 * include/config.h.in: Rebuilt.
838 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
839 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
841 * configure: Rebuilt.
842 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
843 requested by configure.host. Don't put `-D' option into
844 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
846 * configure: Rebuilt.
847 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
850 1999-11-18 Andrew Haley <aph@cygnus.com>
852 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
853 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
855 * Makefile.in: Rebuild
856 * acconfig.h: remove SJLJ_EXCEPTIONS
857 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
858 Do not AC_DEFINE SJLJ_EXCEPTIONS.
859 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
860 * gcj/Makefile.in, include/Makefile.in: rebuild.
861 * include/config.h.in: remove SJLJ_EXCEPTIONS.
863 1999-11-18 Andrew Haley <aph@cygnus.com>
865 * gij.cc (main): Rename label to prevent conflict.
867 * exception.cc (_Jv_type_matcher): Don't check the table if we're
868 using setjmp/longjmp exceptions: there isn't one.
870 1999-11-17 Andrew Haley <aph@cygnus.com>
872 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
873 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
874 (__sjthrow): Add declaration.
875 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
879 * Makefile.in: Rebuild
880 * acconfig.h: Add SJLJ_EXCEPTIONS
881 * configure.in: Add SJLJ_EXCEPTIONS
882 * configure: Rebuild.
883 * gcj/Makefile.in: Rebuild.
884 * gcj/cni.h: Add support for sjlj-exceptions.
885 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
886 * include/Makefile.in: Rebuild.
887 * include/default-signal.h: Add support for sjlj-exceptions.
889 1999-11-18 Tom Tromey <tromey@cygnus.com>
891 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
893 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
895 (method_cache): Made larger.
897 1999-11-11 Tom Tromey <tromey@cygnus.com>
899 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
900 initializing mutex. Initialize `count' when required.
902 1999-11-07 Anthony Green <green@trip.cygnus.com>
904 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
907 1999-11-05 Tom Tromey <tromey@cygnus.com>
909 * java/lang/natThread.cc (destroy): Removed incorrect comment.
911 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
913 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
914 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
917 1999-11-05 Tom Tromey <tromey@cygnus.com>
919 * java/lang/natThread.cc (stop): Removed argument name.
921 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
922 `private'; now has default access.
923 * Makefile.in: Rebuilt.
924 * Makefile.am (java/lang/ThreadGroup.h): Removed.
926 1999-11-04 Tom Tromey <tromey@cygnus.com>
928 * java/lang/natClass.cc (method_cache_count): Removed.
929 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
930 (_Jv_AddMethodToCache): Don't loop.
932 * configure.in: Removed `qt' threads case.
933 * include/quick-threads.h: Removed.
934 * quick-threads.cc: Removed.
936 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
937 (_Jv_ThreadDestroy): Likewise.
938 * include/no-threads.h (_Jv_ThreadCancel): Removed.
939 (_Jv_ThreadDestroy): Likewise.
940 * include/posix-threads.h (struct _Jv_Thread_t): Removed
942 (_Jv_ThreadCancel): Removed decl.
943 (_Jv_ThreadDestroy): Removed.
944 * posix-threads.cc (_Jv_ThreadCancel): Removed.
945 (throw_cleanup): Removed.
946 (really_start): Don't push or pop cleanup.
947 (_Jv_ThreadInitData): Don't initialize `exception' field.
948 * java/lang/Thread.java (stop): Officially unimplemented.
949 * java/lang/natThread.cc (stop): Officially unimplemented.
951 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
953 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
956 1999-11-02 Tom Tromey <tromey@cygnus.com>
958 * boehm.cc: Don't include boehm-config.h.
960 1999-11-01 Tom Tromey <tromey@cygnus.com>
962 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
963 (sum_blocks): Removed.
964 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
966 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
968 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
970 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
971 * java/io/InputStreamReader (InputStreamReader): ditto.
973 1999-10-22 Tom Tromey <tromey@cygnus.com>
975 * Makefile.in: Rebuilt.
976 * Makefile.am (java/lang/ClassLoader.h): New target.
977 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
980 * include/java-props.h (_Jv_Compiler_Properties): Changed
982 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
983 * include/jvm.h (_Jv_GCSetInitialHeapSize,
984 _Jv_GCSetMaximumHeapSize): Declare.
985 (JvRunMain, _Jv_RunMain): Declare.
986 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
987 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
988 (_Jv_GCSetMaximumHeapSize): Likewise.
989 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
990 (_Jv_GCSetMaximumHeapSize): Likewise.
991 * prims.cc (parse_heap_size): New function.
992 (_Jv_SetInitialHeapSize): Likewise.
993 (_Jv_SetMaximumHeapSize): Likewise.
994 (_Jv_Compiler_Properties): New global.
995 * gij.cc (help): New function.
997 (heap_size): Likewise.
998 (heap_max_size): Likewise.
999 (main): Parse arguments. Set _Jv_Compiler_Properties.
1000 Include <config.h>, <java-props.h>.
1001 (_Jv_Compiler_Properties): Removed.
1003 1999-10-18 Tom Tromey <tromey@cygnus.com>
1005 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
1007 (redirect): New static field.
1008 * java/lang/ClassLoader.java (getSystemClassLoader): Now
1010 (getVMClassLoader0): Removed.
1011 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
1012 (redirect): Removed.
1013 (getSystemClassLoader): Implemented.
1015 1999-10-16 Anthony Green <green@cygnus.com>
1017 * java/lang/ClassLoader.java (getSystemResource): Use
1018 getSystemClassLoader instead of ClassLoader.system.
1019 (getSystemResourceAsStream): Ditto.
1021 * java/lang/natClassLoader.cc (redirect): Make static and
1022 remove #ifdef INTERPRETER so it is always defined.
1023 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
1024 returns a VMClassLoader.
1026 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
1027 PropertyResourceBundle if a properties file is found before a
1028 ResourceBundle class.
1030 1999-10-15 Tom Tromey <tromey@cygnus.com>
1032 * gij.cc (main): Formatting fixes.
1033 (_Jv_Compiler_Properties): Define.
1034 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
1036 (init_properties): Set properites from _Jv_Compiler_Properties.
1037 * include/java-props.h (_Jv_Compiler_Properties,
1038 _Jv_Environment_Properties): Declare.
1040 * include/java-props.h: Added copyright.
1042 1999-10-13 Anthony Green <green@cygnus.com>
1044 * libtool-version: Catch up by incrementing current.
1046 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
1047 * configure, include/config.h.in: Rebuilt.
1048 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
1049 * configure.in: Added --disable-getenv-properties and new define
1050 `DISABLE_GETENV_PROPERTIES'.
1052 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
1053 (next_property_key): New function.
1054 (next_property_value): New function.
1055 (process_gcj_properties): New function.
1056 (JvRunMain): Call process_gcj_properties.
1057 (_JvRunMain): Ditto.
1059 * java/lang/natSystem.cc (init_properties): Set properties defined
1062 * include/java-props.h: New file.
1064 * java/lang/natSystem.cc (init_properties): Add new properties to
1065 conform with Java Product Versioning Specification.
1067 1999-10-12 Tom Tromey <tromey@cygnus.com>
1069 * configure: Rebuilt.
1070 * configure.in: Fixed test for --disable-java-net.
1072 1999-10-06 Tom Tromey <tromey@cygnus.com>
1074 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
1075 when building Canadian cross.
1076 (NATIVE): Don't define when cross-compiling.
1078 1999-10-04 Tom Tromey <tromey@cygnus.com>
1080 * java/net/natPlainSocketImpl.cc: Don't include headers if
1081 java.net is disabled.
1083 * Makefile.in: Rebuilt.
1084 * Makefile.am (ZINCS): Removed. This is defined in configure.in
1085 when needed, and must be left empty when not needed.
1087 1999-10-01 Anthony Green <green@cygnus.com>
1089 * THANKS: Refreshed from htdocs version.
1091 1999-10-01 Steve Chamberlain <sac@pobox.com>
1093 * Makefile.in: Rebuilt.
1094 * Makefile.am (ZINCS): Define
1096 * configure: Rebuilt.
1097 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
1099 * java/lang/ieeefp.h: Add definitions for picoJava.
1101 1999-10-01 Tom Tromey <tromey@cygnus.com>
1103 * configure: Rebuilt.
1104 * configure.in: Set classpath when invoking gcj. Use changequote
1105 around sed invocation.
1107 * java/net/natPlainSocketImpl.cc: Stub native functions if
1108 DISABLE_JAVA_NET is defined.
1109 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
1110 typo in exception string.
1111 (getTimeToLive): Likewise.
1112 Stub native functions if DISABLE_JAVA_NET is defined.
1113 * java/net/natInetAddress.cc: Stub native functions if
1114 DISABLE_JAVA_NET is defined.
1115 * configure.host: Disable java.net for mips-tx39.
1116 * configure, include/config.h.in: Rebuilt.
1117 * acconfig.h (DISABLE_JAVA_NET): Undefine.
1118 * configure.in: Added --disable-java-net and new define
1121 1999-09-30 Tom Tromey <tromey@cygnus.com>
1123 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
1125 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
1129 1999-09-28 Tom Tromey <tromey@cygnus.com>
1131 * configure: Rebuilt.
1132 * configure.in (PROCESS): In POSIX case, only set if not already
1134 * configure.host (PROCESS): Set in mips-tx39 case.
1136 * aclocal.m4, configure: Rebuilt.
1137 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
1138 appropriate AC_PROG_ symbol.
1140 1999-09-24 Tom Tromey <tromey@cygnus.com>
1142 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
1144 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
1146 Fix for PR java.util/47:
1147 * configure, include/config.h: Rebuilt.
1148 * configure.in: Don't look for ctime or ctime_r.
1149 * Makefile.in: Rebuilt.
1150 * Makefile.am (nat_source_files): Don't mention natDate.cc.
1151 * java/util/natDate.cc: Removed.
1152 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
1154 (getAvailableIDs): Rewrote.
1155 (getTimeZone): Rewrote.
1156 * java/util/Date.java (toGMTString): New method.
1157 (toLocaleString): New method.
1158 (toString): Rewrote.
1160 1999-09-23 Tom Tromey <tromey@cygnus.com>
1162 * configure: Rebuilt.
1163 * configure.in: Print message when checking to see if gcj can
1164 handle -fuse-divide-subroutine.
1166 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
1168 * java/lang/FirstThread.java (run0): Renamed to `run'.
1171 * prims.cc (main_init): New function.
1172 (JvRunMain): Call it.
1173 (_Jv_RunMain): Likewise.
1175 (main_init): Ignore SIGPIPE. Fixes PR 51.
1177 1999-09-22 Tom Tromey <tromey@cygnus.com>
1179 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1181 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
1183 * java/text/MessageFormat.java (MessageFormat(String)): Set the
1185 * java/text/NumberFormat.java: Check that object is a Number. If
1186 not, throw IllegialArgumentException.
1188 1999-09-21 Tom Tromey <tromey@cygnus.com>
1190 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1191 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
1193 * include/posix-threads.h (_Jv_MutexDestroy): Use
1194 _Jv_PthreadGetMutex.
1195 (_Jv_MutexLock): Likewise.
1196 (_Jv_MutexUnlock): Likewise.
1198 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1199 previous patch; it too was incorrect.
1200 * java/io/PrintStream.java (PrintStream): Likewise.
1202 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1203 refer to `this' before calling superclass constructor.
1204 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1205 before calling superclass constructor.
1207 1999-09-20 Tom Tromey <tromey@cygnus.com>
1209 * configure: Rebuilt.
1210 * configure.in: Send output of `-fuse-divide-subroutine' test
1211 compilation to /dev/null.
1213 1999-09-14 Tom Tromey <tromey@cygnus.com>
1215 * include/java-insns.h: Turned constants into an enum. Added
1216 multiple-inclusion protection.
1218 1999-09-10 Tom Tromey <tromey@cygnus.com>
1220 * configure: Rebuilt.
1221 * configure.in: Build include/Makefile.
1222 * Makefile.in: Rebuilt.
1223 * Makefile.am (SUBDIRS): Added gcj and include.
1224 (install-data-local): New target.
1225 (extra_headers): New macro.
1226 * include/Makefile.in: New file.
1227 * include/Makefile.am: New file.
1229 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1230 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1232 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1233 * resolve.cc: Include config.h.
1234 * defineclass.cc: Include config.h.
1235 * include/java-interp.h: Don't include config.h.
1236 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1239 * gcj/javaprims.h: Regenerated namespace decls.
1240 * classes.pl (scan): Don't put `;' after closing brace.
1242 * Makefile.in: Rebuilt.
1243 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1244 * configure.in: Create gcj/Makefile.
1245 * gcj/Makefile.in: New file.
1246 * gcj/Makefile.am: New file.
1247 * java/lang/Object.h: Don't include any other headers.
1248 * gcj/array.h: Renamed from include/java-array.h.
1249 * gcj/field.h: Renamed from include/java-field.h.
1250 * gcj/method.h: Renamed from include/java-method.h.
1251 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1252 Updated all files to reflect new include structure.
1254 1999-09-09 Tom Tromey <tromey@cygnus.com>
1256 * configure: Rebuilt.
1257 * configure.in: Fixed typo; variable is THREADSPEC and not
1260 1999-09-08 Tom Tromey <tromey@cygnus.com>
1262 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1263 previous change and implemented a correct test in the __m_count
1266 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1269 1999-09-07 Tom Tromey <tromey@cygnus.com>
1271 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1272 code and don't set errno.
1274 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1275 not `r'. Changed `done_sleeping' to a `bool'.
1277 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1279 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1280 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1281 by another thread, rather than by the GC.
1282 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1283 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1284 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1287 1999-09-03 Tom Tromey <tromey@cygnus.com>
1289 * configure: Rebuilt.
1290 * configure.in: Check for fstat function.
1291 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1294 1999-09-02 Tom Tromey <tromey@cygnus.com>
1296 * include/java-array.h (jobjectArrayjchar): Removed unused
1299 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1300 _Jv_PrepareCompiledClass while holding class mutex.
1302 1999-09-01 Tom Tromey <tromey@cygnus.com>
1304 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1305 (_Jv_PthreadGetMutex): Use it.
1306 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1307 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1308 (_Jv_MutexLock): Likewise.
1309 (_Jv_MutexUnlock): Likewise.
1310 * include/config.h.in: Rebuilt.
1311 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1312 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1313 * configure: Rebuilt.
1314 * libgcj.spec.in: Don't mention INTERPSPEC.
1315 * configure.in (INTERPSPEC): Removed.
1316 Only run pthreads-related checks when using POSIX threads. Check
1317 for m_count and __m_count in mutex structure.
1319 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1321 * java/lang/natClass.cc: Fixed notification of threads
1322 when class initialization is complete.
1324 1999-09-01 Tom Tromey <tromey@cygnus.com>
1326 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1327 * resolve.cc: Removed constants defined by
1328 java.lang.reflect.Modifier.
1329 Include <java/lang/reflect/Modifier.h>.
1330 (_Jv_ResolvePoolEntry): Use values from Modifier.
1331 (_Jv_DetermineVTableIndex): Likewise.
1332 (_Jv_PrepareClass): Likewise.
1334 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1335 java.lang.reflect.Modifier.
1336 Include <java/lang/reflect/Modifier.h>.
1337 (checkExtends): Use values from Modifier.
1338 (checkImplements): Likewise.
1339 (handleField): Likewise.
1340 (handleConstantValueAttribute): Likewise.
1341 (handleFieldsEnd): Likewise.
1342 (handleMethod ): Likewise.
1343 (handleMethodsEnd): Likewise.
1344 (handleClassBegin): Likewise.
1345 * interpret.cc: Removed constants defined by
1346 java.lang.reflect.Modifier.
1347 (continue1): Use values from Modifier.
1348 * java/lang/natClassLoader.cc: Removed constants defined by
1349 java.lang.reflect.Modifier.
1351 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1352 JV_STATE_NOTHING, not `0'.
1353 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1355 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1356 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1358 (_Jv_PthreadGetMutex): New function.
1359 (_Jv_PthreadCheckMonitor): Use it.
1360 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1361 (_Jv_MutexLock): Update `count'.
1362 (_Jv_MutexUnlock): Likewise.
1363 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1366 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1368 * Makefile.am (.java.lo): Add rule.
1370 * Makefile.in: Rebuilt.
1372 1999-09-01 Tom Tromey <tromey@cygnus.com>
1374 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1375 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1377 (_Jv_CondNotify): Use it.
1378 (_Jv_CondNotifyAll): Likewise.
1380 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1382 1999-08-31 Tom Tromey <tromey@cygnus.com>
1384 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1387 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1389 * posix-threads.cc: Include <errno.h>.
1391 1999-08-23 Tom Tromey <tromey@cygnus.com>
1393 * boehm.cc: Undefine TRUE and FALSE.
1395 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1397 1999-08-21 Tom Tromey <tromey@cygnus.com>
1399 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1402 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1404 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1406 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1407 (HAVE_STRUCT_IP_MREQ): Added.
1408 * configure, include/config.h.in: Rebuilt.
1409 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1411 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1412 Disable if ip_mreq is not available.
1414 * configure.in: Check types ssize_t and in_addr_t.
1415 * acconfig.h: Undefine them.
1416 * configure, include/config.h.in: Rebuilt.
1418 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1419 function that detects the signature of getpwuid_r.
1420 (init_properties): Use it.
1421 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1424 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1426 * interpret.cc (continue1): Implement explicit dispatch table.
1427 insn_target: Explicit interpreter switch table.
1428 SAVE_PC: New macro, moves pc saving code into instructions that
1430 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1431 PC_REGISTER_ASM: New macro.
1432 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1433 opcode: Remove local variable.
1434 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1435 (POKEI): Use _Jv_word.
1436 (iinc): Use _Jv_word.
1437 (dupx): Change reference argument (sp) to pointer.
1440 * interpret.cc: Remove instruction timing instrumentation.
1442 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1443 comment. Don't use _Jv_ClassNameSamePackage.
1445 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1446 URLPathEntry, CacheEntry}: Removed.
1448 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1450 (.java.lo): Rule removed.
1452 * Makefile.in: Rebuilt.
1454 1999-08-19 Tom Tromey <tromey@cygnus.com>
1456 * java/lang/natThread.cc (class locker): New class.
1457 (join): Use a locker around _Jv_CondWait.
1460 1999-08-18 Tom Tromey <tromey@cygnus.com>
1462 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1463 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1465 1999-08-18 Tom Tromey <tromey@cygnus.com>
1467 * include/javaprims.h ("Java"): Regenerated namespace decls.
1469 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1471 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1472 from _Jv_InternClassStrings.
1474 * prims.cc (_Jv_RunMain): New function.
1475 (JvRunMain): Remove gij-support.
1477 * gij.cc (main): Use _Jv_RunMain.
1479 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1481 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1482 argument in temp variable.
1483 (continue1): For all op_x2y insns, use temp variable for
1484 intermediate value. Also remove some comments.
1486 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1487 (forName): Don't call _Jv_InitClass.
1489 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1491 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1493 * java/util/jar/JarInputStream.java: New file.
1495 * java/util/jar/JarEntry.java: New file.
1497 * java/util/jar/JarFile.java: New file.
1499 * java/net/URLClassLoader.java: New file.
1501 * java/net/JarURLConnection.java: New file.
1503 * gnu/gcj/protocol/jar/Handler.java: New file.
1505 * gnu/gcj/protocol/jar/Connection.java: New file.
1507 * java/security/SecureClassLoader.java: New file.
1509 * java/lang/ClassLoader.java (parent): New variable.
1510 (ClassLoader (ClassLoader)): new constructor.
1511 (findClass): New method.
1512 (loadClass): Add default 1.2 implementation.
1513 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1514 (readfully): Removed.
1516 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1517 (findSystemClass): New method.
1518 (VMClassLoader): Constructor rewritten.
1520 All other methods removed.
1522 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1523 to gnu::gcj::runtime::VMClassLoader.
1524 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1526 (VMClassLoader::findSystemClass): renamed from findBootClass.
1528 * Makefile.am: Add new files.
1529 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1531 * Makefile.in: Rebuilt.
1533 1999-08-17 Tom Tromey <tromey@cygnus.com>
1535 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1537 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1540 1999-08-16 Tom Tromey <tromey@cygnus.com>
1542 * configure: Rebuilt.
1543 * configure.in: Set DIVIDESPEC to empty string if compiler does
1544 not support -fuse-divide-subroutine.
1546 1999-08-14 Per Bothner <per@bothner.com>
1548 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1549 * java/lang/natClass.cc (initializeClass): Likewise.
1550 * java/lang/ClassLoader.java (resolveClass0): New static method.
1551 (resolveClass): Call resolveClass0.
1552 (findSystemClass): No longer static.
1554 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1556 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1558 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1560 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1563 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1565 * Makefile: Rebuilt.
1566 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1569 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1572 * configure: Rebuilt.
1573 * configure.in: Properly align --help output, fix capitalization
1575 * acinclude.m4: Likewise.
1577 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1579 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1581 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1582 (_Jv_callInterpretedMethod): Unused. Remove.
1583 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1585 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1586 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1587 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1588 * interpret.cc: use _Jv_word.
1589 * defineclass.cc: use_Jv_word.
1590 * resolve.cc: Use _Jv_word.
1591 (_Jv_ResolvePoolEntry): Return _Jv_word.
1592 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1593 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1595 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1598 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1600 * configure: Rebuilt.
1601 * configure.in (sched_yield): Try librt first, then libposix4.
1602 Add -lrt, -lposix4 to THREADSPEC.
1604 1999-08-08 Anthony Green <green@cygnus.com>
1606 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1608 1999-08-08 Anthony Green <green@cygnus.com>
1610 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1613 1999-08-08 Anthony Green <green@cygnus.com>
1617 * include/config.h.in: Rebuilt.
1618 * acconfig.h: Add INTERPRETER.
1620 * Makefile.in: Rebuilt.
1621 * Makefile.am (libffi_files): Identify the libffi object files for
1622 inclusion in libgcj.
1623 (LIBFFIINCS): Define.
1625 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1626 Dummy definition for configurations without an interpreter.
1628 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1629 java::lang::Boolean constructor.
1631 * include/java-interp.h: Always include java-cpool.h.
1633 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1634 when INTERPRETER not defined.
1636 * java/lang/Class.h (finalize): Define.
1638 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1639 IOException from File.getCanonicalPath.
1640 (getStream): Likewise.
1643 * THANKS: More thanks.
1645 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1647 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1649 (_Jv_PrepareClass): Allow non-abstract classes to
1650 have abstract subclasses.
1651 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1653 * interpret.cc (continue1/perform_invoke): Don't sign extend
1655 (continue1/lshl,lshr): Push long, not int.
1656 (continue1/ulshr): Use UINT64, not long long.
1657 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1659 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1660 * java/lang/FirstThread.java (run): Add top-level exception
1662 (run0): Renamed from run.
1664 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1666 * configure.in (--with-interpreter): Added.
1667 * include/config.h.in (INTERPRETER): Added.
1669 * java/lang/ClassLoader.java: File replaced.
1670 * java/lang/VMClassLoader.java: New file.
1671 * java/lang/natClassLoader.cc: New file.
1672 * gnu/gcj/runtime/MethodInvocation.java: New file.
1673 * gnu/gcj/util/path/SearchPath.java: New file.
1674 * gnu/gcj/util/path/PathEntry.java: New file.
1675 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1676 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1677 * gnu/gcj/util/path/URLPathEntry.java: New file.
1678 * gnu/gcj/util/path/CacheEntry.java: New file.
1679 * include/java-interp.h: New file.
1680 * include/java-cpool.h: New file.
1681 * include/java-insns.h: New file.
1682 * defineclass.cc: New file.
1683 * interpret.cc: New file.
1684 * resolve.cc: New file.
1686 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1687 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1688 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1690 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1691 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1693 (initializeClass): Use new JV_ prefixed names. Also, call
1694 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1696 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1697 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1698 JV_STATE_LINKED): New.
1699 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1700 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1701 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1702 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1703 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1704 _Jv_InterpMethodInvocation): New friends for interpreter.
1706 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1707 include/java-cpool.h and renamed with JV_ prefix.
1709 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1711 (_Jv_UnregisterClass): New decl.
1713 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1714 class loader argument.
1715 (_Jv_FindClass): Use class loader.
1717 * prims.cc (_Jv_makeUtf8Const): New function.
1718 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1719 (_Jv_NewPrimArray): Ditto.
1720 (_Jv_FindClassFromSignature): Ditto.
1721 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1722 * java/lang/reflect/natMethod.cc (getType): Ditto.
1724 * include/java-field.h (_Jv_Field::isRef): Make robust for
1725 non-resolved contexts.
1727 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1728 Also, don't mark class->next field.
1730 * java/lang/VirtualMachineError.java: Added FIXME note.
1732 * configure.in (INTERPSPEC): New spec.
1733 * libgcj.spec.in: Added INTERPSPEC.
1734 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1735 gnu/gcj/runtime/MethodInvocation.
1736 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1737 (ordinary_java_source_files): Added above mentioned java classes.
1739 * configure: Rebuilt.
1740 * Makefile.in: Rebuilt.
1742 1999-08-06 Tom Tromey <tromey@cygnus.com>
1744 * configure: Rebuilt.
1745 * configure.in: Look for sched_yield in -lrt.
1747 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1749 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1750 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1751 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1753 (toString): Print correctly when `country' is empty.
1755 1999-08-04 Per Bothner <per@bothner.com>
1757 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1759 1999-08-02 Tom Tromey <tromey@cygnus.com>
1761 * aclocal.m4, configure: Rebuilt for new libtool.
1763 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1765 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1766 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1767 * java/net/ServerSocket.java: Define ANY_IF.
1768 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1769 all network interfaces.
1770 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1771 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1773 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1775 * java/io/natFile.cc (performMkdir): Remove FIXME.
1776 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1778 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1780 * configure.in: Check for bstring.h.
1781 * configure, include/config.h.in: Rebuilt.
1782 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1783 * java/net/natPlainSocketImpl.cc: Likewise.
1785 1999-07-31 Tom Tromey <tromey@cygnus.com>
1790 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1792 * configure.in: Check for struct hostent_data and need for
1793 -D_REENTRANT for gethostbyname_r declaration.
1794 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1795 (lookup): Use hostent_data for fixed_buffer.
1796 * configure, include/config.h.in: Rebuilt.
1798 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1800 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1801 available. Don't cast memmove args to (void*).
1802 * configure.in: Do not abort if memmove is not available.
1804 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1806 * java/lang/natString.cc (substring): optimize where substring is
1808 * java/io/File.java (getName): don't return separator with file name.
1809 * java/io/natFile.cc (attr): fix overflow.
1811 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1813 * mauve-libgcj: Disable Object Serialization tests.
1815 1999-07-20 Warren Levy <warrenl@cygnus.com>
1817 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1818 Default to using PlainDatagramSocketImpl.
1819 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1821 1999-07-19 Tom Tromey <tromey@cygnus.com>
1823 * include/stamp-h.in: New file.
1825 1999-07-12 Tom Tromey <tromey@cygnus.com>
1827 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1830 1999-07-07 Andrew Haley <aph@cygnus.com>
1832 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1833 bytes to make it point after the instruction where the trap
1835 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1837 1999-07-07 Tom Tromey <tromey@cygnus.com>
1839 * mauve-libgcj: Explicitly enable formerly disabled java.text
1842 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1845 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1847 * java/net/URL.java (equals): Compare strings using String.equals.
1848 * java/net/URL.java (sameFile): Ditto.
1850 1999-07-02 Warren Levy <warrenl@cygnus.com>
1852 * configure: Rebuilt.
1853 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1854 * include/config.h.in: Rebuilt.
1855 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1856 (mcastGrp): Updated FIXME comments.
1857 (setOption): Fixed typo.
1858 (getOption):Implemented IP_MULTICAST_IF.
1860 1999-07-02 Warren Levy <warrenl@cygnus.com>
1862 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1863 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1864 (getTimeToLive): Implemented.
1865 (setOption): Implemented IP_MULTICAST_IF.
1867 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1869 * java/lang/String.java (toString): Check for this == null and throw
1870 NullPointerException.
1872 1999-07-01 Warren Levy <warrenl@cygnus.com>
1874 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1875 to count and revised comments to match.
1876 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1877 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1878 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1879 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1880 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1881 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1883 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1885 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1886 properly as count rather than outlength.
1887 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1888 output on overflow rather than buffer fill.
1889 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1890 if markPos is 0 and there is still room in the buffer.
1892 1999-07-01 Andrew Haley <aph@cygnus.com>
1894 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1895 This is a workaround for a bug in glibc's pthreads package which
1896 doesn't deliver any sigcontext information to a signal handler.
1898 1999-06-24 Tom Tromey <tromey@cygnus.com>
1900 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1901 * java/lang/fdlibm.h (HUGE): Conditionally define.
1903 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1905 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1906 * java/lang/e_log.c: Don't use __uint32_t.
1908 1999-05-27 Eric Christopher <echristo@cygnus.com>
1910 * configure: Rebuilt
1911 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1912 * acconfig.h: Rebuilt
1913 * include/config.h.in: Rebuilt
1915 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1916 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1917 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1918 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1919 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1920 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1921 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1922 and namespace collision with __uint32_t
1924 1999-06-23 Tom Tromey <tromey@cygnus.com>
1926 * java/util/zip/InflaterInputStream.java (read): Throw
1927 ZipException if inflater throws a DataFormatException.
1929 1999-06-23 Warren Levy <warrenl@cygnus.com>
1931 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1932 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1933 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1934 is not final per JDK.
1935 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1937 * java/util/zip/DataFormatException.java: Class extends Exception.
1938 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1939 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1940 * java/util/zip/ZipInputStream.java: ditto.
1941 (closeEntry): Changed method name to match JDK spec.
1943 1999-06-21 Tom Tromey <tromey@cygnus.com>
1945 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1948 * Makefile.in: Rebuilt.
1949 * Makefile.am (toolexeclibdir): Define as libdir when
1951 * configure: Rebuilt.
1952 * configure.in (USE_LIBDIR): New conditional.
1954 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1956 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1957 hostname in returned InetAddress objects.
1958 (getLocalHostname): Fix typo.
1959 * java/net/InetAddress.java (getByName): Set hostname on return
1961 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1964 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1966 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1967 interfaces if host==NULL.
1968 (accept): Throw message with InterruptedIOException.
1969 (getOption): Cache localAddress.
1970 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1971 'address' for DatagramSocket.
1972 (setTimeToLive): Fix compiler warnings.
1973 (getOption): Cache localAddress.
1974 * java/net/Socket.java (getLocalAddress): Don't need local
1975 InetAddress object. Add FIXME comment about calling checkConnect().
1976 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1977 connection queue to 50 as per JDK 1.2 docs.
1978 (ServerSocket(int,int)): Listen on all network interfaces by
1979 default, per JDK 1.2 docs.
1980 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1981 Add localAddress caching.
1983 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1985 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1987 (write(byte[],int,int)): ditto.
1989 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1991 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1993 1999-06-11 Warren Levy <warrenl@cygnus.com>
1995 * mauve-libgcj: Activated java.net Mauve tests.
1997 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1999 * java/net/natInetAddress.cc (aton): Fix typos.
2000 (lookup): Use a bigger buffer size for gethostbyname_r on all
2001 versions of glibc. Updated FIXME comment explaining this.
2002 Modified while loops to not set herr = ERANGE to work around glibc
2003 problems. Use user specified hostname in InetAddress result when
2004 available (consistent with JDK).
2006 1999-06-10 Warren Levy <warrenl@cygnus.com>
2008 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
2009 Throw FileNotFoundException instead of IOException.
2011 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
2013 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
2014 in static field name.
2015 * java/text/DecimalFormat.java: Throw IllegalArgumentException
2016 throughout rather than ParseException.
2018 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
2020 * java/lang/Runtime.java (exec): Convert prog name and arguments
2022 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
2023 environment array conversion. Preserve current environment if envp
2024 not passed. Preserve PATH unless explicitly specified.
2025 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
2026 followed by EOF. Set a flag when a line is terminated by '\r' and
2027 ignore following '\n' if set.
2029 1999-06-02 Warren Levy <warrenl@cygnus.com>
2031 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
2032 Ignore context if spec is an absolute URL. Fix braindead
2034 (hashCode): Use JDK 1.2 style algorithm.
2035 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
2036 context URL properly.
2038 1999-05-30 Anthony Green <green@cygnus.com>
2040 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
2041 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
2043 1999-05-28 Warren Levy <warrenl@cygnus.com>
2045 * java/net/DatagramSocket.java (laddr): Removed.
2046 (DatagramSocket): Removed attempts to get or set laddr if null.
2047 (getLocalAddress): Reimplemented per spec.
2048 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
2050 (joinGroup): Throw NullPointerException if any argument is null.
2051 (leaveGroup): ditto.
2052 * java/net/PlainDatagramSocketImpl.java: Updated comments.
2053 * java/net/PlainSocketImpl.java (timeout): Added.
2054 (getInputStream): Added FIXME comment on how to support timeouts
2056 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
2057 * java/net/Socket.java: Added FIXME comments to identify
2058 conflicting specs between the JCL and JDK 1.2 documents.
2059 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
2060 if host is null. Get localport value resolved by kernel if bind
2062 (receive): Implemented support for timeouts in UDP.
2063 (setOption): Implemented based on natPlainSocketImpl version.
2065 * java/net/natPlainSocketImpl.cc (bind): Get localport value
2066 resolved by kernel if bind lport is 0.
2067 (connect): Get localport value resolved by kernel if bind wasn't
2068 done to set localport.
2069 (accept): Implemented support for timeouts for ServerSocket.
2070 (setOption): Save value for SO_TIMEOUT.
2071 (getOption): Return timeout for SO_TIMEOUT.
2073 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
2075 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
2076 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
2077 (setOption): Made abstract.
2078 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
2079 to avoid cpp conflicts in native code.
2080 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
2081 cpp conflicts in native code.
2082 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
2083 * java/net/Socket.java (getLocalAddress): Implemented.
2084 (setTcpNoDelay): Implemented.
2085 (getTcpNoDelay): Implemented.
2086 (setSoLinger): Implemented.
2087 (getSoLinger): Implemented.
2088 (getSoTimeout): Verify class type.
2089 (setSendBufferSize): Implemented.
2090 (getSendBufferSize): Implemented.
2091 (setReceiveBufferSize): Implemented.
2092 (getReceiveBufferSize): Implemented.
2093 (toString): Prepended "Socket".
2094 * java/net/SocketImpl.java (toString): Rewritten.
2095 (getOption): Made abstract.
2096 (setOption): Made abstract.
2097 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
2098 (setOption): Implemented.
2099 (getOption): Implemented.
2101 1999-05-26 Warren Levy <warrenl@cygnus.com>
2103 * java/net/DatagramSocket.java (DatagramSocket): Get local host
2104 address when null. Set SO_REUSEADDR for multicasts.
2105 (getSoTimeout): Implemented.
2106 (setSoTimeout): Implemented.
2107 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
2108 * java/net/MulticastSocket.java (getInterface): Implemented.
2109 (setInterface): Implemented.
2110 (setTimeToLive): Check for invalid ttl.
2111 (joinGroup): Verify multicast address and security.
2112 (leaveGroup): Verify multicast address and security.
2113 (send): Implemented.
2114 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
2120 (getTTL): Implemented as non-native.
2124 * java/net/ServerSocket.java (setSoTimeout): Implemented.
2125 (getSoTimeout): Implemented.
2126 (setSocketFactory): Made synchronized.
2127 * java/net/Socket.java (setSoTimeout): Implemented.
2128 (getSoTimeout): Implemented.
2129 (close): Made synchronized.
2130 (setSocketImplFactory): Made synchronized.
2131 * java/net/SocketImpl.java: Implement SocketOptions interface.
2132 * java/net/natInetAddress.cc: Corrected module name at top of file.
2133 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
2134 (bind): Added FIXME.
2135 (peek): Implemented.
2141 (setOption): Implemented for SO_REUSEADDR.
2142 (getOption): Implemented for SO_REUSEADDR.
2144 1999-05-24 Tom Tromey <tromey@cygnus.com>
2146 * java/util/ResourceBundle.java (getBundle): Throw
2147 NullPointerException if baseName is null.
2149 1999-05-22 Tom Tromey <tromey@cygnus.com>
2151 * java/util/zip/ZipInputStream.java (fill): New method.
2152 (compressed_len): New instance variable.
2153 (getNextStream): Set it.
2154 (read): Reset inflater on EOF. Only read via `super' if entry is
2156 (skip): Only skip via `super' if entry is deflated.
2157 * java/util/zip/Deflater.java (last_input_count): Removed.
2158 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
2160 (needsInput): Don't use last_input_count.
2161 (setInput): Don't set last_input_count.
2162 * java/util/zip/natInflater.cc (getRemaining): Return correct
2164 (inflate): Return 0 if input array is length 0.
2165 (setInput): Don't set last_input_count.
2166 * java/util/zip/Inflater.java (last_input_count): Removed.
2168 1999-05-21 Tom Tromey <tromey@cygnus.com>
2170 * Makefile.in: Rebuilt.
2171 * Makefile.am (INCLUDES): Added $(ZINCS).
2172 * configure: Rebuilt.
2173 * configure.in (ZINCS): New subst.
2175 1999-05-21 Andrew Haley <aph@cygnus.com>
2177 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2178 to signal options to allow the same exceptions to be rethrown
2181 1999-05-20 Andrew Haley <aph@cygnus.com>
2183 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2185 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2186 (INIT_FPE): Exception string made more informative.
2187 * include/sparc-signal.h (INIT_FPE): Exception string made more
2189 * testsuite/libjava.lang/Divide_1.java: New file.
2190 * testsuite/libjava.lang/Divide_1.out: New file.
2192 1999-05-19 Tom Tromey <tromey@cygnus.com>
2194 * aclocal.m4, configure: Rebuilt.
2195 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2197 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2200 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2202 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2204 (update): Fail in default case. Always initialize `strat'.
2206 * mauve-libgcj: Enable java.util.zip.
2208 1999-05-18 Warren Levy <warrenl@cygnus.com>
2210 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2211 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2212 PlainDatagramSocketImpl.java, and SocketOptions.java.
2213 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2214 * Makefile.in: Rebuilt.
2216 * java/net/DatagramPacket.java: New file.
2217 * java/net/DatagramSocket.java: New file.
2218 * java/net/DatagramSocketImpl.java: New file.
2219 * java/net/MulticastSocket.java: New file.
2220 * java/net/PlainDatagramSocketImpl.java: New file.
2221 * java/net/SocketOptions.java: New file.
2222 * java/net/natPlainDatagramSocketImpl.cc: New file.
2224 1999-05-18 Tom Tromey <tromey@cygnus.com>
2226 * java/util/zip/ZipOutputStream.java (level): Initial value is
2227 Deflater.DEFAULT_COMPRESSION.
2228 (close): New method.
2229 (closeEntry): Likewise.
2231 (put_version): Likewise.
2232 (write_entry): Likewise.
2233 (put2, put4): Now return `int'.
2234 (comment): Default to empty string.
2235 (bytes_written): New instance variable.
2237 * java/util/zip/ZipEntry.java (setComment): Limit length of
2239 (setCrc): Check CRC validity.
2240 (setExtra): Check argument validity.
2241 (setMethod): Likewise.
2242 (setSize): Likewise.
2243 (ZipEntry): Likewise.
2244 * include/javaprims.h: Updated namespace declarations.
2245 * Makefile.in: Rebuilt.
2246 * Makefile.am (ordinary_java_source_files): Mention new files.
2247 (nat_source_files): Likewise.
2248 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2251 (getInputStream): Handle compressed entries.
2252 * java/util/zip/GZIPOutputStream.java: New file.
2253 * java/util/zip/GZIPInputStream.java: New file.
2254 * java/util/zip/DataFormatException.java: New file.
2255 * java/util/zip/CheckedInputStream.java: New file.
2256 * java/util/zip/CheckedOutputStream.java: New file.
2257 * java/util/zip/InflaterInputStream.java: Implemented.
2258 * java/util/zip/natInflater.cc: New file.
2259 * java/util/zip/Deflater.java: Implemented.
2260 * java/util/zip/natDeflater.cc: New file.
2261 * java/util/zip/DeflaterOutputStream.java: Implemented.
2263 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2264 ZipException, not IOException.
2265 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2268 1999-05-17 Tom Tromey <tromey@cygnus.com>
2270 * java/lang/natSystem.cc (init_properties): URL now points to
2273 1999-05-12 Per Bothner <bothner@cygnus.com>
2275 * java/util/Calendar.java (set): First call computeFields if needed.
2276 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2278 1999-05-12 Tom Tromey <tromey@cygnus.com>
2280 * configure: Rebuilt.
2281 * configure.in: Look for -ldl when using the Boehm collector.
2282 Look for sched_yield in -lposix4.
2284 1999-05-12 Per Bothner <bothner@cygnus.com>
2286 * java/io/File.java (mkdirs): Handle a null parent directory.
2288 1999-05-12 Tom Tromey <tromey@cygnus.com>
2290 * include/javaprims.h: Updated namespace declarations.
2291 * classes.pl (scan): Uniquify class list.
2292 * Makefile.in, configure: Rebuilt.
2293 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2294 (built_java_source_files): New macro.
2295 (nat_headers): Added built_java_source_files.
2296 (javao_files): Likewise.
2297 (EXTRA_libgcj_la_SOURCES): Likewise.
2298 (libgcj.zip): Create built class files.
2299 ($(built_java_source_files:.java=.class)): New target.
2300 (jv_convert_LDADD): Added -L$(here)/.libs.
2301 * configure.in: Create links for ConcreteProcess.java and
2302 natConcreteProcess.cc.
2303 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2304 * java/lang/natEcosProcess.cc: New file.
2305 * java/lang/EcosProcess.java: New file.
2306 * java/lang/PosixProcess.java: New file.
2307 * java/lang/natPosixProcess.cc: New file.
2309 1999-05-12 Warren Levy <warrenl@cygnus.com>
2311 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2312 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2313 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2314 (connect): Throw ConnectException.
2316 1999-05-11 Tom Tromey <tromey@cygnus.com>
2318 * Makefile.in: Rebuilt.
2319 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2320 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2323 * Makefile.in: Rebuilt.
2324 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2325 and it causes problems with libtool.
2327 * Makefile.in, configure: Rebuilt.
2328 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2329 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2330 (jv_convert_DEPENDENCIES): Added ZDEPS.
2331 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2333 (THREADSPEC): Added `-L' to point to qthreads build directory.
2337 * configure, Makefile.in: Rebuilt.
2338 * Makefile.am (toolexeclib_DATA): New macro.
2339 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2340 Recognize --with-system-zlib.
2341 (GCSPEC): New subst.
2342 (THREADSPEC): New subst.
2343 (SYSTEMSPEC): New subst.
2344 (ZLIBSPEC): New subst.
2345 * libgcj.spec.in: New file.
2347 1999-05-10 Tom Tromey <tromey@cygnus.com>
2349 * java/io/InputStreamReader.java (read): If length is 0, return
2350 0. Reset `wpos' and `wcount' when buffer has been filled and
2353 * java/util/Properties.java (save): Removed `FIXME' comment.
2354 (load): Invalid characters in \u now treated as terminators.
2355 Make sure to append character resulting from `\' handling.
2356 Cast to `char' when appending to key or value.
2357 (skip_ws): Inverted test for whitespace.
2359 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2361 (readLine): Likewise.
2362 (readFully): Implemented.
2364 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2366 * java/awt/natToolkit.cc: Added copyright header.
2367 * java/util/zip/InflaterInputStream.java: Added copyright header.
2369 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2371 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2373 (getNextStream): Likewise.
2375 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2377 (getBundle): Don't explicitly throw null pointer exception.
2379 * gnu/gcj/RawData.java: Added copyright header.
2381 * include/jni.h (_Jv_va_list): Always define as va_list.
2383 1999-05-9 Anthony Green <green@cygnus.com>
2385 * java/text/DateFormat.java (computeInstance): Separate time
2387 (getDateTimeInstance): Ditto.
2388 (getDateTimeInstance(int,int)): New method.
2390 * Makefile.in: Rebuilt.
2391 * Makefile.am (ordinary_java_source_files): Add new classes.
2393 * java/util/PropertyResourceBundle.java: New file.
2394 * gnu/gcj/util/EnumerationChain.java: New file.
2396 1999-05-07 Tom Tromey <tromey@cygnus.com>
2398 * acconfig.h (GCJVERSION): New undef.
2399 * java/lang/natSystem.cc (init_properties): Define java.version,
2400 java.class.version, os.name, os.arch, os.version.
2401 Include <sys/utsname.h> if required.
2402 * configure: Rebuilt.
2403 * configure.in: Compute and define GCJVERSION.
2405 * java/lang/natSystem.cc (default_file_encoding): Now static.
2407 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2409 * libtool-version: New file.
2410 * Makefile.in: Rebuilt.
2411 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2414 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2415 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2418 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2419 (we pick those up already).
2421 1999-05-05 Per Bothner <bothner@cygnus.com>
2423 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2424 stub classes. (This is enough to get Kawa to compile against libgcj.)
2426 * gnu/gcj/RawData.java: New class.
2427 * doc/cni.sgml: Document RawData.
2429 * java/util/zip/InflaterInputStream.java: New stub class.
2430 * java/util/zip/ZipInputStream.java: New class. Partly works.
2431 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2432 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2433 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2434 * java/util/zip/ZipOutputStream.java: Start implementation.
2436 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2437 (default_file_encoding): New global, initial value is above macro.
2438 (init_properties): Default file.encoding to default_file_encoding.
2440 * Makefile.am: Add new classes.
2442 1999-05-05 Tom Tromey <tromey@cygnus.com>
2444 * Makefile.in: Rebuilt.
2445 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2446 (clean-local): New target
2448 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2449 (load, loadLibrary): Now native.
2451 * java/lang/Runtime.java (load, loadLibrary): Now native.
2452 (init): New native method.
2453 (Runtime): Use init.
2454 * prims.cc: Include <ltdl.h> if required.
2455 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2457 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2459 * configure.in: Switch from irix threads to posix threads
2460 * configure: Regenerate.
2462 1999-04-30 Tom Tromey <tromey@cygnus.com>
2464 * Makefile.in: Rebuilt.
2465 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2467 1999-04-29 Tom Tromey <tromey@cygnus.com>
2469 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2472 * java/util/Locale.java (Locale(String,String)): Implement in
2473 terms of 3-argument version; variant now defaults to empty
2475 (toString): Assume variant is not null.
2476 (equals): Assume all strings are not null.
2477 (Locale): Throw NullPointerException if any argument is null.
2479 * java/util/ResourceBundle.java (getBundle): Don't try the base
2480 name; now implicit in partialGetBundle call.
2481 (trySomeGetBundle): Search for parent bundles and call setParent
2483 (partialGetBundle): Added `langStop' argument. Use
2484 `Locale.toString' to compute bundleName.
2485 (resource_cache): New static field.
2486 (partialGetBundle): Cache the returned resource bundle. Now
2489 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2492 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2493 * java/text/natCollator.cc (decomposeCharacter): `base' now
2495 * Makefile.in: Rebuilt.
2496 * Makefile.am (ordinary_java_source_files): Added
2497 CollationElementIterator, CollationKey, Collator,
2499 (nat_source_files): Added natCollator.cc.
2500 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2501 (compare): Pass `this' to CollationElementIterator constructor.
2502 (getCollationElementIterator): Likewise.
2503 (ceiNext): Fix off-by-one error when finding initial substring.
2504 (next): Correctly mask off bits when computing return value.
2505 Fixed return values when one string is shorter than the other.
2506 * java/text/CollationElementIterator.java (collator): New field.
2507 (CollationElementIterator): Added collator argument.
2508 (next): Call ceiNext on collator object.
2510 1999-04-26 Tom Tromey <tromey@cygnus.com>
2512 * natCollator.cc: New file.
2514 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2515 (GregorianCalendar): Use it in all constructors.
2516 * java/util/Calendar.java (Calendar): Changed argument name to
2517 `zone' to match code.
2519 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2520 * java/text/CollationKey.java: New file.
2521 * java/text/CollationElementIterator.java: New file.
2522 * java/text/Collator.java: New file.
2523 * java/text/RuleBasedCollator.java: New file.
2525 * Makefile.in: Rebuilt.
2526 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2527 (jv_convert_LDADD): Explicltly add -lm -lc.
2529 1999-04-26 Tom Tromey <tromey@cygnus.com>
2531 * configure, Makefile.in: Rebuilt.
2532 * configure.in: Added AM_PROG_LIBTOOL.
2533 (GCOBJS): Use `.lo' form of files.
2534 (THREADOBJS): Likewise.
2535 (GCDEPS): Use `.la' form of library.
2536 (GCLIBS): Set to be the same as GCDEPS.
2537 (THREADDEPS): Use `.la' form of library.
2538 (THREADLIBS): Set to be the same as THREADDEPS.
2539 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2540 toolexeclib_LIBRARIES.
2541 (libgcj_la_SOURCES): Renamed for libtoolization.
2542 (EXTRA_libgcj_la_SOURCES): Likewise.
2543 (libgcj_la_DEPENDENCIES): Likewise.
2544 (libgcj_la_LIBADD): Likewise.
2545 ($(nat_files)): Use LTCXXCOMPILE.
2546 ($(c_files)): Use LTCOMPILE.
2547 (GCJCOMPILE): New macro.
2549 (.java.o): Likewise.
2550 ($(javao_files)): Likewise.
2551 (jv_convert_LINK): Use LIBTOOL.
2552 (nat_files): Use `.lo' files.
2553 (c_files): Likewise.
2554 (javao_files): Likewise.
2555 (.class.lo): Renamed.
2556 (.java.lo): Likewise.
2557 ($(nat_files)): Depend on %.lo.
2558 ($(c_files)): Likewise.
2559 ($(javao_files)): Likewise.
2560 (jv_convert_LDADD): Link against .lo files.
2561 (jv_convert_DEPENDENCIES): Depend on .lo files.
2562 (maintainer-check): Depend on libgcj.la, but examine .a file.
2563 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2564 (libgcj_la_LDFLAGS): New macro.
2566 1999-04-23 Warren Levy <warrenl@cygnus.com>
2568 * Makefile.am: Added URLDecoder and URLEncoder.
2569 * Makefile.in: Rebuilt.
2571 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2572 setSocketImplFactory to match spec.
2573 * java/net/Socket.java (getSoLinger): Changed return type to
2576 * java/net/URLDecoder.java: New file.
2577 * java/net/URLEncoder.java: New file.
2579 1999-04-21 Tom Tromey <tromey@cygnus.com>
2581 * java/lang/natString.cc (getBytes): Reverted earlier change and
2582 applied correct fix from Per Bothner.
2584 * java/lang/String.java: Don't throw
2585 UnsupportedEncodingException.
2587 * java/lang/natString.cc (getBytes): Correctly size result
2588 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2590 1999-04-20 Andrew Haley <aph@cygnus.com>
2592 * include/sparc-signal.h: new file.
2593 * configure.in: include/sparc-signal.h added.
2594 * configure: regenerated.
2595 * prims.cc (JvRunMain): signal handling code rewritten to be more
2597 (catch_segv): ditto.
2599 * include/i386-signal.h: reorganized.
2600 * include/default-signal.h: reorganized.
2602 1999-04-19 Tom Tromey <tromey@cygnus.com>
2604 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2605 once. From Anthony Green.
2607 1999-04-19 Andrew Haley <aph@cygnus.com>
2609 * Makefile.in: Processed with new automake.
2611 1999-04-19 Tom Tromey <tromey@cygnus.com>
2613 * include/javaprims.h: Removed security namespace.
2615 1999-04-20 Anthony Green <green@cygnus.com>
2617 * java/io/PrintStream.java (println): Remove extra println.
2619 1999-04-19 Anthony Green <green@cygnus.com>
2621 * Makefile.in: Rebuilt.
2622 * Makefile.am (ordinary_java_source_files): Add new security files.
2624 * java/security/NoSuchAlgorithmException.java,
2625 java/security/MessageDigest.java: New files.
2627 * include/javaprims.h: Add security namespace.
2629 1999-04-16 Per Bothner <bothner@cygnus.com>
2631 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2632 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2633 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2634 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2635 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2636 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2637 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2638 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2639 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2640 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2641 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2642 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2643 * Makefile.am: Various changes for new files and conversions.
2645 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2646 New overloading, allows greater efficiency.
2647 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2648 New overloading (for efficiency - avoids copying).
2650 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2651 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2653 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2654 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2655 (writeChars): Don't be quite so eager to flush.
2656 * java/io/PrintStream.java: Rewrite. Now more similar to
2657 OutputStreamWriter, using explicit UnicodeToBytes converter.
2658 Also, autoflush does not need to flush so often.
2659 * java/lang/natString.cc (getBytes): More efficient algorithm.
2660 (init(jbyteArray,jint,jint,jstring)): More efficient.
2662 1999-04-15 Warren Levy <warrenl@cygnus.com>
2664 * Makefile.am (ordinary_java_source_files): Added new Connection
2665 and Handler classes in gnu.gcj.protocol.file package.
2666 * Makefile.in: Rebuilt.
2668 * gnu/gcj/protocol/file/Connection.java: New file.
2669 * gnu/gcj/protocol/file/Handler.java: New file.
2670 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2671 if doInput allows input.
2672 (getOutputStream): Check if doOutput allows output.
2673 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2675 1999-04-14 Tom Tromey <tromey@cygnus.com>
2677 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2678 buffer larger to work around bug.
2679 From Bryce McKinlay <bryce@albatross.co.nz>.
2681 1999-04-14 Andrew Haley <aph@cygnus.com>
2683 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2684 NaNs are always converted to the same long value.
2685 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2688 1999-04-13 Tom Tromey <tromey@cygnus.com>
2690 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2691 instead switch on actual element type.
2693 * Makefile.in: Rebuilt.
2694 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2696 1999-04-13 Andrew Haley <aph@cygnus.com>
2698 * include/i386-signal.h, include/default-signal.h: New files.
2699 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2701 (catch_fpe): New function.
2702 * configure.in: Make link to appropriate include/java-signal.h.
2703 * configure: Rebuilt.
2704 * Makefile.am: include/java-signal.h added to dependency list.
2705 * Makefile.in: Rebuilt.
2707 1999-04-12 Urban Widmark <urban@svenskatest.se>
2709 * java/io/DataInputStream.java (readLine): Corrected handling of
2710 empty lines, from null to "".
2712 1999-04-12 Tom Tromey <tromey@cygnus.com>
2714 * Makefile.in: Rebuilt.
2715 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2717 * java/lang/natSystem.cc (SystemClass): New define.
2718 (init_properties): Synchronize.
2720 1999-04-08 Geoff Berry <gcb@gnu.org>
2722 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2723 * natPlainSocketImpl.cc (accept): Add missing else if check
2726 1999-04-08 Tom Tromey <tromey@cygnus.com>
2728 * java/lang/Long.java (parseLong): Corrected overflow detection
2730 * java/lang/Integer.java (parseInt): Corrected overflow detection
2733 * java/io/PrintStream.java (print): Handle null string argument.
2734 (println): Likewise.
2736 1999-04-07 Warren Levy <warrenl@cygnus.com>
2738 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2739 Set count to 0 when InputStreamReader returns -1 for EOF.
2741 1999-04-07 Tom Tromey <tromey@cygnus.com>
2743 * mauve-libgcj: Omit java.text.Collator,
2744 java.text.RuleBasedCollator.
2746 1999-04-06 Tom Tromey <tromey@cygnus.com>
2748 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2749 IOException from getHttpHeaders().
2750 (getHeaderFieldKey): Likewise.
2752 * include/javaprims.h: Regenerated declarations.
2754 * Makefile.in: Rebuilt.
2755 * Makefile.am (ordinary_java_source_files): Updated for removed
2758 1999-04-06 Per Bothner <bothner@cygnus.com>
2760 * java/util/zip/Adler32.java: New class.
2761 * java/util/zip/CRC32.java: Add working method bodies.
2762 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2763 * Makefile.in: Re-generate.
2765 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2767 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2768 from version in removed www hierarchy.
2769 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2770 version in removed www hierarchy.
2772 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2773 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2774 * gnu/gcj/www/protocol/http: Removed dir.
2775 * gnu/gcj/www/protocol: Removed dir.
2776 * gnu/gcj/www: Removed dir.
2778 * java/net/HttpURLConnection.java: Revised comments to indicate
2779 missing JDK 1.2 methods.
2781 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2782 hierarchy rather than the gnu/gcj/www/protocol one.
2783 * java/net/URLConnection.java: Updated status comments.
2784 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2785 the gnu/gcj/www/content one.
2787 1999-04-06 Per Bothner <bothner@cygnus.com>
2789 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2790 The gen-from-JIS program is in $(CONVERT_DIR).
2792 1999-04-06 Tom Tromey <tromey@cygnus.com>
2794 * mauve-libgcj: Renamed from mauve-libjava.
2796 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2798 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2799 (getResponseMessage): Implemented.
2800 (getResponseVals): New private method.
2802 * java/net/URLConnection.java (getContent): Implemented.
2803 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2805 1999-04-05 Tom Tromey <tromey@cygnus.com>
2807 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2808 (jv_convert_SOURCES): Renamed.
2809 (EXTRA_jv_convert_SOURCES): Likewise.
2810 (jv_convert_LDFLAGS): Likewise.
2811 (jv_convert_LINK): Likewise.
2812 (jv_convert_LDADD): Likewise.
2813 (jv_convert_DEPENDENCIES): Likewise.
2815 * Makefile.in: Rebuilt.
2816 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2819 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2821 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2822 method for comparison.
2824 * java/net/URLConnection.java (getContentLength): Implemented.
2825 (getContentType): Implemented.
2826 (getContentEncoding): Implemented.
2827 (getExpiration): Implemented.
2828 (getDate): Implemented.
2829 (getLastModified): Implemented.
2830 (getHeaderFieldInt): Implemented.
2831 (getHeaderFieldDate): Implemented.
2833 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2835 * java/net/URLConnection.java (toString): Implemented.
2836 (setContentHandlerFactory): Implemented.
2837 (setContentHandler): Wrote new private helper method.
2839 1999-04-01 Tom Tromey <tromey@cygnus.com>
2841 * Makefile.in: Rebuilt.
2842 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2843 of 1999-03-31; we always want to build all the .class files.
2844 Depend on java_source_files, not libgcj.zip.
2845 (nat_headers): Define in terms of ordinary_java_source_files.
2847 1999-03-31 Tom Tromey <tromey@cygnus.com>
2849 * Makefile.in: Rebuilt.
2850 * Makefile.am (special_java_source_files): New macro.
2851 (java_source_files): Use it.
2852 (ordinary_java_source_files): New macro.
2853 (java_source_files): Use it.
2854 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2855 creating headers for those files with hand-maintained headers.
2857 * include/javaprims.h: Regenerated namespace declarations.
2858 * classes.pl (scan): Include [0-9] in regexp for matching class
2859 names; for java.util.zip.CRC32.
2861 * Makefile.in: Rebuilt.
2862 * Makefile.am (nat_headers): Redefined to generate all possible
2865 * java/util/zip/ZipException.java: In package java.util.zip, not
2868 1999-03-30 Tom Tromey <tromey@cygnus.com>
2870 * configure: Rebuilt.
2871 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2872 eh-common.h when not building in tree with gcc.
2874 * Makefile.in: Rebuilt.
2875 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2876 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2878 ($(java_source_files:.java=.class)): New target.
2880 * Makefile.in: Rebuilt.
2881 * Makefile.am (java_source_files): Added
2882 java/net/HttpURLConnection.java and
2883 gnu/gcj/www/protocol/http/Connection.java.
2885 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2887 * gnu/gcj/www/protocol/http/Connection.java: New file.
2888 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2889 * java/net/HttpURLConnection.java: New file.
2890 * java/net/URLConnection.java (getHeaderField): Implemented default.
2891 (getHeaderFieldKey): Implemented default method.
2893 1999-03-30 Tom Tromey <tromey@cygnus.com>
2895 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2897 * java/util/zip/Deflater.java: Added copyright header.
2898 * java/util/zip/CRC32.java: Added copyright header.
2900 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2901 that it is automatically generated.
2902 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2904 * gnu/gcj/convert/BytesToUnicode.java,
2905 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2906 gnu/gcj/convert/Input_EUCJIS.java,
2907 gnu/gcj/convert/Input_UTF8.java,
2908 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2909 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2910 gnu/gcj/convert/Output_8859_1.java,
2911 gnu/gcj/convert/Output_JavaSrc.java,
2912 gnu/gcj/convert/Output_UTF8.java,
2913 gnu/gcj/convert/UnicodeToBytes.java,
2914 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2916 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2918 * Makefile.in, configure: Rebuilt.
2919 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2920 not if test subdir exists.
2921 (--enable-gcj-classes): Removed; gcj always used to generate
2923 (JAVA, JAVAC): Removed.
2924 (--enable-single-compilation, --enable-source-compilation):
2927 (NATIVE): New conditional.
2928 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2929 `install-exec' to work.
2930 (toolexeclibdir): Likewise.
2931 (toollib_LIBRARIES): Likewise.
2932 (AM_MAKEFLAGS): Don't pass tooldir.
2934 (javao_files): Redefined.
2935 (java_source_files): New macro.
2936 (c_source_files): New macro.
2937 (c_files): Redefined in terms of c_source_files.
2938 (java_io_files, java_lang_files, java_net_files, java_text_files,
2939 java_util_files, gnu_files, java_files): Removed.
2940 (class_io_files, class_lang_files, class_net_files,
2941 class_text_files, class_util_files, class_gnu_files, class_files):
2943 (nat_source_files): New macro.
2944 (nat_files): Redefined in terms of nat_source_files.
2945 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2946 java_source_files. Removed no-such-file.c.
2948 (ETAGS_ARGS): Removed.
2949 (TAGS_DEPENDENCIES): Likewise.
2950 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2952 (src_io_files, src_lang_files, src_text_files, src_util_files,
2953 src_gnu_files): Removed.
2954 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2955 (BUILT_SOURCES): Removed.
2956 (header-check): New target.
2958 (noinst_PROGRAMS): New macro.
2959 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2961 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2962 (gen-from-JIS): Build in top directory.
2963 (convert_source_files): New macro.
2964 (convert_SOURCES): New macro.
2965 (convert_LDFLAGS): Likewise.
2966 (convert_LINK): Likewise.
2967 (convert_LDADD): Likewise.
2968 (convert_DEPENDENCIES): Likewise.
2970 (gen-from-JIS): Removed.
2971 (gen_from_JIS_SOURCES): New macro.
2972 (gen_from_JIS_LDADD): Likewise.
2973 (gen_from_JIS_DEPENDENCIES): Likewise.
2975 * configure: Rebuilt.
2976 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2977 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2978 when defining conditional.
2980 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2982 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2983 The Unicode Consortium does not permit their re-distribution.
2984 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2985 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2987 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2989 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2991 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2993 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2994 from Unicode Consortium.
2995 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2996 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2997 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2998 New tables, generated using gen-from-JIS.
2999 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
3000 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
3001 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
3002 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
3004 * gnu/gcj/convert/Convert.java: New application.
3005 * Makefile.am, Makefile.in (convert): New program, using Convert.
3006 Build the various JIS conversion tables (in maintainer mode).
3008 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
3010 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
3012 * java/net/URL.java (URL): Deal with null property value. Use "."
3013 as separator in building class name.
3014 * java/net/URLConnection.java: Implemented majority of stubbed methods.
3015 * java/net/URLStreamHandler.java (parseURL): Use "" in string
3016 manipulations instead of 'null'. Comment cleanup. Use 0 for the
3017 beginning of the substring rather than 'start'.
3019 1999-03-26 Tom Tromey <tromey@cygnus.com>
3021 * include/java-chartables.h: Rebuilt.
3022 * include/java-chardecomp.h: New file.
3023 * chartables.pl: Generate output files directly. Added support
3024 for generating decomposition header.
3025 (canonical_decomposition, full_decomposition): New globals.
3026 (DECOMPOSITION): New constant.
3027 (process_char): Call add_decomposition.
3028 (add_decomposition): New sub.
3029 (write_decompositions): New sub.
3031 1999-03-25 Tom Tromey <tromey@cygnus.com>
3033 * java/text/CollationElementIterator.java: New file.
3035 * mauve-libjava: Omit StringTest.
3037 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
3039 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
3040 without a '/' when parsing protocol. Handle ref outside of parseURL.
3041 (hashCode): Implemented.
3042 (set): Don't expand -1 to default port.
3043 (getDefaultPort): Removed.
3045 * java/net/URLStreamHandler.java (parseURL): Implemented.
3046 (toExternalForm): Implemented.
3048 1999-03-23 Tom Tromey <tromey@cygnus.com>
3050 * java/text/BreakIterator.java (getSentenceInstance):
3052 * gnu/gcj/text/SentenceBreakIterator.java: New file.
3054 * Makefile.in: Rebuilt.
3055 * Makefile.am (nat_headers): Added IllegalAccessException.
3056 * java/lang/natClass.cc (newInstance): Throw
3057 IllegalAccessException, not IllegalAccessError.
3058 Include IllegalAccessException.h.
3060 1999-03-22 Tom Tromey <tromey@cygnus.com>
3062 * gnu/gcj/text/LineBreakIterator.java: New file.
3063 * java/text/BreakIterator.java (getLineInstance): Implemented.
3065 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
3066 copy constructor private.
3067 (previous, next): Removed erroneous comment about line
3069 (previous): Correctly recognize break between non-letter on the
3070 left and letter on the right. Handle apostrophes correctly.
3072 * java/text/BreakIterator.java (getWordInstance): Implemented.
3073 * gnu/gcj/text/WordBreakIterator.java: New file.
3074 * gnu/gcj/text/CharacterBreakIterator.java: Extend
3076 * gnu/gcj/text/BaseBreakIterator.java: New file.
3078 1999-03-19 Tom Tromey <tromey@cygnus.com>
3080 * java/text/BreakIterator.java: New file (partially stubbed out).
3081 * gnu/gcj/text/CharacterBreakIterator.java: New file.
3083 * include/config.h.in: Rebuilt.
3084 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
3085 (HAVE_TIMEZONE): Likewise.
3086 * configure: Rebuilt.
3087 * configure.in: Added timezone checks.
3088 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
3091 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
3093 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
3094 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
3095 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
3096 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
3097 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
3098 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
3099 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
3100 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
3102 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
3103 (BSD_COMP): Kludge needed for Solaris2.
3105 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
3107 * java/net/URL.java (URL(java.net.URL, string): Moved code to
3108 URL(java.net.URL, string, URLStreamHandler) and call it with a
3109 null handler. In latter constructor, added SecurityManager check.
3110 (set): Expect null handler on bad protocol rather than an exception.
3111 (setURLStreamHandler): Simplified exception handling; return null
3112 on invalid protocol.
3114 1999-03-18 Tom Tromey <tromey@cygnus.com>
3116 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
3118 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
3120 Include PrintStream.h, InputStream.h.
3121 * java/lang/System.java (ForwardingInputStream,
3122 ForwardingOutputStream): Removed.
3123 (setErr, setIn, setOut): Now native.
3125 Reverted patch from 1999-02-12 to work around problem in
3127 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
3128 (_Jv_eh_free): Use free.
3130 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
3131 for path name. Minor formatting fixes.
3133 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
3135 * prims.cc (fail_on_finalization): New function.
3136 (_Jv_GCWatch): Likewise.
3138 * prims.cc (JvRunMain): Initialize `nullp'.
3139 (nullp): New global.
3140 (catch_segv): Throw nullp.
3142 * Makefile.in: Rebuilt.
3143 * Makefile.am (ZIP): In "null target" case, zip is found in the
3146 * prims.cc (_Jv_PrimClass): Initialize all elements of class
3150 * java/lang/StringBuffer.java (StringBuffer): Don't use
3151 ensureCapacity to set initial capacity.
3152 (capacity): Subtract `length' from return result.
3154 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
3156 * java/io/natFileDescriptorPosix.cc (open): Throw
3157 FileNotFoundException, but with filename and errno in msg.
3159 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
3161 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
3162 functionality folded into java/net/URL.java per spec.
3164 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
3165 than EEXIST for throwing FileNotFoundException.
3167 * java/net/URL.java: Folded in default URLStreamHandlerFactory
3168 algorithm per JDK 1.2 doc. Added SecurityManager checks.
3170 * java/net/URLStreamHandler.java (parseURL): Added stub.
3172 1999-03-15 Andrew Haley <aph@cygnus.com>
3174 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3177 1999-03-15 Andrew Haley <aph@cygnus.com>
3179 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3182 1999-03-12 Tom Tromey <tromey@cygnus.com>
3184 * prims.cc (catch_segv): New function.
3185 Include <signal.h> if HANDLE_SEGV defined. Include
3186 NullPointerException.h.
3187 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3190 * java/text/SimpleDateFormat.java (equals): Ensure that object is
3191 a SimpleDateFormat, not just a DateFormat.
3192 (defaultCenturyStart, formatData, pattern): Now private.
3193 (append): Now `final'. Use `NumberFormat.format'.
3195 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3197 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3200 * java/text/MessageFormat.java (format): Use default MessageFormat
3202 (parse, parseObject): Wrote.
3204 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3207 1999-03-12 Andrew Haley <aph@cygnus.com>
3209 * java/lang/String.java (indexOf): Replace with native method for
3211 * java/lang/natString.cc (IndexOf): As above.
3213 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3214 Argument check corrected.
3215 (init(jbyteArray,jint,jint,jstring)): Likewise.
3217 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3218 1.2 compliant method.
3220 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3222 * java/lang/Float.java (byteValue, shortValue): Likewise.
3224 1999-03-11 Tom Tromey <tromey@cygnus.com>
3226 * java/text/DecimalFormat.java (parse): Wrote.
3228 * java/text/ChoiceFormat.java (parse): Set error index on
3229 ParsePosition object.
3231 * java/lang/Integer.java (parseInt): Throw exception on overflow
3232 when intermediate result is most negative number. Changed
3233 overflow detection as well.
3234 * java/lang/Long.java (parseLong): Likewise.
3236 * configure, Makefile.in: Rebuilt.
3237 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3238 CANADIAN when building in source tree that doesn't include gcc.
3239 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3242 * java/text/ChoiceFormat.java (nextDouble): Correct some
3243 off-by-one errors when masking or adding.
3245 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3246 parameter, if given. Use `%', not IEEEremainder.
3247 (scanFix): Throw error if multiplier already set.
3248 (computePattern): Wrote.
3250 1999-03-11 Andrew Haley <aph@cygnus.com>
3252 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3254 (nextDouble): Corrected masking logic. Handle interaction between
3255 `next' and negative numbers.
3257 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3259 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3260 * java/net/URL.java: Added general comments.
3262 1999-03-10 Tom Tromey <tromey@cygnus.com>
3264 * java/text/ChoiceFormat.java (parse): Wrote.
3266 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3268 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3269 Create ChoiceFormat objects.
3270 (format): Special-case ChoiceFormat.
3271 (scanFormatElement): Include { and } in generated style string.
3273 1999-03-09 Tom Tromey <tromey@cygnus.com>
3275 * java/text/ChoiceFormat.java: New file.
3277 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3279 * java/net/BindException.java: Created.
3280 * java/net/ConnectException.java: Created.
3281 * java/net/ContentHandler.java: Created.
3282 * java/net/ContentHandlerFactory.java: Created.
3283 * java/net/FileNameMap.java: Created.
3284 * java/net/MalformedURLException.java: Created.
3285 * java/net/NoRouteToHostException.java: Created.
3286 * java/net/ProtocolException.java: Created.
3287 * java/net/ServerSocket.java (@author): Fixed typo.
3288 * java/net/Socket.java (@author): Fixed typo.
3289 * java/net/SocketImpl.java (@author): Fixed typo.
3290 * java/net/SocketImplFactory.java (@author): Fixed typo.
3291 * java/net/URL.java: Created - nearly complete.
3292 * java/net/URLConnection.java: Created - near-empty stub.
3293 * java/net/URLStreamHandler.java: Created - incomplete stub.
3294 * java/net/URLStreamHandlerFactory.java: Created.
3295 * java/net/UnknownServiceException.java: Created.
3297 1999-03-09 Tom Tromey <tromey@cygnus.com>
3299 * java/lang/System.java (ForwardingInputStream): New class.
3300 (ForwardingOutputStream): Likewise.
3301 (in, out, err): Now `final' forwarding streams.
3302 (setIn, setOut, setErr): Use appropriate method on forwarding
3305 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3308 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3310 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3311 * java/util/zip/Checksum.java: New interface (complete).
3312 * java/util/zip/Deflater.java: New class (near-empty stub).
3313 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3314 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3315 * java/util/zip/ZipEntry.java: New class (complete).
3316 * java/util/zip/ZipException.java: New class (complete).
3317 * java/util/zip/ZipFile.java: New class (incomplete stub).
3318 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3320 1999-03-09 Tom Tromey <tromey@cygnus.com>
3322 * java/text/MessageFormat.java (MessageFormatElement): Removed
3323 `public' specifiers.
3325 * java/text/DecimalFormat.java (scanFormat): Increment index
3326 before processing exponential format. Fixed a couple typos in
3328 (format): Correct normalization of exponent.
3330 1999-03-08 Tom Tromey <tromey@cygnus.com>
3332 * java/text/SimpleDateFormat.java (parse): Throw
3333 IllegalArgumentException, not ParseException.
3335 1999-03-05 Tom Tromey <tromey@cygnus.com>
3337 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3338 when constructing DateFormatSymbols. Initialize numberFormat
3339 field of superclass.
3341 * java/text/DateFormat.java (equals): Rewrote.
3342 (getAvailableLocales): New method.
3343 (getDateInstance): New methods.
3344 (getDateTimeInstance): Likewise.
3345 (getTimeInstance): Likewise.
3346 (getInstance): New method.
3347 (computeInstance): New method.
3349 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3351 (safeGetResource): New method.
3352 (DateFormatSymbols): Use Locale paramater.
3353 (equals): Now protected.
3354 Made instance variables private.
3356 1999-03-04 Tom Tromey <tromey@cygnus.com>
3358 * java/text/DecimalFormat.java: New file.
3360 * java/text/NumberFormat.java (groupingUsed,
3361 maximumFractionDigits, maximumIntegerDigits,
3362 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3364 (setDecimalSeparatorAlwaysShown, setMultiplier,
3365 setPositivePrefix): Removed.
3366 (setMinimumFractionDigits, setMaximumFractionDigits):
3368 (format): Now final.
3369 Added many new methods.
3371 * Makefile.in: Rebuilt.
3372 * Makefile.am (gnu_files): New macro.
3373 (java_files): Added gnu_files.
3374 (class_gnu_files): New macro.
3375 (class_files): Use it.
3376 (src_gnu_files): New macro.
3377 (gnu.o): New target.
3378 (javao_files): Added gnu.o.
3380 * gnu/gcj/text/LocaleData_en_US.java: New file.
3381 * gnu/gcj/text/LocaleData_en.java: New file.
3382 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3383 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3384 (safeGetString): New method.
3385 (safeGetChar): Likewise.
3387 1999-03-03 Tom Tromey <tromey@cygnus.com>
3389 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3392 * java/text/FieldPosition.java (equals): Don't check for null
3393 object; instanceof does this.
3395 * java/util/Locale.java (clone): New method.
3398 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3400 * doc/cni.sgml: New file.
3402 1999-03-03 Tom Tromey <tromey@cygnus.com>
3404 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3406 * java/text/DecimalFormatSymbols.java: New file.
3408 1999-03-02 Tom Tromey <tromey@cygnus.com>
3410 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3412 * configure: Rebuilt.
3413 * configure.in: Check for sys/filio.h.
3415 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3417 (load): Always throw UnsatisfiedLinkError.
3418 (loadLibrary): Likewise.
3420 1999-03-02 Anthony Green <green@cygnus.com>
3422 * LIBGCJ_LICENSE: New file.
3423 * LIBJAVA_LICENSE: Removed.
3424 * Many files: libjava now libgcj.
3426 1999-03-02 Tom Tromey <tromey@cygnus.com>
3428 * include/java-chartables.h: Rebuilt.
3429 * chartables.pl (print_block): Make table `const'.
3430 (print_numerics): Likewise.
3431 (print_single_map): Likewise.
3432 (print_all_block): Likewise.
3433 (print_case_table): Likewise.
3434 (print_fast_tables): Likewise.
3435 * java/lang/natCharacter.cc (table_search): `table' argument now
3438 1999-03-01 Tom Tromey <tromey@cygnus.com>
3440 * java/util/Date.java (before, after): Inverted logic.
3442 * java/util/Date.java (parse): Handle case where first character
3443 in string is open parenthesis.
3444 (skipParens): Rewrote.
3446 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3447 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3449 * java/util/Date.java (parse): Correctly compute beginning of
3452 * java/util/Hashtable.java (get): Throw NullPointerException if
3454 (containsKey): Likewise.
3456 * java/util/Properties.java (list): Truncate value to 37
3457 characters and add `...'.
3459 * java/lang/Byte.java (parseByte): Pass `radix' to
3462 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3464 Include System.h, PrintStream.h.
3466 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3469 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3471 * configure: Rebuilt.
3472 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3475 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3477 * java/lang/SecurityManager.java: Import java.net.*.
3478 (checkMulticast): New methods.
3480 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3482 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3483 (nat_files): Add java/lang/reflect/natArray.o.
3484 (nat_headers): Add Field.h and NoSuchFieldException.h.
3486 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3487 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3488 (_Jv_FromReflectedField): Fix buglet.
3489 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3490 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3491 * prims.cc (_Jv_Abort): Include message in print-out.
3493 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3494 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3495 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3497 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3498 * include/config.h.in (HAVE_PWD_H): New feature macro.
3499 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3500 user.name, user.home, user.dir.
3502 * java/lang/reflect/Array.java: New class.
3503 * java/lang/reflect/natArray.cc: New native methods.
3504 * include/javaprims.h: Declare java::lang::reflect::Array.
3506 * java/lang/Class.h (getField): New private method. Add friends.
3507 * java/lang/Class.java (getField): Add private overload.
3508 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3509 getDeclaredMethods): Add working implementations.
3510 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3511 Finish implementation, except for access control.
3513 * java/lang/reflect/Modifier.java (toString): New overload.
3514 * include/java-method.h: New file.
3515 * java/lang/reflect/Method.java (index): Replaced by offset field.
3516 Remove various private fields - get them from _Jv_Field instead.
3517 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3518 New method implementations.
3520 * java/text/NumberFormat.java: Add a bunch of methods.
3522 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3524 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3526 1999-02-26 Tom Tromey <tromey@cygnus.com>
3528 * include/config.h.in: Rebuilt.
3529 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3530 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3531 HAVE_GETHOSTBYADDR_R): New defines.
3532 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3533 gethostbyaddr_r if available.
3535 * configure: Rebuilt.
3536 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3538 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3542 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3543 * prims.cc (_Jv_AllocBytesChecked): New function.
3545 * Makefile.in: Rebuilt.
3546 * Makefile.am (SUBDIRS): Removed `test'.
3547 * configure: Rebuilt.
3548 * configure.in: Don't build test/Makefile.
3549 * test/*: Removed all files.
3551 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3553 * java/lang/reflect/Constructor.java: Make class final to match spec.
3554 * java/lang/reflect/Method.java: Ditto.
3556 1999-02-25 Tom Tromey <tromey@cygnus.com>
3558 * java/net/natInetAddress.cc: Include <sys/types.h> before
3560 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3563 * java/net/natInetAddress.cc: Declare gethostname if required.
3564 * include/config.h.in: Rebuilt.
3565 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3566 * configure: Rebuilt.
3567 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3568 declared in unistd.h.
3570 1999-02-24 Tom Tromey <tromey@cygnus.com>
3572 * Makefile.in: Rebuilt.
3573 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3574 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3575 from private to "none".
3577 * include/javaprims.h: Regenerated class declarations with new
3579 * classes.pl (scan): Only generate decls for java.lang, java.io,
3582 1999-02-24 Tom Tromey <tromey@cygnus.com>
3584 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3585 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3587 1999-02-23 Tom Tromey <tromey@cygnus.com>
3589 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3590 not already defined.
3591 * java/io/natFile.cc (_REENTRANT): Only define if not already
3593 * include/config.h.in: Rebuilt.
3594 * acconfig.h (HAVE_BOEHM_GC): New define.
3595 * configure: Rebuilt.
3596 * configure.in: Define HAVE_BOEHM_GC if using it.
3597 * posix-threads.cc: Include boehm-config.h and gc.h if
3599 * include/posix-threads.h: Added explanatory note about Boehm GC.
3601 * java/io/BufferedReader.java (readLine): Only return null when
3602 EOF seen before any characters read. (In particular, an empty
3603 line should not return null.)
3605 * java/io/BufferedInputStream.java (read): Only refill once per
3608 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3609 java.lang.Character.classify12, java.lang.String.hash,
3610 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3611 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3613 * java/text/StringCharacterIterator.java (setIndex): No error if
3615 (next): Check for `pos == end', not `end - 1'.
3616 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3617 for null text in each constructor.
3618 (clone): Fixed order of arguments to constructor.
3620 1999-02-22 Tom Tromey <tromey@cygnus.com>
3622 * include/config.h.in: Rebuilt.
3623 * acconfig.h (HAVE_INET6): New define.
3624 (HAVE_SOCKLEN_T): Likewise.
3625 * java/net/PlainSocketImpl.java: Added copyright header.
3626 * java/net/natPlainSocketImpl.cc: Added copyright header.
3627 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3629 (connect): Likewise.
3631 (socklen_t): New typedef.
3632 (accept): Use socklen_t.
3633 * java/net/natInetAddress.cc: Added copyright header.
3634 (HAVE_GETHOSTNAME): Don't define.
3635 (HAVE_INET_ADDR): Likewise.
3636 (lookup): Fixed typo.
3637 (aton): Don't use `address' as name of local variable.
3638 (lookup): Use HAVE_INET6, not AF_INET6.
3640 * configure: Rebuilt.
3641 * configure.in: Look for functions inet_aton, inet_addr,
3642 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3643 Check for socklen_t typedef.
3645 * exception.cc (__throw): Declare as __noreturn__.
3647 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3649 * Makefile.am, Makefile.in: Also build java/net.
3650 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3652 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3653 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3655 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3656 * include/cni.h (JvMalloc, JvFree): New inline functions.
3657 (JvThrow): Add __noreturn__ attribute.
3658 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3659 (_Jv_Throw): Add __noreturn__ attribute.
3661 * java/net/PlainSocketImpl.java: Init fnum to -1.
3662 * java/net/ServerSocket.java: Add missing throws clauses.
3663 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3664 don't call create on the latter. Instead, other constructors
3665 have to explicitly call SocketImpl.create.
3666 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3667 from size_t to int, to match ::accept prototype.
3668 * java/net/natInetAddress.cc: Use JvFree rather than free.
3671 1999-02-22 Tom Tromey <tromey@cygnus.com>
3673 * include/javaprims.h: Added new classes.
3674 * java/text/StringCharacterIterator.java: New file.
3675 * java/text/CharacterIterator.java: New file.
3677 * java/text/ParseException.java (errorOffset): Now private.
3679 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3681 * java/net: New package.
3682 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3683 Socket.java,SocketException.java,SocketImpl.java,
3684 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3685 natPlainSocketImpl.cc}: New classes.
3687 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3688 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3689 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3690 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3692 * classes.pl: Translate package into "namespace", not "class".
3693 * include/javaprims.h: Update class list, using "namespace".
3695 1999-02-21 Tom Tromey <tromey@cygnus.com>
3697 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3698 Define when appropriate.
3700 1999-02-20 Tom Tromey <tromey@cygnus.com>
3702 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3703 as a single byte and \u07ff as two bytes.
3704 (_Jv_GetStringUTFLength): Likewise.
3705 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3706 with 0x0f, not 0x1f.
3708 1999-02-19 Tom Tromey <tromey@cygnus.com>
3710 * java/io/DataOutputStream.java (writeUTF): When encoding
3711 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3712 * java/io/DataInputStream.java (readUTF): Mask second byte of
3713 3-byte character with 0x3f, not 0x1f.
3715 * java/io/DataInputStream.java (readLong): Cast result of
3716 readUnsignedByte to long before using.
3718 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3721 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3722 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3723 argument to avoid warning.
3724 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3725 argument to avoid warning.
3727 1999-02-18 Tom Tromey <tromey@cygnus.com>
3729 * mauve-libjava: Omit java.io.DataInputOutput and
3730 java.io.Utf8Encoding.
3732 1999-02-17 Tom Tromey <tromey@cygnus.com>
3734 * Makefile.in: Rebuilt.
3735 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3736 * java/io/natFileDescriptorPosix.cc: Include
3737 InterruptedIOException.h, Thread.h.
3738 (write): Throw InterruptedIOException when required.
3740 * posix-threads.cc: Include <signal.h>.
3741 (_Jv_ThreadInterrupt): New function.
3743 (handle_intr): New function.
3744 (_Jv_InitThreads): Register handle_intr via sigaction.
3745 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3746 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3747 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3748 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3750 1999-02-19 Andrew Haley <aph@cygnus.com>
3752 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3754 (ThreadGroup (int)): Set the maximum priority of the initial
3757 1999-02-18 Andrew Haley <aph@cygnus.com>
3759 * java/lang/natClass.cc (forName): Check for the case where a
3760 classname is the name of an array and call FindClassFromSignature
3763 1999-02-18 Andrew Haley <aph@cygnus.com>
3765 * java/lang/StringBuffer (insert (int, String)): Move up any
3766 characters above the insert position and increase the length of
3767 the string buffer by the length of the argument.
3768 (insert (int, char[])): Likewise.
3769 (insert (int, char)): Likewise.
3770 (StringBuffer (String)): The initial capacity of the string buffer
3771 is 16 plus the length of the argument.
3772 (getChars): Add a JDK 1.2 FIXME.
3774 1999-02-18 Andrew Haley <aph@cygnus.com>
3776 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3779 1999-02-18 Andrew Haley <aph@cygnus.com>
3781 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3782 instead of floating-point equality. This is necessary for
3783 correct floating-point Hashtables.
3784 * java/lang/Float.java (equals): Ditto.
3786 1999-02-16 Tom Tromey <tromey@cygnus.com>
3788 * java/util/Properties.java (list): Truncate value to 37
3789 characters and add "...".
3791 1999-02-16 Tom Tromey <tromey@cygnus.com>
3793 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3794 if initCap is negative.
3795 (contains): Implement JDK1.2-style handling of null argument.
3796 (removeElement): Likewise.
3797 (indexOf): Likewise. Also, correctly handle case where idx is
3799 (lastIndexOf): Likewise.
3801 1999-02-16 Tom Tromey <tromey@cygnus.com>
3803 * java/lang/natString.cc (init): Increment source pointer in
3806 1999-02-16 Tom Tromey <tromey@cygnus.com>
3808 * exception.cc: Include NullPointerException.h.
3809 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3811 1999-02-16 Tom Tromey <tromey@cygnus.com>
3813 * Makefile.in: Rebuilt.
3814 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3816 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3818 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3819 we're compiling canadian.
3820 * configure: Regenerated.
3822 1999-02-12 Andrew Haley <aph@cygnus.com>
3824 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3825 deleted from libgcj.
3827 1999-02-12 Tom Tromey <tromey@cygnus.com>
3829 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3830 (_Jv_eh_free): Don't call free.
3831 Don't declare malloc or free.
3833 1999-02-11 Tom Tromey <tromey@cygnus.com>
3835 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3837 1999-02-11 Andrew Haley <aph@cygnus.com>
3839 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3840 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3841 needed by java.lang.*.
3842 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3843 wf_fmod.o: Removed from libjava.a.
3845 1999-02-11 Tom Tromey <tromey@cygnus.com>
3847 * include/javaprims.h: Reverted previous change; with it
3848 exception.cc can't compile.
3850 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3852 * include/config.h.in: Rebuilt.
3853 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3855 * configure: Rebuilt.
3856 * configure.in: Check for sched_yield. Look in thread library for
3857 all thread functions.
3859 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3860 no recursive mutexes.
3861 (_Jv_MutexDestroy): Define when required.
3862 (_Jv_MutexLock): Likewise.
3863 (_Jv_MutexUnlock): Likewise.
3864 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3865 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3866 (_Jv_Mutex_t): New structure.
3867 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3868 (_Jv_MutexLock): Likewise.
3869 (_Jv_MutexUnlock): Likewise.
3871 1999-02-10 Tom Tromey <tromey@cygnus.com>
3873 * aclocal.m4, configure, Makefile.in: Rebuilt.
3874 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3876 * configure.in: Changed to track library changes.
3877 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3878 (AM_CXXFLAGS): Likewise.
3879 (data_DATA): Likewise.
3880 (AM_CFLAGS): Likewise.
3881 (JC1FLAGS): Likewise.
3882 (libgcj_a_SOURCES): Likewise.
3883 (EXTRA_libgcj_a_SOURCES): Likewise.
3884 (libgcj_a_DEPENDENCIES): Likewise.
3885 (libgcj_a_LIBADD): Likewise.
3886 (libgcj.zip): Likewise.
3887 (CLEANFILES): Likewise.
3888 ($(nat_headers)): Likewise.
3889 (java/lang/FirstThread.h): Likewise.
3890 (java/lang/ThreadGroup.h): Likewise.
3891 (java/lang/String.h): Likewise.
3892 (java/lang/reflect/Field.h): Likewise.
3893 (BUILT_SOURCES): Likewise.
3894 (maintainer-check): Likewise.
3895 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3896 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3898 * java/util/natGregorianCalendar.cc (computeFields): Only use
3899 gmtime_r and localtime_r when configured for posix threads.
3901 * java/io/natFile.cc (get_entry): Only use readdir_r when
3902 configured for posix threads.
3904 * java/util/natGregorianCalendar.cc: Update copyright notice.
3905 * java/util/TimeZone.java: Ditto.
3906 * java/util/SimpleTimeZone.java: Ditto.
3908 1999-02-08 Tom Tromey <tromey@cygnus.com>
3910 * java/io/PrintStream.java (line_separator): New constant.
3911 (print): Use line_separator, not `file.separator' property.
3912 (println): Use line_separator.
3914 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3915 when trying to instantiate Class.
3917 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3918 NullPointerException if argument is null.
3920 * java/lang/Thread.java (setName): Throw NullPointerException, not
3921 IllegalArgumentException.
3924 1999-02-08 Andrew Haley <aph@cygnus.com>
3926 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3927 create new Classes with Class.newInstance().
3929 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3930 semiciolon to end of an array Class's signature if the elements of
3931 the array aren't themselves arrays.
3933 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3934 array of objects is always sizeof(jobject), not the size of the
3935 object to which the reference points.
3937 1999-02-08 Tom Tromey <tromey@cygnus.com>
3939 * java/util/BitSet.java (and): Throw NullPointerException when
3944 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3945 if argument is negative.
3946 (clear): Correctly compute `offset'. Throw
3947 IndexOutOfBoundsException when required.
3949 (get): Likewise. Also, return correct value.
3950 (ensure): Changed meaning of argument.
3951 (toString): Wrap contents in `{}'; put spaces after commas.
3952 (hashCode): Don't try to examine elements off the end of array.
3953 (or): Correctly include bits past the end of this bit set.
3956 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3958 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3959 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3961 1999-02-04 Andrew Haley <aph@cygnus.com>
3963 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3964 '/' in signatures to '.'
3965 (Class::getName): Likewise,
3966 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3968 * java/lang/natFirstThread.cc (run): Change '/' in main's
3971 1999-02-03 Andrew Haley <aph@cygnus.com>
3973 * configure.host: -ffloat-store added when compiling libjava on
3974 x86. fdlibm apparently relies on this.
3976 * java/lang/ThreadGroup.java (add): throw an exception if the
3977 ThreadGroup has been destroyed.
3979 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3982 1999-01-27 Tom Tromey <tromey@cygnus.com>
3984 * java/lang/StringBuffer.java (StringBuffer): Handle null
3987 1999-01-21 Tom Tromey <tromey@cygnus.com>
3989 * java/lang/natFirstThread.cc (run): Don't require main to be
3992 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3994 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3996 1999-01-20 Tom Tromey <tromey@cygnus.com>
3998 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
4002 (unintern): Likewise.
4003 (_Jv_NewStringUtf8Const): Likewise.
4005 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
4006 Character.isLetter, to see if character is self-quoting. Also,
4007 correctly handle quoted characters.
4008 (parse): Fixed typo. Also now throws ParseException.
4010 1999-01-15 Tom Tromey <tromey@cygnus.com>
4012 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
4014 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
4015 _Jv_SyncInfo has `init' member.
4017 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
4020 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
4021 IllegalMonitorStateException if unlock fails.
4023 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
4025 (_Jv_NewObjectArray): Likewise.
4027 1999-01-14 Tom Tromey <tromey@cygnus.com>
4029 * java/lang/Character.java (isJavaIdentifierPart): Allow
4030 LETTER_NUMBER characters.
4032 * chartables.pl (process_char): Fixed error messages.
4034 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
4035 * chartables.pl: Updated comments. Changed detection of non-digit
4036 numeric values (no longer miss \u00b2 and friends).
4038 * java/lang/Character.java (isJavaIdentifierPart): Recognize
4039 currency symbols and connector punctuation.
4040 (isIdentifierIgnorable): Make 7f-9f ignorable.
4042 * prims.cc (_Jv_NewObjectArray): Check for overflow.
4043 (_Jv_NewPrimArray): Likewise.
4044 (SIZE_T_MAX): New define.
4046 * java/lang/ClassLoader.java (system): Now private and final.
4048 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
4051 * configure: Rebuilt.
4052 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
4054 * exception.cc: Include gansidecl.h.
4056 1999-01-14 Andrew Haley <aph@cygnus.com>
4058 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
4059 corrected: they didn't treat -0.0 and NaNs correctly.
4061 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
4063 * nogc.cc: Use calloc to zero out memory.
4065 1999-01-11 Tom Tromey <tromey@cygnus.com>
4067 * java/lang/natClass.cc (isInstance): Return false if this class
4068 is primitive, not if class of `obj' is primitive.
4069 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
4071 * java/io/SequenceInputStream.java (close): Handle case where `in'
4074 * java/text/DateFormat.java (format): New method.
4076 * mauve-libjava: Omit java.text.DateFormat.
4078 1999-01-08 Tom Tromey <tromey@cygnus.com>
4080 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
4082 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
4084 (_Jv_CondNotifyAll): Likewise.
4086 * configure: Rebuilt.
4087 * configure.in: Change --enable-source-compilation logic to work
4090 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
4092 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4093 and RUNTESTFLAGS from AM_MAKEFLAGS.
4094 * configure.in: AM_RUNTESTFLAGS added.
4095 * configure.host: AM_RUNTESTFLAGS added.
4096 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
4097 * configure: rebuilt.
4098 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
4100 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
4101 argv[] made conditional because embedded targets may not have
4103 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
4104 explanatory comments added in call to super.
4106 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
4107 exception thrown in the test harness itself added.
4108 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
4110 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
4112 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
4114 1999-01-06 Tom Tromey <tromey@cygnus.com>
4116 * java/io/natFile.cc (get_entry): New function.
4117 (performList): Use get_entry.
4118 * include/config.h.in: Rebuilt.
4119 * acconfig.h (HAVE_READDIR_R): New define.
4120 * configure: Rebuilt.
4121 * configure.in: Look for readdir_r.
4123 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
4125 * java/util/natDate.cc: Added copyright header.
4127 1999-01-05 Tom Tromey <tromey@cygnus.com>
4129 * include/config.h.in: Rebuilt.
4130 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
4131 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
4132 * configure: Rebuilt.
4133 * configure.in: Check for access, stat, mkdir, rename, rmdir,
4134 unlink, and realpath.
4135 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
4136 (stat): Conditionalize on HAVE_STAT.
4138 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
4139 (performMkdir): Conditionalize on HAVE_MKDIR.
4140 (performRenameTo): Conditionalize on HAVE_RENAME.
4141 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
4143 * include/config.h.in: Rebuilt.
4144 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
4145 * configure: Rebuilt.
4146 * configure.in: Check for gmtime_r and localtime_r. For cross
4147 builds, assume they exist.
4149 * mauve-libjava: Include java.text.DateFormatSymbols again.
4150 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
4151 from setAmPmStrings.
4153 * mauve-libjava: Omit java.text.DateFormatSymbols.
4155 1999-01-04 Tom Tromey <tromey@cygnus.com>
4157 * java/io/PushbackReader.java: `off' already includes `numBytes'.
4159 * java/io/LineNumberReader.java (read): Decrement `count' in
4162 * java/io/BufferedWriter.java (write): Correctly determine when
4163 incoming data would overrun buffer. Flush buffer if write causes
4166 * java/io/BufferedOutputStream.java (write): Increment `count'
4167 after copying data into buffer.
4169 * java/io/FilterOutputStream.java (close): Call flush first.
4171 * java/io/PipedReader.java (read): If read causes `out' to catch
4172 up with `in', then set `in' to -1.
4174 * java/io/LineNumberInputStream.java (read): If no bytes read,
4175 return -1. If no bytes requested, return 0.
4177 * java/lang/StringBuffer.java (insert): If `str' is null, use
4180 1998-12-30 Anthony Green <green@cygnus.com>
4183 * LIBJAVA_LICENSE, COPYING.LIB: Created.
4185 1998-12-23 Tom Tromey <tromey@cygnus.com>
4187 * java/io/PushbackInputStream.java (read): `off' already includes
4190 1998-12-17 Tom Tromey <tromey@cygnus.com>
4192 * Makefile.in: Rebuilt.
4193 * Makefile.am (GCJ_canadian): Include target_alias.
4195 * java/lang/natFirstThread.cc (run): Require main's class to be
4198 1998-12-16 Tom Tromey <tromey@cygnus.com>
4200 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4202 * java/util/ResourceBundle.java (getBundle): Throw
4203 NullPointerException if locale argument is null.
4205 * java/lang/natClass.cc (forName): Throw NullPointerException if
4207 Include NullPointerException.h.
4209 1998-12-14 Tom Tromey <tromey@cygnus.com>
4211 * java/lang/Character.java (Character): Implement Comparable.
4212 (compareTo): New methods.
4214 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4215 correct country and language codes.
4216 (UK, US): New constants.
4217 (setDefault): Language codes are lower-case.
4219 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4220 (getDeclaredConstructors): Likewise.
4221 (getDeclaredField): Likewise.
4222 (getDeclaredFields): Likewise.
4223 (getDeclaredMethod): Likewise.
4224 (getDeclaredMethods): Likewise.
4225 (getField): Likewise.
4226 (getFields): Likewise.
4227 (getMethod): Likewise.
4228 (getMethods): Likewise.
4229 * java/lang/Class.java: Declare new methods.
4230 * java/lang/Class.h: Declare new methods.
4232 * java/lang/natString.cc: Removed `#pragma implementation'.
4233 * include/cni.h (_Jv_GetStringChars): New function.
4234 * Makefile.in: Rebuilt.
4235 * Makefile.am (java/lang/String.h): Don't generate definition for
4238 * java/lang/natString.cc: Added `#pragma implementation'.
4240 * Makefile.in: Rebuilt.
4241 * Makefile.am (libjava.zip): Put build directory first in class
4242 path to avoid bug in compiler.
4244 1998-12-14 Anthony Green <green@cygnus.com>
4246 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4248 * include/javaprims.h: Add EventObject, ListResourceBundle and
4251 1998-12-13 Anthony Green <green@cygnus.com>
4253 * mauve-libjava: Run the ResourceBundle tests.
4255 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4258 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4260 * configure.in, configure: Make --enable-gcj-classes and
4261 --enable-source-compilation the default. (Nervously...) Yeah!
4262 Based on a patch from Tom Tromey.
4264 1998-12-13 Tom Tromey <tromey@cygnus.com>
4266 * java/util/EventObject.java: New file.
4267 * java/util/EventListener.java: New file.
4269 * include/javaprims.h: Updated class declarations.
4270 * Makefile.in: Rebuilt.
4271 * Makefile.am (nat_headers): Added Constructor.h.
4272 (java/lang/String.h): Don't inline String::length().
4273 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4274 * java/lang/Class.java (initializeClass, hackRunInitializers,
4275 hackTrampoline): No need to mark `final'.
4276 (getConstructor, getConstructors): Declare.
4277 * java/lang/reflect/Field.java (equals): New method.
4278 * java/lang/natClass.cc (getConstructor): New method.
4279 (getConstructors): Likewise.
4280 Include Method.h, Field.h, Constructor.h.
4281 * java/lang/reflect/Constructor.java: New file.
4282 * java/lang/reflect/Method.java (toString): No space before open
4284 (equals): Simplified.
4286 1998-12-13 Anthony Green <green@cygnus.com>
4288 * java/util/ResourceBundle.java: New file.
4289 * java/util/ListResourceBundle.java: New file.
4291 1998-12-12 Tom Tromey <tromey@cygnus.com>
4293 * java/lang/System.java (in, out, err): Now buffered streams by
4296 * include/javaprims.h: Updated class declarations.
4297 * Makefile.in: Rebuilt.
4298 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4299 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4301 (nat_files): Added natMethod.o.
4302 * java/lang/reflect/natMethod.cc: New file.
4303 * java/lang/reflect/Field.java (Field): Now extends
4305 * java/lang/reflect/AccessibleObject.java: New file.
4306 * java/lang/reflect/InvocationTargetException.java: New file.
4308 1998-12-11 Tom Tromey <tromey@cygnus.com>
4310 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4311 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4312 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4314 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4316 1998-12-09 Tom Tromey <tromey@cygnus.com>
4318 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4321 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4322 character is already titlecase.
4324 * java/lang/Character.java (isJavaLetter): Follow spec.
4325 (isJavaLetterOrDigit): Likewise.
4327 * java/util/GregorianCalendar.java (gregorianCutover): Append
4330 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4332 1998-12-08 Tom Tromey <tromey@cygnus.com>
4334 * java/lang/reflect/Modifier.java (toString): Replace second
4335 `static' with `synchronized'.
4337 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4338 * java/lang/Object.h (Object::hack12_6): Declare.
4339 * java/lang/Object.java (hack12_6): New function.
4341 1998-12-07 Tom Tromey <tromey@cygnus.com>
4343 * include/java-array.h (__JArray::clone): Removed decl.
4344 * prims.cc (__JArray::clone): Removed.
4345 * java/lang/natObject.cc (clone): Incorporate code to clone an
4348 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4349 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4350 Correctly use dtable_method_count.
4352 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4354 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4357 1998-12-06 Anthony Green <green@cygnus.com>
4359 * mauve-libjava: Don't test ResourceBundle.
4361 1998-12-04 Tom Tromey <tromey@cygnus.com>
4363 More JDK 1.2 spec fixes:
4364 * java/util/Date.java (millis): Now private.
4365 * java/text/DateFormat.java (DateFormat): Constructor now
4367 * java/lang/Void.java (Void): New private constructor.
4368 * java/lang/System.java (System): New private constructor.
4369 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4371 (currentClassLoader): New method.
4372 (currentLoadedClass): New method.
4373 * java/lang/Math.java (Math): New private constructor.
4374 * java/lang/Compiler.java (Compiler): New private constructor.
4375 * java/lang/Class.java (Class): New private constructor.
4376 * java/lang/Double.java (toString): Removed access specifier from
4377 two-argument `toString' method.
4379 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4381 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4382 causes it to be flushed from an fp register (where it may be
4383 longer than double precision) to a double in memory. This is
4384 essential to ensure correct rounding behaviour.
4386 1998-12-04 Tom Tromey <tromey@cygnus.com>
4388 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4391 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4392 explaining apparent divergence from JDK 1.2.
4394 1998-12-04 Per Bothner <bothner@cygnus.com>
4396 * include/no-threads.h: Remove unused parameter names.
4397 This silences a bunch of warnings.
4399 1998-12-04 Tom Tromey <tromey@cygnus.com>
4401 * include/config.h.in: Rebuilt.
4402 * acconfig.h (HAVE_CTIME_R): New symbol.
4404 1998-12-03 Tom Tromey <tromey@cygnus.com>
4406 * mauve-libjava: Added many more categories to reject.
4408 Changes to follow JDK1.2 spec:
4409 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4410 setErr, setIn, setOut): No need to be `final'.
4411 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4412 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4413 * java/lang/Object.java (wait): `nanos' argument is an int.
4414 * java/lang/VirtualMachineError.java: Class is abstract.
4415 * java/lang/ThreadDeath.java: Made constructors public.
4416 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4419 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4421 * java/text/DateFormatSymbols.java (getAmPmStrings,
4422 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4424 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4426 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4427 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4428 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4431 * java/lang/IllegalThreadStateException.java
4432 (IllegalThreadStateException): Changed extending class to match spec.
4434 * java/lang/NumberFormatException.java
4435 (java/lang/NumberFormatException): Changed extending class to match
4438 * java/util/Observer.java (Observer): Changed sig to match JCL.
4440 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4442 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4443 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4444 signature to match JDK 1.1 and 1.2.
4446 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4448 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4449 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4450 * Makefile.in, configure: Rebuilt.
4452 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4455 1998-12-02 Tom Tromey <tromey@cygnus.com>
4457 * mauve-libjava: New file.
4459 The remaining `-W -Wall' fixes:
4460 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4462 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4464 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4466 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4468 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4470 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4472 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4474 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4476 * java/lang/mprec.c (Balloc): Removed unused variable.
4477 (mult): Added parentheses per gcc suggestion.
4478 (pow5mult): Likewise.
4483 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4484 suggestion. Added cast to `int' to avoid signed/unsigned
4486 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4488 (IsAssignableFrom): Likewise.
4489 (_Jv_JNI_GetObjectField): Likewise.
4490 (_Jv_JNI_GetByteField): Likewise.
4491 (_Jv_JNI_GetShortField): Likewise.
4492 (_Jv_JNI_GetIntField): Likewise.
4493 (_Jv_JNI_GetLongField): Likewise.
4494 (_Jv_JNI_GetStringLength): Likewise.
4495 (_Jv_JNI_ToReflectedField): Likewise.
4496 (_Jv_JNI_FromReflectedField): Likewise.
4497 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4499 * Makefile.in: Rebuilt.
4500 * Makefile.am (AM_CFLAGS): Define conditionally.
4501 (WARNINGS): New macro.
4502 (AM_CXXFLAGS): Include WARNINGS.
4503 * configure: Rebuilt.
4504 * configure.in (USING_GCC): New conditional.
4506 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4508 * java/lang/Character.java: Changed classification constants to
4509 type `byte' to match JDK 1.2 docs.
4511 1998-12-01 Tom Tromey <tromey@cygnus.com>
4513 Some fixes to be `-W -Wall' clean:
4514 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4515 (_Jv_MarkArray): Likewise.
4516 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4517 (to_upper_title): Likewise.
4518 (isTitleCase): Likewise.
4519 (toTitleCase): Likewise.
4520 (getNumericValue): Likewise.
4521 (isLowerCase): Likewise.
4522 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4523 (avoids compiler warning).
4524 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4526 (getDeclaringClass): Likewise.
4527 (_Jv_LookupInterfaceMethod): Likewise.
4528 (_Jv_NewClass): Removed name of unused parameter.
4529 * exception.cc (_Jv_type_matcher): Removed unused variable.
4530 (_Jv_setup_eh_info): Removed name of unused parameter.
4531 * prims.cc (_Jv_NewArray): Always return a value.
4532 (_Jv_FindClassFromSignature): Likewise.
4533 * include/java-field.h (getNameUtf8Const): Removed name of unused
4535 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4537 (_Jv_ThreadSetPriority): Likewise.
4539 * java/lang/natString.cc (hashChars): Now static.
4541 * java/lang/FirstThread.java (FirstThread): Now final.
4543 * java/io/File.java (performMkdir, performRenameTo): Now private.
4545 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4546 if no time function defined.
4548 * configure: Rebuilt.
4549 * configure.in: Look for ctime_r, ctime.
4550 * java/util/Date.java (toString): Now native.
4551 * java/util/natDate.cc (toString): Rewrote.
4553 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4555 * Add LDFLAGS line to allow TX39 test cases to link when cross
4558 1998-11-23 Anthony Green <green@cygnus.com>
4560 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4561 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4562 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4563 include/java-array.h, include/java-assert.h, include/java-field.h,
4564 include/javaprims.h, include/jni.h, include/jvm.h,
4565 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4566 include/quick-threads.h, java/io/BufferedInputStream.java,
4567 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4568 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4569 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4570 java/io/CharArrayWriter.java,
4571 java/io/CharConversionException.java, java/io/DataInput.java,
4572 java/io/DataInputStream.java, java/io/DataOutput.java,
4573 java/io/DataOutputStream.java, java/io/EOFException.java,
4574 java/io/File.java, java/io/FileDescriptor.java,
4575 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4576 java/io/FileOutputStream.java, java/io/FileReader.java,
4577 java/io/FileWriter.java, java/io/FilenameFilter.java,
4578 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4579 java/io/FilterReader.java, java/io/FilterWriter.java,
4580 java/io/IOException.java, java/io/InputStream.java,
4581 java/io/InputStreamReader.java,
4582 java/io/InterruptedIOException.java,
4583 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4584 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4585 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4586 java/io/PipedReader.java, java/io/PipedWriter.java,
4587 java/io/PrintStream.java, java/io/PrintWriter.java,
4588 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4589 java/io/RandomAccessFile.java, java/io/Reader.java,
4590 java/io/SequenceInputStream.java, java/io/Serializable.java,
4591 java/io/StreamTokenizer.java,
4592 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4593 java/io/StringWriter.java, java/io/SyncFailedException.java,
4594 java/io/UTFDataFormatException.java,
4595 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4596 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4597 java/io/natFileDescriptorPosix.cc,
4598 java/lang/AbstractMethodError.java,
4599 java/lang/ArithmeticException.java,
4600 java/lang/ArrayIndexOutOfBoundsException.java,
4601 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4602 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4603 java/lang/Class.java, java/lang/ClassCastException.java,
4604 java/lang/ClassCircularityError.java,
4605 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4606 java/lang/ClassNotFoundException.java,
4607 java/lang/CloneNotSupportedException.java,
4608 java/lang/Cloneable.java, java/lang/Comparable.java,
4609 java/lang/Compiler.java, java/lang/Double.java,
4610 java/lang/Error.java, java/lang/Exception.java,
4611 java/lang/ExceptionInInitializerError.java,
4612 java/lang/FirstThread.java, java/lang/Float.java,
4613 java/lang/IllegalAccessError.java,
4614 java/lang/IllegalAccessException.java,
4615 java/lang/IllegalArgumentException.java,
4616 java/lang/IllegalMonitorStateException.java,
4617 java/lang/IllegalStateException.java,
4618 java/lang/IllegalThreadStateException.java,
4619 java/lang/IncompatibleClassChangeError.java,
4620 java/lang/IndexOutOfBoundsException.java,
4621 java/lang/InstantiationError.java,
4622 java/lang/InstantiationException.java, java/lang/Integer.java,
4623 java/lang/InternalError.java, java/lang/InterruptedException.java,
4624 java/lang/LinkageError.java, java/lang/Long.java,
4625 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4626 java/lang/NoClassDefFoundError.java,
4627 java/lang/NoSuchFieldError.java,
4628 java/lang/NoSuchFieldException.java,
4629 java/lang/NoSuchMethodError.java,
4630 java/lang/NoSuchMethodException.java,
4631 java/lang/NullPointerException.java, java/lang/Number.java,
4632 java/lang/NumberFormatException.java, java/lang/Object.h,
4633 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4634 java/lang/Process.java, java/lang/Runnable.java,
4635 java/lang/Runtime.java, java/lang/RuntimeException.java,
4636 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4637 java/lang/Short.java, java/lang/StackOverflowError.java,
4638 java/lang/String.java, java/lang/StringBuffer.java,
4639 java/lang/StringIndexOutOfBoundsException.java,
4640 java/lang/System.java, java/lang/Thread.java,
4641 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4642 java/lang/Throwable.java, java/lang/UnknownError.java,
4643 java/lang/UnsatisfiedLinkError.java,
4644 java/lang/UnsupportedOperationException.java,
4645 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4646 java/lang/Void.java, java/lang/natCharacter.cc,
4647 java/lang/natClass.cc, java/lang/natDouble.cc,
4648 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4649 java/lang/natMath.cc, java/lang/natObject.cc,
4650 java/lang/natRuntime.cc, java/lang/natString.cc,
4651 java/lang/natSystem.cc, java/lang/natThread.cc,
4652 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4653 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4654 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4655 java/text/FieldPosition.java, java/text/Format.java,
4656 java/text/NumberFormat.java, java/text/ParseException.java,
4657 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4658 java/util/BitSet.java, java/util/Calendar.java,
4659 java/util/ConcurrentModificationException.java,
4660 java/util/Date.java, java/util/Dictionary.java,
4661 java/util/EmptyStackException.java, java/util/Enumeration.java,
4662 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4663 java/util/Locale.java, java/util/MissingResourceException.java,
4664 java/util/NoSuchElementException.java, java/util/Observable.java,
4665 java/util/Observer.java, java/util/Properties.java,
4666 java/util/Random.java, java/util/SimpleTimeZone.java,
4667 java/util/Stack.java, java/util/StringTokenizer.java,
4668 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4669 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4672 * exception.cc: Include eh-common.h instead of duplicating
4675 1998-11-23 Tom Tromey <tromey@cygnus.com>
4677 * configure.host: Don't add `-O2' to libjava_flags. Only add
4678 `-Os' to libjava_flags once.
4680 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4682 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4683 * Makefile.in: likewise
4684 * acconfig.h: add ECOS conditional for configure.h
4685 * config.h.in: likewise
4686 * configure: add test for --with-ecos
4687 * configure.in: likewise
4688 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4689 rename call to avoid name clash.
4690 * java/lang/natSystem.cc: add eCos clock support.
4691 * java/util/natGregorianCalendar.cc: add eCos support.
4693 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4695 * Makefile.am, Makefile.in, configure.host: tx39 build option
4698 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4700 * java/io/BufferedReader.java: Added more comments for clarity.
4701 (mark): Used more mnemonic name for local var extraBuffSpace.
4703 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4704 confusion with private method of same name in superclass.
4705 (skipRedundantLF): Set fields in special case to avoid infinite
4706 recursion. Check if markPos has been invalidated in special case.
4707 (readLine): Rewritten to use readLine method of superclass.
4708 (skip): Incorporated code from lineEnd.
4710 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4712 * java/io/BufferedReader.java (readLine): New method.
4713 (lineEnd): new private method.
4714 (mark): Track special case for readLine of getting '\r' at the
4721 * java/io/InputStreamReader.java (read): Return number chars skipped
4722 rather than requested.
4724 * java/lang/StringBuffer.java (append): Update count and differentiate
4725 between field and local variable.
4727 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4728 seconds. Deal with military style time.
4729 (parse): Consistently treat all timezones in minutes until final
4730 calculation. Flag as non-local timezone. Return value in milliseconds.
4731 (setTime): Adjust for year offset from 1900.
4732 (UTC): Adjust for year offset from 1900.
4734 1998-11-17 Tom Tromey <tromey@cygnus.com>
4736 * configure: Rebuilt.
4737 * configure.in: Switch on host, not target.
4739 * Makefile.in: Rebuilt.
4740 * Makefile.am (GCJ_no): New macro.
4741 (GCJ): Use @CANADIAN@.
4742 (GCJH_no): New macro
4743 (GCJH_canadian): New macro.
4744 (GCJH): Use @CANADIAN@.
4745 (ZIP_no): New macro.
4746 (ZIP_canadian): New macro.
4747 (ZIP): Use @CANADIAN@.
4748 * aclocal.m4, configure: Rebuilt.
4749 * configure.in (CANADIAN): Compute and subst.
4751 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4753 * java/io/FileDescriptor.java (finalize): Only close file
4754 descriptor if valid.
4756 1998-11-17 Tom Tromey <tromey@cygnus.com>
4758 * prims.cc (_Jv_InitRuntime): Removed.
4760 1998-11-16 Tom Tromey <tromey@cygnus.com>
4762 * java/io/FileOutputStream.java (close): Only close file
4763 descriptor if valid.
4764 (finalize): New method.
4766 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4767 (_Jv_NewPrimArray): Likewise.
4768 * boehm.cc (_Jv_RegisterFinalizer): Use
4769 GC_REGISTER_FINALIZER_NO_ORDER.
4770 (GC_GENERIC_MALLOC): New define.
4771 (_Jv_AllocObj): Use it.
4772 (_Jv_AllocArray): Likewise.
4773 (_Jv_AllocBytes): Likewise.
4774 (_Jv_MarkObj): Just return if vtbl not set.
4775 (_Jv_MarkArray): Likewise.
4776 (MAYBE_MARK): New macro; use everywhere.
4777 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4779 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4781 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4782 to a jlong before calculation to prevent overflow.
4784 1998-11-16 Tom Tromey <tromey@cygnus.com>
4786 * Makefile.in: Rebuilt.
4787 * Makefile.am (nat_headers): Fixed typo.
4789 1998-11-15 Tom Tromey <tromey@cygnus.com>
4791 * java/lang/Class.h (Class::getName): Removed definition.
4792 * Makefile.in: Rebuilt.
4793 * Makefile.am (nat_headers): Added InstantiationException.h,
4794 NoSuchMethodException.h.
4795 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4796 (init_name): New global.
4797 (hackRunInitializers): Use clinit_name.
4798 Include InstantiationException.h, NoSuchMethodException.h.
4799 (newInstance): Do some error checking (but not all). Call
4801 (forName): Throw exception if class not found.
4802 (getName): New method.
4803 (forName): Transform class name from external format to internal
4804 format before lookup.
4806 1998-11-15 Anthony Green <green@cygnus.com>
4808 * java/lang/Class.h (Class::forName): Method is static.
4810 * java/lang/natClass.cc (newInstance): Add simple implementation.
4813 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4815 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4816 int), for compatibility with jc1.
4818 1998-11-14 Tom Tromey <tromey@cygnus.com>
4820 * include/config.h.in: Rebuilt.
4821 * acconfig.h (LINUX_THREADS): New define.
4822 * configure: Rebuilt.
4823 * configure.in: Define LINUX_THREADS if using POSIX threads on
4824 Linux. Look for pthread_mutexattr_setkind_np function.
4825 * posix-threads.cc (throw_cleanup): New function.
4826 (really_start): Push cleanup function.
4827 (_Jv_ThreadCancel): New function.
4828 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4829 (_Jv_ThreadInitData): Set `exception' field in new structure.
4830 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4832 (_Jv_ThreadWait): New function.
4833 (_Jv_InitThreads): Initialize daemon globals.
4834 (FLAG_DAEMON): New macro.
4835 (really_start): Notify daemon_cond when non-daemon thread exits.
4836 Include <java/lang/System.h>.
4837 (struct starter): `object' field now a thread.
4838 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4839 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4840 (_Jv_ThreadWait): Removed definition.
4841 (_Jv_Thread_t): Added `exception' field.
4842 (_Jv_ThreadCancel): Removed definition.
4844 1998-11-13 Tom Tromey <tromey@cygnus.com>
4846 * Makefile.in: Rebuilt.
4847 * Makefile.am (libjava.zip): Compute javac before changing
4850 * Makefile.in: Rebuilt.
4851 * Makefile.am (libjava.zip): Include directory entries.
4853 * Makefile.in: Rebuilt.
4854 * Makefile.am (expanded): New macro.
4857 1998-11-12 Tom Tromey <tromey@cygnus.com>
4859 * prims.cc (clone): New function.
4860 * include/java-array.h (__JArray::clone): Removed definition.
4862 * java/lang/natObject.cc (clone): Don't assert that class is not
4863 an array; array's `clone' method just calls this one.
4865 * Makefile.in: Rebuilt.
4866 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4867 Now creates zip file. Changed all users.
4869 (data_DATA): New macro.
4871 1998-11-11 Tom Tromey <tromey@cygnus.com>
4873 * configure: Rebuilt.
4874 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4876 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4878 * java/io/InputStream.java (reset): Add msg to thrown exception.
4880 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4882 * java/io/LineNumberInputStream.java: Rewritten.
4884 * java/io/StringBufferInputStream.java: Removed extraneous import.
4886 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4888 * java/io/StringBufferInputStream.java: Rewritten.
4890 * java/util/Date.java (parseMonth): Optimize.
4891 (parseDayOfWeek): Created.
4892 (parse): Optimize to use parseDayOfWeek.
4894 1998-11-11 Tom Tromey <tromey@cygnus.com>
4896 * java/lang/StringBuffer.java (append): Handle case where STR is
4899 * include/javaprims.h: Regenerated class declarations.
4901 * configure: Rebuilt.
4902 * configure.in: Added --enable-gcj-classes,
4903 --enable-single-compilation, --enable-source-compilation flags.
4904 * Makefile.in: Rebuilt.
4905 * Makefile.am (java_io_files): New macro.
4906 (java_lang_files): Likewise.
4907 (java_text_files): Likewise.
4908 (java_util_files): Likewise.
4909 (java_files): Use new macros.
4910 (java-io.o): New target.
4911 (java-lang.o): Likewise.
4912 (java-text.o): Likewise.
4913 (java-util.o): Likewise.
4914 (src_io_files): New macro.
4915 (src_lang_files): Likewise.
4916 (src_text_files): Likewise.
4917 (src_util_files): Likewise.
4918 (class_io_files): New macro.
4919 (class_lang_files): Likewise.
4920 (class_text_files): Likewise.
4921 (class_util_files): Likewise.
4922 (class_files): Use new macros.
4923 (javao_files): Define conditionally.
4924 (.java.o): New target.
4925 ($(javao_files)): New target.
4927 (GCJH): Added $(EXEEXT).
4928 (CLASSPATH_ENV): Removed.
4929 (GCJCOMPILE): New macro.
4931 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4933 * java/util/Date.java (parse): Written from scratch.
4935 1998-11-11 Tom Tromey <tromey@cygnus.com>
4937 * java/lang/Throwable.java (toString): Correct sense of test for
4938 determining when to include detail message in result.
4940 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4943 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4945 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4947 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4948 (_Jv_RegisterClass): Use it.
4949 * include/jvm.h (_Jv_RegisterClasses): Declare.
4950 * java/lang/natObject.cc (init): Removed.
4951 (sync_init): Never call _Jv_InitializeSyncMutex.
4952 (_Jv_InitializeSyncMutex): Don't set `init'.
4953 * prims.cc (JvRunMain): Don't run init functions.
4955 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4957 * java/lang/natClass.cc (initializeClass): Set state before
4958 resolving constants.
4960 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4961 (STATE_RESOLVED): New macro.
4962 (initializeClass): Call resolveConstants.
4963 (hackRunInitializers): Don't call resolveConstants.
4964 (_Jv_FindArrayClass): Move short-circuit return for primitive
4965 element types earlier in function.
4967 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4969 * prims.cc (no_memory): New global.
4970 (_Jv_makeUtf8Const): Throw no_memory.
4971 (_Jv_AllocObject): Likewise.
4972 (_Jv_NewObjectArray): Likewise.
4973 (_Jv_NewPrimArray): Likewise.
4974 (JvRunMain): Initialize no_memory.
4976 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4978 * java/io/FileInputStream.java: Corrected date comment.
4979 * java/io/SequenceInputStream.java: Rewritten.
4981 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4983 * java/lang/FirstThread.java (die): New method.
4984 * java/lang/natFirstThread.cc (die): Removed.
4986 (run): Use `DIE', not `die'.
4988 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4990 * java/io/CharArrayReader.java (read): Move check into synchronized
4991 block to prevent a close while in progress.
4994 * java/io/PushbackReader.java (read): Ditto.
4997 * java/io/StringReader.java (mark): Ditto.
5002 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
5004 * java/io/PipedInputStream.java: Updated status.
5005 (connect): Added code to prevent infinite recursion and to
5006 differentiate exception causes.
5007 (read): Added code to differentiate exception causes.
5008 (receive): Made exception pass string with the cause.
5010 * java/io/PipedOutputStream.java: Updated status.
5011 (connect): Added code to call connect at the other end of the pipe.
5013 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
5015 * java/io/PipedInputStream.java (connect): Throw exception if
5016 already connected to the same output stream.
5017 (read): Do bounds checking first.
5019 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
5021 * java/io/PipedInputStream.java: Added private boolean outClosed.
5022 (available): Removed check if output stream is open.
5023 (close): Mark the buffer as empty so available returns 0.
5024 (read): Check if the output stream was closed and then return EOF
5025 when the buffer is empty.
5026 (receive): Mark the output stream as closed when passed a -1.
5028 * java/io/PipedOutputStream.java (close): Notify the input stream
5029 that there's no more data coming.
5030 (connect): Added a FIXME comment to note more coordination needed
5031 with PipedInputStream.
5032 (flush): Added a FIXME comment to mark what this method might do
5035 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
5037 * java/io/PipedInputStream.java: Rewritten.
5039 1998-10-30 Tom Tromey <tromey@cygnus.com>
5041 * java/lang/Throwable.java: Rewrote from scratch.
5043 * java/lang/Class.h (Class): Don't mention newMultiArray.
5044 * prims.cc (newMultiArray): Removed.
5045 (_Jv_NewMultiArray): Removed.
5046 (newArray): Removed.
5047 (new_multi_array): New function.
5048 (_Jv_NewMultiArray): Rewrote from scratch.
5050 * include/javaprims.h: Regenerated class declarations.
5051 * classes.pl (scan): Don't declare PrimClass.
5052 * include/cni.h (JvPrimClass): Use new names for classes.
5053 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
5054 added _Jv_PrimClass.
5055 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
5056 (_Jv_initPrimClass): Removed.
5057 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
5058 (_Jv_AllocObject): Added comment.
5059 (_Jv_NewObjectArray): Likewise.
5060 (_Jv_NewPrimArray): Likewise.
5062 1998-10-29 Tom Tromey <tromey@cygnus.com>
5064 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
5065 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
5067 * java/lang/Class.h (Class): Added `dtable_method_count' field.
5069 * java/lang/natObject.cc (init): New global.
5070 (sync_init): Call _Jv_InitializeSyncMutex if required.
5072 * Makefile.in: Rebuilt.
5073 * Makefile.am (nat_headers): Added ClassLoader.h.
5074 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
5075 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
5076 internalAddClass, lookupArray no longer friends.
5077 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
5078 _Jv_FindArrayClass now friends.
5079 * java/lang/natClass.cc (HASH_LEN): New macro.
5080 (HASH_UTF): Likewise.
5081 (loaded_classes): New global.
5082 (_Jv_FindClass): New function.
5083 (ClassClass): New define.
5084 (_Jv_FindClassInCache): New function.
5085 (_Jv_RegisterClass): Likewise.
5086 (_Jv_NewClass): Likewise.
5088 (ObjectClass): New define.
5089 (CloneableClass): New define.
5090 * prims.cc (_Jv_FindClass): Removed.
5091 (simpleLookupClass): Removed.
5092 (insertClass): Removed.
5093 (CLASSHASHSZ): Removed.
5094 (classPool): Removed.
5095 (_Jv_RegisterClass): Removed.
5096 (internalAddClass): Removed.
5097 (ClassClass): Removed.
5098 (RuntimeClass): Removed.
5099 (lookupArray): Removed.
5100 (CloneableClass): Removed.
5101 (CLASSMAXSIG): Removed.
5102 Rearranged file to group related functions together.
5103 (_Jv_IsInstanceOf): Moved to natClass.cc.
5104 (abort_final): Removed.
5105 Removed some unused includes.
5106 (classFromSig): Removed.
5107 (_Jv_FindClassFromSignature): New function.
5108 (_Jv_initPrimClass): Renamed.
5109 (getClass): Removed.
5111 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
5113 * java/io/FileDescriptor.java (finalize): Throws IOException
5114 instead of Throwable.
5116 * java/io/FileInputStream.java: Rewritten.
5118 * java/io/StreamTokenizer.java (nextToken): Unread newline character
5119 at the end of a comment.
5121 1998-10-29 Tom Tromey <tromey@cygnus.com>
5123 * include/javaprims.h: Regenerated class declarations.
5124 * classes.pl (scan): Don't special-case ClassLoader.
5126 * prims.cc (processClass): Removed.
5127 (_Jv_InitClass): Removed.
5128 Removed all CSTATE_ macros.
5129 (resolveConstants): Removed.
5131 (_Jv_NewMultiArray): Cleaned up.
5132 * Makefile.in: Rebuilt.
5133 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
5134 * java/lang/Class.h (Class): Declare new methods. processClass no
5136 * java/lang/Class.java (hackTrampoline): New method.
5137 (initializeClass): Declare.
5138 (hackRunInitializers): Declare.
5139 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
5140 (initializeClass): New method.
5141 (hackRunInitializers): New method.
5142 (init_name, void_signature): Moved from prims.cc.
5143 (_Jv_InitClass): New function.
5144 (isAssignableFrom): Don't call processClass.
5145 (STATE_NOTHING): New macro.
5146 (resolveConstants): New function.
5148 (ErrorClass): New define.
5150 * java/lang/Class.java (getClassLoader): Declare.
5151 * java/lang/ClassLoader.java: Rewrote from scratch.
5153 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
5154 AbstractMethodError.h, IllegalAccessError.h,
5155 NoClassDefFoundError.h.
5156 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
5157 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
5158 longer static. Changed return type.
5159 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
5160 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
5161 * prims.cc (findMethodLocal): Removed.
5162 (processClass): Use _Jv_GetMethodLocal.
5164 1998-10-28 Tom Tromey <tromey@cygnus.com>
5166 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
5167 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
5169 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
5170 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
5172 * include/jni.h: Added copyright header.
5173 * include/javaprims.h: Added copyright header.
5174 * include/java-field.h: Added copyright header.
5175 * include/java-array.h: Added copyright header.
5176 * include/cni.h: Added copyright header.
5178 * include/javaprims.h: Regenerated class declarations using
5179 classes.pl; now they are complete.
5180 * classes.pl: New file.
5182 * java/lang/natMath.cc: Include <config.h>.
5183 * java/lang/reflect/natField.cc: Include <config.h>.
5184 * java/util/NativeUtil.java: Removed.
5185 * Makefile.in: Rebuilt.
5186 * Makefile.am (nat_headers): Added Math.h.
5187 * java/lang/Math.h: Removed.
5188 * java/util/natGregorianCalendar.cc: Added copyright header.
5190 * java/lang/natFloat.cc: Added copyright header.
5191 * java/lang/Byte.java: Added copyright header.
5192 * java/lang/Void.java: Added copyright header.
5193 * java/lang/Short.java: Added copyright header.
5195 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5197 * include/javaprims.h (java::io): Added bunch of missing classes.
5199 * java/io/DataInputStream.java (readLine): Added a special case
5200 for handling BufferedInputStream data to reduce the likelihood
5201 of a pushback error.
5202 (skipBytes): Added code to handle negative number of skip bytes.
5204 * java/io/StreamTokenizer.java: Rewritten.
5206 1998-10-28 Tom Tromey <tromey@cygnus.com>
5208 * java/util/natGregorianCalendar.cc (computeFields): Call
5209 getRawOffset as a method.
5211 * include/javaprims.h (java::io): Added FilterOutputStream.
5212 * Makefile.in: Rebuilt.
5213 * Makefile.am (nat_headers): Added PrintStream.h,
5214 FilterOutputStream.h.
5215 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5217 (die): New function.
5218 (run): Die if `main' not found, is not public, or is not static.
5220 * boehm.cc (_Jv_MarkObj): Use new field names.
5221 * include/java-field.h (JvGetFirstInstanceField): Use new field
5223 (JvNumInstanceFields): Likewise.
5224 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5225 (getInterfaces): Likewise.
5226 * prims.cc (CLASS_CONSTANTS): Removed.
5227 (CLASS_CONST_SIZE): Likewise.
5228 (CLASS_CONST_TAG): Likewise.
5229 (CLASS_CONST_DATA): Likewise.
5230 (CLASS_CONST_UTF8): Likewise.
5231 (WORD2UTF): Likewise.
5232 (CLASS_CLASS): Likewise.
5233 (CLASS_PRIM_SIG): Likewise.
5234 (CLASS_ARRAY_CACHE): Likewise.
5235 (HASH_CHARS): Likewise.
5236 (hashClassName): Likewise.
5237 Many changes to use new field names.
5238 * java/lang/Class.h (Class): Renamed fields to track compiler.
5240 1998-10-27 Tom Tromey <tromey@cygnus.com>
5242 * java/lang/natClass.cc: Use #pragma implementation.
5243 (getComponentType): Moved into header.
5244 (getModifiers): Likewise.
5245 (getName): Likewise.
5246 (getSuperclass): Likewise.
5247 (isArray): Likewise.
5248 (isPrimitive): Likewise.
5249 * include/jvm.h (_Jv_FindClass): Declare.
5250 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5251 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5252 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5253 * java/lang/Class.h: Rewrote from scratch.
5254 * prims.cc: Many changes to work with new Class.h.
5255 * include/java-field.h (CLASS_FIELDS): Removed.
5256 (CLASS_SFIELDS): Likewise.
5257 (CLASS_IFIELDS): Likewise.
5258 (CLASS_NFIELDS): Likewise.
5259 (CLASS_NIFIELDS): Likewise.
5260 (CLASS_NSFIELDS): Likewise.
5261 (CLASS_FSIZE): Likewise.
5262 (JvGetFirstInstanceField): Rewrote.
5263 (JvNumInstanceFields): Likewise.
5265 * java/lang/Object.h: Added copyright comment.
5267 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5269 * java/text: New package directory.
5270 * java/text/FieldPosition.java: New class.
5271 * java/text/ParsePosition.java: New class.
5272 * java/text/ParseException.java: New Exception class.
5273 * java/text/Format.java: New class.
5274 * java/text/NumberFormat.java: New (empty placeholder) class.
5275 * java/text/DateFormatSymbols.java: New class (no Locales support).
5276 * java/text/DateFormat.java: New Format class (incomplete).
5277 * java/text/SimpleDateFormat.java: New DateFormat class.
5279 * include/javaprims.h (java::test): Added new package and classes.
5280 * java/util/Calendar.java (clone): New method.
5281 * java/util/Date.java (toString): Added non-native implementation.
5282 (parse): Made public instead of synchronized.
5283 * java/util/natDate.cc (toString): Removed.
5284 * java/util/natGregorianCalendar.cc (computeFields):
5285 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5287 1998-10-27 Tom Tromey <tromey@cygnus.com>
5289 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5291 * prims.cc (lookupArray): Added explanatory comment.
5292 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5293 class. Mark the class of each object.
5294 (_Jv_MarkArray): Mark the object's class.
5296 * configure: Rebuilt.
5297 * configure.in: Create java-gc.h.
5298 * include/boehm-gc.h: New file.
5299 * include/no-gc.h: New file.
5300 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5302 * java/lang/Object.h: Include java-gc.h.
5303 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5304 friends, if defined.
5305 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5307 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5309 1998-10-26 Tom Tromey <tromey@cygnus.com>
5311 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5312 paragraph separators, not numbers.
5314 * java/io/Writer.java (write): Removed write(char) to avoid
5316 * java/util/Properties.java: Rewrote from scratch.
5317 * include/javaprims.h (java::io): Added PrintWriter,
5318 BufferedWriter, PushbackReader.
5320 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5322 * java/lang/System.java: exit() is a static method.
5324 1998-10-26 Tom Tromey <tromey@cygnus.com>
5326 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5328 (_Jv_NewStringUtf8Const): Likewise.
5329 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5330 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5332 * java/lang/Object.h (Object): Add mark_array as friend function.
5333 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5334 _Jv_AllocBytes, to ensure that header is marked.
5335 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5337 (mark_array): Push sync_info field for array.
5339 1998-10-24 Tom Tromey <tromey@cygnus.com>
5341 * java/lang/String.java (String): Updated for StringBuffer
5343 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5345 * java/lang/StringBuffer.java: Renamed fields to conform to
5346 serialization spec: buffer->value, next->count, copy->shared.
5348 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5350 * java/util/TimeZone.java: New class.
5351 * java/util/SimpleTimeZone.java: New class.
5352 * java/util/Locale.java: New file.
5353 * java/util/Calendar.java: Make almost complete.
5354 * java/util/GregorianCalendar.java
5355 * java/util/natGregorianCalendar.cc: New file.
5356 * java/util/Date.java: Re-written from scratch.
5357 * java/util/natDate.cc (setTime): Removed - no longer native.
5358 * include/javaprims.h (java::util): Add new classes.
5359 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5360 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5362 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5364 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5365 returning it as a jint.
5367 1998-10-23 Tom Tromey <tromey@cygnus.com>
5369 * prims.cc (arg_vec, main_group, main_thread): New globals.
5370 (JvRunMain): Use them.
5372 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5374 * java/io/DataInputStream.java: Rewritten.
5376 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5377 tertiary bytes with 0x80 per spec.
5379 1998-10-23 Tom Tromey <tromey@cygnus.com>
5381 * java/lang/String.java (init): Changed name of `copy' argument.
5382 * java/lang/natString.cc (init): Inverted sense of `copy'
5385 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5386 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5387 * boehm.cc (ObjectClass): New define.
5388 (ClassClass): Likewise.
5389 (mark_obj): Special-case Object and Class.
5391 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5393 * java/util/BitSet.java: Rewrote from scratch.
5395 * prims.cc (lookupArray): Removed useless cast.
5397 * java/lang/natObject.cc: Use `#pragma implementation'.
5399 * java/lang/String.java (init): Added `copy' argument.
5400 (String): Look in StringBuffer to find char array.
5401 * java/lang/natString.cc (init): Added `copy' argument.
5402 * java/lang/StringBuffer.java: Rewrote from scratch.
5404 * java/lang/Compiler.java: Rewrote from scratch.
5405 * java/lang/Throwable.java: Don't use NativeLang.
5406 * include/javaprims.h (java::lang): Don't mention NativeLang.
5407 * java/lang/Process.java: Rewrote from scratch.
5408 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5410 (currentClassLoader): Likewise.
5411 (currentLoadedClass): Likewise.
5412 * java/lang/natClass.cc (getClassLoader): Commented out.
5413 * java/lang/Class.java (getClassLoader): Commented out.
5414 * java/lang/Compiler.java: Removed.
5415 * java/lang/NativeLang.java: Removed.
5417 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5418 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5419 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5420 (_Jv_hashUtf8String): Now static.
5421 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5422 name of return type.
5424 * java/lang/Class.h (Class): Declare checkMemberAccess.
5425 * Makefile.in: Rebuilt.
5426 * Makefile.am (nat_headers): Added Member.h.
5427 * java/lang/natClass.cc: Include Member.h.
5428 (getDeclaredClasses): Call checkMemberAccess.
5429 * java/lang/Class.java (checkMemberAccess): Call
5430 SecurityManager.checkMemberAccess.
5432 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5434 * java/lang/SecurityManager.java: Rewritten.
5436 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5438 * java/applet/Applet.java, java/applet/AppletContext.java,
5439 java/applet/AppletStub.java, java/applet/AudioClip.java,
5440 java/awt/AWTError.java, java/awt/AWTException.java,
5441 java/awt/BorderLayout.java, java/awt/Button.java,
5442 java/awt/Canvas.java, java/awt/CardLayout.java,
5443 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5444 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5445 java/awt/Color.java, java/awt/Component.java,
5446 java/awt/Container.java, java/awt/Dialog.java,
5447 java/awt/Dimension.java, java/awt/Event.java,
5448 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5449 java/awt/Font.java, java/awt/FontMetrics.java,
5450 java/awt/Frame.java, java/awt/Graphics.java,
5451 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5452 java/awt/GridLayout.java, java/awt/Image.java,
5453 java/awt/Insets.java, java/awt/Label.java,
5454 java/awt/LayoutManager.java, java/awt/List.java,
5455 java/awt/MediaTracker.java, java/awt/Menu.java,
5456 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5457 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5458 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5459 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5460 java/awt/TextArea.java, java/awt/TextComponent.java,
5461 java/awt/TextField.java, java/awt/Toolkit.java,
5462 java/awt/Window.java, java/awt/image/ColorModel.java,
5463 java/awt/image/CropImageFilter.java,
5464 java/awt/image/DirectColorModel.java,
5465 java/awt/image/FilteredImageSource.java,
5466 java/awt/image/ImageConsumer.java,
5467 java/awt/image/ImageFilter.java,
5468 java/awt/image/ImageObserver.java,
5469 java/awt/image/ImageProducer.java,
5470 java/awt/image/IndexColorModel.java,
5471 java/awt/image/MemoryImageSource.java,
5472 java/awt/image/PixelGrabber.java,
5473 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5474 java/awt/peer/CanvasPeer.java,
5475 java/awt/peer/CheckboxMenuItemPeer.java,
5476 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5477 java/awt/peer/ComponentPeer.java,
5478 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5479 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5480 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5481 java/awt/peer/MenuBarPeer.java,
5482 java/awt/peer/MenuComponentPeer.java,
5483 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5484 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5485 java/awt/peer/TextAreaPeer.java,
5486 java/awt/peer/TextComponentPeer.java,
5487 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5488 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5489 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5490 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5491 java/net/MalformedURLException.java, java/net/NativeNet.java,
5492 java/net/ProtocolException.java, java/net/ServerSocket.java,
5493 java/net/Socket.java, java/net/SocketException.java,
5494 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5495 java/net/URL.java, java/net/URLConnection.java,
5496 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5497 java/net/URLStreamHandlerFactory.java,
5498 java/net/UnknownHostException.java,
5499 java/net/UnknownServiceException.java: Removed.
5501 1998-10-22 Tom Tromey <tromey@cygnus.com>
5503 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5504 finalizer is not Object.finalize.
5505 (internalAddClass): Don't set `final' member of class.
5506 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5507 other places that know about finalize() location.
5508 * java/lang/Class.h (Class): Removed `final' field.
5510 * aclocal.m4, configure: Rebuilt.
5511 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5512 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5514 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5515 * Makefile.in: Rebuilt.
5516 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5518 1998-10-21 Tom Tromey <tromey@cygnus.com>
5520 * java/lang/Object.java (finalize): Move to be first method in
5523 * configure: Rebuilt.
5524 * configure.in (GCINCS): Include contents of boehm-cflags file.
5526 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5528 * java/lang/ArrayIndexOutOfBoundsException.java
5529 (ArrayIndexOutOfBoundsException): Fixed string literal.
5530 * java/lang/StringIndexOutOfBoundsException.java
5531 (StringIndexOutOfBoundsException): Fixed string literal.
5533 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5535 * natFileDescriptorEcos.cc added.
5536 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5538 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5540 * acconfig.h: test for __int32_t and __uint32_t added.
5541 * include/config.h.in: test for __int32_t and __uint32_t added.
5542 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5543 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5544 * configure.in: test for __int32_t and __uint32_t added.
5545 * configure: test for __int32_t and __uint32_t added.
5547 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5549 * configure.in: Test for --enable ecos and link
5550 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5551 natFileDescriptorPosix.cc
5553 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5555 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5557 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5560 * java/io/CharArrayReader.java (close): Synchronize on lock
5561 object per Reader contract.
5562 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5563 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5564 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5565 Ensure that arg passed in isn't negative.
5567 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5568 constructing the superclass.
5570 * java/io/PushbackReader.java (close): Synchronize on lock
5571 object per Reader contract.
5572 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5573 (ready): Synchronize on lock obj. Throw IOException if reader
5575 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5576 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5577 Ensure that arg passed in isn't negative.
5578 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5580 * java/io/StringReader.java: Created.
5582 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5584 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5586 (read): Removed synchronized modifier to match JCL.
5587 (reset): Removed synchronized modifier to match JCL.
5588 (skip): Removed synchronized modifier to match JCL.
5590 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5592 * java/io/PushbackReader.java (PushbackReader): Made
5593 constructors public.
5595 1998-10-17 Tom Tromey <tromey@cygnus.com>
5597 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5598 constructors public.
5600 1998-10-16 Anthony Green <green@cygnus.com>
5602 * aclocal.m4, configure: Rebuilt.
5603 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5605 * configure.host: Rewrote.
5606 * Makefile.in: Rebuilt.
5607 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5608 (AM_CFLAGS): New macro.
5609 ($(c_files)): Use COMPILE macro.
5610 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5611 automake problem(s).
5613 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5615 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5617 * java/io/CharArrayReader.java: Created.
5619 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5621 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5622 size check to allow 0 per JCL.
5624 * java/io/PushbackReader.java: Created.
5626 1998-10-16 Tom Tromey <tromey@cygnus.com>
5628 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5629 <sys/time.h> includes.
5630 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5631 * include/no-threads.h: Conditionalize <unistd.h> include on
5634 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5636 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5639 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5641 * java/io/FilterReader.java: Created.
5643 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5645 * java/io/PushbackInputStream.java: Rewritten.
5647 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5648 that size passed to constructor is legal.
5649 (read): Check that args passed in are legal.
5650 (skip): Rewritten to get rid of the temporary buffer.
5651 (refill): Added marklimit check to grow the buffer.
5653 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5655 (bytesAvail): Removed.
5656 (read): Changed bytesAvail to Math.min.
5657 (skip): Changed bytesAvail to Math.min.
5659 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5660 from the throws clause.
5661 (skip): Rewritten to use a temporary buffer.
5663 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5665 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5668 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5670 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5671 to write the double one word at a time.
5673 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5675 * java/io/BufferedInputStream.java: Rewritten.
5677 1998-10-12 Tom Tromey <tromey@cygnus.com>
5679 * jni.cc: Include config.h and stddef.h.
5681 * java/lang/Class.h (_dispatchTable): Removed again.
5682 Removed all ACC_* defines again.
5684 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5686 * Makefile.am (nat_files): Add netField.o.
5687 (libjava_a_SOURCES): Add jni.cc.
5688 (java/lang/reflect/Field.h): New rule.
5689 * Makefile.in: Re-generated.
5690 * include/javaprims.h: Add some extra class and typedefs.
5691 * include/jni.h: New file.
5694 * include/java-field.h: New file.
5695 * include/jvm.h: #include <java-field.h>.
5696 * boehm.cc: #include <java-field.h>.
5697 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5698 * java/lang/reflect/Member.java: New class.
5699 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5700 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5702 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5704 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5705 testsuite/Makefile.in: Rebuilt.
5706 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5707 * configure.host: Created.
5709 1998-10-10 Tom Tromey <tromey@cygnus.com>
5711 * java/lang/natObject.cc (sync_init): Always allocate a new
5714 1998-10-09 Tom Tromey <tromey@cygnus.com>
5716 * java/io/ByteArrayInputStream.java (mark): Renamed from
5719 * java/io/FileOutputStream.java (finalize): Removed.
5720 * java/io/FileDescriptor.java (finalize): New method.
5722 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5724 * ByteArrayInputStream.java: Corrected status comment.
5726 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5728 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5730 1998-10-08 Tom Tromey <tromey@cygnus.com>
5732 * prims.cc (lookupArray): Use static array to initialize list of
5735 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5737 * prims.cc (lookupArray): Initialize the msize for new
5740 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5742 * configure: Rebuilt.
5743 * configure.in: Check for fsync and sleep.
5744 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5746 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5747 HAVE_SLEEP. Include config.h.
5749 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5750 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5753 1998-10-08 Tom Tromey <tromey@cygnus.com>
5755 * java/io/natFile.cc: Don't include SecurityManager.h.
5756 (performList): Renamed.
5757 (performMkdir): Likewise.
5758 (performRenameTo): Likewise.
5759 (performDelete): Likewise.
5761 * java/io/File.java (performDelete): Renamed from natDelete.
5762 (list): Now written in Java.
5763 (performList): New method.
5764 (performMkdir): New method.
5765 (mkdir): Now written in Java.
5766 (performRenameTo): New method.
5767 (renameTo): Now written in Java.
5769 1998-10-06 Tom Tromey <tromey@cygnus.com>
5771 * Makefile.in: Rebuilt.
5772 * Makefile.am (ETAGS_ARGS): New macro.
5773 (TAGS_DEPENDENCIES): Likewise.
5775 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5777 * Makefile.in: Rebuilt.
5778 * Makefile.am: Use -classpath option with javac.
5780 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5782 * java/io/FileOutputStream.java (finalize): Call
5785 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5787 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5789 * java/lang/mprec.c: Ditto.
5791 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5794 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5796 * java/io/InputStream.java (skip): Make local var i a long.
5798 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5800 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5801 * prims.cc (lookupArray): Use memcpy, not memmove.
5802 * include/config.h.in: Rebuilt.
5803 * acconfig.h (HAVE_MEMCPY): Added.
5804 * configure: Rebuilt.
5805 * configure.in: Check for memcpy again.
5807 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5808 String.compareTo, not ==.
5810 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5811 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5812 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5813 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5814 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5815 into new array's dtable.
5816 (_Jv_AllocObject): Use _Jv_DispatchTable.
5817 (_Jv_NewPrimArray): Likewise.
5818 (_Jv_NewObjectArray): Likewise.
5820 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5822 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5823 offending index value.
5824 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5826 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5827 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5829 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5831 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5833 * java/io/OutputStream.java (write): Use off and len parameters to
5834 output partial byte array.
5836 * java/io/BufferedReader.java, java/io/FileReader.java,
5837 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5838 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5839 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5840 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5842 * include/javaprims.h (java::lang): Added
5843 ExceptionInInitializerError, IllegalStateException,
5844 NoSuchFieldException, and UnsupportedOperationException.
5846 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5848 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5851 * include/java-array.h (__JArray): Added clone method.
5852 * prims.cc (CloneableClass): New define.
5853 (lookupArray): Initialize array class to indicate that it
5854 implements Cloneable.
5856 * java/lang/Class.h: Removed all ACC_* defines.
5857 * prims.cc: Include Modifier.h.
5858 (_Jv_LookupInterfaceMethod): Use methods in
5859 java.lang.reflect.Modifier, not ACC_ defines.
5861 * java/lang/Class.h (Class): Declare getClasses,
5862 getDeclaredClasses, getDeclaringClass, getModifiers,
5863 * java/lang/Class.java: Rewrote from scratch.
5865 * include/javaprims.h (java::lang): Added reflect and
5867 * Makefile.in: Rebuilt.
5868 * Makefile.am (nat_headers): Added Modifier.h.
5870 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5873 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5875 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5876 instead of test and abort.
5878 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5879 remove compiler warning.
5881 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5883 * java/lang/natDouble.cc: zero terminate string.
5884 * strtod.c: Set errno if no digits are found in fraction.
5886 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5888 * java/lang/reflect/Modifier.java: New file.
5890 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5891 * java/lang/VerifyError.java: Rewrote from scratch.
5892 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5893 * java/lang/UnknownError.java: Rewrote from scratch.
5894 * java/lang/StackOverflowError.java: Rewrote from scratch.
5895 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5896 * java/lang/InternalError.java: Rewrote from scratch.
5897 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5898 * java/lang/ExceptionInInitializerError.java: New file.
5899 * java/lang/Error.java: Rewrote from scratch.
5900 * java/lang/ClassFormatError.java: Rewrote from scratch.
5901 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5902 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5903 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5904 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5905 * java/lang/LinkageError.java: Rewrote from scratch.
5906 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5908 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5910 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5911 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5913 * include/cni.h (JvAllocObject): Moved from prims.cc.
5915 * prims.cc (JvAllocObject): Moved to cni.h.
5916 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5917 (finalize_name): Removed.
5919 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5921 * java/lang/Class.h (Class): Added size() method.
5922 * prims.cc (_Jv_MonitorEnter): Removed.
5923 (_Jv_MonitorExit): Removed.
5924 * java/lang/Object.h (JvSyncInfo): Removed.
5925 * Makefile.in: Rebuilt.
5926 * Makefile.am (nat_headers): Added Cloneable.h,
5927 CloneNotSupportedException.h.
5928 * java/lang/Object.h: Rewrote.
5929 * java/lang/natObject.cc: Rewrote from scratch.
5930 * java/lang/Object.java: Rewrote from scratch.
5932 * java/io/natFile.cc: Conditionally include <dirent.h>.
5933 (list): If no <dirent.h>, always return NULL.
5934 * configure: Rebuilt.
5935 * configure.in: Check for dirent.h.
5937 * prims.cc (lookupArray): Don't use sprintf.
5939 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5946 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5947 name conflict with method.
5949 * include/javaprims.h (java::util): Added HashtableEntry.
5951 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5953 * java/util/Hashtable.java: Rewritten.
5955 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5957 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5961 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5964 * posix-threads.cc (_Jv_CondWait): Now returns int.
5965 * include/javaprims.h (java::lang): Added
5966 IllegalMonitorStateException.
5967 * Makefile.in: Rebuilt.
5968 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5969 * include/no-threads.h (_Jv_CondDestroy): Removed.
5970 (_Jv_MutexDestroy): Removed.
5971 (_Jv_CondWait): Now returns int.
5972 (_Jv_CondNotify): Likewise. Added mutex argument.
5973 (_Jv_CondNotifyAll): Likewise.
5974 (_Jv_MutexLock): Always succeed.
5975 (_Jv_MutexUnlock): Likewise.
5976 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5977 (_Jv_HaveMutexDestroy): Define.
5978 (_Jv_CondNotify): Now returns int. Added mutex argument.
5979 (_Jv_CondNotifyAll): Likewise.
5980 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5981 (_Jv_MutexDestroy): Removed.
5982 (_Jv_CondWait): Now returns int.
5983 (_Jv_CondNotify): Likewise. Added mutex argument.
5984 (_Jv_CondNotifyAll): Likewise.
5985 * java/lang/natObject.cc (finalize_sync_info): New function.
5986 (init_mutex): Initialize `init' and register finalizer if
5989 (init_mutex): Use it.
5991 (notifyAll): Use it.
5993 (notify): Throw IllegalMonitorStateException on failure.
5994 (notifyAll): Likewise.
5995 (wait): Likewise. Also, throw InterruptedException if
5997 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5998 InterruptedException.h, IllegalArgumentException.h.
5999 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
6001 * java/lang/natString.cc: Renamed all `JvPriv' functions.
6002 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
6003 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
6004 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
6005 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
6006 * quick-threads.cc: Renamed all `JvPriv' functions.
6007 * prims.cc: Renamed all `JvPriv' functions.
6008 * posix-threads.cc: Renamed all `JvPriv' functions.
6009 * nogc.cc: Renamed all `JvPriv' functions.
6010 * no-threads.cc: Renamed all `JvPriv' functions.
6011 * boehm.cc: Renamed all `JvPriv' functions.
6012 * include/quick-threads.h: Renamed all `JvPriv' functions.
6013 * include/posix-threads.h: Renamed all `JvPriv' functions.
6014 * include/no-threads.h: Renamed all `JvPriv' functions.
6015 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
6017 * include/no-threads.h (JvPrivCondWait): Wrote minimal
6019 (JvPrivCondNotify): Do nothing.
6020 (JvPrivCondNotifyAll): Do nothing.
6022 * prims.cc (processClass): Handle case where state is
6025 * java/lang/natFirstThread.cc: Include <stdlib.h>
6027 * configure: Rebuilt.
6028 * configure.in: Fixed sense of --enable-libjava-debug.
6030 * java/lang/natThread.cc (join): Declare `t' outside the loop so
6031 it can be used afterward by the assertion.
6033 * configure: Rebuilt.
6034 * configure.in: When cross-compiling, assume alloca.
6036 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
6037 __builtin_alloca (autoconf docs are wrong here).
6039 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
6041 (available): Use `FD_ZERO' (typo fix).
6043 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6045 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6046 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
6048 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6049 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
6052 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
6054 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
6056 * java/lang/natDouble.cc: Declare alloca safely.
6058 * configure, include/config.h.in: Rebuilt.
6059 * configure.in: Add alloca check.
6061 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
6063 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
6064 condition while calling notify.
6065 (join): Remove `curr_nt' from `nt's join list, not vice versa.
6066 (interrupt): Hold mutex for interrupt condition while calling
6069 * java/lang/natString.cc (init): Allocate and try to read `count'
6070 characters, not `count - offset' characters.
6072 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
6073 Correctly compute `count'.
6075 * java/lang/Boolean.java (getBoolean): Return false if property
6078 * java/lang/System.java (setProperties): Set prop_init.
6080 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
6082 * java/io/PrintStream.java (println): Use line.separator, not
6084 * java/lang/System.java (out, err): Make both autoflush streams.
6085 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
6087 * include/config.h.in: Rebuilt.
6088 * acconfig.h (HAVE_MEMCPY): Removed.
6089 * configure: Rebuilt.
6090 * configure.in: Never define HAVE_MEMCPY.
6092 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
6094 (_Jv_AllocString): Use JvAllocObject again.
6095 * java/lang/Class.h (thread): New field.
6096 (_Jv_AllocString): No longer a friend.
6097 * prims.cc (processClass): Removed dead code. Changed to more
6098 closely follow the Java Language Specification.
6099 (processClass): Return early if already at the right state.
6101 * prims.cc (JvNewStringUTF): Removed.
6102 * include/cni.h (JvNewStringUTF): New function.
6103 (_Jv_NewStringUTF): Declare as `extern "C"'.
6104 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
6106 * java/lang/natDouble.cc: Added copyright info and header
6107 comment. Include <stdlib.h>.
6108 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
6109 bytes as are chars in string.
6111 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
6113 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
6117 * java/lang/System.java (init_properties): Now native.
6118 * java/lang/natSystem.cc (init_properties): New method.
6119 Include java/util/Properties.h.
6121 * Makefile.in: Rebuilt.
6122 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
6123 OutputStreamWriter.h, ByteArrayInputStream.h,
6124 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
6125 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
6126 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
6127 Properties.h, Hashtable.h, Dictionary.h.
6130 * include/javaprims.h (java::io): Added Reader, Writer,
6131 InputStreamReader, OutputStreamWriter,
6132 UnsupportedEncodingException, ByteArrayInputStream,
6133 ByteArrayOutputStream, EOFException, SyncFailedException,
6134 PushbackInputStream.
6135 (java::lang): Added Cloneable.
6136 (java::util): Added NoSuchElementException, VectorEnumeration,
6137 Dictionary, HashtableEnumeration, PropertiesEnumeration.
6139 * java/io/PipedReader.java: New file.
6141 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
6143 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
6146 * java/io/io-defs.h: Removed.
6148 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
6149 (FileInputStream): Use new constructor. Can throw IOException.
6151 * java/lang/System.java (getProperty): Don't throw
6152 NullPointerException.
6154 * java/io/RandomAccessFile.java: Rewrote from scratch.
6156 * java/io/natFileDescriptor.cc: Include EOFException.h.
6158 (length): New method.
6159 (getFilePointer): New method.
6161 (available): New method.
6162 * java/io/FileDescriptor.java (SET, CUR): New constants.
6163 (seek, length, getFilePointer, read, available): New decls.
6165 * java/io/PipedWriter.java: New file.
6166 * java/io/StringWriter.java: New file.
6167 * java/io/CharArrayWriter.java: New file.
6168 * java/io/CharConversionException.java: New file.
6169 * java/io/BufferedWriter.java: New file.
6170 * java/io/FilterWriter.java: New file.
6171 * java/io/FileWriter.java: New file.
6173 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6174 OutputStreamWriter.h, NullPointerException.h,
6175 ByteArrayInputStream.h, InputStreamReader.h.
6176 (getBytes): New method.
6177 (init): Throw NullPointerException.
6178 (init): New function.
6179 * java/lang/String.java (getBytes): Added missing decl.
6180 (getBytes): New method.
6181 (String): Added byte[]-based constructors.
6182 (copyValueOf): Wrote.
6183 (init): Declare variant which takes byte array and encoding.
6184 Import java.io.UnsupportedEncodingException.
6186 * java/io/File.java: Rewrote from scratch.
6187 * java/io/natFileDescriptor.cc: Rewrote from scratch.
6188 * java/io/FileDescriptor.java: Rewrote from scratch.
6189 * java/io/FilenameFilter.java: Rewrote from scratch.
6191 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6193 * java/io/SyncFailedException.java: New file.
6194 * java/io/UTFDataFormatException.java: Rewrote from scratch.
6195 * java/io/InterruptedIOException.java: Rewrote from scratch.
6196 * java/io/FileNotFoundException.java: Rewrote from scratch.
6197 * java/io/EOFException.java: Rewrote from scratch.
6198 * java/io/IOException.java: Rewrote from scratch.
6199 * java/io/PrintStream.java: Rewrote from scratch.
6200 * java/io/DataOutputStream.java: Rewrote from scratch.
6201 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6202 * java/io/FilterOutputStream.java: Rewrote from scratch.
6203 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6204 * java/io/PipedOutputStream.java: Rewrote from scratch.
6205 * java/io/FileOutputStream.java: Rewrote from scratch.
6206 * java/io/OutputStream.java: Rewrote from scratch.
6207 * java/io/DataOutput.java: Rewrote from scratch.
6209 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6211 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6213 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6215 * configure.in: Add --enable-libjava-debug
6217 * Makefile.am (nat_headers): Add java/lang/Float.h and
6220 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6222 * Makefile.in, configure, include/config.h.in: Rebuilt.
6224 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6226 * java/lang/Float.java: Rewritten
6227 * java/lang/Double.java: Rewritten
6228 * java/lang/natFloat.cc: toString() added.
6229 * java/lang/natDouble.cc: toString() added.
6230 * java/lang/natDouble.cc: doubleValueOf() added.
6231 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6232 java/lang/strtod.c: added.
6233 * ieeefp.h: __sparc added.
6234 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6236 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6238 * include/javaprims.h (java::lang): Added
6239 CloneNotSupportedException.
6241 * java/lang/Object.java (clone): No longer native. Implemented.
6242 * java/lang/natObject.cc (clone): Removed.
6244 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6246 * prims.cc: Don't make definitions `extern "C"'.
6247 (_Jv_RegisterClass): Renamed from registerClass.
6248 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6249 (_Jv_NewArray): Likewise.
6250 (_Jv_NewMultiArray): Likewise.
6251 (_Jv_CheckCast): Likewise.
6252 (_Jv_LookupInterfaceMethod): Likewise.
6253 (_Jv_CheckArrayStore): Likewise.
6254 (_Jv_RegisterClass): Likewise.
6256 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6257 * configure: Rebuilt.
6258 * configure.in: Don't check for fmod; it is provided by the fdlibm
6260 * prims.cc (fmod): Removed.
6262 * java/lang/natString.cc (charAt): Use _Jv_uint.
6263 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6264 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6265 (equalUtf8Consts): Likewise.
6266 (internalAddClass): Use _Jv_uint.
6267 (processClass): Likewise.
6268 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6269 (_Jv_uint): Renamed from uint32.
6270 (struct _Jv_Utf8Const): Changed members to use new type names.
6272 * configure: Rebuilt.
6273 * configure.in: Don't check for memcpy. Require memmove and a way
6275 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6277 (currentTimeMillis): Don't use #error.
6279 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6281 * java/lang/Math.java: static member random renamed to random_ to
6282 avoid conflict with member function of the same name.
6283 * include/javaprims.h: java.util.Random added.
6285 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6287 * include/java-chartables.h: Regenerated.
6288 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6291 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6293 * java/lang/Math.java: Rewritten.
6294 * java/lang/natMath.cc: New file.
6295 * Files added from fdlibm:
6296 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6297 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6298 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6299 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6300 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6301 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6302 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6303 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6304 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6305 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6306 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6307 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6308 java/lang/k_cos.c, java/lang/sf_ceil.c,
6309 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6310 java/lang/ieeefp.h, java/lang/fdlibm.h
6311 * Makefile.am: rules added for compiling C files from fdlibm.
6313 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6315 * chartables.pl: Minor documentation fixes.
6317 * configure: Rebuilt.
6318 * configure.in: Fixed --help output for --enable-fast-character.
6320 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6322 * configure: Rebuilt.
6323 * configure.in: Recognize --enable-fast-character.
6324 * acconfig.h (COMPACT_CHARACTER): New define.
6325 * include/config.h.in: Rebuilt.
6326 * include/java-chartables.h: New file.
6327 * Makefile.in: Rebuilt.
6328 * Makefile.am (nat_files): Added natCharacter.o.
6329 * java/lang/natCharacter.cc: New file.
6330 * chartables.pl (set_attribute): New function.
6331 (@attributes, @second_attributes): New globals.
6332 ($ROMAN_START, $ROMAN_END): Likewise.
6333 (process_char): Call set_attribute when required.
6334 (print_char): Just print hex value.
6335 (print_block): Generate C++ syntax.
6336 (print_numerics): Likewise.
6337 (print_single_map): Likewise.
6338 (print_all_block): Likewise.
6339 (print_case_table): Likewise.
6340 (print_fast_tables): New function.
6341 Generate C++ code suitable for a header file.
6342 * java/lang/Character.java (table_search): Removed.
6343 (digit_value): Now native.
6344 (getNumericValue): Likewise.
6345 (getType): Likewise.
6346 Removed all automatically-generated tables.
6347 (Tamil_Digit_One): Removed.
6348 (isSpaceChar): Now native.
6349 (isTitleCase): Likewise.
6350 (isLowerCase): Likewise.
6351 (isUpperCase): Likewise.
6352 (toLowerCase): Likewise.
6353 (toTitleCase): Likewise.
6354 (toUpperCase): Likewise.
6355 (isDefined): Fixed sense of test.
6357 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6359 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6361 (regionMatches): Likewise.
6363 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6365 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6367 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6369 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6372 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6375 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6377 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6379 * prims.cc (instanceof_class): Removed.
6380 (instanceof_array): Likewise.
6381 (instanceof): Likewise.
6382 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6383 (_Jv_CheckCast): Likewise.
6384 * java/lang/natClass.cc (isAssignableFrom): New method.
6385 * java/lang/Class.java (isAssignableFrom): Now native.
6387 * include/cni.h (JvThrow): Use `extern inline'.
6388 (JvAllocObject): Likewise.
6389 (JvInitClass): Likewise.
6391 * java/lang/natSystem.cc (arraycopy): Only check class of source
6394 * prims.cc (_Jv_CheckArrayStore): Wrote.
6395 (_Jv_MonitorEnter): Prefer `JvThrow'.
6396 Include ArrayStoreException.h.
6397 (_Jv_CheckCast): Indentation cleanup.
6399 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6401 * chartables.pl: New file.
6402 * java/lang/Character.java: Rewrote from scratch.
6404 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6406 * java/lang/ArithmeticException.java,
6407 java/lang/ArrayIndexOutOfBoundsException.java,
6408 java/lang/ArrayStoreException.java,
6409 java/lang/ClassCastException.java,
6410 java/lang/ClassNotFoundException.java,
6411 java/lang/CloneNotSupportedException.java,
6412 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6413 java/lang/IllegalArgumentException.java,
6414 java/lang/IllegalMonitorStateException.java,
6415 java/lang/IllegalThreadStateException.java,
6416 java/lang/IndexOutOfBoundsException.java,
6417 java/lang/InstantiationException.java,
6418 java/lang/InterruptedException.java,
6419 java/lang/NegativeArraySizeException.java,
6420 java/lang/NoSuchMethodException.java,
6421 java/lang/NullPointerException.java,
6422 java/lang/NumberFormatException.java,
6423 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6424 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6426 * java/lang/IllegalStateException.java,
6427 java/lang/NoSuchFieldException.java,
6428 java/lang/UnsupportedOperationException.java: Created.
6430 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6432 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6433 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6435 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6437 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6439 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6441 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6443 * Makefile.in: Rebuilt.
6445 * include/javaprims.h (java::lang): Added
6446 StringIndexOutOfBoundsException.
6448 * java/lang/String.java: Added header comment and FIXME comment for
6449 missing constructors/methods.
6450 (endsWith): Adjusted offset into string to look at just the last chars.
6451 Commented out undocumented method.
6453 * java/lang/natString.cc: Added includes for
6454 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6455 (String::init): Throw StringIndexOutOfBoundsException.
6456 (String::charAt): Throw StringIndexOutOfBoundsException.
6457 (String::substring): Throw StringIndexOutOfBoundsException.
6458 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6459 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6460 (String::compareTo): Return difference/offset between chars/strings.
6462 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6464 * java/lang/Boolean.java (TYPE): Added comment.
6466 * java/lang/Byte.java (decode): Added - commented out until dependent
6467 code for Integer is written.
6468 (compareTo): JDK 1.2 methods written.
6469 (hashCode): Added comment to note that values have been verified.
6471 * java/lang/Short.java (decode): Added - commented out until dependent
6472 code for Integer is written.
6473 (compareTo): JDK 1.2 methods written.
6474 (hashCode): Added comment to note that values have been verified.
6476 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6478 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6480 * include/javaprims.h (java::lang): Added VirtualMachineError,
6482 * Makefile.in: Rebuilt.
6483 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6484 VirtualMachineError.h.
6485 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6486 (lookupArray): Likewise.
6487 (makeUtf8Const): Likewise.
6488 (_Jv_AllocObject): Likewise.
6489 (_Jv_NewObjectArray): Likewise.
6490 Include OutOfMemoryError.h.
6492 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6493 to use JvNewStringLatin1.
6495 * java/io/io-defs.h: Include java/lang/IOException.h.
6496 * Makefile.in: Rebuilt.
6497 * Makefile.am (nat_headers): Added
6498 ArrayIndexOutOfBoundsException.h,
6499 ClassFormatError.h,ClassNotFoundException.h,
6500 ClassCircularityError.h, ClassCastException.h,
6501 IncompatibleClassChangeError.h, AbstractMethodError.h,
6502 IllegalAccessError.h, LinkageError.h, Error.h,
6503 NegativeArraySizeException.h, IOException.h.
6504 * include/cni.h (SignalError): Removed declaration.
6505 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6506 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6507 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6508 (newInstance): Likewise.
6509 (forName): Likewise.
6510 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6512 (read): Use JvThrow, not SignalError.
6517 (open_read): Likewise.
6518 (open_write): Likewise.
6521 (newstr): New function.
6522 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6524 (lastModifiedUnchecked): Likewise.
6525 (lengthUnchecked): Likewise.
6526 * include/javaprims.h (sorry): Removed declaration.
6527 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6528 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6529 ClassCastException, IncompatibleClassChangeError,
6530 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6531 * prims.cc (instanceof_array): Use JvFail, not sorry.
6533 Include ArrayIndexOutOfBoundsException.h,
6534 ClassFormatError.h,ClassNotFoundException.h,
6535 ClassCircularityError.h, ClassCastException.h,
6536 IncompatibleClassChangeError.h, AbstractMethodError.h,
6537 IllegalAccessError.h, NegativeArraySizeException.h.
6538 (_Jv_ThrowBadArrayIndex): Implemented.
6539 (JvNewStringUTF): Use JvFail, not sorry.
6540 (_Jv_FindClass): Likewise.
6541 (_Jv_NewArray): Likewise.
6542 (throwException): Removed.
6543 (getClass): Use JvThrow.
6544 (processClass): Likewise.
6545 (_Jv_NewObjectArray): Likewise.
6546 (_Jv_NewMultiArray): Likewise.
6547 (_Jv_CheckCast): Likewise.
6548 (_Jv_LookupInterfaceMethod): Likewise.
6549 (SignalError): Removed.
6550 (getClass): Use _Jv_NewStringUtf8Const to create String.
6552 * java/lang/natSystem.cc (arraycopy): Throw
6553 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6555 * Makefile.in: Rebuilt.
6556 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6558 * include/java-array.h: Mention gcjh, not gjavah.
6560 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6561 (canReadUnchecked): Likewise.
6562 (canWriteUnchecked): Likewise.
6563 (isFileUnchecked): Likewise.
6564 * java/io/natFileDescriptor.cc: Don't include cni.h.
6566 * java/lang/Thread.java (run__): Declare.
6567 * java/lang/natThread.cc (run__): New method, to avoid compiler
6569 (start): Use run__, not run_.
6571 * java/io/io-defs.h: Include cni.h and jvm.h.
6573 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6575 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6576 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6577 to natString.cc (with suitable renaming, inlines etc).
6578 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6579 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6580 * java/lang/String.h: Removed - now generated using gjavah.
6581 * java/lang/String.java: Re-written from scratch. Many native methods.
6582 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6583 * java/lang/natString.cc: Many functions re-written for "compact
6584 strings" representation, or native java.lang.String methods added.
6585 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6586 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6587 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6588 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6589 * include/cni.h: Add inline method.
6590 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6591 * include/javaprims.h: Moved some stuff frm String.h.
6592 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6593 * Makefile.am (nat_header): Added Character.h and String.h.
6594 (String.h): Add new rule.
6596 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6598 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6600 * posix-threads.cc: Include cni.h, jvm.h.
6601 * quick-threads.cc: Include cni.h, jvm.h.
6602 * nogc.cc: Include cni.h, not javaprims.h.
6603 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6604 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6605 include java-assert.h.
6606 * java/lang/natSystem.cc: Include cni.h. Don't include
6608 * java/lang/natRuntime.cc: Include cni.h. Don't include
6610 * prims.cc: Rearranged #include ordering. Don't include
6611 java-array.h or java-assert.h.
6612 * boehm.cc: Include config.h, cni.h.
6613 * exception.cc: Include config.h, cni.h.
6614 * include/jvm.h: Include java-assert.h.
6615 * include/cni.h: Include java/lang/Object.h. Don't include
6616 java-threads.h or java-array.h.
6618 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6620 * java/lang/Boolean.java: Rewritten.
6622 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6624 * java/lang/natFirstThread.cc (main_func): New typedef.
6625 (run): Use main_func, not JvPrivThreadStartFunc.
6626 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6628 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6630 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6633 Can't throw Java exceptions with C++ `throw':
6634 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6635 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6636 (setPriority): Likewise.
6640 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6641 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6643 Can't catch Java exceptions from C++:
6644 * java/lang/natThread.cc (finish_): New method.
6646 * java/lang/Thread.java (run_): Rewrote in Java.
6647 (finish_): New native method.
6649 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6651 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6653 * include/javaprims.h (java::io): Added Serializable.
6655 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6657 * java/util/EmptyStackException.java,
6658 java/util/NoSuchElementException.java: Rewritten.
6660 * java/util/ConcurrentModificationException.java,
6661 java/util/MissingResourceException.java,
6662 java/util/TooManyListenersException.java: Created.
6664 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6666 * include/cni.h (JvThrow): New function.
6667 * include/javaprims.h (_Jv_Throw): Declare.
6669 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6671 * java/util/Observable.java: Rewritten.
6673 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6675 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6676 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6677 Include NullPointerException.h.
6679 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6681 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6682 assignability checks. Don't bother using memcpy.
6684 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6686 * include/quick-threads.h (JvPrivThreadWait): New function.
6687 * include/no-threads.h (JvPrivThreadWait): New function.
6688 * include/posix-threads.h (JvPrivThreadWait): New function.
6689 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6691 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6693 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6694 offsets by size of type that is being copied.
6696 * java/lang/natThread.cc (start): Don't pass `object' argument to
6698 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6699 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6701 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6702 always pass thread as object.
6703 * include/quick-threads.h, include/posix-threads.h,
6704 include/no-threads.h (JvPrivThreadStart): Removed `object'
6707 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6709 * java/util/Dictionary.java: Rewritten.
6711 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6713 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6714 (JvPrivThreadDestroy): Likewise.
6716 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6718 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6720 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6722 * java/lang/natSystem.cc: Rewrote from scratch.
6723 * java/lang/System.java: Rewrote from scratch.
6724 * java/lang/Class.h (Class): Declare isAssignableFrom.
6725 * include/javaprims.h (java::lang): Added ArrayStoreException,
6726 IndexOutOfBoundsException.
6727 * Makefile.in: Rebuilt.
6728 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6729 IndexOutOfBoundsException.h.
6730 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6731 * include/jvm.h (_Jv_HashCode): New function.
6733 * java/lang/natThread.cc (suspend): Call checkAccess.
6735 * java/lang/Thread.java (setDaemon): Call checkAccess.
6737 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6739 * java/lang/Runtime.java: Rewrote from scratch.
6740 * java/lang/natRuntime.cc: Rewrote from scratch.
6742 * nogc.cc (JvPrivGCTotalMemory): New function.
6743 (JvPrivGCFreeMemory): Likewise.
6744 (total): New global.
6745 (JvPrivAllocObj): Increment total.
6746 (JvPrivAllocArray): Likewise.
6747 (JvPrivAllocBytes): Likewise.
6748 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6749 * boehm.cc (JvPrivGCTotalMemory): New function.
6750 (sum_blocks): Likewise.
6751 (JvPrivGCFreeMemory): Likewise.
6753 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6755 * include/javaprims.h (java::lang): Added FirstThread.
6756 * java/lang/natFirstThread.cc: New file.
6757 * java/lang/FirstThread.java: New file.
6758 * prims.cc (main_signature): Removed.
6759 (main_name): Removed.
6760 #include FirstThread.h.
6761 * Makefile.in: Rebuilt.
6762 * Makefile.am (TFRIEND): Removed.
6763 (java/lang/Thread.h): Likewise.
6764 (FTFRIEND): New macro.
6765 (java/lang/FirstThread.h): New target.
6766 (nat_files): Added natFirstThread.o.
6767 (nat_headers): Added FirstThread.h.
6768 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6769 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6771 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6775 * java/lang/natThread.cc (start): Synchronize the thread.
6776 (stop): Synchronize the thread.
6778 * java/lang/ThreadDeath.java: Rewrote from scratch.
6780 * Makefile.in: Rebuilt.
6781 * Makefile.am (TGFRIEND): New macro.
6782 (java/lang/ThreadGroup.h): New target.
6783 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6785 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6787 * nogc.cc: Include config.h.
6789 * java/lang/ThreadGroup.java: Rewrote from scratch.
6791 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6793 * java/lang/Thread.java (checkAccess): Only call in to security
6794 manager if it exists.
6795 (Thread): Don't check access when creating the first thread. Add
6796 this thread to the appropriate ThreadGroup.
6798 * java/lang/natThread.cc (run_): Call uncaughtException method on
6801 * java/lang/Runnable.java: Rewrote from scratch.
6802 * java/lang/Thread.java: Updated copyright comment to correct
6805 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6807 * java/util/Random.java: Rewritten.
6809 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6811 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6812 trailing 0 in array[].
6814 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6816 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6817 and RUNTESTFLAGS from AM_MAKEFLAGS.
6818 (SUBDIRS): Conditionally include testsuite.
6819 * Makefile.in: Rebuilt.
6821 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6823 * java/lang/Object.h: Include java-assert.h.
6825 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6827 * Makefile.am: Add testsuite directory.
6828 * configure.in: Build testsuite/Makefile.
6829 * Makefile.in, configure: Rebuilt.
6831 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6833 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6834 * include/jvm.h (_Jv_StartFirstThread): Declare.
6836 * include/javaprims.h (java::lang): Added Exception,
6839 * Makefile.in: Rebuilt.
6840 * Makefile.am (nat_headers): Added NullPointerException.h,
6841 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6842 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6843 (java/lang/Thread.h): New target.
6844 (TFRIEND): New macro
6846 * include/java-assert.h (JvFail): Use 0 and not NULL.
6848 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6849 instead of assuming we are a friend of Thread.
6850 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6851 instead of assuming we are a friend of Thread.
6853 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6855 * java/lang/natThread.cc: Rewrote from scratch.
6856 * java/lang/Thread.java: Rewrote from scratch.
6857 * prims.cc (JvRunMain): Use new Thread constructor.
6858 * include/javaprims.h (java::lang): Added InterruptedException.
6859 * Makefile.in: Rebuilt.
6860 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6861 * java/lang/Thread.h: Removed.
6862 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6863 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6865 * posix-threads.cc (JvPrivThreadJoin): Removed.
6866 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6867 (really_start): Don't notify join_cond.
6868 (JvPrivThreadStart): Added `data' argument.
6869 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6870 (JvPrivThreadJoin): Likewise.
6871 Use JvFail instead of sorry.
6872 (JvPrivThreadSuspend): Removed.
6873 (JvPrivThreadResume): Removed.
6874 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6875 (JvPrivThreadJoin): Likewise.
6876 (JvPrivThreadSuspend): Use JvFail.
6877 (JvPrivThreadResume): Likewise.
6878 (JvPrivThreadSuspend): Removed.
6879 (JvPrivThreadResume): Likewise.
6880 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6881 (JvPrivThread_t): Removed join_mutex, join_cond.
6882 Use JvFail instead of sorry.
6883 (JvPrivThreadSuspend): Removed.
6884 (JvPrivThreadResume): Likewise.
6886 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6888 * java/util/Observer.java: Rewritten
6889 * java/util/Enumeration.java: Rewritten
6891 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6893 * java/util/StringTokenizer.java: Rewritten
6894 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6895 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6896 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6898 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6900 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6903 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6904 Include java-assert.h.
6905 * include/java-assert.h: New file.
6906 * prims.cc (_Jv_Abort): New function.
6907 Include java-assert.h, not assert.h.
6908 (_Jv_MonitorExit): Use JvAssert.
6909 (resolveConstants): Likewise.
6910 (processClass): Likewise.
6911 (JvRunMain): Assert that method is found.
6913 * configure: Rebuilt.
6914 * configure.in: Check for test subdir.
6915 * Makefile.in: Rebuilt.
6916 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6918 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6919 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6921 * prims.cc (resolveConstants): Removed unused variables.
6922 (processClass): Likewise.
6924 * include/quick-threads.h (JvPrivThreadCurrent): Use
6926 * quick-threads.cc (destroy_data): New function.
6927 (JvPrivInitThreads): Create key.
6928 (JvPrivThreadKey): New global.
6929 (JvPrivThreadStart): Use coop_setspecific.
6931 * include/quick-threads.h, include/posix-threads.h,
6932 include/no-threads.h, no-threads.cc, quick-threads.cc,
6933 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6935 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6937 * include/no-threads.h (JvPrivThreadInitData): Don't set
6940 * include/quick-threads.h (JvPrivCondWait): coop function now
6942 (JvPrivThreadJoin): Likewise.
6944 * java/lang/Thread.h (Thread): Updated declaration of
6946 * include/quick-threads.h, include/posix-threads.h: Updated
6947 declaration of JvPrivThreadStart.
6948 * include/no-threads.h (JvPrivThreadStart): Changed definition
6950 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6951 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6952 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6954 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6956 * quick-threads.cc (qthrow): New function.
6957 (JvPrivInitThreads): New function.
6958 (started): New global.
6959 (JvPrivThreadStart): Call coop_start if required.
6960 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6961 (JvPrivThreadDestroy): Likewise.
6962 (JvPrivInitThreads): Removed.
6963 * include/posix-threads.h (JvPrivThreadCancel): Added error
6965 * java/lang/natThread.cc (stop_): Pass exception to
6968 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6970 * include/javaprims.h (java::lang): Added
6971 IllegalArgumentException, IllegalThreadStateException, Math,
6972 NullPointerException, ThreadDeath.
6973 (java::util): Added Enumeration.
6975 * Makefile.in: Rebuilt.
6976 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6978 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6980 (threadsv): Renamed from threads to avoid clash in C++ header.
6981 (groupsv): Likewise.
6982 * include/no-threads.h (JvPrivThreadStart): Removed.
6983 * no-threads.cc (JvPrivThreadStart): New function.
6984 * java/lang/Thread.java (Thread): New constructor for internal use.
6985 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6986 (Thread): Declare constructor.
6987 * prims.cc (JvRunMain): Create the initial Thread and
6989 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6990 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6991 Removed `daemon' argument.
6993 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6994 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6996 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6998 * Makefile.in: Rebuilt.
6999 * Makefile.am (INCLUDES): Include THREADINCS.
7001 * configure: Rebuilt.
7002 * configure.in: Recognize `qt' as a threads package.
7004 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
7006 * java/util/Stack.java (pop): Null out topmost node for robustness.
7008 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
7010 * java/util/Stack.java: Rewritten.
7011 * java/util/Vector.java (isEmpty): Simplified expression.
7013 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
7015 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
7016 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
7018 * include/java-array.h (JvNewObjectArray): Created inline to
7021 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
7024 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
7026 * java/util/Vector.java: Rewritten.
7027 * java/io/Serializable.java: Created.
7029 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
7031 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
7032 Infinity is 1/0, not 1/1.
7034 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
7036 * configure: Rebuilt.
7037 * configure.in: Removed duplicate AC_ARG_WITH.
7039 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
7041 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
7043 (_Jv_InitClass): Renamed from soft_initialise_class.
7044 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
7045 (_Jv_CheckCast): Renamed from soft_checkcast.
7046 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
7047 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
7048 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
7049 * include/cni.h (JvInitClass): New function.
7050 (_Jv_InitClass): Renamed from soft_initialise_class.
7052 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
7054 * configure: Rebuilt.
7055 * configure.in (CXX): Don't set.
7056 * Makefile.in: Rebuilt.
7057 * Makefile.am (AM_CXXFLAGS): New macro.
7059 * Makefile.in: Rebuilt.
7060 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
7061 nogc.o): New target.
7063 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
7065 (mark_array): Likewise.
7067 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
7069 * java/lang/Class.h (JvMethod): Removed some unused fields.
7070 (JvField.info): Removed unused idx union variant.
7072 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
7074 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
7077 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
7079 * configure.in, configure (CXX): Add -fvtable-thunks.
7081 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
7083 * java/lang/Object.java (finalize): Move first.
7084 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
7085 (Object): Re-arrange order to match Object.java.
7087 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
7089 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
7090 * java/lang/natString.cc (hashChars): Likewise.
7092 * prims.cc (RuntimeClass): New macro.
7093 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
7095 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
7097 * Makefile.in: Rebuilt.
7098 * Makefile.am (AM_MAKEFLAGS): New macro.
7100 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
7102 * nogc.cc: Include <javaprims.h>.
7104 * Makefile.in: Rebuilt.
7105 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
7107 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
7109 * exception.cc (terminate): Removed.
7110 (unexpected): Removed.
7112 * configure: Rebuilt.
7113 * configure.in: Handle case where target subdir is ".".
7115 * configure: Rebuilt.
7116 * configure.in: Compute COMPPATH based on --with-target-subdir
7117 option. Added --with-target-subdir and --with-cross-host. Use
7118 --with-cross-host to determine when a cross compiler is in use.
7120 * Makefile.in: Rebuilt.
7121 * Makefile.am (GJAVAH): Include COMPPATH.
7122 * configure: Rebuilt.
7123 * configure.in: Subst COMPPATH.
7125 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
7127 * prims.cc (lockMutex): Removed.
7128 (unlockMutex): Likewise.
7129 (processClass): Lock the class using a JvSynchronize object.
7131 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
7133 * java/lang/natString.cc (gc_calloc_fixed): Removed.
7134 (gc_free_fixed): Removed.
7135 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
7136 freeing old value of strhash.
7138 * exception.cc (_Jv_type_matcher): Cast first argument to
7141 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
7143 * include/java-array.h (jstringArray): New type.
7144 * java/lang/natSystem.cc (setProperty): Removed.
7145 (initProperties): Directly call JvNewStringLatin1 for arguments.
7146 * java/util/natDate.cc: Include java/util/Date.h, not
7149 * java/io/FileDescriptor.java (available): No longer static.
7150 * java/lang/natDouble.cc (Double): Removed class definition.
7151 * include/javaprims.h (java::lang::Number): Declare.
7152 (java::lang::NumberFormatException): Likewise.
7153 (java::io::FilenameFilter): Likewise.
7154 (java::lang::Character): Likewise.
7155 (java::lang::Error): Likewise.
7156 (java::lang::SecurityManager): Likewise.
7157 (java::util::Vector): Likewise.
7158 (java::io::FileNotFoundException): Likewise.
7159 (java::io::IOException): Likewise.
7160 (java::lang::NativeLang): Likewise.
7161 (java::lang::UnsatisfiedLinkError): Likewise.
7162 (java::util::StringTokenizer): Likewise.
7163 (java::io::InputStream, java::io::OutputStream): Likewise.
7164 (java::io::PrintStream, java::lang::SecurityException): Likewise.
7165 (java::util::Hashtable): Likewise.
7166 * Makefile.in: Rebuilt.
7167 * Makefile.am (nat_headers): Added java/lang/Double.h,
7168 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
7169 (MOSTLYCLEANFILES): Added nat_headers.
7170 * include/jvm.h: Moved many defines, declarations, and functions
7171 to java/lang/Class.h.
7172 (struct JvSyncInfo): Moved to java/lang/Object.h.
7173 (UTF8_GET): Moved to java/lang/String.h.
7175 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
7177 * java/io/io-defs.h: Don't include java-io.h.
7178 * include/java-io.h: Removed.
7179 * include/javaprims.h: Include java::io.
7181 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
7183 * include/java-io.h (File): Removed
7184 (FileDescriptor): Likewise.
7186 * java/io/io-defs.h: Include java/io/File.h and
7187 java/io/FileDescriptor.h.
7189 * Makefile.in: Rebuilt.
7190 * Makefile.am (GJAVAH): New macro.
7191 (.class.h): New rule.
7192 (SUFFIXES): Added .h.
7193 (nat_headers): New macro.
7194 ($(nat_headers)): New target.
7195 (BUILT_SOURCES): Added nat_headers.
7197 * include/java-util.h: Removed.
7199 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7201 * include/java-io.h: Changed to avoid java-lang.h.
7202 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7204 * java/lang/natSystem.cc: Include java/lang/System.h, not
7206 * java/lang/natString.cc: Include java/lang/String.h, not
7208 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7210 * java/lang/natClass.cc: Include java/lang/Class.h, not
7212 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7214 * java/lang/natObject.cc: Include java/lang/Object.h, not
7216 * exception.cc: Don't include java-lang.h.
7217 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7218 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7219 * nogc.cc: Don't include java-lang.h.
7220 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7221 * prims.cc (processClass): Don't use `init_type'; just cast to
7223 Include java/lang/Class.h and jvm.h, not java-lang.h.
7224 (JvAllocObject): Wrote single-argument version.
7225 (PrimClass): Inherit from Class.
7226 (initPrimClass): Removed.
7227 * include/java-lang.h: Removed.
7228 * include/jvm.h: Declare struct _dispatchTable.
7229 * include/cni.h: Don't declare _Jv_MonitorEnter,
7230 _Jv_MonitorExit, struct _dispatchTable.
7231 * include/javaprims.h: Moved all typedefs here, from cni.h.
7232 * java/lang/Class.h: New file.
7233 * include/java-array.h: New file.
7234 * java/lang/Object.h: New file.
7236 * prims.cc (classFromSig): Now static.
7238 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7240 * include/cni.h: Don't mention soft_new.
7241 * include/java-lang.h (Object): Don't mention soft_new. Mention
7242 _Jv_NewPrimArray, not newPrimArray.
7243 * prims.cc (soft_new): Removed.
7244 (_Jv_NewArray): Renamed from soft_newarray.
7245 (soft_anewarray): Use JvNewObjectArray.
7246 (newArray): Likewise.
7247 (newRefArray): Removed.
7248 (_Jv_NewPrimArray): Renamed from newPrimArray.
7249 (equalUtf8Consts): Now static.
7250 (soft_instanceof): Removed.
7251 * java/lang/natDouble.cc (doubleToString): Now static.
7253 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7254 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7257 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7259 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7261 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7263 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7264 (JvPrivMutexUnlock): Likewise.
7265 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7266 Return value now jint.
7267 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7270 * Makefile.in: Rebuilt.
7271 * Makefile.am: Don't allow `jV' names.
7272 (maintainer-check): Depend on libjava.a.
7273 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7275 * Makefile.in: Rebuilt.
7276 * Makefile.am (NM): New macro.
7277 (maintainer-check): New target.
7279 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7281 * configure: Rebuilt.
7282 * configure.in: Use --enable-threads, not --enable-gc. Fix
7283 documentation for --enable-threads. Changed option to work like
7284 identical option in gcc/configure.
7286 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7288 * boehm.cc (mark_array): Use JvGetArrayLength.
7290 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7292 * exception.cc: New file (mostly written by Andrew MacLeod),
7293 exception handling support.
7294 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7295 Remove -fexceptions - it is now the default.
7297 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7298 (JvAllocObject): Renamed to _Jv_AllocObject.
7299 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7300 (loadClass): Renamed to _Jv_FindClass.
7301 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7302 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7303 * include/java-lang.h (JvGetArrayLength): New CNI function.
7304 * include/jvm.h (_Jv_FindClass): Added declaration.
7306 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7308 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7310 * java/lang/natClass.cc (getName): Add implementation.
7311 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7313 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7315 * Makefile.in: Rebuilt.
7316 * Makefile.am (.class.o): Added -fexceptions.
7318 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7320 * configure: Rebuilt.
7321 * configure.in: Don't check for __nanosleep.
7322 * posix-threads.cc (nanosleep): Never define.
7324 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7326 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7329 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7331 * java/lang/natThread.cc (enumerate): Uncommented.
7332 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7333 (interrupt): Call it.
7335 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7337 * configure: Rebuilt.
7338 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7340 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7342 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7343 * include/java-lang.h (Thread): Added `interrupted_' method.
7344 * java/lang/Thread.java (interrupted_): New method.
7345 * java/lang/natThread.cc (join): Possibly throw interrupted
7346 exception after join finishes.
7347 (interrupted_): New method.
7348 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7350 (JvPrivThreadJoin): New function.
7351 (really_start): Notify all threads waiting for this thread.
7352 (struct starter): Added `data' member.
7353 (JvPrivThreadStart): Set it.
7354 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7356 (JvPrivThreadJoin): No longer inline.
7357 (JvPrivThreadInterrupt): New function.
7359 * include/no-threads.h (JvPrivThreadSleep): Removed.
7360 * posix-threads.cc (JvPrivThreadSleep): Removed.
7362 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7364 * configure: Rebuilt.
7365 * configure.in (THREADOBJS): Initialize to no-threads.o in
7367 * posix-threads.cc (key): New global.
7368 (JvPrivInitThreads): New function.
7369 (really_start): Set thread-specific data to point to object.
7370 (JvPrivThreadStart): Added `daemon' argument.
7371 (JvPrivThreadSleep): Added `data' argument.
7372 * include/posix-threads.h (JvPrivInitThreads): Removed
7374 (JvPrivThreadCurrent): New function.
7375 * include/no-threads.h (JvPrivThreadInitData): Initialize
7376 JvPrivOnlyThread. Added `thread' argument.
7377 (JvPrivThreadCurrent): New function.
7378 (JvPrivThreadStart): Added `daemon' argument.
7379 * no-threads.cc: New file.
7380 * java/lang/natThread.cc (init_data): New function.
7382 (start): Set `alive' member.
7383 (stop_): Clear `alive' member.
7384 (destroy): Likewise.
7385 (currentThread): Implemented.
7386 (start): Pass `daemon' argument to JvPrivThreadStart.
7388 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7389 (Thread): Added `init_data' method.
7390 * java/lang/Thread.java (alive, data): New instance variables.
7391 (init_data): New private method.
7392 (isAlive): No longer native.
7394 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7396 * include/java-lang.h (JvRunMain): Declare.
7397 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7398 * prims.cc (JvRunMain): New function.
7399 (main_signature, main_name): New globals.
7401 * boehm.cc (mark_array): Use `elements' function and not
7402 operator[] on jarray.
7404 * posix-threads.cc: Include <config.h>. Define nanosleep if
7407 * configure: Rebuilt.
7408 * configure.in: Check for _nanosleep.
7410 * configure: Rebuilt.
7411 * configure.in: Check for pthread_mutexattr_settype.
7413 * include/cni.h (class JvSynchronize): New class.
7414 * java/lang/Thread.java (sleep): Throws InterruptedException.
7415 (join): Throws InterruptedException.
7416 (resume): Not native.
7417 (resume_): New method.
7418 (start): Now synchronized.
7419 (stop_): New method.
7420 (Thread): Synchronize when accessing threadNumber.
7422 * java/lang/natThread.cc (throwException): New macro.
7423 (sleep): Throw InterruptedException.
7426 * include/java-lang.h (Runtime): Added interrupted().
7428 * boehm.cc (call_finalizer): Correctly initialize jobj.
7429 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7431 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7434 * configure: Rebuilt.
7435 * configure.in: Added support for --disable-threads.
7436 * include/no-threads.h: New file.
7438 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7440 * Makefile.in: Rebuilt.
7441 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7442 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7443 (libjava_a_LIBADD): Added THREADOBJS.
7444 * configure: Rebuilt.
7445 * configure.in: Added --with-threads option.
7446 * posix-threads.cc: New file.
7447 * include/posix-threads.h: New file.
7448 * include/java-lang.h (Object): Added static member sync_mutex,
7449 member sync_info, method init_mutex.
7450 (struct JvSyncInfo): New struct.
7451 Include "java-threads.h".
7452 * prims.cc (soft_monitorenter): Wrote.
7453 (soft_monitorexit): Likewise.
7454 * java/lang/natObject.cc (init_mutex): New method.
7458 (sync_mutex): Define.
7459 Include "java-threads.h".
7461 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7463 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7464 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7466 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7468 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7469 Added extern "Java" in places to tell G++ Object is a "Java" type.
7470 Other minor renaming and fixes.
7471 * include/java-io.h (FileDescriptor): Add friend class declarations.
7472 G++ no longer allows non-Java types in method parameters and results
7473 of Java classes. Converted most offending methods to friends.
7474 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7475 * java/lang/natSystem.cc (setProperty): Make friend.
7476 * java/lang/natString.cc, include/java-lang.h (String): Rename
7477 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7478 * include/java-lang.h (JArray): Remove getData and eoprator[].
7479 Add elements friend function instead.
7480 * java/lang/natSystem.cc (arraycopy): Use elements function.
7481 * java/io/natFileDescriptor.cc (read, write): Likewise.
7482 * include/java-lang.h (Object): Remove unused make method.
7483 (System::setProperty(char*,char*)): Turn into friend function.
7484 (Class): Rename newObject by JvAllocObject.
7485 * prims.cc: Update to use JvAllocObject, and elements.
7487 * java/lang/natDouble.cc: Fix double -> jdouble.
7489 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7491 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7493 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7495 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7496 * include/java-lang.h (Runtime): finalize_on_exit and
7497 runFinalizersOnExit now static.
7498 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7500 (finalize_on_exit): Now static.
7502 * boehm.cc (mark_obj): Get class using getClass() method on
7504 (_dispatchTable): Removed.
7506 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7508 * java/io/natFileDescriptor.cc (open_read): Only call open if
7510 (open_write): Likewise.
7512 * Makefile.in: Rebuilt.
7513 * Makefile.am ($(nat_files)): Depend on config.h.
7515 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7517 * prims.cc (ObjectClass): Now a macro; updated for new class name
7519 (StringClass): Likewise.
7520 (ClassClass): Likewise.
7522 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7524 * java/io/natFileDescriptor.cc (available): Do nothing unless
7525 HAVE_SELECT defined.
7526 * java/util/natDate.cc (setTime): Conditional on
7528 (toString): Conditional on HAVE_TIME.
7529 * aclocal.m4, configure: Rebuilt.
7530 * acinclude.m4: New file.
7531 * configure.in: Don't actually call AM_EXEEXT. Call
7532 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7533 --with-target-subdir option. Check for select and open
7536 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7538 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7539 (call_finalizer): Likewise.
7540 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7541 * prims.cc (newObject): Pass actual method pointer to
7542 JvPrivRegisterFinalizer.
7543 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7544 (JvPrivRegisterFinalizer): Changed interface.
7546 * Makefile.in: Rebuilt.
7547 * Makefile.am (MOSTLYCLEANFILES): New macro.
7548 (CLEANFILES): Removed javao_files.
7550 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7552 * nogc.cc: New file.
7553 * Makefile.in: Rebuilt.
7554 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7555 (EXTRA_libjava_a_SOURCES): New macro.
7556 (libjava_a_SOURCES): Removed boehm.cc.
7557 (libjava_a_DEPENDENCIES): Added GCOBJS.
7558 (libjava_a_LIBADD): Likewise.
7559 * configure: Rebuilt.
7560 * configure.in: Added code for --enable-gc=TYPE.
7562 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7564 * boehm.cc (mark_array): Don't further dereference pointer from
7567 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7568 * Makefile.in: Rebuilt.
7569 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7570 one for boehm-gc build directory.
7572 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7574 * include/java-lang.h (finalize_on_exit): New instance variable in
7575 java::lang::Runtime.
7576 (runFinalizersOnExit): New method.
7577 * java/lang/Runtime.java (finalize_on_exit): New instance
7579 (runAllFinalizers_): New private method.
7580 (runFinalizersOnExit): New method.
7581 * boehm.cc (JvPrivRunFinalizers): New function.
7582 (JvPrivRunAllFinalizers): Likewise.
7583 (JvPrivRunGC): Likewise.
7584 * java/lang/natRuntime.cc: Include "jvm.h".
7585 (gc): Call JvPrivRunGC.
7586 (runFinalization): Call JvPrivRunFinalizers.
7587 (runFinalizersOnExit): New method.
7588 (exit_): Call JvPrivRunAllFinalizers if required.
7589 * include/jvm.h: Declare JvPrivRunFinalizers,
7590 JvPrivRunAllFinalizers, JvPrivRunGC.
7592 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7594 * boehm.cc (JvPrivRegisterFinalizer): New function.
7595 (call_finalizer): Likewise.
7596 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7597 * prims.cc (finalize_name): New global.
7598 (newObject): Just call other newObject.
7599 (newObject): Register finalizer if it exists.
7601 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7603 * prims.cc (gc_malloc): Removed.
7604 (makeUtf8Const): Use JvPrivAllocBytes.
7605 (lookupArray): Likewise.
7606 (newPrimArray): Likewise.
7607 (JvNewObjectArray): Use JvPrivAllocArray.
7608 (newObject): Use JvPrivAllocObj.
7609 (newObject): Likewise.
7610 Changed Method -> JvMethod everywhere.
7611 Changed Field -> JvField everywhere.
7612 * include/java-lang.h (Object): Changed type of `fields' to
7614 (jmethodID, jfieldID): New typedefs.
7615 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7617 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7619 (METHOD_NATIVECODE): Moved from java-lang.h.
7620 (class JvField): New class.
7621 (JvGetFirstInstanceField): New function.
7622 (JvFieldIsRef): Likewise.
7623 (JvGetObjectField): Likewise.
7624 (JvNumInstanceFields): Likewise.
7626 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7628 * boehm.cc: New file.
7629 * Makefile.in: Rebuilt.
7630 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7631 (INCLUDES): Added -I options to find boehm-gc files.
7633 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7635 * configure: Rebuilt.
7636 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7638 * Makefile.in: Rebuilt.
7639 * Makefile.am (nat_files): New macro.
7640 (libjava_a_DEPENDENCIES): Use it.
7641 (libjava_a_LIBADD): Likewise.
7642 ($(nat_files)): New static pattern rule.
7643 (class_files): Run separate find to find .class files.
7644 (javao_files): Compute based on class_files.
7645 (BUILT_SOURCES): New macro.
7647 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7649 * Makefile.am (java_files): New macro.
7650 (class_files): Likewise.
7651 (javao_files): Likewise.
7652 (libjava_a_DEPENDENCIES): Include $(javao_files).
7653 (libjava_a_LIBADD): Likewise.
7654 (classes.stamp): Depend on $(java_files); only recompile changed
7657 (CLEANFILES): Don't run find; use macros. Don't mention
7659 (.class.o): New target.
7660 (compiled.stamp): Removed.
7662 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7664 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7665 LineNumberReader}>java: Newly-implemented standard classes.
7667 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7669 * Makefile.in: Rebuilt.
7670 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7672 * Makefile.in: Rebuilt.
7673 * Makefile.am (hack): New macro.
7674 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7676 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7678 * include/config.h.in: New file.
7679 * include/config.h: Removed.
7680 * acconfig.h: New file.
7681 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7682 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7683 libjava_a_LIBADD): New macros.
7684 (INCLUDES): New macro.
7687 (SUFFIXES): Removed.
7689 (libjava.a): Removed.
7691 * configure: Rebuilt.
7692 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7693 Look for headers and functions we require. Create
7696 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7698 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7699 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7700 soft_lookupinterfacemethod): New functions.
7701 (PrimClass): Actually initialize the primitive classes.
7702 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7704 * include/java-util.h: Removed java::util definition.
7705 * include/cni.h: Moved java::util here and added Properties.
7706 Added more function prototypes.
7707 * include/java-lang.h: Added mroe methods and friend declarations.
7708 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7709 * include/jvm.h (strLengthUtf8): Add declaration.
7711 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7713 * java/lang/{Byte,Short,Void}.java: New classes.
7714 * java/lang/Character.java (isJavaIdentifierStart,
7715 JavaIdentifierPart): New static methods.
7716 * java/lang/Number.java (byteValue, shortValue): New methods.
7718 * java/lang/String.java (intern, hashCode): Make native.
7719 * java/lang/natString.cc: New file. Handle the string pool.
7720 * Makefile.am: Build natString.o. Use CXXFLAGS.
7722 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7723 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7724 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7725 * java/lang/System.java (setProperty): New private method.
7726 (initProperties): Take argument, and make native.
7727 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7728 (currentTimeMillis): Make more robust.
7730 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7731 * java/io/UnsupportedEncodingException.java: New exception class.
7733 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7734 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7736 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7738 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7739 * prims.cc: Added bunch of stuff.
7740 * include/cni.h: Added various definitions.
7741 * include/java-lang.h: Added Method, various friends, some macros.
7743 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7744 * java/lang/System.java (arraycopy): Make native.
7746 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7748 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7749 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7750 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7751 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7753 * java/lang/Runtime.java: Declare methods as native instead of
7755 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7756 * java/lang/System.java: Comment out some stuff, for now.
7757 * java/lang/Thread.java: Re-write. Use native methods.
7758 * java/lang/NativeLang.java: Remove most of it.
7760 * java/util/natDate.cc: Native (C++) methods for Date.
7761 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7762 * java/util/Date.java: Complete re-write.
7764 * java/io/io-defs.h: New header file.
7765 * java/io/FileDescriptor.java: Add a bunch of private methods,
7766 mostly moved from NativeIO.java and natNativeIO.cc.
7767 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7768 * java/io/File.java: Use new code.
7769 * java/io/{FileInputStream.java.FileOutputStream.java,
7770 RandomAccessFile.java}: Use new private FileDescriptor methods.
7771 * java/io/NativeIO.java: Removed, no longer used.
7773 * java/io/StreamTokenizer.java (numericChars): Make char array.
7775 * include/*.h: Various header files used by the C++ native code.
7777 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7778 New autoconf+automake-based setup.
7779 * prims.cc: New file for Java "primitives".