1 2000-02-07 Tom Tromey <tromey@cygnus.com>
3 * java/lang/Runtime.java (_load): Declare.
4 (load, loadLibrary): Wrote in terms of _load.
5 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7 (loadLibrary): Likewise.
10 (loadLibrary, load): Removed.
12 * jni.cc (ThrowableClass): New define.
13 (_Jv_JNI_Throw): Check argument.
14 (_Jv_JNI_ThrowNew): Likewise.
15 (wrap_value): Don't wrap object if it is NULL.
16 (_Jv_JNI_DefineClass): Use wrap_value.
17 (_Jv_JNI_FindClass): Likewise.
18 (_Jv_JNI_GetSuperclass): Likewise.
19 (_Jv_JNI_ExceptionOccurred): Likewise.
20 (_Jv_JNI_AllocObject): Likewise.
21 (_Jv_JNI_GetObjectClass): Likewise.
22 (_Jv_JNI_NewString): Likewise.
23 (_Jv_JNI_NewStringUTF): Likewise.
24 (_Jv_JNI_NewObjectArray): Likewise.
25 (_Jv_JNI_GetObjectArrayElement): Likewise.
26 (_Jv_JNI_NewPrimitiveArray): Likewise.
27 (_Jv_JNI_ToReflectedField): Likewise.
28 (_Jv_JNI_ToReflectedMethod): Likewise.
29 (_Jv_JNI_AllocObject): Check argument.
30 (_Jv_JNI_NewObjectV): Likewise.
31 (_Jv_JNI_NewObject): Likewise.
32 (_Jv_JNI_NewObjectA): Likewise.
33 (_Jv_JNI_GetObjectClass): Likewise.
34 (_Jv_JNI_GetField): Likewise.
35 (_Jv_JNI_SetField): Likewise.
37 * interpret.cc (PUSHL): Don't use expression statement.
42 * jni.cc (add_char): Conditional on INTERPRETER.
43 (mangled_name): Likewise.
45 * include/java-interp.h (class _Jv_MethodBase): Conditional on
47 (class _Jv_JNIMethod): Likewise.
49 2000-02-04 Warren Levy <warrenl@cygnus.com>
51 * Makefile.am: Added MPN.java and BigInteger.java.
52 * Makefile.in: Rebuilt.
53 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
55 * java/math/BigInteger.java: New file. Based primarily on
56 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
58 2000-02-04 Tom Tromey <tromey@cygnus.com>
60 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
62 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
63 if the method is native.
64 * resolve.cc (ncode): Don't handle native methods.
65 (_Jv_JNIMethod::ncode): New method.
66 (_Jv_PrepareClass): Handle native methods.
67 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
68 Include AbstractMethodError.h.
69 (add_char): New function.
70 (mangled_name): Likewise.
71 * include/java-interp.h (class _Jv_JNIMethod): New class.
72 (class _Jv_MethodBase): New class.
73 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
74 (_Jv_InterpClass): Changed `interpreted_methods' field to type
77 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
78 * java/lang/natRuntime.cc (libraries_size, libraries_count,
79 libraries): New globals.
80 (add_library): New function.
81 (_Jv_FindSymbolInExecutable): New function.
83 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
86 2000-02-04 Andrew Haley <aph@cygnus.com>
88 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
89 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
90 * java/lang/natThrowable.cc (printRawStackTrace): Rename
91 printStackTrace to printRawStackTrace.
93 2000-02-03 Tom Tromey <tromey@cygnus.com>
95 * java/util/Calendar.java (toString): New method.
96 * java/util/SimpleTimeZone.java (clone): New method.
97 (toString): New method.
98 * java/util/TimeZone.java (clone): New method.
99 * java/text/SimpleDateFormat.java (clone): New method.
100 * java/text/NumberFormat.java (clone): New method.
101 (equals): New method.
102 * java/text/Format.java (clone): New method.
103 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
106 * java/text/DateFormat.java (clone): New method.
107 * java/text/Collator.java (clone): New method.
109 2000-02-03 Tom Tromey <tromey@cygnus.com>
111 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
114 2000-02-01 Tom Tromey <tromey@cygnus.com>
116 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
117 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
118 constructing the closure if the function is native.
119 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
120 a template function, #if'd out, or static.
121 Include <java-interp.h>.
123 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
125 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
127 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
128 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
130 (wrap_value): New function.
131 (_Jv_JNI_CallAnyMethodV): Use it.
132 (_Jv_JNI_CallAnyMethodA): Likewise.
133 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
134 (_Jv_JNI_GetStaticField): Likewise.
136 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
137 (_Jv_JNI_GetStaticField): Likewise.
139 2000-01-31 Tom Tromey <tromey@cygnus.com>
141 * prims.cc (_Jv_MallocUnchecked): New function.
142 (main_init): Call _Jv_JNI_Init.
143 * include/jvm.h (_Jv_MallocUnchecked): Declare.
144 (_Jv_JNI_Init): Declare.
145 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
147 (_Jv_JNI_NewGlobalRef): New function.
148 (_Jv_JNI_DeleteGlobalRef): New function.
149 (_Jv_JNI_DeleteLocalRef): New function.
150 (_Jv_JNI_conversion_call): Initialize and clear local reference
152 (_Jv_JNI_NewLocalRef): New function.
153 (struct _Jv_JNI_LocalFrame): New structure.
154 (_Jv_JNI_PushLocalFrame): New function.
155 (_Jv_JNI_EnsureLocalCapacity): New function.
156 (FRAME_SIZE): New define.
157 (_Jv_JNI_GetStringChars): Mark string, not characters.
158 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
159 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
160 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
162 (_Jv_JNI_DefineClass): Make return value a local ref.
163 (_Jv_JNI_FindClass): Likewise.
164 (_Jv_JNI_GetSuperclass): Likewise.
165 (_Jv_JNI_ExceptionOccurred): Likewise.
166 (_Jv_JNI_AllocObject): Likewise.
167 (_Jv_JNI_GetObjectClass): Likewise.
168 (_Jv_JNI_CallAnyMethodV): Likewise.
169 (_Jv_JNI_NewString): Likewise.
170 (_Jv_JNI_NewStringUTF): Likewise.
171 (_Jv_JNI_NewObjectArray): Likewise.
172 (_Jv_JNI_GetObjectArrayElement): Likewise.
173 (_Jv_JNI_ToReflectedField): Likewise.
174 (_Jv_JNI_ToReflectedMethod): Likewise.
175 (_Jv_JNIFunctions): Updated table for new functions.
176 (_Jv_JNI_Init): New function.
177 (mark_for_gc): Wrote.
178 (unmark_for_gc): Wrote.
179 * include/jni.h (struct JNINativeInterface): Removed name from
180 PopLocalFrame parameter.
181 (class _Jv_JNIEnv): Added `locals' field.
183 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
185 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
188 2000-01-30 Tom Tromey <tromey@cygnus.com>
190 * include/config.h.in: Rebuilt.
191 * acconfig.h (HAVE_ICONV): Define.
192 * configure: Rebuilt.
193 * configure.in: Check for `iconv' function.
194 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
195 no specific encoder exists.
196 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
197 no specific encoder exists.
198 * Makefile.in: Rebuilt.
199 * Makefile.am (convert_source_files): Mention Input_iconv.java and
201 (nat_source_files): Added natIconv.cc.
202 * gnu/gcj/convert/natIconv.cc: New file.
203 * gnu/gcj/convert/Input_iconv.java: New file.
204 * gnu/gcj/convert/Output_iconv.java: New file.
206 2000-01-28 Tom Tromey <tromey@cygnus.com>
208 * Makefile.in: Rebuilt.
209 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
211 2000-01-26 Tom Tromey <tromey@cygnus.com>
213 * gcj/method.h (JvNumMethods): Moved from Class.h.
214 (JvGetFirstMethod): Likewise.
215 * java/lang/Class.h (Object): Updated decl of
216 _Jv_JNI_ToReflectedField.
217 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
218 * Makefile.in: Rebuilt.
219 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
220 argument of _Jv_JNI_ToReflectedField.
221 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
223 (java/lang/reflect/Method.h): Likewise.
224 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
226 (jweak): New typedef.
227 (struct JNINativeInterface): Correctly declare remaining entries.
228 * jni.cc: Include Class.h, ClassLoader.h.
229 (_Jv_JNI_FindClass): New function.
230 (_Jv_JNI_DefineClass): New function.
231 (_Jv_JNI_conversion_call): New function.
232 (_Jv_JNI_FindClass): Use current class loader to find class.
233 (_Jv_JNI_ExceptionCheck): New function.
234 (_Jv_JNI_FromReflectedField): Now static.
235 (MethodClass): New define.
236 (_Jv_JNI_FromReflectedMethod): New function.
237 (_Jv_JNI_ToReflectedMethod): Likewise.
239 (_Jv_JNI_IsAssignableFrom): Renamed.
240 (_Jv_JNI_GetStringRegion): New function.
241 Include StringIndexOutOfBoundsException.h.
242 (_Jv_JNI_GetStringUTFRegion): New function.
243 (_Jv_JNIFunctions): Updated for new functions.
244 (_Jv_JNI_GetPrimitiveArrayCritical): New function
245 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
246 (_Jv_JNI_GetStringCritical): New function.
247 (_Jv_JNI_ReleaseStringCritical): Likewise.
248 (get_throwable): Removed.
249 (GCJ_JV_JNIENV_FRIEND): Removed.
250 (__GCJ_JNI_IMPL__): Define.
253 * resolve.cc (get_ffi_type_from_signature): Handle case where
256 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
258 * interpret.cc (run): Don't call println.
259 Don't include PrintStream.h.
261 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
262 nameIndex. Use "jint" as type for boffset.
263 * java/lang/Class.h (struct _Jv_Method): Made accflags a
265 (Class): Likewise. Also changed type of method_count,
266 vtable_method_count, size_in_bytes, field_count,
267 static_field_count, interface_count.
268 * gcj/array.h (__JArray): Made `length' a const jsize, not an
271 2000-01-21 Tom Tromey <tromey@cygnus.com>
273 * java/lang/reflect/natConstructor.cc (newInstance): Use
275 * include/jvm.h: Declare _Jv_CallAnyMethodA.
276 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
277 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
280 (invoke): Use _Jv_CallAnyMethodA.
282 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
283 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
285 (struct _Jv_Method): Added getNextMethod method.
286 (JvNumMethods): New function.
287 (JvGetFirstMethod): Likewise.
288 * gcj/field.h (JvGetFirstStaticField): New function.
289 (JvNumStaticFields): Likewise.
290 (getNextField): Renamed from getNextInstanceField.
291 (struct _Jv_Field): New method getClass.
292 * jni.cc: Wrote many new functions.
293 * include/jni.h (JNI_TRUE): Define.
294 (JNI_FALSE): Likewise.
295 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
296 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
297 jcharArray, jfloatArray, jdoubleArray): New typedefs.
298 (jfieldID, jmethodID): Likewise.
299 (JNI_COMMIT, JNI_ABORT): New defines.
300 (JNINativeMethod): New struct.
301 (struct JNINativeInterface): Correctly declared more entries.
302 (class _Jv_JNIEnv): Added `ex' member.
303 (JNI_VERSION_1_1): New define.
304 (JNI_VERSION_1_2): Likewise.
306 * boehm.cc (_Jv_MarkObj): Use getNextField, not
307 getNextInstanceField.
309 2000-01-20 Tom Tromey <tromey@cygnus.com>
311 * resolve.cc (StringClass): Removed.
312 * defineclass.cc (StringClass): Removed.
314 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
318 2000-01-19 Tom Tromey <tromey@cygnus.com>
320 * interpret.cc (PC_REGISTER_ASM): Removed.
322 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
325 * All files: Updated copyright to reflect Cygnus purchase.
327 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
329 * configure: Rebuilt.
330 * configure.in: Recognize --disable-interpreter.
332 2000-01-18 Andrew Haley <aph@cygnus.com>
334 * name-finder.cc (lookup): Check for dladdr function.
335 acconfig.h (HAVE_DLADDR): Add.
336 configure.in: Check for HAVE_DLADDR
338 include/config.h.in: Rebuilt.
340 2000-01-17 Andrew Haley <aph@cygnus.com>
342 * prims.cc (_Jv_RunMain): Set the name of this executable.
344 2000-01-17 Tom Tromey <tromey@cygnus.com>
346 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
347 when backtrace can't be computed.
349 * configure: Rebuilt.
350 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
352 * java/lang/Runtime.java (loadLibraryInternal): Declare.
353 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
354 (_Jv_FindClassInCache): Likewise.
355 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
356 (findSystemClass): Try to load class from compiled module.
358 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
359 (loadLibrary): Likewise.
360 (lt_preloaded_symbols): Define.
361 (loadLibraryInternal): New method.
362 * include/config.h.in: Rebuilt.
363 * acconfig.h (USE_LTDL): Added.
364 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
365 (INCLUDES): Added $(INCLTDL).
366 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
367 (libgcj_la_LIBADD): Likewise.
368 * aclocal.m4, configure: Rebuilt.
369 * configure.in: Added libltdl support.
371 2000-01-15 Tom Tromey <tromey@cygnus.com>
373 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
375 2000-01-14 Andrew Haley <aph@cygnus.com>
377 * java/lang/natThrowable.cc: New file.
379 * java/lang/Throwable.java (fillInStackTrace): Make native.
380 (printStackTrace): Call native method to do this.
381 (Throwable): Call fillInStackTrace.
382 (stackTrace): New variable.
384 * include/jvm.h: Add _Jv_ThisExecutable functions.
386 * prims.cc: (_Jv_execName): New variable.
387 (catch_segv): Call fillInStackTrace.
389 (_Jv_ThisExecutable): New functions.
390 (JvRunMain): Set the name of this executable.
392 * Makefile.am: Add java/lang/natThrowable.cc.
394 * Makefile.in: Rebuilt.
396 * acconfig.h: Add HAVE_PROC_SELF_EXE.
398 * configure.in: Force link with __frame_state_for in
399 FORCELIBGCCSPEC. Add new checks for backtrace.
400 * include/config.h.in: Rebuilt.
402 * name-finder.cc: New file.
403 * include/name-finder.h: New file.
405 2000-01-16 Anthony Green <green@cygnus.com>
407 * java/lang/StringBuffer.java (StringBuffer): Don't special case
410 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
412 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
414 2000-01-13 Tom Tromey <tromey@cygnus.com>
416 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
417 not system loader, as initiating loader.
419 2000-01-11 Tom Tromey <tromey@cygnus.com>
421 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
422 HP/UX. From David Scott Urban.
424 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
426 * java/lang/natMath.cc (pow): Cast args to `double', not
429 (IEEEremainder): Likewise.
430 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
431 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
433 2000-01-09 Anthony Green <green@cygnus.com>
435 * java/lang/natString.cc (init): Test for overflow condition
436 during out of bounds check.
437 (getChars): Throw StringIndexOutOfBoundsException, not
438 ArrayIndexOutOfBoundsException.
440 (regionMatches): Obey case option during string comparison.
442 * configure.host (ligcj_interpreter): New variable. Enable
443 interpreter by default on IA-32.
444 * configure.in: Examine libgcj_interpreter.
445 * configure: Rebuilt.
447 2000-01-07 Tom Tromey <tromey@cygnus.com>
449 * mauve-libgcj: Don't disable ClassTest.
451 * java/lang/natClass.cc (getClasses): Wrote.
453 2000-01-06 Tom Tromey <tromey@cygnus.com>
455 * java/lang/natClass.cc (_getConstructors): Correctly check
456 whether method name is the init name.
457 (getMethod): Look at accflags on method in `klass', not `this'.
459 2000-01-05 Tom Tromey <tromey@cygnus.com>
461 * java/lang/natClass.cc (getMethod): Compute offset relative to
462 `klass's methods table, not `this's table.
464 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
465 In unwrapping/widening case, check whether `k' is null, not
466 whether it is primitive. Initialize `num' from `argelts', not
467 `paramelts'. Correct create and pass arguments to ffi_call.
468 Don't let presence of `this' argument affect index used to look in
470 (COPY): Set appropriate element in `values' vector.
472 * java/lang/natClass.cc: Include <gcj/method.h>.
474 * java/lang/Class.h (_getMethods): Correctly declare as private,
477 * java/lang/Class.h (_getMethods): Declare.
478 * java/lang/Class.java (_getMethods): Declare.
479 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
480 (getDeclaredClasses): Always return empty array.
481 (_getMethods): New method.
483 (getDeclaredMethod): Return `rmethod'.
484 (finit_name): New global.
485 (getDeclaredMethods): Check for finit_name.
486 (_getMethods): Likewise.
487 (getMethod): Only return public methods.
489 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
490 jboolean and select correct ffi type on that basis.
491 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
492 Constructor call always has `void' return type.
494 2000-01-04 Tom Tromey <tromey@cygnus.com>
496 * java/lang/Class.h (getSignature): Updated.
497 * java/lang/Class.java (getSignature): Updated.
498 * java/lang/natClass.cc (getSignature): Added `is_constructor'
500 (getConstructor): Ensure constructor is public.
501 (_getConstructors): Check for public-ness of constructor when
502 `declared' is false, not when it is true.
504 2000-01-04 Warren Levy <warrenl@cygnus.com>
506 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
508 (receive): Set the sender's address in the DatagramPacket.
510 2000-01-04 Tom Tromey <tromey@cygnus.com>
512 * java/lang/reflect/natConstructor.cc (newInstance): Pass
513 declaring class as return_type argument to
514 _Jv_CallNonvirtualMethodA.
515 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
516 constructor case, create object and use it as `this' argument.
517 * java/lang/Class.h (_getConstructors): Declare.
518 (_getFields): Declare.
519 * java/lang/Class.java (getConstructors): Wrote.
520 (_getConstructors): New native method.
521 (getDeclaredConstructors): Wrote.
522 (_getFields): Declare new native method.
523 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
525 (getMethod): Work correctly when class is primitive.
526 (getDeclaredMethods): Likewise. Compute offset using `method',
528 (getDeclaredMethod): Likewise.
529 (getConstructor): Wrote.
530 (ConstructorClass): New define.
531 (getDeclaredConstructor): Wrote.
532 (_getConstructors): New method.
533 (_getFields): New method.
536 * Makefile.in: Rebuilt.
537 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
539 * prims.cc: Remove `#pragma implementation'.
540 * gcj/array.h: Remove `#pragma interface'.
542 * prims.cc (_Jv_equaln): New function.
543 * java/lang/Class.java (getSignature): Declare.
544 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
545 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
547 (getSignature): New method.
548 (getDeclaredMethod): Wrote.
550 Include StringBuffer.h.
551 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
552 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
554 (getSignature): Declare.
555 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
556 (_Jv_equaln): Declare.
557 (_Jv_CallNonvirtualMethodA): Declare.
558 * Makefile.in: Rebuilt.
559 * Makefile.am (nat_source_files): Added natConstructor.cc.
560 (java/lang/reflect/Constructor.h): New target.
561 * java/lang/reflect/natConstructor.cc: New file.
562 * java/lang/reflect/Constructor.java (newInstance): Now native.
563 (declaringClass): Renamed from decl_class.
564 (offset): Renamed from index.
565 (getType): New native method.
566 (getModifiers): Now native.
567 (getParameterTypes): Call getType if required.
568 (hashCode): Include hash code from declaring class.
569 (modifiers): Removed.
570 (toString): Call getType if required.
571 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
572 * java/lang/reflect/natMethod.cc (hack_call): New method.
573 Removed `#if 0' around FFI code.
574 Include <gnu/gcj/RawData.h>.
575 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
576 IllegalArgumentException when argument object and class disagree.
577 (_Jv_GetTypesFromSignature): New function.
579 (ObjectClass): New define.
580 (_Jv_CallNonvirtualMethodA): New function.
581 * java/lang/reflect/Method.java (hack_trampoline): New method.
582 (hack_call): New native method.
584 1999-12-21 Per Bothner <per@bothner.com>
586 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
587 offset in new Method.
589 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
591 * java/lang/natObject.cc (notify): Throw message with
592 IllegalMonitorStateException.
595 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
596 (isInterrupted_): New function, which does clear interrupt_flag.
597 (interrupt): Use `isInterrupted_'.
598 * java/lang/natThread.cc (interrupt): Add comment.
599 (join): Set `prev' in joiner loop.
600 Change various calls to `isInterrupted' to use `isInterrupted_'.
601 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
602 on linux. Set result to 0 on an interrupt. Test interrupted status
603 of java Thread object directly.
604 FLAG_INTERRUPTED: removed.
605 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
606 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
607 (_Jv_InitThreads): Don't block SIGINT.
608 (_Jv_ThreadWait): Don't configure SIGINT handler.
610 1999-12-21 Tom Tromey <tromey@cygnus.com>
612 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
614 1999-12-20 Tom Tromey <tromey@cygnus.com>
616 * java/lang/reflect/Modifier.java (STRICT): New constant.
617 (isStrict): New method.
618 (toString): Added `strict'.
620 1999-12-23 Anthony Green <green@cygnus.com>
622 * configure: Rebuilt.
623 * configure.in (LIBDATASTARTSPEC): Force data_start in with
626 1999-12-19 Anthony Green <green@cygnus.com>
628 * libgcjdata.c: New file.
629 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
630 * configure: Rebuilt.
631 * configure.in (LIBDATASTARTSPEC): Force data with a known name
633 * Makefile.in: Rebuilt.
634 * Makefile.am: Build libgcjdata.a.
636 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
637 * configure: Rebuilt.
638 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
641 1999-12-17 Tom Tromey <tromey@cygnus.com>
643 * java/lang/reflect/Method.java (toString): Call getType if
644 required. Partial fix for PR libgcj/111. From Per Bothner.
646 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
648 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
650 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
651 null String constructor parameter.
652 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
653 for exception messages.
654 BooleanClass: declare.
655 (setOption): Use BooleanClass instead of Class.forName() for
657 (bind): Cast 4th parameter of setsockopt to `char *' for
658 compatibility with older Solaris headers.
659 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
660 sprintf calls for exception messages.
661 BooleanClass, IntegerClass: declare.
662 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
665 1999-12-15 Tom Tromey <tromey@cygnus.com>
667 * java/lang/natSystem.cc (init_properties): Don't set user.name or
668 user.home if NO_GETUID defined. Only set user.dir if getcwd
671 * include/config.h.in: Rebuilt.
672 * acconfig.h (NO_GETUID): New define.
673 * configure.in: Rebuilt.
674 * configure.in: Define NO_GETUID in cross case. Check for getcwd
677 1999-12-08 Tom Tromey <tromey@cygnus.com>
679 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
680 where no recursive mutexes exist. Fixes PR libgcj/117.
682 1999-12-05 Anthony Green <green@cygnus.com>
684 * include/jvm.h: Declare many functions with
685 __attribute__((__malloc__)).
686 * gcj/javaprims.h: Ditto.
688 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
690 * THANKS: Giving credit where credit is due.
692 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
694 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
696 * java/lang/natString.cc (equalsIgnoreCase): return false if
697 anotherString is null.
698 * java/lang/Boolean.java (valueOf): return FALSE if argument is
701 1999-11-30 Tom Tromey <tromey@cygnus.com>
703 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
704 mutex to initialize. Initialize `count' if required.
707 1999-11-27 Per Bothner <per@bothner.com>
709 * exception.cc: Remove prototype declarations for malloc and free.
710 These clash with recent versions of glibc, which specifies `throws ()'
711 when __cplusplus is defined. Instead, #include <stdlib.h>.
713 1999-11-24 Tom Tromey <tromey@cygnus.com>
715 * prims.cc (_Jv_NewObjectArray): Use
716 _Jv_GetArrayElementFromElementType.
717 (_Jv_NewPrimArray): Likewise.
718 * java/lang/natObject.cc (clone): Use
719 _Jv_GetArrayElementFromElementType instead of sizeof.
720 * java/lang/natSystem.cc (arraycopy): Use
721 _Jv_GetArrayElementFromElementType.
722 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
725 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
727 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
728 Exception messages. PR java.net/57.
729 (bind): set SO_REUSEADDR before bind.
730 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
731 overruns. PR java.net/57.
733 1999-11-19 Tom Tromey <tromey@cygnus.com>
735 * Makefile.am (DIVIDESPEC): Removed.
736 (EXCEPTIONSPEC): Removed.
738 1999-11-19 Andrew Haley <aph@cygnus.com>
740 * Makefile.am (JCFLAGS): Add -L$(here)
742 * Makefile.in: Rebuild.
744 1999-11-18 Tom Tromey <tromey@cygnus.com>
746 * java/lang/natDouble.cc: Include <config.h>.
748 * include/config.h.in: Rebuilt.
749 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
750 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
752 * configure: Rebuilt.
753 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
754 requested by configure.host. Don't put `-D' option into
755 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
757 * configure: Rebuilt.
758 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
761 1999-11-18 Andrew Haley <aph@cygnus.com>
763 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
764 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
766 * Makefile.in: Rebuild
767 * acconfig.h: remove SJLJ_EXCEPTIONS
768 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
769 Do not AC_DEFINE SJLJ_EXCEPTIONS.
770 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
771 * gcj/Makefile.in, include/Makefile.in: rebuild.
772 * include/config.h.in: remove SJLJ_EXCEPTIONS.
774 1999-11-18 Andrew Haley <aph@cygnus.com>
776 * gij.cc (main): Rename label to prevent conflict.
778 * exception.cc (_Jv_type_matcher): Don't check the table if we're
779 using setjmp/longjmp exceptions: there isn't one.
781 1999-11-17 Andrew Haley <aph@cygnus.com>
783 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
784 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
785 (__sjthrow): Add declaration.
786 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
790 * Makefile.in: Rebuild
791 * acconfig.h: Add SJLJ_EXCEPTIONS
792 * configure.in: Add SJLJ_EXCEPTIONS
793 * configure: Rebuild.
794 * gcj/Makefile.in: Rebuild.
795 * gcj/cni.h: Add support for sjlj-exceptions.
796 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
797 * include/Makefile.in: Rebuild.
798 * include/default-signal.h: Add support for sjlj-exceptions.
800 1999-11-18 Tom Tromey <tromey@cygnus.com>
802 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
804 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
806 (method_cache): Made larger.
808 1999-11-11 Tom Tromey <tromey@cygnus.com>
810 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
811 initializing mutex. Initialize `count' when required.
813 1999-11-07 Anthony Green <green@trip.cygnus.com>
815 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
818 1999-11-05 Tom Tromey <tromey@cygnus.com>
820 * java/lang/natThread.cc (destroy): Removed incorrect comment.
822 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
824 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
825 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
828 1999-11-05 Tom Tromey <tromey@cygnus.com>
830 * java/lang/natThread.cc (stop): Removed argument name.
832 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
833 `private'; now has default access.
834 * Makefile.in: Rebuilt.
835 * Makefile.am (java/lang/ThreadGroup.h): Removed.
837 1999-11-04 Tom Tromey <tromey@cygnus.com>
839 * java/lang/natClass.cc (method_cache_count): Removed.
840 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
841 (_Jv_AddMethodToCache): Don't loop.
843 * configure.in: Removed `qt' threads case.
844 * include/quick-threads.h: Removed.
845 * quick-threads.cc: Removed.
847 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
848 (_Jv_ThreadDestroy): Likewise.
849 * include/no-threads.h (_Jv_ThreadCancel): Removed.
850 (_Jv_ThreadDestroy): Likewise.
851 * include/posix-threads.h (struct _Jv_Thread_t): Removed
853 (_Jv_ThreadCancel): Removed decl.
854 (_Jv_ThreadDestroy): Removed.
855 * posix-threads.cc (_Jv_ThreadCancel): Removed.
856 (throw_cleanup): Removed.
857 (really_start): Don't push or pop cleanup.
858 (_Jv_ThreadInitData): Don't initialize `exception' field.
859 * java/lang/Thread.java (stop): Officially unimplemented.
860 * java/lang/natThread.cc (stop): Officially unimplemented.
862 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
864 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
867 1999-11-02 Tom Tromey <tromey@cygnus.com>
869 * boehm.cc: Don't include boehm-config.h.
871 1999-11-01 Tom Tromey <tromey@cygnus.com>
873 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
874 (sum_blocks): Removed.
875 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
877 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
879 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
881 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
882 * java/io/InputStreamReader (InputStreamReader): ditto.
884 1999-10-22 Tom Tromey <tromey@cygnus.com>
886 * Makefile.in: Rebuilt.
887 * Makefile.am (java/lang/ClassLoader.h): New target.
888 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
891 * include/java-props.h (_Jv_Compiler_Properties): Changed
893 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
894 * include/jvm.h (_Jv_GCSetInitialHeapSize,
895 _Jv_GCSetMaximumHeapSize): Declare.
896 (JvRunMain, _Jv_RunMain): Declare.
897 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
898 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
899 (_Jv_GCSetMaximumHeapSize): Likewise.
900 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
901 (_Jv_GCSetMaximumHeapSize): Likewise.
902 * prims.cc (parse_heap_size): New function.
903 (_Jv_SetInitialHeapSize): Likewise.
904 (_Jv_SetMaximumHeapSize): Likewise.
905 (_Jv_Compiler_Properties): New global.
906 * gij.cc (help): New function.
908 (heap_size): Likewise.
909 (heap_max_size): Likewise.
910 (main): Parse arguments. Set _Jv_Compiler_Properties.
911 Include <config.h>, <java-props.h>.
912 (_Jv_Compiler_Properties): Removed.
914 1999-10-18 Tom Tromey <tromey@cygnus.com>
916 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
918 (redirect): New static field.
919 * java/lang/ClassLoader.java (getSystemClassLoader): Now
921 (getVMClassLoader0): Removed.
922 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
924 (getSystemClassLoader): Implemented.
926 1999-10-16 Anthony Green <green@cygnus.com>
928 * java/lang/ClassLoader.java (getSystemResource): Use
929 getSystemClassLoader instead of ClassLoader.system.
930 (getSystemResourceAsStream): Ditto.
932 * java/lang/natClassLoader.cc (redirect): Make static and
933 remove #ifdef INTERPRETER so it is always defined.
934 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
935 returns a VMClassLoader.
937 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
938 PropertyResourceBundle if a properties file is found before a
939 ResourceBundle class.
941 1999-10-15 Tom Tromey <tromey@cygnus.com>
943 * gij.cc (main): Formatting fixes.
944 (_Jv_Compiler_Properties): Define.
945 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
947 (init_properties): Set properites from _Jv_Compiler_Properties.
948 * include/java-props.h (_Jv_Compiler_Properties,
949 _Jv_Environment_Properties): Declare.
951 * include/java-props.h: Added copyright.
953 1999-10-13 Anthony Green <green@cygnus.com>
955 * libtool-version: Catch up by incrementing current.
957 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
958 * configure, include/config.h.in: Rebuilt.
959 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
960 * configure.in: Added --disable-getenv-properties and new define
961 `DISABLE_GETENV_PROPERTIES'.
963 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
964 (next_property_key): New function.
965 (next_property_value): New function.
966 (process_gcj_properties): New function.
967 (JvRunMain): Call process_gcj_properties.
970 * java/lang/natSystem.cc (init_properties): Set properties defined
973 * include/java-props.h: New file.
975 * java/lang/natSystem.cc (init_properties): Add new properties to
976 conform with Java Product Versioning Specification.
978 1999-10-12 Tom Tromey <tromey@cygnus.com>
980 * configure: Rebuilt.
981 * configure.in: Fixed test for --disable-java-net.
983 1999-10-06 Tom Tromey <tromey@cygnus.com>
985 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
986 when building Canadian cross.
987 (NATIVE): Don't define when cross-compiling.
989 1999-10-04 Tom Tromey <tromey@cygnus.com>
991 * java/net/natPlainSocketImpl.cc: Don't include headers if
992 java.net is disabled.
994 * Makefile.in: Rebuilt.
995 * Makefile.am (ZINCS): Removed. This is defined in configure.in
996 when needed, and must be left empty when not needed.
998 1999-10-01 Anthony Green <green@cygnus.com>
1000 * THANKS: Refreshed from htdocs version.
1002 1999-10-01 Steve Chamberlain <sac@pobox.com>
1004 * Makefile.in: Rebuilt.
1005 * Makefile.am (ZINCS): Define
1007 * configure: Rebuilt.
1008 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
1010 * java/lang/ieeefp.h: Add definitions for picoJava.
1012 1999-10-01 Tom Tromey <tromey@cygnus.com>
1014 * configure: Rebuilt.
1015 * configure.in: Set classpath when invoking gcj. Use changequote
1016 around sed invocation.
1018 * java/net/natPlainSocketImpl.cc: Stub native functions if
1019 DISABLE_JAVA_NET is defined.
1020 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
1021 typo in exception string.
1022 (getTimeToLive): Likewise.
1023 Stub native functions if DISABLE_JAVA_NET is defined.
1024 * java/net/natInetAddress.cc: Stub native functions if
1025 DISABLE_JAVA_NET is defined.
1026 * configure.host: Disable java.net for mips-tx39.
1027 * configure, include/config.h.in: Rebuilt.
1028 * acconfig.h (DISABLE_JAVA_NET): Undefine.
1029 * configure.in: Added --disable-java-net and new define
1032 1999-09-30 Tom Tromey <tromey@cygnus.com>
1034 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
1036 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
1040 1999-09-28 Tom Tromey <tromey@cygnus.com>
1042 * configure: Rebuilt.
1043 * configure.in (PROCESS): In POSIX case, only set if not already
1045 * configure.host (PROCESS): Set in mips-tx39 case.
1047 * aclocal.m4, configure: Rebuilt.
1048 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
1049 appropriate AC_PROG_ symbol.
1051 1999-09-24 Tom Tromey <tromey@cygnus.com>
1053 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
1055 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
1057 Fix for PR java.util/47:
1058 * configure, include/config.h: Rebuilt.
1059 * configure.in: Don't look for ctime or ctime_r.
1060 * Makefile.in: Rebuilt.
1061 * Makefile.am (nat_source_files): Don't mention natDate.cc.
1062 * java/util/natDate.cc: Removed.
1063 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
1065 (getAvailableIDs): Rewrote.
1066 (getTimeZone): Rewrote.
1067 * java/util/Date.java (toGMTString): New method.
1068 (toLocaleString): New method.
1069 (toString): Rewrote.
1071 1999-09-23 Tom Tromey <tromey@cygnus.com>
1073 * configure: Rebuilt.
1074 * configure.in: Print message when checking to see if gcj can
1075 handle -fuse-divide-subroutine.
1077 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
1079 * java/lang/FirstThread.java (run0): Renamed to `run'.
1082 * prims.cc (main_init): New function.
1083 (JvRunMain): Call it.
1084 (_Jv_RunMain): Likewise.
1086 (main_init): Ignore SIGPIPE. Fixes PR 51.
1088 1999-09-22 Tom Tromey <tromey@cygnus.com>
1090 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1092 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
1094 * java/text/MessageFormat.java (MessageFormat(String)): Set the
1096 * java/text/NumberFormat.java: Check that object is a Number. If
1097 not, throw IllegialArgumentException.
1099 1999-09-21 Tom Tromey <tromey@cygnus.com>
1101 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1102 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
1104 * include/posix-threads.h (_Jv_MutexDestroy): Use
1105 _Jv_PthreadGetMutex.
1106 (_Jv_MutexLock): Likewise.
1107 (_Jv_MutexUnlock): Likewise.
1109 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1110 previous patch; it too was incorrect.
1111 * java/io/PrintStream.java (PrintStream): Likewise.
1113 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1114 refer to `this' before calling superclass constructor.
1115 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1116 before calling superclass constructor.
1118 1999-09-20 Tom Tromey <tromey@cygnus.com>
1120 * configure: Rebuilt.
1121 * configure.in: Send output of `-fuse-divide-subroutine' test
1122 compilation to /dev/null.
1124 1999-09-14 Tom Tromey <tromey@cygnus.com>
1126 * include/java-insns.h: Turned constants into an enum. Added
1127 multiple-inclusion protection.
1129 1999-09-10 Tom Tromey <tromey@cygnus.com>
1131 * configure: Rebuilt.
1132 * configure.in: Build include/Makefile.
1133 * Makefile.in: Rebuilt.
1134 * Makefile.am (SUBDIRS): Added gcj and include.
1135 (install-data-local): New target.
1136 (extra_headers): New macro.
1137 * include/Makefile.in: New file.
1138 * include/Makefile.am: New file.
1140 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1141 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1143 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1144 * resolve.cc: Include config.h.
1145 * defineclass.cc: Include config.h.
1146 * include/java-interp.h: Don't include config.h.
1147 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1150 * gcj/javaprims.h: Regenerated namespace decls.
1151 * classes.pl (scan): Don't put `;' after closing brace.
1153 * Makefile.in: Rebuilt.
1154 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1155 * configure.in: Create gcj/Makefile.
1156 * gcj/Makefile.in: New file.
1157 * gcj/Makefile.am: New file.
1158 * java/lang/Object.h: Don't include any other headers.
1159 * gcj/array.h: Renamed from include/java-array.h.
1160 * gcj/field.h: Renamed from include/java-field.h.
1161 * gcj/method.h: Renamed from include/java-method.h.
1162 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1163 Updated all files to reflect new include structure.
1165 1999-09-09 Tom Tromey <tromey@cygnus.com>
1167 * configure: Rebuilt.
1168 * configure.in: Fixed typo; variable is THREADSPEC and not
1171 1999-09-08 Tom Tromey <tromey@cygnus.com>
1173 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1174 previous change and implemented a correct test in the __m_count
1177 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1180 1999-09-07 Tom Tromey <tromey@cygnus.com>
1182 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1183 code and don't set errno.
1185 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1186 not `r'. Changed `done_sleeping' to a `bool'.
1188 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1190 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1191 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1192 by another thread, rather than by the GC.
1193 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1194 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1195 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1198 1999-09-03 Tom Tromey <tromey@cygnus.com>
1200 * configure: Rebuilt.
1201 * configure.in: Check for fstat function.
1202 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1205 1999-09-02 Tom Tromey <tromey@cygnus.com>
1207 * include/java-array.h (jobjectArrayjchar): Removed unused
1210 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1211 _Jv_PrepareCompiledClass while holding class mutex.
1213 1999-09-01 Tom Tromey <tromey@cygnus.com>
1215 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1216 (_Jv_PthreadGetMutex): Use it.
1217 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1218 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1219 (_Jv_MutexLock): Likewise.
1220 (_Jv_MutexUnlock): Likewise.
1221 * include/config.h.in: Rebuilt.
1222 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1223 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1224 * configure: Rebuilt.
1225 * libgcj.spec.in: Don't mention INTERPSPEC.
1226 * configure.in (INTERPSPEC): Removed.
1227 Only run pthreads-related checks when using POSIX threads. Check
1228 for m_count and __m_count in mutex structure.
1230 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1232 * java/lang/natClass.cc: Fixed notification of threads
1233 when class initialization is complete.
1235 1999-09-01 Tom Tromey <tromey@cygnus.com>
1237 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1238 * resolve.cc: Removed constants defined by
1239 java.lang.reflect.Modifier.
1240 Include <java/lang/reflect/Modifier.h>.
1241 (_Jv_ResolvePoolEntry): Use values from Modifier.
1242 (_Jv_DetermineVTableIndex): Likewise.
1243 (_Jv_PrepareClass): Likewise.
1245 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1246 java.lang.reflect.Modifier.
1247 Include <java/lang/reflect/Modifier.h>.
1248 (checkExtends): Use values from Modifier.
1249 (checkImplements): Likewise.
1250 (handleField): Likewise.
1251 (handleConstantValueAttribute): Likewise.
1252 (handleFieldsEnd): Likewise.
1253 (handleMethod ): Likewise.
1254 (handleMethodsEnd): Likewise.
1255 (handleClassBegin): Likewise.
1256 * interpret.cc: Removed constants defined by
1257 java.lang.reflect.Modifier.
1258 (continue1): Use values from Modifier.
1259 * java/lang/natClassLoader.cc: Removed constants defined by
1260 java.lang.reflect.Modifier.
1262 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1263 JV_STATE_NOTHING, not `0'.
1264 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1266 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1267 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1269 (_Jv_PthreadGetMutex): New function.
1270 (_Jv_PthreadCheckMonitor): Use it.
1271 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1272 (_Jv_MutexLock): Update `count'.
1273 (_Jv_MutexUnlock): Likewise.
1274 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1277 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1279 * Makefile.am (.java.lo): Add rule.
1281 * Makefile.in: Rebuilt.
1283 1999-09-01 Tom Tromey <tromey@cygnus.com>
1285 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1286 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1288 (_Jv_CondNotify): Use it.
1289 (_Jv_CondNotifyAll): Likewise.
1291 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1293 1999-08-31 Tom Tromey <tromey@cygnus.com>
1295 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1298 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1300 * posix-threads.cc: Include <errno.h>.
1302 1999-08-23 Tom Tromey <tromey@cygnus.com>
1304 * boehm.cc: Undefine TRUE and FALSE.
1306 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1308 1999-08-21 Tom Tromey <tromey@cygnus.com>
1310 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1313 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1315 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1317 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1318 (HAVE_STRUCT_IP_MREQ): Added.
1319 * configure, include/config.h.in: Rebuilt.
1320 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1322 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1323 Disable if ip_mreq is not available.
1325 * configure.in: Check types ssize_t and in_addr_t.
1326 * acconfig.h: Undefine them.
1327 * configure, include/config.h.in: Rebuilt.
1329 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1330 function that detects the signature of getpwuid_r.
1331 (init_properties): Use it.
1332 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1335 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1337 * interpret.cc (continue1): Implement explicit dispatch table.
1338 insn_target: Explicit interpreter switch table.
1339 SAVE_PC: New macro, moves pc saving code into instructions that
1341 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1342 PC_REGISTER_ASM: New macro.
1343 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1344 opcode: Remove local variable.
1345 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1346 (POKEI): Use _Jv_word.
1347 (iinc): Use _Jv_word.
1348 (dupx): Change reference argument (sp) to pointer.
1351 * interpret.cc: Remove instruction timing instrumentation.
1353 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1354 comment. Don't use _Jv_ClassNameSamePackage.
1356 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1357 URLPathEntry, CacheEntry}: Removed.
1359 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1361 (.java.lo): Rule removed.
1363 * Makefile.in: Rebuilt.
1365 1999-08-19 Tom Tromey <tromey@cygnus.com>
1367 * java/lang/natThread.cc (class locker): New class.
1368 (join): Use a locker around _Jv_CondWait.
1371 1999-08-18 Tom Tromey <tromey@cygnus.com>
1373 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1374 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1376 1999-08-18 Tom Tromey <tromey@cygnus.com>
1378 * include/javaprims.h ("Java"): Regenerated namespace decls.
1380 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1382 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1383 from _Jv_InternClassStrings.
1385 * prims.cc (_Jv_RunMain): New function.
1386 (JvRunMain): Remove gij-support.
1388 * gij.cc (main): Use _Jv_RunMain.
1390 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1392 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1393 argument in temp variable.
1394 (continue1): For all op_x2y insns, use temp variable for
1395 intermediate value. Also remove some comments.
1397 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1398 (forName): Don't call _Jv_InitClass.
1400 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1402 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1404 * java/util/jar/JarInputStream.java: New file.
1406 * java/util/jar/JarEntry.java: New file.
1408 * java/util/jar/JarFile.java: New file.
1410 * java/net/URLClassLoader.java: New file.
1412 * java/net/JarURLConnection.java: New file.
1414 * gnu/gcj/protocol/jar/Handler.java: New file.
1416 * gnu/gcj/protocol/jar/Connection.java: New file.
1418 * java/security/SecureClassLoader.java: New file.
1420 * java/lang/ClassLoader.java (parent): New variable.
1421 (ClassLoader (ClassLoader)): new constructor.
1422 (findClass): New method.
1423 (loadClass): Add default 1.2 implementation.
1424 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1425 (readfully): Removed.
1427 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1428 (findSystemClass): New method.
1429 (VMClassLoader): Constructor rewritten.
1431 All other methods removed.
1433 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1434 to gnu::gcj::runtime::VMClassLoader.
1435 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1437 (VMClassLoader::findSystemClass): renamed from findBootClass.
1439 * Makefile.am: Add new files.
1440 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1442 * Makefile.in: Rebuilt.
1444 1999-08-17 Tom Tromey <tromey@cygnus.com>
1446 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1448 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1451 1999-08-16 Tom Tromey <tromey@cygnus.com>
1453 * configure: Rebuilt.
1454 * configure.in: Set DIVIDESPEC to empty string if compiler does
1455 not support -fuse-divide-subroutine.
1457 1999-08-14 Per Bothner <per@bothner.com>
1459 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1460 * java/lang/natClass.cc (initializeClass): Likewise.
1461 * java/lang/ClassLoader.java (resolveClass0): New static method.
1462 (resolveClass): Call resolveClass0.
1463 (findSystemClass): No longer static.
1465 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1467 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1469 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1471 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1474 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1476 * Makefile: Rebuilt.
1477 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1480 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1483 * configure: Rebuilt.
1484 * configure.in: Properly align --help output, fix capitalization
1486 * acinclude.m4: Likewise.
1488 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1490 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1492 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1493 (_Jv_callInterpretedMethod): Unused. Remove.
1494 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1496 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1497 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1498 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1499 * interpret.cc: use _Jv_word.
1500 * defineclass.cc: use_Jv_word.
1501 * resolve.cc: Use _Jv_word.
1502 (_Jv_ResolvePoolEntry): Return _Jv_word.
1503 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1504 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1506 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1509 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1511 * configure: Rebuilt.
1512 * configure.in (sched_yield): Try librt first, then libposix4.
1513 Add -lrt, -lposix4 to THREADSPEC.
1515 1999-08-08 Anthony Green <green@cygnus.com>
1517 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1519 1999-08-08 Anthony Green <green@cygnus.com>
1521 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1524 1999-08-08 Anthony Green <green@cygnus.com>
1528 * include/config.h.in: Rebuilt.
1529 * acconfig.h: Add INTERPRETER.
1531 * Makefile.in: Rebuilt.
1532 * Makefile.am (libffi_files): Identify the libffi object files for
1533 inclusion in libgcj.
1534 (LIBFFIINCS): Define.
1536 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1537 Dummy definition for configurations without an interpreter.
1539 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1540 java::lang::Boolean constructor.
1542 * include/java-interp.h: Always include java-cpool.h.
1544 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1545 when INTERPRETER not defined.
1547 * java/lang/Class.h (finalize): Define.
1549 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1550 IOException from File.getCanonicalPath.
1551 (getStream): Likewise.
1554 * THANKS: More thanks.
1556 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1558 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1560 (_Jv_PrepareClass): Allow non-abstract classes to
1561 have abstract subclasses.
1562 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1564 * interpret.cc (continue1/perform_invoke): Don't sign extend
1566 (continue1/lshl,lshr): Push long, not int.
1567 (continue1/ulshr): Use UINT64, not long long.
1568 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1570 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1571 * java/lang/FirstThread.java (run): Add top-level exception
1573 (run0): Renamed from run.
1575 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1577 * configure.in (--with-interpreter): Added.
1578 * include/config.h.in (INTERPRETER): Added.
1580 * java/lang/ClassLoader.java: File replaced.
1581 * java/lang/VMClassLoader.java: New file.
1582 * java/lang/natClassLoader.cc: New file.
1583 * gnu/gcj/runtime/MethodInvocation.java: New file.
1584 * gnu/gcj/util/path/SearchPath.java: New file.
1585 * gnu/gcj/util/path/PathEntry.java: New file.
1586 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1587 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1588 * gnu/gcj/util/path/URLPathEntry.java: New file.
1589 * gnu/gcj/util/path/CacheEntry.java: New file.
1590 * include/java-interp.h: New file.
1591 * include/java-cpool.h: New file.
1592 * include/java-insns.h: New file.
1593 * defineclass.cc: New file.
1594 * interpret.cc: New file.
1595 * resolve.cc: New file.
1597 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1598 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1599 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1601 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1602 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1604 (initializeClass): Use new JV_ prefixed names. Also, call
1605 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1607 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1608 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1609 JV_STATE_LINKED): New.
1610 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1611 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1612 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1613 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1614 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1615 _Jv_InterpMethodInvocation): New friends for interpreter.
1617 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1618 include/java-cpool.h and renamed with JV_ prefix.
1620 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1622 (_Jv_UnregisterClass): New decl.
1624 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1625 class loader argument.
1626 (_Jv_FindClass): Use class loader.
1628 * prims.cc (_Jv_makeUtf8Const): New function.
1629 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1630 (_Jv_NewPrimArray): Ditto.
1631 (_Jv_FindClassFromSignature): Ditto.
1632 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1633 * java/lang/reflect/natMethod.cc (getType): Ditto.
1635 * include/java-field.h (_Jv_Field::isRef): Make robust for
1636 non-resolved contexts.
1638 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1639 Also, don't mark class->next field.
1641 * java/lang/VirtualMachineError.java: Added FIXME note.
1643 * configure.in (INTERPSPEC): New spec.
1644 * libgcj.spec.in: Added INTERPSPEC.
1645 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1646 gnu/gcj/runtime/MethodInvocation.
1647 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1648 (ordinary_java_source_files): Added above mentioned java classes.
1650 * configure: Rebuilt.
1651 * Makefile.in: Rebuilt.
1653 1999-08-06 Tom Tromey <tromey@cygnus.com>
1655 * configure: Rebuilt.
1656 * configure.in: Look for sched_yield in -lrt.
1658 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1660 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1661 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1662 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1664 (toString): Print correctly when `country' is empty.
1666 1999-08-04 Per Bothner <per@bothner.com>
1668 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1670 1999-08-02 Tom Tromey <tromey@cygnus.com>
1672 * aclocal.m4, configure: Rebuilt for new libtool.
1674 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1676 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1677 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1678 * java/net/ServerSocket.java: Define ANY_IF.
1679 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1680 all network interfaces.
1681 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1682 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1684 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1686 * java/io/natFile.cc (performMkdir): Remove FIXME.
1687 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1689 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1691 * configure.in: Check for bstring.h.
1692 * configure, include/config.h.in: Rebuilt.
1693 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1694 * java/net/natPlainSocketImpl.cc: Likewise.
1696 1999-07-31 Tom Tromey <tromey@cygnus.com>
1701 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1703 * configure.in: Check for struct hostent_data and need for
1704 -D_REENTRANT for gethostbyname_r declaration.
1705 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1706 (lookup): Use hostent_data for fixed_buffer.
1707 * configure, include/config.h.in: Rebuilt.
1709 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1711 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1712 available. Don't cast memmove args to (void*).
1713 * configure.in: Do not abort if memmove is not available.
1715 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1717 * java/lang/natString.cc (substring): optimize where substring is
1719 * java/io/File.java (getName): don't return separator with file name.
1720 * java/io/natFile.cc (attr): fix overflow.
1722 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1724 * mauve-libgcj: Disable Object Serialization tests.
1726 1999-07-20 Warren Levy <warrenl@cygnus.com>
1728 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1729 Default to using PlainDatagramSocketImpl.
1730 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1732 1999-07-19 Tom Tromey <tromey@cygnus.com>
1734 * include/stamp-h.in: New file.
1736 1999-07-12 Tom Tromey <tromey@cygnus.com>
1738 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1741 1999-07-07 Andrew Haley <aph@cygnus.com>
1743 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1744 bytes to make it point after the instruction where the trap
1746 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1748 1999-07-07 Tom Tromey <tromey@cygnus.com>
1750 * mauve-libgcj: Explicitly enable formerly disabled java.text
1753 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1756 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1758 * java/net/URL.java (equals): Compare strings using String.equals.
1759 * java/net/URL.java (sameFile): Ditto.
1761 1999-07-02 Warren Levy <warrenl@cygnus.com>
1763 * configure: Rebuilt.
1764 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1765 * include/config.h.in: Rebuilt.
1766 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1767 (mcastGrp): Updated FIXME comments.
1768 (setOption): Fixed typo.
1769 (getOption):Implemented IP_MULTICAST_IF.
1771 1999-07-02 Warren Levy <warrenl@cygnus.com>
1773 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1774 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1775 (getTimeToLive): Implemented.
1776 (setOption): Implemented IP_MULTICAST_IF.
1778 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1780 * java/lang/String.java (toString): Check for this == null and throw
1781 NullPointerException.
1783 1999-07-01 Warren Levy <warrenl@cygnus.com>
1785 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1786 to count and revised comments to match.
1787 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1788 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1789 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1790 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1791 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1792 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1794 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1796 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1797 properly as count rather than outlength.
1798 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1799 output on overflow rather than buffer fill.
1800 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1801 if markPos is 0 and there is still room in the buffer.
1803 1999-07-01 Andrew Haley <aph@cygnus.com>
1805 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1806 This is a workaround for a bug in glibc's pthreads package which
1807 doesn't deliver any sigcontext information to a signal handler.
1809 1999-06-24 Tom Tromey <tromey@cygnus.com>
1811 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1812 * java/lang/fdlibm.h (HUGE): Conditionally define.
1814 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1816 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1817 * java/lang/e_log.c: Don't use __uint32_t.
1819 1999-05-27 Eric Christopher <echristo@cygnus.com>
1821 * configure: Rebuilt
1822 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1823 * acconfig.h: Rebuilt
1824 * include/config.h.in: Rebuilt
1826 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1827 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1828 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1829 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1830 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1831 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1832 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1833 and namespace collision with __uint32_t
1835 1999-06-23 Tom Tromey <tromey@cygnus.com>
1837 * java/util/zip/InflaterInputStream.java (read): Throw
1838 ZipException if inflater throws a DataFormatException.
1840 1999-06-23 Warren Levy <warrenl@cygnus.com>
1842 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1843 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1844 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1845 is not final per JDK.
1846 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1848 * java/util/zip/DataFormatException.java: Class extends Exception.
1849 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1850 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1851 * java/util/zip/ZipInputStream.java: ditto.
1852 (closeEntry): Changed method name to match JDK spec.
1854 1999-06-21 Tom Tromey <tromey@cygnus.com>
1856 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1859 * Makefile.in: Rebuilt.
1860 * Makefile.am (toolexeclibdir): Define as libdir when
1862 * configure: Rebuilt.
1863 * configure.in (USE_LIBDIR): New conditional.
1865 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1867 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1868 hostname in returned InetAddress objects.
1869 (getLocalHostname): Fix typo.
1870 * java/net/InetAddress.java (getByName): Set hostname on return
1872 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1875 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1877 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1878 interfaces if host==NULL.
1879 (accept): Throw message with InterruptedIOException.
1880 (getOption): Cache localAddress.
1881 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1882 'address' for DatagramSocket.
1883 (setTimeToLive): Fix compiler warnings.
1884 (getOption): Cache localAddress.
1885 * java/net/Socket.java (getLocalAddress): Don't need local
1886 InetAddress object. Add FIXME comment about calling checkConnect().
1887 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1888 connection queue to 50 as per JDK 1.2 docs.
1889 (ServerSocket(int,int)): Listen on all network interfaces by
1890 default, per JDK 1.2 docs.
1891 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1892 Add localAddress caching.
1894 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1896 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1898 (write(byte[],int,int)): ditto.
1900 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1902 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1904 1999-06-11 Warren Levy <warrenl@cygnus.com>
1906 * mauve-libgcj: Activated java.net Mauve tests.
1908 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1910 * java/net/natInetAddress.cc (aton): Fix typos.
1911 (lookup): Use a bigger buffer size for gethostbyname_r on all
1912 versions of glibc. Updated FIXME comment explaining this.
1913 Modified while loops to not set herr = ERANGE to work around glibc
1914 problems. Use user specified hostname in InetAddress result when
1915 available (consistent with JDK).
1917 1999-06-10 Warren Levy <warrenl@cygnus.com>
1919 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1920 Throw FileNotFoundException instead of IOException.
1922 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1924 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1925 in static field name.
1926 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1927 throughout rather than ParseException.
1929 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1931 * java/lang/Runtime.java (exec): Convert prog name and arguments
1933 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1934 environment array conversion. Preserve current environment if envp
1935 not passed. Preserve PATH unless explicitly specified.
1936 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1937 followed by EOF. Set a flag when a line is terminated by '\r' and
1938 ignore following '\n' if set.
1940 1999-06-02 Warren Levy <warrenl@cygnus.com>
1942 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1943 Ignore context if spec is an absolute URL. Fix braindead
1945 (hashCode): Use JDK 1.2 style algorithm.
1946 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1947 context URL properly.
1949 1999-05-30 Anthony Green <green@cygnus.com>
1951 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1952 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1954 1999-05-28 Warren Levy <warrenl@cygnus.com>
1956 * java/net/DatagramSocket.java (laddr): Removed.
1957 (DatagramSocket): Removed attempts to get or set laddr if null.
1958 (getLocalAddress): Reimplemented per spec.
1959 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1961 (joinGroup): Throw NullPointerException if any argument is null.
1962 (leaveGroup): ditto.
1963 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1964 * java/net/PlainSocketImpl.java (timeout): Added.
1965 (getInputStream): Added FIXME comment on how to support timeouts
1967 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1968 * java/net/Socket.java: Added FIXME comments to identify
1969 conflicting specs between the JCL and JDK 1.2 documents.
1970 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1971 if host is null. Get localport value resolved by kernel if bind
1973 (receive): Implemented support for timeouts in UDP.
1974 (setOption): Implemented based on natPlainSocketImpl version.
1976 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1977 resolved by kernel if bind lport is 0.
1978 (connect): Get localport value resolved by kernel if bind wasn't
1979 done to set localport.
1980 (accept): Implemented support for timeouts for ServerSocket.
1981 (setOption): Save value for SO_TIMEOUT.
1982 (getOption): Return timeout for SO_TIMEOUT.
1984 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1986 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1987 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1988 (setOption): Made abstract.
1989 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1990 to avoid cpp conflicts in native code.
1991 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1992 cpp conflicts in native code.
1993 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1994 * java/net/Socket.java (getLocalAddress): Implemented.
1995 (setTcpNoDelay): Implemented.
1996 (getTcpNoDelay): Implemented.
1997 (setSoLinger): Implemented.
1998 (getSoLinger): Implemented.
1999 (getSoTimeout): Verify class type.
2000 (setSendBufferSize): Implemented.
2001 (getSendBufferSize): Implemented.
2002 (setReceiveBufferSize): Implemented.
2003 (getReceiveBufferSize): Implemented.
2004 (toString): Prepended "Socket".
2005 * java/net/SocketImpl.java (toString): Rewritten.
2006 (getOption): Made abstract.
2007 (setOption): Made abstract.
2008 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
2009 (setOption): Implemented.
2010 (getOption): Implemented.
2012 1999-05-26 Warren Levy <warrenl@cygnus.com>
2014 * java/net/DatagramSocket.java (DatagramSocket): Get local host
2015 address when null. Set SO_REUSEADDR for multicasts.
2016 (getSoTimeout): Implemented.
2017 (setSoTimeout): Implemented.
2018 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
2019 * java/net/MulticastSocket.java (getInterface): Implemented.
2020 (setInterface): Implemented.
2021 (setTimeToLive): Check for invalid ttl.
2022 (joinGroup): Verify multicast address and security.
2023 (leaveGroup): Verify multicast address and security.
2024 (send): Implemented.
2025 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
2031 (getTTL): Implemented as non-native.
2035 * java/net/ServerSocket.java (setSoTimeout): Implemented.
2036 (getSoTimeout): Implemented.
2037 (setSocketFactory): Made synchronized.
2038 * java/net/Socket.java (setSoTimeout): Implemented.
2039 (getSoTimeout): Implemented.
2040 (close): Made synchronized.
2041 (setSocketImplFactory): Made synchronized.
2042 * java/net/SocketImpl.java: Implement SocketOptions interface.
2043 * java/net/natInetAddress.cc: Corrected module name at top of file.
2044 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
2045 (bind): Added FIXME.
2046 (peek): Implemented.
2052 (setOption): Implemented for SO_REUSEADDR.
2053 (getOption): Implemented for SO_REUSEADDR.
2055 1999-05-24 Tom Tromey <tromey@cygnus.com>
2057 * java/util/ResourceBundle.java (getBundle): Throw
2058 NullPointerException if baseName is null.
2060 1999-05-22 Tom Tromey <tromey@cygnus.com>
2062 * java/util/zip/ZipInputStream.java (fill): New method.
2063 (compressed_len): New instance variable.
2064 (getNextStream): Set it.
2065 (read): Reset inflater on EOF. Only read via `super' if entry is
2067 (skip): Only skip via `super' if entry is deflated.
2068 * java/util/zip/Deflater.java (last_input_count): Removed.
2069 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
2071 (needsInput): Don't use last_input_count.
2072 (setInput): Don't set last_input_count.
2073 * java/util/zip/natInflater.cc (getRemaining): Return correct
2075 (inflate): Return 0 if input array is length 0.
2076 (setInput): Don't set last_input_count.
2077 * java/util/zip/Inflater.java (last_input_count): Removed.
2079 1999-05-21 Tom Tromey <tromey@cygnus.com>
2081 * Makefile.in: Rebuilt.
2082 * Makefile.am (INCLUDES): Added $(ZINCS).
2083 * configure: Rebuilt.
2084 * configure.in (ZINCS): New subst.
2086 1999-05-21 Andrew Haley <aph@cygnus.com>
2088 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2089 to signal options to allow the same exceptions to be rethrown
2092 1999-05-20 Andrew Haley <aph@cygnus.com>
2094 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2096 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2097 (INIT_FPE): Exception string made more informative.
2098 * include/sparc-signal.h (INIT_FPE): Exception string made more
2100 * testsuite/libjava.lang/Divide_1.java: New file.
2101 * testsuite/libjava.lang/Divide_1.out: New file.
2103 1999-05-19 Tom Tromey <tromey@cygnus.com>
2105 * aclocal.m4, configure: Rebuilt.
2106 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2108 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2111 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2113 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2115 (update): Fail in default case. Always initialize `strat'.
2117 * mauve-libgcj: Enable java.util.zip.
2119 1999-05-18 Warren Levy <warrenl@cygnus.com>
2121 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2122 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2123 PlainDatagramSocketImpl.java, and SocketOptions.java.
2124 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2125 * Makefile.in: Rebuilt.
2127 * java/net/DatagramPacket.java: New file.
2128 * java/net/DatagramSocket.java: New file.
2129 * java/net/DatagramSocketImpl.java: New file.
2130 * java/net/MulticastSocket.java: New file.
2131 * java/net/PlainDatagramSocketImpl.java: New file.
2132 * java/net/SocketOptions.java: New file.
2133 * java/net/natPlainDatagramSocketImpl.cc: New file.
2135 1999-05-18 Tom Tromey <tromey@cygnus.com>
2137 * java/util/zip/ZipOutputStream.java (level): Initial value is
2138 Deflater.DEFAULT_COMPRESSION.
2139 (close): New method.
2140 (closeEntry): Likewise.
2142 (put_version): Likewise.
2143 (write_entry): Likewise.
2144 (put2, put4): Now return `int'.
2145 (comment): Default to empty string.
2146 (bytes_written): New instance variable.
2148 * java/util/zip/ZipEntry.java (setComment): Limit length of
2150 (setCrc): Check CRC validity.
2151 (setExtra): Check argument validity.
2152 (setMethod): Likewise.
2153 (setSize): Likewise.
2154 (ZipEntry): Likewise.
2155 * include/javaprims.h: Updated namespace declarations.
2156 * Makefile.in: Rebuilt.
2157 * Makefile.am (ordinary_java_source_files): Mention new files.
2158 (nat_source_files): Likewise.
2159 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2162 (getInputStream): Handle compressed entries.
2163 * java/util/zip/GZIPOutputStream.java: New file.
2164 * java/util/zip/GZIPInputStream.java: New file.
2165 * java/util/zip/DataFormatException.java: New file.
2166 * java/util/zip/CheckedInputStream.java: New file.
2167 * java/util/zip/CheckedOutputStream.java: New file.
2168 * java/util/zip/InflaterInputStream.java: Implemented.
2169 * java/util/zip/natInflater.cc: New file.
2170 * java/util/zip/Deflater.java: Implemented.
2171 * java/util/zip/natDeflater.cc: New file.
2172 * java/util/zip/DeflaterOutputStream.java: Implemented.
2174 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2175 ZipException, not IOException.
2176 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2179 1999-05-17 Tom Tromey <tromey@cygnus.com>
2181 * java/lang/natSystem.cc (init_properties): URL now points to
2184 1999-05-12 Per Bothner <bothner@cygnus.com>
2186 * java/util/Calendar.java (set): First call computeFields if needed.
2187 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2189 1999-05-12 Tom Tromey <tromey@cygnus.com>
2191 * configure: Rebuilt.
2192 * configure.in: Look for -ldl when using the Boehm collector.
2193 Look for sched_yield in -lposix4.
2195 1999-05-12 Per Bothner <bothner@cygnus.com>
2197 * java/io/File.java (mkdirs): Handle a null parent directory.
2199 1999-05-12 Tom Tromey <tromey@cygnus.com>
2201 * include/javaprims.h: Updated namespace declarations.
2202 * classes.pl (scan): Uniquify class list.
2203 * Makefile.in, configure: Rebuilt.
2204 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2205 (built_java_source_files): New macro.
2206 (nat_headers): Added built_java_source_files.
2207 (javao_files): Likewise.
2208 (EXTRA_libgcj_la_SOURCES): Likewise.
2209 (libgcj.zip): Create built class files.
2210 ($(built_java_source_files:.java=.class)): New target.
2211 (jv_convert_LDADD): Added -L$(here)/.libs.
2212 * configure.in: Create links for ConcreteProcess.java and
2213 natConcreteProcess.cc.
2214 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2215 * java/lang/natEcosProcess.cc: New file.
2216 * java/lang/EcosProcess.java: New file.
2217 * java/lang/PosixProcess.java: New file.
2218 * java/lang/natPosixProcess.cc: New file.
2220 1999-05-12 Warren Levy <warrenl@cygnus.com>
2222 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2223 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2224 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2225 (connect): Throw ConnectException.
2227 1999-05-11 Tom Tromey <tromey@cygnus.com>
2229 * Makefile.in: Rebuilt.
2230 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2231 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2234 * Makefile.in: Rebuilt.
2235 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2236 and it causes problems with libtool.
2238 * Makefile.in, configure: Rebuilt.
2239 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2240 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2241 (jv_convert_DEPENDENCIES): Added ZDEPS.
2242 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2244 (THREADSPEC): Added `-L' to point to qthreads build directory.
2248 * configure, Makefile.in: Rebuilt.
2249 * Makefile.am (toolexeclib_DATA): New macro.
2250 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2251 Recognize --with-system-zlib.
2252 (GCSPEC): New subst.
2253 (THREADSPEC): New subst.
2254 (SYSTEMSPEC): New subst.
2255 (ZLIBSPEC): New subst.
2256 * libgcj.spec.in: New file.
2258 1999-05-10 Tom Tromey <tromey@cygnus.com>
2260 * java/io/InputStreamReader.java (read): If length is 0, return
2261 0. Reset `wpos' and `wcount' when buffer has been filled and
2264 * java/util/Properties.java (save): Removed `FIXME' comment.
2265 (load): Invalid characters in \u now treated as terminators.
2266 Make sure to append character resulting from `\' handling.
2267 Cast to `char' when appending to key or value.
2268 (skip_ws): Inverted test for whitespace.
2270 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2272 (readLine): Likewise.
2273 (readFully): Implemented.
2275 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2277 * java/awt/natToolkit.cc: Added copyright header.
2278 * java/util/zip/InflaterInputStream.java: Added copyright header.
2280 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2282 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2284 (getNextStream): Likewise.
2286 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2288 (getBundle): Don't explicitly throw null pointer exception.
2290 * gnu/gcj/RawData.java: Added copyright header.
2292 * include/jni.h (_Jv_va_list): Always define as va_list.
2294 1999-05-9 Anthony Green <green@cygnus.com>
2296 * java/text/DateFormat.java (computeInstance): Separate time
2298 (getDateTimeInstance): Ditto.
2299 (getDateTimeInstance(int,int)): New method.
2301 * Makefile.in: Rebuilt.
2302 * Makefile.am (ordinary_java_source_files): Add new classes.
2304 * java/util/PropertyResourceBundle.java: New file.
2305 * gnu/gcj/util/EnumerationChain.java: New file.
2307 1999-05-07 Tom Tromey <tromey@cygnus.com>
2309 * acconfig.h (GCJVERSION): New undef.
2310 * java/lang/natSystem.cc (init_properties): Define java.version,
2311 java.class.version, os.name, os.arch, os.version.
2312 Include <sys/utsname.h> if required.
2313 * configure: Rebuilt.
2314 * configure.in: Compute and define GCJVERSION.
2316 * java/lang/natSystem.cc (default_file_encoding): Now static.
2318 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2320 * libtool-version: New file.
2321 * Makefile.in: Rebuilt.
2322 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2325 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2326 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2329 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2330 (we pick those up already).
2332 1999-05-05 Per Bothner <bothner@cygnus.com>
2334 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2335 stub classes. (This is enough to get Kawa to compile against libgcj.)
2337 * gnu/gcj/RawData.java: New class.
2338 * doc/cni.sgml: Document RawData.
2340 * java/util/zip/InflaterInputStream.java: New stub class.
2341 * java/util/zip/ZipInputStream.java: New class. Partly works.
2342 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2343 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2344 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2345 * java/util/zip/ZipOutputStream.java: Start implementation.
2347 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2348 (default_file_encoding): New global, initial value is above macro.
2349 (init_properties): Default file.encoding to default_file_encoding.
2351 * Makefile.am: Add new classes.
2353 1999-05-05 Tom Tromey <tromey@cygnus.com>
2355 * Makefile.in: Rebuilt.
2356 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2357 (clean-local): New target
2359 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2360 (load, loadLibrary): Now native.
2362 * java/lang/Runtime.java (load, loadLibrary): Now native.
2363 (init): New native method.
2364 (Runtime): Use init.
2365 * prims.cc: Include <ltdl.h> if required.
2366 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2368 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2370 * configure.in: Switch from irix threads to posix threads
2371 * configure: Regenerate.
2373 1999-04-30 Tom Tromey <tromey@cygnus.com>
2375 * Makefile.in: Rebuilt.
2376 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2378 1999-04-29 Tom Tromey <tromey@cygnus.com>
2380 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2383 * java/util/Locale.java (Locale(String,String)): Implement in
2384 terms of 3-argument version; variant now defaults to empty
2386 (toString): Assume variant is not null.
2387 (equals): Assume all strings are not null.
2388 (Locale): Throw NullPointerException if any argument is null.
2390 * java/util/ResourceBundle.java (getBundle): Don't try the base
2391 name; now implicit in partialGetBundle call.
2392 (trySomeGetBundle): Search for parent bundles and call setParent
2394 (partialGetBundle): Added `langStop' argument. Use
2395 `Locale.toString' to compute bundleName.
2396 (resource_cache): New static field.
2397 (partialGetBundle): Cache the returned resource bundle. Now
2400 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2403 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2404 * java/text/natCollator.cc (decomposeCharacter): `base' now
2406 * Makefile.in: Rebuilt.
2407 * Makefile.am (ordinary_java_source_files): Added
2408 CollationElementIterator, CollationKey, Collator,
2410 (nat_source_files): Added natCollator.cc.
2411 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2412 (compare): Pass `this' to CollationElementIterator constructor.
2413 (getCollationElementIterator): Likewise.
2414 (ceiNext): Fix off-by-one error when finding initial substring.
2415 (next): Correctly mask off bits when computing return value.
2416 Fixed return values when one string is shorter than the other.
2417 * java/text/CollationElementIterator.java (collator): New field.
2418 (CollationElementIterator): Added collator argument.
2419 (next): Call ceiNext on collator object.
2421 1999-04-26 Tom Tromey <tromey@cygnus.com>
2423 * natCollator.cc: New file.
2425 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2426 (GregorianCalendar): Use it in all constructors.
2427 * java/util/Calendar.java (Calendar): Changed argument name to
2428 `zone' to match code.
2430 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2431 * java/text/CollationKey.java: New file.
2432 * java/text/CollationElementIterator.java: New file.
2433 * java/text/Collator.java: New file.
2434 * java/text/RuleBasedCollator.java: New file.
2436 * Makefile.in: Rebuilt.
2437 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2438 (jv_convert_LDADD): Explicltly add -lm -lc.
2440 1999-04-26 Tom Tromey <tromey@cygnus.com>
2442 * configure, Makefile.in: Rebuilt.
2443 * configure.in: Added AM_PROG_LIBTOOL.
2444 (GCOBJS): Use `.lo' form of files.
2445 (THREADOBJS): Likewise.
2446 (GCDEPS): Use `.la' form of library.
2447 (GCLIBS): Set to be the same as GCDEPS.
2448 (THREADDEPS): Use `.la' form of library.
2449 (THREADLIBS): Set to be the same as THREADDEPS.
2450 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2451 toolexeclib_LIBRARIES.
2452 (libgcj_la_SOURCES): Renamed for libtoolization.
2453 (EXTRA_libgcj_la_SOURCES): Likewise.
2454 (libgcj_la_DEPENDENCIES): Likewise.
2455 (libgcj_la_LIBADD): Likewise.
2456 ($(nat_files)): Use LTCXXCOMPILE.
2457 ($(c_files)): Use LTCOMPILE.
2458 (GCJCOMPILE): New macro.
2460 (.java.o): Likewise.
2461 ($(javao_files)): Likewise.
2462 (jv_convert_LINK): Use LIBTOOL.
2463 (nat_files): Use `.lo' files.
2464 (c_files): Likewise.
2465 (javao_files): Likewise.
2466 (.class.lo): Renamed.
2467 (.java.lo): Likewise.
2468 ($(nat_files)): Depend on %.lo.
2469 ($(c_files)): Likewise.
2470 ($(javao_files)): Likewise.
2471 (jv_convert_LDADD): Link against .lo files.
2472 (jv_convert_DEPENDENCIES): Depend on .lo files.
2473 (maintainer-check): Depend on libgcj.la, but examine .a file.
2474 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2475 (libgcj_la_LDFLAGS): New macro.
2477 1999-04-23 Warren Levy <warrenl@cygnus.com>
2479 * Makefile.am: Added URLDecoder and URLEncoder.
2480 * Makefile.in: Rebuilt.
2482 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2483 setSocketImplFactory to match spec.
2484 * java/net/Socket.java (getSoLinger): Changed return type to
2487 * java/net/URLDecoder.java: New file.
2488 * java/net/URLEncoder.java: New file.
2490 1999-04-21 Tom Tromey <tromey@cygnus.com>
2492 * java/lang/natString.cc (getBytes): Reverted earlier change and
2493 applied correct fix from Per Bothner.
2495 * java/lang/String.java: Don't throw
2496 UnsupportedEncodingException.
2498 * java/lang/natString.cc (getBytes): Correctly size result
2499 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2501 1999-04-20 Andrew Haley <aph@cygnus.com>
2503 * include/sparc-signal.h: new file.
2504 * configure.in: include/sparc-signal.h added.
2505 * configure: regenerated.
2506 * prims.cc (JvRunMain): signal handling code rewritten to be more
2508 (catch_segv): ditto.
2510 * include/i386-signal.h: reorganized.
2511 * include/default-signal.h: reorganized.
2513 1999-04-19 Tom Tromey <tromey@cygnus.com>
2515 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2516 once. From Anthony Green.
2518 1999-04-19 Andrew Haley <aph@cygnus.com>
2520 * Makefile.in: Processed with new automake.
2522 1999-04-19 Tom Tromey <tromey@cygnus.com>
2524 * include/javaprims.h: Removed security namespace.
2526 1999-04-20 Anthony Green <green@cygnus.com>
2528 * java/io/PrintStream.java (println): Remove extra println.
2530 1999-04-19 Anthony Green <green@cygnus.com>
2532 * Makefile.in: Rebuilt.
2533 * Makefile.am (ordinary_java_source_files): Add new security files.
2535 * java/security/NoSuchAlgorithmException.java,
2536 java/security/MessageDigest.java: New files.
2538 * include/javaprims.h: Add security namespace.
2540 1999-04-16 Per Bothner <bothner@cygnus.com>
2542 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2543 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2544 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2545 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2546 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2547 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2548 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2549 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2550 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2551 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2552 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2553 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2554 * Makefile.am: Various changes for new files and conversions.
2556 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2557 New overloading, allows greater efficiency.
2558 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2559 New overloading (for efficiency - avoids copying).
2561 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2562 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2564 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2565 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2566 (writeChars): Don't be quite so eager to flush.
2567 * java/io/PrintStream.java: Rewrite. Now more similar to
2568 OutputStreamWriter, using explicit UnicodeToBytes converter.
2569 Also, autoflush does not need to flush so often.
2570 * java/lang/natString.cc (getBytes): More efficient algorithm.
2571 (init(jbyteArray,jint,jint,jstring)): More efficient.
2573 1999-04-15 Warren Levy <warrenl@cygnus.com>
2575 * Makefile.am (ordinary_java_source_files): Added new Connection
2576 and Handler classes in gnu.gcj.protocol.file package.
2577 * Makefile.in: Rebuilt.
2579 * gnu/gcj/protocol/file/Connection.java: New file.
2580 * gnu/gcj/protocol/file/Handler.java: New file.
2581 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2582 if doInput allows input.
2583 (getOutputStream): Check if doOutput allows output.
2584 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2586 1999-04-14 Tom Tromey <tromey@cygnus.com>
2588 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2589 buffer larger to work around bug.
2590 From Bryce McKinlay <bryce@albatross.co.nz>.
2592 1999-04-14 Andrew Haley <aph@cygnus.com>
2594 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2595 NaNs are always converted to the same long value.
2596 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2599 1999-04-13 Tom Tromey <tromey@cygnus.com>
2601 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2602 instead switch on actual element type.
2604 * Makefile.in: Rebuilt.
2605 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2607 1999-04-13 Andrew Haley <aph@cygnus.com>
2609 * include/i386-signal.h, include/default-signal.h: New files.
2610 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2612 (catch_fpe): New function.
2613 * configure.in: Make link to appropriate include/java-signal.h.
2614 * configure: Rebuilt.
2615 * Makefile.am: include/java-signal.h added to dependency list.
2616 * Makefile.in: Rebuilt.
2618 1999-04-12 Urban Widmark <urban@svenskatest.se>
2620 * java/io/DataInputStream.java (readLine): Corrected handling of
2621 empty lines, from null to "".
2623 1999-04-12 Tom Tromey <tromey@cygnus.com>
2625 * Makefile.in: Rebuilt.
2626 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2628 * java/lang/natSystem.cc (SystemClass): New define.
2629 (init_properties): Synchronize.
2631 1999-04-08 Geoff Berry <gcb@gnu.org>
2633 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2634 * natPlainSocketImpl.cc (accept): Add missing else if check
2637 1999-04-08 Tom Tromey <tromey@cygnus.com>
2639 * java/lang/Long.java (parseLong): Corrected overflow detection
2641 * java/lang/Integer.java (parseInt): Corrected overflow detection
2644 * java/io/PrintStream.java (print): Handle null string argument.
2645 (println): Likewise.
2647 1999-04-07 Warren Levy <warrenl@cygnus.com>
2649 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2650 Set count to 0 when InputStreamReader returns -1 for EOF.
2652 1999-04-07 Tom Tromey <tromey@cygnus.com>
2654 * mauve-libgcj: Omit java.text.Collator,
2655 java.text.RuleBasedCollator.
2657 1999-04-06 Tom Tromey <tromey@cygnus.com>
2659 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2660 IOException from getHttpHeaders().
2661 (getHeaderFieldKey): Likewise.
2663 * include/javaprims.h: Regenerated declarations.
2665 * Makefile.in: Rebuilt.
2666 * Makefile.am (ordinary_java_source_files): Updated for removed
2669 1999-04-06 Per Bothner <bothner@cygnus.com>
2671 * java/util/zip/Adler32.java: New class.
2672 * java/util/zip/CRC32.java: Add working method bodies.
2673 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2674 * Makefile.in: Re-generate.
2676 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2678 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2679 from version in removed www hierarchy.
2680 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2681 version in removed www hierarchy.
2683 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2684 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2685 * gnu/gcj/www/protocol/http: Removed dir.
2686 * gnu/gcj/www/protocol: Removed dir.
2687 * gnu/gcj/www: Removed dir.
2689 * java/net/HttpURLConnection.java: Revised comments to indicate
2690 missing JDK 1.2 methods.
2692 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2693 hierarchy rather than the gnu/gcj/www/protocol one.
2694 * java/net/URLConnection.java: Updated status comments.
2695 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2696 the gnu/gcj/www/content one.
2698 1999-04-06 Per Bothner <bothner@cygnus.com>
2700 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2701 The gen-from-JIS program is in $(CONVERT_DIR).
2703 1999-04-06 Tom Tromey <tromey@cygnus.com>
2705 * mauve-libgcj: Renamed from mauve-libjava.
2707 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2709 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2710 (getResponseMessage): Implemented.
2711 (getResponseVals): New private method.
2713 * java/net/URLConnection.java (getContent): Implemented.
2714 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2716 1999-04-05 Tom Tromey <tromey@cygnus.com>
2718 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2719 (jv_convert_SOURCES): Renamed.
2720 (EXTRA_jv_convert_SOURCES): Likewise.
2721 (jv_convert_LDFLAGS): Likewise.
2722 (jv_convert_LINK): Likewise.
2723 (jv_convert_LDADD): Likewise.
2724 (jv_convert_DEPENDENCIES): Likewise.
2726 * Makefile.in: Rebuilt.
2727 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2730 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2732 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2733 method for comparison.
2735 * java/net/URLConnection.java (getContentLength): Implemented.
2736 (getContentType): Implemented.
2737 (getContentEncoding): Implemented.
2738 (getExpiration): Implemented.
2739 (getDate): Implemented.
2740 (getLastModified): Implemented.
2741 (getHeaderFieldInt): Implemented.
2742 (getHeaderFieldDate): Implemented.
2744 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2746 * java/net/URLConnection.java (toString): Implemented.
2747 (setContentHandlerFactory): Implemented.
2748 (setContentHandler): Wrote new private helper method.
2750 1999-04-01 Tom Tromey <tromey@cygnus.com>
2752 * Makefile.in: Rebuilt.
2753 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2754 of 1999-03-31; we always want to build all the .class files.
2755 Depend on java_source_files, not libgcj.zip.
2756 (nat_headers): Define in terms of ordinary_java_source_files.
2758 1999-03-31 Tom Tromey <tromey@cygnus.com>
2760 * Makefile.in: Rebuilt.
2761 * Makefile.am (special_java_source_files): New macro.
2762 (java_source_files): Use it.
2763 (ordinary_java_source_files): New macro.
2764 (java_source_files): Use it.
2765 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2766 creating headers for those files with hand-maintained headers.
2768 * include/javaprims.h: Regenerated namespace declarations.
2769 * classes.pl (scan): Include [0-9] in regexp for matching class
2770 names; for java.util.zip.CRC32.
2772 * Makefile.in: Rebuilt.
2773 * Makefile.am (nat_headers): Redefined to generate all possible
2776 * java/util/zip/ZipException.java: In package java.util.zip, not
2779 1999-03-30 Tom Tromey <tromey@cygnus.com>
2781 * configure: Rebuilt.
2782 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2783 eh-common.h when not building in tree with gcc.
2785 * Makefile.in: Rebuilt.
2786 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2787 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2789 ($(java_source_files:.java=.class)): New target.
2791 * Makefile.in: Rebuilt.
2792 * Makefile.am (java_source_files): Added
2793 java/net/HttpURLConnection.java and
2794 gnu/gcj/www/protocol/http/Connection.java.
2796 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2798 * gnu/gcj/www/protocol/http/Connection.java: New file.
2799 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2800 * java/net/HttpURLConnection.java: New file.
2801 * java/net/URLConnection.java (getHeaderField): Implemented default.
2802 (getHeaderFieldKey): Implemented default method.
2804 1999-03-30 Tom Tromey <tromey@cygnus.com>
2806 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2808 * java/util/zip/Deflater.java: Added copyright header.
2809 * java/util/zip/CRC32.java: Added copyright header.
2811 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2812 that it is automatically generated.
2813 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2815 * gnu/gcj/convert/BytesToUnicode.java,
2816 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2817 gnu/gcj/convert/Input_EUCJIS.java,
2818 gnu/gcj/convert/Input_UTF8.java,
2819 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2820 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2821 gnu/gcj/convert/Output_8859_1.java,
2822 gnu/gcj/convert/Output_JavaSrc.java,
2823 gnu/gcj/convert/Output_UTF8.java,
2824 gnu/gcj/convert/UnicodeToBytes.java,
2825 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2827 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2829 * Makefile.in, configure: Rebuilt.
2830 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2831 not if test subdir exists.
2832 (--enable-gcj-classes): Removed; gcj always used to generate
2834 (JAVA, JAVAC): Removed.
2835 (--enable-single-compilation, --enable-source-compilation):
2838 (NATIVE): New conditional.
2839 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2840 `install-exec' to work.
2841 (toolexeclibdir): Likewise.
2842 (toollib_LIBRARIES): Likewise.
2843 (AM_MAKEFLAGS): Don't pass tooldir.
2845 (javao_files): Redefined.
2846 (java_source_files): New macro.
2847 (c_source_files): New macro.
2848 (c_files): Redefined in terms of c_source_files.
2849 (java_io_files, java_lang_files, java_net_files, java_text_files,
2850 java_util_files, gnu_files, java_files): Removed.
2851 (class_io_files, class_lang_files, class_net_files,
2852 class_text_files, class_util_files, class_gnu_files, class_files):
2854 (nat_source_files): New macro.
2855 (nat_files): Redefined in terms of nat_source_files.
2856 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2857 java_source_files. Removed no-such-file.c.
2859 (ETAGS_ARGS): Removed.
2860 (TAGS_DEPENDENCIES): Likewise.
2861 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2863 (src_io_files, src_lang_files, src_text_files, src_util_files,
2864 src_gnu_files): Removed.
2865 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2866 (BUILT_SOURCES): Removed.
2867 (header-check): New target.
2869 (noinst_PROGRAMS): New macro.
2870 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2872 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2873 (gen-from-JIS): Build in top directory.
2874 (convert_source_files): New macro.
2875 (convert_SOURCES): New macro.
2876 (convert_LDFLAGS): Likewise.
2877 (convert_LINK): Likewise.
2878 (convert_LDADD): Likewise.
2879 (convert_DEPENDENCIES): Likewise.
2881 (gen-from-JIS): Removed.
2882 (gen_from_JIS_SOURCES): New macro.
2883 (gen_from_JIS_LDADD): Likewise.
2884 (gen_from_JIS_DEPENDENCIES): Likewise.
2886 * configure: Rebuilt.
2887 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2888 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2889 when defining conditional.
2891 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2893 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2894 The Unicode Consortium does not permit their re-distribution.
2895 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2896 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2898 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2900 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2902 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2904 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2905 from Unicode Consortium.
2906 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2907 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2908 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2909 New tables, generated using gen-from-JIS.
2910 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2911 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2912 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2913 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2915 * gnu/gcj/convert/Convert.java: New application.
2916 * Makefile.am, Makefile.in (convert): New program, using Convert.
2917 Build the various JIS conversion tables (in maintainer mode).
2919 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2921 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2923 * java/net/URL.java (URL): Deal with null property value. Use "."
2924 as separator in building class name.
2925 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2926 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2927 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2928 beginning of the substring rather than 'start'.
2930 1999-03-26 Tom Tromey <tromey@cygnus.com>
2932 * include/java-chartables.h: Rebuilt.
2933 * include/java-chardecomp.h: New file.
2934 * chartables.pl: Generate output files directly. Added support
2935 for generating decomposition header.
2936 (canonical_decomposition, full_decomposition): New globals.
2937 (DECOMPOSITION): New constant.
2938 (process_char): Call add_decomposition.
2939 (add_decomposition): New sub.
2940 (write_decompositions): New sub.
2942 1999-03-25 Tom Tromey <tromey@cygnus.com>
2944 * java/text/CollationElementIterator.java: New file.
2946 * mauve-libjava: Omit StringTest.
2948 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2950 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2951 without a '/' when parsing protocol. Handle ref outside of parseURL.
2952 (hashCode): Implemented.
2953 (set): Don't expand -1 to default port.
2954 (getDefaultPort): Removed.
2956 * java/net/URLStreamHandler.java (parseURL): Implemented.
2957 (toExternalForm): Implemented.
2959 1999-03-23 Tom Tromey <tromey@cygnus.com>
2961 * java/text/BreakIterator.java (getSentenceInstance):
2963 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2965 * Makefile.in: Rebuilt.
2966 * Makefile.am (nat_headers): Added IllegalAccessException.
2967 * java/lang/natClass.cc (newInstance): Throw
2968 IllegalAccessException, not IllegalAccessError.
2969 Include IllegalAccessException.h.
2971 1999-03-22 Tom Tromey <tromey@cygnus.com>
2973 * gnu/gcj/text/LineBreakIterator.java: New file.
2974 * java/text/BreakIterator.java (getLineInstance): Implemented.
2976 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2977 copy constructor private.
2978 (previous, next): Removed erroneous comment about line
2980 (previous): Correctly recognize break between non-letter on the
2981 left and letter on the right. Handle apostrophes correctly.
2983 * java/text/BreakIterator.java (getWordInstance): Implemented.
2984 * gnu/gcj/text/WordBreakIterator.java: New file.
2985 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2987 * gnu/gcj/text/BaseBreakIterator.java: New file.
2989 1999-03-19 Tom Tromey <tromey@cygnus.com>
2991 * java/text/BreakIterator.java: New file (partially stubbed out).
2992 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2994 * include/config.h.in: Rebuilt.
2995 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2996 (HAVE_TIMEZONE): Likewise.
2997 * configure: Rebuilt.
2998 * configure.in: Added timezone checks.
2999 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
3002 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
3004 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
3005 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
3006 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
3007 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
3008 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
3009 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
3010 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
3011 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
3013 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
3014 (BSD_COMP): Kludge needed for Solaris2.
3016 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
3018 * java/net/URL.java (URL(java.net.URL, string): Moved code to
3019 URL(java.net.URL, string, URLStreamHandler) and call it with a
3020 null handler. In latter constructor, added SecurityManager check.
3021 (set): Expect null handler on bad protocol rather than an exception.
3022 (setURLStreamHandler): Simplified exception handling; return null
3023 on invalid protocol.
3025 1999-03-18 Tom Tromey <tromey@cygnus.com>
3027 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
3029 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
3031 Include PrintStream.h, InputStream.h.
3032 * java/lang/System.java (ForwardingInputStream,
3033 ForwardingOutputStream): Removed.
3034 (setErr, setIn, setOut): Now native.
3036 Reverted patch from 1999-02-12 to work around problem in
3038 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
3039 (_Jv_eh_free): Use free.
3041 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
3042 for path name. Minor formatting fixes.
3044 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
3046 * prims.cc (fail_on_finalization): New function.
3047 (_Jv_GCWatch): Likewise.
3049 * prims.cc (JvRunMain): Initialize `nullp'.
3050 (nullp): New global.
3051 (catch_segv): Throw nullp.
3053 * Makefile.in: Rebuilt.
3054 * Makefile.am (ZIP): In "null target" case, zip is found in the
3057 * prims.cc (_Jv_PrimClass): Initialize all elements of class
3061 * java/lang/StringBuffer.java (StringBuffer): Don't use
3062 ensureCapacity to set initial capacity.
3063 (capacity): Subtract `length' from return result.
3065 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
3067 * java/io/natFileDescriptorPosix.cc (open): Throw
3068 FileNotFoundException, but with filename and errno in msg.
3070 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
3072 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
3073 functionality folded into java/net/URL.java per spec.
3075 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
3076 than EEXIST for throwing FileNotFoundException.
3078 * java/net/URL.java: Folded in default URLStreamHandlerFactory
3079 algorithm per JDK 1.2 doc. Added SecurityManager checks.
3081 * java/net/URLStreamHandler.java (parseURL): Added stub.
3083 1999-03-15 Andrew Haley <aph@cygnus.com>
3085 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3088 1999-03-15 Andrew Haley <aph@cygnus.com>
3090 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3093 1999-03-12 Tom Tromey <tromey@cygnus.com>
3095 * prims.cc (catch_segv): New function.
3096 Include <signal.h> if HANDLE_SEGV defined. Include
3097 NullPointerException.h.
3098 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3101 * java/text/SimpleDateFormat.java (equals): Ensure that object is
3102 a SimpleDateFormat, not just a DateFormat.
3103 (defaultCenturyStart, formatData, pattern): Now private.
3104 (append): Now `final'. Use `NumberFormat.format'.
3106 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3108 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3111 * java/text/MessageFormat.java (format): Use default MessageFormat
3113 (parse, parseObject): Wrote.
3115 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3118 1999-03-12 Andrew Haley <aph@cygnus.com>
3120 * java/lang/String.java (indexOf): Replace with native method for
3122 * java/lang/natString.cc (IndexOf): As above.
3124 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3125 Argument check corrected.
3126 (init(jbyteArray,jint,jint,jstring)): Likewise.
3128 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3129 1.2 compliant method.
3131 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3133 * java/lang/Float.java (byteValue, shortValue): Likewise.
3135 1999-03-11 Tom Tromey <tromey@cygnus.com>
3137 * java/text/DecimalFormat.java (parse): Wrote.
3139 * java/text/ChoiceFormat.java (parse): Set error index on
3140 ParsePosition object.
3142 * java/lang/Integer.java (parseInt): Throw exception on overflow
3143 when intermediate result is most negative number. Changed
3144 overflow detection as well.
3145 * java/lang/Long.java (parseLong): Likewise.
3147 * configure, Makefile.in: Rebuilt.
3148 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3149 CANADIAN when building in source tree that doesn't include gcc.
3150 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3153 * java/text/ChoiceFormat.java (nextDouble): Correct some
3154 off-by-one errors when masking or adding.
3156 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3157 parameter, if given. Use `%', not IEEEremainder.
3158 (scanFix): Throw error if multiplier already set.
3159 (computePattern): Wrote.
3161 1999-03-11 Andrew Haley <aph@cygnus.com>
3163 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3165 (nextDouble): Corrected masking logic. Handle interaction between
3166 `next' and negative numbers.
3168 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3170 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3171 * java/net/URL.java: Added general comments.
3173 1999-03-10 Tom Tromey <tromey@cygnus.com>
3175 * java/text/ChoiceFormat.java (parse): Wrote.
3177 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3179 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3180 Create ChoiceFormat objects.
3181 (format): Special-case ChoiceFormat.
3182 (scanFormatElement): Include { and } in generated style string.
3184 1999-03-09 Tom Tromey <tromey@cygnus.com>
3186 * java/text/ChoiceFormat.java: New file.
3188 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3190 * java/net/BindException.java: Created.
3191 * java/net/ConnectException.java: Created.
3192 * java/net/ContentHandler.java: Created.
3193 * java/net/ContentHandlerFactory.java: Created.
3194 * java/net/FileNameMap.java: Created.
3195 * java/net/MalformedURLException.java: Created.
3196 * java/net/NoRouteToHostException.java: Created.
3197 * java/net/ProtocolException.java: Created.
3198 * java/net/ServerSocket.java (@author): Fixed typo.
3199 * java/net/Socket.java (@author): Fixed typo.
3200 * java/net/SocketImpl.java (@author): Fixed typo.
3201 * java/net/SocketImplFactory.java (@author): Fixed typo.
3202 * java/net/URL.java: Created - nearly complete.
3203 * java/net/URLConnection.java: Created - near-empty stub.
3204 * java/net/URLStreamHandler.java: Created - incomplete stub.
3205 * java/net/URLStreamHandlerFactory.java: Created.
3206 * java/net/UnknownServiceException.java: Created.
3208 1999-03-09 Tom Tromey <tromey@cygnus.com>
3210 * java/lang/System.java (ForwardingInputStream): New class.
3211 (ForwardingOutputStream): Likewise.
3212 (in, out, err): Now `final' forwarding streams.
3213 (setIn, setOut, setErr): Use appropriate method on forwarding
3216 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3219 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3221 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3222 * java/util/zip/Checksum.java: New interface (complete).
3223 * java/util/zip/Deflater.java: New class (near-empty stub).
3224 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3225 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3226 * java/util/zip/ZipEntry.java: New class (complete).
3227 * java/util/zip/ZipException.java: New class (complete).
3228 * java/util/zip/ZipFile.java: New class (incomplete stub).
3229 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3231 1999-03-09 Tom Tromey <tromey@cygnus.com>
3233 * java/text/MessageFormat.java (MessageFormatElement): Removed
3234 `public' specifiers.
3236 * java/text/DecimalFormat.java (scanFormat): Increment index
3237 before processing exponential format. Fixed a couple typos in
3239 (format): Correct normalization of exponent.
3241 1999-03-08 Tom Tromey <tromey@cygnus.com>
3243 * java/text/SimpleDateFormat.java (parse): Throw
3244 IllegalArgumentException, not ParseException.
3246 1999-03-05 Tom Tromey <tromey@cygnus.com>
3248 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3249 when constructing DateFormatSymbols. Initialize numberFormat
3250 field of superclass.
3252 * java/text/DateFormat.java (equals): Rewrote.
3253 (getAvailableLocales): New method.
3254 (getDateInstance): New methods.
3255 (getDateTimeInstance): Likewise.
3256 (getTimeInstance): Likewise.
3257 (getInstance): New method.
3258 (computeInstance): New method.
3260 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3262 (safeGetResource): New method.
3263 (DateFormatSymbols): Use Locale paramater.
3264 (equals): Now protected.
3265 Made instance variables private.
3267 1999-03-04 Tom Tromey <tromey@cygnus.com>
3269 * java/text/DecimalFormat.java: New file.
3271 * java/text/NumberFormat.java (groupingUsed,
3272 maximumFractionDigits, maximumIntegerDigits,
3273 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3275 (setDecimalSeparatorAlwaysShown, setMultiplier,
3276 setPositivePrefix): Removed.
3277 (setMinimumFractionDigits, setMaximumFractionDigits):
3279 (format): Now final.
3280 Added many new methods.
3282 * Makefile.in: Rebuilt.
3283 * Makefile.am (gnu_files): New macro.
3284 (java_files): Added gnu_files.
3285 (class_gnu_files): New macro.
3286 (class_files): Use it.
3287 (src_gnu_files): New macro.
3288 (gnu.o): New target.
3289 (javao_files): Added gnu.o.
3291 * gnu/gcj/text/LocaleData_en_US.java: New file.
3292 * gnu/gcj/text/LocaleData_en.java: New file.
3293 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3294 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3295 (safeGetString): New method.
3296 (safeGetChar): Likewise.
3298 1999-03-03 Tom Tromey <tromey@cygnus.com>
3300 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3303 * java/text/FieldPosition.java (equals): Don't check for null
3304 object; instanceof does this.
3306 * java/util/Locale.java (clone): New method.
3309 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3311 * doc/cni.sgml: New file.
3313 1999-03-03 Tom Tromey <tromey@cygnus.com>
3315 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3317 * java/text/DecimalFormatSymbols.java: New file.
3319 1999-03-02 Tom Tromey <tromey@cygnus.com>
3321 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3323 * configure: Rebuilt.
3324 * configure.in: Check for sys/filio.h.
3326 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3328 (load): Always throw UnsatisfiedLinkError.
3329 (loadLibrary): Likewise.
3331 1999-03-02 Anthony Green <green@cygnus.com>
3333 * LIBGCJ_LICENSE: New file.
3334 * LIBJAVA_LICENSE: Removed.
3335 * Many files: libjava now libgcj.
3337 1999-03-02 Tom Tromey <tromey@cygnus.com>
3339 * include/java-chartables.h: Rebuilt.
3340 * chartables.pl (print_block): Make table `const'.
3341 (print_numerics): Likewise.
3342 (print_single_map): Likewise.
3343 (print_all_block): Likewise.
3344 (print_case_table): Likewise.
3345 (print_fast_tables): Likewise.
3346 * java/lang/natCharacter.cc (table_search): `table' argument now
3349 1999-03-01 Tom Tromey <tromey@cygnus.com>
3351 * java/util/Date.java (before, after): Inverted logic.
3353 * java/util/Date.java (parse): Handle case where first character
3354 in string is open parenthesis.
3355 (skipParens): Rewrote.
3357 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3358 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3360 * java/util/Date.java (parse): Correctly compute beginning of
3363 * java/util/Hashtable.java (get): Throw NullPointerException if
3365 (containsKey): Likewise.
3367 * java/util/Properties.java (list): Truncate value to 37
3368 characters and add `...'.
3370 * java/lang/Byte.java (parseByte): Pass `radix' to
3373 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3375 Include System.h, PrintStream.h.
3377 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3380 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3382 * configure: Rebuilt.
3383 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3386 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3388 * java/lang/SecurityManager.java: Import java.net.*.
3389 (checkMulticast): New methods.
3391 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3393 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3394 (nat_files): Add java/lang/reflect/natArray.o.
3395 (nat_headers): Add Field.h and NoSuchFieldException.h.
3397 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3398 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3399 (_Jv_FromReflectedField): Fix buglet.
3400 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3401 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3402 * prims.cc (_Jv_Abort): Include message in print-out.
3404 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3405 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3406 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3408 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3409 * include/config.h.in (HAVE_PWD_H): New feature macro.
3410 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3411 user.name, user.home, user.dir.
3413 * java/lang/reflect/Array.java: New class.
3414 * java/lang/reflect/natArray.cc: New native methods.
3415 * include/javaprims.h: Declare java::lang::reflect::Array.
3417 * java/lang/Class.h (getField): New private method. Add friends.
3418 * java/lang/Class.java (getField): Add private overload.
3419 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3420 getDeclaredMethods): Add working implementations.
3421 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3422 Finish implementation, except for access control.
3424 * java/lang/reflect/Modifier.java (toString): New overload.
3425 * include/java-method.h: New file.
3426 * java/lang/reflect/Method.java (index): Replaced by offset field.
3427 Remove various private fields - get them from _Jv_Field instead.
3428 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3429 New method implementations.
3431 * java/text/NumberFormat.java: Add a bunch of methods.
3433 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3435 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3437 1999-02-26 Tom Tromey <tromey@cygnus.com>
3439 * include/config.h.in: Rebuilt.
3440 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3441 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3442 HAVE_GETHOSTBYADDR_R): New defines.
3443 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3444 gethostbyaddr_r if available.
3446 * configure: Rebuilt.
3447 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3449 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3453 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3454 * prims.cc (_Jv_AllocBytesChecked): New function.
3456 * Makefile.in: Rebuilt.
3457 * Makefile.am (SUBDIRS): Removed `test'.
3458 * configure: Rebuilt.
3459 * configure.in: Don't build test/Makefile.
3460 * test/*: Removed all files.
3462 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3464 * java/lang/reflect/Constructor.java: Make class final to match spec.
3465 * java/lang/reflect/Method.java: Ditto.
3467 1999-02-25 Tom Tromey <tromey@cygnus.com>
3469 * java/net/natInetAddress.cc: Include <sys/types.h> before
3471 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3474 * java/net/natInetAddress.cc: Declare gethostname if required.
3475 * include/config.h.in: Rebuilt.
3476 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3477 * configure: Rebuilt.
3478 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3479 declared in unistd.h.
3481 1999-02-24 Tom Tromey <tromey@cygnus.com>
3483 * Makefile.in: Rebuilt.
3484 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3485 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3486 from private to "none".
3488 * include/javaprims.h: Regenerated class declarations with new
3490 * classes.pl (scan): Only generate decls for java.lang, java.io,
3493 1999-02-24 Tom Tromey <tromey@cygnus.com>
3495 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3496 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3498 1999-02-23 Tom Tromey <tromey@cygnus.com>
3500 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3501 not already defined.
3502 * java/io/natFile.cc (_REENTRANT): Only define if not already
3504 * include/config.h.in: Rebuilt.
3505 * acconfig.h (HAVE_BOEHM_GC): New define.
3506 * configure: Rebuilt.
3507 * configure.in: Define HAVE_BOEHM_GC if using it.
3508 * posix-threads.cc: Include boehm-config.h and gc.h if
3510 * include/posix-threads.h: Added explanatory note about Boehm GC.
3512 * java/io/BufferedReader.java (readLine): Only return null when
3513 EOF seen before any characters read. (In particular, an empty
3514 line should not return null.)
3516 * java/io/BufferedInputStream.java (read): Only refill once per
3519 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3520 java.lang.Character.classify12, java.lang.String.hash,
3521 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3522 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3524 * java/text/StringCharacterIterator.java (setIndex): No error if
3526 (next): Check for `pos == end', not `end - 1'.
3527 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3528 for null text in each constructor.
3529 (clone): Fixed order of arguments to constructor.
3531 1999-02-22 Tom Tromey <tromey@cygnus.com>
3533 * include/config.h.in: Rebuilt.
3534 * acconfig.h (HAVE_INET6): New define.
3535 (HAVE_SOCKLEN_T): Likewise.
3536 * java/net/PlainSocketImpl.java: Added copyright header.
3537 * java/net/natPlainSocketImpl.cc: Added copyright header.
3538 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3540 (connect): Likewise.
3542 (socklen_t): New typedef.
3543 (accept): Use socklen_t.
3544 * java/net/natInetAddress.cc: Added copyright header.
3545 (HAVE_GETHOSTNAME): Don't define.
3546 (HAVE_INET_ADDR): Likewise.
3547 (lookup): Fixed typo.
3548 (aton): Don't use `address' as name of local variable.
3549 (lookup): Use HAVE_INET6, not AF_INET6.
3551 * configure: Rebuilt.
3552 * configure.in: Look for functions inet_aton, inet_addr,
3553 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3554 Check for socklen_t typedef.
3556 * exception.cc (__throw): Declare as __noreturn__.
3558 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3560 * Makefile.am, Makefile.in: Also build java/net.
3561 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3563 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3564 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3566 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3567 * include/cni.h (JvMalloc, JvFree): New inline functions.
3568 (JvThrow): Add __noreturn__ attribute.
3569 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3570 (_Jv_Throw): Add __noreturn__ attribute.
3572 * java/net/PlainSocketImpl.java: Init fnum to -1.
3573 * java/net/ServerSocket.java: Add missing throws clauses.
3574 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3575 don't call create on the latter. Instead, other constructors
3576 have to explicitly call SocketImpl.create.
3577 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3578 from size_t to int, to match ::accept prototype.
3579 * java/net/natInetAddress.cc: Use JvFree rather than free.
3582 1999-02-22 Tom Tromey <tromey@cygnus.com>
3584 * include/javaprims.h: Added new classes.
3585 * java/text/StringCharacterIterator.java: New file.
3586 * java/text/CharacterIterator.java: New file.
3588 * java/text/ParseException.java (errorOffset): Now private.
3590 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3592 * java/net: New package.
3593 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3594 Socket.java,SocketException.java,SocketImpl.java,
3595 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3596 natPlainSocketImpl.cc}: New classes.
3598 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3599 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3600 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3601 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3603 * classes.pl: Translate package into "namespace", not "class".
3604 * include/javaprims.h: Update class list, using "namespace".
3606 1999-02-21 Tom Tromey <tromey@cygnus.com>
3608 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3609 Define when appropriate.
3611 1999-02-20 Tom Tromey <tromey@cygnus.com>
3613 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3614 as a single byte and \u07ff as two bytes.
3615 (_Jv_GetStringUTFLength): Likewise.
3616 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3617 with 0x0f, not 0x1f.
3619 1999-02-19 Tom Tromey <tromey@cygnus.com>
3621 * java/io/DataOutputStream.java (writeUTF): When encoding
3622 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3623 * java/io/DataInputStream.java (readUTF): Mask second byte of
3624 3-byte character with 0x3f, not 0x1f.
3626 * java/io/DataInputStream.java (readLong): Cast result of
3627 readUnsignedByte to long before using.
3629 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3632 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3633 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3634 argument to avoid warning.
3635 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3636 argument to avoid warning.
3638 1999-02-18 Tom Tromey <tromey@cygnus.com>
3640 * mauve-libjava: Omit java.io.DataInputOutput and
3641 java.io.Utf8Encoding.
3643 1999-02-17 Tom Tromey <tromey@cygnus.com>
3645 * Makefile.in: Rebuilt.
3646 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3647 * java/io/natFileDescriptorPosix.cc: Include
3648 InterruptedIOException.h, Thread.h.
3649 (write): Throw InterruptedIOException when required.
3651 * posix-threads.cc: Include <signal.h>.
3652 (_Jv_ThreadInterrupt): New function.
3654 (handle_intr): New function.
3655 (_Jv_InitThreads): Register handle_intr via sigaction.
3656 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3657 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3658 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3659 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3661 1999-02-19 Andrew Haley <aph@cygnus.com>
3663 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3665 (ThreadGroup (int)): Set the maximum priority of the initial
3668 1999-02-18 Andrew Haley <aph@cygnus.com>
3670 * java/lang/natClass.cc (forName): Check for the case where a
3671 classname is the name of an array and call FindClassFromSignature
3674 1999-02-18 Andrew Haley <aph@cygnus.com>
3676 * java/lang/StringBuffer (insert (int, String)): Move up any
3677 characters above the insert position and increase the length of
3678 the string buffer by the length of the argument.
3679 (insert (int, char[])): Likewise.
3680 (insert (int, char)): Likewise.
3681 (StringBuffer (String)): The initial capacity of the string buffer
3682 is 16 plus the length of the argument.
3683 (getChars): Add a JDK 1.2 FIXME.
3685 1999-02-18 Andrew Haley <aph@cygnus.com>
3687 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3690 1999-02-18 Andrew Haley <aph@cygnus.com>
3692 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3693 instead of floating-point equality. This is necessary for
3694 correct floating-point Hashtables.
3695 * java/lang/Float.java (equals): Ditto.
3697 1999-02-16 Tom Tromey <tromey@cygnus.com>
3699 * java/util/Properties.java (list): Truncate value to 37
3700 characters and add "...".
3702 1999-02-16 Tom Tromey <tromey@cygnus.com>
3704 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3705 if initCap is negative.
3706 (contains): Implement JDK1.2-style handling of null argument.
3707 (removeElement): Likewise.
3708 (indexOf): Likewise. Also, correctly handle case where idx is
3710 (lastIndexOf): Likewise.
3712 1999-02-16 Tom Tromey <tromey@cygnus.com>
3714 * java/lang/natString.cc (init): Increment source pointer in
3717 1999-02-16 Tom Tromey <tromey@cygnus.com>
3719 * exception.cc: Include NullPointerException.h.
3720 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3722 1999-02-16 Tom Tromey <tromey@cygnus.com>
3724 * Makefile.in: Rebuilt.
3725 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3727 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3729 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3730 we're compiling canadian.
3731 * configure: Regenerated.
3733 1999-02-12 Andrew Haley <aph@cygnus.com>
3735 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3736 deleted from libgcj.
3738 1999-02-12 Tom Tromey <tromey@cygnus.com>
3740 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3741 (_Jv_eh_free): Don't call free.
3742 Don't declare malloc or free.
3744 1999-02-11 Tom Tromey <tromey@cygnus.com>
3746 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3748 1999-02-11 Andrew Haley <aph@cygnus.com>
3750 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3751 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3752 needed by java.lang.*.
3753 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3754 wf_fmod.o: Removed from libjava.a.
3756 1999-02-11 Tom Tromey <tromey@cygnus.com>
3758 * include/javaprims.h: Reverted previous change; with it
3759 exception.cc can't compile.
3761 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3763 * include/config.h.in: Rebuilt.
3764 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3766 * configure: Rebuilt.
3767 * configure.in: Check for sched_yield. Look in thread library for
3768 all thread functions.
3770 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3771 no recursive mutexes.
3772 (_Jv_MutexDestroy): Define when required.
3773 (_Jv_MutexLock): Likewise.
3774 (_Jv_MutexUnlock): Likewise.
3775 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3776 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3777 (_Jv_Mutex_t): New structure.
3778 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3779 (_Jv_MutexLock): Likewise.
3780 (_Jv_MutexUnlock): Likewise.
3782 1999-02-10 Tom Tromey <tromey@cygnus.com>
3784 * aclocal.m4, configure, Makefile.in: Rebuilt.
3785 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3787 * configure.in: Changed to track library changes.
3788 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3789 (AM_CXXFLAGS): Likewise.
3790 (data_DATA): Likewise.
3791 (AM_CFLAGS): Likewise.
3792 (JC1FLAGS): Likewise.
3793 (libgcj_a_SOURCES): Likewise.
3794 (EXTRA_libgcj_a_SOURCES): Likewise.
3795 (libgcj_a_DEPENDENCIES): Likewise.
3796 (libgcj_a_LIBADD): Likewise.
3797 (libgcj.zip): Likewise.
3798 (CLEANFILES): Likewise.
3799 ($(nat_headers)): Likewise.
3800 (java/lang/FirstThread.h): Likewise.
3801 (java/lang/ThreadGroup.h): Likewise.
3802 (java/lang/String.h): Likewise.
3803 (java/lang/reflect/Field.h): Likewise.
3804 (BUILT_SOURCES): Likewise.
3805 (maintainer-check): Likewise.
3806 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3807 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3809 * java/util/natGregorianCalendar.cc (computeFields): Only use
3810 gmtime_r and localtime_r when configured for posix threads.
3812 * java/io/natFile.cc (get_entry): Only use readdir_r when
3813 configured for posix threads.
3815 * java/util/natGregorianCalendar.cc: Update copyright notice.
3816 * java/util/TimeZone.java: Ditto.
3817 * java/util/SimpleTimeZone.java: Ditto.
3819 1999-02-08 Tom Tromey <tromey@cygnus.com>
3821 * java/io/PrintStream.java (line_separator): New constant.
3822 (print): Use line_separator, not `file.separator' property.
3823 (println): Use line_separator.
3825 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3826 when trying to instantiate Class.
3828 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3829 NullPointerException if argument is null.
3831 * java/lang/Thread.java (setName): Throw NullPointerException, not
3832 IllegalArgumentException.
3835 1999-02-08 Andrew Haley <aph@cygnus.com>
3837 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3838 create new Classes with Class.newInstance().
3840 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3841 semiciolon to end of an array Class's signature if the elements of
3842 the array aren't themselves arrays.
3844 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3845 array of objects is always sizeof(jobject), not the size of the
3846 object to which the reference points.
3848 1999-02-08 Tom Tromey <tromey@cygnus.com>
3850 * java/util/BitSet.java (and): Throw NullPointerException when
3855 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3856 if argument is negative.
3857 (clear): Correctly compute `offset'. Throw
3858 IndexOutOfBoundsException when required.
3860 (get): Likewise. Also, return correct value.
3861 (ensure): Changed meaning of argument.
3862 (toString): Wrap contents in `{}'; put spaces after commas.
3863 (hashCode): Don't try to examine elements off the end of array.
3864 (or): Correctly include bits past the end of this bit set.
3867 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3869 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3870 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3872 1999-02-04 Andrew Haley <aph@cygnus.com>
3874 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3875 '/' in signatures to '.'
3876 (Class::getName): Likewise,
3877 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3879 * java/lang/natFirstThread.cc (run): Change '/' in main's
3882 1999-02-03 Andrew Haley <aph@cygnus.com>
3884 * configure.host: -ffloat-store added when compiling libjava on
3885 x86. fdlibm apparently relies on this.
3887 * java/lang/ThreadGroup.java (add): throw an exception if the
3888 ThreadGroup has been destroyed.
3890 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3893 1999-01-27 Tom Tromey <tromey@cygnus.com>
3895 * java/lang/StringBuffer.java (StringBuffer): Handle null
3898 1999-01-21 Tom Tromey <tromey@cygnus.com>
3900 * java/lang/natFirstThread.cc (run): Don't require main to be
3903 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3905 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3907 1999-01-20 Tom Tromey <tromey@cygnus.com>
3909 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3913 (unintern): Likewise.
3914 (_Jv_NewStringUtf8Const): Likewise.
3916 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3917 Character.isLetter, to see if character is self-quoting. Also,
3918 correctly handle quoted characters.
3919 (parse): Fixed typo. Also now throws ParseException.
3921 1999-01-15 Tom Tromey <tromey@cygnus.com>
3923 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3925 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3926 _Jv_SyncInfo has `init' member.
3928 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3931 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3932 IllegalMonitorStateException if unlock fails.
3934 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3936 (_Jv_NewObjectArray): Likewise.
3938 1999-01-14 Tom Tromey <tromey@cygnus.com>
3940 * java/lang/Character.java (isJavaIdentifierPart): Allow
3941 LETTER_NUMBER characters.
3943 * chartables.pl (process_char): Fixed error messages.
3945 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3946 * chartables.pl: Updated comments. Changed detection of non-digit
3947 numeric values (no longer miss \u00b2 and friends).
3949 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3950 currency symbols and connector punctuation.
3951 (isIdentifierIgnorable): Make 7f-9f ignorable.
3953 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3954 (_Jv_NewPrimArray): Likewise.
3955 (SIZE_T_MAX): New define.
3957 * java/lang/ClassLoader.java (system): Now private and final.
3959 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3962 * configure: Rebuilt.
3963 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3965 * exception.cc: Include gansidecl.h.
3967 1999-01-14 Andrew Haley <aph@cygnus.com>
3969 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3970 corrected: they didn't treat -0.0 and NaNs correctly.
3972 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3974 * nogc.cc: Use calloc to zero out memory.
3976 1999-01-11 Tom Tromey <tromey@cygnus.com>
3978 * java/lang/natClass.cc (isInstance): Return false if this class
3979 is primitive, not if class of `obj' is primitive.
3980 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3982 * java/io/SequenceInputStream.java (close): Handle case where `in'
3985 * java/text/DateFormat.java (format): New method.
3987 * mauve-libjava: Omit java.text.DateFormat.
3989 1999-01-08 Tom Tromey <tromey@cygnus.com>
3991 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3993 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3995 (_Jv_CondNotifyAll): Likewise.
3997 * configure: Rebuilt.
3998 * configure.in: Change --enable-source-compilation logic to work
4001 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
4003 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4004 and RUNTESTFLAGS from AM_MAKEFLAGS.
4005 * configure.in: AM_RUNTESTFLAGS added.
4006 * configure.host: AM_RUNTESTFLAGS added.
4007 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
4008 * configure: rebuilt.
4009 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
4011 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
4012 argv[] made conditional because embedded targets may not have
4014 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
4015 explanatory comments added in call to super.
4017 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
4018 exception thrown in the test harness itself added.
4019 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
4021 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
4023 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
4025 1999-01-06 Tom Tromey <tromey@cygnus.com>
4027 * java/io/natFile.cc (get_entry): New function.
4028 (performList): Use get_entry.
4029 * include/config.h.in: Rebuilt.
4030 * acconfig.h (HAVE_READDIR_R): New define.
4031 * configure: Rebuilt.
4032 * configure.in: Look for readdir_r.
4034 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
4036 * java/util/natDate.cc: Added copyright header.
4038 1999-01-05 Tom Tromey <tromey@cygnus.com>
4040 * include/config.h.in: Rebuilt.
4041 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
4042 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
4043 * configure: Rebuilt.
4044 * configure.in: Check for access, stat, mkdir, rename, rmdir,
4045 unlink, and realpath.
4046 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
4047 (stat): Conditionalize on HAVE_STAT.
4049 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
4050 (performMkdir): Conditionalize on HAVE_MKDIR.
4051 (performRenameTo): Conditionalize on HAVE_RENAME.
4052 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
4054 * include/config.h.in: Rebuilt.
4055 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
4056 * configure: Rebuilt.
4057 * configure.in: Check for gmtime_r and localtime_r. For cross
4058 builds, assume they exist.
4060 * mauve-libjava: Include java.text.DateFormatSymbols again.
4061 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
4062 from setAmPmStrings.
4064 * mauve-libjava: Omit java.text.DateFormatSymbols.
4066 1999-01-04 Tom Tromey <tromey@cygnus.com>
4068 * java/io/PushbackReader.java: `off' already includes `numBytes'.
4070 * java/io/LineNumberReader.java (read): Decrement `count' in
4073 * java/io/BufferedWriter.java (write): Correctly determine when
4074 incoming data would overrun buffer. Flush buffer if write causes
4077 * java/io/BufferedOutputStream.java (write): Increment `count'
4078 after copying data into buffer.
4080 * java/io/FilterOutputStream.java (close): Call flush first.
4082 * java/io/PipedReader.java (read): If read causes `out' to catch
4083 up with `in', then set `in' to -1.
4085 * java/io/LineNumberInputStream.java (read): If no bytes read,
4086 return -1. If no bytes requested, return 0.
4088 * java/lang/StringBuffer.java (insert): If `str' is null, use
4091 1998-12-30 Anthony Green <green@cygnus.com>
4094 * LIBJAVA_LICENSE, COPYING.LIB: Created.
4096 1998-12-23 Tom Tromey <tromey@cygnus.com>
4098 * java/io/PushbackInputStream.java (read): `off' already includes
4101 1998-12-17 Tom Tromey <tromey@cygnus.com>
4103 * Makefile.in: Rebuilt.
4104 * Makefile.am (GCJ_canadian): Include target_alias.
4106 * java/lang/natFirstThread.cc (run): Require main's class to be
4109 1998-12-16 Tom Tromey <tromey@cygnus.com>
4111 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4113 * java/util/ResourceBundle.java (getBundle): Throw
4114 NullPointerException if locale argument is null.
4116 * java/lang/natClass.cc (forName): Throw NullPointerException if
4118 Include NullPointerException.h.
4120 1998-12-14 Tom Tromey <tromey@cygnus.com>
4122 * java/lang/Character.java (Character): Implement Comparable.
4123 (compareTo): New methods.
4125 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4126 correct country and language codes.
4127 (UK, US): New constants.
4128 (setDefault): Language codes are lower-case.
4130 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4131 (getDeclaredConstructors): Likewise.
4132 (getDeclaredField): Likewise.
4133 (getDeclaredFields): Likewise.
4134 (getDeclaredMethod): Likewise.
4135 (getDeclaredMethods): Likewise.
4136 (getField): Likewise.
4137 (getFields): Likewise.
4138 (getMethod): Likewise.
4139 (getMethods): Likewise.
4140 * java/lang/Class.java: Declare new methods.
4141 * java/lang/Class.h: Declare new methods.
4143 * java/lang/natString.cc: Removed `#pragma implementation'.
4144 * include/cni.h (_Jv_GetStringChars): New function.
4145 * Makefile.in: Rebuilt.
4146 * Makefile.am (java/lang/String.h): Don't generate definition for
4149 * java/lang/natString.cc: Added `#pragma implementation'.
4151 * Makefile.in: Rebuilt.
4152 * Makefile.am (libjava.zip): Put build directory first in class
4153 path to avoid bug in compiler.
4155 1998-12-14 Anthony Green <green@cygnus.com>
4157 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4159 * include/javaprims.h: Add EventObject, ListResourceBundle and
4162 1998-12-13 Anthony Green <green@cygnus.com>
4164 * mauve-libjava: Run the ResourceBundle tests.
4166 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4169 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4171 * configure.in, configure: Make --enable-gcj-classes and
4172 --enable-source-compilation the default. (Nervously...) Yeah!
4173 Based on a patch from Tom Tromey.
4175 1998-12-13 Tom Tromey <tromey@cygnus.com>
4177 * java/util/EventObject.java: New file.
4178 * java/util/EventListener.java: New file.
4180 * include/javaprims.h: Updated class declarations.
4181 * Makefile.in: Rebuilt.
4182 * Makefile.am (nat_headers): Added Constructor.h.
4183 (java/lang/String.h): Don't inline String::length().
4184 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4185 * java/lang/Class.java (initializeClass, hackRunInitializers,
4186 hackTrampoline): No need to mark `final'.
4187 (getConstructor, getConstructors): Declare.
4188 * java/lang/reflect/Field.java (equals): New method.
4189 * java/lang/natClass.cc (getConstructor): New method.
4190 (getConstructors): Likewise.
4191 Include Method.h, Field.h, Constructor.h.
4192 * java/lang/reflect/Constructor.java: New file.
4193 * java/lang/reflect/Method.java (toString): No space before open
4195 (equals): Simplified.
4197 1998-12-13 Anthony Green <green@cygnus.com>
4199 * java/util/ResourceBundle.java: New file.
4200 * java/util/ListResourceBundle.java: New file.
4202 1998-12-12 Tom Tromey <tromey@cygnus.com>
4204 * java/lang/System.java (in, out, err): Now buffered streams by
4207 * include/javaprims.h: Updated class declarations.
4208 * Makefile.in: Rebuilt.
4209 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4210 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4212 (nat_files): Added natMethod.o.
4213 * java/lang/reflect/natMethod.cc: New file.
4214 * java/lang/reflect/Field.java (Field): Now extends
4216 * java/lang/reflect/AccessibleObject.java: New file.
4217 * java/lang/reflect/InvocationTargetException.java: New file.
4219 1998-12-11 Tom Tromey <tromey@cygnus.com>
4221 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4222 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4223 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4225 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4227 1998-12-09 Tom Tromey <tromey@cygnus.com>
4229 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4232 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4233 character is already titlecase.
4235 * java/lang/Character.java (isJavaLetter): Follow spec.
4236 (isJavaLetterOrDigit): Likewise.
4238 * java/util/GregorianCalendar.java (gregorianCutover): Append
4241 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4243 1998-12-08 Tom Tromey <tromey@cygnus.com>
4245 * java/lang/reflect/Modifier.java (toString): Replace second
4246 `static' with `synchronized'.
4248 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4249 * java/lang/Object.h (Object::hack12_6): Declare.
4250 * java/lang/Object.java (hack12_6): New function.
4252 1998-12-07 Tom Tromey <tromey@cygnus.com>
4254 * include/java-array.h (__JArray::clone): Removed decl.
4255 * prims.cc (__JArray::clone): Removed.
4256 * java/lang/natObject.cc (clone): Incorporate code to clone an
4259 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4260 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4261 Correctly use dtable_method_count.
4263 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4265 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4268 1998-12-06 Anthony Green <green@cygnus.com>
4270 * mauve-libjava: Don't test ResourceBundle.
4272 1998-12-04 Tom Tromey <tromey@cygnus.com>
4274 More JDK 1.2 spec fixes:
4275 * java/util/Date.java (millis): Now private.
4276 * java/text/DateFormat.java (DateFormat): Constructor now
4278 * java/lang/Void.java (Void): New private constructor.
4279 * java/lang/System.java (System): New private constructor.
4280 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4282 (currentClassLoader): New method.
4283 (currentLoadedClass): New method.
4284 * java/lang/Math.java (Math): New private constructor.
4285 * java/lang/Compiler.java (Compiler): New private constructor.
4286 * java/lang/Class.java (Class): New private constructor.
4287 * java/lang/Double.java (toString): Removed access specifier from
4288 two-argument `toString' method.
4290 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4292 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4293 causes it to be flushed from an fp register (where it may be
4294 longer than double precision) to a double in memory. This is
4295 essential to ensure correct rounding behaviour.
4297 1998-12-04 Tom Tromey <tromey@cygnus.com>
4299 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4302 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4303 explaining apparent divergence from JDK 1.2.
4305 1998-12-04 Per Bothner <bothner@cygnus.com>
4307 * include/no-threads.h: Remove unused parameter names.
4308 This silences a bunch of warnings.
4310 1998-12-04 Tom Tromey <tromey@cygnus.com>
4312 * include/config.h.in: Rebuilt.
4313 * acconfig.h (HAVE_CTIME_R): New symbol.
4315 1998-12-03 Tom Tromey <tromey@cygnus.com>
4317 * mauve-libjava: Added many more categories to reject.
4319 Changes to follow JDK1.2 spec:
4320 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4321 setErr, setIn, setOut): No need to be `final'.
4322 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4323 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4324 * java/lang/Object.java (wait): `nanos' argument is an int.
4325 * java/lang/VirtualMachineError.java: Class is abstract.
4326 * java/lang/ThreadDeath.java: Made constructors public.
4327 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4330 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4332 * java/text/DateFormatSymbols.java (getAmPmStrings,
4333 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4335 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4337 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4338 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4339 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4342 * java/lang/IllegalThreadStateException.java
4343 (IllegalThreadStateException): Changed extending class to match spec.
4345 * java/lang/NumberFormatException.java
4346 (java/lang/NumberFormatException): Changed extending class to match
4349 * java/util/Observer.java (Observer): Changed sig to match JCL.
4351 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4353 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4354 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4355 signature to match JDK 1.1 and 1.2.
4357 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4359 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4360 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4361 * Makefile.in, configure: Rebuilt.
4363 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4366 1998-12-02 Tom Tromey <tromey@cygnus.com>
4368 * mauve-libjava: New file.
4370 The remaining `-W -Wall' fixes:
4371 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4373 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4375 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4377 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4379 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4381 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4383 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4385 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4387 * java/lang/mprec.c (Balloc): Removed unused variable.
4388 (mult): Added parentheses per gcc suggestion.
4389 (pow5mult): Likewise.
4394 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4395 suggestion. Added cast to `int' to avoid signed/unsigned
4397 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4399 (IsAssignableFrom): Likewise.
4400 (_Jv_JNI_GetObjectField): Likewise.
4401 (_Jv_JNI_GetByteField): Likewise.
4402 (_Jv_JNI_GetShortField): Likewise.
4403 (_Jv_JNI_GetIntField): Likewise.
4404 (_Jv_JNI_GetLongField): Likewise.
4405 (_Jv_JNI_GetStringLength): Likewise.
4406 (_Jv_JNI_ToReflectedField): Likewise.
4407 (_Jv_JNI_FromReflectedField): Likewise.
4408 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4410 * Makefile.in: Rebuilt.
4411 * Makefile.am (AM_CFLAGS): Define conditionally.
4412 (WARNINGS): New macro.
4413 (AM_CXXFLAGS): Include WARNINGS.
4414 * configure: Rebuilt.
4415 * configure.in (USING_GCC): New conditional.
4417 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4419 * java/lang/Character.java: Changed classification constants to
4420 type `byte' to match JDK 1.2 docs.
4422 1998-12-01 Tom Tromey <tromey@cygnus.com>
4424 Some fixes to be `-W -Wall' clean:
4425 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4426 (_Jv_MarkArray): Likewise.
4427 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4428 (to_upper_title): Likewise.
4429 (isTitleCase): Likewise.
4430 (toTitleCase): Likewise.
4431 (getNumericValue): Likewise.
4432 (isLowerCase): Likewise.
4433 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4434 (avoids compiler warning).
4435 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4437 (getDeclaringClass): Likewise.
4438 (_Jv_LookupInterfaceMethod): Likewise.
4439 (_Jv_NewClass): Removed name of unused parameter.
4440 * exception.cc (_Jv_type_matcher): Removed unused variable.
4441 (_Jv_setup_eh_info): Removed name of unused parameter.
4442 * prims.cc (_Jv_NewArray): Always return a value.
4443 (_Jv_FindClassFromSignature): Likewise.
4444 * include/java-field.h (getNameUtf8Const): Removed name of unused
4446 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4448 (_Jv_ThreadSetPriority): Likewise.
4450 * java/lang/natString.cc (hashChars): Now static.
4452 * java/lang/FirstThread.java (FirstThread): Now final.
4454 * java/io/File.java (performMkdir, performRenameTo): Now private.
4456 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4457 if no time function defined.
4459 * configure: Rebuilt.
4460 * configure.in: Look for ctime_r, ctime.
4461 * java/util/Date.java (toString): Now native.
4462 * java/util/natDate.cc (toString): Rewrote.
4464 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4466 * Add LDFLAGS line to allow TX39 test cases to link when cross
4469 1998-11-23 Anthony Green <green@cygnus.com>
4471 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4472 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4473 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4474 include/java-array.h, include/java-assert.h, include/java-field.h,
4475 include/javaprims.h, include/jni.h, include/jvm.h,
4476 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4477 include/quick-threads.h, java/io/BufferedInputStream.java,
4478 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4479 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4480 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4481 java/io/CharArrayWriter.java,
4482 java/io/CharConversionException.java, java/io/DataInput.java,
4483 java/io/DataInputStream.java, java/io/DataOutput.java,
4484 java/io/DataOutputStream.java, java/io/EOFException.java,
4485 java/io/File.java, java/io/FileDescriptor.java,
4486 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4487 java/io/FileOutputStream.java, java/io/FileReader.java,
4488 java/io/FileWriter.java, java/io/FilenameFilter.java,
4489 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4490 java/io/FilterReader.java, java/io/FilterWriter.java,
4491 java/io/IOException.java, java/io/InputStream.java,
4492 java/io/InputStreamReader.java,
4493 java/io/InterruptedIOException.java,
4494 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4495 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4496 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4497 java/io/PipedReader.java, java/io/PipedWriter.java,
4498 java/io/PrintStream.java, java/io/PrintWriter.java,
4499 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4500 java/io/RandomAccessFile.java, java/io/Reader.java,
4501 java/io/SequenceInputStream.java, java/io/Serializable.java,
4502 java/io/StreamTokenizer.java,
4503 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4504 java/io/StringWriter.java, java/io/SyncFailedException.java,
4505 java/io/UTFDataFormatException.java,
4506 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4507 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4508 java/io/natFileDescriptorPosix.cc,
4509 java/lang/AbstractMethodError.java,
4510 java/lang/ArithmeticException.java,
4511 java/lang/ArrayIndexOutOfBoundsException.java,
4512 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4513 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4514 java/lang/Class.java, java/lang/ClassCastException.java,
4515 java/lang/ClassCircularityError.java,
4516 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4517 java/lang/ClassNotFoundException.java,
4518 java/lang/CloneNotSupportedException.java,
4519 java/lang/Cloneable.java, java/lang/Comparable.java,
4520 java/lang/Compiler.java, java/lang/Double.java,
4521 java/lang/Error.java, java/lang/Exception.java,
4522 java/lang/ExceptionInInitializerError.java,
4523 java/lang/FirstThread.java, java/lang/Float.java,
4524 java/lang/IllegalAccessError.java,
4525 java/lang/IllegalAccessException.java,
4526 java/lang/IllegalArgumentException.java,
4527 java/lang/IllegalMonitorStateException.java,
4528 java/lang/IllegalStateException.java,
4529 java/lang/IllegalThreadStateException.java,
4530 java/lang/IncompatibleClassChangeError.java,
4531 java/lang/IndexOutOfBoundsException.java,
4532 java/lang/InstantiationError.java,
4533 java/lang/InstantiationException.java, java/lang/Integer.java,
4534 java/lang/InternalError.java, java/lang/InterruptedException.java,
4535 java/lang/LinkageError.java, java/lang/Long.java,
4536 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4537 java/lang/NoClassDefFoundError.java,
4538 java/lang/NoSuchFieldError.java,
4539 java/lang/NoSuchFieldException.java,
4540 java/lang/NoSuchMethodError.java,
4541 java/lang/NoSuchMethodException.java,
4542 java/lang/NullPointerException.java, java/lang/Number.java,
4543 java/lang/NumberFormatException.java, java/lang/Object.h,
4544 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4545 java/lang/Process.java, java/lang/Runnable.java,
4546 java/lang/Runtime.java, java/lang/RuntimeException.java,
4547 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4548 java/lang/Short.java, java/lang/StackOverflowError.java,
4549 java/lang/String.java, java/lang/StringBuffer.java,
4550 java/lang/StringIndexOutOfBoundsException.java,
4551 java/lang/System.java, java/lang/Thread.java,
4552 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4553 java/lang/Throwable.java, java/lang/UnknownError.java,
4554 java/lang/UnsatisfiedLinkError.java,
4555 java/lang/UnsupportedOperationException.java,
4556 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4557 java/lang/Void.java, java/lang/natCharacter.cc,
4558 java/lang/natClass.cc, java/lang/natDouble.cc,
4559 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4560 java/lang/natMath.cc, java/lang/natObject.cc,
4561 java/lang/natRuntime.cc, java/lang/natString.cc,
4562 java/lang/natSystem.cc, java/lang/natThread.cc,
4563 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4564 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4565 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4566 java/text/FieldPosition.java, java/text/Format.java,
4567 java/text/NumberFormat.java, java/text/ParseException.java,
4568 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4569 java/util/BitSet.java, java/util/Calendar.java,
4570 java/util/ConcurrentModificationException.java,
4571 java/util/Date.java, java/util/Dictionary.java,
4572 java/util/EmptyStackException.java, java/util/Enumeration.java,
4573 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4574 java/util/Locale.java, java/util/MissingResourceException.java,
4575 java/util/NoSuchElementException.java, java/util/Observable.java,
4576 java/util/Observer.java, java/util/Properties.java,
4577 java/util/Random.java, java/util/SimpleTimeZone.java,
4578 java/util/Stack.java, java/util/StringTokenizer.java,
4579 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4580 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4583 * exception.cc: Include eh-common.h instead of duplicating
4586 1998-11-23 Tom Tromey <tromey@cygnus.com>
4588 * configure.host: Don't add `-O2' to libjava_flags. Only add
4589 `-Os' to libjava_flags once.
4591 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4593 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4594 * Makefile.in: likewise
4595 * acconfig.h: add ECOS conditional for configure.h
4596 * config.h.in: likewise
4597 * configure: add test for --with-ecos
4598 * configure.in: likewise
4599 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4600 rename call to avoid name clash.
4601 * java/lang/natSystem.cc: add eCos clock support.
4602 * java/util/natGregorianCalendar.cc: add eCos support.
4604 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4606 * Makefile.am, Makefile.in, configure.host: tx39 build option
4609 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4611 * java/io/BufferedReader.java: Added more comments for clarity.
4612 (mark): Used more mnemonic name for local var extraBuffSpace.
4614 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4615 confusion with private method of same name in superclass.
4616 (skipRedundantLF): Set fields in special case to avoid infinite
4617 recursion. Check if markPos has been invalidated in special case.
4618 (readLine): Rewritten to use readLine method of superclass.
4619 (skip): Incorporated code from lineEnd.
4621 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4623 * java/io/BufferedReader.java (readLine): New method.
4624 (lineEnd): new private method.
4625 (mark): Track special case for readLine of getting '\r' at the
4632 * java/io/InputStreamReader.java (read): Return number chars skipped
4633 rather than requested.
4635 * java/lang/StringBuffer.java (append): Update count and differentiate
4636 between field and local variable.
4638 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4639 seconds. Deal with military style time.
4640 (parse): Consistently treat all timezones in minutes until final
4641 calculation. Flag as non-local timezone. Return value in milliseconds.
4642 (setTime): Adjust for year offset from 1900.
4643 (UTC): Adjust for year offset from 1900.
4645 1998-11-17 Tom Tromey <tromey@cygnus.com>
4647 * configure: Rebuilt.
4648 * configure.in: Switch on host, not target.
4650 * Makefile.in: Rebuilt.
4651 * Makefile.am (GCJ_no): New macro.
4652 (GCJ): Use @CANADIAN@.
4653 (GCJH_no): New macro
4654 (GCJH_canadian): New macro.
4655 (GCJH): Use @CANADIAN@.
4656 (ZIP_no): New macro.
4657 (ZIP_canadian): New macro.
4658 (ZIP): Use @CANADIAN@.
4659 * aclocal.m4, configure: Rebuilt.
4660 * configure.in (CANADIAN): Compute and subst.
4662 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4664 * java/io/FileDescriptor.java (finalize): Only close file
4665 descriptor if valid.
4667 1998-11-17 Tom Tromey <tromey@cygnus.com>
4669 * prims.cc (_Jv_InitRuntime): Removed.
4671 1998-11-16 Tom Tromey <tromey@cygnus.com>
4673 * java/io/FileOutputStream.java (close): Only close file
4674 descriptor if valid.
4675 (finalize): New method.
4677 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4678 (_Jv_NewPrimArray): Likewise.
4679 * boehm.cc (_Jv_RegisterFinalizer): Use
4680 GC_REGISTER_FINALIZER_NO_ORDER.
4681 (GC_GENERIC_MALLOC): New define.
4682 (_Jv_AllocObj): Use it.
4683 (_Jv_AllocArray): Likewise.
4684 (_Jv_AllocBytes): Likewise.
4685 (_Jv_MarkObj): Just return if vtbl not set.
4686 (_Jv_MarkArray): Likewise.
4687 (MAYBE_MARK): New macro; use everywhere.
4688 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4690 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4692 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4693 to a jlong before calculation to prevent overflow.
4695 1998-11-16 Tom Tromey <tromey@cygnus.com>
4697 * Makefile.in: Rebuilt.
4698 * Makefile.am (nat_headers): Fixed typo.
4700 1998-11-15 Tom Tromey <tromey@cygnus.com>
4702 * java/lang/Class.h (Class::getName): Removed definition.
4703 * Makefile.in: Rebuilt.
4704 * Makefile.am (nat_headers): Added InstantiationException.h,
4705 NoSuchMethodException.h.
4706 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4707 (init_name): New global.
4708 (hackRunInitializers): Use clinit_name.
4709 Include InstantiationException.h, NoSuchMethodException.h.
4710 (newInstance): Do some error checking (but not all). Call
4712 (forName): Throw exception if class not found.
4713 (getName): New method.
4714 (forName): Transform class name from external format to internal
4715 format before lookup.
4717 1998-11-15 Anthony Green <green@cygnus.com>
4719 * java/lang/Class.h (Class::forName): Method is static.
4721 * java/lang/natClass.cc (newInstance): Add simple implementation.
4724 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4726 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4727 int), for compatibility with jc1.
4729 1998-11-14 Tom Tromey <tromey@cygnus.com>
4731 * include/config.h.in: Rebuilt.
4732 * acconfig.h (LINUX_THREADS): New define.
4733 * configure: Rebuilt.
4734 * configure.in: Define LINUX_THREADS if using POSIX threads on
4735 Linux. Look for pthread_mutexattr_setkind_np function.
4736 * posix-threads.cc (throw_cleanup): New function.
4737 (really_start): Push cleanup function.
4738 (_Jv_ThreadCancel): New function.
4739 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4740 (_Jv_ThreadInitData): Set `exception' field in new structure.
4741 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4743 (_Jv_ThreadWait): New function.
4744 (_Jv_InitThreads): Initialize daemon globals.
4745 (FLAG_DAEMON): New macro.
4746 (really_start): Notify daemon_cond when non-daemon thread exits.
4747 Include <java/lang/System.h>.
4748 (struct starter): `object' field now a thread.
4749 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4750 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4751 (_Jv_ThreadWait): Removed definition.
4752 (_Jv_Thread_t): Added `exception' field.
4753 (_Jv_ThreadCancel): Removed definition.
4755 1998-11-13 Tom Tromey <tromey@cygnus.com>
4757 * Makefile.in: Rebuilt.
4758 * Makefile.am (libjava.zip): Compute javac before changing
4761 * Makefile.in: Rebuilt.
4762 * Makefile.am (libjava.zip): Include directory entries.
4764 * Makefile.in: Rebuilt.
4765 * Makefile.am (expanded): New macro.
4768 1998-11-12 Tom Tromey <tromey@cygnus.com>
4770 * prims.cc (clone): New function.
4771 * include/java-array.h (__JArray::clone): Removed definition.
4773 * java/lang/natObject.cc (clone): Don't assert that class is not
4774 an array; array's `clone' method just calls this one.
4776 * Makefile.in: Rebuilt.
4777 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4778 Now creates zip file. Changed all users.
4780 (data_DATA): New macro.
4782 1998-11-11 Tom Tromey <tromey@cygnus.com>
4784 * configure: Rebuilt.
4785 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4787 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4789 * java/io/InputStream.java (reset): Add msg to thrown exception.
4791 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4793 * java/io/LineNumberInputStream.java: Rewritten.
4795 * java/io/StringBufferInputStream.java: Removed extraneous import.
4797 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4799 * java/io/StringBufferInputStream.java: Rewritten.
4801 * java/util/Date.java (parseMonth): Optimize.
4802 (parseDayOfWeek): Created.
4803 (parse): Optimize to use parseDayOfWeek.
4805 1998-11-11 Tom Tromey <tromey@cygnus.com>
4807 * java/lang/StringBuffer.java (append): Handle case where STR is
4810 * include/javaprims.h: Regenerated class declarations.
4812 * configure: Rebuilt.
4813 * configure.in: Added --enable-gcj-classes,
4814 --enable-single-compilation, --enable-source-compilation flags.
4815 * Makefile.in: Rebuilt.
4816 * Makefile.am (java_io_files): New macro.
4817 (java_lang_files): Likewise.
4818 (java_text_files): Likewise.
4819 (java_util_files): Likewise.
4820 (java_files): Use new macros.
4821 (java-io.o): New target.
4822 (java-lang.o): Likewise.
4823 (java-text.o): Likewise.
4824 (java-util.o): Likewise.
4825 (src_io_files): New macro.
4826 (src_lang_files): Likewise.
4827 (src_text_files): Likewise.
4828 (src_util_files): Likewise.
4829 (class_io_files): New macro.
4830 (class_lang_files): Likewise.
4831 (class_text_files): Likewise.
4832 (class_util_files): Likewise.
4833 (class_files): Use new macros.
4834 (javao_files): Define conditionally.
4835 (.java.o): New target.
4836 ($(javao_files)): New target.
4838 (GCJH): Added $(EXEEXT).
4839 (CLASSPATH_ENV): Removed.
4840 (GCJCOMPILE): New macro.
4842 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4844 * java/util/Date.java (parse): Written from scratch.
4846 1998-11-11 Tom Tromey <tromey@cygnus.com>
4848 * java/lang/Throwable.java (toString): Correct sense of test for
4849 determining when to include detail message in result.
4851 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4854 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4856 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4858 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4859 (_Jv_RegisterClass): Use it.
4860 * include/jvm.h (_Jv_RegisterClasses): Declare.
4861 * java/lang/natObject.cc (init): Removed.
4862 (sync_init): Never call _Jv_InitializeSyncMutex.
4863 (_Jv_InitializeSyncMutex): Don't set `init'.
4864 * prims.cc (JvRunMain): Don't run init functions.
4866 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4868 * java/lang/natClass.cc (initializeClass): Set state before
4869 resolving constants.
4871 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4872 (STATE_RESOLVED): New macro.
4873 (initializeClass): Call resolveConstants.
4874 (hackRunInitializers): Don't call resolveConstants.
4875 (_Jv_FindArrayClass): Move short-circuit return for primitive
4876 element types earlier in function.
4878 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4880 * prims.cc (no_memory): New global.
4881 (_Jv_makeUtf8Const): Throw no_memory.
4882 (_Jv_AllocObject): Likewise.
4883 (_Jv_NewObjectArray): Likewise.
4884 (_Jv_NewPrimArray): Likewise.
4885 (JvRunMain): Initialize no_memory.
4887 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4889 * java/io/FileInputStream.java: Corrected date comment.
4890 * java/io/SequenceInputStream.java: Rewritten.
4892 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4894 * java/lang/FirstThread.java (die): New method.
4895 * java/lang/natFirstThread.cc (die): Removed.
4897 (run): Use `DIE', not `die'.
4899 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4901 * java/io/CharArrayReader.java (read): Move check into synchronized
4902 block to prevent a close while in progress.
4905 * java/io/PushbackReader.java (read): Ditto.
4908 * java/io/StringReader.java (mark): Ditto.
4913 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4915 * java/io/PipedInputStream.java: Updated status.
4916 (connect): Added code to prevent infinite recursion and to
4917 differentiate exception causes.
4918 (read): Added code to differentiate exception causes.
4919 (receive): Made exception pass string with the cause.
4921 * java/io/PipedOutputStream.java: Updated status.
4922 (connect): Added code to call connect at the other end of the pipe.
4924 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4926 * java/io/PipedInputStream.java (connect): Throw exception if
4927 already connected to the same output stream.
4928 (read): Do bounds checking first.
4930 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4932 * java/io/PipedInputStream.java: Added private boolean outClosed.
4933 (available): Removed check if output stream is open.
4934 (close): Mark the buffer as empty so available returns 0.
4935 (read): Check if the output stream was closed and then return EOF
4936 when the buffer is empty.
4937 (receive): Mark the output stream as closed when passed a -1.
4939 * java/io/PipedOutputStream.java (close): Notify the input stream
4940 that there's no more data coming.
4941 (connect): Added a FIXME comment to note more coordination needed
4942 with PipedInputStream.
4943 (flush): Added a FIXME comment to mark what this method might do
4946 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4948 * java/io/PipedInputStream.java: Rewritten.
4950 1998-10-30 Tom Tromey <tromey@cygnus.com>
4952 * java/lang/Throwable.java: Rewrote from scratch.
4954 * java/lang/Class.h (Class): Don't mention newMultiArray.
4955 * prims.cc (newMultiArray): Removed.
4956 (_Jv_NewMultiArray): Removed.
4957 (newArray): Removed.
4958 (new_multi_array): New function.
4959 (_Jv_NewMultiArray): Rewrote from scratch.
4961 * include/javaprims.h: Regenerated class declarations.
4962 * classes.pl (scan): Don't declare PrimClass.
4963 * include/cni.h (JvPrimClass): Use new names for classes.
4964 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4965 added _Jv_PrimClass.
4966 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4967 (_Jv_initPrimClass): Removed.
4968 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4969 (_Jv_AllocObject): Added comment.
4970 (_Jv_NewObjectArray): Likewise.
4971 (_Jv_NewPrimArray): Likewise.
4973 1998-10-29 Tom Tromey <tromey@cygnus.com>
4975 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4976 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4978 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4980 * java/lang/natObject.cc (init): New global.
4981 (sync_init): Call _Jv_InitializeSyncMutex if required.
4983 * Makefile.in: Rebuilt.
4984 * Makefile.am (nat_headers): Added ClassLoader.h.
4985 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4986 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4987 internalAddClass, lookupArray no longer friends.
4988 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4989 _Jv_FindArrayClass now friends.
4990 * java/lang/natClass.cc (HASH_LEN): New macro.
4991 (HASH_UTF): Likewise.
4992 (loaded_classes): New global.
4993 (_Jv_FindClass): New function.
4994 (ClassClass): New define.
4995 (_Jv_FindClassInCache): New function.
4996 (_Jv_RegisterClass): Likewise.
4997 (_Jv_NewClass): Likewise.
4999 (ObjectClass): New define.
5000 (CloneableClass): New define.
5001 * prims.cc (_Jv_FindClass): Removed.
5002 (simpleLookupClass): Removed.
5003 (insertClass): Removed.
5004 (CLASSHASHSZ): Removed.
5005 (classPool): Removed.
5006 (_Jv_RegisterClass): Removed.
5007 (internalAddClass): Removed.
5008 (ClassClass): Removed.
5009 (RuntimeClass): Removed.
5010 (lookupArray): Removed.
5011 (CloneableClass): Removed.
5012 (CLASSMAXSIG): Removed.
5013 Rearranged file to group related functions together.
5014 (_Jv_IsInstanceOf): Moved to natClass.cc.
5015 (abort_final): Removed.
5016 Removed some unused includes.
5017 (classFromSig): Removed.
5018 (_Jv_FindClassFromSignature): New function.
5019 (_Jv_initPrimClass): Renamed.
5020 (getClass): Removed.
5022 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
5024 * java/io/FileDescriptor.java (finalize): Throws IOException
5025 instead of Throwable.
5027 * java/io/FileInputStream.java: Rewritten.
5029 * java/io/StreamTokenizer.java (nextToken): Unread newline character
5030 at the end of a comment.
5032 1998-10-29 Tom Tromey <tromey@cygnus.com>
5034 * include/javaprims.h: Regenerated class declarations.
5035 * classes.pl (scan): Don't special-case ClassLoader.
5037 * prims.cc (processClass): Removed.
5038 (_Jv_InitClass): Removed.
5039 Removed all CSTATE_ macros.
5040 (resolveConstants): Removed.
5042 (_Jv_NewMultiArray): Cleaned up.
5043 * Makefile.in: Rebuilt.
5044 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
5045 * java/lang/Class.h (Class): Declare new methods. processClass no
5047 * java/lang/Class.java (hackTrampoline): New method.
5048 (initializeClass): Declare.
5049 (hackRunInitializers): Declare.
5050 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
5051 (initializeClass): New method.
5052 (hackRunInitializers): New method.
5053 (init_name, void_signature): Moved from prims.cc.
5054 (_Jv_InitClass): New function.
5055 (isAssignableFrom): Don't call processClass.
5056 (STATE_NOTHING): New macro.
5057 (resolveConstants): New function.
5059 (ErrorClass): New define.
5061 * java/lang/Class.java (getClassLoader): Declare.
5062 * java/lang/ClassLoader.java: Rewrote from scratch.
5064 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
5065 AbstractMethodError.h, IllegalAccessError.h,
5066 NoClassDefFoundError.h.
5067 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
5068 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
5069 longer static. Changed return type.
5070 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
5071 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
5072 * prims.cc (findMethodLocal): Removed.
5073 (processClass): Use _Jv_GetMethodLocal.
5075 1998-10-28 Tom Tromey <tromey@cygnus.com>
5077 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
5078 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
5080 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
5081 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
5083 * include/jni.h: Added copyright header.
5084 * include/javaprims.h: Added copyright header.
5085 * include/java-field.h: Added copyright header.
5086 * include/java-array.h: Added copyright header.
5087 * include/cni.h: Added copyright header.
5089 * include/javaprims.h: Regenerated class declarations using
5090 classes.pl; now they are complete.
5091 * classes.pl: New file.
5093 * java/lang/natMath.cc: Include <config.h>.
5094 * java/lang/reflect/natField.cc: Include <config.h>.
5095 * java/util/NativeUtil.java: Removed.
5096 * Makefile.in: Rebuilt.
5097 * Makefile.am (nat_headers): Added Math.h.
5098 * java/lang/Math.h: Removed.
5099 * java/util/natGregorianCalendar.cc: Added copyright header.
5101 * java/lang/natFloat.cc: Added copyright header.
5102 * java/lang/Byte.java: Added copyright header.
5103 * java/lang/Void.java: Added copyright header.
5104 * java/lang/Short.java: Added copyright header.
5106 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5108 * include/javaprims.h (java::io): Added bunch of missing classes.
5110 * java/io/DataInputStream.java (readLine): Added a special case
5111 for handling BufferedInputStream data to reduce the likelihood
5112 of a pushback error.
5113 (skipBytes): Added code to handle negative number of skip bytes.
5115 * java/io/StreamTokenizer.java: Rewritten.
5117 1998-10-28 Tom Tromey <tromey@cygnus.com>
5119 * java/util/natGregorianCalendar.cc (computeFields): Call
5120 getRawOffset as a method.
5122 * include/javaprims.h (java::io): Added FilterOutputStream.
5123 * Makefile.in: Rebuilt.
5124 * Makefile.am (nat_headers): Added PrintStream.h,
5125 FilterOutputStream.h.
5126 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5128 (die): New function.
5129 (run): Die if `main' not found, is not public, or is not static.
5131 * boehm.cc (_Jv_MarkObj): Use new field names.
5132 * include/java-field.h (JvGetFirstInstanceField): Use new field
5134 (JvNumInstanceFields): Likewise.
5135 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5136 (getInterfaces): Likewise.
5137 * prims.cc (CLASS_CONSTANTS): Removed.
5138 (CLASS_CONST_SIZE): Likewise.
5139 (CLASS_CONST_TAG): Likewise.
5140 (CLASS_CONST_DATA): Likewise.
5141 (CLASS_CONST_UTF8): Likewise.
5142 (WORD2UTF): Likewise.
5143 (CLASS_CLASS): Likewise.
5144 (CLASS_PRIM_SIG): Likewise.
5145 (CLASS_ARRAY_CACHE): Likewise.
5146 (HASH_CHARS): Likewise.
5147 (hashClassName): Likewise.
5148 Many changes to use new field names.
5149 * java/lang/Class.h (Class): Renamed fields to track compiler.
5151 1998-10-27 Tom Tromey <tromey@cygnus.com>
5153 * java/lang/natClass.cc: Use #pragma implementation.
5154 (getComponentType): Moved into header.
5155 (getModifiers): Likewise.
5156 (getName): Likewise.
5157 (getSuperclass): Likewise.
5158 (isArray): Likewise.
5159 (isPrimitive): Likewise.
5160 * include/jvm.h (_Jv_FindClass): Declare.
5161 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5162 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5163 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5164 * java/lang/Class.h: Rewrote from scratch.
5165 * prims.cc: Many changes to work with new Class.h.
5166 * include/java-field.h (CLASS_FIELDS): Removed.
5167 (CLASS_SFIELDS): Likewise.
5168 (CLASS_IFIELDS): Likewise.
5169 (CLASS_NFIELDS): Likewise.
5170 (CLASS_NIFIELDS): Likewise.
5171 (CLASS_NSFIELDS): Likewise.
5172 (CLASS_FSIZE): Likewise.
5173 (JvGetFirstInstanceField): Rewrote.
5174 (JvNumInstanceFields): Likewise.
5176 * java/lang/Object.h: Added copyright comment.
5178 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5180 * java/text: New package directory.
5181 * java/text/FieldPosition.java: New class.
5182 * java/text/ParsePosition.java: New class.
5183 * java/text/ParseException.java: New Exception class.
5184 * java/text/Format.java: New class.
5185 * java/text/NumberFormat.java: New (empty placeholder) class.
5186 * java/text/DateFormatSymbols.java: New class (no Locales support).
5187 * java/text/DateFormat.java: New Format class (incomplete).
5188 * java/text/SimpleDateFormat.java: New DateFormat class.
5190 * include/javaprims.h (java::test): Added new package and classes.
5191 * java/util/Calendar.java (clone): New method.
5192 * java/util/Date.java (toString): Added non-native implementation.
5193 (parse): Made public instead of synchronized.
5194 * java/util/natDate.cc (toString): Removed.
5195 * java/util/natGregorianCalendar.cc (computeFields):
5196 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5198 1998-10-27 Tom Tromey <tromey@cygnus.com>
5200 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5202 * prims.cc (lookupArray): Added explanatory comment.
5203 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5204 class. Mark the class of each object.
5205 (_Jv_MarkArray): Mark the object's class.
5207 * configure: Rebuilt.
5208 * configure.in: Create java-gc.h.
5209 * include/boehm-gc.h: New file.
5210 * include/no-gc.h: New file.
5211 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5213 * java/lang/Object.h: Include java-gc.h.
5214 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5215 friends, if defined.
5216 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5218 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5220 1998-10-26 Tom Tromey <tromey@cygnus.com>
5222 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5223 paragraph separators, not numbers.
5225 * java/io/Writer.java (write): Removed write(char) to avoid
5227 * java/util/Properties.java: Rewrote from scratch.
5228 * include/javaprims.h (java::io): Added PrintWriter,
5229 BufferedWriter, PushbackReader.
5231 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5233 * java/lang/System.java: exit() is a static method.
5235 1998-10-26 Tom Tromey <tromey@cygnus.com>
5237 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5239 (_Jv_NewStringUtf8Const): Likewise.
5240 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5241 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5243 * java/lang/Object.h (Object): Add mark_array as friend function.
5244 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5245 _Jv_AllocBytes, to ensure that header is marked.
5246 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5248 (mark_array): Push sync_info field for array.
5250 1998-10-24 Tom Tromey <tromey@cygnus.com>
5252 * java/lang/String.java (String): Updated for StringBuffer
5254 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5256 * java/lang/StringBuffer.java: Renamed fields to conform to
5257 serialization spec: buffer->value, next->count, copy->shared.
5259 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5261 * java/util/TimeZone.java: New class.
5262 * java/util/SimpleTimeZone.java: New class.
5263 * java/util/Locale.java: New file.
5264 * java/util/Calendar.java: Make almost complete.
5265 * java/util/GregorianCalendar.java
5266 * java/util/natGregorianCalendar.cc: New file.
5267 * java/util/Date.java: Re-written from scratch.
5268 * java/util/natDate.cc (setTime): Removed - no longer native.
5269 * include/javaprims.h (java::util): Add new classes.
5270 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5271 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5273 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5275 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5276 returning it as a jint.
5278 1998-10-23 Tom Tromey <tromey@cygnus.com>
5280 * prims.cc (arg_vec, main_group, main_thread): New globals.
5281 (JvRunMain): Use them.
5283 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5285 * java/io/DataInputStream.java: Rewritten.
5287 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5288 tertiary bytes with 0x80 per spec.
5290 1998-10-23 Tom Tromey <tromey@cygnus.com>
5292 * java/lang/String.java (init): Changed name of `copy' argument.
5293 * java/lang/natString.cc (init): Inverted sense of `copy'
5296 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5297 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5298 * boehm.cc (ObjectClass): New define.
5299 (ClassClass): Likewise.
5300 (mark_obj): Special-case Object and Class.
5302 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5304 * java/util/BitSet.java: Rewrote from scratch.
5306 * prims.cc (lookupArray): Removed useless cast.
5308 * java/lang/natObject.cc: Use `#pragma implementation'.
5310 * java/lang/String.java (init): Added `copy' argument.
5311 (String): Look in StringBuffer to find char array.
5312 * java/lang/natString.cc (init): Added `copy' argument.
5313 * java/lang/StringBuffer.java: Rewrote from scratch.
5315 * java/lang/Compiler.java: Rewrote from scratch.
5316 * java/lang/Throwable.java: Don't use NativeLang.
5317 * include/javaprims.h (java::lang): Don't mention NativeLang.
5318 * java/lang/Process.java: Rewrote from scratch.
5319 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5321 (currentClassLoader): Likewise.
5322 (currentLoadedClass): Likewise.
5323 * java/lang/natClass.cc (getClassLoader): Commented out.
5324 * java/lang/Class.java (getClassLoader): Commented out.
5325 * java/lang/Compiler.java: Removed.
5326 * java/lang/NativeLang.java: Removed.
5328 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5329 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5330 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5331 (_Jv_hashUtf8String): Now static.
5332 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5333 name of return type.
5335 * java/lang/Class.h (Class): Declare checkMemberAccess.
5336 * Makefile.in: Rebuilt.
5337 * Makefile.am (nat_headers): Added Member.h.
5338 * java/lang/natClass.cc: Include Member.h.
5339 (getDeclaredClasses): Call checkMemberAccess.
5340 * java/lang/Class.java (checkMemberAccess): Call
5341 SecurityManager.checkMemberAccess.
5343 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5345 * java/lang/SecurityManager.java: Rewritten.
5347 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5349 * java/applet/Applet.java, java/applet/AppletContext.java,
5350 java/applet/AppletStub.java, java/applet/AudioClip.java,
5351 java/awt/AWTError.java, java/awt/AWTException.java,
5352 java/awt/BorderLayout.java, java/awt/Button.java,
5353 java/awt/Canvas.java, java/awt/CardLayout.java,
5354 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5355 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5356 java/awt/Color.java, java/awt/Component.java,
5357 java/awt/Container.java, java/awt/Dialog.java,
5358 java/awt/Dimension.java, java/awt/Event.java,
5359 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5360 java/awt/Font.java, java/awt/FontMetrics.java,
5361 java/awt/Frame.java, java/awt/Graphics.java,
5362 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5363 java/awt/GridLayout.java, java/awt/Image.java,
5364 java/awt/Insets.java, java/awt/Label.java,
5365 java/awt/LayoutManager.java, java/awt/List.java,
5366 java/awt/MediaTracker.java, java/awt/Menu.java,
5367 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5368 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5369 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5370 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5371 java/awt/TextArea.java, java/awt/TextComponent.java,
5372 java/awt/TextField.java, java/awt/Toolkit.java,
5373 java/awt/Window.java, java/awt/image/ColorModel.java,
5374 java/awt/image/CropImageFilter.java,
5375 java/awt/image/DirectColorModel.java,
5376 java/awt/image/FilteredImageSource.java,
5377 java/awt/image/ImageConsumer.java,
5378 java/awt/image/ImageFilter.java,
5379 java/awt/image/ImageObserver.java,
5380 java/awt/image/ImageProducer.java,
5381 java/awt/image/IndexColorModel.java,
5382 java/awt/image/MemoryImageSource.java,
5383 java/awt/image/PixelGrabber.java,
5384 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5385 java/awt/peer/CanvasPeer.java,
5386 java/awt/peer/CheckboxMenuItemPeer.java,
5387 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5388 java/awt/peer/ComponentPeer.java,
5389 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5390 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5391 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5392 java/awt/peer/MenuBarPeer.java,
5393 java/awt/peer/MenuComponentPeer.java,
5394 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5395 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5396 java/awt/peer/TextAreaPeer.java,
5397 java/awt/peer/TextComponentPeer.java,
5398 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5399 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5400 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5401 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5402 java/net/MalformedURLException.java, java/net/NativeNet.java,
5403 java/net/ProtocolException.java, java/net/ServerSocket.java,
5404 java/net/Socket.java, java/net/SocketException.java,
5405 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5406 java/net/URL.java, java/net/URLConnection.java,
5407 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5408 java/net/URLStreamHandlerFactory.java,
5409 java/net/UnknownHostException.java,
5410 java/net/UnknownServiceException.java: Removed.
5412 1998-10-22 Tom Tromey <tromey@cygnus.com>
5414 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5415 finalizer is not Object.finalize.
5416 (internalAddClass): Don't set `final' member of class.
5417 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5418 other places that know about finalize() location.
5419 * java/lang/Class.h (Class): Removed `final' field.
5421 * aclocal.m4, configure: Rebuilt.
5422 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5423 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5425 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5426 * Makefile.in: Rebuilt.
5427 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5429 1998-10-21 Tom Tromey <tromey@cygnus.com>
5431 * java/lang/Object.java (finalize): Move to be first method in
5434 * configure: Rebuilt.
5435 * configure.in (GCINCS): Include contents of boehm-cflags file.
5437 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5439 * java/lang/ArrayIndexOutOfBoundsException.java
5440 (ArrayIndexOutOfBoundsException): Fixed string literal.
5441 * java/lang/StringIndexOutOfBoundsException.java
5442 (StringIndexOutOfBoundsException): Fixed string literal.
5444 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5446 * natFileDescriptorEcos.cc added.
5447 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5449 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5451 * acconfig.h: test for __int32_t and __uint32_t added.
5452 * include/config.h.in: test for __int32_t and __uint32_t added.
5453 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5454 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5455 * configure.in: test for __int32_t and __uint32_t added.
5456 * configure: test for __int32_t and __uint32_t added.
5458 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5460 * configure.in: Test for --enable ecos and link
5461 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5462 natFileDescriptorPosix.cc
5464 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5466 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5468 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5471 * java/io/CharArrayReader.java (close): Synchronize on lock
5472 object per Reader contract.
5473 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5474 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5475 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5476 Ensure that arg passed in isn't negative.
5478 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5479 constructing the superclass.
5481 * java/io/PushbackReader.java (close): Synchronize on lock
5482 object per Reader contract.
5483 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5484 (ready): Synchronize on lock obj. Throw IOException if reader
5486 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5487 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5488 Ensure that arg passed in isn't negative.
5489 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5491 * java/io/StringReader.java: Created.
5493 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5495 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5497 (read): Removed synchronized modifier to match JCL.
5498 (reset): Removed synchronized modifier to match JCL.
5499 (skip): Removed synchronized modifier to match JCL.
5501 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5503 * java/io/PushbackReader.java (PushbackReader): Made
5504 constructors public.
5506 1998-10-17 Tom Tromey <tromey@cygnus.com>
5508 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5509 constructors public.
5511 1998-10-16 Anthony Green <green@cygnus.com>
5513 * aclocal.m4, configure: Rebuilt.
5514 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5516 * configure.host: Rewrote.
5517 * Makefile.in: Rebuilt.
5518 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5519 (AM_CFLAGS): New macro.
5520 ($(c_files)): Use COMPILE macro.
5521 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5522 automake problem(s).
5524 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5526 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5528 * java/io/CharArrayReader.java: Created.
5530 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5532 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5533 size check to allow 0 per JCL.
5535 * java/io/PushbackReader.java: Created.
5537 1998-10-16 Tom Tromey <tromey@cygnus.com>
5539 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5540 <sys/time.h> includes.
5541 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5542 * include/no-threads.h: Conditionalize <unistd.h> include on
5545 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5547 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5550 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5552 * java/io/FilterReader.java: Created.
5554 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5556 * java/io/PushbackInputStream.java: Rewritten.
5558 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5559 that size passed to constructor is legal.
5560 (read): Check that args passed in are legal.
5561 (skip): Rewritten to get rid of the temporary buffer.
5562 (refill): Added marklimit check to grow the buffer.
5564 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5566 (bytesAvail): Removed.
5567 (read): Changed bytesAvail to Math.min.
5568 (skip): Changed bytesAvail to Math.min.
5570 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5571 from the throws clause.
5572 (skip): Rewritten to use a temporary buffer.
5574 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5576 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5579 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5581 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5582 to write the double one word at a time.
5584 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5586 * java/io/BufferedInputStream.java: Rewritten.
5588 1998-10-12 Tom Tromey <tromey@cygnus.com>
5590 * jni.cc: Include config.h and stddef.h.
5592 * java/lang/Class.h (_dispatchTable): Removed again.
5593 Removed all ACC_* defines again.
5595 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5597 * Makefile.am (nat_files): Add netField.o.
5598 (libjava_a_SOURCES): Add jni.cc.
5599 (java/lang/reflect/Field.h): New rule.
5600 * Makefile.in: Re-generated.
5601 * include/javaprims.h: Add some extra class and typedefs.
5602 * include/jni.h: New file.
5605 * include/java-field.h: New file.
5606 * include/jvm.h: #include <java-field.h>.
5607 * boehm.cc: #include <java-field.h>.
5608 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5609 * java/lang/reflect/Member.java: New class.
5610 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5611 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5613 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5615 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5616 testsuite/Makefile.in: Rebuilt.
5617 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5618 * configure.host: Created.
5620 1998-10-10 Tom Tromey <tromey@cygnus.com>
5622 * java/lang/natObject.cc (sync_init): Always allocate a new
5625 1998-10-09 Tom Tromey <tromey@cygnus.com>
5627 * java/io/ByteArrayInputStream.java (mark): Renamed from
5630 * java/io/FileOutputStream.java (finalize): Removed.
5631 * java/io/FileDescriptor.java (finalize): New method.
5633 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5635 * ByteArrayInputStream.java: Corrected status comment.
5637 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5639 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5641 1998-10-08 Tom Tromey <tromey@cygnus.com>
5643 * prims.cc (lookupArray): Use static array to initialize list of
5646 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5648 * prims.cc (lookupArray): Initialize the msize for new
5651 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5653 * configure: Rebuilt.
5654 * configure.in: Check for fsync and sleep.
5655 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5657 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5658 HAVE_SLEEP. Include config.h.
5660 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5661 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5664 1998-10-08 Tom Tromey <tromey@cygnus.com>
5666 * java/io/natFile.cc: Don't include SecurityManager.h.
5667 (performList): Renamed.
5668 (performMkdir): Likewise.
5669 (performRenameTo): Likewise.
5670 (performDelete): Likewise.
5672 * java/io/File.java (performDelete): Renamed from natDelete.
5673 (list): Now written in Java.
5674 (performList): New method.
5675 (performMkdir): New method.
5676 (mkdir): Now written in Java.
5677 (performRenameTo): New method.
5678 (renameTo): Now written in Java.
5680 1998-10-06 Tom Tromey <tromey@cygnus.com>
5682 * Makefile.in: Rebuilt.
5683 * Makefile.am (ETAGS_ARGS): New macro.
5684 (TAGS_DEPENDENCIES): Likewise.
5686 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5688 * Makefile.in: Rebuilt.
5689 * Makefile.am: Use -classpath option with javac.
5691 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5693 * java/io/FileOutputStream.java (finalize): Call
5696 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5698 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5700 * java/lang/mprec.c: Ditto.
5702 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5705 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5707 * java/io/InputStream.java (skip): Make local var i a long.
5709 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5711 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5712 * prims.cc (lookupArray): Use memcpy, not memmove.
5713 * include/config.h.in: Rebuilt.
5714 * acconfig.h (HAVE_MEMCPY): Added.
5715 * configure: Rebuilt.
5716 * configure.in: Check for memcpy again.
5718 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5719 String.compareTo, not ==.
5721 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5722 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5723 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5724 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5725 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5726 into new array's dtable.
5727 (_Jv_AllocObject): Use _Jv_DispatchTable.
5728 (_Jv_NewPrimArray): Likewise.
5729 (_Jv_NewObjectArray): Likewise.
5731 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5733 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5734 offending index value.
5735 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5737 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5738 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5740 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5742 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5744 * java/io/OutputStream.java (write): Use off and len parameters to
5745 output partial byte array.
5747 * java/io/BufferedReader.java, java/io/FileReader.java,
5748 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5749 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5750 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5751 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5753 * include/javaprims.h (java::lang): Added
5754 ExceptionInInitializerError, IllegalStateException,
5755 NoSuchFieldException, and UnsupportedOperationException.
5757 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5759 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5762 * include/java-array.h (__JArray): Added clone method.
5763 * prims.cc (CloneableClass): New define.
5764 (lookupArray): Initialize array class to indicate that it
5765 implements Cloneable.
5767 * java/lang/Class.h: Removed all ACC_* defines.
5768 * prims.cc: Include Modifier.h.
5769 (_Jv_LookupInterfaceMethod): Use methods in
5770 java.lang.reflect.Modifier, not ACC_ defines.
5772 * java/lang/Class.h (Class): Declare getClasses,
5773 getDeclaredClasses, getDeclaringClass, getModifiers,
5774 * java/lang/Class.java: Rewrote from scratch.
5776 * include/javaprims.h (java::lang): Added reflect and
5778 * Makefile.in: Rebuilt.
5779 * Makefile.am (nat_headers): Added Modifier.h.
5781 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5784 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5786 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5787 instead of test and abort.
5789 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5790 remove compiler warning.
5792 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5794 * java/lang/natDouble.cc: zero terminate string.
5795 * strtod.c: Set errno if no digits are found in fraction.
5797 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5799 * java/lang/reflect/Modifier.java: New file.
5801 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5802 * java/lang/VerifyError.java: Rewrote from scratch.
5803 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5804 * java/lang/UnknownError.java: Rewrote from scratch.
5805 * java/lang/StackOverflowError.java: Rewrote from scratch.
5806 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5807 * java/lang/InternalError.java: Rewrote from scratch.
5808 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5809 * java/lang/ExceptionInInitializerError.java: New file.
5810 * java/lang/Error.java: Rewrote from scratch.
5811 * java/lang/ClassFormatError.java: Rewrote from scratch.
5812 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5813 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5814 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5815 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5816 * java/lang/LinkageError.java: Rewrote from scratch.
5817 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5819 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5821 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5822 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5824 * include/cni.h (JvAllocObject): Moved from prims.cc.
5826 * prims.cc (JvAllocObject): Moved to cni.h.
5827 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5828 (finalize_name): Removed.
5830 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5832 * java/lang/Class.h (Class): Added size() method.
5833 * prims.cc (_Jv_MonitorEnter): Removed.
5834 (_Jv_MonitorExit): Removed.
5835 * java/lang/Object.h (JvSyncInfo): Removed.
5836 * Makefile.in: Rebuilt.
5837 * Makefile.am (nat_headers): Added Cloneable.h,
5838 CloneNotSupportedException.h.
5839 * java/lang/Object.h: Rewrote.
5840 * java/lang/natObject.cc: Rewrote from scratch.
5841 * java/lang/Object.java: Rewrote from scratch.
5843 * java/io/natFile.cc: Conditionally include <dirent.h>.
5844 (list): If no <dirent.h>, always return NULL.
5845 * configure: Rebuilt.
5846 * configure.in: Check for dirent.h.
5848 * prims.cc (lookupArray): Don't use sprintf.
5850 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5857 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5858 name conflict with method.
5860 * include/javaprims.h (java::util): Added HashtableEntry.
5862 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5864 * java/util/Hashtable.java: Rewritten.
5866 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5868 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5872 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5875 * posix-threads.cc (_Jv_CondWait): Now returns int.
5876 * include/javaprims.h (java::lang): Added
5877 IllegalMonitorStateException.
5878 * Makefile.in: Rebuilt.
5879 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5880 * include/no-threads.h (_Jv_CondDestroy): Removed.
5881 (_Jv_MutexDestroy): Removed.
5882 (_Jv_CondWait): Now returns int.
5883 (_Jv_CondNotify): Likewise. Added mutex argument.
5884 (_Jv_CondNotifyAll): Likewise.
5885 (_Jv_MutexLock): Always succeed.
5886 (_Jv_MutexUnlock): Likewise.
5887 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5888 (_Jv_HaveMutexDestroy): Define.
5889 (_Jv_CondNotify): Now returns int. Added mutex argument.
5890 (_Jv_CondNotifyAll): Likewise.
5891 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5892 (_Jv_MutexDestroy): Removed.
5893 (_Jv_CondWait): Now returns int.
5894 (_Jv_CondNotify): Likewise. Added mutex argument.
5895 (_Jv_CondNotifyAll): Likewise.
5896 * java/lang/natObject.cc (finalize_sync_info): New function.
5897 (init_mutex): Initialize `init' and register finalizer if
5900 (init_mutex): Use it.
5902 (notifyAll): Use it.
5904 (notify): Throw IllegalMonitorStateException on failure.
5905 (notifyAll): Likewise.
5906 (wait): Likewise. Also, throw InterruptedException if
5908 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5909 InterruptedException.h, IllegalArgumentException.h.
5910 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5912 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5913 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5914 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5915 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5916 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5917 * quick-threads.cc: Renamed all `JvPriv' functions.
5918 * prims.cc: Renamed all `JvPriv' functions.
5919 * posix-threads.cc: Renamed all `JvPriv' functions.
5920 * nogc.cc: Renamed all `JvPriv' functions.
5921 * no-threads.cc: Renamed all `JvPriv' functions.
5922 * boehm.cc: Renamed all `JvPriv' functions.
5923 * include/quick-threads.h: Renamed all `JvPriv' functions.
5924 * include/posix-threads.h: Renamed all `JvPriv' functions.
5925 * include/no-threads.h: Renamed all `JvPriv' functions.
5926 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5928 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5930 (JvPrivCondNotify): Do nothing.
5931 (JvPrivCondNotifyAll): Do nothing.
5933 * prims.cc (processClass): Handle case where state is
5936 * java/lang/natFirstThread.cc: Include <stdlib.h>
5938 * configure: Rebuilt.
5939 * configure.in: Fixed sense of --enable-libjava-debug.
5941 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5942 it can be used afterward by the assertion.
5944 * configure: Rebuilt.
5945 * configure.in: When cross-compiling, assume alloca.
5947 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5948 __builtin_alloca (autoconf docs are wrong here).
5950 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5952 (available): Use `FD_ZERO' (typo fix).
5954 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5956 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5957 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5959 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5960 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5963 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5965 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5967 * java/lang/natDouble.cc: Declare alloca safely.
5969 * configure, include/config.h.in: Rebuilt.
5970 * configure.in: Add alloca check.
5972 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5974 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5975 condition while calling notify.
5976 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5977 (interrupt): Hold mutex for interrupt condition while calling
5980 * java/lang/natString.cc (init): Allocate and try to read `count'
5981 characters, not `count - offset' characters.
5983 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5984 Correctly compute `count'.
5986 * java/lang/Boolean.java (getBoolean): Return false if property
5989 * java/lang/System.java (setProperties): Set prop_init.
5991 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5993 * java/io/PrintStream.java (println): Use line.separator, not
5995 * java/lang/System.java (out, err): Make both autoflush streams.
5996 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5998 * include/config.h.in: Rebuilt.
5999 * acconfig.h (HAVE_MEMCPY): Removed.
6000 * configure: Rebuilt.
6001 * configure.in: Never define HAVE_MEMCPY.
6003 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
6005 (_Jv_AllocString): Use JvAllocObject again.
6006 * java/lang/Class.h (thread): New field.
6007 (_Jv_AllocString): No longer a friend.
6008 * prims.cc (processClass): Removed dead code. Changed to more
6009 closely follow the Java Language Specification.
6010 (processClass): Return early if already at the right state.
6012 * prims.cc (JvNewStringUTF): Removed.
6013 * include/cni.h (JvNewStringUTF): New function.
6014 (_Jv_NewStringUTF): Declare as `extern "C"'.
6015 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
6017 * java/lang/natDouble.cc: Added copyright info and header
6018 comment. Include <stdlib.h>.
6019 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
6020 bytes as are chars in string.
6022 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
6024 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
6028 * java/lang/System.java (init_properties): Now native.
6029 * java/lang/natSystem.cc (init_properties): New method.
6030 Include java/util/Properties.h.
6032 * Makefile.in: Rebuilt.
6033 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
6034 OutputStreamWriter.h, ByteArrayInputStream.h,
6035 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
6036 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
6037 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
6038 Properties.h, Hashtable.h, Dictionary.h.
6041 * include/javaprims.h (java::io): Added Reader, Writer,
6042 InputStreamReader, OutputStreamWriter,
6043 UnsupportedEncodingException, ByteArrayInputStream,
6044 ByteArrayOutputStream, EOFException, SyncFailedException,
6045 PushbackInputStream.
6046 (java::lang): Added Cloneable.
6047 (java::util): Added NoSuchElementException, VectorEnumeration,
6048 Dictionary, HashtableEnumeration, PropertiesEnumeration.
6050 * java/io/PipedReader.java: New file.
6052 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
6054 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
6057 * java/io/io-defs.h: Removed.
6059 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
6060 (FileInputStream): Use new constructor. Can throw IOException.
6062 * java/lang/System.java (getProperty): Don't throw
6063 NullPointerException.
6065 * java/io/RandomAccessFile.java: Rewrote from scratch.
6067 * java/io/natFileDescriptor.cc: Include EOFException.h.
6069 (length): New method.
6070 (getFilePointer): New method.
6072 (available): New method.
6073 * java/io/FileDescriptor.java (SET, CUR): New constants.
6074 (seek, length, getFilePointer, read, available): New decls.
6076 * java/io/PipedWriter.java: New file.
6077 * java/io/StringWriter.java: New file.
6078 * java/io/CharArrayWriter.java: New file.
6079 * java/io/CharConversionException.java: New file.
6080 * java/io/BufferedWriter.java: New file.
6081 * java/io/FilterWriter.java: New file.
6082 * java/io/FileWriter.java: New file.
6084 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6085 OutputStreamWriter.h, NullPointerException.h,
6086 ByteArrayInputStream.h, InputStreamReader.h.
6087 (getBytes): New method.
6088 (init): Throw NullPointerException.
6089 (init): New function.
6090 * java/lang/String.java (getBytes): Added missing decl.
6091 (getBytes): New method.
6092 (String): Added byte[]-based constructors.
6093 (copyValueOf): Wrote.
6094 (init): Declare variant which takes byte array and encoding.
6095 Import java.io.UnsupportedEncodingException.
6097 * java/io/File.java: Rewrote from scratch.
6098 * java/io/natFileDescriptor.cc: Rewrote from scratch.
6099 * java/io/FileDescriptor.java: Rewrote from scratch.
6100 * java/io/FilenameFilter.java: Rewrote from scratch.
6102 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6104 * java/io/SyncFailedException.java: New file.
6105 * java/io/UTFDataFormatException.java: Rewrote from scratch.
6106 * java/io/InterruptedIOException.java: Rewrote from scratch.
6107 * java/io/FileNotFoundException.java: Rewrote from scratch.
6108 * java/io/EOFException.java: Rewrote from scratch.
6109 * java/io/IOException.java: Rewrote from scratch.
6110 * java/io/PrintStream.java: Rewrote from scratch.
6111 * java/io/DataOutputStream.java: Rewrote from scratch.
6112 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6113 * java/io/FilterOutputStream.java: Rewrote from scratch.
6114 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6115 * java/io/PipedOutputStream.java: Rewrote from scratch.
6116 * java/io/FileOutputStream.java: Rewrote from scratch.
6117 * java/io/OutputStream.java: Rewrote from scratch.
6118 * java/io/DataOutput.java: Rewrote from scratch.
6120 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6122 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6124 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6126 * configure.in: Add --enable-libjava-debug
6128 * Makefile.am (nat_headers): Add java/lang/Float.h and
6131 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6133 * Makefile.in, configure, include/config.h.in: Rebuilt.
6135 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6137 * java/lang/Float.java: Rewritten
6138 * java/lang/Double.java: Rewritten
6139 * java/lang/natFloat.cc: toString() added.
6140 * java/lang/natDouble.cc: toString() added.
6141 * java/lang/natDouble.cc: doubleValueOf() added.
6142 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6143 java/lang/strtod.c: added.
6144 * ieeefp.h: __sparc added.
6145 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6147 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6149 * include/javaprims.h (java::lang): Added
6150 CloneNotSupportedException.
6152 * java/lang/Object.java (clone): No longer native. Implemented.
6153 * java/lang/natObject.cc (clone): Removed.
6155 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6157 * prims.cc: Don't make definitions `extern "C"'.
6158 (_Jv_RegisterClass): Renamed from registerClass.
6159 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6160 (_Jv_NewArray): Likewise.
6161 (_Jv_NewMultiArray): Likewise.
6162 (_Jv_CheckCast): Likewise.
6163 (_Jv_LookupInterfaceMethod): Likewise.
6164 (_Jv_CheckArrayStore): Likewise.
6165 (_Jv_RegisterClass): Likewise.
6167 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6168 * configure: Rebuilt.
6169 * configure.in: Don't check for fmod; it is provided by the fdlibm
6171 * prims.cc (fmod): Removed.
6173 * java/lang/natString.cc (charAt): Use _Jv_uint.
6174 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6175 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6176 (equalUtf8Consts): Likewise.
6177 (internalAddClass): Use _Jv_uint.
6178 (processClass): Likewise.
6179 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6180 (_Jv_uint): Renamed from uint32.
6181 (struct _Jv_Utf8Const): Changed members to use new type names.
6183 * configure: Rebuilt.
6184 * configure.in: Don't check for memcpy. Require memmove and a way
6186 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6188 (currentTimeMillis): Don't use #error.
6190 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6192 * java/lang/Math.java: static member random renamed to random_ to
6193 avoid conflict with member function of the same name.
6194 * include/javaprims.h: java.util.Random added.
6196 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6198 * include/java-chartables.h: Regenerated.
6199 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6202 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6204 * java/lang/Math.java: Rewritten.
6205 * java/lang/natMath.cc: New file.
6206 * Files added from fdlibm:
6207 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6208 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6209 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6210 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6211 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6212 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6213 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6214 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6215 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6216 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6217 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6218 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6219 java/lang/k_cos.c, java/lang/sf_ceil.c,
6220 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6221 java/lang/ieeefp.h, java/lang/fdlibm.h
6222 * Makefile.am: rules added for compiling C files from fdlibm.
6224 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6226 * chartables.pl: Minor documentation fixes.
6228 * configure: Rebuilt.
6229 * configure.in: Fixed --help output for --enable-fast-character.
6231 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6233 * configure: Rebuilt.
6234 * configure.in: Recognize --enable-fast-character.
6235 * acconfig.h (COMPACT_CHARACTER): New define.
6236 * include/config.h.in: Rebuilt.
6237 * include/java-chartables.h: New file.
6238 * Makefile.in: Rebuilt.
6239 * Makefile.am (nat_files): Added natCharacter.o.
6240 * java/lang/natCharacter.cc: New file.
6241 * chartables.pl (set_attribute): New function.
6242 (@attributes, @second_attributes): New globals.
6243 ($ROMAN_START, $ROMAN_END): Likewise.
6244 (process_char): Call set_attribute when required.
6245 (print_char): Just print hex value.
6246 (print_block): Generate C++ syntax.
6247 (print_numerics): Likewise.
6248 (print_single_map): Likewise.
6249 (print_all_block): Likewise.
6250 (print_case_table): Likewise.
6251 (print_fast_tables): New function.
6252 Generate C++ code suitable for a header file.
6253 * java/lang/Character.java (table_search): Removed.
6254 (digit_value): Now native.
6255 (getNumericValue): Likewise.
6256 (getType): Likewise.
6257 Removed all automatically-generated tables.
6258 (Tamil_Digit_One): Removed.
6259 (isSpaceChar): Now native.
6260 (isTitleCase): Likewise.
6261 (isLowerCase): Likewise.
6262 (isUpperCase): Likewise.
6263 (toLowerCase): Likewise.
6264 (toTitleCase): Likewise.
6265 (toUpperCase): Likewise.
6266 (isDefined): Fixed sense of test.
6268 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6270 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6272 (regionMatches): Likewise.
6274 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6276 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6278 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6280 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6283 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6286 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6288 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6290 * prims.cc (instanceof_class): Removed.
6291 (instanceof_array): Likewise.
6292 (instanceof): Likewise.
6293 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6294 (_Jv_CheckCast): Likewise.
6295 * java/lang/natClass.cc (isAssignableFrom): New method.
6296 * java/lang/Class.java (isAssignableFrom): Now native.
6298 * include/cni.h (JvThrow): Use `extern inline'.
6299 (JvAllocObject): Likewise.
6300 (JvInitClass): Likewise.
6302 * java/lang/natSystem.cc (arraycopy): Only check class of source
6305 * prims.cc (_Jv_CheckArrayStore): Wrote.
6306 (_Jv_MonitorEnter): Prefer `JvThrow'.
6307 Include ArrayStoreException.h.
6308 (_Jv_CheckCast): Indentation cleanup.
6310 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6312 * chartables.pl: New file.
6313 * java/lang/Character.java: Rewrote from scratch.
6315 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6317 * java/lang/ArithmeticException.java,
6318 java/lang/ArrayIndexOutOfBoundsException.java,
6319 java/lang/ArrayStoreException.java,
6320 java/lang/ClassCastException.java,
6321 java/lang/ClassNotFoundException.java,
6322 java/lang/CloneNotSupportedException.java,
6323 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6324 java/lang/IllegalArgumentException.java,
6325 java/lang/IllegalMonitorStateException.java,
6326 java/lang/IllegalThreadStateException.java,
6327 java/lang/IndexOutOfBoundsException.java,
6328 java/lang/InstantiationException.java,
6329 java/lang/InterruptedException.java,
6330 java/lang/NegativeArraySizeException.java,
6331 java/lang/NoSuchMethodException.java,
6332 java/lang/NullPointerException.java,
6333 java/lang/NumberFormatException.java,
6334 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6335 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6337 * java/lang/IllegalStateException.java,
6338 java/lang/NoSuchFieldException.java,
6339 java/lang/UnsupportedOperationException.java: Created.
6341 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6343 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6344 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6346 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6348 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6350 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6352 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6354 * Makefile.in: Rebuilt.
6356 * include/javaprims.h (java::lang): Added
6357 StringIndexOutOfBoundsException.
6359 * java/lang/String.java: Added header comment and FIXME comment for
6360 missing constructors/methods.
6361 (endsWith): Adjusted offset into string to look at just the last chars.
6362 Commented out undocumented method.
6364 * java/lang/natString.cc: Added includes for
6365 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6366 (String::init): Throw StringIndexOutOfBoundsException.
6367 (String::charAt): Throw StringIndexOutOfBoundsException.
6368 (String::substring): Throw StringIndexOutOfBoundsException.
6369 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6370 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6371 (String::compareTo): Return difference/offset between chars/strings.
6373 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6375 * java/lang/Boolean.java (TYPE): Added comment.
6377 * java/lang/Byte.java (decode): Added - commented out until dependent
6378 code for Integer is written.
6379 (compareTo): JDK 1.2 methods written.
6380 (hashCode): Added comment to note that values have been verified.
6382 * java/lang/Short.java (decode): Added - commented out until dependent
6383 code for Integer is written.
6384 (compareTo): JDK 1.2 methods written.
6385 (hashCode): Added comment to note that values have been verified.
6387 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6389 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6391 * include/javaprims.h (java::lang): Added VirtualMachineError,
6393 * Makefile.in: Rebuilt.
6394 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6395 VirtualMachineError.h.
6396 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6397 (lookupArray): Likewise.
6398 (makeUtf8Const): Likewise.
6399 (_Jv_AllocObject): Likewise.
6400 (_Jv_NewObjectArray): Likewise.
6401 Include OutOfMemoryError.h.
6403 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6404 to use JvNewStringLatin1.
6406 * java/io/io-defs.h: Include java/lang/IOException.h.
6407 * Makefile.in: Rebuilt.
6408 * Makefile.am (nat_headers): Added
6409 ArrayIndexOutOfBoundsException.h,
6410 ClassFormatError.h,ClassNotFoundException.h,
6411 ClassCircularityError.h, ClassCastException.h,
6412 IncompatibleClassChangeError.h, AbstractMethodError.h,
6413 IllegalAccessError.h, LinkageError.h, Error.h,
6414 NegativeArraySizeException.h, IOException.h.
6415 * include/cni.h (SignalError): Removed declaration.
6416 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6417 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6418 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6419 (newInstance): Likewise.
6420 (forName): Likewise.
6421 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6423 (read): Use JvThrow, not SignalError.
6428 (open_read): Likewise.
6429 (open_write): Likewise.
6432 (newstr): New function.
6433 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6435 (lastModifiedUnchecked): Likewise.
6436 (lengthUnchecked): Likewise.
6437 * include/javaprims.h (sorry): Removed declaration.
6438 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6439 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6440 ClassCastException, IncompatibleClassChangeError,
6441 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6442 * prims.cc (instanceof_array): Use JvFail, not sorry.
6444 Include ArrayIndexOutOfBoundsException.h,
6445 ClassFormatError.h,ClassNotFoundException.h,
6446 ClassCircularityError.h, ClassCastException.h,
6447 IncompatibleClassChangeError.h, AbstractMethodError.h,
6448 IllegalAccessError.h, NegativeArraySizeException.h.
6449 (_Jv_ThrowBadArrayIndex): Implemented.
6450 (JvNewStringUTF): Use JvFail, not sorry.
6451 (_Jv_FindClass): Likewise.
6452 (_Jv_NewArray): Likewise.
6453 (throwException): Removed.
6454 (getClass): Use JvThrow.
6455 (processClass): Likewise.
6456 (_Jv_NewObjectArray): Likewise.
6457 (_Jv_NewMultiArray): Likewise.
6458 (_Jv_CheckCast): Likewise.
6459 (_Jv_LookupInterfaceMethod): Likewise.
6460 (SignalError): Removed.
6461 (getClass): Use _Jv_NewStringUtf8Const to create String.
6463 * java/lang/natSystem.cc (arraycopy): Throw
6464 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6466 * Makefile.in: Rebuilt.
6467 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6469 * include/java-array.h: Mention gcjh, not gjavah.
6471 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6472 (canReadUnchecked): Likewise.
6473 (canWriteUnchecked): Likewise.
6474 (isFileUnchecked): Likewise.
6475 * java/io/natFileDescriptor.cc: Don't include cni.h.
6477 * java/lang/Thread.java (run__): Declare.
6478 * java/lang/natThread.cc (run__): New method, to avoid compiler
6480 (start): Use run__, not run_.
6482 * java/io/io-defs.h: Include cni.h and jvm.h.
6484 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6486 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6487 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6488 to natString.cc (with suitable renaming, inlines etc).
6489 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6490 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6491 * java/lang/String.h: Removed - now generated using gjavah.
6492 * java/lang/String.java: Re-written from scratch. Many native methods.
6493 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6494 * java/lang/natString.cc: Many functions re-written for "compact
6495 strings" representation, or native java.lang.String methods added.
6496 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6497 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6498 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6499 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6500 * include/cni.h: Add inline method.
6501 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6502 * include/javaprims.h: Moved some stuff frm String.h.
6503 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6504 * Makefile.am (nat_header): Added Character.h and String.h.
6505 (String.h): Add new rule.
6507 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6509 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6511 * posix-threads.cc: Include cni.h, jvm.h.
6512 * quick-threads.cc: Include cni.h, jvm.h.
6513 * nogc.cc: Include cni.h, not javaprims.h.
6514 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6515 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6516 include java-assert.h.
6517 * java/lang/natSystem.cc: Include cni.h. Don't include
6519 * java/lang/natRuntime.cc: Include cni.h. Don't include
6521 * prims.cc: Rearranged #include ordering. Don't include
6522 java-array.h or java-assert.h.
6523 * boehm.cc: Include config.h, cni.h.
6524 * exception.cc: Include config.h, cni.h.
6525 * include/jvm.h: Include java-assert.h.
6526 * include/cni.h: Include java/lang/Object.h. Don't include
6527 java-threads.h or java-array.h.
6529 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6531 * java/lang/Boolean.java: Rewritten.
6533 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6535 * java/lang/natFirstThread.cc (main_func): New typedef.
6536 (run): Use main_func, not JvPrivThreadStartFunc.
6537 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6539 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6541 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6544 Can't throw Java exceptions with C++ `throw':
6545 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6546 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6547 (setPriority): Likewise.
6551 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6552 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6554 Can't catch Java exceptions from C++:
6555 * java/lang/natThread.cc (finish_): New method.
6557 * java/lang/Thread.java (run_): Rewrote in Java.
6558 (finish_): New native method.
6560 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6562 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6564 * include/javaprims.h (java::io): Added Serializable.
6566 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6568 * java/util/EmptyStackException.java,
6569 java/util/NoSuchElementException.java: Rewritten.
6571 * java/util/ConcurrentModificationException.java,
6572 java/util/MissingResourceException.java,
6573 java/util/TooManyListenersException.java: Created.
6575 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6577 * include/cni.h (JvThrow): New function.
6578 * include/javaprims.h (_Jv_Throw): Declare.
6580 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6582 * java/util/Observable.java: Rewritten.
6584 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6586 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6587 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6588 Include NullPointerException.h.
6590 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6592 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6593 assignability checks. Don't bother using memcpy.
6595 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6597 * include/quick-threads.h (JvPrivThreadWait): New function.
6598 * include/no-threads.h (JvPrivThreadWait): New function.
6599 * include/posix-threads.h (JvPrivThreadWait): New function.
6600 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6602 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6604 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6605 offsets by size of type that is being copied.
6607 * java/lang/natThread.cc (start): Don't pass `object' argument to
6609 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6610 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6612 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6613 always pass thread as object.
6614 * include/quick-threads.h, include/posix-threads.h,
6615 include/no-threads.h (JvPrivThreadStart): Removed `object'
6618 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6620 * java/util/Dictionary.java: Rewritten.
6622 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6624 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6625 (JvPrivThreadDestroy): Likewise.
6627 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6629 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6631 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6633 * java/lang/natSystem.cc: Rewrote from scratch.
6634 * java/lang/System.java: Rewrote from scratch.
6635 * java/lang/Class.h (Class): Declare isAssignableFrom.
6636 * include/javaprims.h (java::lang): Added ArrayStoreException,
6637 IndexOutOfBoundsException.
6638 * Makefile.in: Rebuilt.
6639 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6640 IndexOutOfBoundsException.h.
6641 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6642 * include/jvm.h (_Jv_HashCode): New function.
6644 * java/lang/natThread.cc (suspend): Call checkAccess.
6646 * java/lang/Thread.java (setDaemon): Call checkAccess.
6648 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6650 * java/lang/Runtime.java: Rewrote from scratch.
6651 * java/lang/natRuntime.cc: Rewrote from scratch.
6653 * nogc.cc (JvPrivGCTotalMemory): New function.
6654 (JvPrivGCFreeMemory): Likewise.
6655 (total): New global.
6656 (JvPrivAllocObj): Increment total.
6657 (JvPrivAllocArray): Likewise.
6658 (JvPrivAllocBytes): Likewise.
6659 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6660 * boehm.cc (JvPrivGCTotalMemory): New function.
6661 (sum_blocks): Likewise.
6662 (JvPrivGCFreeMemory): Likewise.
6664 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6666 * include/javaprims.h (java::lang): Added FirstThread.
6667 * java/lang/natFirstThread.cc: New file.
6668 * java/lang/FirstThread.java: New file.
6669 * prims.cc (main_signature): Removed.
6670 (main_name): Removed.
6671 #include FirstThread.h.
6672 * Makefile.in: Rebuilt.
6673 * Makefile.am (TFRIEND): Removed.
6674 (java/lang/Thread.h): Likewise.
6675 (FTFRIEND): New macro.
6676 (java/lang/FirstThread.h): New target.
6677 (nat_files): Added natFirstThread.o.
6678 (nat_headers): Added FirstThread.h.
6679 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6680 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6682 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6686 * java/lang/natThread.cc (start): Synchronize the thread.
6687 (stop): Synchronize the thread.
6689 * java/lang/ThreadDeath.java: Rewrote from scratch.
6691 * Makefile.in: Rebuilt.
6692 * Makefile.am (TGFRIEND): New macro.
6693 (java/lang/ThreadGroup.h): New target.
6694 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6696 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6698 * nogc.cc: Include config.h.
6700 * java/lang/ThreadGroup.java: Rewrote from scratch.
6702 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6704 * java/lang/Thread.java (checkAccess): Only call in to security
6705 manager if it exists.
6706 (Thread): Don't check access when creating the first thread. Add
6707 this thread to the appropriate ThreadGroup.
6709 * java/lang/natThread.cc (run_): Call uncaughtException method on
6712 * java/lang/Runnable.java: Rewrote from scratch.
6713 * java/lang/Thread.java: Updated copyright comment to correct
6716 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6718 * java/util/Random.java: Rewritten.
6720 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6722 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6723 trailing 0 in array[].
6725 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6727 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6728 and RUNTESTFLAGS from AM_MAKEFLAGS.
6729 (SUBDIRS): Conditionally include testsuite.
6730 * Makefile.in: Rebuilt.
6732 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6734 * java/lang/Object.h: Include java-assert.h.
6736 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6738 * Makefile.am: Add testsuite directory.
6739 * configure.in: Build testsuite/Makefile.
6740 * Makefile.in, configure: Rebuilt.
6742 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6744 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6745 * include/jvm.h (_Jv_StartFirstThread): Declare.
6747 * include/javaprims.h (java::lang): Added Exception,
6750 * Makefile.in: Rebuilt.
6751 * Makefile.am (nat_headers): Added NullPointerException.h,
6752 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6753 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6754 (java/lang/Thread.h): New target.
6755 (TFRIEND): New macro
6757 * include/java-assert.h (JvFail): Use 0 and not NULL.
6759 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6760 instead of assuming we are a friend of Thread.
6761 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6762 instead of assuming we are a friend of Thread.
6764 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6766 * java/lang/natThread.cc: Rewrote from scratch.
6767 * java/lang/Thread.java: Rewrote from scratch.
6768 * prims.cc (JvRunMain): Use new Thread constructor.
6769 * include/javaprims.h (java::lang): Added InterruptedException.
6770 * Makefile.in: Rebuilt.
6771 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6772 * java/lang/Thread.h: Removed.
6773 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6774 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6776 * posix-threads.cc (JvPrivThreadJoin): Removed.
6777 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6778 (really_start): Don't notify join_cond.
6779 (JvPrivThreadStart): Added `data' argument.
6780 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6781 (JvPrivThreadJoin): Likewise.
6782 Use JvFail instead of sorry.
6783 (JvPrivThreadSuspend): Removed.
6784 (JvPrivThreadResume): Removed.
6785 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6786 (JvPrivThreadJoin): Likewise.
6787 (JvPrivThreadSuspend): Use JvFail.
6788 (JvPrivThreadResume): Likewise.
6789 (JvPrivThreadSuspend): Removed.
6790 (JvPrivThreadResume): Likewise.
6791 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6792 (JvPrivThread_t): Removed join_mutex, join_cond.
6793 Use JvFail instead of sorry.
6794 (JvPrivThreadSuspend): Removed.
6795 (JvPrivThreadResume): Likewise.
6797 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6799 * java/util/Observer.java: Rewritten
6800 * java/util/Enumeration.java: Rewritten
6802 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6804 * java/util/StringTokenizer.java: Rewritten
6805 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6806 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6807 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6809 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6811 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6814 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6815 Include java-assert.h.
6816 * include/java-assert.h: New file.
6817 * prims.cc (_Jv_Abort): New function.
6818 Include java-assert.h, not assert.h.
6819 (_Jv_MonitorExit): Use JvAssert.
6820 (resolveConstants): Likewise.
6821 (processClass): Likewise.
6822 (JvRunMain): Assert that method is found.
6824 * configure: Rebuilt.
6825 * configure.in: Check for test subdir.
6826 * Makefile.in: Rebuilt.
6827 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6829 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6830 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6832 * prims.cc (resolveConstants): Removed unused variables.
6833 (processClass): Likewise.
6835 * include/quick-threads.h (JvPrivThreadCurrent): Use
6837 * quick-threads.cc (destroy_data): New function.
6838 (JvPrivInitThreads): Create key.
6839 (JvPrivThreadKey): New global.
6840 (JvPrivThreadStart): Use coop_setspecific.
6842 * include/quick-threads.h, include/posix-threads.h,
6843 include/no-threads.h, no-threads.cc, quick-threads.cc,
6844 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6846 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6848 * include/no-threads.h (JvPrivThreadInitData): Don't set
6851 * include/quick-threads.h (JvPrivCondWait): coop function now
6853 (JvPrivThreadJoin): Likewise.
6855 * java/lang/Thread.h (Thread): Updated declaration of
6857 * include/quick-threads.h, include/posix-threads.h: Updated
6858 declaration of JvPrivThreadStart.
6859 * include/no-threads.h (JvPrivThreadStart): Changed definition
6861 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6862 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6863 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6865 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6867 * quick-threads.cc (qthrow): New function.
6868 (JvPrivInitThreads): New function.
6869 (started): New global.
6870 (JvPrivThreadStart): Call coop_start if required.
6871 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6872 (JvPrivThreadDestroy): Likewise.
6873 (JvPrivInitThreads): Removed.
6874 * include/posix-threads.h (JvPrivThreadCancel): Added error
6876 * java/lang/natThread.cc (stop_): Pass exception to
6879 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6881 * include/javaprims.h (java::lang): Added
6882 IllegalArgumentException, IllegalThreadStateException, Math,
6883 NullPointerException, ThreadDeath.
6884 (java::util): Added Enumeration.
6886 * Makefile.in: Rebuilt.
6887 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6889 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6891 (threadsv): Renamed from threads to avoid clash in C++ header.
6892 (groupsv): Likewise.
6893 * include/no-threads.h (JvPrivThreadStart): Removed.
6894 * no-threads.cc (JvPrivThreadStart): New function.
6895 * java/lang/Thread.java (Thread): New constructor for internal use.
6896 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6897 (Thread): Declare constructor.
6898 * prims.cc (JvRunMain): Create the initial Thread and
6900 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6901 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6902 Removed `daemon' argument.
6904 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6905 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6907 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6909 * Makefile.in: Rebuilt.
6910 * Makefile.am (INCLUDES): Include THREADINCS.
6912 * configure: Rebuilt.
6913 * configure.in: Recognize `qt' as a threads package.
6915 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6917 * java/util/Stack.java (pop): Null out topmost node for robustness.
6919 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6921 * java/util/Stack.java: Rewritten.
6922 * java/util/Vector.java (isEmpty): Simplified expression.
6924 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6926 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6927 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6929 * include/java-array.h (JvNewObjectArray): Created inline to
6932 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6935 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6937 * java/util/Vector.java: Rewritten.
6938 * java/io/Serializable.java: Created.
6940 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6942 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6943 Infinity is 1/0, not 1/1.
6945 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6947 * configure: Rebuilt.
6948 * configure.in: Removed duplicate AC_ARG_WITH.
6950 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6952 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6954 (_Jv_InitClass): Renamed from soft_initialise_class.
6955 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6956 (_Jv_CheckCast): Renamed from soft_checkcast.
6957 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6958 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6959 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6960 * include/cni.h (JvInitClass): New function.
6961 (_Jv_InitClass): Renamed from soft_initialise_class.
6963 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6965 * configure: Rebuilt.
6966 * configure.in (CXX): Don't set.
6967 * Makefile.in: Rebuilt.
6968 * Makefile.am (AM_CXXFLAGS): New macro.
6970 * Makefile.in: Rebuilt.
6971 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6972 nogc.o): New target.
6974 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6976 (mark_array): Likewise.
6978 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6980 * java/lang/Class.h (JvMethod): Removed some unused fields.
6981 (JvField.info): Removed unused idx union variant.
6983 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6985 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6988 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6990 * configure.in, configure (CXX): Add -fvtable-thunks.
6992 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6994 * java/lang/Object.java (finalize): Move first.
6995 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6996 (Object): Re-arrange order to match Object.java.
6998 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
7000 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
7001 * java/lang/natString.cc (hashChars): Likewise.
7003 * prims.cc (RuntimeClass): New macro.
7004 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
7006 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
7008 * Makefile.in: Rebuilt.
7009 * Makefile.am (AM_MAKEFLAGS): New macro.
7011 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
7013 * nogc.cc: Include <javaprims.h>.
7015 * Makefile.in: Rebuilt.
7016 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
7018 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
7020 * exception.cc (terminate): Removed.
7021 (unexpected): Removed.
7023 * configure: Rebuilt.
7024 * configure.in: Handle case where target subdir is ".".
7026 * configure: Rebuilt.
7027 * configure.in: Compute COMPPATH based on --with-target-subdir
7028 option. Added --with-target-subdir and --with-cross-host. Use
7029 --with-cross-host to determine when a cross compiler is in use.
7031 * Makefile.in: Rebuilt.
7032 * Makefile.am (GJAVAH): Include COMPPATH.
7033 * configure: Rebuilt.
7034 * configure.in: Subst COMPPATH.
7036 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
7038 * prims.cc (lockMutex): Removed.
7039 (unlockMutex): Likewise.
7040 (processClass): Lock the class using a JvSynchronize object.
7042 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
7044 * java/lang/natString.cc (gc_calloc_fixed): Removed.
7045 (gc_free_fixed): Removed.
7046 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
7047 freeing old value of strhash.
7049 * exception.cc (_Jv_type_matcher): Cast first argument to
7052 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
7054 * include/java-array.h (jstringArray): New type.
7055 * java/lang/natSystem.cc (setProperty): Removed.
7056 (initProperties): Directly call JvNewStringLatin1 for arguments.
7057 * java/util/natDate.cc: Include java/util/Date.h, not
7060 * java/io/FileDescriptor.java (available): No longer static.
7061 * java/lang/natDouble.cc (Double): Removed class definition.
7062 * include/javaprims.h (java::lang::Number): Declare.
7063 (java::lang::NumberFormatException): Likewise.
7064 (java::io::FilenameFilter): Likewise.
7065 (java::lang::Character): Likewise.
7066 (java::lang::Error): Likewise.
7067 (java::lang::SecurityManager): Likewise.
7068 (java::util::Vector): Likewise.
7069 (java::io::FileNotFoundException): Likewise.
7070 (java::io::IOException): Likewise.
7071 (java::lang::NativeLang): Likewise.
7072 (java::lang::UnsatisfiedLinkError): Likewise.
7073 (java::util::StringTokenizer): Likewise.
7074 (java::io::InputStream, java::io::OutputStream): Likewise.
7075 (java::io::PrintStream, java::lang::SecurityException): Likewise.
7076 (java::util::Hashtable): Likewise.
7077 * Makefile.in: Rebuilt.
7078 * Makefile.am (nat_headers): Added java/lang/Double.h,
7079 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
7080 (MOSTLYCLEANFILES): Added nat_headers.
7081 * include/jvm.h: Moved many defines, declarations, and functions
7082 to java/lang/Class.h.
7083 (struct JvSyncInfo): Moved to java/lang/Object.h.
7084 (UTF8_GET): Moved to java/lang/String.h.
7086 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
7088 * java/io/io-defs.h: Don't include java-io.h.
7089 * include/java-io.h: Removed.
7090 * include/javaprims.h: Include java::io.
7092 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
7094 * include/java-io.h (File): Removed
7095 (FileDescriptor): Likewise.
7097 * java/io/io-defs.h: Include java/io/File.h and
7098 java/io/FileDescriptor.h.
7100 * Makefile.in: Rebuilt.
7101 * Makefile.am (GJAVAH): New macro.
7102 (.class.h): New rule.
7103 (SUFFIXES): Added .h.
7104 (nat_headers): New macro.
7105 ($(nat_headers)): New target.
7106 (BUILT_SOURCES): Added nat_headers.
7108 * include/java-util.h: Removed.
7110 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7112 * include/java-io.h: Changed to avoid java-lang.h.
7113 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7115 * java/lang/natSystem.cc: Include java/lang/System.h, not
7117 * java/lang/natString.cc: Include java/lang/String.h, not
7119 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7121 * java/lang/natClass.cc: Include java/lang/Class.h, not
7123 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7125 * java/lang/natObject.cc: Include java/lang/Object.h, not
7127 * exception.cc: Don't include java-lang.h.
7128 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7129 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7130 * nogc.cc: Don't include java-lang.h.
7131 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7132 * prims.cc (processClass): Don't use `init_type'; just cast to
7134 Include java/lang/Class.h and jvm.h, not java-lang.h.
7135 (JvAllocObject): Wrote single-argument version.
7136 (PrimClass): Inherit from Class.
7137 (initPrimClass): Removed.
7138 * include/java-lang.h: Removed.
7139 * include/jvm.h: Declare struct _dispatchTable.
7140 * include/cni.h: Don't declare _Jv_MonitorEnter,
7141 _Jv_MonitorExit, struct _dispatchTable.
7142 * include/javaprims.h: Moved all typedefs here, from cni.h.
7143 * java/lang/Class.h: New file.
7144 * include/java-array.h: New file.
7145 * java/lang/Object.h: New file.
7147 * prims.cc (classFromSig): Now static.
7149 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7151 * include/cni.h: Don't mention soft_new.
7152 * include/java-lang.h (Object): Don't mention soft_new. Mention
7153 _Jv_NewPrimArray, not newPrimArray.
7154 * prims.cc (soft_new): Removed.
7155 (_Jv_NewArray): Renamed from soft_newarray.
7156 (soft_anewarray): Use JvNewObjectArray.
7157 (newArray): Likewise.
7158 (newRefArray): Removed.
7159 (_Jv_NewPrimArray): Renamed from newPrimArray.
7160 (equalUtf8Consts): Now static.
7161 (soft_instanceof): Removed.
7162 * java/lang/natDouble.cc (doubleToString): Now static.
7164 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7165 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7168 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7170 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7172 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7174 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7175 (JvPrivMutexUnlock): Likewise.
7176 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7177 Return value now jint.
7178 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7181 * Makefile.in: Rebuilt.
7182 * Makefile.am: Don't allow `jV' names.
7183 (maintainer-check): Depend on libjava.a.
7184 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7186 * Makefile.in: Rebuilt.
7187 * Makefile.am (NM): New macro.
7188 (maintainer-check): New target.
7190 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7192 * configure: Rebuilt.
7193 * configure.in: Use --enable-threads, not --enable-gc. Fix
7194 documentation for --enable-threads. Changed option to work like
7195 identical option in gcc/configure.
7197 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7199 * boehm.cc (mark_array): Use JvGetArrayLength.
7201 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7203 * exception.cc: New file (mostly written by Andrew MacLeod),
7204 exception handling support.
7205 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7206 Remove -fexceptions - it is now the default.
7208 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7209 (JvAllocObject): Renamed to _Jv_AllocObject.
7210 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7211 (loadClass): Renamed to _Jv_FindClass.
7212 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7213 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7214 * include/java-lang.h (JvGetArrayLength): New CNI function.
7215 * include/jvm.h (_Jv_FindClass): Added declaration.
7217 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7219 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7221 * java/lang/natClass.cc (getName): Add implementation.
7222 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7224 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7226 * Makefile.in: Rebuilt.
7227 * Makefile.am (.class.o): Added -fexceptions.
7229 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7231 * configure: Rebuilt.
7232 * configure.in: Don't check for __nanosleep.
7233 * posix-threads.cc (nanosleep): Never define.
7235 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7237 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7240 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7242 * java/lang/natThread.cc (enumerate): Uncommented.
7243 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7244 (interrupt): Call it.
7246 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7248 * configure: Rebuilt.
7249 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7251 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7253 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7254 * include/java-lang.h (Thread): Added `interrupted_' method.
7255 * java/lang/Thread.java (interrupted_): New method.
7256 * java/lang/natThread.cc (join): Possibly throw interrupted
7257 exception after join finishes.
7258 (interrupted_): New method.
7259 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7261 (JvPrivThreadJoin): New function.
7262 (really_start): Notify all threads waiting for this thread.
7263 (struct starter): Added `data' member.
7264 (JvPrivThreadStart): Set it.
7265 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7267 (JvPrivThreadJoin): No longer inline.
7268 (JvPrivThreadInterrupt): New function.
7270 * include/no-threads.h (JvPrivThreadSleep): Removed.
7271 * posix-threads.cc (JvPrivThreadSleep): Removed.
7273 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7275 * configure: Rebuilt.
7276 * configure.in (THREADOBJS): Initialize to no-threads.o in
7278 * posix-threads.cc (key): New global.
7279 (JvPrivInitThreads): New function.
7280 (really_start): Set thread-specific data to point to object.
7281 (JvPrivThreadStart): Added `daemon' argument.
7282 (JvPrivThreadSleep): Added `data' argument.
7283 * include/posix-threads.h (JvPrivInitThreads): Removed
7285 (JvPrivThreadCurrent): New function.
7286 * include/no-threads.h (JvPrivThreadInitData): Initialize
7287 JvPrivOnlyThread. Added `thread' argument.
7288 (JvPrivThreadCurrent): New function.
7289 (JvPrivThreadStart): Added `daemon' argument.
7290 * no-threads.cc: New file.
7291 * java/lang/natThread.cc (init_data): New function.
7293 (start): Set `alive' member.
7294 (stop_): Clear `alive' member.
7295 (destroy): Likewise.
7296 (currentThread): Implemented.
7297 (start): Pass `daemon' argument to JvPrivThreadStart.
7299 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7300 (Thread): Added `init_data' method.
7301 * java/lang/Thread.java (alive, data): New instance variables.
7302 (init_data): New private method.
7303 (isAlive): No longer native.
7305 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7307 * include/java-lang.h (JvRunMain): Declare.
7308 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7309 * prims.cc (JvRunMain): New function.
7310 (main_signature, main_name): New globals.
7312 * boehm.cc (mark_array): Use `elements' function and not
7313 operator[] on jarray.
7315 * posix-threads.cc: Include <config.h>. Define nanosleep if
7318 * configure: Rebuilt.
7319 * configure.in: Check for _nanosleep.
7321 * configure: Rebuilt.
7322 * configure.in: Check for pthread_mutexattr_settype.
7324 * include/cni.h (class JvSynchronize): New class.
7325 * java/lang/Thread.java (sleep): Throws InterruptedException.
7326 (join): Throws InterruptedException.
7327 (resume): Not native.
7328 (resume_): New method.
7329 (start): Now synchronized.
7330 (stop_): New method.
7331 (Thread): Synchronize when accessing threadNumber.
7333 * java/lang/natThread.cc (throwException): New macro.
7334 (sleep): Throw InterruptedException.
7337 * include/java-lang.h (Runtime): Added interrupted().
7339 * boehm.cc (call_finalizer): Correctly initialize jobj.
7340 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7342 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7345 * configure: Rebuilt.
7346 * configure.in: Added support for --disable-threads.
7347 * include/no-threads.h: New file.
7349 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7351 * Makefile.in: Rebuilt.
7352 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7353 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7354 (libjava_a_LIBADD): Added THREADOBJS.
7355 * configure: Rebuilt.
7356 * configure.in: Added --with-threads option.
7357 * posix-threads.cc: New file.
7358 * include/posix-threads.h: New file.
7359 * include/java-lang.h (Object): Added static member sync_mutex,
7360 member sync_info, method init_mutex.
7361 (struct JvSyncInfo): New struct.
7362 Include "java-threads.h".
7363 * prims.cc (soft_monitorenter): Wrote.
7364 (soft_monitorexit): Likewise.
7365 * java/lang/natObject.cc (init_mutex): New method.
7369 (sync_mutex): Define.
7370 Include "java-threads.h".
7372 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7374 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7375 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7377 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7379 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7380 Added extern "Java" in places to tell G++ Object is a "Java" type.
7381 Other minor renaming and fixes.
7382 * include/java-io.h (FileDescriptor): Add friend class declarations.
7383 G++ no longer allows non-Java types in method parameters and results
7384 of Java classes. Converted most offending methods to friends.
7385 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7386 * java/lang/natSystem.cc (setProperty): Make friend.
7387 * java/lang/natString.cc, include/java-lang.h (String): Rename
7388 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7389 * include/java-lang.h (JArray): Remove getData and eoprator[].
7390 Add elements friend function instead.
7391 * java/lang/natSystem.cc (arraycopy): Use elements function.
7392 * java/io/natFileDescriptor.cc (read, write): Likewise.
7393 * include/java-lang.h (Object): Remove unused make method.
7394 (System::setProperty(char*,char*)): Turn into friend function.
7395 (Class): Rename newObject by JvAllocObject.
7396 * prims.cc: Update to use JvAllocObject, and elements.
7398 * java/lang/natDouble.cc: Fix double -> jdouble.
7400 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7402 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7404 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7406 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7407 * include/java-lang.h (Runtime): finalize_on_exit and
7408 runFinalizersOnExit now static.
7409 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7411 (finalize_on_exit): Now static.
7413 * boehm.cc (mark_obj): Get class using getClass() method on
7415 (_dispatchTable): Removed.
7417 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7419 * java/io/natFileDescriptor.cc (open_read): Only call open if
7421 (open_write): Likewise.
7423 * Makefile.in: Rebuilt.
7424 * Makefile.am ($(nat_files)): Depend on config.h.
7426 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7428 * prims.cc (ObjectClass): Now a macro; updated for new class name
7430 (StringClass): Likewise.
7431 (ClassClass): Likewise.
7433 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7435 * java/io/natFileDescriptor.cc (available): Do nothing unless
7436 HAVE_SELECT defined.
7437 * java/util/natDate.cc (setTime): Conditional on
7439 (toString): Conditional on HAVE_TIME.
7440 * aclocal.m4, configure: Rebuilt.
7441 * acinclude.m4: New file.
7442 * configure.in: Don't actually call AM_EXEEXT. Call
7443 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7444 --with-target-subdir option. Check for select and open
7447 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7449 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7450 (call_finalizer): Likewise.
7451 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7452 * prims.cc (newObject): Pass actual method pointer to
7453 JvPrivRegisterFinalizer.
7454 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7455 (JvPrivRegisterFinalizer): Changed interface.
7457 * Makefile.in: Rebuilt.
7458 * Makefile.am (MOSTLYCLEANFILES): New macro.
7459 (CLEANFILES): Removed javao_files.
7461 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7463 * nogc.cc: New file.
7464 * Makefile.in: Rebuilt.
7465 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7466 (EXTRA_libjava_a_SOURCES): New macro.
7467 (libjava_a_SOURCES): Removed boehm.cc.
7468 (libjava_a_DEPENDENCIES): Added GCOBJS.
7469 (libjava_a_LIBADD): Likewise.
7470 * configure: Rebuilt.
7471 * configure.in: Added code for --enable-gc=TYPE.
7473 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7475 * boehm.cc (mark_array): Don't further dereference pointer from
7478 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7479 * Makefile.in: Rebuilt.
7480 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7481 one for boehm-gc build directory.
7483 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7485 * include/java-lang.h (finalize_on_exit): New instance variable in
7486 java::lang::Runtime.
7487 (runFinalizersOnExit): New method.
7488 * java/lang/Runtime.java (finalize_on_exit): New instance
7490 (runAllFinalizers_): New private method.
7491 (runFinalizersOnExit): New method.
7492 * boehm.cc (JvPrivRunFinalizers): New function.
7493 (JvPrivRunAllFinalizers): Likewise.
7494 (JvPrivRunGC): Likewise.
7495 * java/lang/natRuntime.cc: Include "jvm.h".
7496 (gc): Call JvPrivRunGC.
7497 (runFinalization): Call JvPrivRunFinalizers.
7498 (runFinalizersOnExit): New method.
7499 (exit_): Call JvPrivRunAllFinalizers if required.
7500 * include/jvm.h: Declare JvPrivRunFinalizers,
7501 JvPrivRunAllFinalizers, JvPrivRunGC.
7503 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7505 * boehm.cc (JvPrivRegisterFinalizer): New function.
7506 (call_finalizer): Likewise.
7507 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7508 * prims.cc (finalize_name): New global.
7509 (newObject): Just call other newObject.
7510 (newObject): Register finalizer if it exists.
7512 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7514 * prims.cc (gc_malloc): Removed.
7515 (makeUtf8Const): Use JvPrivAllocBytes.
7516 (lookupArray): Likewise.
7517 (newPrimArray): Likewise.
7518 (JvNewObjectArray): Use JvPrivAllocArray.
7519 (newObject): Use JvPrivAllocObj.
7520 (newObject): Likewise.
7521 Changed Method -> JvMethod everywhere.
7522 Changed Field -> JvField everywhere.
7523 * include/java-lang.h (Object): Changed type of `fields' to
7525 (jmethodID, jfieldID): New typedefs.
7526 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7528 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7530 (METHOD_NATIVECODE): Moved from java-lang.h.
7531 (class JvField): New class.
7532 (JvGetFirstInstanceField): New function.
7533 (JvFieldIsRef): Likewise.
7534 (JvGetObjectField): Likewise.
7535 (JvNumInstanceFields): Likewise.
7537 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7539 * boehm.cc: New file.
7540 * Makefile.in: Rebuilt.
7541 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7542 (INCLUDES): Added -I options to find boehm-gc files.
7544 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7546 * configure: Rebuilt.
7547 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7549 * Makefile.in: Rebuilt.
7550 * Makefile.am (nat_files): New macro.
7551 (libjava_a_DEPENDENCIES): Use it.
7552 (libjava_a_LIBADD): Likewise.
7553 ($(nat_files)): New static pattern rule.
7554 (class_files): Run separate find to find .class files.
7555 (javao_files): Compute based on class_files.
7556 (BUILT_SOURCES): New macro.
7558 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7560 * Makefile.am (java_files): New macro.
7561 (class_files): Likewise.
7562 (javao_files): Likewise.
7563 (libjava_a_DEPENDENCIES): Include $(javao_files).
7564 (libjava_a_LIBADD): Likewise.
7565 (classes.stamp): Depend on $(java_files); only recompile changed
7568 (CLEANFILES): Don't run find; use macros. Don't mention
7570 (.class.o): New target.
7571 (compiled.stamp): Removed.
7573 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7575 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7576 LineNumberReader}>java: Newly-implemented standard classes.
7578 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7580 * Makefile.in: Rebuilt.
7581 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7583 * Makefile.in: Rebuilt.
7584 * Makefile.am (hack): New macro.
7585 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7587 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7589 * include/config.h.in: New file.
7590 * include/config.h: Removed.
7591 * acconfig.h: New file.
7592 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7593 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7594 libjava_a_LIBADD): New macros.
7595 (INCLUDES): New macro.
7598 (SUFFIXES): Removed.
7600 (libjava.a): Removed.
7602 * configure: Rebuilt.
7603 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7604 Look for headers and functions we require. Create
7607 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7609 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7610 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7611 soft_lookupinterfacemethod): New functions.
7612 (PrimClass): Actually initialize the primitive classes.
7613 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7615 * include/java-util.h: Removed java::util definition.
7616 * include/cni.h: Moved java::util here and added Properties.
7617 Added more function prototypes.
7618 * include/java-lang.h: Added mroe methods and friend declarations.
7619 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7620 * include/jvm.h (strLengthUtf8): Add declaration.
7622 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7624 * java/lang/{Byte,Short,Void}.java: New classes.
7625 * java/lang/Character.java (isJavaIdentifierStart,
7626 JavaIdentifierPart): New static methods.
7627 * java/lang/Number.java (byteValue, shortValue): New methods.
7629 * java/lang/String.java (intern, hashCode): Make native.
7630 * java/lang/natString.cc: New file. Handle the string pool.
7631 * Makefile.am: Build natString.o. Use CXXFLAGS.
7633 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7634 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7635 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7636 * java/lang/System.java (setProperty): New private method.
7637 (initProperties): Take argument, and make native.
7638 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7639 (currentTimeMillis): Make more robust.
7641 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7642 * java/io/UnsupportedEncodingException.java: New exception class.
7644 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7645 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7647 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7649 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7650 * prims.cc: Added bunch of stuff.
7651 * include/cni.h: Added various definitions.
7652 * include/java-lang.h: Added Method, various friends, some macros.
7654 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7655 * java/lang/System.java (arraycopy): Make native.
7657 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7659 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7660 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7661 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7662 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7664 * java/lang/Runtime.java: Declare methods as native instead of
7666 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7667 * java/lang/System.java: Comment out some stuff, for now.
7668 * java/lang/Thread.java: Re-write. Use native methods.
7669 * java/lang/NativeLang.java: Remove most of it.
7671 * java/util/natDate.cc: Native (C++) methods for Date.
7672 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7673 * java/util/Date.java: Complete re-write.
7675 * java/io/io-defs.h: New header file.
7676 * java/io/FileDescriptor.java: Add a bunch of private methods,
7677 mostly moved from NativeIO.java and natNativeIO.cc.
7678 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7679 * java/io/File.java: Use new code.
7680 * java/io/{FileInputStream.java.FileOutputStream.java,
7681 RandomAccessFile.java}: Use new private FileDescriptor methods.
7682 * java/io/NativeIO.java: Removed, no longer used.
7684 * java/io/StreamTokenizer.java (numericChars): Make char array.
7686 * include/*.h: Various header files used by the C++ native code.
7688 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7689 New autoconf+automake-based setup.
7690 * prims.cc: New file for Java "primitives".