1 2000-02-11 Tom Tromey <tromey@cygnus.com>
3 * java/io/File.java (nextValue): Now synchronized.
5 2000-02-10 Tom Tromey <tromey@cygnus.com>
7 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
8 * java/io/FileDescriptor.java (EXCL): New static field.
9 * java/io/File.java (tmpdir): New static field.
10 (createTempFile): New method.
11 (nextValue): New method.
12 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
15 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
16 (jboolean): Declare as an attributed int, not a bool.
17 (_Jv_func): Declare differently for C.
19 * gnu/gcj/jni/natNativeThread.cc: New file.
20 * gnu/gcj/jni/NativeThread.java: New file.
21 * java/lang/Thread.java (data): Now a RawData.
22 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
24 * Makefile.in: Rebuilt.
25 * Makefile.am (java/lang/Thread.h): New target.
26 (ordinary_java_source_files): Added NativeThread.java.
27 (nat_source_files): Added natNativeThread.cc.
28 * java/lang/natThread.cc: Include <jni.h>
29 (struct natThread): Added `jni_env' field.
30 (_Jv_GetCurrentJNIEnv): New function.
31 (_Jv_SetCurrentJNIEnv): Likewise.
32 (initialize_native): Initialize jni_env.
34 * jni.cc (ThreadGroupClass): New define.
35 (_Jv_JNI_InvokeFunctions): New structure.
36 (JNI_GetCreatedJavaVMs): New function.
38 (JNI_GetDefaultJavaVMInitArgs): New function.
39 Include NativeThread.h.
40 (NativeThreadClass): New define.
41 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
42 (_Jv_JNI_DestroyJavaVM): New function.
43 (_Jv_JNI_AttachCurrentThread): New function.
44 (_Jv_JNI_DetachCurrentThread): New function.
45 (_Jv_JNI_GetEnv): New function.
46 (JNI_CreateJavaVM): New function.
47 (_Jv_JNI_GetJavaVM): New function.
48 (_Jv_JNIFunctions): Added entry for GetJavaVM.
49 * include/jni.h (JavaVMAttachArgs): New structure.
50 (JNI_EDETACHED): New define.
51 (JNI_EVERSION): Likewise.
52 (JavaVM): Define properly.
53 (struct JNIInvokeInterface): New structure.
54 (class _Jv_JavaVM): New class.
55 (JNI_OnLoad, JNI_OnUnload): Declare.
56 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
57 JNI_GetCreatedJavaVMs): Declare.
58 (JavaVMInitArgs): New typedef.
59 (JavaVMOption): Likewise.
60 (JNI_ERR): New define.
63 2000-02-10 Andrew Haley <aph@cygnus.com>
65 * interpret.cc: Don't include fdlibm.h.
66 Replace #if with #ifdef throughout.
67 Declare extern __ieee754_fmod.
68 (continue1): Remove op_getfield, op_getstatic, op_putfield,
70 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
71 Search class hierarchy for superclass vtable.
73 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
74 off the end of a pointer list.
76 * java/lang/natThread.cc (stop): Don't abort, throw an exception
80 2000-02-09 Tom Tromey <tromey@cygnus.com>
82 * java/lang/natRuntime.cc (_load): Call add_library.
83 (loadLibraryInternal): Likewise.
85 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
86 iconv_close when handle is not NULL. Thanks to Andrew Haley.
87 (Output_iconv::finalize): Likewise.
89 2000-02-08 Tom Tromey <tromey@cygnus.com>
91 * java/util/Properties.java (setProperty): New method.
94 2000-02-07 Tom Tromey <tromey@cygnus.com>
96 * java/lang/Runtime.java (_load): Declare.
97 (load, loadLibrary): Wrote in terms of _load.
98 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
100 (loadLibrary): Likewise.
103 (loadLibrary, load): Removed.
105 * jni.cc (ThrowableClass): New define.
106 (_Jv_JNI_Throw): Check argument.
107 (_Jv_JNI_ThrowNew): Likewise.
108 (wrap_value): Don't wrap object if it is NULL.
109 (_Jv_JNI_DefineClass): Use wrap_value.
110 (_Jv_JNI_FindClass): Likewise.
111 (_Jv_JNI_GetSuperclass): Likewise.
112 (_Jv_JNI_ExceptionOccurred): Likewise.
113 (_Jv_JNI_AllocObject): Likewise.
114 (_Jv_JNI_GetObjectClass): Likewise.
115 (_Jv_JNI_NewString): Likewise.
116 (_Jv_JNI_NewStringUTF): Likewise.
117 (_Jv_JNI_NewObjectArray): Likewise.
118 (_Jv_JNI_GetObjectArrayElement): Likewise.
119 (_Jv_JNI_NewPrimitiveArray): Likewise.
120 (_Jv_JNI_ToReflectedField): Likewise.
121 (_Jv_JNI_ToReflectedMethod): Likewise.
122 (_Jv_JNI_AllocObject): Check argument.
123 (_Jv_JNI_NewObjectV): Likewise.
124 (_Jv_JNI_NewObject): Likewise.
125 (_Jv_JNI_NewObjectA): Likewise.
126 (_Jv_JNI_GetObjectClass): Likewise.
127 (_Jv_JNI_GetField): Likewise.
128 (_Jv_JNI_SetField): Likewise.
130 * interpret.cc (PUSHL): Don't use expression statement.
135 * jni.cc (add_char): Conditional on INTERPRETER.
136 (mangled_name): Likewise.
138 * include/java-interp.h (class _Jv_MethodBase): Conditional on
140 (class _Jv_JNIMethod): Likewise.
142 2000-02-04 Warren Levy <warrenl@cygnus.com>
144 * Makefile.am: Added MPN.java and BigInteger.java.
145 * Makefile.in: Rebuilt.
146 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
148 * java/math/BigInteger.java: New file. Based primarily on
149 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
151 2000-02-04 Tom Tromey <tromey@cygnus.com>
153 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
155 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
156 if the method is native.
157 * resolve.cc (ncode): Don't handle native methods.
158 (_Jv_JNIMethod::ncode): New method.
159 (_Jv_PrepareClass): Handle native methods.
160 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
161 Include AbstractMethodError.h.
162 (add_char): New function.
163 (mangled_name): Likewise.
164 * include/java-interp.h (class _Jv_JNIMethod): New class.
165 (class _Jv_MethodBase): New class.
166 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
167 (_Jv_InterpClass): Changed `interpreted_methods' field to type
170 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
171 * java/lang/natRuntime.cc (libraries_size, libraries_count,
172 libraries): New globals.
173 (add_library): New function.
174 (_Jv_FindSymbolInExecutable): New function.
176 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
179 2000-02-04 Andrew Haley <aph@cygnus.com>
181 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
182 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
183 * java/lang/natThrowable.cc (printRawStackTrace): Rename
184 printStackTrace to printRawStackTrace.
186 2000-02-03 Tom Tromey <tromey@cygnus.com>
188 * java/util/Calendar.java (toString): New method.
189 * java/util/SimpleTimeZone.java (clone): New method.
190 (toString): New method.
191 * java/util/TimeZone.java (clone): New method.
192 * java/text/SimpleDateFormat.java (clone): New method.
193 * java/text/NumberFormat.java (clone): New method.
194 (equals): New method.
195 * java/text/Format.java (clone): New method.
196 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
199 * java/text/DateFormat.java (clone): New method.
200 * java/text/Collator.java (clone): New method.
202 2000-02-03 Tom Tromey <tromey@cygnus.com>
204 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
207 2000-02-01 Tom Tromey <tromey@cygnus.com>
209 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
210 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
211 constructing the closure if the function is native.
212 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
213 a template function, #if'd out, or static.
214 Include <java-interp.h>.
216 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
218 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
220 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
221 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
223 (wrap_value): New function.
224 (_Jv_JNI_CallAnyMethodV): Use it.
225 (_Jv_JNI_CallAnyMethodA): Likewise.
226 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
227 (_Jv_JNI_GetStaticField): Likewise.
229 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
230 (_Jv_JNI_GetStaticField): Likewise.
232 2000-01-31 Tom Tromey <tromey@cygnus.com>
234 * prims.cc (_Jv_MallocUnchecked): New function.
235 (main_init): Call _Jv_JNI_Init.
236 * include/jvm.h (_Jv_MallocUnchecked): Declare.
237 (_Jv_JNI_Init): Declare.
238 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
240 (_Jv_JNI_NewGlobalRef): New function.
241 (_Jv_JNI_DeleteGlobalRef): New function.
242 (_Jv_JNI_DeleteLocalRef): New function.
243 (_Jv_JNI_conversion_call): Initialize and clear local reference
245 (_Jv_JNI_NewLocalRef): New function.
246 (struct _Jv_JNI_LocalFrame): New structure.
247 (_Jv_JNI_PushLocalFrame): New function.
248 (_Jv_JNI_EnsureLocalCapacity): New function.
249 (FRAME_SIZE): New define.
250 (_Jv_JNI_GetStringChars): Mark string, not characters.
251 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
252 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
253 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
255 (_Jv_JNI_DefineClass): Make return value a local ref.
256 (_Jv_JNI_FindClass): Likewise.
257 (_Jv_JNI_GetSuperclass): Likewise.
258 (_Jv_JNI_ExceptionOccurred): Likewise.
259 (_Jv_JNI_AllocObject): Likewise.
260 (_Jv_JNI_GetObjectClass): Likewise.
261 (_Jv_JNI_CallAnyMethodV): Likewise.
262 (_Jv_JNI_NewString): Likewise.
263 (_Jv_JNI_NewStringUTF): Likewise.
264 (_Jv_JNI_NewObjectArray): Likewise.
265 (_Jv_JNI_GetObjectArrayElement): Likewise.
266 (_Jv_JNI_ToReflectedField): Likewise.
267 (_Jv_JNI_ToReflectedMethod): Likewise.
268 (_Jv_JNIFunctions): Updated table for new functions.
269 (_Jv_JNI_Init): New function.
270 (mark_for_gc): Wrote.
271 (unmark_for_gc): Wrote.
272 * include/jni.h (struct JNINativeInterface): Removed name from
273 PopLocalFrame parameter.
274 (class _Jv_JNIEnv): Added `locals' field.
276 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
278 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
281 2000-01-30 Tom Tromey <tromey@cygnus.com>
283 * include/config.h.in: Rebuilt.
284 * acconfig.h (HAVE_ICONV): Define.
285 * configure: Rebuilt.
286 * configure.in: Check for `iconv' function.
287 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
288 no specific encoder exists.
289 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
290 no specific encoder exists.
291 * Makefile.in: Rebuilt.
292 * Makefile.am (convert_source_files): Mention Input_iconv.java and
294 (nat_source_files): Added natIconv.cc.
295 * gnu/gcj/convert/natIconv.cc: New file.
296 * gnu/gcj/convert/Input_iconv.java: New file.
297 * gnu/gcj/convert/Output_iconv.java: New file.
299 2000-01-28 Tom Tromey <tromey@cygnus.com>
301 * Makefile.in: Rebuilt.
302 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
304 2000-01-26 Tom Tromey <tromey@cygnus.com>
306 * gcj/method.h (JvNumMethods): Moved from Class.h.
307 (JvGetFirstMethod): Likewise.
308 * java/lang/Class.h (Object): Updated decl of
309 _Jv_JNI_ToReflectedField.
310 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
311 * Makefile.in: Rebuilt.
312 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
313 argument of _Jv_JNI_ToReflectedField.
314 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
316 (java/lang/reflect/Method.h): Likewise.
317 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
319 (jweak): New typedef.
320 (struct JNINativeInterface): Correctly declare remaining entries.
321 * jni.cc: Include Class.h, ClassLoader.h.
322 (_Jv_JNI_FindClass): New function.
323 (_Jv_JNI_DefineClass): New function.
324 (_Jv_JNI_conversion_call): New function.
325 (_Jv_JNI_FindClass): Use current class loader to find class.
326 (_Jv_JNI_ExceptionCheck): New function.
327 (_Jv_JNI_FromReflectedField): Now static.
328 (MethodClass): New define.
329 (_Jv_JNI_FromReflectedMethod): New function.
330 (_Jv_JNI_ToReflectedMethod): Likewise.
332 (_Jv_JNI_IsAssignableFrom): Renamed.
333 (_Jv_JNI_GetStringRegion): New function.
334 Include StringIndexOutOfBoundsException.h.
335 (_Jv_JNI_GetStringUTFRegion): New function.
336 (_Jv_JNIFunctions): Updated for new functions.
337 (_Jv_JNI_GetPrimitiveArrayCritical): New function
338 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
339 (_Jv_JNI_GetStringCritical): New function.
340 (_Jv_JNI_ReleaseStringCritical): Likewise.
341 (get_throwable): Removed.
342 (GCJ_JV_JNIENV_FRIEND): Removed.
343 (__GCJ_JNI_IMPL__): Define.
346 * resolve.cc (get_ffi_type_from_signature): Handle case where
349 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
351 * interpret.cc (run): Don't call println.
352 Don't include PrintStream.h.
354 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
355 nameIndex. Use "jint" as type for boffset.
356 * java/lang/Class.h (struct _Jv_Method): Made accflags a
358 (Class): Likewise. Also changed type of method_count,
359 vtable_method_count, size_in_bytes, field_count,
360 static_field_count, interface_count.
361 * gcj/array.h (__JArray): Made `length' a const jsize, not an
364 2000-01-21 Tom Tromey <tromey@cygnus.com>
366 * java/lang/reflect/natConstructor.cc (newInstance): Use
368 * include/jvm.h: Declare _Jv_CallAnyMethodA.
369 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
370 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
373 (invoke): Use _Jv_CallAnyMethodA.
375 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
376 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
378 (struct _Jv_Method): Added getNextMethod method.
379 (JvNumMethods): New function.
380 (JvGetFirstMethod): Likewise.
381 * gcj/field.h (JvGetFirstStaticField): New function.
382 (JvNumStaticFields): Likewise.
383 (getNextField): Renamed from getNextInstanceField.
384 (struct _Jv_Field): New method getClass.
385 * jni.cc: Wrote many new functions.
386 * include/jni.h (JNI_TRUE): Define.
387 (JNI_FALSE): Likewise.
388 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
389 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
390 jcharArray, jfloatArray, jdoubleArray): New typedefs.
391 (jfieldID, jmethodID): Likewise.
392 (JNI_COMMIT, JNI_ABORT): New defines.
393 (JNINativeMethod): New struct.
394 (struct JNINativeInterface): Correctly declared more entries.
395 (class _Jv_JNIEnv): Added `ex' member.
396 (JNI_VERSION_1_1): New define.
397 (JNI_VERSION_1_2): Likewise.
399 * boehm.cc (_Jv_MarkObj): Use getNextField, not
400 getNextInstanceField.
402 2000-01-20 Tom Tromey <tromey@cygnus.com>
404 * resolve.cc (StringClass): Removed.
405 * defineclass.cc (StringClass): Removed.
407 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
411 2000-01-19 Tom Tromey <tromey@cygnus.com>
413 * interpret.cc (PC_REGISTER_ASM): Removed.
415 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
418 * All files: Updated copyright to reflect Cygnus purchase.
420 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
422 * configure: Rebuilt.
423 * configure.in: Recognize --disable-interpreter.
425 2000-01-18 Andrew Haley <aph@cygnus.com>
427 * name-finder.cc (lookup): Check for dladdr function.
428 acconfig.h (HAVE_DLADDR): Add.
429 configure.in: Check for HAVE_DLADDR
431 include/config.h.in: Rebuilt.
433 2000-01-17 Andrew Haley <aph@cygnus.com>
435 * prims.cc (_Jv_RunMain): Set the name of this executable.
437 2000-01-17 Tom Tromey <tromey@cygnus.com>
439 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
440 when backtrace can't be computed.
442 * configure: Rebuilt.
443 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
445 * java/lang/Runtime.java (loadLibraryInternal): Declare.
446 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
447 (_Jv_FindClassInCache): Likewise.
448 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
449 (findSystemClass): Try to load class from compiled module.
451 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
452 (loadLibrary): Likewise.
453 (lt_preloaded_symbols): Define.
454 (loadLibraryInternal): New method.
455 * include/config.h.in: Rebuilt.
456 * acconfig.h (USE_LTDL): Added.
457 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
458 (INCLUDES): Added $(INCLTDL).
459 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
460 (libgcj_la_LIBADD): Likewise.
461 * aclocal.m4, configure: Rebuilt.
462 * configure.in: Added libltdl support.
464 2000-01-15 Tom Tromey <tromey@cygnus.com>
466 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
468 2000-01-14 Andrew Haley <aph@cygnus.com>
470 * java/lang/natThrowable.cc: New file.
472 * java/lang/Throwable.java (fillInStackTrace): Make native.
473 (printStackTrace): Call native method to do this.
474 (Throwable): Call fillInStackTrace.
475 (stackTrace): New variable.
477 * include/jvm.h: Add _Jv_ThisExecutable functions.
479 * prims.cc: (_Jv_execName): New variable.
480 (catch_segv): Call fillInStackTrace.
482 (_Jv_ThisExecutable): New functions.
483 (JvRunMain): Set the name of this executable.
485 * Makefile.am: Add java/lang/natThrowable.cc.
487 * Makefile.in: Rebuilt.
489 * acconfig.h: Add HAVE_PROC_SELF_EXE.
491 * configure.in: Force link with __frame_state_for in
492 FORCELIBGCCSPEC. Add new checks for backtrace.
493 * include/config.h.in: Rebuilt.
495 * name-finder.cc: New file.
496 * include/name-finder.h: New file.
498 2000-01-16 Anthony Green <green@cygnus.com>
500 * java/lang/StringBuffer.java (StringBuffer): Don't special case
503 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
505 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
507 2000-01-13 Tom Tromey <tromey@cygnus.com>
509 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
510 not system loader, as initiating loader.
512 2000-01-11 Tom Tromey <tromey@cygnus.com>
514 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
515 HP/UX. From David Scott Urban.
517 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
519 * java/lang/natMath.cc (pow): Cast args to `double', not
522 (IEEEremainder): Likewise.
523 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
524 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
526 2000-01-09 Anthony Green <green@cygnus.com>
528 * java/lang/natString.cc (init): Test for overflow condition
529 during out of bounds check.
530 (getChars): Throw StringIndexOutOfBoundsException, not
531 ArrayIndexOutOfBoundsException.
533 (regionMatches): Obey case option during string comparison.
535 * configure.host (ligcj_interpreter): New variable. Enable
536 interpreter by default on IA-32.
537 * configure.in: Examine libgcj_interpreter.
538 * configure: Rebuilt.
540 2000-01-07 Tom Tromey <tromey@cygnus.com>
542 * mauve-libgcj: Don't disable ClassTest.
544 * java/lang/natClass.cc (getClasses): Wrote.
546 2000-01-06 Tom Tromey <tromey@cygnus.com>
548 * java/lang/natClass.cc (_getConstructors): Correctly check
549 whether method name is the init name.
550 (getMethod): Look at accflags on method in `klass', not `this'.
552 2000-01-05 Tom Tromey <tromey@cygnus.com>
554 * java/lang/natClass.cc (getMethod): Compute offset relative to
555 `klass's methods table, not `this's table.
557 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
558 In unwrapping/widening case, check whether `k' is null, not
559 whether it is primitive. Initialize `num' from `argelts', not
560 `paramelts'. Correct create and pass arguments to ffi_call.
561 Don't let presence of `this' argument affect index used to look in
563 (COPY): Set appropriate element in `values' vector.
565 * java/lang/natClass.cc: Include <gcj/method.h>.
567 * java/lang/Class.h (_getMethods): Correctly declare as private,
570 * java/lang/Class.h (_getMethods): Declare.
571 * java/lang/Class.java (_getMethods): Declare.
572 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
573 (getDeclaredClasses): Always return empty array.
574 (_getMethods): New method.
576 (getDeclaredMethod): Return `rmethod'.
577 (finit_name): New global.
578 (getDeclaredMethods): Check for finit_name.
579 (_getMethods): Likewise.
580 (getMethod): Only return public methods.
582 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
583 jboolean and select correct ffi type on that basis.
584 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
585 Constructor call always has `void' return type.
587 2000-01-04 Tom Tromey <tromey@cygnus.com>
589 * java/lang/Class.h (getSignature): Updated.
590 * java/lang/Class.java (getSignature): Updated.
591 * java/lang/natClass.cc (getSignature): Added `is_constructor'
593 (getConstructor): Ensure constructor is public.
594 (_getConstructors): Check for public-ness of constructor when
595 `declared' is false, not when it is true.
597 2000-01-04 Warren Levy <warrenl@cygnus.com>
599 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
601 (receive): Set the sender's address in the DatagramPacket.
603 2000-01-04 Tom Tromey <tromey@cygnus.com>
605 * java/lang/reflect/natConstructor.cc (newInstance): Pass
606 declaring class as return_type argument to
607 _Jv_CallNonvirtualMethodA.
608 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
609 constructor case, create object and use it as `this' argument.
610 * java/lang/Class.h (_getConstructors): Declare.
611 (_getFields): Declare.
612 * java/lang/Class.java (getConstructors): Wrote.
613 (_getConstructors): New native method.
614 (getDeclaredConstructors): Wrote.
615 (_getFields): Declare new native method.
616 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
618 (getMethod): Work correctly when class is primitive.
619 (getDeclaredMethods): Likewise. Compute offset using `method',
621 (getDeclaredMethod): Likewise.
622 (getConstructor): Wrote.
623 (ConstructorClass): New define.
624 (getDeclaredConstructor): Wrote.
625 (_getConstructors): New method.
626 (_getFields): New method.
629 * Makefile.in: Rebuilt.
630 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
632 * prims.cc: Remove `#pragma implementation'.
633 * gcj/array.h: Remove `#pragma interface'.
635 * prims.cc (_Jv_equaln): New function.
636 * java/lang/Class.java (getSignature): Declare.
637 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
638 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
640 (getSignature): New method.
641 (getDeclaredMethod): Wrote.
643 Include StringBuffer.h.
644 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
645 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
647 (getSignature): Declare.
648 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
649 (_Jv_equaln): Declare.
650 (_Jv_CallNonvirtualMethodA): Declare.
651 * Makefile.in: Rebuilt.
652 * Makefile.am (nat_source_files): Added natConstructor.cc.
653 (java/lang/reflect/Constructor.h): New target.
654 * java/lang/reflect/natConstructor.cc: New file.
655 * java/lang/reflect/Constructor.java (newInstance): Now native.
656 (declaringClass): Renamed from decl_class.
657 (offset): Renamed from index.
658 (getType): New native method.
659 (getModifiers): Now native.
660 (getParameterTypes): Call getType if required.
661 (hashCode): Include hash code from declaring class.
662 (modifiers): Removed.
663 (toString): Call getType if required.
664 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
665 * java/lang/reflect/natMethod.cc (hack_call): New method.
666 Removed `#if 0' around FFI code.
667 Include <gnu/gcj/RawData.h>.
668 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
669 IllegalArgumentException when argument object and class disagree.
670 (_Jv_GetTypesFromSignature): New function.
672 (ObjectClass): New define.
673 (_Jv_CallNonvirtualMethodA): New function.
674 * java/lang/reflect/Method.java (hack_trampoline): New method.
675 (hack_call): New native method.
677 1999-12-21 Per Bothner <per@bothner.com>
679 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
680 offset in new Method.
682 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
684 * java/lang/natObject.cc (notify): Throw message with
685 IllegalMonitorStateException.
688 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
689 (isInterrupted_): New function, which does clear interrupt_flag.
690 (interrupt): Use `isInterrupted_'.
691 * java/lang/natThread.cc (interrupt): Add comment.
692 (join): Set `prev' in joiner loop.
693 Change various calls to `isInterrupted' to use `isInterrupted_'.
694 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
695 on linux. Set result to 0 on an interrupt. Test interrupted status
696 of java Thread object directly.
697 FLAG_INTERRUPTED: removed.
698 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
699 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
700 (_Jv_InitThreads): Don't block SIGINT.
701 (_Jv_ThreadWait): Don't configure SIGINT handler.
703 1999-12-21 Tom Tromey <tromey@cygnus.com>
705 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
707 1999-12-20 Tom Tromey <tromey@cygnus.com>
709 * java/lang/reflect/Modifier.java (STRICT): New constant.
710 (isStrict): New method.
711 (toString): Added `strict'.
713 1999-12-23 Anthony Green <green@cygnus.com>
715 * configure: Rebuilt.
716 * configure.in (LIBDATASTARTSPEC): Force data_start in with
719 1999-12-19 Anthony Green <green@cygnus.com>
721 * libgcjdata.c: New file.
722 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
723 * configure: Rebuilt.
724 * configure.in (LIBDATASTARTSPEC): Force data with a known name
726 * Makefile.in: Rebuilt.
727 * Makefile.am: Build libgcjdata.a.
729 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
730 * configure: Rebuilt.
731 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
734 1999-12-17 Tom Tromey <tromey@cygnus.com>
736 * java/lang/reflect/Method.java (toString): Call getType if
737 required. Partial fix for PR libgcj/111. From Per Bothner.
739 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
741 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
743 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
744 null String constructor parameter.
745 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
746 for exception messages.
747 BooleanClass: declare.
748 (setOption): Use BooleanClass instead of Class.forName() for
750 (bind): Cast 4th parameter of setsockopt to `char *' for
751 compatibility with older Solaris headers.
752 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
753 sprintf calls for exception messages.
754 BooleanClass, IntegerClass: declare.
755 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
758 1999-12-15 Tom Tromey <tromey@cygnus.com>
760 * java/lang/natSystem.cc (init_properties): Don't set user.name or
761 user.home if NO_GETUID defined. Only set user.dir if getcwd
764 * include/config.h.in: Rebuilt.
765 * acconfig.h (NO_GETUID): New define.
766 * configure.in: Rebuilt.
767 * configure.in: Define NO_GETUID in cross case. Check for getcwd
770 1999-12-08 Tom Tromey <tromey@cygnus.com>
772 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
773 where no recursive mutexes exist. Fixes PR libgcj/117.
775 1999-12-05 Anthony Green <green@cygnus.com>
777 * include/jvm.h: Declare many functions with
778 __attribute__((__malloc__)).
779 * gcj/javaprims.h: Ditto.
781 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
783 * THANKS: Giving credit where credit is due.
785 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
787 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
789 * java/lang/natString.cc (equalsIgnoreCase): return false if
790 anotherString is null.
791 * java/lang/Boolean.java (valueOf): return FALSE if argument is
794 1999-11-30 Tom Tromey <tromey@cygnus.com>
796 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
797 mutex to initialize. Initialize `count' if required.
800 1999-11-27 Per Bothner <per@bothner.com>
802 * exception.cc: Remove prototype declarations for malloc and free.
803 These clash with recent versions of glibc, which specifies `throws ()'
804 when __cplusplus is defined. Instead, #include <stdlib.h>.
806 1999-11-24 Tom Tromey <tromey@cygnus.com>
808 * prims.cc (_Jv_NewObjectArray): Use
809 _Jv_GetArrayElementFromElementType.
810 (_Jv_NewPrimArray): Likewise.
811 * java/lang/natObject.cc (clone): Use
812 _Jv_GetArrayElementFromElementType instead of sizeof.
813 * java/lang/natSystem.cc (arraycopy): Use
814 _Jv_GetArrayElementFromElementType.
815 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
818 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
820 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
821 Exception messages. PR java.net/57.
822 (bind): set SO_REUSEADDR before bind.
823 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
824 overruns. PR java.net/57.
826 1999-11-19 Tom Tromey <tromey@cygnus.com>
828 * Makefile.am (DIVIDESPEC): Removed.
829 (EXCEPTIONSPEC): Removed.
831 1999-11-19 Andrew Haley <aph@cygnus.com>
833 * Makefile.am (JCFLAGS): Add -L$(here)
835 * Makefile.in: Rebuild.
837 1999-11-18 Tom Tromey <tromey@cygnus.com>
839 * java/lang/natDouble.cc: Include <config.h>.
841 * include/config.h.in: Rebuilt.
842 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
843 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
845 * configure: Rebuilt.
846 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
847 requested by configure.host. Don't put `-D' option into
848 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
850 * configure: Rebuilt.
851 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
854 1999-11-18 Andrew Haley <aph@cygnus.com>
856 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
857 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
859 * Makefile.in: Rebuild
860 * acconfig.h: remove SJLJ_EXCEPTIONS
861 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
862 Do not AC_DEFINE SJLJ_EXCEPTIONS.
863 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
864 * gcj/Makefile.in, include/Makefile.in: rebuild.
865 * include/config.h.in: remove SJLJ_EXCEPTIONS.
867 1999-11-18 Andrew Haley <aph@cygnus.com>
869 * gij.cc (main): Rename label to prevent conflict.
871 * exception.cc (_Jv_type_matcher): Don't check the table if we're
872 using setjmp/longjmp exceptions: there isn't one.
874 1999-11-17 Andrew Haley <aph@cygnus.com>
876 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
877 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
878 (__sjthrow): Add declaration.
879 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
883 * Makefile.in: Rebuild
884 * acconfig.h: Add SJLJ_EXCEPTIONS
885 * configure.in: Add SJLJ_EXCEPTIONS
886 * configure: Rebuild.
887 * gcj/Makefile.in: Rebuild.
888 * gcj/cni.h: Add support for sjlj-exceptions.
889 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
890 * include/Makefile.in: Rebuild.
891 * include/default-signal.h: Add support for sjlj-exceptions.
893 1999-11-18 Tom Tromey <tromey@cygnus.com>
895 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
897 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
899 (method_cache): Made larger.
901 1999-11-11 Tom Tromey <tromey@cygnus.com>
903 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
904 initializing mutex. Initialize `count' when required.
906 1999-11-07 Anthony Green <green@trip.cygnus.com>
908 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
911 1999-11-05 Tom Tromey <tromey@cygnus.com>
913 * java/lang/natThread.cc (destroy): Removed incorrect comment.
915 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
917 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
918 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
921 1999-11-05 Tom Tromey <tromey@cygnus.com>
923 * java/lang/natThread.cc (stop): Removed argument name.
925 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
926 `private'; now has default access.
927 * Makefile.in: Rebuilt.
928 * Makefile.am (java/lang/ThreadGroup.h): Removed.
930 1999-11-04 Tom Tromey <tromey@cygnus.com>
932 * java/lang/natClass.cc (method_cache_count): Removed.
933 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
934 (_Jv_AddMethodToCache): Don't loop.
936 * configure.in: Removed `qt' threads case.
937 * include/quick-threads.h: Removed.
938 * quick-threads.cc: Removed.
940 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
941 (_Jv_ThreadDestroy): Likewise.
942 * include/no-threads.h (_Jv_ThreadCancel): Removed.
943 (_Jv_ThreadDestroy): Likewise.
944 * include/posix-threads.h (struct _Jv_Thread_t): Removed
946 (_Jv_ThreadCancel): Removed decl.
947 (_Jv_ThreadDestroy): Removed.
948 * posix-threads.cc (_Jv_ThreadCancel): Removed.
949 (throw_cleanup): Removed.
950 (really_start): Don't push or pop cleanup.
951 (_Jv_ThreadInitData): Don't initialize `exception' field.
952 * java/lang/Thread.java (stop): Officially unimplemented.
953 * java/lang/natThread.cc (stop): Officially unimplemented.
955 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
957 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
960 1999-11-02 Tom Tromey <tromey@cygnus.com>
962 * boehm.cc: Don't include boehm-config.h.
964 1999-11-01 Tom Tromey <tromey@cygnus.com>
966 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
967 (sum_blocks): Removed.
968 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
970 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
972 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
974 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
975 * java/io/InputStreamReader (InputStreamReader): ditto.
977 1999-10-22 Tom Tromey <tromey@cygnus.com>
979 * Makefile.in: Rebuilt.
980 * Makefile.am (java/lang/ClassLoader.h): New target.
981 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
984 * include/java-props.h (_Jv_Compiler_Properties): Changed
986 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
987 * include/jvm.h (_Jv_GCSetInitialHeapSize,
988 _Jv_GCSetMaximumHeapSize): Declare.
989 (JvRunMain, _Jv_RunMain): Declare.
990 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
991 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
992 (_Jv_GCSetMaximumHeapSize): Likewise.
993 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
994 (_Jv_GCSetMaximumHeapSize): Likewise.
995 * prims.cc (parse_heap_size): New function.
996 (_Jv_SetInitialHeapSize): Likewise.
997 (_Jv_SetMaximumHeapSize): Likewise.
998 (_Jv_Compiler_Properties): New global.
999 * gij.cc (help): New function.
1000 (version): Likewise.
1001 (heap_size): Likewise.
1002 (heap_max_size): Likewise.
1003 (main): Parse arguments. Set _Jv_Compiler_Properties.
1004 Include <config.h>, <java-props.h>.
1005 (_Jv_Compiler_Properties): Removed.
1007 1999-10-18 Tom Tromey <tromey@cygnus.com>
1009 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
1011 (redirect): New static field.
1012 * java/lang/ClassLoader.java (getSystemClassLoader): Now
1014 (getVMClassLoader0): Removed.
1015 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
1016 (redirect): Removed.
1017 (getSystemClassLoader): Implemented.
1019 1999-10-16 Anthony Green <green@cygnus.com>
1021 * java/lang/ClassLoader.java (getSystemResource): Use
1022 getSystemClassLoader instead of ClassLoader.system.
1023 (getSystemResourceAsStream): Ditto.
1025 * java/lang/natClassLoader.cc (redirect): Make static and
1026 remove #ifdef INTERPRETER so it is always defined.
1027 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
1028 returns a VMClassLoader.
1030 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
1031 PropertyResourceBundle if a properties file is found before a
1032 ResourceBundle class.
1034 1999-10-15 Tom Tromey <tromey@cygnus.com>
1036 * gij.cc (main): Formatting fixes.
1037 (_Jv_Compiler_Properties): Define.
1038 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
1040 (init_properties): Set properites from _Jv_Compiler_Properties.
1041 * include/java-props.h (_Jv_Compiler_Properties,
1042 _Jv_Environment_Properties): Declare.
1044 * include/java-props.h: Added copyright.
1046 1999-10-13 Anthony Green <green@cygnus.com>
1048 * libtool-version: Catch up by incrementing current.
1050 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
1051 * configure, include/config.h.in: Rebuilt.
1052 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
1053 * configure.in: Added --disable-getenv-properties and new define
1054 `DISABLE_GETENV_PROPERTIES'.
1056 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
1057 (next_property_key): New function.
1058 (next_property_value): New function.
1059 (process_gcj_properties): New function.
1060 (JvRunMain): Call process_gcj_properties.
1061 (_JvRunMain): Ditto.
1063 * java/lang/natSystem.cc (init_properties): Set properties defined
1066 * include/java-props.h: New file.
1068 * java/lang/natSystem.cc (init_properties): Add new properties to
1069 conform with Java Product Versioning Specification.
1071 1999-10-12 Tom Tromey <tromey@cygnus.com>
1073 * configure: Rebuilt.
1074 * configure.in: Fixed test for --disable-java-net.
1076 1999-10-06 Tom Tromey <tromey@cygnus.com>
1078 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
1079 when building Canadian cross.
1080 (NATIVE): Don't define when cross-compiling.
1082 1999-10-04 Tom Tromey <tromey@cygnus.com>
1084 * java/net/natPlainSocketImpl.cc: Don't include headers if
1085 java.net is disabled.
1087 * Makefile.in: Rebuilt.
1088 * Makefile.am (ZINCS): Removed. This is defined in configure.in
1089 when needed, and must be left empty when not needed.
1091 1999-10-01 Anthony Green <green@cygnus.com>
1093 * THANKS: Refreshed from htdocs version.
1095 1999-10-01 Steve Chamberlain <sac@pobox.com>
1097 * Makefile.in: Rebuilt.
1098 * Makefile.am (ZINCS): Define
1100 * configure: Rebuilt.
1101 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
1103 * java/lang/ieeefp.h: Add definitions for picoJava.
1105 1999-10-01 Tom Tromey <tromey@cygnus.com>
1107 * configure: Rebuilt.
1108 * configure.in: Set classpath when invoking gcj. Use changequote
1109 around sed invocation.
1111 * java/net/natPlainSocketImpl.cc: Stub native functions if
1112 DISABLE_JAVA_NET is defined.
1113 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
1114 typo in exception string.
1115 (getTimeToLive): Likewise.
1116 Stub native functions if DISABLE_JAVA_NET is defined.
1117 * java/net/natInetAddress.cc: Stub native functions if
1118 DISABLE_JAVA_NET is defined.
1119 * configure.host: Disable java.net for mips-tx39.
1120 * configure, include/config.h.in: Rebuilt.
1121 * acconfig.h (DISABLE_JAVA_NET): Undefine.
1122 * configure.in: Added --disable-java-net and new define
1125 1999-09-30 Tom Tromey <tromey@cygnus.com>
1127 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
1129 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
1133 1999-09-28 Tom Tromey <tromey@cygnus.com>
1135 * configure: Rebuilt.
1136 * configure.in (PROCESS): In POSIX case, only set if not already
1138 * configure.host (PROCESS): Set in mips-tx39 case.
1140 * aclocal.m4, configure: Rebuilt.
1141 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
1142 appropriate AC_PROG_ symbol.
1144 1999-09-24 Tom Tromey <tromey@cygnus.com>
1146 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
1148 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
1150 Fix for PR java.util/47:
1151 * configure, include/config.h: Rebuilt.
1152 * configure.in: Don't look for ctime or ctime_r.
1153 * Makefile.in: Rebuilt.
1154 * Makefile.am (nat_source_files): Don't mention natDate.cc.
1155 * java/util/natDate.cc: Removed.
1156 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
1158 (getAvailableIDs): Rewrote.
1159 (getTimeZone): Rewrote.
1160 * java/util/Date.java (toGMTString): New method.
1161 (toLocaleString): New method.
1162 (toString): Rewrote.
1164 1999-09-23 Tom Tromey <tromey@cygnus.com>
1166 * configure: Rebuilt.
1167 * configure.in: Print message when checking to see if gcj can
1168 handle -fuse-divide-subroutine.
1170 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
1172 * java/lang/FirstThread.java (run0): Renamed to `run'.
1175 * prims.cc (main_init): New function.
1176 (JvRunMain): Call it.
1177 (_Jv_RunMain): Likewise.
1179 (main_init): Ignore SIGPIPE. Fixes PR 51.
1181 1999-09-22 Tom Tromey <tromey@cygnus.com>
1183 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1185 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
1187 * java/text/MessageFormat.java (MessageFormat(String)): Set the
1189 * java/text/NumberFormat.java: Check that object is a Number. If
1190 not, throw IllegialArgumentException.
1192 1999-09-21 Tom Tromey <tromey@cygnus.com>
1194 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1195 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
1197 * include/posix-threads.h (_Jv_MutexDestroy): Use
1198 _Jv_PthreadGetMutex.
1199 (_Jv_MutexLock): Likewise.
1200 (_Jv_MutexUnlock): Likewise.
1202 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1203 previous patch; it too was incorrect.
1204 * java/io/PrintStream.java (PrintStream): Likewise.
1206 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1207 refer to `this' before calling superclass constructor.
1208 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1209 before calling superclass constructor.
1211 1999-09-20 Tom Tromey <tromey@cygnus.com>
1213 * configure: Rebuilt.
1214 * configure.in: Send output of `-fuse-divide-subroutine' test
1215 compilation to /dev/null.
1217 1999-09-14 Tom Tromey <tromey@cygnus.com>
1219 * include/java-insns.h: Turned constants into an enum. Added
1220 multiple-inclusion protection.
1222 1999-09-10 Tom Tromey <tromey@cygnus.com>
1224 * configure: Rebuilt.
1225 * configure.in: Build include/Makefile.
1226 * Makefile.in: Rebuilt.
1227 * Makefile.am (SUBDIRS): Added gcj and include.
1228 (install-data-local): New target.
1229 (extra_headers): New macro.
1230 * include/Makefile.in: New file.
1231 * include/Makefile.am: New file.
1233 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1234 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1236 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1237 * resolve.cc: Include config.h.
1238 * defineclass.cc: Include config.h.
1239 * include/java-interp.h: Don't include config.h.
1240 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1243 * gcj/javaprims.h: Regenerated namespace decls.
1244 * classes.pl (scan): Don't put `;' after closing brace.
1246 * Makefile.in: Rebuilt.
1247 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1248 * configure.in: Create gcj/Makefile.
1249 * gcj/Makefile.in: New file.
1250 * gcj/Makefile.am: New file.
1251 * java/lang/Object.h: Don't include any other headers.
1252 * gcj/array.h: Renamed from include/java-array.h.
1253 * gcj/field.h: Renamed from include/java-field.h.
1254 * gcj/method.h: Renamed from include/java-method.h.
1255 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1256 Updated all files to reflect new include structure.
1258 1999-09-09 Tom Tromey <tromey@cygnus.com>
1260 * configure: Rebuilt.
1261 * configure.in: Fixed typo; variable is THREADSPEC and not
1264 1999-09-08 Tom Tromey <tromey@cygnus.com>
1266 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1267 previous change and implemented a correct test in the __m_count
1270 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1273 1999-09-07 Tom Tromey <tromey@cygnus.com>
1275 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1276 code and don't set errno.
1278 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1279 not `r'. Changed `done_sleeping' to a `bool'.
1281 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1283 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1284 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1285 by another thread, rather than by the GC.
1286 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1287 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1288 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1291 1999-09-03 Tom Tromey <tromey@cygnus.com>
1293 * configure: Rebuilt.
1294 * configure.in: Check for fstat function.
1295 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1298 1999-09-02 Tom Tromey <tromey@cygnus.com>
1300 * include/java-array.h (jobjectArrayjchar): Removed unused
1303 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1304 _Jv_PrepareCompiledClass while holding class mutex.
1306 1999-09-01 Tom Tromey <tromey@cygnus.com>
1308 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1309 (_Jv_PthreadGetMutex): Use it.
1310 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1311 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1312 (_Jv_MutexLock): Likewise.
1313 (_Jv_MutexUnlock): Likewise.
1314 * include/config.h.in: Rebuilt.
1315 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1316 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1317 * configure: Rebuilt.
1318 * libgcj.spec.in: Don't mention INTERPSPEC.
1319 * configure.in (INTERPSPEC): Removed.
1320 Only run pthreads-related checks when using POSIX threads. Check
1321 for m_count and __m_count in mutex structure.
1323 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1325 * java/lang/natClass.cc: Fixed notification of threads
1326 when class initialization is complete.
1328 1999-09-01 Tom Tromey <tromey@cygnus.com>
1330 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1331 * resolve.cc: Removed constants defined by
1332 java.lang.reflect.Modifier.
1333 Include <java/lang/reflect/Modifier.h>.
1334 (_Jv_ResolvePoolEntry): Use values from Modifier.
1335 (_Jv_DetermineVTableIndex): Likewise.
1336 (_Jv_PrepareClass): Likewise.
1338 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1339 java.lang.reflect.Modifier.
1340 Include <java/lang/reflect/Modifier.h>.
1341 (checkExtends): Use values from Modifier.
1342 (checkImplements): Likewise.
1343 (handleField): Likewise.
1344 (handleConstantValueAttribute): Likewise.
1345 (handleFieldsEnd): Likewise.
1346 (handleMethod ): Likewise.
1347 (handleMethodsEnd): Likewise.
1348 (handleClassBegin): Likewise.
1349 * interpret.cc: Removed constants defined by
1350 java.lang.reflect.Modifier.
1351 (continue1): Use values from Modifier.
1352 * java/lang/natClassLoader.cc: Removed constants defined by
1353 java.lang.reflect.Modifier.
1355 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1356 JV_STATE_NOTHING, not `0'.
1357 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1359 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1360 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1362 (_Jv_PthreadGetMutex): New function.
1363 (_Jv_PthreadCheckMonitor): Use it.
1364 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1365 (_Jv_MutexLock): Update `count'.
1366 (_Jv_MutexUnlock): Likewise.
1367 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1370 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1372 * Makefile.am (.java.lo): Add rule.
1374 * Makefile.in: Rebuilt.
1376 1999-09-01 Tom Tromey <tromey@cygnus.com>
1378 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1379 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1381 (_Jv_CondNotify): Use it.
1382 (_Jv_CondNotifyAll): Likewise.
1384 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1386 1999-08-31 Tom Tromey <tromey@cygnus.com>
1388 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1391 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1393 * posix-threads.cc: Include <errno.h>.
1395 1999-08-23 Tom Tromey <tromey@cygnus.com>
1397 * boehm.cc: Undefine TRUE and FALSE.
1399 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1401 1999-08-21 Tom Tromey <tromey@cygnus.com>
1403 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1406 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1408 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1410 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1411 (HAVE_STRUCT_IP_MREQ): Added.
1412 * configure, include/config.h.in: Rebuilt.
1413 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1415 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1416 Disable if ip_mreq is not available.
1418 * configure.in: Check types ssize_t and in_addr_t.
1419 * acconfig.h: Undefine them.
1420 * configure, include/config.h.in: Rebuilt.
1422 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1423 function that detects the signature of getpwuid_r.
1424 (init_properties): Use it.
1425 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1428 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1430 * interpret.cc (continue1): Implement explicit dispatch table.
1431 insn_target: Explicit interpreter switch table.
1432 SAVE_PC: New macro, moves pc saving code into instructions that
1434 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1435 PC_REGISTER_ASM: New macro.
1436 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1437 opcode: Remove local variable.
1438 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1439 (POKEI): Use _Jv_word.
1440 (iinc): Use _Jv_word.
1441 (dupx): Change reference argument (sp) to pointer.
1444 * interpret.cc: Remove instruction timing instrumentation.
1446 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1447 comment. Don't use _Jv_ClassNameSamePackage.
1449 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1450 URLPathEntry, CacheEntry}: Removed.
1452 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1454 (.java.lo): Rule removed.
1456 * Makefile.in: Rebuilt.
1458 1999-08-19 Tom Tromey <tromey@cygnus.com>
1460 * java/lang/natThread.cc (class locker): New class.
1461 (join): Use a locker around _Jv_CondWait.
1464 1999-08-18 Tom Tromey <tromey@cygnus.com>
1466 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1467 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1469 1999-08-18 Tom Tromey <tromey@cygnus.com>
1471 * include/javaprims.h ("Java"): Regenerated namespace decls.
1473 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1475 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1476 from _Jv_InternClassStrings.
1478 * prims.cc (_Jv_RunMain): New function.
1479 (JvRunMain): Remove gij-support.
1481 * gij.cc (main): Use _Jv_RunMain.
1483 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1485 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1486 argument in temp variable.
1487 (continue1): For all op_x2y insns, use temp variable for
1488 intermediate value. Also remove some comments.
1490 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1491 (forName): Don't call _Jv_InitClass.
1493 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1495 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1497 * java/util/jar/JarInputStream.java: New file.
1499 * java/util/jar/JarEntry.java: New file.
1501 * java/util/jar/JarFile.java: New file.
1503 * java/net/URLClassLoader.java: New file.
1505 * java/net/JarURLConnection.java: New file.
1507 * gnu/gcj/protocol/jar/Handler.java: New file.
1509 * gnu/gcj/protocol/jar/Connection.java: New file.
1511 * java/security/SecureClassLoader.java: New file.
1513 * java/lang/ClassLoader.java (parent): New variable.
1514 (ClassLoader (ClassLoader)): new constructor.
1515 (findClass): New method.
1516 (loadClass): Add default 1.2 implementation.
1517 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1518 (readfully): Removed.
1520 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1521 (findSystemClass): New method.
1522 (VMClassLoader): Constructor rewritten.
1524 All other methods removed.
1526 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1527 to gnu::gcj::runtime::VMClassLoader.
1528 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1530 (VMClassLoader::findSystemClass): renamed from findBootClass.
1532 * Makefile.am: Add new files.
1533 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1535 * Makefile.in: Rebuilt.
1537 1999-08-17 Tom Tromey <tromey@cygnus.com>
1539 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1541 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1544 1999-08-16 Tom Tromey <tromey@cygnus.com>
1546 * configure: Rebuilt.
1547 * configure.in: Set DIVIDESPEC to empty string if compiler does
1548 not support -fuse-divide-subroutine.
1550 1999-08-14 Per Bothner <per@bothner.com>
1552 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1553 * java/lang/natClass.cc (initializeClass): Likewise.
1554 * java/lang/ClassLoader.java (resolveClass0): New static method.
1555 (resolveClass): Call resolveClass0.
1556 (findSystemClass): No longer static.
1558 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1560 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1562 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1564 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1567 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1569 * Makefile: Rebuilt.
1570 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1573 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1576 * configure: Rebuilt.
1577 * configure.in: Properly align --help output, fix capitalization
1579 * acinclude.m4: Likewise.
1581 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1583 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1585 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1586 (_Jv_callInterpretedMethod): Unused. Remove.
1587 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1589 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1590 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1591 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1592 * interpret.cc: use _Jv_word.
1593 * defineclass.cc: use_Jv_word.
1594 * resolve.cc: Use _Jv_word.
1595 (_Jv_ResolvePoolEntry): Return _Jv_word.
1596 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1597 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1599 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1602 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1604 * configure: Rebuilt.
1605 * configure.in (sched_yield): Try librt first, then libposix4.
1606 Add -lrt, -lposix4 to THREADSPEC.
1608 1999-08-08 Anthony Green <green@cygnus.com>
1610 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1612 1999-08-08 Anthony Green <green@cygnus.com>
1614 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1617 1999-08-08 Anthony Green <green@cygnus.com>
1621 * include/config.h.in: Rebuilt.
1622 * acconfig.h: Add INTERPRETER.
1624 * Makefile.in: Rebuilt.
1625 * Makefile.am (libffi_files): Identify the libffi object files for
1626 inclusion in libgcj.
1627 (LIBFFIINCS): Define.
1629 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1630 Dummy definition for configurations without an interpreter.
1632 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1633 java::lang::Boolean constructor.
1635 * include/java-interp.h: Always include java-cpool.h.
1637 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1638 when INTERPRETER not defined.
1640 * java/lang/Class.h (finalize): Define.
1642 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1643 IOException from File.getCanonicalPath.
1644 (getStream): Likewise.
1647 * THANKS: More thanks.
1649 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1651 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1653 (_Jv_PrepareClass): Allow non-abstract classes to
1654 have abstract subclasses.
1655 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1657 * interpret.cc (continue1/perform_invoke): Don't sign extend
1659 (continue1/lshl,lshr): Push long, not int.
1660 (continue1/ulshr): Use UINT64, not long long.
1661 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1663 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1664 * java/lang/FirstThread.java (run): Add top-level exception
1666 (run0): Renamed from run.
1668 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1670 * configure.in (--with-interpreter): Added.
1671 * include/config.h.in (INTERPRETER): Added.
1673 * java/lang/ClassLoader.java: File replaced.
1674 * java/lang/VMClassLoader.java: New file.
1675 * java/lang/natClassLoader.cc: New file.
1676 * gnu/gcj/runtime/MethodInvocation.java: New file.
1677 * gnu/gcj/util/path/SearchPath.java: New file.
1678 * gnu/gcj/util/path/PathEntry.java: New file.
1679 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1680 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1681 * gnu/gcj/util/path/URLPathEntry.java: New file.
1682 * gnu/gcj/util/path/CacheEntry.java: New file.
1683 * include/java-interp.h: New file.
1684 * include/java-cpool.h: New file.
1685 * include/java-insns.h: New file.
1686 * defineclass.cc: New file.
1687 * interpret.cc: New file.
1688 * resolve.cc: New file.
1690 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1691 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1692 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1694 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1695 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1697 (initializeClass): Use new JV_ prefixed names. Also, call
1698 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1700 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1701 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1702 JV_STATE_LINKED): New.
1703 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1704 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1705 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1706 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1707 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1708 _Jv_InterpMethodInvocation): New friends for interpreter.
1710 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1711 include/java-cpool.h and renamed with JV_ prefix.
1713 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1715 (_Jv_UnregisterClass): New decl.
1717 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1718 class loader argument.
1719 (_Jv_FindClass): Use class loader.
1721 * prims.cc (_Jv_makeUtf8Const): New function.
1722 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1723 (_Jv_NewPrimArray): Ditto.
1724 (_Jv_FindClassFromSignature): Ditto.
1725 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1726 * java/lang/reflect/natMethod.cc (getType): Ditto.
1728 * include/java-field.h (_Jv_Field::isRef): Make robust for
1729 non-resolved contexts.
1731 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1732 Also, don't mark class->next field.
1734 * java/lang/VirtualMachineError.java: Added FIXME note.
1736 * configure.in (INTERPSPEC): New spec.
1737 * libgcj.spec.in: Added INTERPSPEC.
1738 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1739 gnu/gcj/runtime/MethodInvocation.
1740 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1741 (ordinary_java_source_files): Added above mentioned java classes.
1743 * configure: Rebuilt.
1744 * Makefile.in: Rebuilt.
1746 1999-08-06 Tom Tromey <tromey@cygnus.com>
1748 * configure: Rebuilt.
1749 * configure.in: Look for sched_yield in -lrt.
1751 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1753 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1754 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1755 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1757 (toString): Print correctly when `country' is empty.
1759 1999-08-04 Per Bothner <per@bothner.com>
1761 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1763 1999-08-02 Tom Tromey <tromey@cygnus.com>
1765 * aclocal.m4, configure: Rebuilt for new libtool.
1767 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1769 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1770 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1771 * java/net/ServerSocket.java: Define ANY_IF.
1772 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1773 all network interfaces.
1774 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1775 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1777 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1779 * java/io/natFile.cc (performMkdir): Remove FIXME.
1780 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1782 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1784 * configure.in: Check for bstring.h.
1785 * configure, include/config.h.in: Rebuilt.
1786 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1787 * java/net/natPlainSocketImpl.cc: Likewise.
1789 1999-07-31 Tom Tromey <tromey@cygnus.com>
1794 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1796 * configure.in: Check for struct hostent_data and need for
1797 -D_REENTRANT for gethostbyname_r declaration.
1798 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1799 (lookup): Use hostent_data for fixed_buffer.
1800 * configure, include/config.h.in: Rebuilt.
1802 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1804 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1805 available. Don't cast memmove args to (void*).
1806 * configure.in: Do not abort if memmove is not available.
1808 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1810 * java/lang/natString.cc (substring): optimize where substring is
1812 * java/io/File.java (getName): don't return separator with file name.
1813 * java/io/natFile.cc (attr): fix overflow.
1815 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1817 * mauve-libgcj: Disable Object Serialization tests.
1819 1999-07-20 Warren Levy <warrenl@cygnus.com>
1821 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1822 Default to using PlainDatagramSocketImpl.
1823 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1825 1999-07-19 Tom Tromey <tromey@cygnus.com>
1827 * include/stamp-h.in: New file.
1829 1999-07-12 Tom Tromey <tromey@cygnus.com>
1831 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1834 1999-07-07 Andrew Haley <aph@cygnus.com>
1836 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1837 bytes to make it point after the instruction where the trap
1839 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1841 1999-07-07 Tom Tromey <tromey@cygnus.com>
1843 * mauve-libgcj: Explicitly enable formerly disabled java.text
1846 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1849 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1851 * java/net/URL.java (equals): Compare strings using String.equals.
1852 * java/net/URL.java (sameFile): Ditto.
1854 1999-07-02 Warren Levy <warrenl@cygnus.com>
1856 * configure: Rebuilt.
1857 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1858 * include/config.h.in: Rebuilt.
1859 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1860 (mcastGrp): Updated FIXME comments.
1861 (setOption): Fixed typo.
1862 (getOption):Implemented IP_MULTICAST_IF.
1864 1999-07-02 Warren Levy <warrenl@cygnus.com>
1866 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1867 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1868 (getTimeToLive): Implemented.
1869 (setOption): Implemented IP_MULTICAST_IF.
1871 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1873 * java/lang/String.java (toString): Check for this == null and throw
1874 NullPointerException.
1876 1999-07-01 Warren Levy <warrenl@cygnus.com>
1878 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1879 to count and revised comments to match.
1880 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1881 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1882 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1883 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1884 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1885 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1887 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1889 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1890 properly as count rather than outlength.
1891 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1892 output on overflow rather than buffer fill.
1893 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1894 if markPos is 0 and there is still room in the buffer.
1896 1999-07-01 Andrew Haley <aph@cygnus.com>
1898 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1899 This is a workaround for a bug in glibc's pthreads package which
1900 doesn't deliver any sigcontext information to a signal handler.
1902 1999-06-24 Tom Tromey <tromey@cygnus.com>
1904 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1905 * java/lang/fdlibm.h (HUGE): Conditionally define.
1907 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1909 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1910 * java/lang/e_log.c: Don't use __uint32_t.
1912 1999-05-27 Eric Christopher <echristo@cygnus.com>
1914 * configure: Rebuilt
1915 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1916 * acconfig.h: Rebuilt
1917 * include/config.h.in: Rebuilt
1919 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1920 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1921 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1922 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1923 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1924 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1925 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1926 and namespace collision with __uint32_t
1928 1999-06-23 Tom Tromey <tromey@cygnus.com>
1930 * java/util/zip/InflaterInputStream.java (read): Throw
1931 ZipException if inflater throws a DataFormatException.
1933 1999-06-23 Warren Levy <warrenl@cygnus.com>
1935 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1936 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1937 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1938 is not final per JDK.
1939 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1941 * java/util/zip/DataFormatException.java: Class extends Exception.
1942 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1943 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1944 * java/util/zip/ZipInputStream.java: ditto.
1945 (closeEntry): Changed method name to match JDK spec.
1947 1999-06-21 Tom Tromey <tromey@cygnus.com>
1949 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1952 * Makefile.in: Rebuilt.
1953 * Makefile.am (toolexeclibdir): Define as libdir when
1955 * configure: Rebuilt.
1956 * configure.in (USE_LIBDIR): New conditional.
1958 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1960 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1961 hostname in returned InetAddress objects.
1962 (getLocalHostname): Fix typo.
1963 * java/net/InetAddress.java (getByName): Set hostname on return
1965 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1968 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1970 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1971 interfaces if host==NULL.
1972 (accept): Throw message with InterruptedIOException.
1973 (getOption): Cache localAddress.
1974 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1975 'address' for DatagramSocket.
1976 (setTimeToLive): Fix compiler warnings.
1977 (getOption): Cache localAddress.
1978 * java/net/Socket.java (getLocalAddress): Don't need local
1979 InetAddress object. Add FIXME comment about calling checkConnect().
1980 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1981 connection queue to 50 as per JDK 1.2 docs.
1982 (ServerSocket(int,int)): Listen on all network interfaces by
1983 default, per JDK 1.2 docs.
1984 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1985 Add localAddress caching.
1987 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1989 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1991 (write(byte[],int,int)): ditto.
1993 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1995 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1997 1999-06-11 Warren Levy <warrenl@cygnus.com>
1999 * mauve-libgcj: Activated java.net Mauve tests.
2001 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
2003 * java/net/natInetAddress.cc (aton): Fix typos.
2004 (lookup): Use a bigger buffer size for gethostbyname_r on all
2005 versions of glibc. Updated FIXME comment explaining this.
2006 Modified while loops to not set herr = ERANGE to work around glibc
2007 problems. Use user specified hostname in InetAddress result when
2008 available (consistent with JDK).
2010 1999-06-10 Warren Levy <warrenl@cygnus.com>
2012 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
2013 Throw FileNotFoundException instead of IOException.
2015 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
2017 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
2018 in static field name.
2019 * java/text/DecimalFormat.java: Throw IllegalArgumentException
2020 throughout rather than ParseException.
2022 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
2024 * java/lang/Runtime.java (exec): Convert prog name and arguments
2026 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
2027 environment array conversion. Preserve current environment if envp
2028 not passed. Preserve PATH unless explicitly specified.
2029 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
2030 followed by EOF. Set a flag when a line is terminated by '\r' and
2031 ignore following '\n' if set.
2033 1999-06-02 Warren Levy <warrenl@cygnus.com>
2035 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
2036 Ignore context if spec is an absolute URL. Fix braindead
2038 (hashCode): Use JDK 1.2 style algorithm.
2039 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
2040 context URL properly.
2042 1999-05-30 Anthony Green <green@cygnus.com>
2044 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
2045 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
2047 1999-05-28 Warren Levy <warrenl@cygnus.com>
2049 * java/net/DatagramSocket.java (laddr): Removed.
2050 (DatagramSocket): Removed attempts to get or set laddr if null.
2051 (getLocalAddress): Reimplemented per spec.
2052 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
2054 (joinGroup): Throw NullPointerException if any argument is null.
2055 (leaveGroup): ditto.
2056 * java/net/PlainDatagramSocketImpl.java: Updated comments.
2057 * java/net/PlainSocketImpl.java (timeout): Added.
2058 (getInputStream): Added FIXME comment on how to support timeouts
2060 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
2061 * java/net/Socket.java: Added FIXME comments to identify
2062 conflicting specs between the JCL and JDK 1.2 documents.
2063 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
2064 if host is null. Get localport value resolved by kernel if bind
2066 (receive): Implemented support for timeouts in UDP.
2067 (setOption): Implemented based on natPlainSocketImpl version.
2069 * java/net/natPlainSocketImpl.cc (bind): Get localport value
2070 resolved by kernel if bind lport is 0.
2071 (connect): Get localport value resolved by kernel if bind wasn't
2072 done to set localport.
2073 (accept): Implemented support for timeouts for ServerSocket.
2074 (setOption): Save value for SO_TIMEOUT.
2075 (getOption): Return timeout for SO_TIMEOUT.
2077 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
2079 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
2080 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
2081 (setOption): Made abstract.
2082 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
2083 to avoid cpp conflicts in native code.
2084 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
2085 cpp conflicts in native code.
2086 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
2087 * java/net/Socket.java (getLocalAddress): Implemented.
2088 (setTcpNoDelay): Implemented.
2089 (getTcpNoDelay): Implemented.
2090 (setSoLinger): Implemented.
2091 (getSoLinger): Implemented.
2092 (getSoTimeout): Verify class type.
2093 (setSendBufferSize): Implemented.
2094 (getSendBufferSize): Implemented.
2095 (setReceiveBufferSize): Implemented.
2096 (getReceiveBufferSize): Implemented.
2097 (toString): Prepended "Socket".
2098 * java/net/SocketImpl.java (toString): Rewritten.
2099 (getOption): Made abstract.
2100 (setOption): Made abstract.
2101 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
2102 (setOption): Implemented.
2103 (getOption): Implemented.
2105 1999-05-26 Warren Levy <warrenl@cygnus.com>
2107 * java/net/DatagramSocket.java (DatagramSocket): Get local host
2108 address when null. Set SO_REUSEADDR for multicasts.
2109 (getSoTimeout): Implemented.
2110 (setSoTimeout): Implemented.
2111 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
2112 * java/net/MulticastSocket.java (getInterface): Implemented.
2113 (setInterface): Implemented.
2114 (setTimeToLive): Check for invalid ttl.
2115 (joinGroup): Verify multicast address and security.
2116 (leaveGroup): Verify multicast address and security.
2117 (send): Implemented.
2118 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
2124 (getTTL): Implemented as non-native.
2128 * java/net/ServerSocket.java (setSoTimeout): Implemented.
2129 (getSoTimeout): Implemented.
2130 (setSocketFactory): Made synchronized.
2131 * java/net/Socket.java (setSoTimeout): Implemented.
2132 (getSoTimeout): Implemented.
2133 (close): Made synchronized.
2134 (setSocketImplFactory): Made synchronized.
2135 * java/net/SocketImpl.java: Implement SocketOptions interface.
2136 * java/net/natInetAddress.cc: Corrected module name at top of file.
2137 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
2138 (bind): Added FIXME.
2139 (peek): Implemented.
2145 (setOption): Implemented for SO_REUSEADDR.
2146 (getOption): Implemented for SO_REUSEADDR.
2148 1999-05-24 Tom Tromey <tromey@cygnus.com>
2150 * java/util/ResourceBundle.java (getBundle): Throw
2151 NullPointerException if baseName is null.
2153 1999-05-22 Tom Tromey <tromey@cygnus.com>
2155 * java/util/zip/ZipInputStream.java (fill): New method.
2156 (compressed_len): New instance variable.
2157 (getNextStream): Set it.
2158 (read): Reset inflater on EOF. Only read via `super' if entry is
2160 (skip): Only skip via `super' if entry is deflated.
2161 * java/util/zip/Deflater.java (last_input_count): Removed.
2162 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
2164 (needsInput): Don't use last_input_count.
2165 (setInput): Don't set last_input_count.
2166 * java/util/zip/natInflater.cc (getRemaining): Return correct
2168 (inflate): Return 0 if input array is length 0.
2169 (setInput): Don't set last_input_count.
2170 * java/util/zip/Inflater.java (last_input_count): Removed.
2172 1999-05-21 Tom Tromey <tromey@cygnus.com>
2174 * Makefile.in: Rebuilt.
2175 * Makefile.am (INCLUDES): Added $(ZINCS).
2176 * configure: Rebuilt.
2177 * configure.in (ZINCS): New subst.
2179 1999-05-21 Andrew Haley <aph@cygnus.com>
2181 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2182 to signal options to allow the same exceptions to be rethrown
2185 1999-05-20 Andrew Haley <aph@cygnus.com>
2187 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2189 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2190 (INIT_FPE): Exception string made more informative.
2191 * include/sparc-signal.h (INIT_FPE): Exception string made more
2193 * testsuite/libjava.lang/Divide_1.java: New file.
2194 * testsuite/libjava.lang/Divide_1.out: New file.
2196 1999-05-19 Tom Tromey <tromey@cygnus.com>
2198 * aclocal.m4, configure: Rebuilt.
2199 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2201 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2204 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2206 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2208 (update): Fail in default case. Always initialize `strat'.
2210 * mauve-libgcj: Enable java.util.zip.
2212 1999-05-18 Warren Levy <warrenl@cygnus.com>
2214 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2215 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2216 PlainDatagramSocketImpl.java, and SocketOptions.java.
2217 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2218 * Makefile.in: Rebuilt.
2220 * java/net/DatagramPacket.java: New file.
2221 * java/net/DatagramSocket.java: New file.
2222 * java/net/DatagramSocketImpl.java: New file.
2223 * java/net/MulticastSocket.java: New file.
2224 * java/net/PlainDatagramSocketImpl.java: New file.
2225 * java/net/SocketOptions.java: New file.
2226 * java/net/natPlainDatagramSocketImpl.cc: New file.
2228 1999-05-18 Tom Tromey <tromey@cygnus.com>
2230 * java/util/zip/ZipOutputStream.java (level): Initial value is
2231 Deflater.DEFAULT_COMPRESSION.
2232 (close): New method.
2233 (closeEntry): Likewise.
2235 (put_version): Likewise.
2236 (write_entry): Likewise.
2237 (put2, put4): Now return `int'.
2238 (comment): Default to empty string.
2239 (bytes_written): New instance variable.
2241 * java/util/zip/ZipEntry.java (setComment): Limit length of
2243 (setCrc): Check CRC validity.
2244 (setExtra): Check argument validity.
2245 (setMethod): Likewise.
2246 (setSize): Likewise.
2247 (ZipEntry): Likewise.
2248 * include/javaprims.h: Updated namespace declarations.
2249 * Makefile.in: Rebuilt.
2250 * Makefile.am (ordinary_java_source_files): Mention new files.
2251 (nat_source_files): Likewise.
2252 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2255 (getInputStream): Handle compressed entries.
2256 * java/util/zip/GZIPOutputStream.java: New file.
2257 * java/util/zip/GZIPInputStream.java: New file.
2258 * java/util/zip/DataFormatException.java: New file.
2259 * java/util/zip/CheckedInputStream.java: New file.
2260 * java/util/zip/CheckedOutputStream.java: New file.
2261 * java/util/zip/InflaterInputStream.java: Implemented.
2262 * java/util/zip/natInflater.cc: New file.
2263 * java/util/zip/Deflater.java: Implemented.
2264 * java/util/zip/natDeflater.cc: New file.
2265 * java/util/zip/DeflaterOutputStream.java: Implemented.
2267 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2268 ZipException, not IOException.
2269 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2272 1999-05-17 Tom Tromey <tromey@cygnus.com>
2274 * java/lang/natSystem.cc (init_properties): URL now points to
2277 1999-05-12 Per Bothner <bothner@cygnus.com>
2279 * java/util/Calendar.java (set): First call computeFields if needed.
2280 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2282 1999-05-12 Tom Tromey <tromey@cygnus.com>
2284 * configure: Rebuilt.
2285 * configure.in: Look for -ldl when using the Boehm collector.
2286 Look for sched_yield in -lposix4.
2288 1999-05-12 Per Bothner <bothner@cygnus.com>
2290 * java/io/File.java (mkdirs): Handle a null parent directory.
2292 1999-05-12 Tom Tromey <tromey@cygnus.com>
2294 * include/javaprims.h: Updated namespace declarations.
2295 * classes.pl (scan): Uniquify class list.
2296 * Makefile.in, configure: Rebuilt.
2297 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2298 (built_java_source_files): New macro.
2299 (nat_headers): Added built_java_source_files.
2300 (javao_files): Likewise.
2301 (EXTRA_libgcj_la_SOURCES): Likewise.
2302 (libgcj.zip): Create built class files.
2303 ($(built_java_source_files:.java=.class)): New target.
2304 (jv_convert_LDADD): Added -L$(here)/.libs.
2305 * configure.in: Create links for ConcreteProcess.java and
2306 natConcreteProcess.cc.
2307 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2308 * java/lang/natEcosProcess.cc: New file.
2309 * java/lang/EcosProcess.java: New file.
2310 * java/lang/PosixProcess.java: New file.
2311 * java/lang/natPosixProcess.cc: New file.
2313 1999-05-12 Warren Levy <warrenl@cygnus.com>
2315 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2316 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2317 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2318 (connect): Throw ConnectException.
2320 1999-05-11 Tom Tromey <tromey@cygnus.com>
2322 * Makefile.in: Rebuilt.
2323 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2324 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2327 * Makefile.in: Rebuilt.
2328 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2329 and it causes problems with libtool.
2331 * Makefile.in, configure: Rebuilt.
2332 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2333 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2334 (jv_convert_DEPENDENCIES): Added ZDEPS.
2335 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2337 (THREADSPEC): Added `-L' to point to qthreads build directory.
2341 * configure, Makefile.in: Rebuilt.
2342 * Makefile.am (toolexeclib_DATA): New macro.
2343 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2344 Recognize --with-system-zlib.
2345 (GCSPEC): New subst.
2346 (THREADSPEC): New subst.
2347 (SYSTEMSPEC): New subst.
2348 (ZLIBSPEC): New subst.
2349 * libgcj.spec.in: New file.
2351 1999-05-10 Tom Tromey <tromey@cygnus.com>
2353 * java/io/InputStreamReader.java (read): If length is 0, return
2354 0. Reset `wpos' and `wcount' when buffer has been filled and
2357 * java/util/Properties.java (save): Removed `FIXME' comment.
2358 (load): Invalid characters in \u now treated as terminators.
2359 Make sure to append character resulting from `\' handling.
2360 Cast to `char' when appending to key or value.
2361 (skip_ws): Inverted test for whitespace.
2363 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2365 (readLine): Likewise.
2366 (readFully): Implemented.
2368 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2370 * java/awt/natToolkit.cc: Added copyright header.
2371 * java/util/zip/InflaterInputStream.java: Added copyright header.
2373 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2375 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2377 (getNextStream): Likewise.
2379 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2381 (getBundle): Don't explicitly throw null pointer exception.
2383 * gnu/gcj/RawData.java: Added copyright header.
2385 * include/jni.h (_Jv_va_list): Always define as va_list.
2387 1999-05-9 Anthony Green <green@cygnus.com>
2389 * java/text/DateFormat.java (computeInstance): Separate time
2391 (getDateTimeInstance): Ditto.
2392 (getDateTimeInstance(int,int)): New method.
2394 * Makefile.in: Rebuilt.
2395 * Makefile.am (ordinary_java_source_files): Add new classes.
2397 * java/util/PropertyResourceBundle.java: New file.
2398 * gnu/gcj/util/EnumerationChain.java: New file.
2400 1999-05-07 Tom Tromey <tromey@cygnus.com>
2402 * acconfig.h (GCJVERSION): New undef.
2403 * java/lang/natSystem.cc (init_properties): Define java.version,
2404 java.class.version, os.name, os.arch, os.version.
2405 Include <sys/utsname.h> if required.
2406 * configure: Rebuilt.
2407 * configure.in: Compute and define GCJVERSION.
2409 * java/lang/natSystem.cc (default_file_encoding): Now static.
2411 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2413 * libtool-version: New file.
2414 * Makefile.in: Rebuilt.
2415 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2418 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2419 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2422 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2423 (we pick those up already).
2425 1999-05-05 Per Bothner <bothner@cygnus.com>
2427 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2428 stub classes. (This is enough to get Kawa to compile against libgcj.)
2430 * gnu/gcj/RawData.java: New class.
2431 * doc/cni.sgml: Document RawData.
2433 * java/util/zip/InflaterInputStream.java: New stub class.
2434 * java/util/zip/ZipInputStream.java: New class. Partly works.
2435 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2436 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2437 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2438 * java/util/zip/ZipOutputStream.java: Start implementation.
2440 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2441 (default_file_encoding): New global, initial value is above macro.
2442 (init_properties): Default file.encoding to default_file_encoding.
2444 * Makefile.am: Add new classes.
2446 1999-05-05 Tom Tromey <tromey@cygnus.com>
2448 * Makefile.in: Rebuilt.
2449 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2450 (clean-local): New target
2452 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2453 (load, loadLibrary): Now native.
2455 * java/lang/Runtime.java (load, loadLibrary): Now native.
2456 (init): New native method.
2457 (Runtime): Use init.
2458 * prims.cc: Include <ltdl.h> if required.
2459 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2461 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2463 * configure.in: Switch from irix threads to posix threads
2464 * configure: Regenerate.
2466 1999-04-30 Tom Tromey <tromey@cygnus.com>
2468 * Makefile.in: Rebuilt.
2469 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2471 1999-04-29 Tom Tromey <tromey@cygnus.com>
2473 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2476 * java/util/Locale.java (Locale(String,String)): Implement in
2477 terms of 3-argument version; variant now defaults to empty
2479 (toString): Assume variant is not null.
2480 (equals): Assume all strings are not null.
2481 (Locale): Throw NullPointerException if any argument is null.
2483 * java/util/ResourceBundle.java (getBundle): Don't try the base
2484 name; now implicit in partialGetBundle call.
2485 (trySomeGetBundle): Search for parent bundles and call setParent
2487 (partialGetBundle): Added `langStop' argument. Use
2488 `Locale.toString' to compute bundleName.
2489 (resource_cache): New static field.
2490 (partialGetBundle): Cache the returned resource bundle. Now
2493 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2496 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2497 * java/text/natCollator.cc (decomposeCharacter): `base' now
2499 * Makefile.in: Rebuilt.
2500 * Makefile.am (ordinary_java_source_files): Added
2501 CollationElementIterator, CollationKey, Collator,
2503 (nat_source_files): Added natCollator.cc.
2504 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2505 (compare): Pass `this' to CollationElementIterator constructor.
2506 (getCollationElementIterator): Likewise.
2507 (ceiNext): Fix off-by-one error when finding initial substring.
2508 (next): Correctly mask off bits when computing return value.
2509 Fixed return values when one string is shorter than the other.
2510 * java/text/CollationElementIterator.java (collator): New field.
2511 (CollationElementIterator): Added collator argument.
2512 (next): Call ceiNext on collator object.
2514 1999-04-26 Tom Tromey <tromey@cygnus.com>
2516 * natCollator.cc: New file.
2518 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2519 (GregorianCalendar): Use it in all constructors.
2520 * java/util/Calendar.java (Calendar): Changed argument name to
2521 `zone' to match code.
2523 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2524 * java/text/CollationKey.java: New file.
2525 * java/text/CollationElementIterator.java: New file.
2526 * java/text/Collator.java: New file.
2527 * java/text/RuleBasedCollator.java: New file.
2529 * Makefile.in: Rebuilt.
2530 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2531 (jv_convert_LDADD): Explicltly add -lm -lc.
2533 1999-04-26 Tom Tromey <tromey@cygnus.com>
2535 * configure, Makefile.in: Rebuilt.
2536 * configure.in: Added AM_PROG_LIBTOOL.
2537 (GCOBJS): Use `.lo' form of files.
2538 (THREADOBJS): Likewise.
2539 (GCDEPS): Use `.la' form of library.
2540 (GCLIBS): Set to be the same as GCDEPS.
2541 (THREADDEPS): Use `.la' form of library.
2542 (THREADLIBS): Set to be the same as THREADDEPS.
2543 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2544 toolexeclib_LIBRARIES.
2545 (libgcj_la_SOURCES): Renamed for libtoolization.
2546 (EXTRA_libgcj_la_SOURCES): Likewise.
2547 (libgcj_la_DEPENDENCIES): Likewise.
2548 (libgcj_la_LIBADD): Likewise.
2549 ($(nat_files)): Use LTCXXCOMPILE.
2550 ($(c_files)): Use LTCOMPILE.
2551 (GCJCOMPILE): New macro.
2553 (.java.o): Likewise.
2554 ($(javao_files)): Likewise.
2555 (jv_convert_LINK): Use LIBTOOL.
2556 (nat_files): Use `.lo' files.
2557 (c_files): Likewise.
2558 (javao_files): Likewise.
2559 (.class.lo): Renamed.
2560 (.java.lo): Likewise.
2561 ($(nat_files)): Depend on %.lo.
2562 ($(c_files)): Likewise.
2563 ($(javao_files)): Likewise.
2564 (jv_convert_LDADD): Link against .lo files.
2565 (jv_convert_DEPENDENCIES): Depend on .lo files.
2566 (maintainer-check): Depend on libgcj.la, but examine .a file.
2567 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2568 (libgcj_la_LDFLAGS): New macro.
2570 1999-04-23 Warren Levy <warrenl@cygnus.com>
2572 * Makefile.am: Added URLDecoder and URLEncoder.
2573 * Makefile.in: Rebuilt.
2575 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2576 setSocketImplFactory to match spec.
2577 * java/net/Socket.java (getSoLinger): Changed return type to
2580 * java/net/URLDecoder.java: New file.
2581 * java/net/URLEncoder.java: New file.
2583 1999-04-21 Tom Tromey <tromey@cygnus.com>
2585 * java/lang/natString.cc (getBytes): Reverted earlier change and
2586 applied correct fix from Per Bothner.
2588 * java/lang/String.java: Don't throw
2589 UnsupportedEncodingException.
2591 * java/lang/natString.cc (getBytes): Correctly size result
2592 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2594 1999-04-20 Andrew Haley <aph@cygnus.com>
2596 * include/sparc-signal.h: new file.
2597 * configure.in: include/sparc-signal.h added.
2598 * configure: regenerated.
2599 * prims.cc (JvRunMain): signal handling code rewritten to be more
2601 (catch_segv): ditto.
2603 * include/i386-signal.h: reorganized.
2604 * include/default-signal.h: reorganized.
2606 1999-04-19 Tom Tromey <tromey@cygnus.com>
2608 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2609 once. From Anthony Green.
2611 1999-04-19 Andrew Haley <aph@cygnus.com>
2613 * Makefile.in: Processed with new automake.
2615 1999-04-19 Tom Tromey <tromey@cygnus.com>
2617 * include/javaprims.h: Removed security namespace.
2619 1999-04-20 Anthony Green <green@cygnus.com>
2621 * java/io/PrintStream.java (println): Remove extra println.
2623 1999-04-19 Anthony Green <green@cygnus.com>
2625 * Makefile.in: Rebuilt.
2626 * Makefile.am (ordinary_java_source_files): Add new security files.
2628 * java/security/NoSuchAlgorithmException.java,
2629 java/security/MessageDigest.java: New files.
2631 * include/javaprims.h: Add security namespace.
2633 1999-04-16 Per Bothner <bothner@cygnus.com>
2635 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2636 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2637 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2638 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2639 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2640 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2641 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2642 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2643 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2644 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2645 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2646 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2647 * Makefile.am: Various changes for new files and conversions.
2649 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2650 New overloading, allows greater efficiency.
2651 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2652 New overloading (for efficiency - avoids copying).
2654 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2655 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2657 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2658 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2659 (writeChars): Don't be quite so eager to flush.
2660 * java/io/PrintStream.java: Rewrite. Now more similar to
2661 OutputStreamWriter, using explicit UnicodeToBytes converter.
2662 Also, autoflush does not need to flush so often.
2663 * java/lang/natString.cc (getBytes): More efficient algorithm.
2664 (init(jbyteArray,jint,jint,jstring)): More efficient.
2666 1999-04-15 Warren Levy <warrenl@cygnus.com>
2668 * Makefile.am (ordinary_java_source_files): Added new Connection
2669 and Handler classes in gnu.gcj.protocol.file package.
2670 * Makefile.in: Rebuilt.
2672 * gnu/gcj/protocol/file/Connection.java: New file.
2673 * gnu/gcj/protocol/file/Handler.java: New file.
2674 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2675 if doInput allows input.
2676 (getOutputStream): Check if doOutput allows output.
2677 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2679 1999-04-14 Tom Tromey <tromey@cygnus.com>
2681 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2682 buffer larger to work around bug.
2683 From Bryce McKinlay <bryce@albatross.co.nz>.
2685 1999-04-14 Andrew Haley <aph@cygnus.com>
2687 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2688 NaNs are always converted to the same long value.
2689 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2692 1999-04-13 Tom Tromey <tromey@cygnus.com>
2694 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2695 instead switch on actual element type.
2697 * Makefile.in: Rebuilt.
2698 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2700 1999-04-13 Andrew Haley <aph@cygnus.com>
2702 * include/i386-signal.h, include/default-signal.h: New files.
2703 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2705 (catch_fpe): New function.
2706 * configure.in: Make link to appropriate include/java-signal.h.
2707 * configure: Rebuilt.
2708 * Makefile.am: include/java-signal.h added to dependency list.
2709 * Makefile.in: Rebuilt.
2711 1999-04-12 Urban Widmark <urban@svenskatest.se>
2713 * java/io/DataInputStream.java (readLine): Corrected handling of
2714 empty lines, from null to "".
2716 1999-04-12 Tom Tromey <tromey@cygnus.com>
2718 * Makefile.in: Rebuilt.
2719 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2721 * java/lang/natSystem.cc (SystemClass): New define.
2722 (init_properties): Synchronize.
2724 1999-04-08 Geoff Berry <gcb@gnu.org>
2726 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2727 * natPlainSocketImpl.cc (accept): Add missing else if check
2730 1999-04-08 Tom Tromey <tromey@cygnus.com>
2732 * java/lang/Long.java (parseLong): Corrected overflow detection
2734 * java/lang/Integer.java (parseInt): Corrected overflow detection
2737 * java/io/PrintStream.java (print): Handle null string argument.
2738 (println): Likewise.
2740 1999-04-07 Warren Levy <warrenl@cygnus.com>
2742 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2743 Set count to 0 when InputStreamReader returns -1 for EOF.
2745 1999-04-07 Tom Tromey <tromey@cygnus.com>
2747 * mauve-libgcj: Omit java.text.Collator,
2748 java.text.RuleBasedCollator.
2750 1999-04-06 Tom Tromey <tromey@cygnus.com>
2752 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2753 IOException from getHttpHeaders().
2754 (getHeaderFieldKey): Likewise.
2756 * include/javaprims.h: Regenerated declarations.
2758 * Makefile.in: Rebuilt.
2759 * Makefile.am (ordinary_java_source_files): Updated for removed
2762 1999-04-06 Per Bothner <bothner@cygnus.com>
2764 * java/util/zip/Adler32.java: New class.
2765 * java/util/zip/CRC32.java: Add working method bodies.
2766 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2767 * Makefile.in: Re-generate.
2769 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2771 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2772 from version in removed www hierarchy.
2773 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2774 version in removed www hierarchy.
2776 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2777 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2778 * gnu/gcj/www/protocol/http: Removed dir.
2779 * gnu/gcj/www/protocol: Removed dir.
2780 * gnu/gcj/www: Removed dir.
2782 * java/net/HttpURLConnection.java: Revised comments to indicate
2783 missing JDK 1.2 methods.
2785 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2786 hierarchy rather than the gnu/gcj/www/protocol one.
2787 * java/net/URLConnection.java: Updated status comments.
2788 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2789 the gnu/gcj/www/content one.
2791 1999-04-06 Per Bothner <bothner@cygnus.com>
2793 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2794 The gen-from-JIS program is in $(CONVERT_DIR).
2796 1999-04-06 Tom Tromey <tromey@cygnus.com>
2798 * mauve-libgcj: Renamed from mauve-libjava.
2800 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2802 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2803 (getResponseMessage): Implemented.
2804 (getResponseVals): New private method.
2806 * java/net/URLConnection.java (getContent): Implemented.
2807 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2809 1999-04-05 Tom Tromey <tromey@cygnus.com>
2811 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2812 (jv_convert_SOURCES): Renamed.
2813 (EXTRA_jv_convert_SOURCES): Likewise.
2814 (jv_convert_LDFLAGS): Likewise.
2815 (jv_convert_LINK): Likewise.
2816 (jv_convert_LDADD): Likewise.
2817 (jv_convert_DEPENDENCIES): Likewise.
2819 * Makefile.in: Rebuilt.
2820 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2823 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2825 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2826 method for comparison.
2828 * java/net/URLConnection.java (getContentLength): Implemented.
2829 (getContentType): Implemented.
2830 (getContentEncoding): Implemented.
2831 (getExpiration): Implemented.
2832 (getDate): Implemented.
2833 (getLastModified): Implemented.
2834 (getHeaderFieldInt): Implemented.
2835 (getHeaderFieldDate): Implemented.
2837 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2839 * java/net/URLConnection.java (toString): Implemented.
2840 (setContentHandlerFactory): Implemented.
2841 (setContentHandler): Wrote new private helper method.
2843 1999-04-01 Tom Tromey <tromey@cygnus.com>
2845 * Makefile.in: Rebuilt.
2846 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2847 of 1999-03-31; we always want to build all the .class files.
2848 Depend on java_source_files, not libgcj.zip.
2849 (nat_headers): Define in terms of ordinary_java_source_files.
2851 1999-03-31 Tom Tromey <tromey@cygnus.com>
2853 * Makefile.in: Rebuilt.
2854 * Makefile.am (special_java_source_files): New macro.
2855 (java_source_files): Use it.
2856 (ordinary_java_source_files): New macro.
2857 (java_source_files): Use it.
2858 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2859 creating headers for those files with hand-maintained headers.
2861 * include/javaprims.h: Regenerated namespace declarations.
2862 * classes.pl (scan): Include [0-9] in regexp for matching class
2863 names; for java.util.zip.CRC32.
2865 * Makefile.in: Rebuilt.
2866 * Makefile.am (nat_headers): Redefined to generate all possible
2869 * java/util/zip/ZipException.java: In package java.util.zip, not
2872 1999-03-30 Tom Tromey <tromey@cygnus.com>
2874 * configure: Rebuilt.
2875 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2876 eh-common.h when not building in tree with gcc.
2878 * Makefile.in: Rebuilt.
2879 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2880 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2882 ($(java_source_files:.java=.class)): New target.
2884 * Makefile.in: Rebuilt.
2885 * Makefile.am (java_source_files): Added
2886 java/net/HttpURLConnection.java and
2887 gnu/gcj/www/protocol/http/Connection.java.
2889 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2891 * gnu/gcj/www/protocol/http/Connection.java: New file.
2892 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2893 * java/net/HttpURLConnection.java: New file.
2894 * java/net/URLConnection.java (getHeaderField): Implemented default.
2895 (getHeaderFieldKey): Implemented default method.
2897 1999-03-30 Tom Tromey <tromey@cygnus.com>
2899 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2901 * java/util/zip/Deflater.java: Added copyright header.
2902 * java/util/zip/CRC32.java: Added copyright header.
2904 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2905 that it is automatically generated.
2906 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2908 * gnu/gcj/convert/BytesToUnicode.java,
2909 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2910 gnu/gcj/convert/Input_EUCJIS.java,
2911 gnu/gcj/convert/Input_UTF8.java,
2912 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2913 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2914 gnu/gcj/convert/Output_8859_1.java,
2915 gnu/gcj/convert/Output_JavaSrc.java,
2916 gnu/gcj/convert/Output_UTF8.java,
2917 gnu/gcj/convert/UnicodeToBytes.java,
2918 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2920 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2922 * Makefile.in, configure: Rebuilt.
2923 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2924 not if test subdir exists.
2925 (--enable-gcj-classes): Removed; gcj always used to generate
2927 (JAVA, JAVAC): Removed.
2928 (--enable-single-compilation, --enable-source-compilation):
2931 (NATIVE): New conditional.
2932 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2933 `install-exec' to work.
2934 (toolexeclibdir): Likewise.
2935 (toollib_LIBRARIES): Likewise.
2936 (AM_MAKEFLAGS): Don't pass tooldir.
2938 (javao_files): Redefined.
2939 (java_source_files): New macro.
2940 (c_source_files): New macro.
2941 (c_files): Redefined in terms of c_source_files.
2942 (java_io_files, java_lang_files, java_net_files, java_text_files,
2943 java_util_files, gnu_files, java_files): Removed.
2944 (class_io_files, class_lang_files, class_net_files,
2945 class_text_files, class_util_files, class_gnu_files, class_files):
2947 (nat_source_files): New macro.
2948 (nat_files): Redefined in terms of nat_source_files.
2949 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2950 java_source_files. Removed no-such-file.c.
2952 (ETAGS_ARGS): Removed.
2953 (TAGS_DEPENDENCIES): Likewise.
2954 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2956 (src_io_files, src_lang_files, src_text_files, src_util_files,
2957 src_gnu_files): Removed.
2958 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2959 (BUILT_SOURCES): Removed.
2960 (header-check): New target.
2962 (noinst_PROGRAMS): New macro.
2963 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2965 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2966 (gen-from-JIS): Build in top directory.
2967 (convert_source_files): New macro.
2968 (convert_SOURCES): New macro.
2969 (convert_LDFLAGS): Likewise.
2970 (convert_LINK): Likewise.
2971 (convert_LDADD): Likewise.
2972 (convert_DEPENDENCIES): Likewise.
2974 (gen-from-JIS): Removed.
2975 (gen_from_JIS_SOURCES): New macro.
2976 (gen_from_JIS_LDADD): Likewise.
2977 (gen_from_JIS_DEPENDENCIES): Likewise.
2979 * configure: Rebuilt.
2980 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2981 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2982 when defining conditional.
2984 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2986 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2987 The Unicode Consortium does not permit their re-distribution.
2988 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2989 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2991 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2993 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2995 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2997 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2998 from Unicode Consortium.
2999 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
3000 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
3001 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
3002 New tables, generated using gen-from-JIS.
3003 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
3004 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
3005 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
3006 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
3008 * gnu/gcj/convert/Convert.java: New application.
3009 * Makefile.am, Makefile.in (convert): New program, using Convert.
3010 Build the various JIS conversion tables (in maintainer mode).
3012 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
3014 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
3016 * java/net/URL.java (URL): Deal with null property value. Use "."
3017 as separator in building class name.
3018 * java/net/URLConnection.java: Implemented majority of stubbed methods.
3019 * java/net/URLStreamHandler.java (parseURL): Use "" in string
3020 manipulations instead of 'null'. Comment cleanup. Use 0 for the
3021 beginning of the substring rather than 'start'.
3023 1999-03-26 Tom Tromey <tromey@cygnus.com>
3025 * include/java-chartables.h: Rebuilt.
3026 * include/java-chardecomp.h: New file.
3027 * chartables.pl: Generate output files directly. Added support
3028 for generating decomposition header.
3029 (canonical_decomposition, full_decomposition): New globals.
3030 (DECOMPOSITION): New constant.
3031 (process_char): Call add_decomposition.
3032 (add_decomposition): New sub.
3033 (write_decompositions): New sub.
3035 1999-03-25 Tom Tromey <tromey@cygnus.com>
3037 * java/text/CollationElementIterator.java: New file.
3039 * mauve-libjava: Omit StringTest.
3041 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
3043 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
3044 without a '/' when parsing protocol. Handle ref outside of parseURL.
3045 (hashCode): Implemented.
3046 (set): Don't expand -1 to default port.
3047 (getDefaultPort): Removed.
3049 * java/net/URLStreamHandler.java (parseURL): Implemented.
3050 (toExternalForm): Implemented.
3052 1999-03-23 Tom Tromey <tromey@cygnus.com>
3054 * java/text/BreakIterator.java (getSentenceInstance):
3056 * gnu/gcj/text/SentenceBreakIterator.java: New file.
3058 * Makefile.in: Rebuilt.
3059 * Makefile.am (nat_headers): Added IllegalAccessException.
3060 * java/lang/natClass.cc (newInstance): Throw
3061 IllegalAccessException, not IllegalAccessError.
3062 Include IllegalAccessException.h.
3064 1999-03-22 Tom Tromey <tromey@cygnus.com>
3066 * gnu/gcj/text/LineBreakIterator.java: New file.
3067 * java/text/BreakIterator.java (getLineInstance): Implemented.
3069 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
3070 copy constructor private.
3071 (previous, next): Removed erroneous comment about line
3073 (previous): Correctly recognize break between non-letter on the
3074 left and letter on the right. Handle apostrophes correctly.
3076 * java/text/BreakIterator.java (getWordInstance): Implemented.
3077 * gnu/gcj/text/WordBreakIterator.java: New file.
3078 * gnu/gcj/text/CharacterBreakIterator.java: Extend
3080 * gnu/gcj/text/BaseBreakIterator.java: New file.
3082 1999-03-19 Tom Tromey <tromey@cygnus.com>
3084 * java/text/BreakIterator.java: New file (partially stubbed out).
3085 * gnu/gcj/text/CharacterBreakIterator.java: New file.
3087 * include/config.h.in: Rebuilt.
3088 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
3089 (HAVE_TIMEZONE): Likewise.
3090 * configure: Rebuilt.
3091 * configure.in: Added timezone checks.
3092 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
3095 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
3097 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
3098 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
3099 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
3100 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
3101 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
3102 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
3103 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
3104 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
3106 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
3107 (BSD_COMP): Kludge needed for Solaris2.
3109 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
3111 * java/net/URL.java (URL(java.net.URL, string): Moved code to
3112 URL(java.net.URL, string, URLStreamHandler) and call it with a
3113 null handler. In latter constructor, added SecurityManager check.
3114 (set): Expect null handler on bad protocol rather than an exception.
3115 (setURLStreamHandler): Simplified exception handling; return null
3116 on invalid protocol.
3118 1999-03-18 Tom Tromey <tromey@cygnus.com>
3120 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
3122 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
3124 Include PrintStream.h, InputStream.h.
3125 * java/lang/System.java (ForwardingInputStream,
3126 ForwardingOutputStream): Removed.
3127 (setErr, setIn, setOut): Now native.
3129 Reverted patch from 1999-02-12 to work around problem in
3131 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
3132 (_Jv_eh_free): Use free.
3134 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
3135 for path name. Minor formatting fixes.
3137 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
3139 * prims.cc (fail_on_finalization): New function.
3140 (_Jv_GCWatch): Likewise.
3142 * prims.cc (JvRunMain): Initialize `nullp'.
3143 (nullp): New global.
3144 (catch_segv): Throw nullp.
3146 * Makefile.in: Rebuilt.
3147 * Makefile.am (ZIP): In "null target" case, zip is found in the
3150 * prims.cc (_Jv_PrimClass): Initialize all elements of class
3154 * java/lang/StringBuffer.java (StringBuffer): Don't use
3155 ensureCapacity to set initial capacity.
3156 (capacity): Subtract `length' from return result.
3158 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
3160 * java/io/natFileDescriptorPosix.cc (open): Throw
3161 FileNotFoundException, but with filename and errno in msg.
3163 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
3165 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
3166 functionality folded into java/net/URL.java per spec.
3168 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
3169 than EEXIST for throwing FileNotFoundException.
3171 * java/net/URL.java: Folded in default URLStreamHandlerFactory
3172 algorithm per JDK 1.2 doc. Added SecurityManager checks.
3174 * java/net/URLStreamHandler.java (parseURL): Added stub.
3176 1999-03-15 Andrew Haley <aph@cygnus.com>
3178 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3181 1999-03-15 Andrew Haley <aph@cygnus.com>
3183 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3186 1999-03-12 Tom Tromey <tromey@cygnus.com>
3188 * prims.cc (catch_segv): New function.
3189 Include <signal.h> if HANDLE_SEGV defined. Include
3190 NullPointerException.h.
3191 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3194 * java/text/SimpleDateFormat.java (equals): Ensure that object is
3195 a SimpleDateFormat, not just a DateFormat.
3196 (defaultCenturyStart, formatData, pattern): Now private.
3197 (append): Now `final'. Use `NumberFormat.format'.
3199 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3201 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3204 * java/text/MessageFormat.java (format): Use default MessageFormat
3206 (parse, parseObject): Wrote.
3208 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3211 1999-03-12 Andrew Haley <aph@cygnus.com>
3213 * java/lang/String.java (indexOf): Replace with native method for
3215 * java/lang/natString.cc (IndexOf): As above.
3217 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3218 Argument check corrected.
3219 (init(jbyteArray,jint,jint,jstring)): Likewise.
3221 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3222 1.2 compliant method.
3224 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3226 * java/lang/Float.java (byteValue, shortValue): Likewise.
3228 1999-03-11 Tom Tromey <tromey@cygnus.com>
3230 * java/text/DecimalFormat.java (parse): Wrote.
3232 * java/text/ChoiceFormat.java (parse): Set error index on
3233 ParsePosition object.
3235 * java/lang/Integer.java (parseInt): Throw exception on overflow
3236 when intermediate result is most negative number. Changed
3237 overflow detection as well.
3238 * java/lang/Long.java (parseLong): Likewise.
3240 * configure, Makefile.in: Rebuilt.
3241 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3242 CANADIAN when building in source tree that doesn't include gcc.
3243 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3246 * java/text/ChoiceFormat.java (nextDouble): Correct some
3247 off-by-one errors when masking or adding.
3249 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3250 parameter, if given. Use `%', not IEEEremainder.
3251 (scanFix): Throw error if multiplier already set.
3252 (computePattern): Wrote.
3254 1999-03-11 Andrew Haley <aph@cygnus.com>
3256 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3258 (nextDouble): Corrected masking logic. Handle interaction between
3259 `next' and negative numbers.
3261 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3263 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3264 * java/net/URL.java: Added general comments.
3266 1999-03-10 Tom Tromey <tromey@cygnus.com>
3268 * java/text/ChoiceFormat.java (parse): Wrote.
3270 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3272 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3273 Create ChoiceFormat objects.
3274 (format): Special-case ChoiceFormat.
3275 (scanFormatElement): Include { and } in generated style string.
3277 1999-03-09 Tom Tromey <tromey@cygnus.com>
3279 * java/text/ChoiceFormat.java: New file.
3281 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3283 * java/net/BindException.java: Created.
3284 * java/net/ConnectException.java: Created.
3285 * java/net/ContentHandler.java: Created.
3286 * java/net/ContentHandlerFactory.java: Created.
3287 * java/net/FileNameMap.java: Created.
3288 * java/net/MalformedURLException.java: Created.
3289 * java/net/NoRouteToHostException.java: Created.
3290 * java/net/ProtocolException.java: Created.
3291 * java/net/ServerSocket.java (@author): Fixed typo.
3292 * java/net/Socket.java (@author): Fixed typo.
3293 * java/net/SocketImpl.java (@author): Fixed typo.
3294 * java/net/SocketImplFactory.java (@author): Fixed typo.
3295 * java/net/URL.java: Created - nearly complete.
3296 * java/net/URLConnection.java: Created - near-empty stub.
3297 * java/net/URLStreamHandler.java: Created - incomplete stub.
3298 * java/net/URLStreamHandlerFactory.java: Created.
3299 * java/net/UnknownServiceException.java: Created.
3301 1999-03-09 Tom Tromey <tromey@cygnus.com>
3303 * java/lang/System.java (ForwardingInputStream): New class.
3304 (ForwardingOutputStream): Likewise.
3305 (in, out, err): Now `final' forwarding streams.
3306 (setIn, setOut, setErr): Use appropriate method on forwarding
3309 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3312 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3314 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3315 * java/util/zip/Checksum.java: New interface (complete).
3316 * java/util/zip/Deflater.java: New class (near-empty stub).
3317 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3318 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3319 * java/util/zip/ZipEntry.java: New class (complete).
3320 * java/util/zip/ZipException.java: New class (complete).
3321 * java/util/zip/ZipFile.java: New class (incomplete stub).
3322 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3324 1999-03-09 Tom Tromey <tromey@cygnus.com>
3326 * java/text/MessageFormat.java (MessageFormatElement): Removed
3327 `public' specifiers.
3329 * java/text/DecimalFormat.java (scanFormat): Increment index
3330 before processing exponential format. Fixed a couple typos in
3332 (format): Correct normalization of exponent.
3334 1999-03-08 Tom Tromey <tromey@cygnus.com>
3336 * java/text/SimpleDateFormat.java (parse): Throw
3337 IllegalArgumentException, not ParseException.
3339 1999-03-05 Tom Tromey <tromey@cygnus.com>
3341 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3342 when constructing DateFormatSymbols. Initialize numberFormat
3343 field of superclass.
3345 * java/text/DateFormat.java (equals): Rewrote.
3346 (getAvailableLocales): New method.
3347 (getDateInstance): New methods.
3348 (getDateTimeInstance): Likewise.
3349 (getTimeInstance): Likewise.
3350 (getInstance): New method.
3351 (computeInstance): New method.
3353 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3355 (safeGetResource): New method.
3356 (DateFormatSymbols): Use Locale paramater.
3357 (equals): Now protected.
3358 Made instance variables private.
3360 1999-03-04 Tom Tromey <tromey@cygnus.com>
3362 * java/text/DecimalFormat.java: New file.
3364 * java/text/NumberFormat.java (groupingUsed,
3365 maximumFractionDigits, maximumIntegerDigits,
3366 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3368 (setDecimalSeparatorAlwaysShown, setMultiplier,
3369 setPositivePrefix): Removed.
3370 (setMinimumFractionDigits, setMaximumFractionDigits):
3372 (format): Now final.
3373 Added many new methods.
3375 * Makefile.in: Rebuilt.
3376 * Makefile.am (gnu_files): New macro.
3377 (java_files): Added gnu_files.
3378 (class_gnu_files): New macro.
3379 (class_files): Use it.
3380 (src_gnu_files): New macro.
3381 (gnu.o): New target.
3382 (javao_files): Added gnu.o.
3384 * gnu/gcj/text/LocaleData_en_US.java: New file.
3385 * gnu/gcj/text/LocaleData_en.java: New file.
3386 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3387 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3388 (safeGetString): New method.
3389 (safeGetChar): Likewise.
3391 1999-03-03 Tom Tromey <tromey@cygnus.com>
3393 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3396 * java/text/FieldPosition.java (equals): Don't check for null
3397 object; instanceof does this.
3399 * java/util/Locale.java (clone): New method.
3402 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3404 * doc/cni.sgml: New file.
3406 1999-03-03 Tom Tromey <tromey@cygnus.com>
3408 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3410 * java/text/DecimalFormatSymbols.java: New file.
3412 1999-03-02 Tom Tromey <tromey@cygnus.com>
3414 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3416 * configure: Rebuilt.
3417 * configure.in: Check for sys/filio.h.
3419 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3421 (load): Always throw UnsatisfiedLinkError.
3422 (loadLibrary): Likewise.
3424 1999-03-02 Anthony Green <green@cygnus.com>
3426 * LIBGCJ_LICENSE: New file.
3427 * LIBJAVA_LICENSE: Removed.
3428 * Many files: libjava now libgcj.
3430 1999-03-02 Tom Tromey <tromey@cygnus.com>
3432 * include/java-chartables.h: Rebuilt.
3433 * chartables.pl (print_block): Make table `const'.
3434 (print_numerics): Likewise.
3435 (print_single_map): Likewise.
3436 (print_all_block): Likewise.
3437 (print_case_table): Likewise.
3438 (print_fast_tables): Likewise.
3439 * java/lang/natCharacter.cc (table_search): `table' argument now
3442 1999-03-01 Tom Tromey <tromey@cygnus.com>
3444 * java/util/Date.java (before, after): Inverted logic.
3446 * java/util/Date.java (parse): Handle case where first character
3447 in string is open parenthesis.
3448 (skipParens): Rewrote.
3450 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3451 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3453 * java/util/Date.java (parse): Correctly compute beginning of
3456 * java/util/Hashtable.java (get): Throw NullPointerException if
3458 (containsKey): Likewise.
3460 * java/util/Properties.java (list): Truncate value to 37
3461 characters and add `...'.
3463 * java/lang/Byte.java (parseByte): Pass `radix' to
3466 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3468 Include System.h, PrintStream.h.
3470 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3473 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3475 * configure: Rebuilt.
3476 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3479 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3481 * java/lang/SecurityManager.java: Import java.net.*.
3482 (checkMulticast): New methods.
3484 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3486 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3487 (nat_files): Add java/lang/reflect/natArray.o.
3488 (nat_headers): Add Field.h and NoSuchFieldException.h.
3490 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3491 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3492 (_Jv_FromReflectedField): Fix buglet.
3493 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3494 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3495 * prims.cc (_Jv_Abort): Include message in print-out.
3497 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3498 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3499 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3501 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3502 * include/config.h.in (HAVE_PWD_H): New feature macro.
3503 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3504 user.name, user.home, user.dir.
3506 * java/lang/reflect/Array.java: New class.
3507 * java/lang/reflect/natArray.cc: New native methods.
3508 * include/javaprims.h: Declare java::lang::reflect::Array.
3510 * java/lang/Class.h (getField): New private method. Add friends.
3511 * java/lang/Class.java (getField): Add private overload.
3512 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3513 getDeclaredMethods): Add working implementations.
3514 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3515 Finish implementation, except for access control.
3517 * java/lang/reflect/Modifier.java (toString): New overload.
3518 * include/java-method.h: New file.
3519 * java/lang/reflect/Method.java (index): Replaced by offset field.
3520 Remove various private fields - get them from _Jv_Field instead.
3521 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3522 New method implementations.
3524 * java/text/NumberFormat.java: Add a bunch of methods.
3526 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3528 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3530 1999-02-26 Tom Tromey <tromey@cygnus.com>
3532 * include/config.h.in: Rebuilt.
3533 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3534 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3535 HAVE_GETHOSTBYADDR_R): New defines.
3536 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3537 gethostbyaddr_r if available.
3539 * configure: Rebuilt.
3540 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3542 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3546 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3547 * prims.cc (_Jv_AllocBytesChecked): New function.
3549 * Makefile.in: Rebuilt.
3550 * Makefile.am (SUBDIRS): Removed `test'.
3551 * configure: Rebuilt.
3552 * configure.in: Don't build test/Makefile.
3553 * test/*: Removed all files.
3555 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3557 * java/lang/reflect/Constructor.java: Make class final to match spec.
3558 * java/lang/reflect/Method.java: Ditto.
3560 1999-02-25 Tom Tromey <tromey@cygnus.com>
3562 * java/net/natInetAddress.cc: Include <sys/types.h> before
3564 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3567 * java/net/natInetAddress.cc: Declare gethostname if required.
3568 * include/config.h.in: Rebuilt.
3569 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3570 * configure: Rebuilt.
3571 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3572 declared in unistd.h.
3574 1999-02-24 Tom Tromey <tromey@cygnus.com>
3576 * Makefile.in: Rebuilt.
3577 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3578 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3579 from private to "none".
3581 * include/javaprims.h: Regenerated class declarations with new
3583 * classes.pl (scan): Only generate decls for java.lang, java.io,
3586 1999-02-24 Tom Tromey <tromey@cygnus.com>
3588 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3589 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3591 1999-02-23 Tom Tromey <tromey@cygnus.com>
3593 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3594 not already defined.
3595 * java/io/natFile.cc (_REENTRANT): Only define if not already
3597 * include/config.h.in: Rebuilt.
3598 * acconfig.h (HAVE_BOEHM_GC): New define.
3599 * configure: Rebuilt.
3600 * configure.in: Define HAVE_BOEHM_GC if using it.
3601 * posix-threads.cc: Include boehm-config.h and gc.h if
3603 * include/posix-threads.h: Added explanatory note about Boehm GC.
3605 * java/io/BufferedReader.java (readLine): Only return null when
3606 EOF seen before any characters read. (In particular, an empty
3607 line should not return null.)
3609 * java/io/BufferedInputStream.java (read): Only refill once per
3612 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3613 java.lang.Character.classify12, java.lang.String.hash,
3614 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3615 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3617 * java/text/StringCharacterIterator.java (setIndex): No error if
3619 (next): Check for `pos == end', not `end - 1'.
3620 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3621 for null text in each constructor.
3622 (clone): Fixed order of arguments to constructor.
3624 1999-02-22 Tom Tromey <tromey@cygnus.com>
3626 * include/config.h.in: Rebuilt.
3627 * acconfig.h (HAVE_INET6): New define.
3628 (HAVE_SOCKLEN_T): Likewise.
3629 * java/net/PlainSocketImpl.java: Added copyright header.
3630 * java/net/natPlainSocketImpl.cc: Added copyright header.
3631 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3633 (connect): Likewise.
3635 (socklen_t): New typedef.
3636 (accept): Use socklen_t.
3637 * java/net/natInetAddress.cc: Added copyright header.
3638 (HAVE_GETHOSTNAME): Don't define.
3639 (HAVE_INET_ADDR): Likewise.
3640 (lookup): Fixed typo.
3641 (aton): Don't use `address' as name of local variable.
3642 (lookup): Use HAVE_INET6, not AF_INET6.
3644 * configure: Rebuilt.
3645 * configure.in: Look for functions inet_aton, inet_addr,
3646 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3647 Check for socklen_t typedef.
3649 * exception.cc (__throw): Declare as __noreturn__.
3651 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3653 * Makefile.am, Makefile.in: Also build java/net.
3654 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3656 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3657 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3659 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3660 * include/cni.h (JvMalloc, JvFree): New inline functions.
3661 (JvThrow): Add __noreturn__ attribute.
3662 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3663 (_Jv_Throw): Add __noreturn__ attribute.
3665 * java/net/PlainSocketImpl.java: Init fnum to -1.
3666 * java/net/ServerSocket.java: Add missing throws clauses.
3667 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3668 don't call create on the latter. Instead, other constructors
3669 have to explicitly call SocketImpl.create.
3670 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3671 from size_t to int, to match ::accept prototype.
3672 * java/net/natInetAddress.cc: Use JvFree rather than free.
3675 1999-02-22 Tom Tromey <tromey@cygnus.com>
3677 * include/javaprims.h: Added new classes.
3678 * java/text/StringCharacterIterator.java: New file.
3679 * java/text/CharacterIterator.java: New file.
3681 * java/text/ParseException.java (errorOffset): Now private.
3683 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3685 * java/net: New package.
3686 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3687 Socket.java,SocketException.java,SocketImpl.java,
3688 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3689 natPlainSocketImpl.cc}: New classes.
3691 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3692 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3693 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3694 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3696 * classes.pl: Translate package into "namespace", not "class".
3697 * include/javaprims.h: Update class list, using "namespace".
3699 1999-02-21 Tom Tromey <tromey@cygnus.com>
3701 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3702 Define when appropriate.
3704 1999-02-20 Tom Tromey <tromey@cygnus.com>
3706 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3707 as a single byte and \u07ff as two bytes.
3708 (_Jv_GetStringUTFLength): Likewise.
3709 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3710 with 0x0f, not 0x1f.
3712 1999-02-19 Tom Tromey <tromey@cygnus.com>
3714 * java/io/DataOutputStream.java (writeUTF): When encoding
3715 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3716 * java/io/DataInputStream.java (readUTF): Mask second byte of
3717 3-byte character with 0x3f, not 0x1f.
3719 * java/io/DataInputStream.java (readLong): Cast result of
3720 readUnsignedByte to long before using.
3722 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3725 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3726 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3727 argument to avoid warning.
3728 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3729 argument to avoid warning.
3731 1999-02-18 Tom Tromey <tromey@cygnus.com>
3733 * mauve-libjava: Omit java.io.DataInputOutput and
3734 java.io.Utf8Encoding.
3736 1999-02-17 Tom Tromey <tromey@cygnus.com>
3738 * Makefile.in: Rebuilt.
3739 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3740 * java/io/natFileDescriptorPosix.cc: Include
3741 InterruptedIOException.h, Thread.h.
3742 (write): Throw InterruptedIOException when required.
3744 * posix-threads.cc: Include <signal.h>.
3745 (_Jv_ThreadInterrupt): New function.
3747 (handle_intr): New function.
3748 (_Jv_InitThreads): Register handle_intr via sigaction.
3749 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3750 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3751 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3752 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3754 1999-02-19 Andrew Haley <aph@cygnus.com>
3756 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3758 (ThreadGroup (int)): Set the maximum priority of the initial
3761 1999-02-18 Andrew Haley <aph@cygnus.com>
3763 * java/lang/natClass.cc (forName): Check for the case where a
3764 classname is the name of an array and call FindClassFromSignature
3767 1999-02-18 Andrew Haley <aph@cygnus.com>
3769 * java/lang/StringBuffer (insert (int, String)): Move up any
3770 characters above the insert position and increase the length of
3771 the string buffer by the length of the argument.
3772 (insert (int, char[])): Likewise.
3773 (insert (int, char)): Likewise.
3774 (StringBuffer (String)): The initial capacity of the string buffer
3775 is 16 plus the length of the argument.
3776 (getChars): Add a JDK 1.2 FIXME.
3778 1999-02-18 Andrew Haley <aph@cygnus.com>
3780 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3783 1999-02-18 Andrew Haley <aph@cygnus.com>
3785 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3786 instead of floating-point equality. This is necessary for
3787 correct floating-point Hashtables.
3788 * java/lang/Float.java (equals): Ditto.
3790 1999-02-16 Tom Tromey <tromey@cygnus.com>
3792 * java/util/Properties.java (list): Truncate value to 37
3793 characters and add "...".
3795 1999-02-16 Tom Tromey <tromey@cygnus.com>
3797 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3798 if initCap is negative.
3799 (contains): Implement JDK1.2-style handling of null argument.
3800 (removeElement): Likewise.
3801 (indexOf): Likewise. Also, correctly handle case where idx is
3803 (lastIndexOf): Likewise.
3805 1999-02-16 Tom Tromey <tromey@cygnus.com>
3807 * java/lang/natString.cc (init): Increment source pointer in
3810 1999-02-16 Tom Tromey <tromey@cygnus.com>
3812 * exception.cc: Include NullPointerException.h.
3813 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3815 1999-02-16 Tom Tromey <tromey@cygnus.com>
3817 * Makefile.in: Rebuilt.
3818 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3820 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3822 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3823 we're compiling canadian.
3824 * configure: Regenerated.
3826 1999-02-12 Andrew Haley <aph@cygnus.com>
3828 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3829 deleted from libgcj.
3831 1999-02-12 Tom Tromey <tromey@cygnus.com>
3833 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3834 (_Jv_eh_free): Don't call free.
3835 Don't declare malloc or free.
3837 1999-02-11 Tom Tromey <tromey@cygnus.com>
3839 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3841 1999-02-11 Andrew Haley <aph@cygnus.com>
3843 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3844 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3845 needed by java.lang.*.
3846 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3847 wf_fmod.o: Removed from libjava.a.
3849 1999-02-11 Tom Tromey <tromey@cygnus.com>
3851 * include/javaprims.h: Reverted previous change; with it
3852 exception.cc can't compile.
3854 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3856 * include/config.h.in: Rebuilt.
3857 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3859 * configure: Rebuilt.
3860 * configure.in: Check for sched_yield. Look in thread library for
3861 all thread functions.
3863 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3864 no recursive mutexes.
3865 (_Jv_MutexDestroy): Define when required.
3866 (_Jv_MutexLock): Likewise.
3867 (_Jv_MutexUnlock): Likewise.
3868 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3869 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3870 (_Jv_Mutex_t): New structure.
3871 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3872 (_Jv_MutexLock): Likewise.
3873 (_Jv_MutexUnlock): Likewise.
3875 1999-02-10 Tom Tromey <tromey@cygnus.com>
3877 * aclocal.m4, configure, Makefile.in: Rebuilt.
3878 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3880 * configure.in: Changed to track library changes.
3881 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3882 (AM_CXXFLAGS): Likewise.
3883 (data_DATA): Likewise.
3884 (AM_CFLAGS): Likewise.
3885 (JC1FLAGS): Likewise.
3886 (libgcj_a_SOURCES): Likewise.
3887 (EXTRA_libgcj_a_SOURCES): Likewise.
3888 (libgcj_a_DEPENDENCIES): Likewise.
3889 (libgcj_a_LIBADD): Likewise.
3890 (libgcj.zip): Likewise.
3891 (CLEANFILES): Likewise.
3892 ($(nat_headers)): Likewise.
3893 (java/lang/FirstThread.h): Likewise.
3894 (java/lang/ThreadGroup.h): Likewise.
3895 (java/lang/String.h): Likewise.
3896 (java/lang/reflect/Field.h): Likewise.
3897 (BUILT_SOURCES): Likewise.
3898 (maintainer-check): Likewise.
3899 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3900 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3902 * java/util/natGregorianCalendar.cc (computeFields): Only use
3903 gmtime_r and localtime_r when configured for posix threads.
3905 * java/io/natFile.cc (get_entry): Only use readdir_r when
3906 configured for posix threads.
3908 * java/util/natGregorianCalendar.cc: Update copyright notice.
3909 * java/util/TimeZone.java: Ditto.
3910 * java/util/SimpleTimeZone.java: Ditto.
3912 1999-02-08 Tom Tromey <tromey@cygnus.com>
3914 * java/io/PrintStream.java (line_separator): New constant.
3915 (print): Use line_separator, not `file.separator' property.
3916 (println): Use line_separator.
3918 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3919 when trying to instantiate Class.
3921 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3922 NullPointerException if argument is null.
3924 * java/lang/Thread.java (setName): Throw NullPointerException, not
3925 IllegalArgumentException.
3928 1999-02-08 Andrew Haley <aph@cygnus.com>
3930 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3931 create new Classes with Class.newInstance().
3933 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3934 semiciolon to end of an array Class's signature if the elements of
3935 the array aren't themselves arrays.
3937 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3938 array of objects is always sizeof(jobject), not the size of the
3939 object to which the reference points.
3941 1999-02-08 Tom Tromey <tromey@cygnus.com>
3943 * java/util/BitSet.java (and): Throw NullPointerException when
3948 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3949 if argument is negative.
3950 (clear): Correctly compute `offset'. Throw
3951 IndexOutOfBoundsException when required.
3953 (get): Likewise. Also, return correct value.
3954 (ensure): Changed meaning of argument.
3955 (toString): Wrap contents in `{}'; put spaces after commas.
3956 (hashCode): Don't try to examine elements off the end of array.
3957 (or): Correctly include bits past the end of this bit set.
3960 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3962 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3963 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3965 1999-02-04 Andrew Haley <aph@cygnus.com>
3967 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3968 '/' in signatures to '.'
3969 (Class::getName): Likewise,
3970 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3972 * java/lang/natFirstThread.cc (run): Change '/' in main's
3975 1999-02-03 Andrew Haley <aph@cygnus.com>
3977 * configure.host: -ffloat-store added when compiling libjava on
3978 x86. fdlibm apparently relies on this.
3980 * java/lang/ThreadGroup.java (add): throw an exception if the
3981 ThreadGroup has been destroyed.
3983 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3986 1999-01-27 Tom Tromey <tromey@cygnus.com>
3988 * java/lang/StringBuffer.java (StringBuffer): Handle null
3991 1999-01-21 Tom Tromey <tromey@cygnus.com>
3993 * java/lang/natFirstThread.cc (run): Don't require main to be
3996 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3998 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
4000 1999-01-20 Tom Tromey <tromey@cygnus.com>
4002 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
4006 (unintern): Likewise.
4007 (_Jv_NewStringUtf8Const): Likewise.
4009 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
4010 Character.isLetter, to see if character is self-quoting. Also,
4011 correctly handle quoted characters.
4012 (parse): Fixed typo. Also now throws ParseException.
4014 1999-01-15 Tom Tromey <tromey@cygnus.com>
4016 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
4018 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
4019 _Jv_SyncInfo has `init' member.
4021 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
4024 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
4025 IllegalMonitorStateException if unlock fails.
4027 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
4029 (_Jv_NewObjectArray): Likewise.
4031 1999-01-14 Tom Tromey <tromey@cygnus.com>
4033 * java/lang/Character.java (isJavaIdentifierPart): Allow
4034 LETTER_NUMBER characters.
4036 * chartables.pl (process_char): Fixed error messages.
4038 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
4039 * chartables.pl: Updated comments. Changed detection of non-digit
4040 numeric values (no longer miss \u00b2 and friends).
4042 * java/lang/Character.java (isJavaIdentifierPart): Recognize
4043 currency symbols and connector punctuation.
4044 (isIdentifierIgnorable): Make 7f-9f ignorable.
4046 * prims.cc (_Jv_NewObjectArray): Check for overflow.
4047 (_Jv_NewPrimArray): Likewise.
4048 (SIZE_T_MAX): New define.
4050 * java/lang/ClassLoader.java (system): Now private and final.
4052 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
4055 * configure: Rebuilt.
4056 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
4058 * exception.cc: Include gansidecl.h.
4060 1999-01-14 Andrew Haley <aph@cygnus.com>
4062 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
4063 corrected: they didn't treat -0.0 and NaNs correctly.
4065 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
4067 * nogc.cc: Use calloc to zero out memory.
4069 1999-01-11 Tom Tromey <tromey@cygnus.com>
4071 * java/lang/natClass.cc (isInstance): Return false if this class
4072 is primitive, not if class of `obj' is primitive.
4073 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
4075 * java/io/SequenceInputStream.java (close): Handle case where `in'
4078 * java/text/DateFormat.java (format): New method.
4080 * mauve-libjava: Omit java.text.DateFormat.
4082 1999-01-08 Tom Tromey <tromey@cygnus.com>
4084 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
4086 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
4088 (_Jv_CondNotifyAll): Likewise.
4090 * configure: Rebuilt.
4091 * configure.in: Change --enable-source-compilation logic to work
4094 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
4096 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4097 and RUNTESTFLAGS from AM_MAKEFLAGS.
4098 * configure.in: AM_RUNTESTFLAGS added.
4099 * configure.host: AM_RUNTESTFLAGS added.
4100 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
4101 * configure: rebuilt.
4102 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
4104 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
4105 argv[] made conditional because embedded targets may not have
4107 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
4108 explanatory comments added in call to super.
4110 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
4111 exception thrown in the test harness itself added.
4112 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
4114 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
4116 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
4118 1999-01-06 Tom Tromey <tromey@cygnus.com>
4120 * java/io/natFile.cc (get_entry): New function.
4121 (performList): Use get_entry.
4122 * include/config.h.in: Rebuilt.
4123 * acconfig.h (HAVE_READDIR_R): New define.
4124 * configure: Rebuilt.
4125 * configure.in: Look for readdir_r.
4127 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
4129 * java/util/natDate.cc: Added copyright header.
4131 1999-01-05 Tom Tromey <tromey@cygnus.com>
4133 * include/config.h.in: Rebuilt.
4134 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
4135 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
4136 * configure: Rebuilt.
4137 * configure.in: Check for access, stat, mkdir, rename, rmdir,
4138 unlink, and realpath.
4139 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
4140 (stat): Conditionalize on HAVE_STAT.
4142 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
4143 (performMkdir): Conditionalize on HAVE_MKDIR.
4144 (performRenameTo): Conditionalize on HAVE_RENAME.
4145 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
4147 * include/config.h.in: Rebuilt.
4148 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
4149 * configure: Rebuilt.
4150 * configure.in: Check for gmtime_r and localtime_r. For cross
4151 builds, assume they exist.
4153 * mauve-libjava: Include java.text.DateFormatSymbols again.
4154 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
4155 from setAmPmStrings.
4157 * mauve-libjava: Omit java.text.DateFormatSymbols.
4159 1999-01-04 Tom Tromey <tromey@cygnus.com>
4161 * java/io/PushbackReader.java: `off' already includes `numBytes'.
4163 * java/io/LineNumberReader.java (read): Decrement `count' in
4166 * java/io/BufferedWriter.java (write): Correctly determine when
4167 incoming data would overrun buffer. Flush buffer if write causes
4170 * java/io/BufferedOutputStream.java (write): Increment `count'
4171 after copying data into buffer.
4173 * java/io/FilterOutputStream.java (close): Call flush first.
4175 * java/io/PipedReader.java (read): If read causes `out' to catch
4176 up with `in', then set `in' to -1.
4178 * java/io/LineNumberInputStream.java (read): If no bytes read,
4179 return -1. If no bytes requested, return 0.
4181 * java/lang/StringBuffer.java (insert): If `str' is null, use
4184 1998-12-30 Anthony Green <green@cygnus.com>
4187 * LIBJAVA_LICENSE, COPYING.LIB: Created.
4189 1998-12-23 Tom Tromey <tromey@cygnus.com>
4191 * java/io/PushbackInputStream.java (read): `off' already includes
4194 1998-12-17 Tom Tromey <tromey@cygnus.com>
4196 * Makefile.in: Rebuilt.
4197 * Makefile.am (GCJ_canadian): Include target_alias.
4199 * java/lang/natFirstThread.cc (run): Require main's class to be
4202 1998-12-16 Tom Tromey <tromey@cygnus.com>
4204 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4206 * java/util/ResourceBundle.java (getBundle): Throw
4207 NullPointerException if locale argument is null.
4209 * java/lang/natClass.cc (forName): Throw NullPointerException if
4211 Include NullPointerException.h.
4213 1998-12-14 Tom Tromey <tromey@cygnus.com>
4215 * java/lang/Character.java (Character): Implement Comparable.
4216 (compareTo): New methods.
4218 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4219 correct country and language codes.
4220 (UK, US): New constants.
4221 (setDefault): Language codes are lower-case.
4223 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4224 (getDeclaredConstructors): Likewise.
4225 (getDeclaredField): Likewise.
4226 (getDeclaredFields): Likewise.
4227 (getDeclaredMethod): Likewise.
4228 (getDeclaredMethods): Likewise.
4229 (getField): Likewise.
4230 (getFields): Likewise.
4231 (getMethod): Likewise.
4232 (getMethods): Likewise.
4233 * java/lang/Class.java: Declare new methods.
4234 * java/lang/Class.h: Declare new methods.
4236 * java/lang/natString.cc: Removed `#pragma implementation'.
4237 * include/cni.h (_Jv_GetStringChars): New function.
4238 * Makefile.in: Rebuilt.
4239 * Makefile.am (java/lang/String.h): Don't generate definition for
4242 * java/lang/natString.cc: Added `#pragma implementation'.
4244 * Makefile.in: Rebuilt.
4245 * Makefile.am (libjava.zip): Put build directory first in class
4246 path to avoid bug in compiler.
4248 1998-12-14 Anthony Green <green@cygnus.com>
4250 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4252 * include/javaprims.h: Add EventObject, ListResourceBundle and
4255 1998-12-13 Anthony Green <green@cygnus.com>
4257 * mauve-libjava: Run the ResourceBundle tests.
4259 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4262 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4264 * configure.in, configure: Make --enable-gcj-classes and
4265 --enable-source-compilation the default. (Nervously...) Yeah!
4266 Based on a patch from Tom Tromey.
4268 1998-12-13 Tom Tromey <tromey@cygnus.com>
4270 * java/util/EventObject.java: New file.
4271 * java/util/EventListener.java: New file.
4273 * include/javaprims.h: Updated class declarations.
4274 * Makefile.in: Rebuilt.
4275 * Makefile.am (nat_headers): Added Constructor.h.
4276 (java/lang/String.h): Don't inline String::length().
4277 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4278 * java/lang/Class.java (initializeClass, hackRunInitializers,
4279 hackTrampoline): No need to mark `final'.
4280 (getConstructor, getConstructors): Declare.
4281 * java/lang/reflect/Field.java (equals): New method.
4282 * java/lang/natClass.cc (getConstructor): New method.
4283 (getConstructors): Likewise.
4284 Include Method.h, Field.h, Constructor.h.
4285 * java/lang/reflect/Constructor.java: New file.
4286 * java/lang/reflect/Method.java (toString): No space before open
4288 (equals): Simplified.
4290 1998-12-13 Anthony Green <green@cygnus.com>
4292 * java/util/ResourceBundle.java: New file.
4293 * java/util/ListResourceBundle.java: New file.
4295 1998-12-12 Tom Tromey <tromey@cygnus.com>
4297 * java/lang/System.java (in, out, err): Now buffered streams by
4300 * include/javaprims.h: Updated class declarations.
4301 * Makefile.in: Rebuilt.
4302 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4303 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4305 (nat_files): Added natMethod.o.
4306 * java/lang/reflect/natMethod.cc: New file.
4307 * java/lang/reflect/Field.java (Field): Now extends
4309 * java/lang/reflect/AccessibleObject.java: New file.
4310 * java/lang/reflect/InvocationTargetException.java: New file.
4312 1998-12-11 Tom Tromey <tromey@cygnus.com>
4314 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4315 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4316 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4318 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4320 1998-12-09 Tom Tromey <tromey@cygnus.com>
4322 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4325 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4326 character is already titlecase.
4328 * java/lang/Character.java (isJavaLetter): Follow spec.
4329 (isJavaLetterOrDigit): Likewise.
4331 * java/util/GregorianCalendar.java (gregorianCutover): Append
4334 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4336 1998-12-08 Tom Tromey <tromey@cygnus.com>
4338 * java/lang/reflect/Modifier.java (toString): Replace second
4339 `static' with `synchronized'.
4341 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4342 * java/lang/Object.h (Object::hack12_6): Declare.
4343 * java/lang/Object.java (hack12_6): New function.
4345 1998-12-07 Tom Tromey <tromey@cygnus.com>
4347 * include/java-array.h (__JArray::clone): Removed decl.
4348 * prims.cc (__JArray::clone): Removed.
4349 * java/lang/natObject.cc (clone): Incorporate code to clone an
4352 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4353 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4354 Correctly use dtable_method_count.
4356 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4358 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4361 1998-12-06 Anthony Green <green@cygnus.com>
4363 * mauve-libjava: Don't test ResourceBundle.
4365 1998-12-04 Tom Tromey <tromey@cygnus.com>
4367 More JDK 1.2 spec fixes:
4368 * java/util/Date.java (millis): Now private.
4369 * java/text/DateFormat.java (DateFormat): Constructor now
4371 * java/lang/Void.java (Void): New private constructor.
4372 * java/lang/System.java (System): New private constructor.
4373 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4375 (currentClassLoader): New method.
4376 (currentLoadedClass): New method.
4377 * java/lang/Math.java (Math): New private constructor.
4378 * java/lang/Compiler.java (Compiler): New private constructor.
4379 * java/lang/Class.java (Class): New private constructor.
4380 * java/lang/Double.java (toString): Removed access specifier from
4381 two-argument `toString' method.
4383 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4385 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4386 causes it to be flushed from an fp register (where it may be
4387 longer than double precision) to a double in memory. This is
4388 essential to ensure correct rounding behaviour.
4390 1998-12-04 Tom Tromey <tromey@cygnus.com>
4392 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4395 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4396 explaining apparent divergence from JDK 1.2.
4398 1998-12-04 Per Bothner <bothner@cygnus.com>
4400 * include/no-threads.h: Remove unused parameter names.
4401 This silences a bunch of warnings.
4403 1998-12-04 Tom Tromey <tromey@cygnus.com>
4405 * include/config.h.in: Rebuilt.
4406 * acconfig.h (HAVE_CTIME_R): New symbol.
4408 1998-12-03 Tom Tromey <tromey@cygnus.com>
4410 * mauve-libjava: Added many more categories to reject.
4412 Changes to follow JDK1.2 spec:
4413 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4414 setErr, setIn, setOut): No need to be `final'.
4415 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4416 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4417 * java/lang/Object.java (wait): `nanos' argument is an int.
4418 * java/lang/VirtualMachineError.java: Class is abstract.
4419 * java/lang/ThreadDeath.java: Made constructors public.
4420 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4423 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4425 * java/text/DateFormatSymbols.java (getAmPmStrings,
4426 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4428 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4430 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4431 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4432 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4435 * java/lang/IllegalThreadStateException.java
4436 (IllegalThreadStateException): Changed extending class to match spec.
4438 * java/lang/NumberFormatException.java
4439 (java/lang/NumberFormatException): Changed extending class to match
4442 * java/util/Observer.java (Observer): Changed sig to match JCL.
4444 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4446 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4447 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4448 signature to match JDK 1.1 and 1.2.
4450 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4452 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4453 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4454 * Makefile.in, configure: Rebuilt.
4456 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4459 1998-12-02 Tom Tromey <tromey@cygnus.com>
4461 * mauve-libjava: New file.
4463 The remaining `-W -Wall' fixes:
4464 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4466 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4468 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4470 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4472 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4474 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4476 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4478 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4480 * java/lang/mprec.c (Balloc): Removed unused variable.
4481 (mult): Added parentheses per gcc suggestion.
4482 (pow5mult): Likewise.
4487 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4488 suggestion. Added cast to `int' to avoid signed/unsigned
4490 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4492 (IsAssignableFrom): Likewise.
4493 (_Jv_JNI_GetObjectField): Likewise.
4494 (_Jv_JNI_GetByteField): Likewise.
4495 (_Jv_JNI_GetShortField): Likewise.
4496 (_Jv_JNI_GetIntField): Likewise.
4497 (_Jv_JNI_GetLongField): Likewise.
4498 (_Jv_JNI_GetStringLength): Likewise.
4499 (_Jv_JNI_ToReflectedField): Likewise.
4500 (_Jv_JNI_FromReflectedField): Likewise.
4501 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4503 * Makefile.in: Rebuilt.
4504 * Makefile.am (AM_CFLAGS): Define conditionally.
4505 (WARNINGS): New macro.
4506 (AM_CXXFLAGS): Include WARNINGS.
4507 * configure: Rebuilt.
4508 * configure.in (USING_GCC): New conditional.
4510 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4512 * java/lang/Character.java: Changed classification constants to
4513 type `byte' to match JDK 1.2 docs.
4515 1998-12-01 Tom Tromey <tromey@cygnus.com>
4517 Some fixes to be `-W -Wall' clean:
4518 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4519 (_Jv_MarkArray): Likewise.
4520 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4521 (to_upper_title): Likewise.
4522 (isTitleCase): Likewise.
4523 (toTitleCase): Likewise.
4524 (getNumericValue): Likewise.
4525 (isLowerCase): Likewise.
4526 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4527 (avoids compiler warning).
4528 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4530 (getDeclaringClass): Likewise.
4531 (_Jv_LookupInterfaceMethod): Likewise.
4532 (_Jv_NewClass): Removed name of unused parameter.
4533 * exception.cc (_Jv_type_matcher): Removed unused variable.
4534 (_Jv_setup_eh_info): Removed name of unused parameter.
4535 * prims.cc (_Jv_NewArray): Always return a value.
4536 (_Jv_FindClassFromSignature): Likewise.
4537 * include/java-field.h (getNameUtf8Const): Removed name of unused
4539 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4541 (_Jv_ThreadSetPriority): Likewise.
4543 * java/lang/natString.cc (hashChars): Now static.
4545 * java/lang/FirstThread.java (FirstThread): Now final.
4547 * java/io/File.java (performMkdir, performRenameTo): Now private.
4549 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4550 if no time function defined.
4552 * configure: Rebuilt.
4553 * configure.in: Look for ctime_r, ctime.
4554 * java/util/Date.java (toString): Now native.
4555 * java/util/natDate.cc (toString): Rewrote.
4557 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4559 * Add LDFLAGS line to allow TX39 test cases to link when cross
4562 1998-11-23 Anthony Green <green@cygnus.com>
4564 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4565 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4566 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4567 include/java-array.h, include/java-assert.h, include/java-field.h,
4568 include/javaprims.h, include/jni.h, include/jvm.h,
4569 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4570 include/quick-threads.h, java/io/BufferedInputStream.java,
4571 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4572 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4573 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4574 java/io/CharArrayWriter.java,
4575 java/io/CharConversionException.java, java/io/DataInput.java,
4576 java/io/DataInputStream.java, java/io/DataOutput.java,
4577 java/io/DataOutputStream.java, java/io/EOFException.java,
4578 java/io/File.java, java/io/FileDescriptor.java,
4579 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4580 java/io/FileOutputStream.java, java/io/FileReader.java,
4581 java/io/FileWriter.java, java/io/FilenameFilter.java,
4582 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4583 java/io/FilterReader.java, java/io/FilterWriter.java,
4584 java/io/IOException.java, java/io/InputStream.java,
4585 java/io/InputStreamReader.java,
4586 java/io/InterruptedIOException.java,
4587 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4588 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4589 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4590 java/io/PipedReader.java, java/io/PipedWriter.java,
4591 java/io/PrintStream.java, java/io/PrintWriter.java,
4592 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4593 java/io/RandomAccessFile.java, java/io/Reader.java,
4594 java/io/SequenceInputStream.java, java/io/Serializable.java,
4595 java/io/StreamTokenizer.java,
4596 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4597 java/io/StringWriter.java, java/io/SyncFailedException.java,
4598 java/io/UTFDataFormatException.java,
4599 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4600 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4601 java/io/natFileDescriptorPosix.cc,
4602 java/lang/AbstractMethodError.java,
4603 java/lang/ArithmeticException.java,
4604 java/lang/ArrayIndexOutOfBoundsException.java,
4605 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4606 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4607 java/lang/Class.java, java/lang/ClassCastException.java,
4608 java/lang/ClassCircularityError.java,
4609 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4610 java/lang/ClassNotFoundException.java,
4611 java/lang/CloneNotSupportedException.java,
4612 java/lang/Cloneable.java, java/lang/Comparable.java,
4613 java/lang/Compiler.java, java/lang/Double.java,
4614 java/lang/Error.java, java/lang/Exception.java,
4615 java/lang/ExceptionInInitializerError.java,
4616 java/lang/FirstThread.java, java/lang/Float.java,
4617 java/lang/IllegalAccessError.java,
4618 java/lang/IllegalAccessException.java,
4619 java/lang/IllegalArgumentException.java,
4620 java/lang/IllegalMonitorStateException.java,
4621 java/lang/IllegalStateException.java,
4622 java/lang/IllegalThreadStateException.java,
4623 java/lang/IncompatibleClassChangeError.java,
4624 java/lang/IndexOutOfBoundsException.java,
4625 java/lang/InstantiationError.java,
4626 java/lang/InstantiationException.java, java/lang/Integer.java,
4627 java/lang/InternalError.java, java/lang/InterruptedException.java,
4628 java/lang/LinkageError.java, java/lang/Long.java,
4629 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4630 java/lang/NoClassDefFoundError.java,
4631 java/lang/NoSuchFieldError.java,
4632 java/lang/NoSuchFieldException.java,
4633 java/lang/NoSuchMethodError.java,
4634 java/lang/NoSuchMethodException.java,
4635 java/lang/NullPointerException.java, java/lang/Number.java,
4636 java/lang/NumberFormatException.java, java/lang/Object.h,
4637 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4638 java/lang/Process.java, java/lang/Runnable.java,
4639 java/lang/Runtime.java, java/lang/RuntimeException.java,
4640 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4641 java/lang/Short.java, java/lang/StackOverflowError.java,
4642 java/lang/String.java, java/lang/StringBuffer.java,
4643 java/lang/StringIndexOutOfBoundsException.java,
4644 java/lang/System.java, java/lang/Thread.java,
4645 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4646 java/lang/Throwable.java, java/lang/UnknownError.java,
4647 java/lang/UnsatisfiedLinkError.java,
4648 java/lang/UnsupportedOperationException.java,
4649 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4650 java/lang/Void.java, java/lang/natCharacter.cc,
4651 java/lang/natClass.cc, java/lang/natDouble.cc,
4652 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4653 java/lang/natMath.cc, java/lang/natObject.cc,
4654 java/lang/natRuntime.cc, java/lang/natString.cc,
4655 java/lang/natSystem.cc, java/lang/natThread.cc,
4656 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4657 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4658 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4659 java/text/FieldPosition.java, java/text/Format.java,
4660 java/text/NumberFormat.java, java/text/ParseException.java,
4661 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4662 java/util/BitSet.java, java/util/Calendar.java,
4663 java/util/ConcurrentModificationException.java,
4664 java/util/Date.java, java/util/Dictionary.java,
4665 java/util/EmptyStackException.java, java/util/Enumeration.java,
4666 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4667 java/util/Locale.java, java/util/MissingResourceException.java,
4668 java/util/NoSuchElementException.java, java/util/Observable.java,
4669 java/util/Observer.java, java/util/Properties.java,
4670 java/util/Random.java, java/util/SimpleTimeZone.java,
4671 java/util/Stack.java, java/util/StringTokenizer.java,
4672 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4673 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4676 * exception.cc: Include eh-common.h instead of duplicating
4679 1998-11-23 Tom Tromey <tromey@cygnus.com>
4681 * configure.host: Don't add `-O2' to libjava_flags. Only add
4682 `-Os' to libjava_flags once.
4684 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4686 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4687 * Makefile.in: likewise
4688 * acconfig.h: add ECOS conditional for configure.h
4689 * config.h.in: likewise
4690 * configure: add test for --with-ecos
4691 * configure.in: likewise
4692 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4693 rename call to avoid name clash.
4694 * java/lang/natSystem.cc: add eCos clock support.
4695 * java/util/natGregorianCalendar.cc: add eCos support.
4697 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4699 * Makefile.am, Makefile.in, configure.host: tx39 build option
4702 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4704 * java/io/BufferedReader.java: Added more comments for clarity.
4705 (mark): Used more mnemonic name for local var extraBuffSpace.
4707 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4708 confusion with private method of same name in superclass.
4709 (skipRedundantLF): Set fields in special case to avoid infinite
4710 recursion. Check if markPos has been invalidated in special case.
4711 (readLine): Rewritten to use readLine method of superclass.
4712 (skip): Incorporated code from lineEnd.
4714 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4716 * java/io/BufferedReader.java (readLine): New method.
4717 (lineEnd): new private method.
4718 (mark): Track special case for readLine of getting '\r' at the
4725 * java/io/InputStreamReader.java (read): Return number chars skipped
4726 rather than requested.
4728 * java/lang/StringBuffer.java (append): Update count and differentiate
4729 between field and local variable.
4731 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4732 seconds. Deal with military style time.
4733 (parse): Consistently treat all timezones in minutes until final
4734 calculation. Flag as non-local timezone. Return value in milliseconds.
4735 (setTime): Adjust for year offset from 1900.
4736 (UTC): Adjust for year offset from 1900.
4738 1998-11-17 Tom Tromey <tromey@cygnus.com>
4740 * configure: Rebuilt.
4741 * configure.in: Switch on host, not target.
4743 * Makefile.in: Rebuilt.
4744 * Makefile.am (GCJ_no): New macro.
4745 (GCJ): Use @CANADIAN@.
4746 (GCJH_no): New macro
4747 (GCJH_canadian): New macro.
4748 (GCJH): Use @CANADIAN@.
4749 (ZIP_no): New macro.
4750 (ZIP_canadian): New macro.
4751 (ZIP): Use @CANADIAN@.
4752 * aclocal.m4, configure: Rebuilt.
4753 * configure.in (CANADIAN): Compute and subst.
4755 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4757 * java/io/FileDescriptor.java (finalize): Only close file
4758 descriptor if valid.
4760 1998-11-17 Tom Tromey <tromey@cygnus.com>
4762 * prims.cc (_Jv_InitRuntime): Removed.
4764 1998-11-16 Tom Tromey <tromey@cygnus.com>
4766 * java/io/FileOutputStream.java (close): Only close file
4767 descriptor if valid.
4768 (finalize): New method.
4770 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4771 (_Jv_NewPrimArray): Likewise.
4772 * boehm.cc (_Jv_RegisterFinalizer): Use
4773 GC_REGISTER_FINALIZER_NO_ORDER.
4774 (GC_GENERIC_MALLOC): New define.
4775 (_Jv_AllocObj): Use it.
4776 (_Jv_AllocArray): Likewise.
4777 (_Jv_AllocBytes): Likewise.
4778 (_Jv_MarkObj): Just return if vtbl not set.
4779 (_Jv_MarkArray): Likewise.
4780 (MAYBE_MARK): New macro; use everywhere.
4781 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4783 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4785 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4786 to a jlong before calculation to prevent overflow.
4788 1998-11-16 Tom Tromey <tromey@cygnus.com>
4790 * Makefile.in: Rebuilt.
4791 * Makefile.am (nat_headers): Fixed typo.
4793 1998-11-15 Tom Tromey <tromey@cygnus.com>
4795 * java/lang/Class.h (Class::getName): Removed definition.
4796 * Makefile.in: Rebuilt.
4797 * Makefile.am (nat_headers): Added InstantiationException.h,
4798 NoSuchMethodException.h.
4799 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4800 (init_name): New global.
4801 (hackRunInitializers): Use clinit_name.
4802 Include InstantiationException.h, NoSuchMethodException.h.
4803 (newInstance): Do some error checking (but not all). Call
4805 (forName): Throw exception if class not found.
4806 (getName): New method.
4807 (forName): Transform class name from external format to internal
4808 format before lookup.
4810 1998-11-15 Anthony Green <green@cygnus.com>
4812 * java/lang/Class.h (Class::forName): Method is static.
4814 * java/lang/natClass.cc (newInstance): Add simple implementation.
4817 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4819 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4820 int), for compatibility with jc1.
4822 1998-11-14 Tom Tromey <tromey@cygnus.com>
4824 * include/config.h.in: Rebuilt.
4825 * acconfig.h (LINUX_THREADS): New define.
4826 * configure: Rebuilt.
4827 * configure.in: Define LINUX_THREADS if using POSIX threads on
4828 Linux. Look for pthread_mutexattr_setkind_np function.
4829 * posix-threads.cc (throw_cleanup): New function.
4830 (really_start): Push cleanup function.
4831 (_Jv_ThreadCancel): New function.
4832 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4833 (_Jv_ThreadInitData): Set `exception' field in new structure.
4834 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4836 (_Jv_ThreadWait): New function.
4837 (_Jv_InitThreads): Initialize daemon globals.
4838 (FLAG_DAEMON): New macro.
4839 (really_start): Notify daemon_cond when non-daemon thread exits.
4840 Include <java/lang/System.h>.
4841 (struct starter): `object' field now a thread.
4842 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4843 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4844 (_Jv_ThreadWait): Removed definition.
4845 (_Jv_Thread_t): Added `exception' field.
4846 (_Jv_ThreadCancel): Removed definition.
4848 1998-11-13 Tom Tromey <tromey@cygnus.com>
4850 * Makefile.in: Rebuilt.
4851 * Makefile.am (libjava.zip): Compute javac before changing
4854 * Makefile.in: Rebuilt.
4855 * Makefile.am (libjava.zip): Include directory entries.
4857 * Makefile.in: Rebuilt.
4858 * Makefile.am (expanded): New macro.
4861 1998-11-12 Tom Tromey <tromey@cygnus.com>
4863 * prims.cc (clone): New function.
4864 * include/java-array.h (__JArray::clone): Removed definition.
4866 * java/lang/natObject.cc (clone): Don't assert that class is not
4867 an array; array's `clone' method just calls this one.
4869 * Makefile.in: Rebuilt.
4870 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4871 Now creates zip file. Changed all users.
4873 (data_DATA): New macro.
4875 1998-11-11 Tom Tromey <tromey@cygnus.com>
4877 * configure: Rebuilt.
4878 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4880 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4882 * java/io/InputStream.java (reset): Add msg to thrown exception.
4884 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4886 * java/io/LineNumberInputStream.java: Rewritten.
4888 * java/io/StringBufferInputStream.java: Removed extraneous import.
4890 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4892 * java/io/StringBufferInputStream.java: Rewritten.
4894 * java/util/Date.java (parseMonth): Optimize.
4895 (parseDayOfWeek): Created.
4896 (parse): Optimize to use parseDayOfWeek.
4898 1998-11-11 Tom Tromey <tromey@cygnus.com>
4900 * java/lang/StringBuffer.java (append): Handle case where STR is
4903 * include/javaprims.h: Regenerated class declarations.
4905 * configure: Rebuilt.
4906 * configure.in: Added --enable-gcj-classes,
4907 --enable-single-compilation, --enable-source-compilation flags.
4908 * Makefile.in: Rebuilt.
4909 * Makefile.am (java_io_files): New macro.
4910 (java_lang_files): Likewise.
4911 (java_text_files): Likewise.
4912 (java_util_files): Likewise.
4913 (java_files): Use new macros.
4914 (java-io.o): New target.
4915 (java-lang.o): Likewise.
4916 (java-text.o): Likewise.
4917 (java-util.o): Likewise.
4918 (src_io_files): New macro.
4919 (src_lang_files): Likewise.
4920 (src_text_files): Likewise.
4921 (src_util_files): Likewise.
4922 (class_io_files): New macro.
4923 (class_lang_files): Likewise.
4924 (class_text_files): Likewise.
4925 (class_util_files): Likewise.
4926 (class_files): Use new macros.
4927 (javao_files): Define conditionally.
4928 (.java.o): New target.
4929 ($(javao_files)): New target.
4931 (GCJH): Added $(EXEEXT).
4932 (CLASSPATH_ENV): Removed.
4933 (GCJCOMPILE): New macro.
4935 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4937 * java/util/Date.java (parse): Written from scratch.
4939 1998-11-11 Tom Tromey <tromey@cygnus.com>
4941 * java/lang/Throwable.java (toString): Correct sense of test for
4942 determining when to include detail message in result.
4944 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4947 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4949 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4951 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4952 (_Jv_RegisterClass): Use it.
4953 * include/jvm.h (_Jv_RegisterClasses): Declare.
4954 * java/lang/natObject.cc (init): Removed.
4955 (sync_init): Never call _Jv_InitializeSyncMutex.
4956 (_Jv_InitializeSyncMutex): Don't set `init'.
4957 * prims.cc (JvRunMain): Don't run init functions.
4959 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4961 * java/lang/natClass.cc (initializeClass): Set state before
4962 resolving constants.
4964 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4965 (STATE_RESOLVED): New macro.
4966 (initializeClass): Call resolveConstants.
4967 (hackRunInitializers): Don't call resolveConstants.
4968 (_Jv_FindArrayClass): Move short-circuit return for primitive
4969 element types earlier in function.
4971 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4973 * prims.cc (no_memory): New global.
4974 (_Jv_makeUtf8Const): Throw no_memory.
4975 (_Jv_AllocObject): Likewise.
4976 (_Jv_NewObjectArray): Likewise.
4977 (_Jv_NewPrimArray): Likewise.
4978 (JvRunMain): Initialize no_memory.
4980 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4982 * java/io/FileInputStream.java: Corrected date comment.
4983 * java/io/SequenceInputStream.java: Rewritten.
4985 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4987 * java/lang/FirstThread.java (die): New method.
4988 * java/lang/natFirstThread.cc (die): Removed.
4990 (run): Use `DIE', not `die'.
4992 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4994 * java/io/CharArrayReader.java (read): Move check into synchronized
4995 block to prevent a close while in progress.
4998 * java/io/PushbackReader.java (read): Ditto.
5001 * java/io/StringReader.java (mark): Ditto.
5006 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
5008 * java/io/PipedInputStream.java: Updated status.
5009 (connect): Added code to prevent infinite recursion and to
5010 differentiate exception causes.
5011 (read): Added code to differentiate exception causes.
5012 (receive): Made exception pass string with the cause.
5014 * java/io/PipedOutputStream.java: Updated status.
5015 (connect): Added code to call connect at the other end of the pipe.
5017 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
5019 * java/io/PipedInputStream.java (connect): Throw exception if
5020 already connected to the same output stream.
5021 (read): Do bounds checking first.
5023 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
5025 * java/io/PipedInputStream.java: Added private boolean outClosed.
5026 (available): Removed check if output stream is open.
5027 (close): Mark the buffer as empty so available returns 0.
5028 (read): Check if the output stream was closed and then return EOF
5029 when the buffer is empty.
5030 (receive): Mark the output stream as closed when passed a -1.
5032 * java/io/PipedOutputStream.java (close): Notify the input stream
5033 that there's no more data coming.
5034 (connect): Added a FIXME comment to note more coordination needed
5035 with PipedInputStream.
5036 (flush): Added a FIXME comment to mark what this method might do
5039 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
5041 * java/io/PipedInputStream.java: Rewritten.
5043 1998-10-30 Tom Tromey <tromey@cygnus.com>
5045 * java/lang/Throwable.java: Rewrote from scratch.
5047 * java/lang/Class.h (Class): Don't mention newMultiArray.
5048 * prims.cc (newMultiArray): Removed.
5049 (_Jv_NewMultiArray): Removed.
5050 (newArray): Removed.
5051 (new_multi_array): New function.
5052 (_Jv_NewMultiArray): Rewrote from scratch.
5054 * include/javaprims.h: Regenerated class declarations.
5055 * classes.pl (scan): Don't declare PrimClass.
5056 * include/cni.h (JvPrimClass): Use new names for classes.
5057 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
5058 added _Jv_PrimClass.
5059 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
5060 (_Jv_initPrimClass): Removed.
5061 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
5062 (_Jv_AllocObject): Added comment.
5063 (_Jv_NewObjectArray): Likewise.
5064 (_Jv_NewPrimArray): Likewise.
5066 1998-10-29 Tom Tromey <tromey@cygnus.com>
5068 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
5069 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
5071 * java/lang/Class.h (Class): Added `dtable_method_count' field.
5073 * java/lang/natObject.cc (init): New global.
5074 (sync_init): Call _Jv_InitializeSyncMutex if required.
5076 * Makefile.in: Rebuilt.
5077 * Makefile.am (nat_headers): Added ClassLoader.h.
5078 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
5079 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
5080 internalAddClass, lookupArray no longer friends.
5081 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
5082 _Jv_FindArrayClass now friends.
5083 * java/lang/natClass.cc (HASH_LEN): New macro.
5084 (HASH_UTF): Likewise.
5085 (loaded_classes): New global.
5086 (_Jv_FindClass): New function.
5087 (ClassClass): New define.
5088 (_Jv_FindClassInCache): New function.
5089 (_Jv_RegisterClass): Likewise.
5090 (_Jv_NewClass): Likewise.
5092 (ObjectClass): New define.
5093 (CloneableClass): New define.
5094 * prims.cc (_Jv_FindClass): Removed.
5095 (simpleLookupClass): Removed.
5096 (insertClass): Removed.
5097 (CLASSHASHSZ): Removed.
5098 (classPool): Removed.
5099 (_Jv_RegisterClass): Removed.
5100 (internalAddClass): Removed.
5101 (ClassClass): Removed.
5102 (RuntimeClass): Removed.
5103 (lookupArray): Removed.
5104 (CloneableClass): Removed.
5105 (CLASSMAXSIG): Removed.
5106 Rearranged file to group related functions together.
5107 (_Jv_IsInstanceOf): Moved to natClass.cc.
5108 (abort_final): Removed.
5109 Removed some unused includes.
5110 (classFromSig): Removed.
5111 (_Jv_FindClassFromSignature): New function.
5112 (_Jv_initPrimClass): Renamed.
5113 (getClass): Removed.
5115 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
5117 * java/io/FileDescriptor.java (finalize): Throws IOException
5118 instead of Throwable.
5120 * java/io/FileInputStream.java: Rewritten.
5122 * java/io/StreamTokenizer.java (nextToken): Unread newline character
5123 at the end of a comment.
5125 1998-10-29 Tom Tromey <tromey@cygnus.com>
5127 * include/javaprims.h: Regenerated class declarations.
5128 * classes.pl (scan): Don't special-case ClassLoader.
5130 * prims.cc (processClass): Removed.
5131 (_Jv_InitClass): Removed.
5132 Removed all CSTATE_ macros.
5133 (resolveConstants): Removed.
5135 (_Jv_NewMultiArray): Cleaned up.
5136 * Makefile.in: Rebuilt.
5137 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
5138 * java/lang/Class.h (Class): Declare new methods. processClass no
5140 * java/lang/Class.java (hackTrampoline): New method.
5141 (initializeClass): Declare.
5142 (hackRunInitializers): Declare.
5143 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
5144 (initializeClass): New method.
5145 (hackRunInitializers): New method.
5146 (init_name, void_signature): Moved from prims.cc.
5147 (_Jv_InitClass): New function.
5148 (isAssignableFrom): Don't call processClass.
5149 (STATE_NOTHING): New macro.
5150 (resolveConstants): New function.
5152 (ErrorClass): New define.
5154 * java/lang/Class.java (getClassLoader): Declare.
5155 * java/lang/ClassLoader.java: Rewrote from scratch.
5157 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
5158 AbstractMethodError.h, IllegalAccessError.h,
5159 NoClassDefFoundError.h.
5160 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
5161 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
5162 longer static. Changed return type.
5163 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
5164 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
5165 * prims.cc (findMethodLocal): Removed.
5166 (processClass): Use _Jv_GetMethodLocal.
5168 1998-10-28 Tom Tromey <tromey@cygnus.com>
5170 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
5171 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
5173 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
5174 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
5176 * include/jni.h: Added copyright header.
5177 * include/javaprims.h: Added copyright header.
5178 * include/java-field.h: Added copyright header.
5179 * include/java-array.h: Added copyright header.
5180 * include/cni.h: Added copyright header.
5182 * include/javaprims.h: Regenerated class declarations using
5183 classes.pl; now they are complete.
5184 * classes.pl: New file.
5186 * java/lang/natMath.cc: Include <config.h>.
5187 * java/lang/reflect/natField.cc: Include <config.h>.
5188 * java/util/NativeUtil.java: Removed.
5189 * Makefile.in: Rebuilt.
5190 * Makefile.am (nat_headers): Added Math.h.
5191 * java/lang/Math.h: Removed.
5192 * java/util/natGregorianCalendar.cc: Added copyright header.
5194 * java/lang/natFloat.cc: Added copyright header.
5195 * java/lang/Byte.java: Added copyright header.
5196 * java/lang/Void.java: Added copyright header.
5197 * java/lang/Short.java: Added copyright header.
5199 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5201 * include/javaprims.h (java::io): Added bunch of missing classes.
5203 * java/io/DataInputStream.java (readLine): Added a special case
5204 for handling BufferedInputStream data to reduce the likelihood
5205 of a pushback error.
5206 (skipBytes): Added code to handle negative number of skip bytes.
5208 * java/io/StreamTokenizer.java: Rewritten.
5210 1998-10-28 Tom Tromey <tromey@cygnus.com>
5212 * java/util/natGregorianCalendar.cc (computeFields): Call
5213 getRawOffset as a method.
5215 * include/javaprims.h (java::io): Added FilterOutputStream.
5216 * Makefile.in: Rebuilt.
5217 * Makefile.am (nat_headers): Added PrintStream.h,
5218 FilterOutputStream.h.
5219 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5221 (die): New function.
5222 (run): Die if `main' not found, is not public, or is not static.
5224 * boehm.cc (_Jv_MarkObj): Use new field names.
5225 * include/java-field.h (JvGetFirstInstanceField): Use new field
5227 (JvNumInstanceFields): Likewise.
5228 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5229 (getInterfaces): Likewise.
5230 * prims.cc (CLASS_CONSTANTS): Removed.
5231 (CLASS_CONST_SIZE): Likewise.
5232 (CLASS_CONST_TAG): Likewise.
5233 (CLASS_CONST_DATA): Likewise.
5234 (CLASS_CONST_UTF8): Likewise.
5235 (WORD2UTF): Likewise.
5236 (CLASS_CLASS): Likewise.
5237 (CLASS_PRIM_SIG): Likewise.
5238 (CLASS_ARRAY_CACHE): Likewise.
5239 (HASH_CHARS): Likewise.
5240 (hashClassName): Likewise.
5241 Many changes to use new field names.
5242 * java/lang/Class.h (Class): Renamed fields to track compiler.
5244 1998-10-27 Tom Tromey <tromey@cygnus.com>
5246 * java/lang/natClass.cc: Use #pragma implementation.
5247 (getComponentType): Moved into header.
5248 (getModifiers): Likewise.
5249 (getName): Likewise.
5250 (getSuperclass): Likewise.
5251 (isArray): Likewise.
5252 (isPrimitive): Likewise.
5253 * include/jvm.h (_Jv_FindClass): Declare.
5254 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5255 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5256 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5257 * java/lang/Class.h: Rewrote from scratch.
5258 * prims.cc: Many changes to work with new Class.h.
5259 * include/java-field.h (CLASS_FIELDS): Removed.
5260 (CLASS_SFIELDS): Likewise.
5261 (CLASS_IFIELDS): Likewise.
5262 (CLASS_NFIELDS): Likewise.
5263 (CLASS_NIFIELDS): Likewise.
5264 (CLASS_NSFIELDS): Likewise.
5265 (CLASS_FSIZE): Likewise.
5266 (JvGetFirstInstanceField): Rewrote.
5267 (JvNumInstanceFields): Likewise.
5269 * java/lang/Object.h: Added copyright comment.
5271 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5273 * java/text: New package directory.
5274 * java/text/FieldPosition.java: New class.
5275 * java/text/ParsePosition.java: New class.
5276 * java/text/ParseException.java: New Exception class.
5277 * java/text/Format.java: New class.
5278 * java/text/NumberFormat.java: New (empty placeholder) class.
5279 * java/text/DateFormatSymbols.java: New class (no Locales support).
5280 * java/text/DateFormat.java: New Format class (incomplete).
5281 * java/text/SimpleDateFormat.java: New DateFormat class.
5283 * include/javaprims.h (java::test): Added new package and classes.
5284 * java/util/Calendar.java (clone): New method.
5285 * java/util/Date.java (toString): Added non-native implementation.
5286 (parse): Made public instead of synchronized.
5287 * java/util/natDate.cc (toString): Removed.
5288 * java/util/natGregorianCalendar.cc (computeFields):
5289 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5291 1998-10-27 Tom Tromey <tromey@cygnus.com>
5293 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5295 * prims.cc (lookupArray): Added explanatory comment.
5296 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5297 class. Mark the class of each object.
5298 (_Jv_MarkArray): Mark the object's class.
5300 * configure: Rebuilt.
5301 * configure.in: Create java-gc.h.
5302 * include/boehm-gc.h: New file.
5303 * include/no-gc.h: New file.
5304 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5306 * java/lang/Object.h: Include java-gc.h.
5307 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5308 friends, if defined.
5309 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5311 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5313 1998-10-26 Tom Tromey <tromey@cygnus.com>
5315 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5316 paragraph separators, not numbers.
5318 * java/io/Writer.java (write): Removed write(char) to avoid
5320 * java/util/Properties.java: Rewrote from scratch.
5321 * include/javaprims.h (java::io): Added PrintWriter,
5322 BufferedWriter, PushbackReader.
5324 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5326 * java/lang/System.java: exit() is a static method.
5328 1998-10-26 Tom Tromey <tromey@cygnus.com>
5330 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5332 (_Jv_NewStringUtf8Const): Likewise.
5333 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5334 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5336 * java/lang/Object.h (Object): Add mark_array as friend function.
5337 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5338 _Jv_AllocBytes, to ensure that header is marked.
5339 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5341 (mark_array): Push sync_info field for array.
5343 1998-10-24 Tom Tromey <tromey@cygnus.com>
5345 * java/lang/String.java (String): Updated for StringBuffer
5347 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5349 * java/lang/StringBuffer.java: Renamed fields to conform to
5350 serialization spec: buffer->value, next->count, copy->shared.
5352 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5354 * java/util/TimeZone.java: New class.
5355 * java/util/SimpleTimeZone.java: New class.
5356 * java/util/Locale.java: New file.
5357 * java/util/Calendar.java: Make almost complete.
5358 * java/util/GregorianCalendar.java
5359 * java/util/natGregorianCalendar.cc: New file.
5360 * java/util/Date.java: Re-written from scratch.
5361 * java/util/natDate.cc (setTime): Removed - no longer native.
5362 * include/javaprims.h (java::util): Add new classes.
5363 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5364 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5366 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5368 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5369 returning it as a jint.
5371 1998-10-23 Tom Tromey <tromey@cygnus.com>
5373 * prims.cc (arg_vec, main_group, main_thread): New globals.
5374 (JvRunMain): Use them.
5376 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5378 * java/io/DataInputStream.java: Rewritten.
5380 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5381 tertiary bytes with 0x80 per spec.
5383 1998-10-23 Tom Tromey <tromey@cygnus.com>
5385 * java/lang/String.java (init): Changed name of `copy' argument.
5386 * java/lang/natString.cc (init): Inverted sense of `copy'
5389 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5390 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5391 * boehm.cc (ObjectClass): New define.
5392 (ClassClass): Likewise.
5393 (mark_obj): Special-case Object and Class.
5395 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5397 * java/util/BitSet.java: Rewrote from scratch.
5399 * prims.cc (lookupArray): Removed useless cast.
5401 * java/lang/natObject.cc: Use `#pragma implementation'.
5403 * java/lang/String.java (init): Added `copy' argument.
5404 (String): Look in StringBuffer to find char array.
5405 * java/lang/natString.cc (init): Added `copy' argument.
5406 * java/lang/StringBuffer.java: Rewrote from scratch.
5408 * java/lang/Compiler.java: Rewrote from scratch.
5409 * java/lang/Throwable.java: Don't use NativeLang.
5410 * include/javaprims.h (java::lang): Don't mention NativeLang.
5411 * java/lang/Process.java: Rewrote from scratch.
5412 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5414 (currentClassLoader): Likewise.
5415 (currentLoadedClass): Likewise.
5416 * java/lang/natClass.cc (getClassLoader): Commented out.
5417 * java/lang/Class.java (getClassLoader): Commented out.
5418 * java/lang/Compiler.java: Removed.
5419 * java/lang/NativeLang.java: Removed.
5421 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5422 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5423 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5424 (_Jv_hashUtf8String): Now static.
5425 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5426 name of return type.
5428 * java/lang/Class.h (Class): Declare checkMemberAccess.
5429 * Makefile.in: Rebuilt.
5430 * Makefile.am (nat_headers): Added Member.h.
5431 * java/lang/natClass.cc: Include Member.h.
5432 (getDeclaredClasses): Call checkMemberAccess.
5433 * java/lang/Class.java (checkMemberAccess): Call
5434 SecurityManager.checkMemberAccess.
5436 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5438 * java/lang/SecurityManager.java: Rewritten.
5440 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5442 * java/applet/Applet.java, java/applet/AppletContext.java,
5443 java/applet/AppletStub.java, java/applet/AudioClip.java,
5444 java/awt/AWTError.java, java/awt/AWTException.java,
5445 java/awt/BorderLayout.java, java/awt/Button.java,
5446 java/awt/Canvas.java, java/awt/CardLayout.java,
5447 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5448 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5449 java/awt/Color.java, java/awt/Component.java,
5450 java/awt/Container.java, java/awt/Dialog.java,
5451 java/awt/Dimension.java, java/awt/Event.java,
5452 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5453 java/awt/Font.java, java/awt/FontMetrics.java,
5454 java/awt/Frame.java, java/awt/Graphics.java,
5455 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5456 java/awt/GridLayout.java, java/awt/Image.java,
5457 java/awt/Insets.java, java/awt/Label.java,
5458 java/awt/LayoutManager.java, java/awt/List.java,
5459 java/awt/MediaTracker.java, java/awt/Menu.java,
5460 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5461 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5462 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5463 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5464 java/awt/TextArea.java, java/awt/TextComponent.java,
5465 java/awt/TextField.java, java/awt/Toolkit.java,
5466 java/awt/Window.java, java/awt/image/ColorModel.java,
5467 java/awt/image/CropImageFilter.java,
5468 java/awt/image/DirectColorModel.java,
5469 java/awt/image/FilteredImageSource.java,
5470 java/awt/image/ImageConsumer.java,
5471 java/awt/image/ImageFilter.java,
5472 java/awt/image/ImageObserver.java,
5473 java/awt/image/ImageProducer.java,
5474 java/awt/image/IndexColorModel.java,
5475 java/awt/image/MemoryImageSource.java,
5476 java/awt/image/PixelGrabber.java,
5477 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5478 java/awt/peer/CanvasPeer.java,
5479 java/awt/peer/CheckboxMenuItemPeer.java,
5480 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5481 java/awt/peer/ComponentPeer.java,
5482 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5483 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5484 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5485 java/awt/peer/MenuBarPeer.java,
5486 java/awt/peer/MenuComponentPeer.java,
5487 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5488 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5489 java/awt/peer/TextAreaPeer.java,
5490 java/awt/peer/TextComponentPeer.java,
5491 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5492 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5493 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5494 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5495 java/net/MalformedURLException.java, java/net/NativeNet.java,
5496 java/net/ProtocolException.java, java/net/ServerSocket.java,
5497 java/net/Socket.java, java/net/SocketException.java,
5498 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5499 java/net/URL.java, java/net/URLConnection.java,
5500 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5501 java/net/URLStreamHandlerFactory.java,
5502 java/net/UnknownHostException.java,
5503 java/net/UnknownServiceException.java: Removed.
5505 1998-10-22 Tom Tromey <tromey@cygnus.com>
5507 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5508 finalizer is not Object.finalize.
5509 (internalAddClass): Don't set `final' member of class.
5510 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5511 other places that know about finalize() location.
5512 * java/lang/Class.h (Class): Removed `final' field.
5514 * aclocal.m4, configure: Rebuilt.
5515 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5516 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5518 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5519 * Makefile.in: Rebuilt.
5520 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5522 1998-10-21 Tom Tromey <tromey@cygnus.com>
5524 * java/lang/Object.java (finalize): Move to be first method in
5527 * configure: Rebuilt.
5528 * configure.in (GCINCS): Include contents of boehm-cflags file.
5530 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5532 * java/lang/ArrayIndexOutOfBoundsException.java
5533 (ArrayIndexOutOfBoundsException): Fixed string literal.
5534 * java/lang/StringIndexOutOfBoundsException.java
5535 (StringIndexOutOfBoundsException): Fixed string literal.
5537 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5539 * natFileDescriptorEcos.cc added.
5540 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5542 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5544 * acconfig.h: test for __int32_t and __uint32_t added.
5545 * include/config.h.in: test for __int32_t and __uint32_t added.
5546 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5547 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5548 * configure.in: test for __int32_t and __uint32_t added.
5549 * configure: test for __int32_t and __uint32_t added.
5551 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5553 * configure.in: Test for --enable ecos and link
5554 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5555 natFileDescriptorPosix.cc
5557 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5559 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5561 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5564 * java/io/CharArrayReader.java (close): Synchronize on lock
5565 object per Reader contract.
5566 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5567 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5568 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5569 Ensure that arg passed in isn't negative.
5571 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5572 constructing the superclass.
5574 * java/io/PushbackReader.java (close): Synchronize on lock
5575 object per Reader contract.
5576 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5577 (ready): Synchronize on lock obj. Throw IOException if reader
5579 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5580 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5581 Ensure that arg passed in isn't negative.
5582 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5584 * java/io/StringReader.java: Created.
5586 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5588 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5590 (read): Removed synchronized modifier to match JCL.
5591 (reset): Removed synchronized modifier to match JCL.
5592 (skip): Removed synchronized modifier to match JCL.
5594 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5596 * java/io/PushbackReader.java (PushbackReader): Made
5597 constructors public.
5599 1998-10-17 Tom Tromey <tromey@cygnus.com>
5601 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5602 constructors public.
5604 1998-10-16 Anthony Green <green@cygnus.com>
5606 * aclocal.m4, configure: Rebuilt.
5607 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5609 * configure.host: Rewrote.
5610 * Makefile.in: Rebuilt.
5611 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5612 (AM_CFLAGS): New macro.
5613 ($(c_files)): Use COMPILE macro.
5614 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5615 automake problem(s).
5617 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5619 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5621 * java/io/CharArrayReader.java: Created.
5623 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5625 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5626 size check to allow 0 per JCL.
5628 * java/io/PushbackReader.java: Created.
5630 1998-10-16 Tom Tromey <tromey@cygnus.com>
5632 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5633 <sys/time.h> includes.
5634 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5635 * include/no-threads.h: Conditionalize <unistd.h> include on
5638 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5640 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5643 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5645 * java/io/FilterReader.java: Created.
5647 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5649 * java/io/PushbackInputStream.java: Rewritten.
5651 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5652 that size passed to constructor is legal.
5653 (read): Check that args passed in are legal.
5654 (skip): Rewritten to get rid of the temporary buffer.
5655 (refill): Added marklimit check to grow the buffer.
5657 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5659 (bytesAvail): Removed.
5660 (read): Changed bytesAvail to Math.min.
5661 (skip): Changed bytesAvail to Math.min.
5663 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5664 from the throws clause.
5665 (skip): Rewritten to use a temporary buffer.
5667 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5669 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5672 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5674 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5675 to write the double one word at a time.
5677 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5679 * java/io/BufferedInputStream.java: Rewritten.
5681 1998-10-12 Tom Tromey <tromey@cygnus.com>
5683 * jni.cc: Include config.h and stddef.h.
5685 * java/lang/Class.h (_dispatchTable): Removed again.
5686 Removed all ACC_* defines again.
5688 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5690 * Makefile.am (nat_files): Add netField.o.
5691 (libjava_a_SOURCES): Add jni.cc.
5692 (java/lang/reflect/Field.h): New rule.
5693 * Makefile.in: Re-generated.
5694 * include/javaprims.h: Add some extra class and typedefs.
5695 * include/jni.h: New file.
5698 * include/java-field.h: New file.
5699 * include/jvm.h: #include <java-field.h>.
5700 * boehm.cc: #include <java-field.h>.
5701 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5702 * java/lang/reflect/Member.java: New class.
5703 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5704 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5706 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5708 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5709 testsuite/Makefile.in: Rebuilt.
5710 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5711 * configure.host: Created.
5713 1998-10-10 Tom Tromey <tromey@cygnus.com>
5715 * java/lang/natObject.cc (sync_init): Always allocate a new
5718 1998-10-09 Tom Tromey <tromey@cygnus.com>
5720 * java/io/ByteArrayInputStream.java (mark): Renamed from
5723 * java/io/FileOutputStream.java (finalize): Removed.
5724 * java/io/FileDescriptor.java (finalize): New method.
5726 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5728 * ByteArrayInputStream.java: Corrected status comment.
5730 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5732 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5734 1998-10-08 Tom Tromey <tromey@cygnus.com>
5736 * prims.cc (lookupArray): Use static array to initialize list of
5739 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5741 * prims.cc (lookupArray): Initialize the msize for new
5744 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5746 * configure: Rebuilt.
5747 * configure.in: Check for fsync and sleep.
5748 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5750 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5751 HAVE_SLEEP. Include config.h.
5753 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5754 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5757 1998-10-08 Tom Tromey <tromey@cygnus.com>
5759 * java/io/natFile.cc: Don't include SecurityManager.h.
5760 (performList): Renamed.
5761 (performMkdir): Likewise.
5762 (performRenameTo): Likewise.
5763 (performDelete): Likewise.
5765 * java/io/File.java (performDelete): Renamed from natDelete.
5766 (list): Now written in Java.
5767 (performList): New method.
5768 (performMkdir): New method.
5769 (mkdir): Now written in Java.
5770 (performRenameTo): New method.
5771 (renameTo): Now written in Java.
5773 1998-10-06 Tom Tromey <tromey@cygnus.com>
5775 * Makefile.in: Rebuilt.
5776 * Makefile.am (ETAGS_ARGS): New macro.
5777 (TAGS_DEPENDENCIES): Likewise.
5779 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5781 * Makefile.in: Rebuilt.
5782 * Makefile.am: Use -classpath option with javac.
5784 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5786 * java/io/FileOutputStream.java (finalize): Call
5789 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5791 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5793 * java/lang/mprec.c: Ditto.
5795 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5798 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5800 * java/io/InputStream.java (skip): Make local var i a long.
5802 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5804 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5805 * prims.cc (lookupArray): Use memcpy, not memmove.
5806 * include/config.h.in: Rebuilt.
5807 * acconfig.h (HAVE_MEMCPY): Added.
5808 * configure: Rebuilt.
5809 * configure.in: Check for memcpy again.
5811 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5812 String.compareTo, not ==.
5814 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5815 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5816 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5817 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5818 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5819 into new array's dtable.
5820 (_Jv_AllocObject): Use _Jv_DispatchTable.
5821 (_Jv_NewPrimArray): Likewise.
5822 (_Jv_NewObjectArray): Likewise.
5824 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5826 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5827 offending index value.
5828 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5830 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5831 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5833 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5835 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5837 * java/io/OutputStream.java (write): Use off and len parameters to
5838 output partial byte array.
5840 * java/io/BufferedReader.java, java/io/FileReader.java,
5841 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5842 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5843 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5844 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5846 * include/javaprims.h (java::lang): Added
5847 ExceptionInInitializerError, IllegalStateException,
5848 NoSuchFieldException, and UnsupportedOperationException.
5850 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5852 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5855 * include/java-array.h (__JArray): Added clone method.
5856 * prims.cc (CloneableClass): New define.
5857 (lookupArray): Initialize array class to indicate that it
5858 implements Cloneable.
5860 * java/lang/Class.h: Removed all ACC_* defines.
5861 * prims.cc: Include Modifier.h.
5862 (_Jv_LookupInterfaceMethod): Use methods in
5863 java.lang.reflect.Modifier, not ACC_ defines.
5865 * java/lang/Class.h (Class): Declare getClasses,
5866 getDeclaredClasses, getDeclaringClass, getModifiers,
5867 * java/lang/Class.java: Rewrote from scratch.
5869 * include/javaprims.h (java::lang): Added reflect and
5871 * Makefile.in: Rebuilt.
5872 * Makefile.am (nat_headers): Added Modifier.h.
5874 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5877 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5879 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5880 instead of test and abort.
5882 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5883 remove compiler warning.
5885 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5887 * java/lang/natDouble.cc: zero terminate string.
5888 * strtod.c: Set errno if no digits are found in fraction.
5890 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5892 * java/lang/reflect/Modifier.java: New file.
5894 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5895 * java/lang/VerifyError.java: Rewrote from scratch.
5896 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5897 * java/lang/UnknownError.java: Rewrote from scratch.
5898 * java/lang/StackOverflowError.java: Rewrote from scratch.
5899 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5900 * java/lang/InternalError.java: Rewrote from scratch.
5901 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5902 * java/lang/ExceptionInInitializerError.java: New file.
5903 * java/lang/Error.java: Rewrote from scratch.
5904 * java/lang/ClassFormatError.java: Rewrote from scratch.
5905 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5906 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5907 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5908 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5909 * java/lang/LinkageError.java: Rewrote from scratch.
5910 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5912 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5914 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5915 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5917 * include/cni.h (JvAllocObject): Moved from prims.cc.
5919 * prims.cc (JvAllocObject): Moved to cni.h.
5920 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5921 (finalize_name): Removed.
5923 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5925 * java/lang/Class.h (Class): Added size() method.
5926 * prims.cc (_Jv_MonitorEnter): Removed.
5927 (_Jv_MonitorExit): Removed.
5928 * java/lang/Object.h (JvSyncInfo): Removed.
5929 * Makefile.in: Rebuilt.
5930 * Makefile.am (nat_headers): Added Cloneable.h,
5931 CloneNotSupportedException.h.
5932 * java/lang/Object.h: Rewrote.
5933 * java/lang/natObject.cc: Rewrote from scratch.
5934 * java/lang/Object.java: Rewrote from scratch.
5936 * java/io/natFile.cc: Conditionally include <dirent.h>.
5937 (list): If no <dirent.h>, always return NULL.
5938 * configure: Rebuilt.
5939 * configure.in: Check for dirent.h.
5941 * prims.cc (lookupArray): Don't use sprintf.
5943 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5950 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5951 name conflict with method.
5953 * include/javaprims.h (java::util): Added HashtableEntry.
5955 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5957 * java/util/Hashtable.java: Rewritten.
5959 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5961 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5965 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5968 * posix-threads.cc (_Jv_CondWait): Now returns int.
5969 * include/javaprims.h (java::lang): Added
5970 IllegalMonitorStateException.
5971 * Makefile.in: Rebuilt.
5972 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5973 * include/no-threads.h (_Jv_CondDestroy): Removed.
5974 (_Jv_MutexDestroy): Removed.
5975 (_Jv_CondWait): Now returns int.
5976 (_Jv_CondNotify): Likewise. Added mutex argument.
5977 (_Jv_CondNotifyAll): Likewise.
5978 (_Jv_MutexLock): Always succeed.
5979 (_Jv_MutexUnlock): Likewise.
5980 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5981 (_Jv_HaveMutexDestroy): Define.
5982 (_Jv_CondNotify): Now returns int. Added mutex argument.
5983 (_Jv_CondNotifyAll): Likewise.
5984 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5985 (_Jv_MutexDestroy): Removed.
5986 (_Jv_CondWait): Now returns int.
5987 (_Jv_CondNotify): Likewise. Added mutex argument.
5988 (_Jv_CondNotifyAll): Likewise.
5989 * java/lang/natObject.cc (finalize_sync_info): New function.
5990 (init_mutex): Initialize `init' and register finalizer if
5993 (init_mutex): Use it.
5995 (notifyAll): Use it.
5997 (notify): Throw IllegalMonitorStateException on failure.
5998 (notifyAll): Likewise.
5999 (wait): Likewise. Also, throw InterruptedException if
6001 Include cni.h, Thread.h, IllegalMonitorStateException.h,
6002 InterruptedException.h, IllegalArgumentException.h.
6003 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
6005 * java/lang/natString.cc: Renamed all `JvPriv' functions.
6006 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
6007 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
6008 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
6009 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
6010 * quick-threads.cc: Renamed all `JvPriv' functions.
6011 * prims.cc: Renamed all `JvPriv' functions.
6012 * posix-threads.cc: Renamed all `JvPriv' functions.
6013 * nogc.cc: Renamed all `JvPriv' functions.
6014 * no-threads.cc: Renamed all `JvPriv' functions.
6015 * boehm.cc: Renamed all `JvPriv' functions.
6016 * include/quick-threads.h: Renamed all `JvPriv' functions.
6017 * include/posix-threads.h: Renamed all `JvPriv' functions.
6018 * include/no-threads.h: Renamed all `JvPriv' functions.
6019 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
6021 * include/no-threads.h (JvPrivCondWait): Wrote minimal
6023 (JvPrivCondNotify): Do nothing.
6024 (JvPrivCondNotifyAll): Do nothing.
6026 * prims.cc (processClass): Handle case where state is
6029 * java/lang/natFirstThread.cc: Include <stdlib.h>
6031 * configure: Rebuilt.
6032 * configure.in: Fixed sense of --enable-libjava-debug.
6034 * java/lang/natThread.cc (join): Declare `t' outside the loop so
6035 it can be used afterward by the assertion.
6037 * configure: Rebuilt.
6038 * configure.in: When cross-compiling, assume alloca.
6040 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
6041 __builtin_alloca (autoconf docs are wrong here).
6043 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
6045 (available): Use `FD_ZERO' (typo fix).
6047 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6049 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6050 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
6052 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6053 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
6056 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
6058 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
6060 * java/lang/natDouble.cc: Declare alloca safely.
6062 * configure, include/config.h.in: Rebuilt.
6063 * configure.in: Add alloca check.
6065 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
6067 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
6068 condition while calling notify.
6069 (join): Remove `curr_nt' from `nt's join list, not vice versa.
6070 (interrupt): Hold mutex for interrupt condition while calling
6073 * java/lang/natString.cc (init): Allocate and try to read `count'
6074 characters, not `count - offset' characters.
6076 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
6077 Correctly compute `count'.
6079 * java/lang/Boolean.java (getBoolean): Return false if property
6082 * java/lang/System.java (setProperties): Set prop_init.
6084 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
6086 * java/io/PrintStream.java (println): Use line.separator, not
6088 * java/lang/System.java (out, err): Make both autoflush streams.
6089 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
6091 * include/config.h.in: Rebuilt.
6092 * acconfig.h (HAVE_MEMCPY): Removed.
6093 * configure: Rebuilt.
6094 * configure.in: Never define HAVE_MEMCPY.
6096 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
6098 (_Jv_AllocString): Use JvAllocObject again.
6099 * java/lang/Class.h (thread): New field.
6100 (_Jv_AllocString): No longer a friend.
6101 * prims.cc (processClass): Removed dead code. Changed to more
6102 closely follow the Java Language Specification.
6103 (processClass): Return early if already at the right state.
6105 * prims.cc (JvNewStringUTF): Removed.
6106 * include/cni.h (JvNewStringUTF): New function.
6107 (_Jv_NewStringUTF): Declare as `extern "C"'.
6108 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
6110 * java/lang/natDouble.cc: Added copyright info and header
6111 comment. Include <stdlib.h>.
6112 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
6113 bytes as are chars in string.
6115 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
6117 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
6121 * java/lang/System.java (init_properties): Now native.
6122 * java/lang/natSystem.cc (init_properties): New method.
6123 Include java/util/Properties.h.
6125 * Makefile.in: Rebuilt.
6126 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
6127 OutputStreamWriter.h, ByteArrayInputStream.h,
6128 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
6129 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
6130 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
6131 Properties.h, Hashtable.h, Dictionary.h.
6134 * include/javaprims.h (java::io): Added Reader, Writer,
6135 InputStreamReader, OutputStreamWriter,
6136 UnsupportedEncodingException, ByteArrayInputStream,
6137 ByteArrayOutputStream, EOFException, SyncFailedException,
6138 PushbackInputStream.
6139 (java::lang): Added Cloneable.
6140 (java::util): Added NoSuchElementException, VectorEnumeration,
6141 Dictionary, HashtableEnumeration, PropertiesEnumeration.
6143 * java/io/PipedReader.java: New file.
6145 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
6147 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
6150 * java/io/io-defs.h: Removed.
6152 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
6153 (FileInputStream): Use new constructor. Can throw IOException.
6155 * java/lang/System.java (getProperty): Don't throw
6156 NullPointerException.
6158 * java/io/RandomAccessFile.java: Rewrote from scratch.
6160 * java/io/natFileDescriptor.cc: Include EOFException.h.
6162 (length): New method.
6163 (getFilePointer): New method.
6165 (available): New method.
6166 * java/io/FileDescriptor.java (SET, CUR): New constants.
6167 (seek, length, getFilePointer, read, available): New decls.
6169 * java/io/PipedWriter.java: New file.
6170 * java/io/StringWriter.java: New file.
6171 * java/io/CharArrayWriter.java: New file.
6172 * java/io/CharConversionException.java: New file.
6173 * java/io/BufferedWriter.java: New file.
6174 * java/io/FilterWriter.java: New file.
6175 * java/io/FileWriter.java: New file.
6177 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6178 OutputStreamWriter.h, NullPointerException.h,
6179 ByteArrayInputStream.h, InputStreamReader.h.
6180 (getBytes): New method.
6181 (init): Throw NullPointerException.
6182 (init): New function.
6183 * java/lang/String.java (getBytes): Added missing decl.
6184 (getBytes): New method.
6185 (String): Added byte[]-based constructors.
6186 (copyValueOf): Wrote.
6187 (init): Declare variant which takes byte array and encoding.
6188 Import java.io.UnsupportedEncodingException.
6190 * java/io/File.java: Rewrote from scratch.
6191 * java/io/natFileDescriptor.cc: Rewrote from scratch.
6192 * java/io/FileDescriptor.java: Rewrote from scratch.
6193 * java/io/FilenameFilter.java: Rewrote from scratch.
6195 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6197 * java/io/SyncFailedException.java: New file.
6198 * java/io/UTFDataFormatException.java: Rewrote from scratch.
6199 * java/io/InterruptedIOException.java: Rewrote from scratch.
6200 * java/io/FileNotFoundException.java: Rewrote from scratch.
6201 * java/io/EOFException.java: Rewrote from scratch.
6202 * java/io/IOException.java: Rewrote from scratch.
6203 * java/io/PrintStream.java: Rewrote from scratch.
6204 * java/io/DataOutputStream.java: Rewrote from scratch.
6205 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6206 * java/io/FilterOutputStream.java: Rewrote from scratch.
6207 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6208 * java/io/PipedOutputStream.java: Rewrote from scratch.
6209 * java/io/FileOutputStream.java: Rewrote from scratch.
6210 * java/io/OutputStream.java: Rewrote from scratch.
6211 * java/io/DataOutput.java: Rewrote from scratch.
6213 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6215 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6217 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6219 * configure.in: Add --enable-libjava-debug
6221 * Makefile.am (nat_headers): Add java/lang/Float.h and
6224 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6226 * Makefile.in, configure, include/config.h.in: Rebuilt.
6228 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6230 * java/lang/Float.java: Rewritten
6231 * java/lang/Double.java: Rewritten
6232 * java/lang/natFloat.cc: toString() added.
6233 * java/lang/natDouble.cc: toString() added.
6234 * java/lang/natDouble.cc: doubleValueOf() added.
6235 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6236 java/lang/strtod.c: added.
6237 * ieeefp.h: __sparc added.
6238 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6240 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6242 * include/javaprims.h (java::lang): Added
6243 CloneNotSupportedException.
6245 * java/lang/Object.java (clone): No longer native. Implemented.
6246 * java/lang/natObject.cc (clone): Removed.
6248 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6250 * prims.cc: Don't make definitions `extern "C"'.
6251 (_Jv_RegisterClass): Renamed from registerClass.
6252 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6253 (_Jv_NewArray): Likewise.
6254 (_Jv_NewMultiArray): Likewise.
6255 (_Jv_CheckCast): Likewise.
6256 (_Jv_LookupInterfaceMethod): Likewise.
6257 (_Jv_CheckArrayStore): Likewise.
6258 (_Jv_RegisterClass): Likewise.
6260 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6261 * configure: Rebuilt.
6262 * configure.in: Don't check for fmod; it is provided by the fdlibm
6264 * prims.cc (fmod): Removed.
6266 * java/lang/natString.cc (charAt): Use _Jv_uint.
6267 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6268 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6269 (equalUtf8Consts): Likewise.
6270 (internalAddClass): Use _Jv_uint.
6271 (processClass): Likewise.
6272 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6273 (_Jv_uint): Renamed from uint32.
6274 (struct _Jv_Utf8Const): Changed members to use new type names.
6276 * configure: Rebuilt.
6277 * configure.in: Don't check for memcpy. Require memmove and a way
6279 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6281 (currentTimeMillis): Don't use #error.
6283 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6285 * java/lang/Math.java: static member random renamed to random_ to
6286 avoid conflict with member function of the same name.
6287 * include/javaprims.h: java.util.Random added.
6289 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6291 * include/java-chartables.h: Regenerated.
6292 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6295 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6297 * java/lang/Math.java: Rewritten.
6298 * java/lang/natMath.cc: New file.
6299 * Files added from fdlibm:
6300 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6301 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6302 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6303 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6304 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6305 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6306 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6307 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6308 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6309 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6310 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6311 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6312 java/lang/k_cos.c, java/lang/sf_ceil.c,
6313 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6314 java/lang/ieeefp.h, java/lang/fdlibm.h
6315 * Makefile.am: rules added for compiling C files from fdlibm.
6317 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6319 * chartables.pl: Minor documentation fixes.
6321 * configure: Rebuilt.
6322 * configure.in: Fixed --help output for --enable-fast-character.
6324 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6326 * configure: Rebuilt.
6327 * configure.in: Recognize --enable-fast-character.
6328 * acconfig.h (COMPACT_CHARACTER): New define.
6329 * include/config.h.in: Rebuilt.
6330 * include/java-chartables.h: New file.
6331 * Makefile.in: Rebuilt.
6332 * Makefile.am (nat_files): Added natCharacter.o.
6333 * java/lang/natCharacter.cc: New file.
6334 * chartables.pl (set_attribute): New function.
6335 (@attributes, @second_attributes): New globals.
6336 ($ROMAN_START, $ROMAN_END): Likewise.
6337 (process_char): Call set_attribute when required.
6338 (print_char): Just print hex value.
6339 (print_block): Generate C++ syntax.
6340 (print_numerics): Likewise.
6341 (print_single_map): Likewise.
6342 (print_all_block): Likewise.
6343 (print_case_table): Likewise.
6344 (print_fast_tables): New function.
6345 Generate C++ code suitable for a header file.
6346 * java/lang/Character.java (table_search): Removed.
6347 (digit_value): Now native.
6348 (getNumericValue): Likewise.
6349 (getType): Likewise.
6350 Removed all automatically-generated tables.
6351 (Tamil_Digit_One): Removed.
6352 (isSpaceChar): Now native.
6353 (isTitleCase): Likewise.
6354 (isLowerCase): Likewise.
6355 (isUpperCase): Likewise.
6356 (toLowerCase): Likewise.
6357 (toTitleCase): Likewise.
6358 (toUpperCase): Likewise.
6359 (isDefined): Fixed sense of test.
6361 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6363 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6365 (regionMatches): Likewise.
6367 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6369 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6371 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6373 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6376 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6379 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6381 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6383 * prims.cc (instanceof_class): Removed.
6384 (instanceof_array): Likewise.
6385 (instanceof): Likewise.
6386 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6387 (_Jv_CheckCast): Likewise.
6388 * java/lang/natClass.cc (isAssignableFrom): New method.
6389 * java/lang/Class.java (isAssignableFrom): Now native.
6391 * include/cni.h (JvThrow): Use `extern inline'.
6392 (JvAllocObject): Likewise.
6393 (JvInitClass): Likewise.
6395 * java/lang/natSystem.cc (arraycopy): Only check class of source
6398 * prims.cc (_Jv_CheckArrayStore): Wrote.
6399 (_Jv_MonitorEnter): Prefer `JvThrow'.
6400 Include ArrayStoreException.h.
6401 (_Jv_CheckCast): Indentation cleanup.
6403 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6405 * chartables.pl: New file.
6406 * java/lang/Character.java: Rewrote from scratch.
6408 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6410 * java/lang/ArithmeticException.java,
6411 java/lang/ArrayIndexOutOfBoundsException.java,
6412 java/lang/ArrayStoreException.java,
6413 java/lang/ClassCastException.java,
6414 java/lang/ClassNotFoundException.java,
6415 java/lang/CloneNotSupportedException.java,
6416 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6417 java/lang/IllegalArgumentException.java,
6418 java/lang/IllegalMonitorStateException.java,
6419 java/lang/IllegalThreadStateException.java,
6420 java/lang/IndexOutOfBoundsException.java,
6421 java/lang/InstantiationException.java,
6422 java/lang/InterruptedException.java,
6423 java/lang/NegativeArraySizeException.java,
6424 java/lang/NoSuchMethodException.java,
6425 java/lang/NullPointerException.java,
6426 java/lang/NumberFormatException.java,
6427 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6428 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6430 * java/lang/IllegalStateException.java,
6431 java/lang/NoSuchFieldException.java,
6432 java/lang/UnsupportedOperationException.java: Created.
6434 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6436 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6437 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6439 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6441 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6443 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6445 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6447 * Makefile.in: Rebuilt.
6449 * include/javaprims.h (java::lang): Added
6450 StringIndexOutOfBoundsException.
6452 * java/lang/String.java: Added header comment and FIXME comment for
6453 missing constructors/methods.
6454 (endsWith): Adjusted offset into string to look at just the last chars.
6455 Commented out undocumented method.
6457 * java/lang/natString.cc: Added includes for
6458 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6459 (String::init): Throw StringIndexOutOfBoundsException.
6460 (String::charAt): Throw StringIndexOutOfBoundsException.
6461 (String::substring): Throw StringIndexOutOfBoundsException.
6462 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6463 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6464 (String::compareTo): Return difference/offset between chars/strings.
6466 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6468 * java/lang/Boolean.java (TYPE): Added comment.
6470 * java/lang/Byte.java (decode): Added - commented out until dependent
6471 code for Integer is written.
6472 (compareTo): JDK 1.2 methods written.
6473 (hashCode): Added comment to note that values have been verified.
6475 * java/lang/Short.java (decode): Added - commented out until dependent
6476 code for Integer is written.
6477 (compareTo): JDK 1.2 methods written.
6478 (hashCode): Added comment to note that values have been verified.
6480 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6482 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6484 * include/javaprims.h (java::lang): Added VirtualMachineError,
6486 * Makefile.in: Rebuilt.
6487 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6488 VirtualMachineError.h.
6489 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6490 (lookupArray): Likewise.
6491 (makeUtf8Const): Likewise.
6492 (_Jv_AllocObject): Likewise.
6493 (_Jv_NewObjectArray): Likewise.
6494 Include OutOfMemoryError.h.
6496 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6497 to use JvNewStringLatin1.
6499 * java/io/io-defs.h: Include java/lang/IOException.h.
6500 * Makefile.in: Rebuilt.
6501 * Makefile.am (nat_headers): Added
6502 ArrayIndexOutOfBoundsException.h,
6503 ClassFormatError.h,ClassNotFoundException.h,
6504 ClassCircularityError.h, ClassCastException.h,
6505 IncompatibleClassChangeError.h, AbstractMethodError.h,
6506 IllegalAccessError.h, LinkageError.h, Error.h,
6507 NegativeArraySizeException.h, IOException.h.
6508 * include/cni.h (SignalError): Removed declaration.
6509 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6510 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6511 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6512 (newInstance): Likewise.
6513 (forName): Likewise.
6514 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6516 (read): Use JvThrow, not SignalError.
6521 (open_read): Likewise.
6522 (open_write): Likewise.
6525 (newstr): New function.
6526 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6528 (lastModifiedUnchecked): Likewise.
6529 (lengthUnchecked): Likewise.
6530 * include/javaprims.h (sorry): Removed declaration.
6531 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6532 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6533 ClassCastException, IncompatibleClassChangeError,
6534 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6535 * prims.cc (instanceof_array): Use JvFail, not sorry.
6537 Include ArrayIndexOutOfBoundsException.h,
6538 ClassFormatError.h,ClassNotFoundException.h,
6539 ClassCircularityError.h, ClassCastException.h,
6540 IncompatibleClassChangeError.h, AbstractMethodError.h,
6541 IllegalAccessError.h, NegativeArraySizeException.h.
6542 (_Jv_ThrowBadArrayIndex): Implemented.
6543 (JvNewStringUTF): Use JvFail, not sorry.
6544 (_Jv_FindClass): Likewise.
6545 (_Jv_NewArray): Likewise.
6546 (throwException): Removed.
6547 (getClass): Use JvThrow.
6548 (processClass): Likewise.
6549 (_Jv_NewObjectArray): Likewise.
6550 (_Jv_NewMultiArray): Likewise.
6551 (_Jv_CheckCast): Likewise.
6552 (_Jv_LookupInterfaceMethod): Likewise.
6553 (SignalError): Removed.
6554 (getClass): Use _Jv_NewStringUtf8Const to create String.
6556 * java/lang/natSystem.cc (arraycopy): Throw
6557 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6559 * Makefile.in: Rebuilt.
6560 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6562 * include/java-array.h: Mention gcjh, not gjavah.
6564 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6565 (canReadUnchecked): Likewise.
6566 (canWriteUnchecked): Likewise.
6567 (isFileUnchecked): Likewise.
6568 * java/io/natFileDescriptor.cc: Don't include cni.h.
6570 * java/lang/Thread.java (run__): Declare.
6571 * java/lang/natThread.cc (run__): New method, to avoid compiler
6573 (start): Use run__, not run_.
6575 * java/io/io-defs.h: Include cni.h and jvm.h.
6577 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6579 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6580 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6581 to natString.cc (with suitable renaming, inlines etc).
6582 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6583 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6584 * java/lang/String.h: Removed - now generated using gjavah.
6585 * java/lang/String.java: Re-written from scratch. Many native methods.
6586 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6587 * java/lang/natString.cc: Many functions re-written for "compact
6588 strings" representation, or native java.lang.String methods added.
6589 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6590 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6591 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6592 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6593 * include/cni.h: Add inline method.
6594 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6595 * include/javaprims.h: Moved some stuff frm String.h.
6596 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6597 * Makefile.am (nat_header): Added Character.h and String.h.
6598 (String.h): Add new rule.
6600 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6602 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6604 * posix-threads.cc: Include cni.h, jvm.h.
6605 * quick-threads.cc: Include cni.h, jvm.h.
6606 * nogc.cc: Include cni.h, not javaprims.h.
6607 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6608 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6609 include java-assert.h.
6610 * java/lang/natSystem.cc: Include cni.h. Don't include
6612 * java/lang/natRuntime.cc: Include cni.h. Don't include
6614 * prims.cc: Rearranged #include ordering. Don't include
6615 java-array.h or java-assert.h.
6616 * boehm.cc: Include config.h, cni.h.
6617 * exception.cc: Include config.h, cni.h.
6618 * include/jvm.h: Include java-assert.h.
6619 * include/cni.h: Include java/lang/Object.h. Don't include
6620 java-threads.h or java-array.h.
6622 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6624 * java/lang/Boolean.java: Rewritten.
6626 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6628 * java/lang/natFirstThread.cc (main_func): New typedef.
6629 (run): Use main_func, not JvPrivThreadStartFunc.
6630 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6632 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6634 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6637 Can't throw Java exceptions with C++ `throw':
6638 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6639 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6640 (setPriority): Likewise.
6644 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6645 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6647 Can't catch Java exceptions from C++:
6648 * java/lang/natThread.cc (finish_): New method.
6650 * java/lang/Thread.java (run_): Rewrote in Java.
6651 (finish_): New native method.
6653 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6655 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6657 * include/javaprims.h (java::io): Added Serializable.
6659 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6661 * java/util/EmptyStackException.java,
6662 java/util/NoSuchElementException.java: Rewritten.
6664 * java/util/ConcurrentModificationException.java,
6665 java/util/MissingResourceException.java,
6666 java/util/TooManyListenersException.java: Created.
6668 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6670 * include/cni.h (JvThrow): New function.
6671 * include/javaprims.h (_Jv_Throw): Declare.
6673 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6675 * java/util/Observable.java: Rewritten.
6677 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6679 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6680 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6681 Include NullPointerException.h.
6683 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6685 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6686 assignability checks. Don't bother using memcpy.
6688 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6690 * include/quick-threads.h (JvPrivThreadWait): New function.
6691 * include/no-threads.h (JvPrivThreadWait): New function.
6692 * include/posix-threads.h (JvPrivThreadWait): New function.
6693 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6695 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6697 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6698 offsets by size of type that is being copied.
6700 * java/lang/natThread.cc (start): Don't pass `object' argument to
6702 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6703 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6705 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6706 always pass thread as object.
6707 * include/quick-threads.h, include/posix-threads.h,
6708 include/no-threads.h (JvPrivThreadStart): Removed `object'
6711 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6713 * java/util/Dictionary.java: Rewritten.
6715 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6717 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6718 (JvPrivThreadDestroy): Likewise.
6720 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6722 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6724 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6726 * java/lang/natSystem.cc: Rewrote from scratch.
6727 * java/lang/System.java: Rewrote from scratch.
6728 * java/lang/Class.h (Class): Declare isAssignableFrom.
6729 * include/javaprims.h (java::lang): Added ArrayStoreException,
6730 IndexOutOfBoundsException.
6731 * Makefile.in: Rebuilt.
6732 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6733 IndexOutOfBoundsException.h.
6734 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6735 * include/jvm.h (_Jv_HashCode): New function.
6737 * java/lang/natThread.cc (suspend): Call checkAccess.
6739 * java/lang/Thread.java (setDaemon): Call checkAccess.
6741 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6743 * java/lang/Runtime.java: Rewrote from scratch.
6744 * java/lang/natRuntime.cc: Rewrote from scratch.
6746 * nogc.cc (JvPrivGCTotalMemory): New function.
6747 (JvPrivGCFreeMemory): Likewise.
6748 (total): New global.
6749 (JvPrivAllocObj): Increment total.
6750 (JvPrivAllocArray): Likewise.
6751 (JvPrivAllocBytes): Likewise.
6752 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6753 * boehm.cc (JvPrivGCTotalMemory): New function.
6754 (sum_blocks): Likewise.
6755 (JvPrivGCFreeMemory): Likewise.
6757 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6759 * include/javaprims.h (java::lang): Added FirstThread.
6760 * java/lang/natFirstThread.cc: New file.
6761 * java/lang/FirstThread.java: New file.
6762 * prims.cc (main_signature): Removed.
6763 (main_name): Removed.
6764 #include FirstThread.h.
6765 * Makefile.in: Rebuilt.
6766 * Makefile.am (TFRIEND): Removed.
6767 (java/lang/Thread.h): Likewise.
6768 (FTFRIEND): New macro.
6769 (java/lang/FirstThread.h): New target.
6770 (nat_files): Added natFirstThread.o.
6771 (nat_headers): Added FirstThread.h.
6772 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6773 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6775 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6779 * java/lang/natThread.cc (start): Synchronize the thread.
6780 (stop): Synchronize the thread.
6782 * java/lang/ThreadDeath.java: Rewrote from scratch.
6784 * Makefile.in: Rebuilt.
6785 * Makefile.am (TGFRIEND): New macro.
6786 (java/lang/ThreadGroup.h): New target.
6787 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6789 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6791 * nogc.cc: Include config.h.
6793 * java/lang/ThreadGroup.java: Rewrote from scratch.
6795 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6797 * java/lang/Thread.java (checkAccess): Only call in to security
6798 manager if it exists.
6799 (Thread): Don't check access when creating the first thread. Add
6800 this thread to the appropriate ThreadGroup.
6802 * java/lang/natThread.cc (run_): Call uncaughtException method on
6805 * java/lang/Runnable.java: Rewrote from scratch.
6806 * java/lang/Thread.java: Updated copyright comment to correct
6809 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6811 * java/util/Random.java: Rewritten.
6813 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6815 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6816 trailing 0 in array[].
6818 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6820 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6821 and RUNTESTFLAGS from AM_MAKEFLAGS.
6822 (SUBDIRS): Conditionally include testsuite.
6823 * Makefile.in: Rebuilt.
6825 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6827 * java/lang/Object.h: Include java-assert.h.
6829 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6831 * Makefile.am: Add testsuite directory.
6832 * configure.in: Build testsuite/Makefile.
6833 * Makefile.in, configure: Rebuilt.
6835 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6837 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6838 * include/jvm.h (_Jv_StartFirstThread): Declare.
6840 * include/javaprims.h (java::lang): Added Exception,
6843 * Makefile.in: Rebuilt.
6844 * Makefile.am (nat_headers): Added NullPointerException.h,
6845 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6846 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6847 (java/lang/Thread.h): New target.
6848 (TFRIEND): New macro
6850 * include/java-assert.h (JvFail): Use 0 and not NULL.
6852 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6853 instead of assuming we are a friend of Thread.
6854 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6855 instead of assuming we are a friend of Thread.
6857 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6859 * java/lang/natThread.cc: Rewrote from scratch.
6860 * java/lang/Thread.java: Rewrote from scratch.
6861 * prims.cc (JvRunMain): Use new Thread constructor.
6862 * include/javaprims.h (java::lang): Added InterruptedException.
6863 * Makefile.in: Rebuilt.
6864 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6865 * java/lang/Thread.h: Removed.
6866 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6867 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6869 * posix-threads.cc (JvPrivThreadJoin): Removed.
6870 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6871 (really_start): Don't notify join_cond.
6872 (JvPrivThreadStart): Added `data' argument.
6873 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6874 (JvPrivThreadJoin): Likewise.
6875 Use JvFail instead of sorry.
6876 (JvPrivThreadSuspend): Removed.
6877 (JvPrivThreadResume): Removed.
6878 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6879 (JvPrivThreadJoin): Likewise.
6880 (JvPrivThreadSuspend): Use JvFail.
6881 (JvPrivThreadResume): Likewise.
6882 (JvPrivThreadSuspend): Removed.
6883 (JvPrivThreadResume): Likewise.
6884 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6885 (JvPrivThread_t): Removed join_mutex, join_cond.
6886 Use JvFail instead of sorry.
6887 (JvPrivThreadSuspend): Removed.
6888 (JvPrivThreadResume): Likewise.
6890 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6892 * java/util/Observer.java: Rewritten
6893 * java/util/Enumeration.java: Rewritten
6895 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6897 * java/util/StringTokenizer.java: Rewritten
6898 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6899 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6900 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6902 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6904 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6907 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6908 Include java-assert.h.
6909 * include/java-assert.h: New file.
6910 * prims.cc (_Jv_Abort): New function.
6911 Include java-assert.h, not assert.h.
6912 (_Jv_MonitorExit): Use JvAssert.
6913 (resolveConstants): Likewise.
6914 (processClass): Likewise.
6915 (JvRunMain): Assert that method is found.
6917 * configure: Rebuilt.
6918 * configure.in: Check for test subdir.
6919 * Makefile.in: Rebuilt.
6920 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6922 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6923 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6925 * prims.cc (resolveConstants): Removed unused variables.
6926 (processClass): Likewise.
6928 * include/quick-threads.h (JvPrivThreadCurrent): Use
6930 * quick-threads.cc (destroy_data): New function.
6931 (JvPrivInitThreads): Create key.
6932 (JvPrivThreadKey): New global.
6933 (JvPrivThreadStart): Use coop_setspecific.
6935 * include/quick-threads.h, include/posix-threads.h,
6936 include/no-threads.h, no-threads.cc, quick-threads.cc,
6937 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6939 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6941 * include/no-threads.h (JvPrivThreadInitData): Don't set
6944 * include/quick-threads.h (JvPrivCondWait): coop function now
6946 (JvPrivThreadJoin): Likewise.
6948 * java/lang/Thread.h (Thread): Updated declaration of
6950 * include/quick-threads.h, include/posix-threads.h: Updated
6951 declaration of JvPrivThreadStart.
6952 * include/no-threads.h (JvPrivThreadStart): Changed definition
6954 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6955 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6956 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6958 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6960 * quick-threads.cc (qthrow): New function.
6961 (JvPrivInitThreads): New function.
6962 (started): New global.
6963 (JvPrivThreadStart): Call coop_start if required.
6964 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6965 (JvPrivThreadDestroy): Likewise.
6966 (JvPrivInitThreads): Removed.
6967 * include/posix-threads.h (JvPrivThreadCancel): Added error
6969 * java/lang/natThread.cc (stop_): Pass exception to
6972 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6974 * include/javaprims.h (java::lang): Added
6975 IllegalArgumentException, IllegalThreadStateException, Math,
6976 NullPointerException, ThreadDeath.
6977 (java::util): Added Enumeration.
6979 * Makefile.in: Rebuilt.
6980 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6982 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6984 (threadsv): Renamed from threads to avoid clash in C++ header.
6985 (groupsv): Likewise.
6986 * include/no-threads.h (JvPrivThreadStart): Removed.
6987 * no-threads.cc (JvPrivThreadStart): New function.
6988 * java/lang/Thread.java (Thread): New constructor for internal use.
6989 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6990 (Thread): Declare constructor.
6991 * prims.cc (JvRunMain): Create the initial Thread and
6993 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6994 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6995 Removed `daemon' argument.
6997 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6998 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
7000 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
7002 * Makefile.in: Rebuilt.
7003 * Makefile.am (INCLUDES): Include THREADINCS.
7005 * configure: Rebuilt.
7006 * configure.in: Recognize `qt' as a threads package.
7008 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
7010 * java/util/Stack.java (pop): Null out topmost node for robustness.
7012 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
7014 * java/util/Stack.java: Rewritten.
7015 * java/util/Vector.java (isEmpty): Simplified expression.
7017 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
7019 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
7020 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
7022 * include/java-array.h (JvNewObjectArray): Created inline to
7025 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
7028 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
7030 * java/util/Vector.java: Rewritten.
7031 * java/io/Serializable.java: Created.
7033 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
7035 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
7036 Infinity is 1/0, not 1/1.
7038 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
7040 * configure: Rebuilt.
7041 * configure.in: Removed duplicate AC_ARG_WITH.
7043 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
7045 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
7047 (_Jv_InitClass): Renamed from soft_initialise_class.
7048 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
7049 (_Jv_CheckCast): Renamed from soft_checkcast.
7050 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
7051 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
7052 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
7053 * include/cni.h (JvInitClass): New function.
7054 (_Jv_InitClass): Renamed from soft_initialise_class.
7056 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
7058 * configure: Rebuilt.
7059 * configure.in (CXX): Don't set.
7060 * Makefile.in: Rebuilt.
7061 * Makefile.am (AM_CXXFLAGS): New macro.
7063 * Makefile.in: Rebuilt.
7064 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
7065 nogc.o): New target.
7067 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
7069 (mark_array): Likewise.
7071 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
7073 * java/lang/Class.h (JvMethod): Removed some unused fields.
7074 (JvField.info): Removed unused idx union variant.
7076 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
7078 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
7081 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
7083 * configure.in, configure (CXX): Add -fvtable-thunks.
7085 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
7087 * java/lang/Object.java (finalize): Move first.
7088 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
7089 (Object): Re-arrange order to match Object.java.
7091 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
7093 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
7094 * java/lang/natString.cc (hashChars): Likewise.
7096 * prims.cc (RuntimeClass): New macro.
7097 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
7099 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
7101 * Makefile.in: Rebuilt.
7102 * Makefile.am (AM_MAKEFLAGS): New macro.
7104 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
7106 * nogc.cc: Include <javaprims.h>.
7108 * Makefile.in: Rebuilt.
7109 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
7111 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
7113 * exception.cc (terminate): Removed.
7114 (unexpected): Removed.
7116 * configure: Rebuilt.
7117 * configure.in: Handle case where target subdir is ".".
7119 * configure: Rebuilt.
7120 * configure.in: Compute COMPPATH based on --with-target-subdir
7121 option. Added --with-target-subdir and --with-cross-host. Use
7122 --with-cross-host to determine when a cross compiler is in use.
7124 * Makefile.in: Rebuilt.
7125 * Makefile.am (GJAVAH): Include COMPPATH.
7126 * configure: Rebuilt.
7127 * configure.in: Subst COMPPATH.
7129 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
7131 * prims.cc (lockMutex): Removed.
7132 (unlockMutex): Likewise.
7133 (processClass): Lock the class using a JvSynchronize object.
7135 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
7137 * java/lang/natString.cc (gc_calloc_fixed): Removed.
7138 (gc_free_fixed): Removed.
7139 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
7140 freeing old value of strhash.
7142 * exception.cc (_Jv_type_matcher): Cast first argument to
7145 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
7147 * include/java-array.h (jstringArray): New type.
7148 * java/lang/natSystem.cc (setProperty): Removed.
7149 (initProperties): Directly call JvNewStringLatin1 for arguments.
7150 * java/util/natDate.cc: Include java/util/Date.h, not
7153 * java/io/FileDescriptor.java (available): No longer static.
7154 * java/lang/natDouble.cc (Double): Removed class definition.
7155 * include/javaprims.h (java::lang::Number): Declare.
7156 (java::lang::NumberFormatException): Likewise.
7157 (java::io::FilenameFilter): Likewise.
7158 (java::lang::Character): Likewise.
7159 (java::lang::Error): Likewise.
7160 (java::lang::SecurityManager): Likewise.
7161 (java::util::Vector): Likewise.
7162 (java::io::FileNotFoundException): Likewise.
7163 (java::io::IOException): Likewise.
7164 (java::lang::NativeLang): Likewise.
7165 (java::lang::UnsatisfiedLinkError): Likewise.
7166 (java::util::StringTokenizer): Likewise.
7167 (java::io::InputStream, java::io::OutputStream): Likewise.
7168 (java::io::PrintStream, java::lang::SecurityException): Likewise.
7169 (java::util::Hashtable): Likewise.
7170 * Makefile.in: Rebuilt.
7171 * Makefile.am (nat_headers): Added java/lang/Double.h,
7172 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
7173 (MOSTLYCLEANFILES): Added nat_headers.
7174 * include/jvm.h: Moved many defines, declarations, and functions
7175 to java/lang/Class.h.
7176 (struct JvSyncInfo): Moved to java/lang/Object.h.
7177 (UTF8_GET): Moved to java/lang/String.h.
7179 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
7181 * java/io/io-defs.h: Don't include java-io.h.
7182 * include/java-io.h: Removed.
7183 * include/javaprims.h: Include java::io.
7185 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
7187 * include/java-io.h (File): Removed
7188 (FileDescriptor): Likewise.
7190 * java/io/io-defs.h: Include java/io/File.h and
7191 java/io/FileDescriptor.h.
7193 * Makefile.in: Rebuilt.
7194 * Makefile.am (GJAVAH): New macro.
7195 (.class.h): New rule.
7196 (SUFFIXES): Added .h.
7197 (nat_headers): New macro.
7198 ($(nat_headers)): New target.
7199 (BUILT_SOURCES): Added nat_headers.
7201 * include/java-util.h: Removed.
7203 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7205 * include/java-io.h: Changed to avoid java-lang.h.
7206 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7208 * java/lang/natSystem.cc: Include java/lang/System.h, not
7210 * java/lang/natString.cc: Include java/lang/String.h, not
7212 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7214 * java/lang/natClass.cc: Include java/lang/Class.h, not
7216 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7218 * java/lang/natObject.cc: Include java/lang/Object.h, not
7220 * exception.cc: Don't include java-lang.h.
7221 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7222 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7223 * nogc.cc: Don't include java-lang.h.
7224 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7225 * prims.cc (processClass): Don't use `init_type'; just cast to
7227 Include java/lang/Class.h and jvm.h, not java-lang.h.
7228 (JvAllocObject): Wrote single-argument version.
7229 (PrimClass): Inherit from Class.
7230 (initPrimClass): Removed.
7231 * include/java-lang.h: Removed.
7232 * include/jvm.h: Declare struct _dispatchTable.
7233 * include/cni.h: Don't declare _Jv_MonitorEnter,
7234 _Jv_MonitorExit, struct _dispatchTable.
7235 * include/javaprims.h: Moved all typedefs here, from cni.h.
7236 * java/lang/Class.h: New file.
7237 * include/java-array.h: New file.
7238 * java/lang/Object.h: New file.
7240 * prims.cc (classFromSig): Now static.
7242 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7244 * include/cni.h: Don't mention soft_new.
7245 * include/java-lang.h (Object): Don't mention soft_new. Mention
7246 _Jv_NewPrimArray, not newPrimArray.
7247 * prims.cc (soft_new): Removed.
7248 (_Jv_NewArray): Renamed from soft_newarray.
7249 (soft_anewarray): Use JvNewObjectArray.
7250 (newArray): Likewise.
7251 (newRefArray): Removed.
7252 (_Jv_NewPrimArray): Renamed from newPrimArray.
7253 (equalUtf8Consts): Now static.
7254 (soft_instanceof): Removed.
7255 * java/lang/natDouble.cc (doubleToString): Now static.
7257 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7258 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7261 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7263 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7265 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7267 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7268 (JvPrivMutexUnlock): Likewise.
7269 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7270 Return value now jint.
7271 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7274 * Makefile.in: Rebuilt.
7275 * Makefile.am: Don't allow `jV' names.
7276 (maintainer-check): Depend on libjava.a.
7277 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7279 * Makefile.in: Rebuilt.
7280 * Makefile.am (NM): New macro.
7281 (maintainer-check): New target.
7283 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7285 * configure: Rebuilt.
7286 * configure.in: Use --enable-threads, not --enable-gc. Fix
7287 documentation for --enable-threads. Changed option to work like
7288 identical option in gcc/configure.
7290 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7292 * boehm.cc (mark_array): Use JvGetArrayLength.
7294 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7296 * exception.cc: New file (mostly written by Andrew MacLeod),
7297 exception handling support.
7298 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7299 Remove -fexceptions - it is now the default.
7301 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7302 (JvAllocObject): Renamed to _Jv_AllocObject.
7303 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7304 (loadClass): Renamed to _Jv_FindClass.
7305 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7306 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7307 * include/java-lang.h (JvGetArrayLength): New CNI function.
7308 * include/jvm.h (_Jv_FindClass): Added declaration.
7310 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7312 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7314 * java/lang/natClass.cc (getName): Add implementation.
7315 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7317 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7319 * Makefile.in: Rebuilt.
7320 * Makefile.am (.class.o): Added -fexceptions.
7322 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7324 * configure: Rebuilt.
7325 * configure.in: Don't check for __nanosleep.
7326 * posix-threads.cc (nanosleep): Never define.
7328 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7330 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7333 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7335 * java/lang/natThread.cc (enumerate): Uncommented.
7336 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7337 (interrupt): Call it.
7339 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7341 * configure: Rebuilt.
7342 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7344 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7346 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7347 * include/java-lang.h (Thread): Added `interrupted_' method.
7348 * java/lang/Thread.java (interrupted_): New method.
7349 * java/lang/natThread.cc (join): Possibly throw interrupted
7350 exception after join finishes.
7351 (interrupted_): New method.
7352 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7354 (JvPrivThreadJoin): New function.
7355 (really_start): Notify all threads waiting for this thread.
7356 (struct starter): Added `data' member.
7357 (JvPrivThreadStart): Set it.
7358 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7360 (JvPrivThreadJoin): No longer inline.
7361 (JvPrivThreadInterrupt): New function.
7363 * include/no-threads.h (JvPrivThreadSleep): Removed.
7364 * posix-threads.cc (JvPrivThreadSleep): Removed.
7366 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7368 * configure: Rebuilt.
7369 * configure.in (THREADOBJS): Initialize to no-threads.o in
7371 * posix-threads.cc (key): New global.
7372 (JvPrivInitThreads): New function.
7373 (really_start): Set thread-specific data to point to object.
7374 (JvPrivThreadStart): Added `daemon' argument.
7375 (JvPrivThreadSleep): Added `data' argument.
7376 * include/posix-threads.h (JvPrivInitThreads): Removed
7378 (JvPrivThreadCurrent): New function.
7379 * include/no-threads.h (JvPrivThreadInitData): Initialize
7380 JvPrivOnlyThread. Added `thread' argument.
7381 (JvPrivThreadCurrent): New function.
7382 (JvPrivThreadStart): Added `daemon' argument.
7383 * no-threads.cc: New file.
7384 * java/lang/natThread.cc (init_data): New function.
7386 (start): Set `alive' member.
7387 (stop_): Clear `alive' member.
7388 (destroy): Likewise.
7389 (currentThread): Implemented.
7390 (start): Pass `daemon' argument to JvPrivThreadStart.
7392 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7393 (Thread): Added `init_data' method.
7394 * java/lang/Thread.java (alive, data): New instance variables.
7395 (init_data): New private method.
7396 (isAlive): No longer native.
7398 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7400 * include/java-lang.h (JvRunMain): Declare.
7401 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7402 * prims.cc (JvRunMain): New function.
7403 (main_signature, main_name): New globals.
7405 * boehm.cc (mark_array): Use `elements' function and not
7406 operator[] on jarray.
7408 * posix-threads.cc: Include <config.h>. Define nanosleep if
7411 * configure: Rebuilt.
7412 * configure.in: Check for _nanosleep.
7414 * configure: Rebuilt.
7415 * configure.in: Check for pthread_mutexattr_settype.
7417 * include/cni.h (class JvSynchronize): New class.
7418 * java/lang/Thread.java (sleep): Throws InterruptedException.
7419 (join): Throws InterruptedException.
7420 (resume): Not native.
7421 (resume_): New method.
7422 (start): Now synchronized.
7423 (stop_): New method.
7424 (Thread): Synchronize when accessing threadNumber.
7426 * java/lang/natThread.cc (throwException): New macro.
7427 (sleep): Throw InterruptedException.
7430 * include/java-lang.h (Runtime): Added interrupted().
7432 * boehm.cc (call_finalizer): Correctly initialize jobj.
7433 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7435 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7438 * configure: Rebuilt.
7439 * configure.in: Added support for --disable-threads.
7440 * include/no-threads.h: New file.
7442 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7444 * Makefile.in: Rebuilt.
7445 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7446 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7447 (libjava_a_LIBADD): Added THREADOBJS.
7448 * configure: Rebuilt.
7449 * configure.in: Added --with-threads option.
7450 * posix-threads.cc: New file.
7451 * include/posix-threads.h: New file.
7452 * include/java-lang.h (Object): Added static member sync_mutex,
7453 member sync_info, method init_mutex.
7454 (struct JvSyncInfo): New struct.
7455 Include "java-threads.h".
7456 * prims.cc (soft_monitorenter): Wrote.
7457 (soft_monitorexit): Likewise.
7458 * java/lang/natObject.cc (init_mutex): New method.
7462 (sync_mutex): Define.
7463 Include "java-threads.h".
7465 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7467 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7468 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7470 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7472 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7473 Added extern "Java" in places to tell G++ Object is a "Java" type.
7474 Other minor renaming and fixes.
7475 * include/java-io.h (FileDescriptor): Add friend class declarations.
7476 G++ no longer allows non-Java types in method parameters and results
7477 of Java classes. Converted most offending methods to friends.
7478 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7479 * java/lang/natSystem.cc (setProperty): Make friend.
7480 * java/lang/natString.cc, include/java-lang.h (String): Rename
7481 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7482 * include/java-lang.h (JArray): Remove getData and eoprator[].
7483 Add elements friend function instead.
7484 * java/lang/natSystem.cc (arraycopy): Use elements function.
7485 * java/io/natFileDescriptor.cc (read, write): Likewise.
7486 * include/java-lang.h (Object): Remove unused make method.
7487 (System::setProperty(char*,char*)): Turn into friend function.
7488 (Class): Rename newObject by JvAllocObject.
7489 * prims.cc: Update to use JvAllocObject, and elements.
7491 * java/lang/natDouble.cc: Fix double -> jdouble.
7493 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7495 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7497 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7499 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7500 * include/java-lang.h (Runtime): finalize_on_exit and
7501 runFinalizersOnExit now static.
7502 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7504 (finalize_on_exit): Now static.
7506 * boehm.cc (mark_obj): Get class using getClass() method on
7508 (_dispatchTable): Removed.
7510 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7512 * java/io/natFileDescriptor.cc (open_read): Only call open if
7514 (open_write): Likewise.
7516 * Makefile.in: Rebuilt.
7517 * Makefile.am ($(nat_files)): Depend on config.h.
7519 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7521 * prims.cc (ObjectClass): Now a macro; updated for new class name
7523 (StringClass): Likewise.
7524 (ClassClass): Likewise.
7526 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7528 * java/io/natFileDescriptor.cc (available): Do nothing unless
7529 HAVE_SELECT defined.
7530 * java/util/natDate.cc (setTime): Conditional on
7532 (toString): Conditional on HAVE_TIME.
7533 * aclocal.m4, configure: Rebuilt.
7534 * acinclude.m4: New file.
7535 * configure.in: Don't actually call AM_EXEEXT. Call
7536 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7537 --with-target-subdir option. Check for select and open
7540 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7542 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7543 (call_finalizer): Likewise.
7544 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7545 * prims.cc (newObject): Pass actual method pointer to
7546 JvPrivRegisterFinalizer.
7547 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7548 (JvPrivRegisterFinalizer): Changed interface.
7550 * Makefile.in: Rebuilt.
7551 * Makefile.am (MOSTLYCLEANFILES): New macro.
7552 (CLEANFILES): Removed javao_files.
7554 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7556 * nogc.cc: New file.
7557 * Makefile.in: Rebuilt.
7558 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7559 (EXTRA_libjava_a_SOURCES): New macro.
7560 (libjava_a_SOURCES): Removed boehm.cc.
7561 (libjava_a_DEPENDENCIES): Added GCOBJS.
7562 (libjava_a_LIBADD): Likewise.
7563 * configure: Rebuilt.
7564 * configure.in: Added code for --enable-gc=TYPE.
7566 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7568 * boehm.cc (mark_array): Don't further dereference pointer from
7571 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7572 * Makefile.in: Rebuilt.
7573 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7574 one for boehm-gc build directory.
7576 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7578 * include/java-lang.h (finalize_on_exit): New instance variable in
7579 java::lang::Runtime.
7580 (runFinalizersOnExit): New method.
7581 * java/lang/Runtime.java (finalize_on_exit): New instance
7583 (runAllFinalizers_): New private method.
7584 (runFinalizersOnExit): New method.
7585 * boehm.cc (JvPrivRunFinalizers): New function.
7586 (JvPrivRunAllFinalizers): Likewise.
7587 (JvPrivRunGC): Likewise.
7588 * java/lang/natRuntime.cc: Include "jvm.h".
7589 (gc): Call JvPrivRunGC.
7590 (runFinalization): Call JvPrivRunFinalizers.
7591 (runFinalizersOnExit): New method.
7592 (exit_): Call JvPrivRunAllFinalizers if required.
7593 * include/jvm.h: Declare JvPrivRunFinalizers,
7594 JvPrivRunAllFinalizers, JvPrivRunGC.
7596 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7598 * boehm.cc (JvPrivRegisterFinalizer): New function.
7599 (call_finalizer): Likewise.
7600 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7601 * prims.cc (finalize_name): New global.
7602 (newObject): Just call other newObject.
7603 (newObject): Register finalizer if it exists.
7605 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7607 * prims.cc (gc_malloc): Removed.
7608 (makeUtf8Const): Use JvPrivAllocBytes.
7609 (lookupArray): Likewise.
7610 (newPrimArray): Likewise.
7611 (JvNewObjectArray): Use JvPrivAllocArray.
7612 (newObject): Use JvPrivAllocObj.
7613 (newObject): Likewise.
7614 Changed Method -> JvMethod everywhere.
7615 Changed Field -> JvField everywhere.
7616 * include/java-lang.h (Object): Changed type of `fields' to
7618 (jmethodID, jfieldID): New typedefs.
7619 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7621 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7623 (METHOD_NATIVECODE): Moved from java-lang.h.
7624 (class JvField): New class.
7625 (JvGetFirstInstanceField): New function.
7626 (JvFieldIsRef): Likewise.
7627 (JvGetObjectField): Likewise.
7628 (JvNumInstanceFields): Likewise.
7630 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7632 * boehm.cc: New file.
7633 * Makefile.in: Rebuilt.
7634 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7635 (INCLUDES): Added -I options to find boehm-gc files.
7637 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7639 * configure: Rebuilt.
7640 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7642 * Makefile.in: Rebuilt.
7643 * Makefile.am (nat_files): New macro.
7644 (libjava_a_DEPENDENCIES): Use it.
7645 (libjava_a_LIBADD): Likewise.
7646 ($(nat_files)): New static pattern rule.
7647 (class_files): Run separate find to find .class files.
7648 (javao_files): Compute based on class_files.
7649 (BUILT_SOURCES): New macro.
7651 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7653 * Makefile.am (java_files): New macro.
7654 (class_files): Likewise.
7655 (javao_files): Likewise.
7656 (libjava_a_DEPENDENCIES): Include $(javao_files).
7657 (libjava_a_LIBADD): Likewise.
7658 (classes.stamp): Depend on $(java_files); only recompile changed
7661 (CLEANFILES): Don't run find; use macros. Don't mention
7663 (.class.o): New target.
7664 (compiled.stamp): Removed.
7666 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7668 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7669 LineNumberReader}>java: Newly-implemented standard classes.
7671 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7673 * Makefile.in: Rebuilt.
7674 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7676 * Makefile.in: Rebuilt.
7677 * Makefile.am (hack): New macro.
7678 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7680 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7682 * include/config.h.in: New file.
7683 * include/config.h: Removed.
7684 * acconfig.h: New file.
7685 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7686 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7687 libjava_a_LIBADD): New macros.
7688 (INCLUDES): New macro.
7691 (SUFFIXES): Removed.
7693 (libjava.a): Removed.
7695 * configure: Rebuilt.
7696 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7697 Look for headers and functions we require. Create
7700 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7702 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7703 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7704 soft_lookupinterfacemethod): New functions.
7705 (PrimClass): Actually initialize the primitive classes.
7706 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7708 * include/java-util.h: Removed java::util definition.
7709 * include/cni.h: Moved java::util here and added Properties.
7710 Added more function prototypes.
7711 * include/java-lang.h: Added mroe methods and friend declarations.
7712 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7713 * include/jvm.h (strLengthUtf8): Add declaration.
7715 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7717 * java/lang/{Byte,Short,Void}.java: New classes.
7718 * java/lang/Character.java (isJavaIdentifierStart,
7719 JavaIdentifierPart): New static methods.
7720 * java/lang/Number.java (byteValue, shortValue): New methods.
7722 * java/lang/String.java (intern, hashCode): Make native.
7723 * java/lang/natString.cc: New file. Handle the string pool.
7724 * Makefile.am: Build natString.o. Use CXXFLAGS.
7726 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7727 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7728 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7729 * java/lang/System.java (setProperty): New private method.
7730 (initProperties): Take argument, and make native.
7731 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7732 (currentTimeMillis): Make more robust.
7734 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7735 * java/io/UnsupportedEncodingException.java: New exception class.
7737 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7738 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7740 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7742 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7743 * prims.cc: Added bunch of stuff.
7744 * include/cni.h: Added various definitions.
7745 * include/java-lang.h: Added Method, various friends, some macros.
7747 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7748 * java/lang/System.java (arraycopy): Make native.
7750 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7752 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7753 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7754 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7755 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7757 * java/lang/Runtime.java: Declare methods as native instead of
7759 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7760 * java/lang/System.java: Comment out some stuff, for now.
7761 * java/lang/Thread.java: Re-write. Use native methods.
7762 * java/lang/NativeLang.java: Remove most of it.
7764 * java/util/natDate.cc: Native (C++) methods for Date.
7765 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7766 * java/util/Date.java: Complete re-write.
7768 * java/io/io-defs.h: New header file.
7769 * java/io/FileDescriptor.java: Add a bunch of private methods,
7770 mostly moved from NativeIO.java and natNativeIO.cc.
7771 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7772 * java/io/File.java: Use new code.
7773 * java/io/{FileInputStream.java.FileOutputStream.java,
7774 RandomAccessFile.java}: Use new private FileDescriptor methods.
7775 * java/io/NativeIO.java: Removed, no longer used.
7777 * java/io/StreamTokenizer.java (numericChars): Make char array.
7779 * include/*.h: Various header files used by the C++ native code.
7781 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7782 New autoconf+automake-based setup.
7783 * prims.cc: New file for Java "primitives".