1 2000-02-09 Tom Tromey <tromey@cygnus.com>
3 * java/lang/natRuntime.cc (_load): Call add_library.
4 (loadLibraryInternal): Likewise.
6 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7 iconv_close when handle is not NULL. Thanks to Andrew Haley.
8 (Output_iconv::finalize): Likewise.
10 2000-02-08 Tom Tromey <tromey@cygnus.com>
12 * java/util/Properties.java (setProperty): New method.
15 2000-02-07 Tom Tromey <tromey@cygnus.com>
17 * java/lang/Runtime.java (_load): Declare.
18 (load, loadLibrary): Wrote in terms of _load.
19 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
21 (loadLibrary): Likewise.
24 (loadLibrary, load): Removed.
26 * jni.cc (ThrowableClass): New define.
27 (_Jv_JNI_Throw): Check argument.
28 (_Jv_JNI_ThrowNew): Likewise.
29 (wrap_value): Don't wrap object if it is NULL.
30 (_Jv_JNI_DefineClass): Use wrap_value.
31 (_Jv_JNI_FindClass): Likewise.
32 (_Jv_JNI_GetSuperclass): Likewise.
33 (_Jv_JNI_ExceptionOccurred): Likewise.
34 (_Jv_JNI_AllocObject): Likewise.
35 (_Jv_JNI_GetObjectClass): Likewise.
36 (_Jv_JNI_NewString): Likewise.
37 (_Jv_JNI_NewStringUTF): Likewise.
38 (_Jv_JNI_NewObjectArray): Likewise.
39 (_Jv_JNI_GetObjectArrayElement): Likewise.
40 (_Jv_JNI_NewPrimitiveArray): Likewise.
41 (_Jv_JNI_ToReflectedField): Likewise.
42 (_Jv_JNI_ToReflectedMethod): Likewise.
43 (_Jv_JNI_AllocObject): Check argument.
44 (_Jv_JNI_NewObjectV): Likewise.
45 (_Jv_JNI_NewObject): Likewise.
46 (_Jv_JNI_NewObjectA): Likewise.
47 (_Jv_JNI_GetObjectClass): Likewise.
48 (_Jv_JNI_GetField): Likewise.
49 (_Jv_JNI_SetField): Likewise.
51 * interpret.cc (PUSHL): Don't use expression statement.
56 * jni.cc (add_char): Conditional on INTERPRETER.
57 (mangled_name): Likewise.
59 * include/java-interp.h (class _Jv_MethodBase): Conditional on
61 (class _Jv_JNIMethod): Likewise.
63 2000-02-04 Warren Levy <warrenl@cygnus.com>
65 * Makefile.am: Added MPN.java and BigInteger.java.
66 * Makefile.in: Rebuilt.
67 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
69 * java/math/BigInteger.java: New file. Based primarily on
70 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
72 2000-02-04 Tom Tromey <tromey@cygnus.com>
74 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
76 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
77 if the method is native.
78 * resolve.cc (ncode): Don't handle native methods.
79 (_Jv_JNIMethod::ncode): New method.
80 (_Jv_PrepareClass): Handle native methods.
81 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
82 Include AbstractMethodError.h.
83 (add_char): New function.
84 (mangled_name): Likewise.
85 * include/java-interp.h (class _Jv_JNIMethod): New class.
86 (class _Jv_MethodBase): New class.
87 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
88 (_Jv_InterpClass): Changed `interpreted_methods' field to type
91 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
92 * java/lang/natRuntime.cc (libraries_size, libraries_count,
93 libraries): New globals.
94 (add_library): New function.
95 (_Jv_FindSymbolInExecutable): New function.
97 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
100 2000-02-04 Andrew Haley <aph@cygnus.com>
102 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
103 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
104 * java/lang/natThrowable.cc (printRawStackTrace): Rename
105 printStackTrace to printRawStackTrace.
107 2000-02-03 Tom Tromey <tromey@cygnus.com>
109 * java/util/Calendar.java (toString): New method.
110 * java/util/SimpleTimeZone.java (clone): New method.
111 (toString): New method.
112 * java/util/TimeZone.java (clone): New method.
113 * java/text/SimpleDateFormat.java (clone): New method.
114 * java/text/NumberFormat.java (clone): New method.
115 (equals): New method.
116 * java/text/Format.java (clone): New method.
117 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
120 * java/text/DateFormat.java (clone): New method.
121 * java/text/Collator.java (clone): New method.
123 2000-02-03 Tom Tromey <tromey@cygnus.com>
125 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
128 2000-02-01 Tom Tromey <tromey@cygnus.com>
130 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
131 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
132 constructing the closure if the function is native.
133 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
134 a template function, #if'd out, or static.
135 Include <java-interp.h>.
137 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
139 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
141 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
142 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
144 (wrap_value): New function.
145 (_Jv_JNI_CallAnyMethodV): Use it.
146 (_Jv_JNI_CallAnyMethodA): Likewise.
147 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
148 (_Jv_JNI_GetStaticField): Likewise.
150 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
151 (_Jv_JNI_GetStaticField): Likewise.
153 2000-01-31 Tom Tromey <tromey@cygnus.com>
155 * prims.cc (_Jv_MallocUnchecked): New function.
156 (main_init): Call _Jv_JNI_Init.
157 * include/jvm.h (_Jv_MallocUnchecked): Declare.
158 (_Jv_JNI_Init): Declare.
159 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
161 (_Jv_JNI_NewGlobalRef): New function.
162 (_Jv_JNI_DeleteGlobalRef): New function.
163 (_Jv_JNI_DeleteLocalRef): New function.
164 (_Jv_JNI_conversion_call): Initialize and clear local reference
166 (_Jv_JNI_NewLocalRef): New function.
167 (struct _Jv_JNI_LocalFrame): New structure.
168 (_Jv_JNI_PushLocalFrame): New function.
169 (_Jv_JNI_EnsureLocalCapacity): New function.
170 (FRAME_SIZE): New define.
171 (_Jv_JNI_GetStringChars): Mark string, not characters.
172 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
173 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
174 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
176 (_Jv_JNI_DefineClass): Make return value a local ref.
177 (_Jv_JNI_FindClass): Likewise.
178 (_Jv_JNI_GetSuperclass): Likewise.
179 (_Jv_JNI_ExceptionOccurred): Likewise.
180 (_Jv_JNI_AllocObject): Likewise.
181 (_Jv_JNI_GetObjectClass): Likewise.
182 (_Jv_JNI_CallAnyMethodV): Likewise.
183 (_Jv_JNI_NewString): Likewise.
184 (_Jv_JNI_NewStringUTF): Likewise.
185 (_Jv_JNI_NewObjectArray): Likewise.
186 (_Jv_JNI_GetObjectArrayElement): Likewise.
187 (_Jv_JNI_ToReflectedField): Likewise.
188 (_Jv_JNI_ToReflectedMethod): Likewise.
189 (_Jv_JNIFunctions): Updated table for new functions.
190 (_Jv_JNI_Init): New function.
191 (mark_for_gc): Wrote.
192 (unmark_for_gc): Wrote.
193 * include/jni.h (struct JNINativeInterface): Removed name from
194 PopLocalFrame parameter.
195 (class _Jv_JNIEnv): Added `locals' field.
197 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
199 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
202 2000-01-30 Tom Tromey <tromey@cygnus.com>
204 * include/config.h.in: Rebuilt.
205 * acconfig.h (HAVE_ICONV): Define.
206 * configure: Rebuilt.
207 * configure.in: Check for `iconv' function.
208 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
209 no specific encoder exists.
210 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
211 no specific encoder exists.
212 * Makefile.in: Rebuilt.
213 * Makefile.am (convert_source_files): Mention Input_iconv.java and
215 (nat_source_files): Added natIconv.cc.
216 * gnu/gcj/convert/natIconv.cc: New file.
217 * gnu/gcj/convert/Input_iconv.java: New file.
218 * gnu/gcj/convert/Output_iconv.java: New file.
220 2000-01-28 Tom Tromey <tromey@cygnus.com>
222 * Makefile.in: Rebuilt.
223 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
225 2000-01-26 Tom Tromey <tromey@cygnus.com>
227 * gcj/method.h (JvNumMethods): Moved from Class.h.
228 (JvGetFirstMethod): Likewise.
229 * java/lang/Class.h (Object): Updated decl of
230 _Jv_JNI_ToReflectedField.
231 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
232 * Makefile.in: Rebuilt.
233 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
234 argument of _Jv_JNI_ToReflectedField.
235 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
237 (java/lang/reflect/Method.h): Likewise.
238 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
240 (jweak): New typedef.
241 (struct JNINativeInterface): Correctly declare remaining entries.
242 * jni.cc: Include Class.h, ClassLoader.h.
243 (_Jv_JNI_FindClass): New function.
244 (_Jv_JNI_DefineClass): New function.
245 (_Jv_JNI_conversion_call): New function.
246 (_Jv_JNI_FindClass): Use current class loader to find class.
247 (_Jv_JNI_ExceptionCheck): New function.
248 (_Jv_JNI_FromReflectedField): Now static.
249 (MethodClass): New define.
250 (_Jv_JNI_FromReflectedMethod): New function.
251 (_Jv_JNI_ToReflectedMethod): Likewise.
253 (_Jv_JNI_IsAssignableFrom): Renamed.
254 (_Jv_JNI_GetStringRegion): New function.
255 Include StringIndexOutOfBoundsException.h.
256 (_Jv_JNI_GetStringUTFRegion): New function.
257 (_Jv_JNIFunctions): Updated for new functions.
258 (_Jv_JNI_GetPrimitiveArrayCritical): New function
259 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
260 (_Jv_JNI_GetStringCritical): New function.
261 (_Jv_JNI_ReleaseStringCritical): Likewise.
262 (get_throwable): Removed.
263 (GCJ_JV_JNIENV_FRIEND): Removed.
264 (__GCJ_JNI_IMPL__): Define.
267 * resolve.cc (get_ffi_type_from_signature): Handle case where
270 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
272 * interpret.cc (run): Don't call println.
273 Don't include PrintStream.h.
275 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
276 nameIndex. Use "jint" as type for boffset.
277 * java/lang/Class.h (struct _Jv_Method): Made accflags a
279 (Class): Likewise. Also changed type of method_count,
280 vtable_method_count, size_in_bytes, field_count,
281 static_field_count, interface_count.
282 * gcj/array.h (__JArray): Made `length' a const jsize, not an
285 2000-01-21 Tom Tromey <tromey@cygnus.com>
287 * java/lang/reflect/natConstructor.cc (newInstance): Use
289 * include/jvm.h: Declare _Jv_CallAnyMethodA.
290 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
291 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
294 (invoke): Use _Jv_CallAnyMethodA.
296 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
297 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
299 (struct _Jv_Method): Added getNextMethod method.
300 (JvNumMethods): New function.
301 (JvGetFirstMethod): Likewise.
302 * gcj/field.h (JvGetFirstStaticField): New function.
303 (JvNumStaticFields): Likewise.
304 (getNextField): Renamed from getNextInstanceField.
305 (struct _Jv_Field): New method getClass.
306 * jni.cc: Wrote many new functions.
307 * include/jni.h (JNI_TRUE): Define.
308 (JNI_FALSE): Likewise.
309 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
310 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
311 jcharArray, jfloatArray, jdoubleArray): New typedefs.
312 (jfieldID, jmethodID): Likewise.
313 (JNI_COMMIT, JNI_ABORT): New defines.
314 (JNINativeMethod): New struct.
315 (struct JNINativeInterface): Correctly declared more entries.
316 (class _Jv_JNIEnv): Added `ex' member.
317 (JNI_VERSION_1_1): New define.
318 (JNI_VERSION_1_2): Likewise.
320 * boehm.cc (_Jv_MarkObj): Use getNextField, not
321 getNextInstanceField.
323 2000-01-20 Tom Tromey <tromey@cygnus.com>
325 * resolve.cc (StringClass): Removed.
326 * defineclass.cc (StringClass): Removed.
328 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
332 2000-01-19 Tom Tromey <tromey@cygnus.com>
334 * interpret.cc (PC_REGISTER_ASM): Removed.
336 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
339 * All files: Updated copyright to reflect Cygnus purchase.
341 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
343 * configure: Rebuilt.
344 * configure.in: Recognize --disable-interpreter.
346 2000-01-18 Andrew Haley <aph@cygnus.com>
348 * name-finder.cc (lookup): Check for dladdr function.
349 acconfig.h (HAVE_DLADDR): Add.
350 configure.in: Check for HAVE_DLADDR
352 include/config.h.in: Rebuilt.
354 2000-01-17 Andrew Haley <aph@cygnus.com>
356 * prims.cc (_Jv_RunMain): Set the name of this executable.
358 2000-01-17 Tom Tromey <tromey@cygnus.com>
360 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
361 when backtrace can't be computed.
363 * configure: Rebuilt.
364 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
366 * java/lang/Runtime.java (loadLibraryInternal): Declare.
367 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
368 (_Jv_FindClassInCache): Likewise.
369 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
370 (findSystemClass): Try to load class from compiled module.
372 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
373 (loadLibrary): Likewise.
374 (lt_preloaded_symbols): Define.
375 (loadLibraryInternal): New method.
376 * include/config.h.in: Rebuilt.
377 * acconfig.h (USE_LTDL): Added.
378 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
379 (INCLUDES): Added $(INCLTDL).
380 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
381 (libgcj_la_LIBADD): Likewise.
382 * aclocal.m4, configure: Rebuilt.
383 * configure.in: Added libltdl support.
385 2000-01-15 Tom Tromey <tromey@cygnus.com>
387 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
389 2000-01-14 Andrew Haley <aph@cygnus.com>
391 * java/lang/natThrowable.cc: New file.
393 * java/lang/Throwable.java (fillInStackTrace): Make native.
394 (printStackTrace): Call native method to do this.
395 (Throwable): Call fillInStackTrace.
396 (stackTrace): New variable.
398 * include/jvm.h: Add _Jv_ThisExecutable functions.
400 * prims.cc: (_Jv_execName): New variable.
401 (catch_segv): Call fillInStackTrace.
403 (_Jv_ThisExecutable): New functions.
404 (JvRunMain): Set the name of this executable.
406 * Makefile.am: Add java/lang/natThrowable.cc.
408 * Makefile.in: Rebuilt.
410 * acconfig.h: Add HAVE_PROC_SELF_EXE.
412 * configure.in: Force link with __frame_state_for in
413 FORCELIBGCCSPEC. Add new checks for backtrace.
414 * include/config.h.in: Rebuilt.
416 * name-finder.cc: New file.
417 * include/name-finder.h: New file.
419 2000-01-16 Anthony Green <green@cygnus.com>
421 * java/lang/StringBuffer.java (StringBuffer): Don't special case
424 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
426 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
428 2000-01-13 Tom Tromey <tromey@cygnus.com>
430 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
431 not system loader, as initiating loader.
433 2000-01-11 Tom Tromey <tromey@cygnus.com>
435 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
436 HP/UX. From David Scott Urban.
438 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
440 * java/lang/natMath.cc (pow): Cast args to `double', not
443 (IEEEremainder): Likewise.
444 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
445 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
447 2000-01-09 Anthony Green <green@cygnus.com>
449 * java/lang/natString.cc (init): Test for overflow condition
450 during out of bounds check.
451 (getChars): Throw StringIndexOutOfBoundsException, not
452 ArrayIndexOutOfBoundsException.
454 (regionMatches): Obey case option during string comparison.
456 * configure.host (ligcj_interpreter): New variable. Enable
457 interpreter by default on IA-32.
458 * configure.in: Examine libgcj_interpreter.
459 * configure: Rebuilt.
461 2000-01-07 Tom Tromey <tromey@cygnus.com>
463 * mauve-libgcj: Don't disable ClassTest.
465 * java/lang/natClass.cc (getClasses): Wrote.
467 2000-01-06 Tom Tromey <tromey@cygnus.com>
469 * java/lang/natClass.cc (_getConstructors): Correctly check
470 whether method name is the init name.
471 (getMethod): Look at accflags on method in `klass', not `this'.
473 2000-01-05 Tom Tromey <tromey@cygnus.com>
475 * java/lang/natClass.cc (getMethod): Compute offset relative to
476 `klass's methods table, not `this's table.
478 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
479 In unwrapping/widening case, check whether `k' is null, not
480 whether it is primitive. Initialize `num' from `argelts', not
481 `paramelts'. Correct create and pass arguments to ffi_call.
482 Don't let presence of `this' argument affect index used to look in
484 (COPY): Set appropriate element in `values' vector.
486 * java/lang/natClass.cc: Include <gcj/method.h>.
488 * java/lang/Class.h (_getMethods): Correctly declare as private,
491 * java/lang/Class.h (_getMethods): Declare.
492 * java/lang/Class.java (_getMethods): Declare.
493 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
494 (getDeclaredClasses): Always return empty array.
495 (_getMethods): New method.
497 (getDeclaredMethod): Return `rmethod'.
498 (finit_name): New global.
499 (getDeclaredMethods): Check for finit_name.
500 (_getMethods): Likewise.
501 (getMethod): Only return public methods.
503 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
504 jboolean and select correct ffi type on that basis.
505 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
506 Constructor call always has `void' return type.
508 2000-01-04 Tom Tromey <tromey@cygnus.com>
510 * java/lang/Class.h (getSignature): Updated.
511 * java/lang/Class.java (getSignature): Updated.
512 * java/lang/natClass.cc (getSignature): Added `is_constructor'
514 (getConstructor): Ensure constructor is public.
515 (_getConstructors): Check for public-ness of constructor when
516 `declared' is false, not when it is true.
518 2000-01-04 Warren Levy <warrenl@cygnus.com>
520 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
522 (receive): Set the sender's address in the DatagramPacket.
524 2000-01-04 Tom Tromey <tromey@cygnus.com>
526 * java/lang/reflect/natConstructor.cc (newInstance): Pass
527 declaring class as return_type argument to
528 _Jv_CallNonvirtualMethodA.
529 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
530 constructor case, create object and use it as `this' argument.
531 * java/lang/Class.h (_getConstructors): Declare.
532 (_getFields): Declare.
533 * java/lang/Class.java (getConstructors): Wrote.
534 (_getConstructors): New native method.
535 (getDeclaredConstructors): Wrote.
536 (_getFields): Declare new native method.
537 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
539 (getMethod): Work correctly when class is primitive.
540 (getDeclaredMethods): Likewise. Compute offset using `method',
542 (getDeclaredMethod): Likewise.
543 (getConstructor): Wrote.
544 (ConstructorClass): New define.
545 (getDeclaredConstructor): Wrote.
546 (_getConstructors): New method.
547 (_getFields): New method.
550 * Makefile.in: Rebuilt.
551 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
553 * prims.cc: Remove `#pragma implementation'.
554 * gcj/array.h: Remove `#pragma interface'.
556 * prims.cc (_Jv_equaln): New function.
557 * java/lang/Class.java (getSignature): Declare.
558 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
559 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
561 (getSignature): New method.
562 (getDeclaredMethod): Wrote.
564 Include StringBuffer.h.
565 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
566 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
568 (getSignature): Declare.
569 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
570 (_Jv_equaln): Declare.
571 (_Jv_CallNonvirtualMethodA): Declare.
572 * Makefile.in: Rebuilt.
573 * Makefile.am (nat_source_files): Added natConstructor.cc.
574 (java/lang/reflect/Constructor.h): New target.
575 * java/lang/reflect/natConstructor.cc: New file.
576 * java/lang/reflect/Constructor.java (newInstance): Now native.
577 (declaringClass): Renamed from decl_class.
578 (offset): Renamed from index.
579 (getType): New native method.
580 (getModifiers): Now native.
581 (getParameterTypes): Call getType if required.
582 (hashCode): Include hash code from declaring class.
583 (modifiers): Removed.
584 (toString): Call getType if required.
585 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
586 * java/lang/reflect/natMethod.cc (hack_call): New method.
587 Removed `#if 0' around FFI code.
588 Include <gnu/gcj/RawData.h>.
589 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
590 IllegalArgumentException when argument object and class disagree.
591 (_Jv_GetTypesFromSignature): New function.
593 (ObjectClass): New define.
594 (_Jv_CallNonvirtualMethodA): New function.
595 * java/lang/reflect/Method.java (hack_trampoline): New method.
596 (hack_call): New native method.
598 1999-12-21 Per Bothner <per@bothner.com>
600 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
601 offset in new Method.
603 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
605 * java/lang/natObject.cc (notify): Throw message with
606 IllegalMonitorStateException.
609 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
610 (isInterrupted_): New function, which does clear interrupt_flag.
611 (interrupt): Use `isInterrupted_'.
612 * java/lang/natThread.cc (interrupt): Add comment.
613 (join): Set `prev' in joiner loop.
614 Change various calls to `isInterrupted' to use `isInterrupted_'.
615 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
616 on linux. Set result to 0 on an interrupt. Test interrupted status
617 of java Thread object directly.
618 FLAG_INTERRUPTED: removed.
619 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
620 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
621 (_Jv_InitThreads): Don't block SIGINT.
622 (_Jv_ThreadWait): Don't configure SIGINT handler.
624 1999-12-21 Tom Tromey <tromey@cygnus.com>
626 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
628 1999-12-20 Tom Tromey <tromey@cygnus.com>
630 * java/lang/reflect/Modifier.java (STRICT): New constant.
631 (isStrict): New method.
632 (toString): Added `strict'.
634 1999-12-23 Anthony Green <green@cygnus.com>
636 * configure: Rebuilt.
637 * configure.in (LIBDATASTARTSPEC): Force data_start in with
640 1999-12-19 Anthony Green <green@cygnus.com>
642 * libgcjdata.c: New file.
643 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
644 * configure: Rebuilt.
645 * configure.in (LIBDATASTARTSPEC): Force data with a known name
647 * Makefile.in: Rebuilt.
648 * Makefile.am: Build libgcjdata.a.
650 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
651 * configure: Rebuilt.
652 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
655 1999-12-17 Tom Tromey <tromey@cygnus.com>
657 * java/lang/reflect/Method.java (toString): Call getType if
658 required. Partial fix for PR libgcj/111. From Per Bothner.
660 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
662 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
664 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
665 null String constructor parameter.
666 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
667 for exception messages.
668 BooleanClass: declare.
669 (setOption): Use BooleanClass instead of Class.forName() for
671 (bind): Cast 4th parameter of setsockopt to `char *' for
672 compatibility with older Solaris headers.
673 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
674 sprintf calls for exception messages.
675 BooleanClass, IntegerClass: declare.
676 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
679 1999-12-15 Tom Tromey <tromey@cygnus.com>
681 * java/lang/natSystem.cc (init_properties): Don't set user.name or
682 user.home if NO_GETUID defined. Only set user.dir if getcwd
685 * include/config.h.in: Rebuilt.
686 * acconfig.h (NO_GETUID): New define.
687 * configure.in: Rebuilt.
688 * configure.in: Define NO_GETUID in cross case. Check for getcwd
691 1999-12-08 Tom Tromey <tromey@cygnus.com>
693 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
694 where no recursive mutexes exist. Fixes PR libgcj/117.
696 1999-12-05 Anthony Green <green@cygnus.com>
698 * include/jvm.h: Declare many functions with
699 __attribute__((__malloc__)).
700 * gcj/javaprims.h: Ditto.
702 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
704 * THANKS: Giving credit where credit is due.
706 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
708 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
710 * java/lang/natString.cc (equalsIgnoreCase): return false if
711 anotherString is null.
712 * java/lang/Boolean.java (valueOf): return FALSE if argument is
715 1999-11-30 Tom Tromey <tromey@cygnus.com>
717 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
718 mutex to initialize. Initialize `count' if required.
721 1999-11-27 Per Bothner <per@bothner.com>
723 * exception.cc: Remove prototype declarations for malloc and free.
724 These clash with recent versions of glibc, which specifies `throws ()'
725 when __cplusplus is defined. Instead, #include <stdlib.h>.
727 1999-11-24 Tom Tromey <tromey@cygnus.com>
729 * prims.cc (_Jv_NewObjectArray): Use
730 _Jv_GetArrayElementFromElementType.
731 (_Jv_NewPrimArray): Likewise.
732 * java/lang/natObject.cc (clone): Use
733 _Jv_GetArrayElementFromElementType instead of sizeof.
734 * java/lang/natSystem.cc (arraycopy): Use
735 _Jv_GetArrayElementFromElementType.
736 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
739 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
741 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
742 Exception messages. PR java.net/57.
743 (bind): set SO_REUSEADDR before bind.
744 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
745 overruns. PR java.net/57.
747 1999-11-19 Tom Tromey <tromey@cygnus.com>
749 * Makefile.am (DIVIDESPEC): Removed.
750 (EXCEPTIONSPEC): Removed.
752 1999-11-19 Andrew Haley <aph@cygnus.com>
754 * Makefile.am (JCFLAGS): Add -L$(here)
756 * Makefile.in: Rebuild.
758 1999-11-18 Tom Tromey <tromey@cygnus.com>
760 * java/lang/natDouble.cc: Include <config.h>.
762 * include/config.h.in: Rebuilt.
763 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
764 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
766 * configure: Rebuilt.
767 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
768 requested by configure.host. Don't put `-D' option into
769 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
771 * configure: Rebuilt.
772 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
775 1999-11-18 Andrew Haley <aph@cygnus.com>
777 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
778 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
780 * Makefile.in: Rebuild
781 * acconfig.h: remove SJLJ_EXCEPTIONS
782 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
783 Do not AC_DEFINE SJLJ_EXCEPTIONS.
784 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
785 * gcj/Makefile.in, include/Makefile.in: rebuild.
786 * include/config.h.in: remove SJLJ_EXCEPTIONS.
788 1999-11-18 Andrew Haley <aph@cygnus.com>
790 * gij.cc (main): Rename label to prevent conflict.
792 * exception.cc (_Jv_type_matcher): Don't check the table if we're
793 using setjmp/longjmp exceptions: there isn't one.
795 1999-11-17 Andrew Haley <aph@cygnus.com>
797 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
798 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
799 (__sjthrow): Add declaration.
800 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
804 * Makefile.in: Rebuild
805 * acconfig.h: Add SJLJ_EXCEPTIONS
806 * configure.in: Add SJLJ_EXCEPTIONS
807 * configure: Rebuild.
808 * gcj/Makefile.in: Rebuild.
809 * gcj/cni.h: Add support for sjlj-exceptions.
810 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
811 * include/Makefile.in: Rebuild.
812 * include/default-signal.h: Add support for sjlj-exceptions.
814 1999-11-18 Tom Tromey <tromey@cygnus.com>
816 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
818 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
820 (method_cache): Made larger.
822 1999-11-11 Tom Tromey <tromey@cygnus.com>
824 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
825 initializing mutex. Initialize `count' when required.
827 1999-11-07 Anthony Green <green@trip.cygnus.com>
829 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
832 1999-11-05 Tom Tromey <tromey@cygnus.com>
834 * java/lang/natThread.cc (destroy): Removed incorrect comment.
836 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
838 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
839 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
842 1999-11-05 Tom Tromey <tromey@cygnus.com>
844 * java/lang/natThread.cc (stop): Removed argument name.
846 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
847 `private'; now has default access.
848 * Makefile.in: Rebuilt.
849 * Makefile.am (java/lang/ThreadGroup.h): Removed.
851 1999-11-04 Tom Tromey <tromey@cygnus.com>
853 * java/lang/natClass.cc (method_cache_count): Removed.
854 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
855 (_Jv_AddMethodToCache): Don't loop.
857 * configure.in: Removed `qt' threads case.
858 * include/quick-threads.h: Removed.
859 * quick-threads.cc: Removed.
861 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
862 (_Jv_ThreadDestroy): Likewise.
863 * include/no-threads.h (_Jv_ThreadCancel): Removed.
864 (_Jv_ThreadDestroy): Likewise.
865 * include/posix-threads.h (struct _Jv_Thread_t): Removed
867 (_Jv_ThreadCancel): Removed decl.
868 (_Jv_ThreadDestroy): Removed.
869 * posix-threads.cc (_Jv_ThreadCancel): Removed.
870 (throw_cleanup): Removed.
871 (really_start): Don't push or pop cleanup.
872 (_Jv_ThreadInitData): Don't initialize `exception' field.
873 * java/lang/Thread.java (stop): Officially unimplemented.
874 * java/lang/natThread.cc (stop): Officially unimplemented.
876 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
878 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
881 1999-11-02 Tom Tromey <tromey@cygnus.com>
883 * boehm.cc: Don't include boehm-config.h.
885 1999-11-01 Tom Tromey <tromey@cygnus.com>
887 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
888 (sum_blocks): Removed.
889 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
891 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
893 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
895 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
896 * java/io/InputStreamReader (InputStreamReader): ditto.
898 1999-10-22 Tom Tromey <tromey@cygnus.com>
900 * Makefile.in: Rebuilt.
901 * Makefile.am (java/lang/ClassLoader.h): New target.
902 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
905 * include/java-props.h (_Jv_Compiler_Properties): Changed
907 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
908 * include/jvm.h (_Jv_GCSetInitialHeapSize,
909 _Jv_GCSetMaximumHeapSize): Declare.
910 (JvRunMain, _Jv_RunMain): Declare.
911 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
912 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
913 (_Jv_GCSetMaximumHeapSize): Likewise.
914 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
915 (_Jv_GCSetMaximumHeapSize): Likewise.
916 * prims.cc (parse_heap_size): New function.
917 (_Jv_SetInitialHeapSize): Likewise.
918 (_Jv_SetMaximumHeapSize): Likewise.
919 (_Jv_Compiler_Properties): New global.
920 * gij.cc (help): New function.
922 (heap_size): Likewise.
923 (heap_max_size): Likewise.
924 (main): Parse arguments. Set _Jv_Compiler_Properties.
925 Include <config.h>, <java-props.h>.
926 (_Jv_Compiler_Properties): Removed.
928 1999-10-18 Tom Tromey <tromey@cygnus.com>
930 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
932 (redirect): New static field.
933 * java/lang/ClassLoader.java (getSystemClassLoader): Now
935 (getVMClassLoader0): Removed.
936 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
938 (getSystemClassLoader): Implemented.
940 1999-10-16 Anthony Green <green@cygnus.com>
942 * java/lang/ClassLoader.java (getSystemResource): Use
943 getSystemClassLoader instead of ClassLoader.system.
944 (getSystemResourceAsStream): Ditto.
946 * java/lang/natClassLoader.cc (redirect): Make static and
947 remove #ifdef INTERPRETER so it is always defined.
948 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
949 returns a VMClassLoader.
951 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
952 PropertyResourceBundle if a properties file is found before a
953 ResourceBundle class.
955 1999-10-15 Tom Tromey <tromey@cygnus.com>
957 * gij.cc (main): Formatting fixes.
958 (_Jv_Compiler_Properties): Define.
959 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
961 (init_properties): Set properites from _Jv_Compiler_Properties.
962 * include/java-props.h (_Jv_Compiler_Properties,
963 _Jv_Environment_Properties): Declare.
965 * include/java-props.h: Added copyright.
967 1999-10-13 Anthony Green <green@cygnus.com>
969 * libtool-version: Catch up by incrementing current.
971 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
972 * configure, include/config.h.in: Rebuilt.
973 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
974 * configure.in: Added --disable-getenv-properties and new define
975 `DISABLE_GETENV_PROPERTIES'.
977 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
978 (next_property_key): New function.
979 (next_property_value): New function.
980 (process_gcj_properties): New function.
981 (JvRunMain): Call process_gcj_properties.
984 * java/lang/natSystem.cc (init_properties): Set properties defined
987 * include/java-props.h: New file.
989 * java/lang/natSystem.cc (init_properties): Add new properties to
990 conform with Java Product Versioning Specification.
992 1999-10-12 Tom Tromey <tromey@cygnus.com>
994 * configure: Rebuilt.
995 * configure.in: Fixed test for --disable-java-net.
997 1999-10-06 Tom Tromey <tromey@cygnus.com>
999 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
1000 when building Canadian cross.
1001 (NATIVE): Don't define when cross-compiling.
1003 1999-10-04 Tom Tromey <tromey@cygnus.com>
1005 * java/net/natPlainSocketImpl.cc: Don't include headers if
1006 java.net is disabled.
1008 * Makefile.in: Rebuilt.
1009 * Makefile.am (ZINCS): Removed. This is defined in configure.in
1010 when needed, and must be left empty when not needed.
1012 1999-10-01 Anthony Green <green@cygnus.com>
1014 * THANKS: Refreshed from htdocs version.
1016 1999-10-01 Steve Chamberlain <sac@pobox.com>
1018 * Makefile.in: Rebuilt.
1019 * Makefile.am (ZINCS): Define
1021 * configure: Rebuilt.
1022 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
1024 * java/lang/ieeefp.h: Add definitions for picoJava.
1026 1999-10-01 Tom Tromey <tromey@cygnus.com>
1028 * configure: Rebuilt.
1029 * configure.in: Set classpath when invoking gcj. Use changequote
1030 around sed invocation.
1032 * java/net/natPlainSocketImpl.cc: Stub native functions if
1033 DISABLE_JAVA_NET is defined.
1034 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
1035 typo in exception string.
1036 (getTimeToLive): Likewise.
1037 Stub native functions if DISABLE_JAVA_NET is defined.
1038 * java/net/natInetAddress.cc: Stub native functions if
1039 DISABLE_JAVA_NET is defined.
1040 * configure.host: Disable java.net for mips-tx39.
1041 * configure, include/config.h.in: Rebuilt.
1042 * acconfig.h (DISABLE_JAVA_NET): Undefine.
1043 * configure.in: Added --disable-java-net and new define
1046 1999-09-30 Tom Tromey <tromey@cygnus.com>
1048 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
1050 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
1054 1999-09-28 Tom Tromey <tromey@cygnus.com>
1056 * configure: Rebuilt.
1057 * configure.in (PROCESS): In POSIX case, only set if not already
1059 * configure.host (PROCESS): Set in mips-tx39 case.
1061 * aclocal.m4, configure: Rebuilt.
1062 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
1063 appropriate AC_PROG_ symbol.
1065 1999-09-24 Tom Tromey <tromey@cygnus.com>
1067 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
1069 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
1071 Fix for PR java.util/47:
1072 * configure, include/config.h: Rebuilt.
1073 * configure.in: Don't look for ctime or ctime_r.
1074 * Makefile.in: Rebuilt.
1075 * Makefile.am (nat_source_files): Don't mention natDate.cc.
1076 * java/util/natDate.cc: Removed.
1077 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
1079 (getAvailableIDs): Rewrote.
1080 (getTimeZone): Rewrote.
1081 * java/util/Date.java (toGMTString): New method.
1082 (toLocaleString): New method.
1083 (toString): Rewrote.
1085 1999-09-23 Tom Tromey <tromey@cygnus.com>
1087 * configure: Rebuilt.
1088 * configure.in: Print message when checking to see if gcj can
1089 handle -fuse-divide-subroutine.
1091 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
1093 * java/lang/FirstThread.java (run0): Renamed to `run'.
1096 * prims.cc (main_init): New function.
1097 (JvRunMain): Call it.
1098 (_Jv_RunMain): Likewise.
1100 (main_init): Ignore SIGPIPE. Fixes PR 51.
1102 1999-09-22 Tom Tromey <tromey@cygnus.com>
1104 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1106 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
1108 * java/text/MessageFormat.java (MessageFormat(String)): Set the
1110 * java/text/NumberFormat.java: Check that object is a Number. If
1111 not, throw IllegialArgumentException.
1113 1999-09-21 Tom Tromey <tromey@cygnus.com>
1115 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1116 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
1118 * include/posix-threads.h (_Jv_MutexDestroy): Use
1119 _Jv_PthreadGetMutex.
1120 (_Jv_MutexLock): Likewise.
1121 (_Jv_MutexUnlock): Likewise.
1123 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1124 previous patch; it too was incorrect.
1125 * java/io/PrintStream.java (PrintStream): Likewise.
1127 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1128 refer to `this' before calling superclass constructor.
1129 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1130 before calling superclass constructor.
1132 1999-09-20 Tom Tromey <tromey@cygnus.com>
1134 * configure: Rebuilt.
1135 * configure.in: Send output of `-fuse-divide-subroutine' test
1136 compilation to /dev/null.
1138 1999-09-14 Tom Tromey <tromey@cygnus.com>
1140 * include/java-insns.h: Turned constants into an enum. Added
1141 multiple-inclusion protection.
1143 1999-09-10 Tom Tromey <tromey@cygnus.com>
1145 * configure: Rebuilt.
1146 * configure.in: Build include/Makefile.
1147 * Makefile.in: Rebuilt.
1148 * Makefile.am (SUBDIRS): Added gcj and include.
1149 (install-data-local): New target.
1150 (extra_headers): New macro.
1151 * include/Makefile.in: New file.
1152 * include/Makefile.am: New file.
1154 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1155 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1157 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1158 * resolve.cc: Include config.h.
1159 * defineclass.cc: Include config.h.
1160 * include/java-interp.h: Don't include config.h.
1161 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1164 * gcj/javaprims.h: Regenerated namespace decls.
1165 * classes.pl (scan): Don't put `;' after closing brace.
1167 * Makefile.in: Rebuilt.
1168 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1169 * configure.in: Create gcj/Makefile.
1170 * gcj/Makefile.in: New file.
1171 * gcj/Makefile.am: New file.
1172 * java/lang/Object.h: Don't include any other headers.
1173 * gcj/array.h: Renamed from include/java-array.h.
1174 * gcj/field.h: Renamed from include/java-field.h.
1175 * gcj/method.h: Renamed from include/java-method.h.
1176 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1177 Updated all files to reflect new include structure.
1179 1999-09-09 Tom Tromey <tromey@cygnus.com>
1181 * configure: Rebuilt.
1182 * configure.in: Fixed typo; variable is THREADSPEC and not
1185 1999-09-08 Tom Tromey <tromey@cygnus.com>
1187 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1188 previous change and implemented a correct test in the __m_count
1191 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1194 1999-09-07 Tom Tromey <tromey@cygnus.com>
1196 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1197 code and don't set errno.
1199 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1200 not `r'. Changed `done_sleeping' to a `bool'.
1202 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1204 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1205 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1206 by another thread, rather than by the GC.
1207 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1208 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1209 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1212 1999-09-03 Tom Tromey <tromey@cygnus.com>
1214 * configure: Rebuilt.
1215 * configure.in: Check for fstat function.
1216 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1219 1999-09-02 Tom Tromey <tromey@cygnus.com>
1221 * include/java-array.h (jobjectArrayjchar): Removed unused
1224 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1225 _Jv_PrepareCompiledClass while holding class mutex.
1227 1999-09-01 Tom Tromey <tromey@cygnus.com>
1229 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1230 (_Jv_PthreadGetMutex): Use it.
1231 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1232 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1233 (_Jv_MutexLock): Likewise.
1234 (_Jv_MutexUnlock): Likewise.
1235 * include/config.h.in: Rebuilt.
1236 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1237 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1238 * configure: Rebuilt.
1239 * libgcj.spec.in: Don't mention INTERPSPEC.
1240 * configure.in (INTERPSPEC): Removed.
1241 Only run pthreads-related checks when using POSIX threads. Check
1242 for m_count and __m_count in mutex structure.
1244 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1246 * java/lang/natClass.cc: Fixed notification of threads
1247 when class initialization is complete.
1249 1999-09-01 Tom Tromey <tromey@cygnus.com>
1251 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1252 * resolve.cc: Removed constants defined by
1253 java.lang.reflect.Modifier.
1254 Include <java/lang/reflect/Modifier.h>.
1255 (_Jv_ResolvePoolEntry): Use values from Modifier.
1256 (_Jv_DetermineVTableIndex): Likewise.
1257 (_Jv_PrepareClass): Likewise.
1259 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1260 java.lang.reflect.Modifier.
1261 Include <java/lang/reflect/Modifier.h>.
1262 (checkExtends): Use values from Modifier.
1263 (checkImplements): Likewise.
1264 (handleField): Likewise.
1265 (handleConstantValueAttribute): Likewise.
1266 (handleFieldsEnd): Likewise.
1267 (handleMethod ): Likewise.
1268 (handleMethodsEnd): Likewise.
1269 (handleClassBegin): Likewise.
1270 * interpret.cc: Removed constants defined by
1271 java.lang.reflect.Modifier.
1272 (continue1): Use values from Modifier.
1273 * java/lang/natClassLoader.cc: Removed constants defined by
1274 java.lang.reflect.Modifier.
1276 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1277 JV_STATE_NOTHING, not `0'.
1278 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1280 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1281 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1283 (_Jv_PthreadGetMutex): New function.
1284 (_Jv_PthreadCheckMonitor): Use it.
1285 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1286 (_Jv_MutexLock): Update `count'.
1287 (_Jv_MutexUnlock): Likewise.
1288 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1291 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1293 * Makefile.am (.java.lo): Add rule.
1295 * Makefile.in: Rebuilt.
1297 1999-09-01 Tom Tromey <tromey@cygnus.com>
1299 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1300 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1302 (_Jv_CondNotify): Use it.
1303 (_Jv_CondNotifyAll): Likewise.
1305 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1307 1999-08-31 Tom Tromey <tromey@cygnus.com>
1309 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1312 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1314 * posix-threads.cc: Include <errno.h>.
1316 1999-08-23 Tom Tromey <tromey@cygnus.com>
1318 * boehm.cc: Undefine TRUE and FALSE.
1320 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1322 1999-08-21 Tom Tromey <tromey@cygnus.com>
1324 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1327 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1329 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1331 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1332 (HAVE_STRUCT_IP_MREQ): Added.
1333 * configure, include/config.h.in: Rebuilt.
1334 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1336 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1337 Disable if ip_mreq is not available.
1339 * configure.in: Check types ssize_t and in_addr_t.
1340 * acconfig.h: Undefine them.
1341 * configure, include/config.h.in: Rebuilt.
1343 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1344 function that detects the signature of getpwuid_r.
1345 (init_properties): Use it.
1346 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1349 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1351 * interpret.cc (continue1): Implement explicit dispatch table.
1352 insn_target: Explicit interpreter switch table.
1353 SAVE_PC: New macro, moves pc saving code into instructions that
1355 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1356 PC_REGISTER_ASM: New macro.
1357 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1358 opcode: Remove local variable.
1359 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1360 (POKEI): Use _Jv_word.
1361 (iinc): Use _Jv_word.
1362 (dupx): Change reference argument (sp) to pointer.
1365 * interpret.cc: Remove instruction timing instrumentation.
1367 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1368 comment. Don't use _Jv_ClassNameSamePackage.
1370 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1371 URLPathEntry, CacheEntry}: Removed.
1373 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1375 (.java.lo): Rule removed.
1377 * Makefile.in: Rebuilt.
1379 1999-08-19 Tom Tromey <tromey@cygnus.com>
1381 * java/lang/natThread.cc (class locker): New class.
1382 (join): Use a locker around _Jv_CondWait.
1385 1999-08-18 Tom Tromey <tromey@cygnus.com>
1387 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1388 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1390 1999-08-18 Tom Tromey <tromey@cygnus.com>
1392 * include/javaprims.h ("Java"): Regenerated namespace decls.
1394 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1396 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1397 from _Jv_InternClassStrings.
1399 * prims.cc (_Jv_RunMain): New function.
1400 (JvRunMain): Remove gij-support.
1402 * gij.cc (main): Use _Jv_RunMain.
1404 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1406 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1407 argument in temp variable.
1408 (continue1): For all op_x2y insns, use temp variable for
1409 intermediate value. Also remove some comments.
1411 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1412 (forName): Don't call _Jv_InitClass.
1414 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1416 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1418 * java/util/jar/JarInputStream.java: New file.
1420 * java/util/jar/JarEntry.java: New file.
1422 * java/util/jar/JarFile.java: New file.
1424 * java/net/URLClassLoader.java: New file.
1426 * java/net/JarURLConnection.java: New file.
1428 * gnu/gcj/protocol/jar/Handler.java: New file.
1430 * gnu/gcj/protocol/jar/Connection.java: New file.
1432 * java/security/SecureClassLoader.java: New file.
1434 * java/lang/ClassLoader.java (parent): New variable.
1435 (ClassLoader (ClassLoader)): new constructor.
1436 (findClass): New method.
1437 (loadClass): Add default 1.2 implementation.
1438 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1439 (readfully): Removed.
1441 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1442 (findSystemClass): New method.
1443 (VMClassLoader): Constructor rewritten.
1445 All other methods removed.
1447 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1448 to gnu::gcj::runtime::VMClassLoader.
1449 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1451 (VMClassLoader::findSystemClass): renamed from findBootClass.
1453 * Makefile.am: Add new files.
1454 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1456 * Makefile.in: Rebuilt.
1458 1999-08-17 Tom Tromey <tromey@cygnus.com>
1460 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1462 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1465 1999-08-16 Tom Tromey <tromey@cygnus.com>
1467 * configure: Rebuilt.
1468 * configure.in: Set DIVIDESPEC to empty string if compiler does
1469 not support -fuse-divide-subroutine.
1471 1999-08-14 Per Bothner <per@bothner.com>
1473 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1474 * java/lang/natClass.cc (initializeClass): Likewise.
1475 * java/lang/ClassLoader.java (resolveClass0): New static method.
1476 (resolveClass): Call resolveClass0.
1477 (findSystemClass): No longer static.
1479 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1481 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1483 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1485 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1488 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1490 * Makefile: Rebuilt.
1491 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1494 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1497 * configure: Rebuilt.
1498 * configure.in: Properly align --help output, fix capitalization
1500 * acinclude.m4: Likewise.
1502 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1504 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1506 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1507 (_Jv_callInterpretedMethod): Unused. Remove.
1508 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1510 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1511 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1512 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1513 * interpret.cc: use _Jv_word.
1514 * defineclass.cc: use_Jv_word.
1515 * resolve.cc: Use _Jv_word.
1516 (_Jv_ResolvePoolEntry): Return _Jv_word.
1517 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1518 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1520 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1523 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1525 * configure: Rebuilt.
1526 * configure.in (sched_yield): Try librt first, then libposix4.
1527 Add -lrt, -lposix4 to THREADSPEC.
1529 1999-08-08 Anthony Green <green@cygnus.com>
1531 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1533 1999-08-08 Anthony Green <green@cygnus.com>
1535 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1538 1999-08-08 Anthony Green <green@cygnus.com>
1542 * include/config.h.in: Rebuilt.
1543 * acconfig.h: Add INTERPRETER.
1545 * Makefile.in: Rebuilt.
1546 * Makefile.am (libffi_files): Identify the libffi object files for
1547 inclusion in libgcj.
1548 (LIBFFIINCS): Define.
1550 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1551 Dummy definition for configurations without an interpreter.
1553 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1554 java::lang::Boolean constructor.
1556 * include/java-interp.h: Always include java-cpool.h.
1558 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1559 when INTERPRETER not defined.
1561 * java/lang/Class.h (finalize): Define.
1563 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1564 IOException from File.getCanonicalPath.
1565 (getStream): Likewise.
1568 * THANKS: More thanks.
1570 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1572 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1574 (_Jv_PrepareClass): Allow non-abstract classes to
1575 have abstract subclasses.
1576 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1578 * interpret.cc (continue1/perform_invoke): Don't sign extend
1580 (continue1/lshl,lshr): Push long, not int.
1581 (continue1/ulshr): Use UINT64, not long long.
1582 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1584 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1585 * java/lang/FirstThread.java (run): Add top-level exception
1587 (run0): Renamed from run.
1589 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1591 * configure.in (--with-interpreter): Added.
1592 * include/config.h.in (INTERPRETER): Added.
1594 * java/lang/ClassLoader.java: File replaced.
1595 * java/lang/VMClassLoader.java: New file.
1596 * java/lang/natClassLoader.cc: New file.
1597 * gnu/gcj/runtime/MethodInvocation.java: New file.
1598 * gnu/gcj/util/path/SearchPath.java: New file.
1599 * gnu/gcj/util/path/PathEntry.java: New file.
1600 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1601 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1602 * gnu/gcj/util/path/URLPathEntry.java: New file.
1603 * gnu/gcj/util/path/CacheEntry.java: New file.
1604 * include/java-interp.h: New file.
1605 * include/java-cpool.h: New file.
1606 * include/java-insns.h: New file.
1607 * defineclass.cc: New file.
1608 * interpret.cc: New file.
1609 * resolve.cc: New file.
1611 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1612 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1613 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1615 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1616 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1618 (initializeClass): Use new JV_ prefixed names. Also, call
1619 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1621 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1622 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1623 JV_STATE_LINKED): New.
1624 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1625 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1626 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1627 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1628 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1629 _Jv_InterpMethodInvocation): New friends for interpreter.
1631 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1632 include/java-cpool.h and renamed with JV_ prefix.
1634 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1636 (_Jv_UnregisterClass): New decl.
1638 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1639 class loader argument.
1640 (_Jv_FindClass): Use class loader.
1642 * prims.cc (_Jv_makeUtf8Const): New function.
1643 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1644 (_Jv_NewPrimArray): Ditto.
1645 (_Jv_FindClassFromSignature): Ditto.
1646 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1647 * java/lang/reflect/natMethod.cc (getType): Ditto.
1649 * include/java-field.h (_Jv_Field::isRef): Make robust for
1650 non-resolved contexts.
1652 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1653 Also, don't mark class->next field.
1655 * java/lang/VirtualMachineError.java: Added FIXME note.
1657 * configure.in (INTERPSPEC): New spec.
1658 * libgcj.spec.in: Added INTERPSPEC.
1659 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1660 gnu/gcj/runtime/MethodInvocation.
1661 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1662 (ordinary_java_source_files): Added above mentioned java classes.
1664 * configure: Rebuilt.
1665 * Makefile.in: Rebuilt.
1667 1999-08-06 Tom Tromey <tromey@cygnus.com>
1669 * configure: Rebuilt.
1670 * configure.in: Look for sched_yield in -lrt.
1672 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1674 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1675 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1676 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1678 (toString): Print correctly when `country' is empty.
1680 1999-08-04 Per Bothner <per@bothner.com>
1682 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1684 1999-08-02 Tom Tromey <tromey@cygnus.com>
1686 * aclocal.m4, configure: Rebuilt for new libtool.
1688 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1690 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1691 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1692 * java/net/ServerSocket.java: Define ANY_IF.
1693 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1694 all network interfaces.
1695 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1696 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1698 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1700 * java/io/natFile.cc (performMkdir): Remove FIXME.
1701 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1703 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1705 * configure.in: Check for bstring.h.
1706 * configure, include/config.h.in: Rebuilt.
1707 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1708 * java/net/natPlainSocketImpl.cc: Likewise.
1710 1999-07-31 Tom Tromey <tromey@cygnus.com>
1715 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1717 * configure.in: Check for struct hostent_data and need for
1718 -D_REENTRANT for gethostbyname_r declaration.
1719 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1720 (lookup): Use hostent_data for fixed_buffer.
1721 * configure, include/config.h.in: Rebuilt.
1723 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1725 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1726 available. Don't cast memmove args to (void*).
1727 * configure.in: Do not abort if memmove is not available.
1729 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1731 * java/lang/natString.cc (substring): optimize where substring is
1733 * java/io/File.java (getName): don't return separator with file name.
1734 * java/io/natFile.cc (attr): fix overflow.
1736 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1738 * mauve-libgcj: Disable Object Serialization tests.
1740 1999-07-20 Warren Levy <warrenl@cygnus.com>
1742 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1743 Default to using PlainDatagramSocketImpl.
1744 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1746 1999-07-19 Tom Tromey <tromey@cygnus.com>
1748 * include/stamp-h.in: New file.
1750 1999-07-12 Tom Tromey <tromey@cygnus.com>
1752 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1755 1999-07-07 Andrew Haley <aph@cygnus.com>
1757 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1758 bytes to make it point after the instruction where the trap
1760 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1762 1999-07-07 Tom Tromey <tromey@cygnus.com>
1764 * mauve-libgcj: Explicitly enable formerly disabled java.text
1767 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1770 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1772 * java/net/URL.java (equals): Compare strings using String.equals.
1773 * java/net/URL.java (sameFile): Ditto.
1775 1999-07-02 Warren Levy <warrenl@cygnus.com>
1777 * configure: Rebuilt.
1778 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1779 * include/config.h.in: Rebuilt.
1780 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1781 (mcastGrp): Updated FIXME comments.
1782 (setOption): Fixed typo.
1783 (getOption):Implemented IP_MULTICAST_IF.
1785 1999-07-02 Warren Levy <warrenl@cygnus.com>
1787 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1788 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1789 (getTimeToLive): Implemented.
1790 (setOption): Implemented IP_MULTICAST_IF.
1792 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1794 * java/lang/String.java (toString): Check for this == null and throw
1795 NullPointerException.
1797 1999-07-01 Warren Levy <warrenl@cygnus.com>
1799 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1800 to count and revised comments to match.
1801 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1802 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1803 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1804 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1805 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1806 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1808 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1810 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1811 properly as count rather than outlength.
1812 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1813 output on overflow rather than buffer fill.
1814 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1815 if markPos is 0 and there is still room in the buffer.
1817 1999-07-01 Andrew Haley <aph@cygnus.com>
1819 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1820 This is a workaround for a bug in glibc's pthreads package which
1821 doesn't deliver any sigcontext information to a signal handler.
1823 1999-06-24 Tom Tromey <tromey@cygnus.com>
1825 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1826 * java/lang/fdlibm.h (HUGE): Conditionally define.
1828 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1830 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1831 * java/lang/e_log.c: Don't use __uint32_t.
1833 1999-05-27 Eric Christopher <echristo@cygnus.com>
1835 * configure: Rebuilt
1836 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1837 * acconfig.h: Rebuilt
1838 * include/config.h.in: Rebuilt
1840 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1841 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1842 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1843 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1844 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1845 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1846 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1847 and namespace collision with __uint32_t
1849 1999-06-23 Tom Tromey <tromey@cygnus.com>
1851 * java/util/zip/InflaterInputStream.java (read): Throw
1852 ZipException if inflater throws a DataFormatException.
1854 1999-06-23 Warren Levy <warrenl@cygnus.com>
1856 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1857 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1858 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1859 is not final per JDK.
1860 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1862 * java/util/zip/DataFormatException.java: Class extends Exception.
1863 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1864 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1865 * java/util/zip/ZipInputStream.java: ditto.
1866 (closeEntry): Changed method name to match JDK spec.
1868 1999-06-21 Tom Tromey <tromey@cygnus.com>
1870 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1873 * Makefile.in: Rebuilt.
1874 * Makefile.am (toolexeclibdir): Define as libdir when
1876 * configure: Rebuilt.
1877 * configure.in (USE_LIBDIR): New conditional.
1879 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1881 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1882 hostname in returned InetAddress objects.
1883 (getLocalHostname): Fix typo.
1884 * java/net/InetAddress.java (getByName): Set hostname on return
1886 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1889 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1891 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1892 interfaces if host==NULL.
1893 (accept): Throw message with InterruptedIOException.
1894 (getOption): Cache localAddress.
1895 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1896 'address' for DatagramSocket.
1897 (setTimeToLive): Fix compiler warnings.
1898 (getOption): Cache localAddress.
1899 * java/net/Socket.java (getLocalAddress): Don't need local
1900 InetAddress object. Add FIXME comment about calling checkConnect().
1901 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1902 connection queue to 50 as per JDK 1.2 docs.
1903 (ServerSocket(int,int)): Listen on all network interfaces by
1904 default, per JDK 1.2 docs.
1905 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1906 Add localAddress caching.
1908 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1910 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1912 (write(byte[],int,int)): ditto.
1914 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1916 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1918 1999-06-11 Warren Levy <warrenl@cygnus.com>
1920 * mauve-libgcj: Activated java.net Mauve tests.
1922 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1924 * java/net/natInetAddress.cc (aton): Fix typos.
1925 (lookup): Use a bigger buffer size for gethostbyname_r on all
1926 versions of glibc. Updated FIXME comment explaining this.
1927 Modified while loops to not set herr = ERANGE to work around glibc
1928 problems. Use user specified hostname in InetAddress result when
1929 available (consistent with JDK).
1931 1999-06-10 Warren Levy <warrenl@cygnus.com>
1933 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1934 Throw FileNotFoundException instead of IOException.
1936 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1938 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1939 in static field name.
1940 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1941 throughout rather than ParseException.
1943 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1945 * java/lang/Runtime.java (exec): Convert prog name and arguments
1947 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1948 environment array conversion. Preserve current environment if envp
1949 not passed. Preserve PATH unless explicitly specified.
1950 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1951 followed by EOF. Set a flag when a line is terminated by '\r' and
1952 ignore following '\n' if set.
1954 1999-06-02 Warren Levy <warrenl@cygnus.com>
1956 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1957 Ignore context if spec is an absolute URL. Fix braindead
1959 (hashCode): Use JDK 1.2 style algorithm.
1960 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1961 context URL properly.
1963 1999-05-30 Anthony Green <green@cygnus.com>
1965 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1966 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1968 1999-05-28 Warren Levy <warrenl@cygnus.com>
1970 * java/net/DatagramSocket.java (laddr): Removed.
1971 (DatagramSocket): Removed attempts to get or set laddr if null.
1972 (getLocalAddress): Reimplemented per spec.
1973 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1975 (joinGroup): Throw NullPointerException if any argument is null.
1976 (leaveGroup): ditto.
1977 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1978 * java/net/PlainSocketImpl.java (timeout): Added.
1979 (getInputStream): Added FIXME comment on how to support timeouts
1981 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1982 * java/net/Socket.java: Added FIXME comments to identify
1983 conflicting specs between the JCL and JDK 1.2 documents.
1984 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1985 if host is null. Get localport value resolved by kernel if bind
1987 (receive): Implemented support for timeouts in UDP.
1988 (setOption): Implemented based on natPlainSocketImpl version.
1990 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1991 resolved by kernel if bind lport is 0.
1992 (connect): Get localport value resolved by kernel if bind wasn't
1993 done to set localport.
1994 (accept): Implemented support for timeouts for ServerSocket.
1995 (setOption): Save value for SO_TIMEOUT.
1996 (getOption): Return timeout for SO_TIMEOUT.
1998 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
2000 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
2001 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
2002 (setOption): Made abstract.
2003 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
2004 to avoid cpp conflicts in native code.
2005 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
2006 cpp conflicts in native code.
2007 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
2008 * java/net/Socket.java (getLocalAddress): Implemented.
2009 (setTcpNoDelay): Implemented.
2010 (getTcpNoDelay): Implemented.
2011 (setSoLinger): Implemented.
2012 (getSoLinger): Implemented.
2013 (getSoTimeout): Verify class type.
2014 (setSendBufferSize): Implemented.
2015 (getSendBufferSize): Implemented.
2016 (setReceiveBufferSize): Implemented.
2017 (getReceiveBufferSize): Implemented.
2018 (toString): Prepended "Socket".
2019 * java/net/SocketImpl.java (toString): Rewritten.
2020 (getOption): Made abstract.
2021 (setOption): Made abstract.
2022 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
2023 (setOption): Implemented.
2024 (getOption): Implemented.
2026 1999-05-26 Warren Levy <warrenl@cygnus.com>
2028 * java/net/DatagramSocket.java (DatagramSocket): Get local host
2029 address when null. Set SO_REUSEADDR for multicasts.
2030 (getSoTimeout): Implemented.
2031 (setSoTimeout): Implemented.
2032 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
2033 * java/net/MulticastSocket.java (getInterface): Implemented.
2034 (setInterface): Implemented.
2035 (setTimeToLive): Check for invalid ttl.
2036 (joinGroup): Verify multicast address and security.
2037 (leaveGroup): Verify multicast address and security.
2038 (send): Implemented.
2039 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
2045 (getTTL): Implemented as non-native.
2049 * java/net/ServerSocket.java (setSoTimeout): Implemented.
2050 (getSoTimeout): Implemented.
2051 (setSocketFactory): Made synchronized.
2052 * java/net/Socket.java (setSoTimeout): Implemented.
2053 (getSoTimeout): Implemented.
2054 (close): Made synchronized.
2055 (setSocketImplFactory): Made synchronized.
2056 * java/net/SocketImpl.java: Implement SocketOptions interface.
2057 * java/net/natInetAddress.cc: Corrected module name at top of file.
2058 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
2059 (bind): Added FIXME.
2060 (peek): Implemented.
2066 (setOption): Implemented for SO_REUSEADDR.
2067 (getOption): Implemented for SO_REUSEADDR.
2069 1999-05-24 Tom Tromey <tromey@cygnus.com>
2071 * java/util/ResourceBundle.java (getBundle): Throw
2072 NullPointerException if baseName is null.
2074 1999-05-22 Tom Tromey <tromey@cygnus.com>
2076 * java/util/zip/ZipInputStream.java (fill): New method.
2077 (compressed_len): New instance variable.
2078 (getNextStream): Set it.
2079 (read): Reset inflater on EOF. Only read via `super' if entry is
2081 (skip): Only skip via `super' if entry is deflated.
2082 * java/util/zip/Deflater.java (last_input_count): Removed.
2083 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
2085 (needsInput): Don't use last_input_count.
2086 (setInput): Don't set last_input_count.
2087 * java/util/zip/natInflater.cc (getRemaining): Return correct
2089 (inflate): Return 0 if input array is length 0.
2090 (setInput): Don't set last_input_count.
2091 * java/util/zip/Inflater.java (last_input_count): Removed.
2093 1999-05-21 Tom Tromey <tromey@cygnus.com>
2095 * Makefile.in: Rebuilt.
2096 * Makefile.am (INCLUDES): Added $(ZINCS).
2097 * configure: Rebuilt.
2098 * configure.in (ZINCS): New subst.
2100 1999-05-21 Andrew Haley <aph@cygnus.com>
2102 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2103 to signal options to allow the same exceptions to be rethrown
2106 1999-05-20 Andrew Haley <aph@cygnus.com>
2108 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2110 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2111 (INIT_FPE): Exception string made more informative.
2112 * include/sparc-signal.h (INIT_FPE): Exception string made more
2114 * testsuite/libjava.lang/Divide_1.java: New file.
2115 * testsuite/libjava.lang/Divide_1.out: New file.
2117 1999-05-19 Tom Tromey <tromey@cygnus.com>
2119 * aclocal.m4, configure: Rebuilt.
2120 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2122 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2125 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2127 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2129 (update): Fail in default case. Always initialize `strat'.
2131 * mauve-libgcj: Enable java.util.zip.
2133 1999-05-18 Warren Levy <warrenl@cygnus.com>
2135 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2136 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2137 PlainDatagramSocketImpl.java, and SocketOptions.java.
2138 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2139 * Makefile.in: Rebuilt.
2141 * java/net/DatagramPacket.java: New file.
2142 * java/net/DatagramSocket.java: New file.
2143 * java/net/DatagramSocketImpl.java: New file.
2144 * java/net/MulticastSocket.java: New file.
2145 * java/net/PlainDatagramSocketImpl.java: New file.
2146 * java/net/SocketOptions.java: New file.
2147 * java/net/natPlainDatagramSocketImpl.cc: New file.
2149 1999-05-18 Tom Tromey <tromey@cygnus.com>
2151 * java/util/zip/ZipOutputStream.java (level): Initial value is
2152 Deflater.DEFAULT_COMPRESSION.
2153 (close): New method.
2154 (closeEntry): Likewise.
2156 (put_version): Likewise.
2157 (write_entry): Likewise.
2158 (put2, put4): Now return `int'.
2159 (comment): Default to empty string.
2160 (bytes_written): New instance variable.
2162 * java/util/zip/ZipEntry.java (setComment): Limit length of
2164 (setCrc): Check CRC validity.
2165 (setExtra): Check argument validity.
2166 (setMethod): Likewise.
2167 (setSize): Likewise.
2168 (ZipEntry): Likewise.
2169 * include/javaprims.h: Updated namespace declarations.
2170 * Makefile.in: Rebuilt.
2171 * Makefile.am (ordinary_java_source_files): Mention new files.
2172 (nat_source_files): Likewise.
2173 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2176 (getInputStream): Handle compressed entries.
2177 * java/util/zip/GZIPOutputStream.java: New file.
2178 * java/util/zip/GZIPInputStream.java: New file.
2179 * java/util/zip/DataFormatException.java: New file.
2180 * java/util/zip/CheckedInputStream.java: New file.
2181 * java/util/zip/CheckedOutputStream.java: New file.
2182 * java/util/zip/InflaterInputStream.java: Implemented.
2183 * java/util/zip/natInflater.cc: New file.
2184 * java/util/zip/Deflater.java: Implemented.
2185 * java/util/zip/natDeflater.cc: New file.
2186 * java/util/zip/DeflaterOutputStream.java: Implemented.
2188 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2189 ZipException, not IOException.
2190 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2193 1999-05-17 Tom Tromey <tromey@cygnus.com>
2195 * java/lang/natSystem.cc (init_properties): URL now points to
2198 1999-05-12 Per Bothner <bothner@cygnus.com>
2200 * java/util/Calendar.java (set): First call computeFields if needed.
2201 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2203 1999-05-12 Tom Tromey <tromey@cygnus.com>
2205 * configure: Rebuilt.
2206 * configure.in: Look for -ldl when using the Boehm collector.
2207 Look for sched_yield in -lposix4.
2209 1999-05-12 Per Bothner <bothner@cygnus.com>
2211 * java/io/File.java (mkdirs): Handle a null parent directory.
2213 1999-05-12 Tom Tromey <tromey@cygnus.com>
2215 * include/javaprims.h: Updated namespace declarations.
2216 * classes.pl (scan): Uniquify class list.
2217 * Makefile.in, configure: Rebuilt.
2218 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2219 (built_java_source_files): New macro.
2220 (nat_headers): Added built_java_source_files.
2221 (javao_files): Likewise.
2222 (EXTRA_libgcj_la_SOURCES): Likewise.
2223 (libgcj.zip): Create built class files.
2224 ($(built_java_source_files:.java=.class)): New target.
2225 (jv_convert_LDADD): Added -L$(here)/.libs.
2226 * configure.in: Create links for ConcreteProcess.java and
2227 natConcreteProcess.cc.
2228 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2229 * java/lang/natEcosProcess.cc: New file.
2230 * java/lang/EcosProcess.java: New file.
2231 * java/lang/PosixProcess.java: New file.
2232 * java/lang/natPosixProcess.cc: New file.
2234 1999-05-12 Warren Levy <warrenl@cygnus.com>
2236 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2237 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2238 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2239 (connect): Throw ConnectException.
2241 1999-05-11 Tom Tromey <tromey@cygnus.com>
2243 * Makefile.in: Rebuilt.
2244 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2245 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2248 * Makefile.in: Rebuilt.
2249 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2250 and it causes problems with libtool.
2252 * Makefile.in, configure: Rebuilt.
2253 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2254 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2255 (jv_convert_DEPENDENCIES): Added ZDEPS.
2256 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2258 (THREADSPEC): Added `-L' to point to qthreads build directory.
2262 * configure, Makefile.in: Rebuilt.
2263 * Makefile.am (toolexeclib_DATA): New macro.
2264 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2265 Recognize --with-system-zlib.
2266 (GCSPEC): New subst.
2267 (THREADSPEC): New subst.
2268 (SYSTEMSPEC): New subst.
2269 (ZLIBSPEC): New subst.
2270 * libgcj.spec.in: New file.
2272 1999-05-10 Tom Tromey <tromey@cygnus.com>
2274 * java/io/InputStreamReader.java (read): If length is 0, return
2275 0. Reset `wpos' and `wcount' when buffer has been filled and
2278 * java/util/Properties.java (save): Removed `FIXME' comment.
2279 (load): Invalid characters in \u now treated as terminators.
2280 Make sure to append character resulting from `\' handling.
2281 Cast to `char' when appending to key or value.
2282 (skip_ws): Inverted test for whitespace.
2284 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2286 (readLine): Likewise.
2287 (readFully): Implemented.
2289 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2291 * java/awt/natToolkit.cc: Added copyright header.
2292 * java/util/zip/InflaterInputStream.java: Added copyright header.
2294 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2296 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2298 (getNextStream): Likewise.
2300 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2302 (getBundle): Don't explicitly throw null pointer exception.
2304 * gnu/gcj/RawData.java: Added copyright header.
2306 * include/jni.h (_Jv_va_list): Always define as va_list.
2308 1999-05-9 Anthony Green <green@cygnus.com>
2310 * java/text/DateFormat.java (computeInstance): Separate time
2312 (getDateTimeInstance): Ditto.
2313 (getDateTimeInstance(int,int)): New method.
2315 * Makefile.in: Rebuilt.
2316 * Makefile.am (ordinary_java_source_files): Add new classes.
2318 * java/util/PropertyResourceBundle.java: New file.
2319 * gnu/gcj/util/EnumerationChain.java: New file.
2321 1999-05-07 Tom Tromey <tromey@cygnus.com>
2323 * acconfig.h (GCJVERSION): New undef.
2324 * java/lang/natSystem.cc (init_properties): Define java.version,
2325 java.class.version, os.name, os.arch, os.version.
2326 Include <sys/utsname.h> if required.
2327 * configure: Rebuilt.
2328 * configure.in: Compute and define GCJVERSION.
2330 * java/lang/natSystem.cc (default_file_encoding): Now static.
2332 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2334 * libtool-version: New file.
2335 * Makefile.in: Rebuilt.
2336 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2339 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2340 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2343 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2344 (we pick those up already).
2346 1999-05-05 Per Bothner <bothner@cygnus.com>
2348 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2349 stub classes. (This is enough to get Kawa to compile against libgcj.)
2351 * gnu/gcj/RawData.java: New class.
2352 * doc/cni.sgml: Document RawData.
2354 * java/util/zip/InflaterInputStream.java: New stub class.
2355 * java/util/zip/ZipInputStream.java: New class. Partly works.
2356 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2357 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2358 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2359 * java/util/zip/ZipOutputStream.java: Start implementation.
2361 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2362 (default_file_encoding): New global, initial value is above macro.
2363 (init_properties): Default file.encoding to default_file_encoding.
2365 * Makefile.am: Add new classes.
2367 1999-05-05 Tom Tromey <tromey@cygnus.com>
2369 * Makefile.in: Rebuilt.
2370 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2371 (clean-local): New target
2373 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2374 (load, loadLibrary): Now native.
2376 * java/lang/Runtime.java (load, loadLibrary): Now native.
2377 (init): New native method.
2378 (Runtime): Use init.
2379 * prims.cc: Include <ltdl.h> if required.
2380 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2382 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2384 * configure.in: Switch from irix threads to posix threads
2385 * configure: Regenerate.
2387 1999-04-30 Tom Tromey <tromey@cygnus.com>
2389 * Makefile.in: Rebuilt.
2390 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2392 1999-04-29 Tom Tromey <tromey@cygnus.com>
2394 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2397 * java/util/Locale.java (Locale(String,String)): Implement in
2398 terms of 3-argument version; variant now defaults to empty
2400 (toString): Assume variant is not null.
2401 (equals): Assume all strings are not null.
2402 (Locale): Throw NullPointerException if any argument is null.
2404 * java/util/ResourceBundle.java (getBundle): Don't try the base
2405 name; now implicit in partialGetBundle call.
2406 (trySomeGetBundle): Search for parent bundles and call setParent
2408 (partialGetBundle): Added `langStop' argument. Use
2409 `Locale.toString' to compute bundleName.
2410 (resource_cache): New static field.
2411 (partialGetBundle): Cache the returned resource bundle. Now
2414 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2417 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2418 * java/text/natCollator.cc (decomposeCharacter): `base' now
2420 * Makefile.in: Rebuilt.
2421 * Makefile.am (ordinary_java_source_files): Added
2422 CollationElementIterator, CollationKey, Collator,
2424 (nat_source_files): Added natCollator.cc.
2425 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2426 (compare): Pass `this' to CollationElementIterator constructor.
2427 (getCollationElementIterator): Likewise.
2428 (ceiNext): Fix off-by-one error when finding initial substring.
2429 (next): Correctly mask off bits when computing return value.
2430 Fixed return values when one string is shorter than the other.
2431 * java/text/CollationElementIterator.java (collator): New field.
2432 (CollationElementIterator): Added collator argument.
2433 (next): Call ceiNext on collator object.
2435 1999-04-26 Tom Tromey <tromey@cygnus.com>
2437 * natCollator.cc: New file.
2439 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2440 (GregorianCalendar): Use it in all constructors.
2441 * java/util/Calendar.java (Calendar): Changed argument name to
2442 `zone' to match code.
2444 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2445 * java/text/CollationKey.java: New file.
2446 * java/text/CollationElementIterator.java: New file.
2447 * java/text/Collator.java: New file.
2448 * java/text/RuleBasedCollator.java: New file.
2450 * Makefile.in: Rebuilt.
2451 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2452 (jv_convert_LDADD): Explicltly add -lm -lc.
2454 1999-04-26 Tom Tromey <tromey@cygnus.com>
2456 * configure, Makefile.in: Rebuilt.
2457 * configure.in: Added AM_PROG_LIBTOOL.
2458 (GCOBJS): Use `.lo' form of files.
2459 (THREADOBJS): Likewise.
2460 (GCDEPS): Use `.la' form of library.
2461 (GCLIBS): Set to be the same as GCDEPS.
2462 (THREADDEPS): Use `.la' form of library.
2463 (THREADLIBS): Set to be the same as THREADDEPS.
2464 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2465 toolexeclib_LIBRARIES.
2466 (libgcj_la_SOURCES): Renamed for libtoolization.
2467 (EXTRA_libgcj_la_SOURCES): Likewise.
2468 (libgcj_la_DEPENDENCIES): Likewise.
2469 (libgcj_la_LIBADD): Likewise.
2470 ($(nat_files)): Use LTCXXCOMPILE.
2471 ($(c_files)): Use LTCOMPILE.
2472 (GCJCOMPILE): New macro.
2474 (.java.o): Likewise.
2475 ($(javao_files)): Likewise.
2476 (jv_convert_LINK): Use LIBTOOL.
2477 (nat_files): Use `.lo' files.
2478 (c_files): Likewise.
2479 (javao_files): Likewise.
2480 (.class.lo): Renamed.
2481 (.java.lo): Likewise.
2482 ($(nat_files)): Depend on %.lo.
2483 ($(c_files)): Likewise.
2484 ($(javao_files)): Likewise.
2485 (jv_convert_LDADD): Link against .lo files.
2486 (jv_convert_DEPENDENCIES): Depend on .lo files.
2487 (maintainer-check): Depend on libgcj.la, but examine .a file.
2488 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2489 (libgcj_la_LDFLAGS): New macro.
2491 1999-04-23 Warren Levy <warrenl@cygnus.com>
2493 * Makefile.am: Added URLDecoder and URLEncoder.
2494 * Makefile.in: Rebuilt.
2496 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2497 setSocketImplFactory to match spec.
2498 * java/net/Socket.java (getSoLinger): Changed return type to
2501 * java/net/URLDecoder.java: New file.
2502 * java/net/URLEncoder.java: New file.
2504 1999-04-21 Tom Tromey <tromey@cygnus.com>
2506 * java/lang/natString.cc (getBytes): Reverted earlier change and
2507 applied correct fix from Per Bothner.
2509 * java/lang/String.java: Don't throw
2510 UnsupportedEncodingException.
2512 * java/lang/natString.cc (getBytes): Correctly size result
2513 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2515 1999-04-20 Andrew Haley <aph@cygnus.com>
2517 * include/sparc-signal.h: new file.
2518 * configure.in: include/sparc-signal.h added.
2519 * configure: regenerated.
2520 * prims.cc (JvRunMain): signal handling code rewritten to be more
2522 (catch_segv): ditto.
2524 * include/i386-signal.h: reorganized.
2525 * include/default-signal.h: reorganized.
2527 1999-04-19 Tom Tromey <tromey@cygnus.com>
2529 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2530 once. From Anthony Green.
2532 1999-04-19 Andrew Haley <aph@cygnus.com>
2534 * Makefile.in: Processed with new automake.
2536 1999-04-19 Tom Tromey <tromey@cygnus.com>
2538 * include/javaprims.h: Removed security namespace.
2540 1999-04-20 Anthony Green <green@cygnus.com>
2542 * java/io/PrintStream.java (println): Remove extra println.
2544 1999-04-19 Anthony Green <green@cygnus.com>
2546 * Makefile.in: Rebuilt.
2547 * Makefile.am (ordinary_java_source_files): Add new security files.
2549 * java/security/NoSuchAlgorithmException.java,
2550 java/security/MessageDigest.java: New files.
2552 * include/javaprims.h: Add security namespace.
2554 1999-04-16 Per Bothner <bothner@cygnus.com>
2556 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2557 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2558 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2559 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2560 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2561 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2562 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2563 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2564 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2565 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2566 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2567 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2568 * Makefile.am: Various changes for new files and conversions.
2570 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2571 New overloading, allows greater efficiency.
2572 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2573 New overloading (for efficiency - avoids copying).
2575 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2576 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2578 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2579 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2580 (writeChars): Don't be quite so eager to flush.
2581 * java/io/PrintStream.java: Rewrite. Now more similar to
2582 OutputStreamWriter, using explicit UnicodeToBytes converter.
2583 Also, autoflush does not need to flush so often.
2584 * java/lang/natString.cc (getBytes): More efficient algorithm.
2585 (init(jbyteArray,jint,jint,jstring)): More efficient.
2587 1999-04-15 Warren Levy <warrenl@cygnus.com>
2589 * Makefile.am (ordinary_java_source_files): Added new Connection
2590 and Handler classes in gnu.gcj.protocol.file package.
2591 * Makefile.in: Rebuilt.
2593 * gnu/gcj/protocol/file/Connection.java: New file.
2594 * gnu/gcj/protocol/file/Handler.java: New file.
2595 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2596 if doInput allows input.
2597 (getOutputStream): Check if doOutput allows output.
2598 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2600 1999-04-14 Tom Tromey <tromey@cygnus.com>
2602 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2603 buffer larger to work around bug.
2604 From Bryce McKinlay <bryce@albatross.co.nz>.
2606 1999-04-14 Andrew Haley <aph@cygnus.com>
2608 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2609 NaNs are always converted to the same long value.
2610 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2613 1999-04-13 Tom Tromey <tromey@cygnus.com>
2615 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2616 instead switch on actual element type.
2618 * Makefile.in: Rebuilt.
2619 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2621 1999-04-13 Andrew Haley <aph@cygnus.com>
2623 * include/i386-signal.h, include/default-signal.h: New files.
2624 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2626 (catch_fpe): New function.
2627 * configure.in: Make link to appropriate include/java-signal.h.
2628 * configure: Rebuilt.
2629 * Makefile.am: include/java-signal.h added to dependency list.
2630 * Makefile.in: Rebuilt.
2632 1999-04-12 Urban Widmark <urban@svenskatest.se>
2634 * java/io/DataInputStream.java (readLine): Corrected handling of
2635 empty lines, from null to "".
2637 1999-04-12 Tom Tromey <tromey@cygnus.com>
2639 * Makefile.in: Rebuilt.
2640 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2642 * java/lang/natSystem.cc (SystemClass): New define.
2643 (init_properties): Synchronize.
2645 1999-04-08 Geoff Berry <gcb@gnu.org>
2647 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2648 * natPlainSocketImpl.cc (accept): Add missing else if check
2651 1999-04-08 Tom Tromey <tromey@cygnus.com>
2653 * java/lang/Long.java (parseLong): Corrected overflow detection
2655 * java/lang/Integer.java (parseInt): Corrected overflow detection
2658 * java/io/PrintStream.java (print): Handle null string argument.
2659 (println): Likewise.
2661 1999-04-07 Warren Levy <warrenl@cygnus.com>
2663 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2664 Set count to 0 when InputStreamReader returns -1 for EOF.
2666 1999-04-07 Tom Tromey <tromey@cygnus.com>
2668 * mauve-libgcj: Omit java.text.Collator,
2669 java.text.RuleBasedCollator.
2671 1999-04-06 Tom Tromey <tromey@cygnus.com>
2673 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2674 IOException from getHttpHeaders().
2675 (getHeaderFieldKey): Likewise.
2677 * include/javaprims.h: Regenerated declarations.
2679 * Makefile.in: Rebuilt.
2680 * Makefile.am (ordinary_java_source_files): Updated for removed
2683 1999-04-06 Per Bothner <bothner@cygnus.com>
2685 * java/util/zip/Adler32.java: New class.
2686 * java/util/zip/CRC32.java: Add working method bodies.
2687 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2688 * Makefile.in: Re-generate.
2690 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2692 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2693 from version in removed www hierarchy.
2694 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2695 version in removed www hierarchy.
2697 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2698 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2699 * gnu/gcj/www/protocol/http: Removed dir.
2700 * gnu/gcj/www/protocol: Removed dir.
2701 * gnu/gcj/www: Removed dir.
2703 * java/net/HttpURLConnection.java: Revised comments to indicate
2704 missing JDK 1.2 methods.
2706 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2707 hierarchy rather than the gnu/gcj/www/protocol one.
2708 * java/net/URLConnection.java: Updated status comments.
2709 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2710 the gnu/gcj/www/content one.
2712 1999-04-06 Per Bothner <bothner@cygnus.com>
2714 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2715 The gen-from-JIS program is in $(CONVERT_DIR).
2717 1999-04-06 Tom Tromey <tromey@cygnus.com>
2719 * mauve-libgcj: Renamed from mauve-libjava.
2721 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2723 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2724 (getResponseMessage): Implemented.
2725 (getResponseVals): New private method.
2727 * java/net/URLConnection.java (getContent): Implemented.
2728 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2730 1999-04-05 Tom Tromey <tromey@cygnus.com>
2732 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2733 (jv_convert_SOURCES): Renamed.
2734 (EXTRA_jv_convert_SOURCES): Likewise.
2735 (jv_convert_LDFLAGS): Likewise.
2736 (jv_convert_LINK): Likewise.
2737 (jv_convert_LDADD): Likewise.
2738 (jv_convert_DEPENDENCIES): Likewise.
2740 * Makefile.in: Rebuilt.
2741 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2744 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2746 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2747 method for comparison.
2749 * java/net/URLConnection.java (getContentLength): Implemented.
2750 (getContentType): Implemented.
2751 (getContentEncoding): Implemented.
2752 (getExpiration): Implemented.
2753 (getDate): Implemented.
2754 (getLastModified): Implemented.
2755 (getHeaderFieldInt): Implemented.
2756 (getHeaderFieldDate): Implemented.
2758 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2760 * java/net/URLConnection.java (toString): Implemented.
2761 (setContentHandlerFactory): Implemented.
2762 (setContentHandler): Wrote new private helper method.
2764 1999-04-01 Tom Tromey <tromey@cygnus.com>
2766 * Makefile.in: Rebuilt.
2767 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2768 of 1999-03-31; we always want to build all the .class files.
2769 Depend on java_source_files, not libgcj.zip.
2770 (nat_headers): Define in terms of ordinary_java_source_files.
2772 1999-03-31 Tom Tromey <tromey@cygnus.com>
2774 * Makefile.in: Rebuilt.
2775 * Makefile.am (special_java_source_files): New macro.
2776 (java_source_files): Use it.
2777 (ordinary_java_source_files): New macro.
2778 (java_source_files): Use it.
2779 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2780 creating headers for those files with hand-maintained headers.
2782 * include/javaprims.h: Regenerated namespace declarations.
2783 * classes.pl (scan): Include [0-9] in regexp for matching class
2784 names; for java.util.zip.CRC32.
2786 * Makefile.in: Rebuilt.
2787 * Makefile.am (nat_headers): Redefined to generate all possible
2790 * java/util/zip/ZipException.java: In package java.util.zip, not
2793 1999-03-30 Tom Tromey <tromey@cygnus.com>
2795 * configure: Rebuilt.
2796 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2797 eh-common.h when not building in tree with gcc.
2799 * Makefile.in: Rebuilt.
2800 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2801 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2803 ($(java_source_files:.java=.class)): New target.
2805 * Makefile.in: Rebuilt.
2806 * Makefile.am (java_source_files): Added
2807 java/net/HttpURLConnection.java and
2808 gnu/gcj/www/protocol/http/Connection.java.
2810 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2812 * gnu/gcj/www/protocol/http/Connection.java: New file.
2813 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2814 * java/net/HttpURLConnection.java: New file.
2815 * java/net/URLConnection.java (getHeaderField): Implemented default.
2816 (getHeaderFieldKey): Implemented default method.
2818 1999-03-30 Tom Tromey <tromey@cygnus.com>
2820 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2822 * java/util/zip/Deflater.java: Added copyright header.
2823 * java/util/zip/CRC32.java: Added copyright header.
2825 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2826 that it is automatically generated.
2827 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2829 * gnu/gcj/convert/BytesToUnicode.java,
2830 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2831 gnu/gcj/convert/Input_EUCJIS.java,
2832 gnu/gcj/convert/Input_UTF8.java,
2833 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2834 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2835 gnu/gcj/convert/Output_8859_1.java,
2836 gnu/gcj/convert/Output_JavaSrc.java,
2837 gnu/gcj/convert/Output_UTF8.java,
2838 gnu/gcj/convert/UnicodeToBytes.java,
2839 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2841 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2843 * Makefile.in, configure: Rebuilt.
2844 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2845 not if test subdir exists.
2846 (--enable-gcj-classes): Removed; gcj always used to generate
2848 (JAVA, JAVAC): Removed.
2849 (--enable-single-compilation, --enable-source-compilation):
2852 (NATIVE): New conditional.
2853 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2854 `install-exec' to work.
2855 (toolexeclibdir): Likewise.
2856 (toollib_LIBRARIES): Likewise.
2857 (AM_MAKEFLAGS): Don't pass tooldir.
2859 (javao_files): Redefined.
2860 (java_source_files): New macro.
2861 (c_source_files): New macro.
2862 (c_files): Redefined in terms of c_source_files.
2863 (java_io_files, java_lang_files, java_net_files, java_text_files,
2864 java_util_files, gnu_files, java_files): Removed.
2865 (class_io_files, class_lang_files, class_net_files,
2866 class_text_files, class_util_files, class_gnu_files, class_files):
2868 (nat_source_files): New macro.
2869 (nat_files): Redefined in terms of nat_source_files.
2870 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2871 java_source_files. Removed no-such-file.c.
2873 (ETAGS_ARGS): Removed.
2874 (TAGS_DEPENDENCIES): Likewise.
2875 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2877 (src_io_files, src_lang_files, src_text_files, src_util_files,
2878 src_gnu_files): Removed.
2879 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2880 (BUILT_SOURCES): Removed.
2881 (header-check): New target.
2883 (noinst_PROGRAMS): New macro.
2884 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2886 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2887 (gen-from-JIS): Build in top directory.
2888 (convert_source_files): New macro.
2889 (convert_SOURCES): New macro.
2890 (convert_LDFLAGS): Likewise.
2891 (convert_LINK): Likewise.
2892 (convert_LDADD): Likewise.
2893 (convert_DEPENDENCIES): Likewise.
2895 (gen-from-JIS): Removed.
2896 (gen_from_JIS_SOURCES): New macro.
2897 (gen_from_JIS_LDADD): Likewise.
2898 (gen_from_JIS_DEPENDENCIES): Likewise.
2900 * configure: Rebuilt.
2901 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2902 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2903 when defining conditional.
2905 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2907 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2908 The Unicode Consortium does not permit their re-distribution.
2909 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2910 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2912 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2914 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2916 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2918 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2919 from Unicode Consortium.
2920 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2921 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2922 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2923 New tables, generated using gen-from-JIS.
2924 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2925 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2926 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2927 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2929 * gnu/gcj/convert/Convert.java: New application.
2930 * Makefile.am, Makefile.in (convert): New program, using Convert.
2931 Build the various JIS conversion tables (in maintainer mode).
2933 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2935 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2937 * java/net/URL.java (URL): Deal with null property value. Use "."
2938 as separator in building class name.
2939 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2940 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2941 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2942 beginning of the substring rather than 'start'.
2944 1999-03-26 Tom Tromey <tromey@cygnus.com>
2946 * include/java-chartables.h: Rebuilt.
2947 * include/java-chardecomp.h: New file.
2948 * chartables.pl: Generate output files directly. Added support
2949 for generating decomposition header.
2950 (canonical_decomposition, full_decomposition): New globals.
2951 (DECOMPOSITION): New constant.
2952 (process_char): Call add_decomposition.
2953 (add_decomposition): New sub.
2954 (write_decompositions): New sub.
2956 1999-03-25 Tom Tromey <tromey@cygnus.com>
2958 * java/text/CollationElementIterator.java: New file.
2960 * mauve-libjava: Omit StringTest.
2962 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2964 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2965 without a '/' when parsing protocol. Handle ref outside of parseURL.
2966 (hashCode): Implemented.
2967 (set): Don't expand -1 to default port.
2968 (getDefaultPort): Removed.
2970 * java/net/URLStreamHandler.java (parseURL): Implemented.
2971 (toExternalForm): Implemented.
2973 1999-03-23 Tom Tromey <tromey@cygnus.com>
2975 * java/text/BreakIterator.java (getSentenceInstance):
2977 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2979 * Makefile.in: Rebuilt.
2980 * Makefile.am (nat_headers): Added IllegalAccessException.
2981 * java/lang/natClass.cc (newInstance): Throw
2982 IllegalAccessException, not IllegalAccessError.
2983 Include IllegalAccessException.h.
2985 1999-03-22 Tom Tromey <tromey@cygnus.com>
2987 * gnu/gcj/text/LineBreakIterator.java: New file.
2988 * java/text/BreakIterator.java (getLineInstance): Implemented.
2990 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2991 copy constructor private.
2992 (previous, next): Removed erroneous comment about line
2994 (previous): Correctly recognize break between non-letter on the
2995 left and letter on the right. Handle apostrophes correctly.
2997 * java/text/BreakIterator.java (getWordInstance): Implemented.
2998 * gnu/gcj/text/WordBreakIterator.java: New file.
2999 * gnu/gcj/text/CharacterBreakIterator.java: Extend
3001 * gnu/gcj/text/BaseBreakIterator.java: New file.
3003 1999-03-19 Tom Tromey <tromey@cygnus.com>
3005 * java/text/BreakIterator.java: New file (partially stubbed out).
3006 * gnu/gcj/text/CharacterBreakIterator.java: New file.
3008 * include/config.h.in: Rebuilt.
3009 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
3010 (HAVE_TIMEZONE): Likewise.
3011 * configure: Rebuilt.
3012 * configure.in: Added timezone checks.
3013 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
3016 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
3018 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
3019 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
3020 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
3021 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
3022 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
3023 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
3024 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
3025 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
3027 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
3028 (BSD_COMP): Kludge needed for Solaris2.
3030 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
3032 * java/net/URL.java (URL(java.net.URL, string): Moved code to
3033 URL(java.net.URL, string, URLStreamHandler) and call it with a
3034 null handler. In latter constructor, added SecurityManager check.
3035 (set): Expect null handler on bad protocol rather than an exception.
3036 (setURLStreamHandler): Simplified exception handling; return null
3037 on invalid protocol.
3039 1999-03-18 Tom Tromey <tromey@cygnus.com>
3041 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
3043 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
3045 Include PrintStream.h, InputStream.h.
3046 * java/lang/System.java (ForwardingInputStream,
3047 ForwardingOutputStream): Removed.
3048 (setErr, setIn, setOut): Now native.
3050 Reverted patch from 1999-02-12 to work around problem in
3052 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
3053 (_Jv_eh_free): Use free.
3055 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
3056 for path name. Minor formatting fixes.
3058 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
3060 * prims.cc (fail_on_finalization): New function.
3061 (_Jv_GCWatch): Likewise.
3063 * prims.cc (JvRunMain): Initialize `nullp'.
3064 (nullp): New global.
3065 (catch_segv): Throw nullp.
3067 * Makefile.in: Rebuilt.
3068 * Makefile.am (ZIP): In "null target" case, zip is found in the
3071 * prims.cc (_Jv_PrimClass): Initialize all elements of class
3075 * java/lang/StringBuffer.java (StringBuffer): Don't use
3076 ensureCapacity to set initial capacity.
3077 (capacity): Subtract `length' from return result.
3079 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
3081 * java/io/natFileDescriptorPosix.cc (open): Throw
3082 FileNotFoundException, but with filename and errno in msg.
3084 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
3086 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
3087 functionality folded into java/net/URL.java per spec.
3089 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
3090 than EEXIST for throwing FileNotFoundException.
3092 * java/net/URL.java: Folded in default URLStreamHandlerFactory
3093 algorithm per JDK 1.2 doc. Added SecurityManager checks.
3095 * java/net/URLStreamHandler.java (parseURL): Added stub.
3097 1999-03-15 Andrew Haley <aph@cygnus.com>
3099 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3102 1999-03-15 Andrew Haley <aph@cygnus.com>
3104 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3107 1999-03-12 Tom Tromey <tromey@cygnus.com>
3109 * prims.cc (catch_segv): New function.
3110 Include <signal.h> if HANDLE_SEGV defined. Include
3111 NullPointerException.h.
3112 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3115 * java/text/SimpleDateFormat.java (equals): Ensure that object is
3116 a SimpleDateFormat, not just a DateFormat.
3117 (defaultCenturyStart, formatData, pattern): Now private.
3118 (append): Now `final'. Use `NumberFormat.format'.
3120 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3122 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3125 * java/text/MessageFormat.java (format): Use default MessageFormat
3127 (parse, parseObject): Wrote.
3129 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3132 1999-03-12 Andrew Haley <aph@cygnus.com>
3134 * java/lang/String.java (indexOf): Replace with native method for
3136 * java/lang/natString.cc (IndexOf): As above.
3138 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3139 Argument check corrected.
3140 (init(jbyteArray,jint,jint,jstring)): Likewise.
3142 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3143 1.2 compliant method.
3145 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3147 * java/lang/Float.java (byteValue, shortValue): Likewise.
3149 1999-03-11 Tom Tromey <tromey@cygnus.com>
3151 * java/text/DecimalFormat.java (parse): Wrote.
3153 * java/text/ChoiceFormat.java (parse): Set error index on
3154 ParsePosition object.
3156 * java/lang/Integer.java (parseInt): Throw exception on overflow
3157 when intermediate result is most negative number. Changed
3158 overflow detection as well.
3159 * java/lang/Long.java (parseLong): Likewise.
3161 * configure, Makefile.in: Rebuilt.
3162 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3163 CANADIAN when building in source tree that doesn't include gcc.
3164 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3167 * java/text/ChoiceFormat.java (nextDouble): Correct some
3168 off-by-one errors when masking or adding.
3170 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3171 parameter, if given. Use `%', not IEEEremainder.
3172 (scanFix): Throw error if multiplier already set.
3173 (computePattern): Wrote.
3175 1999-03-11 Andrew Haley <aph@cygnus.com>
3177 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3179 (nextDouble): Corrected masking logic. Handle interaction between
3180 `next' and negative numbers.
3182 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3184 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3185 * java/net/URL.java: Added general comments.
3187 1999-03-10 Tom Tromey <tromey@cygnus.com>
3189 * java/text/ChoiceFormat.java (parse): Wrote.
3191 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3193 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3194 Create ChoiceFormat objects.
3195 (format): Special-case ChoiceFormat.
3196 (scanFormatElement): Include { and } in generated style string.
3198 1999-03-09 Tom Tromey <tromey@cygnus.com>
3200 * java/text/ChoiceFormat.java: New file.
3202 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3204 * java/net/BindException.java: Created.
3205 * java/net/ConnectException.java: Created.
3206 * java/net/ContentHandler.java: Created.
3207 * java/net/ContentHandlerFactory.java: Created.
3208 * java/net/FileNameMap.java: Created.
3209 * java/net/MalformedURLException.java: Created.
3210 * java/net/NoRouteToHostException.java: Created.
3211 * java/net/ProtocolException.java: Created.
3212 * java/net/ServerSocket.java (@author): Fixed typo.
3213 * java/net/Socket.java (@author): Fixed typo.
3214 * java/net/SocketImpl.java (@author): Fixed typo.
3215 * java/net/SocketImplFactory.java (@author): Fixed typo.
3216 * java/net/URL.java: Created - nearly complete.
3217 * java/net/URLConnection.java: Created - near-empty stub.
3218 * java/net/URLStreamHandler.java: Created - incomplete stub.
3219 * java/net/URLStreamHandlerFactory.java: Created.
3220 * java/net/UnknownServiceException.java: Created.
3222 1999-03-09 Tom Tromey <tromey@cygnus.com>
3224 * java/lang/System.java (ForwardingInputStream): New class.
3225 (ForwardingOutputStream): Likewise.
3226 (in, out, err): Now `final' forwarding streams.
3227 (setIn, setOut, setErr): Use appropriate method on forwarding
3230 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3233 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3235 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3236 * java/util/zip/Checksum.java: New interface (complete).
3237 * java/util/zip/Deflater.java: New class (near-empty stub).
3238 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3239 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3240 * java/util/zip/ZipEntry.java: New class (complete).
3241 * java/util/zip/ZipException.java: New class (complete).
3242 * java/util/zip/ZipFile.java: New class (incomplete stub).
3243 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3245 1999-03-09 Tom Tromey <tromey@cygnus.com>
3247 * java/text/MessageFormat.java (MessageFormatElement): Removed
3248 `public' specifiers.
3250 * java/text/DecimalFormat.java (scanFormat): Increment index
3251 before processing exponential format. Fixed a couple typos in
3253 (format): Correct normalization of exponent.
3255 1999-03-08 Tom Tromey <tromey@cygnus.com>
3257 * java/text/SimpleDateFormat.java (parse): Throw
3258 IllegalArgumentException, not ParseException.
3260 1999-03-05 Tom Tromey <tromey@cygnus.com>
3262 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3263 when constructing DateFormatSymbols. Initialize numberFormat
3264 field of superclass.
3266 * java/text/DateFormat.java (equals): Rewrote.
3267 (getAvailableLocales): New method.
3268 (getDateInstance): New methods.
3269 (getDateTimeInstance): Likewise.
3270 (getTimeInstance): Likewise.
3271 (getInstance): New method.
3272 (computeInstance): New method.
3274 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3276 (safeGetResource): New method.
3277 (DateFormatSymbols): Use Locale paramater.
3278 (equals): Now protected.
3279 Made instance variables private.
3281 1999-03-04 Tom Tromey <tromey@cygnus.com>
3283 * java/text/DecimalFormat.java: New file.
3285 * java/text/NumberFormat.java (groupingUsed,
3286 maximumFractionDigits, maximumIntegerDigits,
3287 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3289 (setDecimalSeparatorAlwaysShown, setMultiplier,
3290 setPositivePrefix): Removed.
3291 (setMinimumFractionDigits, setMaximumFractionDigits):
3293 (format): Now final.
3294 Added many new methods.
3296 * Makefile.in: Rebuilt.
3297 * Makefile.am (gnu_files): New macro.
3298 (java_files): Added gnu_files.
3299 (class_gnu_files): New macro.
3300 (class_files): Use it.
3301 (src_gnu_files): New macro.
3302 (gnu.o): New target.
3303 (javao_files): Added gnu.o.
3305 * gnu/gcj/text/LocaleData_en_US.java: New file.
3306 * gnu/gcj/text/LocaleData_en.java: New file.
3307 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3308 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3309 (safeGetString): New method.
3310 (safeGetChar): Likewise.
3312 1999-03-03 Tom Tromey <tromey@cygnus.com>
3314 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3317 * java/text/FieldPosition.java (equals): Don't check for null
3318 object; instanceof does this.
3320 * java/util/Locale.java (clone): New method.
3323 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3325 * doc/cni.sgml: New file.
3327 1999-03-03 Tom Tromey <tromey@cygnus.com>
3329 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3331 * java/text/DecimalFormatSymbols.java: New file.
3333 1999-03-02 Tom Tromey <tromey@cygnus.com>
3335 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3337 * configure: Rebuilt.
3338 * configure.in: Check for sys/filio.h.
3340 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3342 (load): Always throw UnsatisfiedLinkError.
3343 (loadLibrary): Likewise.
3345 1999-03-02 Anthony Green <green@cygnus.com>
3347 * LIBGCJ_LICENSE: New file.
3348 * LIBJAVA_LICENSE: Removed.
3349 * Many files: libjava now libgcj.
3351 1999-03-02 Tom Tromey <tromey@cygnus.com>
3353 * include/java-chartables.h: Rebuilt.
3354 * chartables.pl (print_block): Make table `const'.
3355 (print_numerics): Likewise.
3356 (print_single_map): Likewise.
3357 (print_all_block): Likewise.
3358 (print_case_table): Likewise.
3359 (print_fast_tables): Likewise.
3360 * java/lang/natCharacter.cc (table_search): `table' argument now
3363 1999-03-01 Tom Tromey <tromey@cygnus.com>
3365 * java/util/Date.java (before, after): Inverted logic.
3367 * java/util/Date.java (parse): Handle case where first character
3368 in string is open parenthesis.
3369 (skipParens): Rewrote.
3371 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3372 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3374 * java/util/Date.java (parse): Correctly compute beginning of
3377 * java/util/Hashtable.java (get): Throw NullPointerException if
3379 (containsKey): Likewise.
3381 * java/util/Properties.java (list): Truncate value to 37
3382 characters and add `...'.
3384 * java/lang/Byte.java (parseByte): Pass `radix' to
3387 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3389 Include System.h, PrintStream.h.
3391 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3394 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3396 * configure: Rebuilt.
3397 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3400 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3402 * java/lang/SecurityManager.java: Import java.net.*.
3403 (checkMulticast): New methods.
3405 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3407 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3408 (nat_files): Add java/lang/reflect/natArray.o.
3409 (nat_headers): Add Field.h and NoSuchFieldException.h.
3411 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3412 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3413 (_Jv_FromReflectedField): Fix buglet.
3414 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3415 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3416 * prims.cc (_Jv_Abort): Include message in print-out.
3418 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3419 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3420 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3422 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3423 * include/config.h.in (HAVE_PWD_H): New feature macro.
3424 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3425 user.name, user.home, user.dir.
3427 * java/lang/reflect/Array.java: New class.
3428 * java/lang/reflect/natArray.cc: New native methods.
3429 * include/javaprims.h: Declare java::lang::reflect::Array.
3431 * java/lang/Class.h (getField): New private method. Add friends.
3432 * java/lang/Class.java (getField): Add private overload.
3433 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3434 getDeclaredMethods): Add working implementations.
3435 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3436 Finish implementation, except for access control.
3438 * java/lang/reflect/Modifier.java (toString): New overload.
3439 * include/java-method.h: New file.
3440 * java/lang/reflect/Method.java (index): Replaced by offset field.
3441 Remove various private fields - get them from _Jv_Field instead.
3442 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3443 New method implementations.
3445 * java/text/NumberFormat.java: Add a bunch of methods.
3447 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3449 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3451 1999-02-26 Tom Tromey <tromey@cygnus.com>
3453 * include/config.h.in: Rebuilt.
3454 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3455 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3456 HAVE_GETHOSTBYADDR_R): New defines.
3457 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3458 gethostbyaddr_r if available.
3460 * configure: Rebuilt.
3461 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3463 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3467 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3468 * prims.cc (_Jv_AllocBytesChecked): New function.
3470 * Makefile.in: Rebuilt.
3471 * Makefile.am (SUBDIRS): Removed `test'.
3472 * configure: Rebuilt.
3473 * configure.in: Don't build test/Makefile.
3474 * test/*: Removed all files.
3476 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3478 * java/lang/reflect/Constructor.java: Make class final to match spec.
3479 * java/lang/reflect/Method.java: Ditto.
3481 1999-02-25 Tom Tromey <tromey@cygnus.com>
3483 * java/net/natInetAddress.cc: Include <sys/types.h> before
3485 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3488 * java/net/natInetAddress.cc: Declare gethostname if required.
3489 * include/config.h.in: Rebuilt.
3490 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3491 * configure: Rebuilt.
3492 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3493 declared in unistd.h.
3495 1999-02-24 Tom Tromey <tromey@cygnus.com>
3497 * Makefile.in: Rebuilt.
3498 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3499 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3500 from private to "none".
3502 * include/javaprims.h: Regenerated class declarations with new
3504 * classes.pl (scan): Only generate decls for java.lang, java.io,
3507 1999-02-24 Tom Tromey <tromey@cygnus.com>
3509 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3510 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3512 1999-02-23 Tom Tromey <tromey@cygnus.com>
3514 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3515 not already defined.
3516 * java/io/natFile.cc (_REENTRANT): Only define if not already
3518 * include/config.h.in: Rebuilt.
3519 * acconfig.h (HAVE_BOEHM_GC): New define.
3520 * configure: Rebuilt.
3521 * configure.in: Define HAVE_BOEHM_GC if using it.
3522 * posix-threads.cc: Include boehm-config.h and gc.h if
3524 * include/posix-threads.h: Added explanatory note about Boehm GC.
3526 * java/io/BufferedReader.java (readLine): Only return null when
3527 EOF seen before any characters read. (In particular, an empty
3528 line should not return null.)
3530 * java/io/BufferedInputStream.java (read): Only refill once per
3533 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3534 java.lang.Character.classify12, java.lang.String.hash,
3535 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3536 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3538 * java/text/StringCharacterIterator.java (setIndex): No error if
3540 (next): Check for `pos == end', not `end - 1'.
3541 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3542 for null text in each constructor.
3543 (clone): Fixed order of arguments to constructor.
3545 1999-02-22 Tom Tromey <tromey@cygnus.com>
3547 * include/config.h.in: Rebuilt.
3548 * acconfig.h (HAVE_INET6): New define.
3549 (HAVE_SOCKLEN_T): Likewise.
3550 * java/net/PlainSocketImpl.java: Added copyright header.
3551 * java/net/natPlainSocketImpl.cc: Added copyright header.
3552 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3554 (connect): Likewise.
3556 (socklen_t): New typedef.
3557 (accept): Use socklen_t.
3558 * java/net/natInetAddress.cc: Added copyright header.
3559 (HAVE_GETHOSTNAME): Don't define.
3560 (HAVE_INET_ADDR): Likewise.
3561 (lookup): Fixed typo.
3562 (aton): Don't use `address' as name of local variable.
3563 (lookup): Use HAVE_INET6, not AF_INET6.
3565 * configure: Rebuilt.
3566 * configure.in: Look for functions inet_aton, inet_addr,
3567 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3568 Check for socklen_t typedef.
3570 * exception.cc (__throw): Declare as __noreturn__.
3572 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3574 * Makefile.am, Makefile.in: Also build java/net.
3575 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3577 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3578 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3580 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3581 * include/cni.h (JvMalloc, JvFree): New inline functions.
3582 (JvThrow): Add __noreturn__ attribute.
3583 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3584 (_Jv_Throw): Add __noreturn__ attribute.
3586 * java/net/PlainSocketImpl.java: Init fnum to -1.
3587 * java/net/ServerSocket.java: Add missing throws clauses.
3588 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3589 don't call create on the latter. Instead, other constructors
3590 have to explicitly call SocketImpl.create.
3591 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3592 from size_t to int, to match ::accept prototype.
3593 * java/net/natInetAddress.cc: Use JvFree rather than free.
3596 1999-02-22 Tom Tromey <tromey@cygnus.com>
3598 * include/javaprims.h: Added new classes.
3599 * java/text/StringCharacterIterator.java: New file.
3600 * java/text/CharacterIterator.java: New file.
3602 * java/text/ParseException.java (errorOffset): Now private.
3604 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3606 * java/net: New package.
3607 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3608 Socket.java,SocketException.java,SocketImpl.java,
3609 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3610 natPlainSocketImpl.cc}: New classes.
3612 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3613 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3614 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3615 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3617 * classes.pl: Translate package into "namespace", not "class".
3618 * include/javaprims.h: Update class list, using "namespace".
3620 1999-02-21 Tom Tromey <tromey@cygnus.com>
3622 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3623 Define when appropriate.
3625 1999-02-20 Tom Tromey <tromey@cygnus.com>
3627 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3628 as a single byte and \u07ff as two bytes.
3629 (_Jv_GetStringUTFLength): Likewise.
3630 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3631 with 0x0f, not 0x1f.
3633 1999-02-19 Tom Tromey <tromey@cygnus.com>
3635 * java/io/DataOutputStream.java (writeUTF): When encoding
3636 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3637 * java/io/DataInputStream.java (readUTF): Mask second byte of
3638 3-byte character with 0x3f, not 0x1f.
3640 * java/io/DataInputStream.java (readLong): Cast result of
3641 readUnsignedByte to long before using.
3643 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3646 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3647 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3648 argument to avoid warning.
3649 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3650 argument to avoid warning.
3652 1999-02-18 Tom Tromey <tromey@cygnus.com>
3654 * mauve-libjava: Omit java.io.DataInputOutput and
3655 java.io.Utf8Encoding.
3657 1999-02-17 Tom Tromey <tromey@cygnus.com>
3659 * Makefile.in: Rebuilt.
3660 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3661 * java/io/natFileDescriptorPosix.cc: Include
3662 InterruptedIOException.h, Thread.h.
3663 (write): Throw InterruptedIOException when required.
3665 * posix-threads.cc: Include <signal.h>.
3666 (_Jv_ThreadInterrupt): New function.
3668 (handle_intr): New function.
3669 (_Jv_InitThreads): Register handle_intr via sigaction.
3670 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3671 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3672 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3673 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3675 1999-02-19 Andrew Haley <aph@cygnus.com>
3677 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3679 (ThreadGroup (int)): Set the maximum priority of the initial
3682 1999-02-18 Andrew Haley <aph@cygnus.com>
3684 * java/lang/natClass.cc (forName): Check for the case where a
3685 classname is the name of an array and call FindClassFromSignature
3688 1999-02-18 Andrew Haley <aph@cygnus.com>
3690 * java/lang/StringBuffer (insert (int, String)): Move up any
3691 characters above the insert position and increase the length of
3692 the string buffer by the length of the argument.
3693 (insert (int, char[])): Likewise.
3694 (insert (int, char)): Likewise.
3695 (StringBuffer (String)): The initial capacity of the string buffer
3696 is 16 plus the length of the argument.
3697 (getChars): Add a JDK 1.2 FIXME.
3699 1999-02-18 Andrew Haley <aph@cygnus.com>
3701 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3704 1999-02-18 Andrew Haley <aph@cygnus.com>
3706 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3707 instead of floating-point equality. This is necessary for
3708 correct floating-point Hashtables.
3709 * java/lang/Float.java (equals): Ditto.
3711 1999-02-16 Tom Tromey <tromey@cygnus.com>
3713 * java/util/Properties.java (list): Truncate value to 37
3714 characters and add "...".
3716 1999-02-16 Tom Tromey <tromey@cygnus.com>
3718 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3719 if initCap is negative.
3720 (contains): Implement JDK1.2-style handling of null argument.
3721 (removeElement): Likewise.
3722 (indexOf): Likewise. Also, correctly handle case where idx is
3724 (lastIndexOf): Likewise.
3726 1999-02-16 Tom Tromey <tromey@cygnus.com>
3728 * java/lang/natString.cc (init): Increment source pointer in
3731 1999-02-16 Tom Tromey <tromey@cygnus.com>
3733 * exception.cc: Include NullPointerException.h.
3734 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3736 1999-02-16 Tom Tromey <tromey@cygnus.com>
3738 * Makefile.in: Rebuilt.
3739 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3741 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3743 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3744 we're compiling canadian.
3745 * configure: Regenerated.
3747 1999-02-12 Andrew Haley <aph@cygnus.com>
3749 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3750 deleted from libgcj.
3752 1999-02-12 Tom Tromey <tromey@cygnus.com>
3754 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3755 (_Jv_eh_free): Don't call free.
3756 Don't declare malloc or free.
3758 1999-02-11 Tom Tromey <tromey@cygnus.com>
3760 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3762 1999-02-11 Andrew Haley <aph@cygnus.com>
3764 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3765 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3766 needed by java.lang.*.
3767 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3768 wf_fmod.o: Removed from libjava.a.
3770 1999-02-11 Tom Tromey <tromey@cygnus.com>
3772 * include/javaprims.h: Reverted previous change; with it
3773 exception.cc can't compile.
3775 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3777 * include/config.h.in: Rebuilt.
3778 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3780 * configure: Rebuilt.
3781 * configure.in: Check for sched_yield. Look in thread library for
3782 all thread functions.
3784 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3785 no recursive mutexes.
3786 (_Jv_MutexDestroy): Define when required.
3787 (_Jv_MutexLock): Likewise.
3788 (_Jv_MutexUnlock): Likewise.
3789 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3790 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3791 (_Jv_Mutex_t): New structure.
3792 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3793 (_Jv_MutexLock): Likewise.
3794 (_Jv_MutexUnlock): Likewise.
3796 1999-02-10 Tom Tromey <tromey@cygnus.com>
3798 * aclocal.m4, configure, Makefile.in: Rebuilt.
3799 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3801 * configure.in: Changed to track library changes.
3802 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3803 (AM_CXXFLAGS): Likewise.
3804 (data_DATA): Likewise.
3805 (AM_CFLAGS): Likewise.
3806 (JC1FLAGS): Likewise.
3807 (libgcj_a_SOURCES): Likewise.
3808 (EXTRA_libgcj_a_SOURCES): Likewise.
3809 (libgcj_a_DEPENDENCIES): Likewise.
3810 (libgcj_a_LIBADD): Likewise.
3811 (libgcj.zip): Likewise.
3812 (CLEANFILES): Likewise.
3813 ($(nat_headers)): Likewise.
3814 (java/lang/FirstThread.h): Likewise.
3815 (java/lang/ThreadGroup.h): Likewise.
3816 (java/lang/String.h): Likewise.
3817 (java/lang/reflect/Field.h): Likewise.
3818 (BUILT_SOURCES): Likewise.
3819 (maintainer-check): Likewise.
3820 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3821 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3823 * java/util/natGregorianCalendar.cc (computeFields): Only use
3824 gmtime_r and localtime_r when configured for posix threads.
3826 * java/io/natFile.cc (get_entry): Only use readdir_r when
3827 configured for posix threads.
3829 * java/util/natGregorianCalendar.cc: Update copyright notice.
3830 * java/util/TimeZone.java: Ditto.
3831 * java/util/SimpleTimeZone.java: Ditto.
3833 1999-02-08 Tom Tromey <tromey@cygnus.com>
3835 * java/io/PrintStream.java (line_separator): New constant.
3836 (print): Use line_separator, not `file.separator' property.
3837 (println): Use line_separator.
3839 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3840 when trying to instantiate Class.
3842 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3843 NullPointerException if argument is null.
3845 * java/lang/Thread.java (setName): Throw NullPointerException, not
3846 IllegalArgumentException.
3849 1999-02-08 Andrew Haley <aph@cygnus.com>
3851 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3852 create new Classes with Class.newInstance().
3854 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3855 semiciolon to end of an array Class's signature if the elements of
3856 the array aren't themselves arrays.
3858 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3859 array of objects is always sizeof(jobject), not the size of the
3860 object to which the reference points.
3862 1999-02-08 Tom Tromey <tromey@cygnus.com>
3864 * java/util/BitSet.java (and): Throw NullPointerException when
3869 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3870 if argument is negative.
3871 (clear): Correctly compute `offset'. Throw
3872 IndexOutOfBoundsException when required.
3874 (get): Likewise. Also, return correct value.
3875 (ensure): Changed meaning of argument.
3876 (toString): Wrap contents in `{}'; put spaces after commas.
3877 (hashCode): Don't try to examine elements off the end of array.
3878 (or): Correctly include bits past the end of this bit set.
3881 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3883 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3884 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3886 1999-02-04 Andrew Haley <aph@cygnus.com>
3888 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3889 '/' in signatures to '.'
3890 (Class::getName): Likewise,
3891 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3893 * java/lang/natFirstThread.cc (run): Change '/' in main's
3896 1999-02-03 Andrew Haley <aph@cygnus.com>
3898 * configure.host: -ffloat-store added when compiling libjava on
3899 x86. fdlibm apparently relies on this.
3901 * java/lang/ThreadGroup.java (add): throw an exception if the
3902 ThreadGroup has been destroyed.
3904 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3907 1999-01-27 Tom Tromey <tromey@cygnus.com>
3909 * java/lang/StringBuffer.java (StringBuffer): Handle null
3912 1999-01-21 Tom Tromey <tromey@cygnus.com>
3914 * java/lang/natFirstThread.cc (run): Don't require main to be
3917 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3919 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3921 1999-01-20 Tom Tromey <tromey@cygnus.com>
3923 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3927 (unintern): Likewise.
3928 (_Jv_NewStringUtf8Const): Likewise.
3930 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3931 Character.isLetter, to see if character is self-quoting. Also,
3932 correctly handle quoted characters.
3933 (parse): Fixed typo. Also now throws ParseException.
3935 1999-01-15 Tom Tromey <tromey@cygnus.com>
3937 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3939 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3940 _Jv_SyncInfo has `init' member.
3942 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3945 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3946 IllegalMonitorStateException if unlock fails.
3948 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3950 (_Jv_NewObjectArray): Likewise.
3952 1999-01-14 Tom Tromey <tromey@cygnus.com>
3954 * java/lang/Character.java (isJavaIdentifierPart): Allow
3955 LETTER_NUMBER characters.
3957 * chartables.pl (process_char): Fixed error messages.
3959 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3960 * chartables.pl: Updated comments. Changed detection of non-digit
3961 numeric values (no longer miss \u00b2 and friends).
3963 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3964 currency symbols and connector punctuation.
3965 (isIdentifierIgnorable): Make 7f-9f ignorable.
3967 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3968 (_Jv_NewPrimArray): Likewise.
3969 (SIZE_T_MAX): New define.
3971 * java/lang/ClassLoader.java (system): Now private and final.
3973 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3976 * configure: Rebuilt.
3977 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3979 * exception.cc: Include gansidecl.h.
3981 1999-01-14 Andrew Haley <aph@cygnus.com>
3983 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3984 corrected: they didn't treat -0.0 and NaNs correctly.
3986 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3988 * nogc.cc: Use calloc to zero out memory.
3990 1999-01-11 Tom Tromey <tromey@cygnus.com>
3992 * java/lang/natClass.cc (isInstance): Return false if this class
3993 is primitive, not if class of `obj' is primitive.
3994 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3996 * java/io/SequenceInputStream.java (close): Handle case where `in'
3999 * java/text/DateFormat.java (format): New method.
4001 * mauve-libjava: Omit java.text.DateFormat.
4003 1999-01-08 Tom Tromey <tromey@cygnus.com>
4005 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
4007 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
4009 (_Jv_CondNotifyAll): Likewise.
4011 * configure: Rebuilt.
4012 * configure.in: Change --enable-source-compilation logic to work
4015 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
4017 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4018 and RUNTESTFLAGS from AM_MAKEFLAGS.
4019 * configure.in: AM_RUNTESTFLAGS added.
4020 * configure.host: AM_RUNTESTFLAGS added.
4021 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
4022 * configure: rebuilt.
4023 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
4025 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
4026 argv[] made conditional because embedded targets may not have
4028 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
4029 explanatory comments added in call to super.
4031 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
4032 exception thrown in the test harness itself added.
4033 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
4035 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
4037 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
4039 1999-01-06 Tom Tromey <tromey@cygnus.com>
4041 * java/io/natFile.cc (get_entry): New function.
4042 (performList): Use get_entry.
4043 * include/config.h.in: Rebuilt.
4044 * acconfig.h (HAVE_READDIR_R): New define.
4045 * configure: Rebuilt.
4046 * configure.in: Look for readdir_r.
4048 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
4050 * java/util/natDate.cc: Added copyright header.
4052 1999-01-05 Tom Tromey <tromey@cygnus.com>
4054 * include/config.h.in: Rebuilt.
4055 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
4056 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
4057 * configure: Rebuilt.
4058 * configure.in: Check for access, stat, mkdir, rename, rmdir,
4059 unlink, and realpath.
4060 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
4061 (stat): Conditionalize on HAVE_STAT.
4063 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
4064 (performMkdir): Conditionalize on HAVE_MKDIR.
4065 (performRenameTo): Conditionalize on HAVE_RENAME.
4066 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
4068 * include/config.h.in: Rebuilt.
4069 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
4070 * configure: Rebuilt.
4071 * configure.in: Check for gmtime_r and localtime_r. For cross
4072 builds, assume they exist.
4074 * mauve-libjava: Include java.text.DateFormatSymbols again.
4075 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
4076 from setAmPmStrings.
4078 * mauve-libjava: Omit java.text.DateFormatSymbols.
4080 1999-01-04 Tom Tromey <tromey@cygnus.com>
4082 * java/io/PushbackReader.java: `off' already includes `numBytes'.
4084 * java/io/LineNumberReader.java (read): Decrement `count' in
4087 * java/io/BufferedWriter.java (write): Correctly determine when
4088 incoming data would overrun buffer. Flush buffer if write causes
4091 * java/io/BufferedOutputStream.java (write): Increment `count'
4092 after copying data into buffer.
4094 * java/io/FilterOutputStream.java (close): Call flush first.
4096 * java/io/PipedReader.java (read): If read causes `out' to catch
4097 up with `in', then set `in' to -1.
4099 * java/io/LineNumberInputStream.java (read): If no bytes read,
4100 return -1. If no bytes requested, return 0.
4102 * java/lang/StringBuffer.java (insert): If `str' is null, use
4105 1998-12-30 Anthony Green <green@cygnus.com>
4108 * LIBJAVA_LICENSE, COPYING.LIB: Created.
4110 1998-12-23 Tom Tromey <tromey@cygnus.com>
4112 * java/io/PushbackInputStream.java (read): `off' already includes
4115 1998-12-17 Tom Tromey <tromey@cygnus.com>
4117 * Makefile.in: Rebuilt.
4118 * Makefile.am (GCJ_canadian): Include target_alias.
4120 * java/lang/natFirstThread.cc (run): Require main's class to be
4123 1998-12-16 Tom Tromey <tromey@cygnus.com>
4125 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4127 * java/util/ResourceBundle.java (getBundle): Throw
4128 NullPointerException if locale argument is null.
4130 * java/lang/natClass.cc (forName): Throw NullPointerException if
4132 Include NullPointerException.h.
4134 1998-12-14 Tom Tromey <tromey@cygnus.com>
4136 * java/lang/Character.java (Character): Implement Comparable.
4137 (compareTo): New methods.
4139 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4140 correct country and language codes.
4141 (UK, US): New constants.
4142 (setDefault): Language codes are lower-case.
4144 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4145 (getDeclaredConstructors): Likewise.
4146 (getDeclaredField): Likewise.
4147 (getDeclaredFields): Likewise.
4148 (getDeclaredMethod): Likewise.
4149 (getDeclaredMethods): Likewise.
4150 (getField): Likewise.
4151 (getFields): Likewise.
4152 (getMethod): Likewise.
4153 (getMethods): Likewise.
4154 * java/lang/Class.java: Declare new methods.
4155 * java/lang/Class.h: Declare new methods.
4157 * java/lang/natString.cc: Removed `#pragma implementation'.
4158 * include/cni.h (_Jv_GetStringChars): New function.
4159 * Makefile.in: Rebuilt.
4160 * Makefile.am (java/lang/String.h): Don't generate definition for
4163 * java/lang/natString.cc: Added `#pragma implementation'.
4165 * Makefile.in: Rebuilt.
4166 * Makefile.am (libjava.zip): Put build directory first in class
4167 path to avoid bug in compiler.
4169 1998-12-14 Anthony Green <green@cygnus.com>
4171 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4173 * include/javaprims.h: Add EventObject, ListResourceBundle and
4176 1998-12-13 Anthony Green <green@cygnus.com>
4178 * mauve-libjava: Run the ResourceBundle tests.
4180 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4183 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4185 * configure.in, configure: Make --enable-gcj-classes and
4186 --enable-source-compilation the default. (Nervously...) Yeah!
4187 Based on a patch from Tom Tromey.
4189 1998-12-13 Tom Tromey <tromey@cygnus.com>
4191 * java/util/EventObject.java: New file.
4192 * java/util/EventListener.java: New file.
4194 * include/javaprims.h: Updated class declarations.
4195 * Makefile.in: Rebuilt.
4196 * Makefile.am (nat_headers): Added Constructor.h.
4197 (java/lang/String.h): Don't inline String::length().
4198 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4199 * java/lang/Class.java (initializeClass, hackRunInitializers,
4200 hackTrampoline): No need to mark `final'.
4201 (getConstructor, getConstructors): Declare.
4202 * java/lang/reflect/Field.java (equals): New method.
4203 * java/lang/natClass.cc (getConstructor): New method.
4204 (getConstructors): Likewise.
4205 Include Method.h, Field.h, Constructor.h.
4206 * java/lang/reflect/Constructor.java: New file.
4207 * java/lang/reflect/Method.java (toString): No space before open
4209 (equals): Simplified.
4211 1998-12-13 Anthony Green <green@cygnus.com>
4213 * java/util/ResourceBundle.java: New file.
4214 * java/util/ListResourceBundle.java: New file.
4216 1998-12-12 Tom Tromey <tromey@cygnus.com>
4218 * java/lang/System.java (in, out, err): Now buffered streams by
4221 * include/javaprims.h: Updated class declarations.
4222 * Makefile.in: Rebuilt.
4223 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4224 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4226 (nat_files): Added natMethod.o.
4227 * java/lang/reflect/natMethod.cc: New file.
4228 * java/lang/reflect/Field.java (Field): Now extends
4230 * java/lang/reflect/AccessibleObject.java: New file.
4231 * java/lang/reflect/InvocationTargetException.java: New file.
4233 1998-12-11 Tom Tromey <tromey@cygnus.com>
4235 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4236 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4237 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4239 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4241 1998-12-09 Tom Tromey <tromey@cygnus.com>
4243 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4246 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4247 character is already titlecase.
4249 * java/lang/Character.java (isJavaLetter): Follow spec.
4250 (isJavaLetterOrDigit): Likewise.
4252 * java/util/GregorianCalendar.java (gregorianCutover): Append
4255 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4257 1998-12-08 Tom Tromey <tromey@cygnus.com>
4259 * java/lang/reflect/Modifier.java (toString): Replace second
4260 `static' with `synchronized'.
4262 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4263 * java/lang/Object.h (Object::hack12_6): Declare.
4264 * java/lang/Object.java (hack12_6): New function.
4266 1998-12-07 Tom Tromey <tromey@cygnus.com>
4268 * include/java-array.h (__JArray::clone): Removed decl.
4269 * prims.cc (__JArray::clone): Removed.
4270 * java/lang/natObject.cc (clone): Incorporate code to clone an
4273 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4274 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4275 Correctly use dtable_method_count.
4277 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4279 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4282 1998-12-06 Anthony Green <green@cygnus.com>
4284 * mauve-libjava: Don't test ResourceBundle.
4286 1998-12-04 Tom Tromey <tromey@cygnus.com>
4288 More JDK 1.2 spec fixes:
4289 * java/util/Date.java (millis): Now private.
4290 * java/text/DateFormat.java (DateFormat): Constructor now
4292 * java/lang/Void.java (Void): New private constructor.
4293 * java/lang/System.java (System): New private constructor.
4294 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4296 (currentClassLoader): New method.
4297 (currentLoadedClass): New method.
4298 * java/lang/Math.java (Math): New private constructor.
4299 * java/lang/Compiler.java (Compiler): New private constructor.
4300 * java/lang/Class.java (Class): New private constructor.
4301 * java/lang/Double.java (toString): Removed access specifier from
4302 two-argument `toString' method.
4304 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4306 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4307 causes it to be flushed from an fp register (where it may be
4308 longer than double precision) to a double in memory. This is
4309 essential to ensure correct rounding behaviour.
4311 1998-12-04 Tom Tromey <tromey@cygnus.com>
4313 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4316 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4317 explaining apparent divergence from JDK 1.2.
4319 1998-12-04 Per Bothner <bothner@cygnus.com>
4321 * include/no-threads.h: Remove unused parameter names.
4322 This silences a bunch of warnings.
4324 1998-12-04 Tom Tromey <tromey@cygnus.com>
4326 * include/config.h.in: Rebuilt.
4327 * acconfig.h (HAVE_CTIME_R): New symbol.
4329 1998-12-03 Tom Tromey <tromey@cygnus.com>
4331 * mauve-libjava: Added many more categories to reject.
4333 Changes to follow JDK1.2 spec:
4334 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4335 setErr, setIn, setOut): No need to be `final'.
4336 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4337 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4338 * java/lang/Object.java (wait): `nanos' argument is an int.
4339 * java/lang/VirtualMachineError.java: Class is abstract.
4340 * java/lang/ThreadDeath.java: Made constructors public.
4341 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4344 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4346 * java/text/DateFormatSymbols.java (getAmPmStrings,
4347 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4349 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4351 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4352 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4353 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4356 * java/lang/IllegalThreadStateException.java
4357 (IllegalThreadStateException): Changed extending class to match spec.
4359 * java/lang/NumberFormatException.java
4360 (java/lang/NumberFormatException): Changed extending class to match
4363 * java/util/Observer.java (Observer): Changed sig to match JCL.
4365 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4367 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4368 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4369 signature to match JDK 1.1 and 1.2.
4371 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4373 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4374 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4375 * Makefile.in, configure: Rebuilt.
4377 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4380 1998-12-02 Tom Tromey <tromey@cygnus.com>
4382 * mauve-libjava: New file.
4384 The remaining `-W -Wall' fixes:
4385 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4387 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4389 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4391 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4393 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4395 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4397 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4399 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4401 * java/lang/mprec.c (Balloc): Removed unused variable.
4402 (mult): Added parentheses per gcc suggestion.
4403 (pow5mult): Likewise.
4408 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4409 suggestion. Added cast to `int' to avoid signed/unsigned
4411 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4413 (IsAssignableFrom): Likewise.
4414 (_Jv_JNI_GetObjectField): Likewise.
4415 (_Jv_JNI_GetByteField): Likewise.
4416 (_Jv_JNI_GetShortField): Likewise.
4417 (_Jv_JNI_GetIntField): Likewise.
4418 (_Jv_JNI_GetLongField): Likewise.
4419 (_Jv_JNI_GetStringLength): Likewise.
4420 (_Jv_JNI_ToReflectedField): Likewise.
4421 (_Jv_JNI_FromReflectedField): Likewise.
4422 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4424 * Makefile.in: Rebuilt.
4425 * Makefile.am (AM_CFLAGS): Define conditionally.
4426 (WARNINGS): New macro.
4427 (AM_CXXFLAGS): Include WARNINGS.
4428 * configure: Rebuilt.
4429 * configure.in (USING_GCC): New conditional.
4431 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4433 * java/lang/Character.java: Changed classification constants to
4434 type `byte' to match JDK 1.2 docs.
4436 1998-12-01 Tom Tromey <tromey@cygnus.com>
4438 Some fixes to be `-W -Wall' clean:
4439 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4440 (_Jv_MarkArray): Likewise.
4441 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4442 (to_upper_title): Likewise.
4443 (isTitleCase): Likewise.
4444 (toTitleCase): Likewise.
4445 (getNumericValue): Likewise.
4446 (isLowerCase): Likewise.
4447 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4448 (avoids compiler warning).
4449 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4451 (getDeclaringClass): Likewise.
4452 (_Jv_LookupInterfaceMethod): Likewise.
4453 (_Jv_NewClass): Removed name of unused parameter.
4454 * exception.cc (_Jv_type_matcher): Removed unused variable.
4455 (_Jv_setup_eh_info): Removed name of unused parameter.
4456 * prims.cc (_Jv_NewArray): Always return a value.
4457 (_Jv_FindClassFromSignature): Likewise.
4458 * include/java-field.h (getNameUtf8Const): Removed name of unused
4460 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4462 (_Jv_ThreadSetPriority): Likewise.
4464 * java/lang/natString.cc (hashChars): Now static.
4466 * java/lang/FirstThread.java (FirstThread): Now final.
4468 * java/io/File.java (performMkdir, performRenameTo): Now private.
4470 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4471 if no time function defined.
4473 * configure: Rebuilt.
4474 * configure.in: Look for ctime_r, ctime.
4475 * java/util/Date.java (toString): Now native.
4476 * java/util/natDate.cc (toString): Rewrote.
4478 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4480 * Add LDFLAGS line to allow TX39 test cases to link when cross
4483 1998-11-23 Anthony Green <green@cygnus.com>
4485 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4486 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4487 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4488 include/java-array.h, include/java-assert.h, include/java-field.h,
4489 include/javaprims.h, include/jni.h, include/jvm.h,
4490 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4491 include/quick-threads.h, java/io/BufferedInputStream.java,
4492 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4493 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4494 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4495 java/io/CharArrayWriter.java,
4496 java/io/CharConversionException.java, java/io/DataInput.java,
4497 java/io/DataInputStream.java, java/io/DataOutput.java,
4498 java/io/DataOutputStream.java, java/io/EOFException.java,
4499 java/io/File.java, java/io/FileDescriptor.java,
4500 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4501 java/io/FileOutputStream.java, java/io/FileReader.java,
4502 java/io/FileWriter.java, java/io/FilenameFilter.java,
4503 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4504 java/io/FilterReader.java, java/io/FilterWriter.java,
4505 java/io/IOException.java, java/io/InputStream.java,
4506 java/io/InputStreamReader.java,
4507 java/io/InterruptedIOException.java,
4508 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4509 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4510 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4511 java/io/PipedReader.java, java/io/PipedWriter.java,
4512 java/io/PrintStream.java, java/io/PrintWriter.java,
4513 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4514 java/io/RandomAccessFile.java, java/io/Reader.java,
4515 java/io/SequenceInputStream.java, java/io/Serializable.java,
4516 java/io/StreamTokenizer.java,
4517 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4518 java/io/StringWriter.java, java/io/SyncFailedException.java,
4519 java/io/UTFDataFormatException.java,
4520 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4521 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4522 java/io/natFileDescriptorPosix.cc,
4523 java/lang/AbstractMethodError.java,
4524 java/lang/ArithmeticException.java,
4525 java/lang/ArrayIndexOutOfBoundsException.java,
4526 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4527 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4528 java/lang/Class.java, java/lang/ClassCastException.java,
4529 java/lang/ClassCircularityError.java,
4530 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4531 java/lang/ClassNotFoundException.java,
4532 java/lang/CloneNotSupportedException.java,
4533 java/lang/Cloneable.java, java/lang/Comparable.java,
4534 java/lang/Compiler.java, java/lang/Double.java,
4535 java/lang/Error.java, java/lang/Exception.java,
4536 java/lang/ExceptionInInitializerError.java,
4537 java/lang/FirstThread.java, java/lang/Float.java,
4538 java/lang/IllegalAccessError.java,
4539 java/lang/IllegalAccessException.java,
4540 java/lang/IllegalArgumentException.java,
4541 java/lang/IllegalMonitorStateException.java,
4542 java/lang/IllegalStateException.java,
4543 java/lang/IllegalThreadStateException.java,
4544 java/lang/IncompatibleClassChangeError.java,
4545 java/lang/IndexOutOfBoundsException.java,
4546 java/lang/InstantiationError.java,
4547 java/lang/InstantiationException.java, java/lang/Integer.java,
4548 java/lang/InternalError.java, java/lang/InterruptedException.java,
4549 java/lang/LinkageError.java, java/lang/Long.java,
4550 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4551 java/lang/NoClassDefFoundError.java,
4552 java/lang/NoSuchFieldError.java,
4553 java/lang/NoSuchFieldException.java,
4554 java/lang/NoSuchMethodError.java,
4555 java/lang/NoSuchMethodException.java,
4556 java/lang/NullPointerException.java, java/lang/Number.java,
4557 java/lang/NumberFormatException.java, java/lang/Object.h,
4558 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4559 java/lang/Process.java, java/lang/Runnable.java,
4560 java/lang/Runtime.java, java/lang/RuntimeException.java,
4561 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4562 java/lang/Short.java, java/lang/StackOverflowError.java,
4563 java/lang/String.java, java/lang/StringBuffer.java,
4564 java/lang/StringIndexOutOfBoundsException.java,
4565 java/lang/System.java, java/lang/Thread.java,
4566 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4567 java/lang/Throwable.java, java/lang/UnknownError.java,
4568 java/lang/UnsatisfiedLinkError.java,
4569 java/lang/UnsupportedOperationException.java,
4570 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4571 java/lang/Void.java, java/lang/natCharacter.cc,
4572 java/lang/natClass.cc, java/lang/natDouble.cc,
4573 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4574 java/lang/natMath.cc, java/lang/natObject.cc,
4575 java/lang/natRuntime.cc, java/lang/natString.cc,
4576 java/lang/natSystem.cc, java/lang/natThread.cc,
4577 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4578 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4579 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4580 java/text/FieldPosition.java, java/text/Format.java,
4581 java/text/NumberFormat.java, java/text/ParseException.java,
4582 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4583 java/util/BitSet.java, java/util/Calendar.java,
4584 java/util/ConcurrentModificationException.java,
4585 java/util/Date.java, java/util/Dictionary.java,
4586 java/util/EmptyStackException.java, java/util/Enumeration.java,
4587 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4588 java/util/Locale.java, java/util/MissingResourceException.java,
4589 java/util/NoSuchElementException.java, java/util/Observable.java,
4590 java/util/Observer.java, java/util/Properties.java,
4591 java/util/Random.java, java/util/SimpleTimeZone.java,
4592 java/util/Stack.java, java/util/StringTokenizer.java,
4593 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4594 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4597 * exception.cc: Include eh-common.h instead of duplicating
4600 1998-11-23 Tom Tromey <tromey@cygnus.com>
4602 * configure.host: Don't add `-O2' to libjava_flags. Only add
4603 `-Os' to libjava_flags once.
4605 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4607 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4608 * Makefile.in: likewise
4609 * acconfig.h: add ECOS conditional for configure.h
4610 * config.h.in: likewise
4611 * configure: add test for --with-ecos
4612 * configure.in: likewise
4613 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4614 rename call to avoid name clash.
4615 * java/lang/natSystem.cc: add eCos clock support.
4616 * java/util/natGregorianCalendar.cc: add eCos support.
4618 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4620 * Makefile.am, Makefile.in, configure.host: tx39 build option
4623 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4625 * java/io/BufferedReader.java: Added more comments for clarity.
4626 (mark): Used more mnemonic name for local var extraBuffSpace.
4628 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4629 confusion with private method of same name in superclass.
4630 (skipRedundantLF): Set fields in special case to avoid infinite
4631 recursion. Check if markPos has been invalidated in special case.
4632 (readLine): Rewritten to use readLine method of superclass.
4633 (skip): Incorporated code from lineEnd.
4635 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4637 * java/io/BufferedReader.java (readLine): New method.
4638 (lineEnd): new private method.
4639 (mark): Track special case for readLine of getting '\r' at the
4646 * java/io/InputStreamReader.java (read): Return number chars skipped
4647 rather than requested.
4649 * java/lang/StringBuffer.java (append): Update count and differentiate
4650 between field and local variable.
4652 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4653 seconds. Deal with military style time.
4654 (parse): Consistently treat all timezones in minutes until final
4655 calculation. Flag as non-local timezone. Return value in milliseconds.
4656 (setTime): Adjust for year offset from 1900.
4657 (UTC): Adjust for year offset from 1900.
4659 1998-11-17 Tom Tromey <tromey@cygnus.com>
4661 * configure: Rebuilt.
4662 * configure.in: Switch on host, not target.
4664 * Makefile.in: Rebuilt.
4665 * Makefile.am (GCJ_no): New macro.
4666 (GCJ): Use @CANADIAN@.
4667 (GCJH_no): New macro
4668 (GCJH_canadian): New macro.
4669 (GCJH): Use @CANADIAN@.
4670 (ZIP_no): New macro.
4671 (ZIP_canadian): New macro.
4672 (ZIP): Use @CANADIAN@.
4673 * aclocal.m4, configure: Rebuilt.
4674 * configure.in (CANADIAN): Compute and subst.
4676 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4678 * java/io/FileDescriptor.java (finalize): Only close file
4679 descriptor if valid.
4681 1998-11-17 Tom Tromey <tromey@cygnus.com>
4683 * prims.cc (_Jv_InitRuntime): Removed.
4685 1998-11-16 Tom Tromey <tromey@cygnus.com>
4687 * java/io/FileOutputStream.java (close): Only close file
4688 descriptor if valid.
4689 (finalize): New method.
4691 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4692 (_Jv_NewPrimArray): Likewise.
4693 * boehm.cc (_Jv_RegisterFinalizer): Use
4694 GC_REGISTER_FINALIZER_NO_ORDER.
4695 (GC_GENERIC_MALLOC): New define.
4696 (_Jv_AllocObj): Use it.
4697 (_Jv_AllocArray): Likewise.
4698 (_Jv_AllocBytes): Likewise.
4699 (_Jv_MarkObj): Just return if vtbl not set.
4700 (_Jv_MarkArray): Likewise.
4701 (MAYBE_MARK): New macro; use everywhere.
4702 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4704 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4706 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4707 to a jlong before calculation to prevent overflow.
4709 1998-11-16 Tom Tromey <tromey@cygnus.com>
4711 * Makefile.in: Rebuilt.
4712 * Makefile.am (nat_headers): Fixed typo.
4714 1998-11-15 Tom Tromey <tromey@cygnus.com>
4716 * java/lang/Class.h (Class::getName): Removed definition.
4717 * Makefile.in: Rebuilt.
4718 * Makefile.am (nat_headers): Added InstantiationException.h,
4719 NoSuchMethodException.h.
4720 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4721 (init_name): New global.
4722 (hackRunInitializers): Use clinit_name.
4723 Include InstantiationException.h, NoSuchMethodException.h.
4724 (newInstance): Do some error checking (but not all). Call
4726 (forName): Throw exception if class not found.
4727 (getName): New method.
4728 (forName): Transform class name from external format to internal
4729 format before lookup.
4731 1998-11-15 Anthony Green <green@cygnus.com>
4733 * java/lang/Class.h (Class::forName): Method is static.
4735 * java/lang/natClass.cc (newInstance): Add simple implementation.
4738 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4740 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4741 int), for compatibility with jc1.
4743 1998-11-14 Tom Tromey <tromey@cygnus.com>
4745 * include/config.h.in: Rebuilt.
4746 * acconfig.h (LINUX_THREADS): New define.
4747 * configure: Rebuilt.
4748 * configure.in: Define LINUX_THREADS if using POSIX threads on
4749 Linux. Look for pthread_mutexattr_setkind_np function.
4750 * posix-threads.cc (throw_cleanup): New function.
4751 (really_start): Push cleanup function.
4752 (_Jv_ThreadCancel): New function.
4753 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4754 (_Jv_ThreadInitData): Set `exception' field in new structure.
4755 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4757 (_Jv_ThreadWait): New function.
4758 (_Jv_InitThreads): Initialize daemon globals.
4759 (FLAG_DAEMON): New macro.
4760 (really_start): Notify daemon_cond when non-daemon thread exits.
4761 Include <java/lang/System.h>.
4762 (struct starter): `object' field now a thread.
4763 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4764 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4765 (_Jv_ThreadWait): Removed definition.
4766 (_Jv_Thread_t): Added `exception' field.
4767 (_Jv_ThreadCancel): Removed definition.
4769 1998-11-13 Tom Tromey <tromey@cygnus.com>
4771 * Makefile.in: Rebuilt.
4772 * Makefile.am (libjava.zip): Compute javac before changing
4775 * Makefile.in: Rebuilt.
4776 * Makefile.am (libjava.zip): Include directory entries.
4778 * Makefile.in: Rebuilt.
4779 * Makefile.am (expanded): New macro.
4782 1998-11-12 Tom Tromey <tromey@cygnus.com>
4784 * prims.cc (clone): New function.
4785 * include/java-array.h (__JArray::clone): Removed definition.
4787 * java/lang/natObject.cc (clone): Don't assert that class is not
4788 an array; array's `clone' method just calls this one.
4790 * Makefile.in: Rebuilt.
4791 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4792 Now creates zip file. Changed all users.
4794 (data_DATA): New macro.
4796 1998-11-11 Tom Tromey <tromey@cygnus.com>
4798 * configure: Rebuilt.
4799 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4801 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4803 * java/io/InputStream.java (reset): Add msg to thrown exception.
4805 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4807 * java/io/LineNumberInputStream.java: Rewritten.
4809 * java/io/StringBufferInputStream.java: Removed extraneous import.
4811 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4813 * java/io/StringBufferInputStream.java: Rewritten.
4815 * java/util/Date.java (parseMonth): Optimize.
4816 (parseDayOfWeek): Created.
4817 (parse): Optimize to use parseDayOfWeek.
4819 1998-11-11 Tom Tromey <tromey@cygnus.com>
4821 * java/lang/StringBuffer.java (append): Handle case where STR is
4824 * include/javaprims.h: Regenerated class declarations.
4826 * configure: Rebuilt.
4827 * configure.in: Added --enable-gcj-classes,
4828 --enable-single-compilation, --enable-source-compilation flags.
4829 * Makefile.in: Rebuilt.
4830 * Makefile.am (java_io_files): New macro.
4831 (java_lang_files): Likewise.
4832 (java_text_files): Likewise.
4833 (java_util_files): Likewise.
4834 (java_files): Use new macros.
4835 (java-io.o): New target.
4836 (java-lang.o): Likewise.
4837 (java-text.o): Likewise.
4838 (java-util.o): Likewise.
4839 (src_io_files): New macro.
4840 (src_lang_files): Likewise.
4841 (src_text_files): Likewise.
4842 (src_util_files): Likewise.
4843 (class_io_files): New macro.
4844 (class_lang_files): Likewise.
4845 (class_text_files): Likewise.
4846 (class_util_files): Likewise.
4847 (class_files): Use new macros.
4848 (javao_files): Define conditionally.
4849 (.java.o): New target.
4850 ($(javao_files)): New target.
4852 (GCJH): Added $(EXEEXT).
4853 (CLASSPATH_ENV): Removed.
4854 (GCJCOMPILE): New macro.
4856 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4858 * java/util/Date.java (parse): Written from scratch.
4860 1998-11-11 Tom Tromey <tromey@cygnus.com>
4862 * java/lang/Throwable.java (toString): Correct sense of test for
4863 determining when to include detail message in result.
4865 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4868 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4870 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4872 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4873 (_Jv_RegisterClass): Use it.
4874 * include/jvm.h (_Jv_RegisterClasses): Declare.
4875 * java/lang/natObject.cc (init): Removed.
4876 (sync_init): Never call _Jv_InitializeSyncMutex.
4877 (_Jv_InitializeSyncMutex): Don't set `init'.
4878 * prims.cc (JvRunMain): Don't run init functions.
4880 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4882 * java/lang/natClass.cc (initializeClass): Set state before
4883 resolving constants.
4885 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4886 (STATE_RESOLVED): New macro.
4887 (initializeClass): Call resolveConstants.
4888 (hackRunInitializers): Don't call resolveConstants.
4889 (_Jv_FindArrayClass): Move short-circuit return for primitive
4890 element types earlier in function.
4892 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4894 * prims.cc (no_memory): New global.
4895 (_Jv_makeUtf8Const): Throw no_memory.
4896 (_Jv_AllocObject): Likewise.
4897 (_Jv_NewObjectArray): Likewise.
4898 (_Jv_NewPrimArray): Likewise.
4899 (JvRunMain): Initialize no_memory.
4901 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4903 * java/io/FileInputStream.java: Corrected date comment.
4904 * java/io/SequenceInputStream.java: Rewritten.
4906 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4908 * java/lang/FirstThread.java (die): New method.
4909 * java/lang/natFirstThread.cc (die): Removed.
4911 (run): Use `DIE', not `die'.
4913 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4915 * java/io/CharArrayReader.java (read): Move check into synchronized
4916 block to prevent a close while in progress.
4919 * java/io/PushbackReader.java (read): Ditto.
4922 * java/io/StringReader.java (mark): Ditto.
4927 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4929 * java/io/PipedInputStream.java: Updated status.
4930 (connect): Added code to prevent infinite recursion and to
4931 differentiate exception causes.
4932 (read): Added code to differentiate exception causes.
4933 (receive): Made exception pass string with the cause.
4935 * java/io/PipedOutputStream.java: Updated status.
4936 (connect): Added code to call connect at the other end of the pipe.
4938 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4940 * java/io/PipedInputStream.java (connect): Throw exception if
4941 already connected to the same output stream.
4942 (read): Do bounds checking first.
4944 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4946 * java/io/PipedInputStream.java: Added private boolean outClosed.
4947 (available): Removed check if output stream is open.
4948 (close): Mark the buffer as empty so available returns 0.
4949 (read): Check if the output stream was closed and then return EOF
4950 when the buffer is empty.
4951 (receive): Mark the output stream as closed when passed a -1.
4953 * java/io/PipedOutputStream.java (close): Notify the input stream
4954 that there's no more data coming.
4955 (connect): Added a FIXME comment to note more coordination needed
4956 with PipedInputStream.
4957 (flush): Added a FIXME comment to mark what this method might do
4960 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4962 * java/io/PipedInputStream.java: Rewritten.
4964 1998-10-30 Tom Tromey <tromey@cygnus.com>
4966 * java/lang/Throwable.java: Rewrote from scratch.
4968 * java/lang/Class.h (Class): Don't mention newMultiArray.
4969 * prims.cc (newMultiArray): Removed.
4970 (_Jv_NewMultiArray): Removed.
4971 (newArray): Removed.
4972 (new_multi_array): New function.
4973 (_Jv_NewMultiArray): Rewrote from scratch.
4975 * include/javaprims.h: Regenerated class declarations.
4976 * classes.pl (scan): Don't declare PrimClass.
4977 * include/cni.h (JvPrimClass): Use new names for classes.
4978 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4979 added _Jv_PrimClass.
4980 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4981 (_Jv_initPrimClass): Removed.
4982 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4983 (_Jv_AllocObject): Added comment.
4984 (_Jv_NewObjectArray): Likewise.
4985 (_Jv_NewPrimArray): Likewise.
4987 1998-10-29 Tom Tromey <tromey@cygnus.com>
4989 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4990 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4992 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4994 * java/lang/natObject.cc (init): New global.
4995 (sync_init): Call _Jv_InitializeSyncMutex if required.
4997 * Makefile.in: Rebuilt.
4998 * Makefile.am (nat_headers): Added ClassLoader.h.
4999 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
5000 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
5001 internalAddClass, lookupArray no longer friends.
5002 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
5003 _Jv_FindArrayClass now friends.
5004 * java/lang/natClass.cc (HASH_LEN): New macro.
5005 (HASH_UTF): Likewise.
5006 (loaded_classes): New global.
5007 (_Jv_FindClass): New function.
5008 (ClassClass): New define.
5009 (_Jv_FindClassInCache): New function.
5010 (_Jv_RegisterClass): Likewise.
5011 (_Jv_NewClass): Likewise.
5013 (ObjectClass): New define.
5014 (CloneableClass): New define.
5015 * prims.cc (_Jv_FindClass): Removed.
5016 (simpleLookupClass): Removed.
5017 (insertClass): Removed.
5018 (CLASSHASHSZ): Removed.
5019 (classPool): Removed.
5020 (_Jv_RegisterClass): Removed.
5021 (internalAddClass): Removed.
5022 (ClassClass): Removed.
5023 (RuntimeClass): Removed.
5024 (lookupArray): Removed.
5025 (CloneableClass): Removed.
5026 (CLASSMAXSIG): Removed.
5027 Rearranged file to group related functions together.
5028 (_Jv_IsInstanceOf): Moved to natClass.cc.
5029 (abort_final): Removed.
5030 Removed some unused includes.
5031 (classFromSig): Removed.
5032 (_Jv_FindClassFromSignature): New function.
5033 (_Jv_initPrimClass): Renamed.
5034 (getClass): Removed.
5036 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
5038 * java/io/FileDescriptor.java (finalize): Throws IOException
5039 instead of Throwable.
5041 * java/io/FileInputStream.java: Rewritten.
5043 * java/io/StreamTokenizer.java (nextToken): Unread newline character
5044 at the end of a comment.
5046 1998-10-29 Tom Tromey <tromey@cygnus.com>
5048 * include/javaprims.h: Regenerated class declarations.
5049 * classes.pl (scan): Don't special-case ClassLoader.
5051 * prims.cc (processClass): Removed.
5052 (_Jv_InitClass): Removed.
5053 Removed all CSTATE_ macros.
5054 (resolveConstants): Removed.
5056 (_Jv_NewMultiArray): Cleaned up.
5057 * Makefile.in: Rebuilt.
5058 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
5059 * java/lang/Class.h (Class): Declare new methods. processClass no
5061 * java/lang/Class.java (hackTrampoline): New method.
5062 (initializeClass): Declare.
5063 (hackRunInitializers): Declare.
5064 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
5065 (initializeClass): New method.
5066 (hackRunInitializers): New method.
5067 (init_name, void_signature): Moved from prims.cc.
5068 (_Jv_InitClass): New function.
5069 (isAssignableFrom): Don't call processClass.
5070 (STATE_NOTHING): New macro.
5071 (resolveConstants): New function.
5073 (ErrorClass): New define.
5075 * java/lang/Class.java (getClassLoader): Declare.
5076 * java/lang/ClassLoader.java: Rewrote from scratch.
5078 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
5079 AbstractMethodError.h, IllegalAccessError.h,
5080 NoClassDefFoundError.h.
5081 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
5082 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
5083 longer static. Changed return type.
5084 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
5085 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
5086 * prims.cc (findMethodLocal): Removed.
5087 (processClass): Use _Jv_GetMethodLocal.
5089 1998-10-28 Tom Tromey <tromey@cygnus.com>
5091 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
5092 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
5094 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
5095 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
5097 * include/jni.h: Added copyright header.
5098 * include/javaprims.h: Added copyright header.
5099 * include/java-field.h: Added copyright header.
5100 * include/java-array.h: Added copyright header.
5101 * include/cni.h: Added copyright header.
5103 * include/javaprims.h: Regenerated class declarations using
5104 classes.pl; now they are complete.
5105 * classes.pl: New file.
5107 * java/lang/natMath.cc: Include <config.h>.
5108 * java/lang/reflect/natField.cc: Include <config.h>.
5109 * java/util/NativeUtil.java: Removed.
5110 * Makefile.in: Rebuilt.
5111 * Makefile.am (nat_headers): Added Math.h.
5112 * java/lang/Math.h: Removed.
5113 * java/util/natGregorianCalendar.cc: Added copyright header.
5115 * java/lang/natFloat.cc: Added copyright header.
5116 * java/lang/Byte.java: Added copyright header.
5117 * java/lang/Void.java: Added copyright header.
5118 * java/lang/Short.java: Added copyright header.
5120 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5122 * include/javaprims.h (java::io): Added bunch of missing classes.
5124 * java/io/DataInputStream.java (readLine): Added a special case
5125 for handling BufferedInputStream data to reduce the likelihood
5126 of a pushback error.
5127 (skipBytes): Added code to handle negative number of skip bytes.
5129 * java/io/StreamTokenizer.java: Rewritten.
5131 1998-10-28 Tom Tromey <tromey@cygnus.com>
5133 * java/util/natGregorianCalendar.cc (computeFields): Call
5134 getRawOffset as a method.
5136 * include/javaprims.h (java::io): Added FilterOutputStream.
5137 * Makefile.in: Rebuilt.
5138 * Makefile.am (nat_headers): Added PrintStream.h,
5139 FilterOutputStream.h.
5140 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5142 (die): New function.
5143 (run): Die if `main' not found, is not public, or is not static.
5145 * boehm.cc (_Jv_MarkObj): Use new field names.
5146 * include/java-field.h (JvGetFirstInstanceField): Use new field
5148 (JvNumInstanceFields): Likewise.
5149 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5150 (getInterfaces): Likewise.
5151 * prims.cc (CLASS_CONSTANTS): Removed.
5152 (CLASS_CONST_SIZE): Likewise.
5153 (CLASS_CONST_TAG): Likewise.
5154 (CLASS_CONST_DATA): Likewise.
5155 (CLASS_CONST_UTF8): Likewise.
5156 (WORD2UTF): Likewise.
5157 (CLASS_CLASS): Likewise.
5158 (CLASS_PRIM_SIG): Likewise.
5159 (CLASS_ARRAY_CACHE): Likewise.
5160 (HASH_CHARS): Likewise.
5161 (hashClassName): Likewise.
5162 Many changes to use new field names.
5163 * java/lang/Class.h (Class): Renamed fields to track compiler.
5165 1998-10-27 Tom Tromey <tromey@cygnus.com>
5167 * java/lang/natClass.cc: Use #pragma implementation.
5168 (getComponentType): Moved into header.
5169 (getModifiers): Likewise.
5170 (getName): Likewise.
5171 (getSuperclass): Likewise.
5172 (isArray): Likewise.
5173 (isPrimitive): Likewise.
5174 * include/jvm.h (_Jv_FindClass): Declare.
5175 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5176 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5177 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5178 * java/lang/Class.h: Rewrote from scratch.
5179 * prims.cc: Many changes to work with new Class.h.
5180 * include/java-field.h (CLASS_FIELDS): Removed.
5181 (CLASS_SFIELDS): Likewise.
5182 (CLASS_IFIELDS): Likewise.
5183 (CLASS_NFIELDS): Likewise.
5184 (CLASS_NIFIELDS): Likewise.
5185 (CLASS_NSFIELDS): Likewise.
5186 (CLASS_FSIZE): Likewise.
5187 (JvGetFirstInstanceField): Rewrote.
5188 (JvNumInstanceFields): Likewise.
5190 * java/lang/Object.h: Added copyright comment.
5192 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5194 * java/text: New package directory.
5195 * java/text/FieldPosition.java: New class.
5196 * java/text/ParsePosition.java: New class.
5197 * java/text/ParseException.java: New Exception class.
5198 * java/text/Format.java: New class.
5199 * java/text/NumberFormat.java: New (empty placeholder) class.
5200 * java/text/DateFormatSymbols.java: New class (no Locales support).
5201 * java/text/DateFormat.java: New Format class (incomplete).
5202 * java/text/SimpleDateFormat.java: New DateFormat class.
5204 * include/javaprims.h (java::test): Added new package and classes.
5205 * java/util/Calendar.java (clone): New method.
5206 * java/util/Date.java (toString): Added non-native implementation.
5207 (parse): Made public instead of synchronized.
5208 * java/util/natDate.cc (toString): Removed.
5209 * java/util/natGregorianCalendar.cc (computeFields):
5210 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5212 1998-10-27 Tom Tromey <tromey@cygnus.com>
5214 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5216 * prims.cc (lookupArray): Added explanatory comment.
5217 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5218 class. Mark the class of each object.
5219 (_Jv_MarkArray): Mark the object's class.
5221 * configure: Rebuilt.
5222 * configure.in: Create java-gc.h.
5223 * include/boehm-gc.h: New file.
5224 * include/no-gc.h: New file.
5225 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5227 * java/lang/Object.h: Include java-gc.h.
5228 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5229 friends, if defined.
5230 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5232 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5234 1998-10-26 Tom Tromey <tromey@cygnus.com>
5236 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5237 paragraph separators, not numbers.
5239 * java/io/Writer.java (write): Removed write(char) to avoid
5241 * java/util/Properties.java: Rewrote from scratch.
5242 * include/javaprims.h (java::io): Added PrintWriter,
5243 BufferedWriter, PushbackReader.
5245 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5247 * java/lang/System.java: exit() is a static method.
5249 1998-10-26 Tom Tromey <tromey@cygnus.com>
5251 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5253 (_Jv_NewStringUtf8Const): Likewise.
5254 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5255 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5257 * java/lang/Object.h (Object): Add mark_array as friend function.
5258 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5259 _Jv_AllocBytes, to ensure that header is marked.
5260 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5262 (mark_array): Push sync_info field for array.
5264 1998-10-24 Tom Tromey <tromey@cygnus.com>
5266 * java/lang/String.java (String): Updated for StringBuffer
5268 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5270 * java/lang/StringBuffer.java: Renamed fields to conform to
5271 serialization spec: buffer->value, next->count, copy->shared.
5273 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5275 * java/util/TimeZone.java: New class.
5276 * java/util/SimpleTimeZone.java: New class.
5277 * java/util/Locale.java: New file.
5278 * java/util/Calendar.java: Make almost complete.
5279 * java/util/GregorianCalendar.java
5280 * java/util/natGregorianCalendar.cc: New file.
5281 * java/util/Date.java: Re-written from scratch.
5282 * java/util/natDate.cc (setTime): Removed - no longer native.
5283 * include/javaprims.h (java::util): Add new classes.
5284 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5285 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5287 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5289 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5290 returning it as a jint.
5292 1998-10-23 Tom Tromey <tromey@cygnus.com>
5294 * prims.cc (arg_vec, main_group, main_thread): New globals.
5295 (JvRunMain): Use them.
5297 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5299 * java/io/DataInputStream.java: Rewritten.
5301 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5302 tertiary bytes with 0x80 per spec.
5304 1998-10-23 Tom Tromey <tromey@cygnus.com>
5306 * java/lang/String.java (init): Changed name of `copy' argument.
5307 * java/lang/natString.cc (init): Inverted sense of `copy'
5310 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5311 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5312 * boehm.cc (ObjectClass): New define.
5313 (ClassClass): Likewise.
5314 (mark_obj): Special-case Object and Class.
5316 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5318 * java/util/BitSet.java: Rewrote from scratch.
5320 * prims.cc (lookupArray): Removed useless cast.
5322 * java/lang/natObject.cc: Use `#pragma implementation'.
5324 * java/lang/String.java (init): Added `copy' argument.
5325 (String): Look in StringBuffer to find char array.
5326 * java/lang/natString.cc (init): Added `copy' argument.
5327 * java/lang/StringBuffer.java: Rewrote from scratch.
5329 * java/lang/Compiler.java: Rewrote from scratch.
5330 * java/lang/Throwable.java: Don't use NativeLang.
5331 * include/javaprims.h (java::lang): Don't mention NativeLang.
5332 * java/lang/Process.java: Rewrote from scratch.
5333 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5335 (currentClassLoader): Likewise.
5336 (currentLoadedClass): Likewise.
5337 * java/lang/natClass.cc (getClassLoader): Commented out.
5338 * java/lang/Class.java (getClassLoader): Commented out.
5339 * java/lang/Compiler.java: Removed.
5340 * java/lang/NativeLang.java: Removed.
5342 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5343 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5344 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5345 (_Jv_hashUtf8String): Now static.
5346 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5347 name of return type.
5349 * java/lang/Class.h (Class): Declare checkMemberAccess.
5350 * Makefile.in: Rebuilt.
5351 * Makefile.am (nat_headers): Added Member.h.
5352 * java/lang/natClass.cc: Include Member.h.
5353 (getDeclaredClasses): Call checkMemberAccess.
5354 * java/lang/Class.java (checkMemberAccess): Call
5355 SecurityManager.checkMemberAccess.
5357 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5359 * java/lang/SecurityManager.java: Rewritten.
5361 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5363 * java/applet/Applet.java, java/applet/AppletContext.java,
5364 java/applet/AppletStub.java, java/applet/AudioClip.java,
5365 java/awt/AWTError.java, java/awt/AWTException.java,
5366 java/awt/BorderLayout.java, java/awt/Button.java,
5367 java/awt/Canvas.java, java/awt/CardLayout.java,
5368 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5369 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5370 java/awt/Color.java, java/awt/Component.java,
5371 java/awt/Container.java, java/awt/Dialog.java,
5372 java/awt/Dimension.java, java/awt/Event.java,
5373 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5374 java/awt/Font.java, java/awt/FontMetrics.java,
5375 java/awt/Frame.java, java/awt/Graphics.java,
5376 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5377 java/awt/GridLayout.java, java/awt/Image.java,
5378 java/awt/Insets.java, java/awt/Label.java,
5379 java/awt/LayoutManager.java, java/awt/List.java,
5380 java/awt/MediaTracker.java, java/awt/Menu.java,
5381 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5382 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5383 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5384 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5385 java/awt/TextArea.java, java/awt/TextComponent.java,
5386 java/awt/TextField.java, java/awt/Toolkit.java,
5387 java/awt/Window.java, java/awt/image/ColorModel.java,
5388 java/awt/image/CropImageFilter.java,
5389 java/awt/image/DirectColorModel.java,
5390 java/awt/image/FilteredImageSource.java,
5391 java/awt/image/ImageConsumer.java,
5392 java/awt/image/ImageFilter.java,
5393 java/awt/image/ImageObserver.java,
5394 java/awt/image/ImageProducer.java,
5395 java/awt/image/IndexColorModel.java,
5396 java/awt/image/MemoryImageSource.java,
5397 java/awt/image/PixelGrabber.java,
5398 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5399 java/awt/peer/CanvasPeer.java,
5400 java/awt/peer/CheckboxMenuItemPeer.java,
5401 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5402 java/awt/peer/ComponentPeer.java,
5403 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5404 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5405 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5406 java/awt/peer/MenuBarPeer.java,
5407 java/awt/peer/MenuComponentPeer.java,
5408 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5409 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5410 java/awt/peer/TextAreaPeer.java,
5411 java/awt/peer/TextComponentPeer.java,
5412 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5413 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5414 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5415 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5416 java/net/MalformedURLException.java, java/net/NativeNet.java,
5417 java/net/ProtocolException.java, java/net/ServerSocket.java,
5418 java/net/Socket.java, java/net/SocketException.java,
5419 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5420 java/net/URL.java, java/net/URLConnection.java,
5421 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5422 java/net/URLStreamHandlerFactory.java,
5423 java/net/UnknownHostException.java,
5424 java/net/UnknownServiceException.java: Removed.
5426 1998-10-22 Tom Tromey <tromey@cygnus.com>
5428 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5429 finalizer is not Object.finalize.
5430 (internalAddClass): Don't set `final' member of class.
5431 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5432 other places that know about finalize() location.
5433 * java/lang/Class.h (Class): Removed `final' field.
5435 * aclocal.m4, configure: Rebuilt.
5436 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5437 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5439 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5440 * Makefile.in: Rebuilt.
5441 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5443 1998-10-21 Tom Tromey <tromey@cygnus.com>
5445 * java/lang/Object.java (finalize): Move to be first method in
5448 * configure: Rebuilt.
5449 * configure.in (GCINCS): Include contents of boehm-cflags file.
5451 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5453 * java/lang/ArrayIndexOutOfBoundsException.java
5454 (ArrayIndexOutOfBoundsException): Fixed string literal.
5455 * java/lang/StringIndexOutOfBoundsException.java
5456 (StringIndexOutOfBoundsException): Fixed string literal.
5458 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5460 * natFileDescriptorEcos.cc added.
5461 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5463 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5465 * acconfig.h: test for __int32_t and __uint32_t added.
5466 * include/config.h.in: test for __int32_t and __uint32_t added.
5467 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5468 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5469 * configure.in: test for __int32_t and __uint32_t added.
5470 * configure: test for __int32_t and __uint32_t added.
5472 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5474 * configure.in: Test for --enable ecos and link
5475 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5476 natFileDescriptorPosix.cc
5478 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5480 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5482 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5485 * java/io/CharArrayReader.java (close): Synchronize on lock
5486 object per Reader contract.
5487 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5488 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5489 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5490 Ensure that arg passed in isn't negative.
5492 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5493 constructing the superclass.
5495 * java/io/PushbackReader.java (close): Synchronize on lock
5496 object per Reader contract.
5497 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5498 (ready): Synchronize on lock obj. Throw IOException if reader
5500 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5501 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5502 Ensure that arg passed in isn't negative.
5503 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5505 * java/io/StringReader.java: Created.
5507 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5509 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5511 (read): Removed synchronized modifier to match JCL.
5512 (reset): Removed synchronized modifier to match JCL.
5513 (skip): Removed synchronized modifier to match JCL.
5515 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5517 * java/io/PushbackReader.java (PushbackReader): Made
5518 constructors public.
5520 1998-10-17 Tom Tromey <tromey@cygnus.com>
5522 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5523 constructors public.
5525 1998-10-16 Anthony Green <green@cygnus.com>
5527 * aclocal.m4, configure: Rebuilt.
5528 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5530 * configure.host: Rewrote.
5531 * Makefile.in: Rebuilt.
5532 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5533 (AM_CFLAGS): New macro.
5534 ($(c_files)): Use COMPILE macro.
5535 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5536 automake problem(s).
5538 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5540 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5542 * java/io/CharArrayReader.java: Created.
5544 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5546 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5547 size check to allow 0 per JCL.
5549 * java/io/PushbackReader.java: Created.
5551 1998-10-16 Tom Tromey <tromey@cygnus.com>
5553 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5554 <sys/time.h> includes.
5555 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5556 * include/no-threads.h: Conditionalize <unistd.h> include on
5559 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5561 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5564 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5566 * java/io/FilterReader.java: Created.
5568 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5570 * java/io/PushbackInputStream.java: Rewritten.
5572 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5573 that size passed to constructor is legal.
5574 (read): Check that args passed in are legal.
5575 (skip): Rewritten to get rid of the temporary buffer.
5576 (refill): Added marklimit check to grow the buffer.
5578 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5580 (bytesAvail): Removed.
5581 (read): Changed bytesAvail to Math.min.
5582 (skip): Changed bytesAvail to Math.min.
5584 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5585 from the throws clause.
5586 (skip): Rewritten to use a temporary buffer.
5588 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5590 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5593 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5595 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5596 to write the double one word at a time.
5598 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5600 * java/io/BufferedInputStream.java: Rewritten.
5602 1998-10-12 Tom Tromey <tromey@cygnus.com>
5604 * jni.cc: Include config.h and stddef.h.
5606 * java/lang/Class.h (_dispatchTable): Removed again.
5607 Removed all ACC_* defines again.
5609 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5611 * Makefile.am (nat_files): Add netField.o.
5612 (libjava_a_SOURCES): Add jni.cc.
5613 (java/lang/reflect/Field.h): New rule.
5614 * Makefile.in: Re-generated.
5615 * include/javaprims.h: Add some extra class and typedefs.
5616 * include/jni.h: New file.
5619 * include/java-field.h: New file.
5620 * include/jvm.h: #include <java-field.h>.
5621 * boehm.cc: #include <java-field.h>.
5622 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5623 * java/lang/reflect/Member.java: New class.
5624 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5625 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5627 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5629 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5630 testsuite/Makefile.in: Rebuilt.
5631 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5632 * configure.host: Created.
5634 1998-10-10 Tom Tromey <tromey@cygnus.com>
5636 * java/lang/natObject.cc (sync_init): Always allocate a new
5639 1998-10-09 Tom Tromey <tromey@cygnus.com>
5641 * java/io/ByteArrayInputStream.java (mark): Renamed from
5644 * java/io/FileOutputStream.java (finalize): Removed.
5645 * java/io/FileDescriptor.java (finalize): New method.
5647 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5649 * ByteArrayInputStream.java: Corrected status comment.
5651 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5653 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5655 1998-10-08 Tom Tromey <tromey@cygnus.com>
5657 * prims.cc (lookupArray): Use static array to initialize list of
5660 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5662 * prims.cc (lookupArray): Initialize the msize for new
5665 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5667 * configure: Rebuilt.
5668 * configure.in: Check for fsync and sleep.
5669 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5671 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5672 HAVE_SLEEP. Include config.h.
5674 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5675 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5678 1998-10-08 Tom Tromey <tromey@cygnus.com>
5680 * java/io/natFile.cc: Don't include SecurityManager.h.
5681 (performList): Renamed.
5682 (performMkdir): Likewise.
5683 (performRenameTo): Likewise.
5684 (performDelete): Likewise.
5686 * java/io/File.java (performDelete): Renamed from natDelete.
5687 (list): Now written in Java.
5688 (performList): New method.
5689 (performMkdir): New method.
5690 (mkdir): Now written in Java.
5691 (performRenameTo): New method.
5692 (renameTo): Now written in Java.
5694 1998-10-06 Tom Tromey <tromey@cygnus.com>
5696 * Makefile.in: Rebuilt.
5697 * Makefile.am (ETAGS_ARGS): New macro.
5698 (TAGS_DEPENDENCIES): Likewise.
5700 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5702 * Makefile.in: Rebuilt.
5703 * Makefile.am: Use -classpath option with javac.
5705 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5707 * java/io/FileOutputStream.java (finalize): Call
5710 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5712 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5714 * java/lang/mprec.c: Ditto.
5716 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5719 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5721 * java/io/InputStream.java (skip): Make local var i a long.
5723 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5725 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5726 * prims.cc (lookupArray): Use memcpy, not memmove.
5727 * include/config.h.in: Rebuilt.
5728 * acconfig.h (HAVE_MEMCPY): Added.
5729 * configure: Rebuilt.
5730 * configure.in: Check for memcpy again.
5732 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5733 String.compareTo, not ==.
5735 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5736 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5737 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5738 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5739 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5740 into new array's dtable.
5741 (_Jv_AllocObject): Use _Jv_DispatchTable.
5742 (_Jv_NewPrimArray): Likewise.
5743 (_Jv_NewObjectArray): Likewise.
5745 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5747 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5748 offending index value.
5749 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5751 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5752 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5754 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5756 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5758 * java/io/OutputStream.java (write): Use off and len parameters to
5759 output partial byte array.
5761 * java/io/BufferedReader.java, java/io/FileReader.java,
5762 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5763 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5764 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5765 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5767 * include/javaprims.h (java::lang): Added
5768 ExceptionInInitializerError, IllegalStateException,
5769 NoSuchFieldException, and UnsupportedOperationException.
5771 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5773 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5776 * include/java-array.h (__JArray): Added clone method.
5777 * prims.cc (CloneableClass): New define.
5778 (lookupArray): Initialize array class to indicate that it
5779 implements Cloneable.
5781 * java/lang/Class.h: Removed all ACC_* defines.
5782 * prims.cc: Include Modifier.h.
5783 (_Jv_LookupInterfaceMethod): Use methods in
5784 java.lang.reflect.Modifier, not ACC_ defines.
5786 * java/lang/Class.h (Class): Declare getClasses,
5787 getDeclaredClasses, getDeclaringClass, getModifiers,
5788 * java/lang/Class.java: Rewrote from scratch.
5790 * include/javaprims.h (java::lang): Added reflect and
5792 * Makefile.in: Rebuilt.
5793 * Makefile.am (nat_headers): Added Modifier.h.
5795 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5798 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5800 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5801 instead of test and abort.
5803 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5804 remove compiler warning.
5806 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5808 * java/lang/natDouble.cc: zero terminate string.
5809 * strtod.c: Set errno if no digits are found in fraction.
5811 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5813 * java/lang/reflect/Modifier.java: New file.
5815 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5816 * java/lang/VerifyError.java: Rewrote from scratch.
5817 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5818 * java/lang/UnknownError.java: Rewrote from scratch.
5819 * java/lang/StackOverflowError.java: Rewrote from scratch.
5820 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5821 * java/lang/InternalError.java: Rewrote from scratch.
5822 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5823 * java/lang/ExceptionInInitializerError.java: New file.
5824 * java/lang/Error.java: Rewrote from scratch.
5825 * java/lang/ClassFormatError.java: Rewrote from scratch.
5826 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5827 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5828 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5829 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5830 * java/lang/LinkageError.java: Rewrote from scratch.
5831 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5833 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5835 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5836 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5838 * include/cni.h (JvAllocObject): Moved from prims.cc.
5840 * prims.cc (JvAllocObject): Moved to cni.h.
5841 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5842 (finalize_name): Removed.
5844 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5846 * java/lang/Class.h (Class): Added size() method.
5847 * prims.cc (_Jv_MonitorEnter): Removed.
5848 (_Jv_MonitorExit): Removed.
5849 * java/lang/Object.h (JvSyncInfo): Removed.
5850 * Makefile.in: Rebuilt.
5851 * Makefile.am (nat_headers): Added Cloneable.h,
5852 CloneNotSupportedException.h.
5853 * java/lang/Object.h: Rewrote.
5854 * java/lang/natObject.cc: Rewrote from scratch.
5855 * java/lang/Object.java: Rewrote from scratch.
5857 * java/io/natFile.cc: Conditionally include <dirent.h>.
5858 (list): If no <dirent.h>, always return NULL.
5859 * configure: Rebuilt.
5860 * configure.in: Check for dirent.h.
5862 * prims.cc (lookupArray): Don't use sprintf.
5864 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5871 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5872 name conflict with method.
5874 * include/javaprims.h (java::util): Added HashtableEntry.
5876 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5878 * java/util/Hashtable.java: Rewritten.
5880 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5882 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5886 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5889 * posix-threads.cc (_Jv_CondWait): Now returns int.
5890 * include/javaprims.h (java::lang): Added
5891 IllegalMonitorStateException.
5892 * Makefile.in: Rebuilt.
5893 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5894 * include/no-threads.h (_Jv_CondDestroy): Removed.
5895 (_Jv_MutexDestroy): Removed.
5896 (_Jv_CondWait): Now returns int.
5897 (_Jv_CondNotify): Likewise. Added mutex argument.
5898 (_Jv_CondNotifyAll): Likewise.
5899 (_Jv_MutexLock): Always succeed.
5900 (_Jv_MutexUnlock): Likewise.
5901 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5902 (_Jv_HaveMutexDestroy): Define.
5903 (_Jv_CondNotify): Now returns int. Added mutex argument.
5904 (_Jv_CondNotifyAll): Likewise.
5905 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5906 (_Jv_MutexDestroy): Removed.
5907 (_Jv_CondWait): Now returns int.
5908 (_Jv_CondNotify): Likewise. Added mutex argument.
5909 (_Jv_CondNotifyAll): Likewise.
5910 * java/lang/natObject.cc (finalize_sync_info): New function.
5911 (init_mutex): Initialize `init' and register finalizer if
5914 (init_mutex): Use it.
5916 (notifyAll): Use it.
5918 (notify): Throw IllegalMonitorStateException on failure.
5919 (notifyAll): Likewise.
5920 (wait): Likewise. Also, throw InterruptedException if
5922 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5923 InterruptedException.h, IllegalArgumentException.h.
5924 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5926 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5927 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5928 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5929 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5930 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5931 * quick-threads.cc: Renamed all `JvPriv' functions.
5932 * prims.cc: Renamed all `JvPriv' functions.
5933 * posix-threads.cc: Renamed all `JvPriv' functions.
5934 * nogc.cc: Renamed all `JvPriv' functions.
5935 * no-threads.cc: Renamed all `JvPriv' functions.
5936 * boehm.cc: Renamed all `JvPriv' functions.
5937 * include/quick-threads.h: Renamed all `JvPriv' functions.
5938 * include/posix-threads.h: Renamed all `JvPriv' functions.
5939 * include/no-threads.h: Renamed all `JvPriv' functions.
5940 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5942 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5944 (JvPrivCondNotify): Do nothing.
5945 (JvPrivCondNotifyAll): Do nothing.
5947 * prims.cc (processClass): Handle case where state is
5950 * java/lang/natFirstThread.cc: Include <stdlib.h>
5952 * configure: Rebuilt.
5953 * configure.in: Fixed sense of --enable-libjava-debug.
5955 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5956 it can be used afterward by the assertion.
5958 * configure: Rebuilt.
5959 * configure.in: When cross-compiling, assume alloca.
5961 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5962 __builtin_alloca (autoconf docs are wrong here).
5964 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5966 (available): Use `FD_ZERO' (typo fix).
5968 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5970 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5971 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5973 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5974 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5977 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5979 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5981 * java/lang/natDouble.cc: Declare alloca safely.
5983 * configure, include/config.h.in: Rebuilt.
5984 * configure.in: Add alloca check.
5986 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5988 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5989 condition while calling notify.
5990 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5991 (interrupt): Hold mutex for interrupt condition while calling
5994 * java/lang/natString.cc (init): Allocate and try to read `count'
5995 characters, not `count - offset' characters.
5997 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5998 Correctly compute `count'.
6000 * java/lang/Boolean.java (getBoolean): Return false if property
6003 * java/lang/System.java (setProperties): Set prop_init.
6005 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
6007 * java/io/PrintStream.java (println): Use line.separator, not
6009 * java/lang/System.java (out, err): Make both autoflush streams.
6010 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
6012 * include/config.h.in: Rebuilt.
6013 * acconfig.h (HAVE_MEMCPY): Removed.
6014 * configure: Rebuilt.
6015 * configure.in: Never define HAVE_MEMCPY.
6017 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
6019 (_Jv_AllocString): Use JvAllocObject again.
6020 * java/lang/Class.h (thread): New field.
6021 (_Jv_AllocString): No longer a friend.
6022 * prims.cc (processClass): Removed dead code. Changed to more
6023 closely follow the Java Language Specification.
6024 (processClass): Return early if already at the right state.
6026 * prims.cc (JvNewStringUTF): Removed.
6027 * include/cni.h (JvNewStringUTF): New function.
6028 (_Jv_NewStringUTF): Declare as `extern "C"'.
6029 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
6031 * java/lang/natDouble.cc: Added copyright info and header
6032 comment. Include <stdlib.h>.
6033 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
6034 bytes as are chars in string.
6036 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
6038 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
6042 * java/lang/System.java (init_properties): Now native.
6043 * java/lang/natSystem.cc (init_properties): New method.
6044 Include java/util/Properties.h.
6046 * Makefile.in: Rebuilt.
6047 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
6048 OutputStreamWriter.h, ByteArrayInputStream.h,
6049 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
6050 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
6051 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
6052 Properties.h, Hashtable.h, Dictionary.h.
6055 * include/javaprims.h (java::io): Added Reader, Writer,
6056 InputStreamReader, OutputStreamWriter,
6057 UnsupportedEncodingException, ByteArrayInputStream,
6058 ByteArrayOutputStream, EOFException, SyncFailedException,
6059 PushbackInputStream.
6060 (java::lang): Added Cloneable.
6061 (java::util): Added NoSuchElementException, VectorEnumeration,
6062 Dictionary, HashtableEnumeration, PropertiesEnumeration.
6064 * java/io/PipedReader.java: New file.
6066 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
6068 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
6071 * java/io/io-defs.h: Removed.
6073 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
6074 (FileInputStream): Use new constructor. Can throw IOException.
6076 * java/lang/System.java (getProperty): Don't throw
6077 NullPointerException.
6079 * java/io/RandomAccessFile.java: Rewrote from scratch.
6081 * java/io/natFileDescriptor.cc: Include EOFException.h.
6083 (length): New method.
6084 (getFilePointer): New method.
6086 (available): New method.
6087 * java/io/FileDescriptor.java (SET, CUR): New constants.
6088 (seek, length, getFilePointer, read, available): New decls.
6090 * java/io/PipedWriter.java: New file.
6091 * java/io/StringWriter.java: New file.
6092 * java/io/CharArrayWriter.java: New file.
6093 * java/io/CharConversionException.java: New file.
6094 * java/io/BufferedWriter.java: New file.
6095 * java/io/FilterWriter.java: New file.
6096 * java/io/FileWriter.java: New file.
6098 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6099 OutputStreamWriter.h, NullPointerException.h,
6100 ByteArrayInputStream.h, InputStreamReader.h.
6101 (getBytes): New method.
6102 (init): Throw NullPointerException.
6103 (init): New function.
6104 * java/lang/String.java (getBytes): Added missing decl.
6105 (getBytes): New method.
6106 (String): Added byte[]-based constructors.
6107 (copyValueOf): Wrote.
6108 (init): Declare variant which takes byte array and encoding.
6109 Import java.io.UnsupportedEncodingException.
6111 * java/io/File.java: Rewrote from scratch.
6112 * java/io/natFileDescriptor.cc: Rewrote from scratch.
6113 * java/io/FileDescriptor.java: Rewrote from scratch.
6114 * java/io/FilenameFilter.java: Rewrote from scratch.
6116 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6118 * java/io/SyncFailedException.java: New file.
6119 * java/io/UTFDataFormatException.java: Rewrote from scratch.
6120 * java/io/InterruptedIOException.java: Rewrote from scratch.
6121 * java/io/FileNotFoundException.java: Rewrote from scratch.
6122 * java/io/EOFException.java: Rewrote from scratch.
6123 * java/io/IOException.java: Rewrote from scratch.
6124 * java/io/PrintStream.java: Rewrote from scratch.
6125 * java/io/DataOutputStream.java: Rewrote from scratch.
6126 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6127 * java/io/FilterOutputStream.java: Rewrote from scratch.
6128 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6129 * java/io/PipedOutputStream.java: Rewrote from scratch.
6130 * java/io/FileOutputStream.java: Rewrote from scratch.
6131 * java/io/OutputStream.java: Rewrote from scratch.
6132 * java/io/DataOutput.java: Rewrote from scratch.
6134 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6136 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6138 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6140 * configure.in: Add --enable-libjava-debug
6142 * Makefile.am (nat_headers): Add java/lang/Float.h and
6145 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6147 * Makefile.in, configure, include/config.h.in: Rebuilt.
6149 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6151 * java/lang/Float.java: Rewritten
6152 * java/lang/Double.java: Rewritten
6153 * java/lang/natFloat.cc: toString() added.
6154 * java/lang/natDouble.cc: toString() added.
6155 * java/lang/natDouble.cc: doubleValueOf() added.
6156 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6157 java/lang/strtod.c: added.
6158 * ieeefp.h: __sparc added.
6159 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6161 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6163 * include/javaprims.h (java::lang): Added
6164 CloneNotSupportedException.
6166 * java/lang/Object.java (clone): No longer native. Implemented.
6167 * java/lang/natObject.cc (clone): Removed.
6169 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6171 * prims.cc: Don't make definitions `extern "C"'.
6172 (_Jv_RegisterClass): Renamed from registerClass.
6173 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6174 (_Jv_NewArray): Likewise.
6175 (_Jv_NewMultiArray): Likewise.
6176 (_Jv_CheckCast): Likewise.
6177 (_Jv_LookupInterfaceMethod): Likewise.
6178 (_Jv_CheckArrayStore): Likewise.
6179 (_Jv_RegisterClass): Likewise.
6181 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6182 * configure: Rebuilt.
6183 * configure.in: Don't check for fmod; it is provided by the fdlibm
6185 * prims.cc (fmod): Removed.
6187 * java/lang/natString.cc (charAt): Use _Jv_uint.
6188 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6189 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6190 (equalUtf8Consts): Likewise.
6191 (internalAddClass): Use _Jv_uint.
6192 (processClass): Likewise.
6193 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6194 (_Jv_uint): Renamed from uint32.
6195 (struct _Jv_Utf8Const): Changed members to use new type names.
6197 * configure: Rebuilt.
6198 * configure.in: Don't check for memcpy. Require memmove and a way
6200 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6202 (currentTimeMillis): Don't use #error.
6204 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6206 * java/lang/Math.java: static member random renamed to random_ to
6207 avoid conflict with member function of the same name.
6208 * include/javaprims.h: java.util.Random added.
6210 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6212 * include/java-chartables.h: Regenerated.
6213 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6216 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6218 * java/lang/Math.java: Rewritten.
6219 * java/lang/natMath.cc: New file.
6220 * Files added from fdlibm:
6221 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6222 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6223 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6224 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6225 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6226 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6227 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6228 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6229 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6230 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6231 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6232 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6233 java/lang/k_cos.c, java/lang/sf_ceil.c,
6234 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6235 java/lang/ieeefp.h, java/lang/fdlibm.h
6236 * Makefile.am: rules added for compiling C files from fdlibm.
6238 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6240 * chartables.pl: Minor documentation fixes.
6242 * configure: Rebuilt.
6243 * configure.in: Fixed --help output for --enable-fast-character.
6245 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6247 * configure: Rebuilt.
6248 * configure.in: Recognize --enable-fast-character.
6249 * acconfig.h (COMPACT_CHARACTER): New define.
6250 * include/config.h.in: Rebuilt.
6251 * include/java-chartables.h: New file.
6252 * Makefile.in: Rebuilt.
6253 * Makefile.am (nat_files): Added natCharacter.o.
6254 * java/lang/natCharacter.cc: New file.
6255 * chartables.pl (set_attribute): New function.
6256 (@attributes, @second_attributes): New globals.
6257 ($ROMAN_START, $ROMAN_END): Likewise.
6258 (process_char): Call set_attribute when required.
6259 (print_char): Just print hex value.
6260 (print_block): Generate C++ syntax.
6261 (print_numerics): Likewise.
6262 (print_single_map): Likewise.
6263 (print_all_block): Likewise.
6264 (print_case_table): Likewise.
6265 (print_fast_tables): New function.
6266 Generate C++ code suitable for a header file.
6267 * java/lang/Character.java (table_search): Removed.
6268 (digit_value): Now native.
6269 (getNumericValue): Likewise.
6270 (getType): Likewise.
6271 Removed all automatically-generated tables.
6272 (Tamil_Digit_One): Removed.
6273 (isSpaceChar): Now native.
6274 (isTitleCase): Likewise.
6275 (isLowerCase): Likewise.
6276 (isUpperCase): Likewise.
6277 (toLowerCase): Likewise.
6278 (toTitleCase): Likewise.
6279 (toUpperCase): Likewise.
6280 (isDefined): Fixed sense of test.
6282 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6284 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6286 (regionMatches): Likewise.
6288 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6290 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6292 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6294 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6297 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6300 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6302 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6304 * prims.cc (instanceof_class): Removed.
6305 (instanceof_array): Likewise.
6306 (instanceof): Likewise.
6307 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6308 (_Jv_CheckCast): Likewise.
6309 * java/lang/natClass.cc (isAssignableFrom): New method.
6310 * java/lang/Class.java (isAssignableFrom): Now native.
6312 * include/cni.h (JvThrow): Use `extern inline'.
6313 (JvAllocObject): Likewise.
6314 (JvInitClass): Likewise.
6316 * java/lang/natSystem.cc (arraycopy): Only check class of source
6319 * prims.cc (_Jv_CheckArrayStore): Wrote.
6320 (_Jv_MonitorEnter): Prefer `JvThrow'.
6321 Include ArrayStoreException.h.
6322 (_Jv_CheckCast): Indentation cleanup.
6324 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6326 * chartables.pl: New file.
6327 * java/lang/Character.java: Rewrote from scratch.
6329 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6331 * java/lang/ArithmeticException.java,
6332 java/lang/ArrayIndexOutOfBoundsException.java,
6333 java/lang/ArrayStoreException.java,
6334 java/lang/ClassCastException.java,
6335 java/lang/ClassNotFoundException.java,
6336 java/lang/CloneNotSupportedException.java,
6337 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6338 java/lang/IllegalArgumentException.java,
6339 java/lang/IllegalMonitorStateException.java,
6340 java/lang/IllegalThreadStateException.java,
6341 java/lang/IndexOutOfBoundsException.java,
6342 java/lang/InstantiationException.java,
6343 java/lang/InterruptedException.java,
6344 java/lang/NegativeArraySizeException.java,
6345 java/lang/NoSuchMethodException.java,
6346 java/lang/NullPointerException.java,
6347 java/lang/NumberFormatException.java,
6348 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6349 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6351 * java/lang/IllegalStateException.java,
6352 java/lang/NoSuchFieldException.java,
6353 java/lang/UnsupportedOperationException.java: Created.
6355 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6357 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6358 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6360 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6362 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6364 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6366 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6368 * Makefile.in: Rebuilt.
6370 * include/javaprims.h (java::lang): Added
6371 StringIndexOutOfBoundsException.
6373 * java/lang/String.java: Added header comment and FIXME comment for
6374 missing constructors/methods.
6375 (endsWith): Adjusted offset into string to look at just the last chars.
6376 Commented out undocumented method.
6378 * java/lang/natString.cc: Added includes for
6379 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6380 (String::init): Throw StringIndexOutOfBoundsException.
6381 (String::charAt): Throw StringIndexOutOfBoundsException.
6382 (String::substring): Throw StringIndexOutOfBoundsException.
6383 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6384 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6385 (String::compareTo): Return difference/offset between chars/strings.
6387 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6389 * java/lang/Boolean.java (TYPE): Added comment.
6391 * java/lang/Byte.java (decode): Added - commented out until dependent
6392 code for Integer is written.
6393 (compareTo): JDK 1.2 methods written.
6394 (hashCode): Added comment to note that values have been verified.
6396 * java/lang/Short.java (decode): Added - commented out until dependent
6397 code for Integer is written.
6398 (compareTo): JDK 1.2 methods written.
6399 (hashCode): Added comment to note that values have been verified.
6401 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6403 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6405 * include/javaprims.h (java::lang): Added VirtualMachineError,
6407 * Makefile.in: Rebuilt.
6408 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6409 VirtualMachineError.h.
6410 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6411 (lookupArray): Likewise.
6412 (makeUtf8Const): Likewise.
6413 (_Jv_AllocObject): Likewise.
6414 (_Jv_NewObjectArray): Likewise.
6415 Include OutOfMemoryError.h.
6417 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6418 to use JvNewStringLatin1.
6420 * java/io/io-defs.h: Include java/lang/IOException.h.
6421 * Makefile.in: Rebuilt.
6422 * Makefile.am (nat_headers): Added
6423 ArrayIndexOutOfBoundsException.h,
6424 ClassFormatError.h,ClassNotFoundException.h,
6425 ClassCircularityError.h, ClassCastException.h,
6426 IncompatibleClassChangeError.h, AbstractMethodError.h,
6427 IllegalAccessError.h, LinkageError.h, Error.h,
6428 NegativeArraySizeException.h, IOException.h.
6429 * include/cni.h (SignalError): Removed declaration.
6430 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6431 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6432 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6433 (newInstance): Likewise.
6434 (forName): Likewise.
6435 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6437 (read): Use JvThrow, not SignalError.
6442 (open_read): Likewise.
6443 (open_write): Likewise.
6446 (newstr): New function.
6447 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6449 (lastModifiedUnchecked): Likewise.
6450 (lengthUnchecked): Likewise.
6451 * include/javaprims.h (sorry): Removed declaration.
6452 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6453 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6454 ClassCastException, IncompatibleClassChangeError,
6455 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6456 * prims.cc (instanceof_array): Use JvFail, not sorry.
6458 Include ArrayIndexOutOfBoundsException.h,
6459 ClassFormatError.h,ClassNotFoundException.h,
6460 ClassCircularityError.h, ClassCastException.h,
6461 IncompatibleClassChangeError.h, AbstractMethodError.h,
6462 IllegalAccessError.h, NegativeArraySizeException.h.
6463 (_Jv_ThrowBadArrayIndex): Implemented.
6464 (JvNewStringUTF): Use JvFail, not sorry.
6465 (_Jv_FindClass): Likewise.
6466 (_Jv_NewArray): Likewise.
6467 (throwException): Removed.
6468 (getClass): Use JvThrow.
6469 (processClass): Likewise.
6470 (_Jv_NewObjectArray): Likewise.
6471 (_Jv_NewMultiArray): Likewise.
6472 (_Jv_CheckCast): Likewise.
6473 (_Jv_LookupInterfaceMethod): Likewise.
6474 (SignalError): Removed.
6475 (getClass): Use _Jv_NewStringUtf8Const to create String.
6477 * java/lang/natSystem.cc (arraycopy): Throw
6478 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6480 * Makefile.in: Rebuilt.
6481 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6483 * include/java-array.h: Mention gcjh, not gjavah.
6485 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6486 (canReadUnchecked): Likewise.
6487 (canWriteUnchecked): Likewise.
6488 (isFileUnchecked): Likewise.
6489 * java/io/natFileDescriptor.cc: Don't include cni.h.
6491 * java/lang/Thread.java (run__): Declare.
6492 * java/lang/natThread.cc (run__): New method, to avoid compiler
6494 (start): Use run__, not run_.
6496 * java/io/io-defs.h: Include cni.h and jvm.h.
6498 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6500 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6501 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6502 to natString.cc (with suitable renaming, inlines etc).
6503 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6504 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6505 * java/lang/String.h: Removed - now generated using gjavah.
6506 * java/lang/String.java: Re-written from scratch. Many native methods.
6507 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6508 * java/lang/natString.cc: Many functions re-written for "compact
6509 strings" representation, or native java.lang.String methods added.
6510 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6511 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6512 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6513 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6514 * include/cni.h: Add inline method.
6515 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6516 * include/javaprims.h: Moved some stuff frm String.h.
6517 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6518 * Makefile.am (nat_header): Added Character.h and String.h.
6519 (String.h): Add new rule.
6521 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6523 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6525 * posix-threads.cc: Include cni.h, jvm.h.
6526 * quick-threads.cc: Include cni.h, jvm.h.
6527 * nogc.cc: Include cni.h, not javaprims.h.
6528 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6529 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6530 include java-assert.h.
6531 * java/lang/natSystem.cc: Include cni.h. Don't include
6533 * java/lang/natRuntime.cc: Include cni.h. Don't include
6535 * prims.cc: Rearranged #include ordering. Don't include
6536 java-array.h or java-assert.h.
6537 * boehm.cc: Include config.h, cni.h.
6538 * exception.cc: Include config.h, cni.h.
6539 * include/jvm.h: Include java-assert.h.
6540 * include/cni.h: Include java/lang/Object.h. Don't include
6541 java-threads.h or java-array.h.
6543 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6545 * java/lang/Boolean.java: Rewritten.
6547 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6549 * java/lang/natFirstThread.cc (main_func): New typedef.
6550 (run): Use main_func, not JvPrivThreadStartFunc.
6551 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6553 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6555 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6558 Can't throw Java exceptions with C++ `throw':
6559 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6560 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6561 (setPriority): Likewise.
6565 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6566 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6568 Can't catch Java exceptions from C++:
6569 * java/lang/natThread.cc (finish_): New method.
6571 * java/lang/Thread.java (run_): Rewrote in Java.
6572 (finish_): New native method.
6574 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6576 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6578 * include/javaprims.h (java::io): Added Serializable.
6580 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6582 * java/util/EmptyStackException.java,
6583 java/util/NoSuchElementException.java: Rewritten.
6585 * java/util/ConcurrentModificationException.java,
6586 java/util/MissingResourceException.java,
6587 java/util/TooManyListenersException.java: Created.
6589 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6591 * include/cni.h (JvThrow): New function.
6592 * include/javaprims.h (_Jv_Throw): Declare.
6594 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6596 * java/util/Observable.java: Rewritten.
6598 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6600 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6601 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6602 Include NullPointerException.h.
6604 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6606 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6607 assignability checks. Don't bother using memcpy.
6609 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6611 * include/quick-threads.h (JvPrivThreadWait): New function.
6612 * include/no-threads.h (JvPrivThreadWait): New function.
6613 * include/posix-threads.h (JvPrivThreadWait): New function.
6614 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6616 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6618 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6619 offsets by size of type that is being copied.
6621 * java/lang/natThread.cc (start): Don't pass `object' argument to
6623 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6624 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6626 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6627 always pass thread as object.
6628 * include/quick-threads.h, include/posix-threads.h,
6629 include/no-threads.h (JvPrivThreadStart): Removed `object'
6632 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6634 * java/util/Dictionary.java: Rewritten.
6636 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6638 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6639 (JvPrivThreadDestroy): Likewise.
6641 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6643 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6645 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6647 * java/lang/natSystem.cc: Rewrote from scratch.
6648 * java/lang/System.java: Rewrote from scratch.
6649 * java/lang/Class.h (Class): Declare isAssignableFrom.
6650 * include/javaprims.h (java::lang): Added ArrayStoreException,
6651 IndexOutOfBoundsException.
6652 * Makefile.in: Rebuilt.
6653 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6654 IndexOutOfBoundsException.h.
6655 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6656 * include/jvm.h (_Jv_HashCode): New function.
6658 * java/lang/natThread.cc (suspend): Call checkAccess.
6660 * java/lang/Thread.java (setDaemon): Call checkAccess.
6662 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6664 * java/lang/Runtime.java: Rewrote from scratch.
6665 * java/lang/natRuntime.cc: Rewrote from scratch.
6667 * nogc.cc (JvPrivGCTotalMemory): New function.
6668 (JvPrivGCFreeMemory): Likewise.
6669 (total): New global.
6670 (JvPrivAllocObj): Increment total.
6671 (JvPrivAllocArray): Likewise.
6672 (JvPrivAllocBytes): Likewise.
6673 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6674 * boehm.cc (JvPrivGCTotalMemory): New function.
6675 (sum_blocks): Likewise.
6676 (JvPrivGCFreeMemory): Likewise.
6678 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6680 * include/javaprims.h (java::lang): Added FirstThread.
6681 * java/lang/natFirstThread.cc: New file.
6682 * java/lang/FirstThread.java: New file.
6683 * prims.cc (main_signature): Removed.
6684 (main_name): Removed.
6685 #include FirstThread.h.
6686 * Makefile.in: Rebuilt.
6687 * Makefile.am (TFRIEND): Removed.
6688 (java/lang/Thread.h): Likewise.
6689 (FTFRIEND): New macro.
6690 (java/lang/FirstThread.h): New target.
6691 (nat_files): Added natFirstThread.o.
6692 (nat_headers): Added FirstThread.h.
6693 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6694 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6696 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6700 * java/lang/natThread.cc (start): Synchronize the thread.
6701 (stop): Synchronize the thread.
6703 * java/lang/ThreadDeath.java: Rewrote from scratch.
6705 * Makefile.in: Rebuilt.
6706 * Makefile.am (TGFRIEND): New macro.
6707 (java/lang/ThreadGroup.h): New target.
6708 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6710 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6712 * nogc.cc: Include config.h.
6714 * java/lang/ThreadGroup.java: Rewrote from scratch.
6716 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6718 * java/lang/Thread.java (checkAccess): Only call in to security
6719 manager if it exists.
6720 (Thread): Don't check access when creating the first thread. Add
6721 this thread to the appropriate ThreadGroup.
6723 * java/lang/natThread.cc (run_): Call uncaughtException method on
6726 * java/lang/Runnable.java: Rewrote from scratch.
6727 * java/lang/Thread.java: Updated copyright comment to correct
6730 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6732 * java/util/Random.java: Rewritten.
6734 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6736 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6737 trailing 0 in array[].
6739 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6741 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6742 and RUNTESTFLAGS from AM_MAKEFLAGS.
6743 (SUBDIRS): Conditionally include testsuite.
6744 * Makefile.in: Rebuilt.
6746 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6748 * java/lang/Object.h: Include java-assert.h.
6750 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6752 * Makefile.am: Add testsuite directory.
6753 * configure.in: Build testsuite/Makefile.
6754 * Makefile.in, configure: Rebuilt.
6756 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6758 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6759 * include/jvm.h (_Jv_StartFirstThread): Declare.
6761 * include/javaprims.h (java::lang): Added Exception,
6764 * Makefile.in: Rebuilt.
6765 * Makefile.am (nat_headers): Added NullPointerException.h,
6766 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6767 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6768 (java/lang/Thread.h): New target.
6769 (TFRIEND): New macro
6771 * include/java-assert.h (JvFail): Use 0 and not NULL.
6773 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6774 instead of assuming we are a friend of Thread.
6775 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6776 instead of assuming we are a friend of Thread.
6778 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6780 * java/lang/natThread.cc: Rewrote from scratch.
6781 * java/lang/Thread.java: Rewrote from scratch.
6782 * prims.cc (JvRunMain): Use new Thread constructor.
6783 * include/javaprims.h (java::lang): Added InterruptedException.
6784 * Makefile.in: Rebuilt.
6785 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6786 * java/lang/Thread.h: Removed.
6787 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6788 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6790 * posix-threads.cc (JvPrivThreadJoin): Removed.
6791 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6792 (really_start): Don't notify join_cond.
6793 (JvPrivThreadStart): Added `data' argument.
6794 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6795 (JvPrivThreadJoin): Likewise.
6796 Use JvFail instead of sorry.
6797 (JvPrivThreadSuspend): Removed.
6798 (JvPrivThreadResume): Removed.
6799 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6800 (JvPrivThreadJoin): Likewise.
6801 (JvPrivThreadSuspend): Use JvFail.
6802 (JvPrivThreadResume): Likewise.
6803 (JvPrivThreadSuspend): Removed.
6804 (JvPrivThreadResume): Likewise.
6805 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6806 (JvPrivThread_t): Removed join_mutex, join_cond.
6807 Use JvFail instead of sorry.
6808 (JvPrivThreadSuspend): Removed.
6809 (JvPrivThreadResume): Likewise.
6811 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6813 * java/util/Observer.java: Rewritten
6814 * java/util/Enumeration.java: Rewritten
6816 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6818 * java/util/StringTokenizer.java: Rewritten
6819 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6820 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6821 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6823 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6825 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6828 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6829 Include java-assert.h.
6830 * include/java-assert.h: New file.
6831 * prims.cc (_Jv_Abort): New function.
6832 Include java-assert.h, not assert.h.
6833 (_Jv_MonitorExit): Use JvAssert.
6834 (resolveConstants): Likewise.
6835 (processClass): Likewise.
6836 (JvRunMain): Assert that method is found.
6838 * configure: Rebuilt.
6839 * configure.in: Check for test subdir.
6840 * Makefile.in: Rebuilt.
6841 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6843 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6844 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6846 * prims.cc (resolveConstants): Removed unused variables.
6847 (processClass): Likewise.
6849 * include/quick-threads.h (JvPrivThreadCurrent): Use
6851 * quick-threads.cc (destroy_data): New function.
6852 (JvPrivInitThreads): Create key.
6853 (JvPrivThreadKey): New global.
6854 (JvPrivThreadStart): Use coop_setspecific.
6856 * include/quick-threads.h, include/posix-threads.h,
6857 include/no-threads.h, no-threads.cc, quick-threads.cc,
6858 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6860 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6862 * include/no-threads.h (JvPrivThreadInitData): Don't set
6865 * include/quick-threads.h (JvPrivCondWait): coop function now
6867 (JvPrivThreadJoin): Likewise.
6869 * java/lang/Thread.h (Thread): Updated declaration of
6871 * include/quick-threads.h, include/posix-threads.h: Updated
6872 declaration of JvPrivThreadStart.
6873 * include/no-threads.h (JvPrivThreadStart): Changed definition
6875 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6876 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6877 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6879 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6881 * quick-threads.cc (qthrow): New function.
6882 (JvPrivInitThreads): New function.
6883 (started): New global.
6884 (JvPrivThreadStart): Call coop_start if required.
6885 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6886 (JvPrivThreadDestroy): Likewise.
6887 (JvPrivInitThreads): Removed.
6888 * include/posix-threads.h (JvPrivThreadCancel): Added error
6890 * java/lang/natThread.cc (stop_): Pass exception to
6893 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6895 * include/javaprims.h (java::lang): Added
6896 IllegalArgumentException, IllegalThreadStateException, Math,
6897 NullPointerException, ThreadDeath.
6898 (java::util): Added Enumeration.
6900 * Makefile.in: Rebuilt.
6901 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6903 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6905 (threadsv): Renamed from threads to avoid clash in C++ header.
6906 (groupsv): Likewise.
6907 * include/no-threads.h (JvPrivThreadStart): Removed.
6908 * no-threads.cc (JvPrivThreadStart): New function.
6909 * java/lang/Thread.java (Thread): New constructor for internal use.
6910 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6911 (Thread): Declare constructor.
6912 * prims.cc (JvRunMain): Create the initial Thread and
6914 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6915 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6916 Removed `daemon' argument.
6918 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6919 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6921 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6923 * Makefile.in: Rebuilt.
6924 * Makefile.am (INCLUDES): Include THREADINCS.
6926 * configure: Rebuilt.
6927 * configure.in: Recognize `qt' as a threads package.
6929 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6931 * java/util/Stack.java (pop): Null out topmost node for robustness.
6933 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6935 * java/util/Stack.java: Rewritten.
6936 * java/util/Vector.java (isEmpty): Simplified expression.
6938 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6940 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6941 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6943 * include/java-array.h (JvNewObjectArray): Created inline to
6946 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6949 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6951 * java/util/Vector.java: Rewritten.
6952 * java/io/Serializable.java: Created.
6954 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6956 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6957 Infinity is 1/0, not 1/1.
6959 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6961 * configure: Rebuilt.
6962 * configure.in: Removed duplicate AC_ARG_WITH.
6964 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6966 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6968 (_Jv_InitClass): Renamed from soft_initialise_class.
6969 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6970 (_Jv_CheckCast): Renamed from soft_checkcast.
6971 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6972 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6973 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6974 * include/cni.h (JvInitClass): New function.
6975 (_Jv_InitClass): Renamed from soft_initialise_class.
6977 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6979 * configure: Rebuilt.
6980 * configure.in (CXX): Don't set.
6981 * Makefile.in: Rebuilt.
6982 * Makefile.am (AM_CXXFLAGS): New macro.
6984 * Makefile.in: Rebuilt.
6985 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6986 nogc.o): New target.
6988 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6990 (mark_array): Likewise.
6992 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6994 * java/lang/Class.h (JvMethod): Removed some unused fields.
6995 (JvField.info): Removed unused idx union variant.
6997 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6999 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
7002 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
7004 * configure.in, configure (CXX): Add -fvtable-thunks.
7006 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
7008 * java/lang/Object.java (finalize): Move first.
7009 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
7010 (Object): Re-arrange order to match Object.java.
7012 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
7014 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
7015 * java/lang/natString.cc (hashChars): Likewise.
7017 * prims.cc (RuntimeClass): New macro.
7018 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
7020 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
7022 * Makefile.in: Rebuilt.
7023 * Makefile.am (AM_MAKEFLAGS): New macro.
7025 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
7027 * nogc.cc: Include <javaprims.h>.
7029 * Makefile.in: Rebuilt.
7030 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
7032 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
7034 * exception.cc (terminate): Removed.
7035 (unexpected): Removed.
7037 * configure: Rebuilt.
7038 * configure.in: Handle case where target subdir is ".".
7040 * configure: Rebuilt.
7041 * configure.in: Compute COMPPATH based on --with-target-subdir
7042 option. Added --with-target-subdir and --with-cross-host. Use
7043 --with-cross-host to determine when a cross compiler is in use.
7045 * Makefile.in: Rebuilt.
7046 * Makefile.am (GJAVAH): Include COMPPATH.
7047 * configure: Rebuilt.
7048 * configure.in: Subst COMPPATH.
7050 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
7052 * prims.cc (lockMutex): Removed.
7053 (unlockMutex): Likewise.
7054 (processClass): Lock the class using a JvSynchronize object.
7056 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
7058 * java/lang/natString.cc (gc_calloc_fixed): Removed.
7059 (gc_free_fixed): Removed.
7060 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
7061 freeing old value of strhash.
7063 * exception.cc (_Jv_type_matcher): Cast first argument to
7066 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
7068 * include/java-array.h (jstringArray): New type.
7069 * java/lang/natSystem.cc (setProperty): Removed.
7070 (initProperties): Directly call JvNewStringLatin1 for arguments.
7071 * java/util/natDate.cc: Include java/util/Date.h, not
7074 * java/io/FileDescriptor.java (available): No longer static.
7075 * java/lang/natDouble.cc (Double): Removed class definition.
7076 * include/javaprims.h (java::lang::Number): Declare.
7077 (java::lang::NumberFormatException): Likewise.
7078 (java::io::FilenameFilter): Likewise.
7079 (java::lang::Character): Likewise.
7080 (java::lang::Error): Likewise.
7081 (java::lang::SecurityManager): Likewise.
7082 (java::util::Vector): Likewise.
7083 (java::io::FileNotFoundException): Likewise.
7084 (java::io::IOException): Likewise.
7085 (java::lang::NativeLang): Likewise.
7086 (java::lang::UnsatisfiedLinkError): Likewise.
7087 (java::util::StringTokenizer): Likewise.
7088 (java::io::InputStream, java::io::OutputStream): Likewise.
7089 (java::io::PrintStream, java::lang::SecurityException): Likewise.
7090 (java::util::Hashtable): Likewise.
7091 * Makefile.in: Rebuilt.
7092 * Makefile.am (nat_headers): Added java/lang/Double.h,
7093 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
7094 (MOSTLYCLEANFILES): Added nat_headers.
7095 * include/jvm.h: Moved many defines, declarations, and functions
7096 to java/lang/Class.h.
7097 (struct JvSyncInfo): Moved to java/lang/Object.h.
7098 (UTF8_GET): Moved to java/lang/String.h.
7100 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
7102 * java/io/io-defs.h: Don't include java-io.h.
7103 * include/java-io.h: Removed.
7104 * include/javaprims.h: Include java::io.
7106 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
7108 * include/java-io.h (File): Removed
7109 (FileDescriptor): Likewise.
7111 * java/io/io-defs.h: Include java/io/File.h and
7112 java/io/FileDescriptor.h.
7114 * Makefile.in: Rebuilt.
7115 * Makefile.am (GJAVAH): New macro.
7116 (.class.h): New rule.
7117 (SUFFIXES): Added .h.
7118 (nat_headers): New macro.
7119 ($(nat_headers)): New target.
7120 (BUILT_SOURCES): Added nat_headers.
7122 * include/java-util.h: Removed.
7124 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7126 * include/java-io.h: Changed to avoid java-lang.h.
7127 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7129 * java/lang/natSystem.cc: Include java/lang/System.h, not
7131 * java/lang/natString.cc: Include java/lang/String.h, not
7133 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7135 * java/lang/natClass.cc: Include java/lang/Class.h, not
7137 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7139 * java/lang/natObject.cc: Include java/lang/Object.h, not
7141 * exception.cc: Don't include java-lang.h.
7142 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7143 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7144 * nogc.cc: Don't include java-lang.h.
7145 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7146 * prims.cc (processClass): Don't use `init_type'; just cast to
7148 Include java/lang/Class.h and jvm.h, not java-lang.h.
7149 (JvAllocObject): Wrote single-argument version.
7150 (PrimClass): Inherit from Class.
7151 (initPrimClass): Removed.
7152 * include/java-lang.h: Removed.
7153 * include/jvm.h: Declare struct _dispatchTable.
7154 * include/cni.h: Don't declare _Jv_MonitorEnter,
7155 _Jv_MonitorExit, struct _dispatchTable.
7156 * include/javaprims.h: Moved all typedefs here, from cni.h.
7157 * java/lang/Class.h: New file.
7158 * include/java-array.h: New file.
7159 * java/lang/Object.h: New file.
7161 * prims.cc (classFromSig): Now static.
7163 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7165 * include/cni.h: Don't mention soft_new.
7166 * include/java-lang.h (Object): Don't mention soft_new. Mention
7167 _Jv_NewPrimArray, not newPrimArray.
7168 * prims.cc (soft_new): Removed.
7169 (_Jv_NewArray): Renamed from soft_newarray.
7170 (soft_anewarray): Use JvNewObjectArray.
7171 (newArray): Likewise.
7172 (newRefArray): Removed.
7173 (_Jv_NewPrimArray): Renamed from newPrimArray.
7174 (equalUtf8Consts): Now static.
7175 (soft_instanceof): Removed.
7176 * java/lang/natDouble.cc (doubleToString): Now static.
7178 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7179 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7182 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7184 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7186 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7188 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7189 (JvPrivMutexUnlock): Likewise.
7190 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7191 Return value now jint.
7192 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7195 * Makefile.in: Rebuilt.
7196 * Makefile.am: Don't allow `jV' names.
7197 (maintainer-check): Depend on libjava.a.
7198 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7200 * Makefile.in: Rebuilt.
7201 * Makefile.am (NM): New macro.
7202 (maintainer-check): New target.
7204 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7206 * configure: Rebuilt.
7207 * configure.in: Use --enable-threads, not --enable-gc. Fix
7208 documentation for --enable-threads. Changed option to work like
7209 identical option in gcc/configure.
7211 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7213 * boehm.cc (mark_array): Use JvGetArrayLength.
7215 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7217 * exception.cc: New file (mostly written by Andrew MacLeod),
7218 exception handling support.
7219 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7220 Remove -fexceptions - it is now the default.
7222 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7223 (JvAllocObject): Renamed to _Jv_AllocObject.
7224 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7225 (loadClass): Renamed to _Jv_FindClass.
7226 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7227 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7228 * include/java-lang.h (JvGetArrayLength): New CNI function.
7229 * include/jvm.h (_Jv_FindClass): Added declaration.
7231 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7233 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7235 * java/lang/natClass.cc (getName): Add implementation.
7236 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7238 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7240 * Makefile.in: Rebuilt.
7241 * Makefile.am (.class.o): Added -fexceptions.
7243 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7245 * configure: Rebuilt.
7246 * configure.in: Don't check for __nanosleep.
7247 * posix-threads.cc (nanosleep): Never define.
7249 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7251 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7254 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7256 * java/lang/natThread.cc (enumerate): Uncommented.
7257 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7258 (interrupt): Call it.
7260 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7262 * configure: Rebuilt.
7263 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7265 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7267 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7268 * include/java-lang.h (Thread): Added `interrupted_' method.
7269 * java/lang/Thread.java (interrupted_): New method.
7270 * java/lang/natThread.cc (join): Possibly throw interrupted
7271 exception after join finishes.
7272 (interrupted_): New method.
7273 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7275 (JvPrivThreadJoin): New function.
7276 (really_start): Notify all threads waiting for this thread.
7277 (struct starter): Added `data' member.
7278 (JvPrivThreadStart): Set it.
7279 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7281 (JvPrivThreadJoin): No longer inline.
7282 (JvPrivThreadInterrupt): New function.
7284 * include/no-threads.h (JvPrivThreadSleep): Removed.
7285 * posix-threads.cc (JvPrivThreadSleep): Removed.
7287 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7289 * configure: Rebuilt.
7290 * configure.in (THREADOBJS): Initialize to no-threads.o in
7292 * posix-threads.cc (key): New global.
7293 (JvPrivInitThreads): New function.
7294 (really_start): Set thread-specific data to point to object.
7295 (JvPrivThreadStart): Added `daemon' argument.
7296 (JvPrivThreadSleep): Added `data' argument.
7297 * include/posix-threads.h (JvPrivInitThreads): Removed
7299 (JvPrivThreadCurrent): New function.
7300 * include/no-threads.h (JvPrivThreadInitData): Initialize
7301 JvPrivOnlyThread. Added `thread' argument.
7302 (JvPrivThreadCurrent): New function.
7303 (JvPrivThreadStart): Added `daemon' argument.
7304 * no-threads.cc: New file.
7305 * java/lang/natThread.cc (init_data): New function.
7307 (start): Set `alive' member.
7308 (stop_): Clear `alive' member.
7309 (destroy): Likewise.
7310 (currentThread): Implemented.
7311 (start): Pass `daemon' argument to JvPrivThreadStart.
7313 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7314 (Thread): Added `init_data' method.
7315 * java/lang/Thread.java (alive, data): New instance variables.
7316 (init_data): New private method.
7317 (isAlive): No longer native.
7319 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7321 * include/java-lang.h (JvRunMain): Declare.
7322 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7323 * prims.cc (JvRunMain): New function.
7324 (main_signature, main_name): New globals.
7326 * boehm.cc (mark_array): Use `elements' function and not
7327 operator[] on jarray.
7329 * posix-threads.cc: Include <config.h>. Define nanosleep if
7332 * configure: Rebuilt.
7333 * configure.in: Check for _nanosleep.
7335 * configure: Rebuilt.
7336 * configure.in: Check for pthread_mutexattr_settype.
7338 * include/cni.h (class JvSynchronize): New class.
7339 * java/lang/Thread.java (sleep): Throws InterruptedException.
7340 (join): Throws InterruptedException.
7341 (resume): Not native.
7342 (resume_): New method.
7343 (start): Now synchronized.
7344 (stop_): New method.
7345 (Thread): Synchronize when accessing threadNumber.
7347 * java/lang/natThread.cc (throwException): New macro.
7348 (sleep): Throw InterruptedException.
7351 * include/java-lang.h (Runtime): Added interrupted().
7353 * boehm.cc (call_finalizer): Correctly initialize jobj.
7354 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7356 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7359 * configure: Rebuilt.
7360 * configure.in: Added support for --disable-threads.
7361 * include/no-threads.h: New file.
7363 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7365 * Makefile.in: Rebuilt.
7366 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7367 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7368 (libjava_a_LIBADD): Added THREADOBJS.
7369 * configure: Rebuilt.
7370 * configure.in: Added --with-threads option.
7371 * posix-threads.cc: New file.
7372 * include/posix-threads.h: New file.
7373 * include/java-lang.h (Object): Added static member sync_mutex,
7374 member sync_info, method init_mutex.
7375 (struct JvSyncInfo): New struct.
7376 Include "java-threads.h".
7377 * prims.cc (soft_monitorenter): Wrote.
7378 (soft_monitorexit): Likewise.
7379 * java/lang/natObject.cc (init_mutex): New method.
7383 (sync_mutex): Define.
7384 Include "java-threads.h".
7386 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7388 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7389 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7391 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7393 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7394 Added extern "Java" in places to tell G++ Object is a "Java" type.
7395 Other minor renaming and fixes.
7396 * include/java-io.h (FileDescriptor): Add friend class declarations.
7397 G++ no longer allows non-Java types in method parameters and results
7398 of Java classes. Converted most offending methods to friends.
7399 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7400 * java/lang/natSystem.cc (setProperty): Make friend.
7401 * java/lang/natString.cc, include/java-lang.h (String): Rename
7402 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7403 * include/java-lang.h (JArray): Remove getData and eoprator[].
7404 Add elements friend function instead.
7405 * java/lang/natSystem.cc (arraycopy): Use elements function.
7406 * java/io/natFileDescriptor.cc (read, write): Likewise.
7407 * include/java-lang.h (Object): Remove unused make method.
7408 (System::setProperty(char*,char*)): Turn into friend function.
7409 (Class): Rename newObject by JvAllocObject.
7410 * prims.cc: Update to use JvAllocObject, and elements.
7412 * java/lang/natDouble.cc: Fix double -> jdouble.
7414 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7416 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7418 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7420 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7421 * include/java-lang.h (Runtime): finalize_on_exit and
7422 runFinalizersOnExit now static.
7423 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7425 (finalize_on_exit): Now static.
7427 * boehm.cc (mark_obj): Get class using getClass() method on
7429 (_dispatchTable): Removed.
7431 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7433 * java/io/natFileDescriptor.cc (open_read): Only call open if
7435 (open_write): Likewise.
7437 * Makefile.in: Rebuilt.
7438 * Makefile.am ($(nat_files)): Depend on config.h.
7440 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7442 * prims.cc (ObjectClass): Now a macro; updated for new class name
7444 (StringClass): Likewise.
7445 (ClassClass): Likewise.
7447 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7449 * java/io/natFileDescriptor.cc (available): Do nothing unless
7450 HAVE_SELECT defined.
7451 * java/util/natDate.cc (setTime): Conditional on
7453 (toString): Conditional on HAVE_TIME.
7454 * aclocal.m4, configure: Rebuilt.
7455 * acinclude.m4: New file.
7456 * configure.in: Don't actually call AM_EXEEXT. Call
7457 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7458 --with-target-subdir option. Check for select and open
7461 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7463 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7464 (call_finalizer): Likewise.
7465 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7466 * prims.cc (newObject): Pass actual method pointer to
7467 JvPrivRegisterFinalizer.
7468 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7469 (JvPrivRegisterFinalizer): Changed interface.
7471 * Makefile.in: Rebuilt.
7472 * Makefile.am (MOSTLYCLEANFILES): New macro.
7473 (CLEANFILES): Removed javao_files.
7475 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7477 * nogc.cc: New file.
7478 * Makefile.in: Rebuilt.
7479 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7480 (EXTRA_libjava_a_SOURCES): New macro.
7481 (libjava_a_SOURCES): Removed boehm.cc.
7482 (libjava_a_DEPENDENCIES): Added GCOBJS.
7483 (libjava_a_LIBADD): Likewise.
7484 * configure: Rebuilt.
7485 * configure.in: Added code for --enable-gc=TYPE.
7487 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7489 * boehm.cc (mark_array): Don't further dereference pointer from
7492 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7493 * Makefile.in: Rebuilt.
7494 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7495 one for boehm-gc build directory.
7497 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7499 * include/java-lang.h (finalize_on_exit): New instance variable in
7500 java::lang::Runtime.
7501 (runFinalizersOnExit): New method.
7502 * java/lang/Runtime.java (finalize_on_exit): New instance
7504 (runAllFinalizers_): New private method.
7505 (runFinalizersOnExit): New method.
7506 * boehm.cc (JvPrivRunFinalizers): New function.
7507 (JvPrivRunAllFinalizers): Likewise.
7508 (JvPrivRunGC): Likewise.
7509 * java/lang/natRuntime.cc: Include "jvm.h".
7510 (gc): Call JvPrivRunGC.
7511 (runFinalization): Call JvPrivRunFinalizers.
7512 (runFinalizersOnExit): New method.
7513 (exit_): Call JvPrivRunAllFinalizers if required.
7514 * include/jvm.h: Declare JvPrivRunFinalizers,
7515 JvPrivRunAllFinalizers, JvPrivRunGC.
7517 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7519 * boehm.cc (JvPrivRegisterFinalizer): New function.
7520 (call_finalizer): Likewise.
7521 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7522 * prims.cc (finalize_name): New global.
7523 (newObject): Just call other newObject.
7524 (newObject): Register finalizer if it exists.
7526 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7528 * prims.cc (gc_malloc): Removed.
7529 (makeUtf8Const): Use JvPrivAllocBytes.
7530 (lookupArray): Likewise.
7531 (newPrimArray): Likewise.
7532 (JvNewObjectArray): Use JvPrivAllocArray.
7533 (newObject): Use JvPrivAllocObj.
7534 (newObject): Likewise.
7535 Changed Method -> JvMethod everywhere.
7536 Changed Field -> JvField everywhere.
7537 * include/java-lang.h (Object): Changed type of `fields' to
7539 (jmethodID, jfieldID): New typedefs.
7540 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7542 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7544 (METHOD_NATIVECODE): Moved from java-lang.h.
7545 (class JvField): New class.
7546 (JvGetFirstInstanceField): New function.
7547 (JvFieldIsRef): Likewise.
7548 (JvGetObjectField): Likewise.
7549 (JvNumInstanceFields): Likewise.
7551 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7553 * boehm.cc: New file.
7554 * Makefile.in: Rebuilt.
7555 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7556 (INCLUDES): Added -I options to find boehm-gc files.
7558 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7560 * configure: Rebuilt.
7561 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7563 * Makefile.in: Rebuilt.
7564 * Makefile.am (nat_files): New macro.
7565 (libjava_a_DEPENDENCIES): Use it.
7566 (libjava_a_LIBADD): Likewise.
7567 ($(nat_files)): New static pattern rule.
7568 (class_files): Run separate find to find .class files.
7569 (javao_files): Compute based on class_files.
7570 (BUILT_SOURCES): New macro.
7572 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7574 * Makefile.am (java_files): New macro.
7575 (class_files): Likewise.
7576 (javao_files): Likewise.
7577 (libjava_a_DEPENDENCIES): Include $(javao_files).
7578 (libjava_a_LIBADD): Likewise.
7579 (classes.stamp): Depend on $(java_files); only recompile changed
7582 (CLEANFILES): Don't run find; use macros. Don't mention
7584 (.class.o): New target.
7585 (compiled.stamp): Removed.
7587 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7589 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7590 LineNumberReader}>java: Newly-implemented standard classes.
7592 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7594 * Makefile.in: Rebuilt.
7595 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7597 * Makefile.in: Rebuilt.
7598 * Makefile.am (hack): New macro.
7599 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7601 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7603 * include/config.h.in: New file.
7604 * include/config.h: Removed.
7605 * acconfig.h: New file.
7606 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7607 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7608 libjava_a_LIBADD): New macros.
7609 (INCLUDES): New macro.
7612 (SUFFIXES): Removed.
7614 (libjava.a): Removed.
7616 * configure: Rebuilt.
7617 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7618 Look for headers and functions we require. Create
7621 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7623 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7624 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7625 soft_lookupinterfacemethod): New functions.
7626 (PrimClass): Actually initialize the primitive classes.
7627 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7629 * include/java-util.h: Removed java::util definition.
7630 * include/cni.h: Moved java::util here and added Properties.
7631 Added more function prototypes.
7632 * include/java-lang.h: Added mroe methods and friend declarations.
7633 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7634 * include/jvm.h (strLengthUtf8): Add declaration.
7636 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7638 * java/lang/{Byte,Short,Void}.java: New classes.
7639 * java/lang/Character.java (isJavaIdentifierStart,
7640 JavaIdentifierPart): New static methods.
7641 * java/lang/Number.java (byteValue, shortValue): New methods.
7643 * java/lang/String.java (intern, hashCode): Make native.
7644 * java/lang/natString.cc: New file. Handle the string pool.
7645 * Makefile.am: Build natString.o. Use CXXFLAGS.
7647 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7648 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7649 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7650 * java/lang/System.java (setProperty): New private method.
7651 (initProperties): Take argument, and make native.
7652 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7653 (currentTimeMillis): Make more robust.
7655 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7656 * java/io/UnsupportedEncodingException.java: New exception class.
7658 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7659 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7661 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7663 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7664 * prims.cc: Added bunch of stuff.
7665 * include/cni.h: Added various definitions.
7666 * include/java-lang.h: Added Method, various friends, some macros.
7668 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7669 * java/lang/System.java (arraycopy): Make native.
7671 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7673 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7674 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7675 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7676 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7678 * java/lang/Runtime.java: Declare methods as native instead of
7680 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7681 * java/lang/System.java: Comment out some stuff, for now.
7682 * java/lang/Thread.java: Re-write. Use native methods.
7683 * java/lang/NativeLang.java: Remove most of it.
7685 * java/util/natDate.cc: Native (C++) methods for Date.
7686 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7687 * java/util/Date.java: Complete re-write.
7689 * java/io/io-defs.h: New header file.
7690 * java/io/FileDescriptor.java: Add a bunch of private methods,
7691 mostly moved from NativeIO.java and natNativeIO.cc.
7692 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7693 * java/io/File.java: Use new code.
7694 * java/io/{FileInputStream.java.FileOutputStream.java,
7695 RandomAccessFile.java}: Use new private FileDescriptor methods.
7696 * java/io/NativeIO.java: Removed, no longer used.
7698 * java/io/StreamTokenizer.java (numericChars): Make char array.
7700 * include/*.h: Various header files used by the C++ native code.
7702 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7703 New autoconf+automake-based setup.
7704 * prims.cc: New file for Java "primitives".