1 2000-02-07 Tom Tromey <tromey@cygnus.com>
3 * interpret.cc (PUSHL): Don't use expression statement.
8 * jni.cc (add_char): Conditional on INTERPRETER.
9 (mangled_name): Likewise.
11 * include/java-interp.h (class _Jv_MethodBase): Conditional on
13 (class _Jv_JNIMethod): Likewise.
15 2000-02-04 Warren Levy <warrenl@cygnus.com>
17 * Makefile.am: Added MPN.java and BigInteger.java.
18 * Makefile.in: Rebuilt.
19 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
21 * java/math/BigInteger.java: New file. Based primarily on
22 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
24 2000-02-04 Tom Tromey <tromey@cygnus.com>
26 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
28 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
29 if the method is native.
30 * resolve.cc (ncode): Don't handle native methods.
31 (_Jv_JNIMethod::ncode): New method.
32 (_Jv_PrepareClass): Handle native methods.
33 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
34 Include AbstractMethodError.h.
35 (add_char): New function.
36 (mangled_name): Likewise.
37 * include/java-interp.h (class _Jv_JNIMethod): New class.
38 (class _Jv_MethodBase): New class.
39 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
40 (_Jv_InterpClass): Changed `interpreted_methods' field to type
43 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
44 * java/lang/natRuntime.cc (libraries_size, libraries_count,
45 libraries): New globals.
46 (add_library): New function.
47 (_Jv_FindSymbolInExecutable): New function.
49 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
52 2000-02-04 Andrew Haley <aph@cygnus.com>
54 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
55 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
56 * java/lang/natThrowable.cc (printRawStackTrace): Rename
57 printStackTrace to printRawStackTrace.
59 2000-02-03 Tom Tromey <tromey@cygnus.com>
61 * java/util/Calendar.java (toString): New method.
62 * java/util/SimpleTimeZone.java (clone): New method.
63 (toString): New method.
64 * java/util/TimeZone.java (clone): New method.
65 * java/text/SimpleDateFormat.java (clone): New method.
66 * java/text/NumberFormat.java (clone): New method.
68 * java/text/Format.java (clone): New method.
69 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
72 * java/text/DateFormat.java (clone): New method.
73 * java/text/Collator.java (clone): New method.
75 2000-02-03 Tom Tromey <tromey@cygnus.com>
77 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
80 2000-02-01 Tom Tromey <tromey@cygnus.com>
82 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
83 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
84 constructing the closure if the function is native.
85 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
86 a template function, #if'd out, or static.
87 Include <java-interp.h>.
89 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
91 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
93 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
94 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
96 (wrap_value): New function.
97 (_Jv_JNI_CallAnyMethodV): Use it.
98 (_Jv_JNI_CallAnyMethodA): Likewise.
99 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
100 (_Jv_JNI_GetStaticField): Likewise.
102 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
103 (_Jv_JNI_GetStaticField): Likewise.
105 2000-01-31 Tom Tromey <tromey@cygnus.com>
107 * prims.cc (_Jv_MallocUnchecked): New function.
108 (main_init): Call _Jv_JNI_Init.
109 * include/jvm.h (_Jv_MallocUnchecked): Declare.
110 (_Jv_JNI_Init): Declare.
111 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
113 (_Jv_JNI_NewGlobalRef): New function.
114 (_Jv_JNI_DeleteGlobalRef): New function.
115 (_Jv_JNI_DeleteLocalRef): New function.
116 (_Jv_JNI_conversion_call): Initialize and clear local reference
118 (_Jv_JNI_NewLocalRef): New function.
119 (struct _Jv_JNI_LocalFrame): New structure.
120 (_Jv_JNI_PushLocalFrame): New function.
121 (_Jv_JNI_EnsureLocalCapacity): New function.
122 (FRAME_SIZE): New define.
123 (_Jv_JNI_GetStringChars): Mark string, not characters.
124 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
125 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
126 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
128 (_Jv_JNI_DefineClass): Make return value a local ref.
129 (_Jv_JNI_FindClass): Likewise.
130 (_Jv_JNI_GetSuperclass): Likewise.
131 (_Jv_JNI_ExceptionOccurred): Likewise.
132 (_Jv_JNI_AllocObject): Likewise.
133 (_Jv_JNI_GetObjectClass): Likewise.
134 (_Jv_JNI_CallAnyMethodV): Likewise.
135 (_Jv_JNI_NewString): Likewise.
136 (_Jv_JNI_NewStringUTF): Likewise.
137 (_Jv_JNI_NewObjectArray): Likewise.
138 (_Jv_JNI_GetObjectArrayElement): Likewise.
139 (_Jv_JNI_ToReflectedField): Likewise.
140 (_Jv_JNI_ToReflectedMethod): Likewise.
141 (_Jv_JNIFunctions): Updated table for new functions.
142 (_Jv_JNI_Init): New function.
143 (mark_for_gc): Wrote.
144 (unmark_for_gc): Wrote.
145 * include/jni.h (struct JNINativeInterface): Removed name from
146 PopLocalFrame parameter.
147 (class _Jv_JNIEnv): Added `locals' field.
149 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
151 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
154 2000-01-30 Tom Tromey <tromey@cygnus.com>
156 * include/config.h.in: Rebuilt.
157 * acconfig.h (HAVE_ICONV): Define.
158 * configure: Rebuilt.
159 * configure.in: Check for `iconv' function.
160 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
161 no specific encoder exists.
162 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
163 no specific encoder exists.
164 * Makefile.in: Rebuilt.
165 * Makefile.am (convert_source_files): Mention Input_iconv.java and
167 (nat_source_files): Added natIconv.cc.
168 * gnu/gcj/convert/natIconv.cc: New file.
169 * gnu/gcj/convert/Input_iconv.java: New file.
170 * gnu/gcj/convert/Output_iconv.java: New file.
172 2000-01-28 Tom Tromey <tromey@cygnus.com>
174 * Makefile.in: Rebuilt.
175 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
177 2000-01-26 Tom Tromey <tromey@cygnus.com>
179 * gcj/method.h (JvNumMethods): Moved from Class.h.
180 (JvGetFirstMethod): Likewise.
181 * java/lang/Class.h (Object): Updated decl of
182 _Jv_JNI_ToReflectedField.
183 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
184 * Makefile.in: Rebuilt.
185 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
186 argument of _Jv_JNI_ToReflectedField.
187 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
189 (java/lang/reflect/Method.h): Likewise.
190 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
192 (jweak): New typedef.
193 (struct JNINativeInterface): Correctly declare remaining entries.
194 * jni.cc: Include Class.h, ClassLoader.h.
195 (_Jv_JNI_FindClass): New function.
196 (_Jv_JNI_DefineClass): New function.
197 (_Jv_JNI_conversion_call): New function.
198 (_Jv_JNI_FindClass): Use current class loader to find class.
199 (_Jv_JNI_ExceptionCheck): New function.
200 (_Jv_JNI_FromReflectedField): Now static.
201 (MethodClass): New define.
202 (_Jv_JNI_FromReflectedMethod): New function.
203 (_Jv_JNI_ToReflectedMethod): Likewise.
205 (_Jv_JNI_IsAssignableFrom): Renamed.
206 (_Jv_JNI_GetStringRegion): New function.
207 Include StringIndexOutOfBoundsException.h.
208 (_Jv_JNI_GetStringUTFRegion): New function.
209 (_Jv_JNIFunctions): Updated for new functions.
210 (_Jv_JNI_GetPrimitiveArrayCritical): New function
211 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
212 (_Jv_JNI_GetStringCritical): New function.
213 (_Jv_JNI_ReleaseStringCritical): Likewise.
214 (get_throwable): Removed.
215 (GCJ_JV_JNIENV_FRIEND): Removed.
216 (__GCJ_JNI_IMPL__): Define.
219 * resolve.cc (get_ffi_type_from_signature): Handle case where
222 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
224 * interpret.cc (run): Don't call println.
225 Don't include PrintStream.h.
227 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
228 nameIndex. Use "jint" as type for boffset.
229 * java/lang/Class.h (struct _Jv_Method): Made accflags a
231 (Class): Likewise. Also changed type of method_count,
232 vtable_method_count, size_in_bytes, field_count,
233 static_field_count, interface_count.
234 * gcj/array.h (__JArray): Made `length' a const jsize, not an
237 2000-01-21 Tom Tromey <tromey@cygnus.com>
239 * java/lang/reflect/natConstructor.cc (newInstance): Use
241 * include/jvm.h: Declare _Jv_CallAnyMethodA.
242 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
243 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
246 (invoke): Use _Jv_CallAnyMethodA.
248 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
249 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
251 (struct _Jv_Method): Added getNextMethod method.
252 (JvNumMethods): New function.
253 (JvGetFirstMethod): Likewise.
254 * gcj/field.h (JvGetFirstStaticField): New function.
255 (JvNumStaticFields): Likewise.
256 (getNextField): Renamed from getNextInstanceField.
257 (struct _Jv_Field): New method getClass.
258 * jni.cc: Wrote many new functions.
259 * include/jni.h (JNI_TRUE): Define.
260 (JNI_FALSE): Likewise.
261 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
262 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
263 jcharArray, jfloatArray, jdoubleArray): New typedefs.
264 (jfieldID, jmethodID): Likewise.
265 (JNI_COMMIT, JNI_ABORT): New defines.
266 (JNINativeMethod): New struct.
267 (struct JNINativeInterface): Correctly declared more entries.
268 (class _Jv_JNIEnv): Added `ex' member.
269 (JNI_VERSION_1_1): New define.
270 (JNI_VERSION_1_2): Likewise.
272 * boehm.cc (_Jv_MarkObj): Use getNextField, not
273 getNextInstanceField.
275 2000-01-20 Tom Tromey <tromey@cygnus.com>
277 * resolve.cc (StringClass): Removed.
278 * defineclass.cc (StringClass): Removed.
280 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
284 2000-01-19 Tom Tromey <tromey@cygnus.com>
286 * interpret.cc (PC_REGISTER_ASM): Removed.
288 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
291 * All files: Updated copyright to reflect Cygnus purchase.
293 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
295 * configure: Rebuilt.
296 * configure.in: Recognize --disable-interpreter.
298 2000-01-18 Andrew Haley <aph@cygnus.com>
300 * name-finder.cc (lookup): Check for dladdr function.
301 acconfig.h (HAVE_DLADDR): Add.
302 configure.in: Check for HAVE_DLADDR
304 include/config.h.in: Rebuilt.
306 2000-01-17 Andrew Haley <aph@cygnus.com>
308 * prims.cc (_Jv_RunMain): Set the name of this executable.
310 2000-01-17 Tom Tromey <tromey@cygnus.com>
312 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
313 when backtrace can't be computed.
315 * configure: Rebuilt.
316 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
318 * java/lang/Runtime.java (loadLibraryInternal): Declare.
319 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
320 (_Jv_FindClassInCache): Likewise.
321 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
322 (findSystemClass): Try to load class from compiled module.
324 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
325 (loadLibrary): Likewise.
326 (lt_preloaded_symbols): Define.
327 (loadLibraryInternal): New method.
328 * include/config.h.in: Rebuilt.
329 * acconfig.h (USE_LTDL): Added.
330 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
331 (INCLUDES): Added $(INCLTDL).
332 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
333 (libgcj_la_LIBADD): Likewise.
334 * aclocal.m4, configure: Rebuilt.
335 * configure.in: Added libltdl support.
337 2000-01-15 Tom Tromey <tromey@cygnus.com>
339 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
341 2000-01-14 Andrew Haley <aph@cygnus.com>
343 * java/lang/natThrowable.cc: New file.
345 * java/lang/Throwable.java (fillInStackTrace): Make native.
346 (printStackTrace): Call native method to do this.
347 (Throwable): Call fillInStackTrace.
348 (stackTrace): New variable.
350 * include/jvm.h: Add _Jv_ThisExecutable functions.
352 * prims.cc: (_Jv_execName): New variable.
353 (catch_segv): Call fillInStackTrace.
355 (_Jv_ThisExecutable): New functions.
356 (JvRunMain): Set the name of this executable.
358 * Makefile.am: Add java/lang/natThrowable.cc.
360 * Makefile.in: Rebuilt.
362 * acconfig.h: Add HAVE_PROC_SELF_EXE.
364 * configure.in: Force link with __frame_state_for in
365 FORCELIBGCCSPEC. Add new checks for backtrace.
366 * include/config.h.in: Rebuilt.
368 * name-finder.cc: New file.
369 * include/name-finder.h: New file.
371 2000-01-16 Anthony Green <green@cygnus.com>
373 * java/lang/StringBuffer.java (StringBuffer): Don't special case
376 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
378 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
380 2000-01-13 Tom Tromey <tromey@cygnus.com>
382 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
383 not system loader, as initiating loader.
385 2000-01-11 Tom Tromey <tromey@cygnus.com>
387 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
388 HP/UX. From David Scott Urban.
390 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
392 * java/lang/natMath.cc (pow): Cast args to `double', not
395 (IEEEremainder): Likewise.
396 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
397 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
399 2000-01-09 Anthony Green <green@cygnus.com>
401 * java/lang/natString.cc (init): Test for overflow condition
402 during out of bounds check.
403 (getChars): Throw StringIndexOutOfBoundsException, not
404 ArrayIndexOutOfBoundsException.
406 (regionMatches): Obey case option during string comparison.
408 * configure.host (ligcj_interpreter): New variable. Enable
409 interpreter by default on IA-32.
410 * configure.in: Examine libgcj_interpreter.
411 * configure: Rebuilt.
413 2000-01-07 Tom Tromey <tromey@cygnus.com>
415 * mauve-libgcj: Don't disable ClassTest.
417 * java/lang/natClass.cc (getClasses): Wrote.
419 2000-01-06 Tom Tromey <tromey@cygnus.com>
421 * java/lang/natClass.cc (_getConstructors): Correctly check
422 whether method name is the init name.
423 (getMethod): Look at accflags on method in `klass', not `this'.
425 2000-01-05 Tom Tromey <tromey@cygnus.com>
427 * java/lang/natClass.cc (getMethod): Compute offset relative to
428 `klass's methods table, not `this's table.
430 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
431 In unwrapping/widening case, check whether `k' is null, not
432 whether it is primitive. Initialize `num' from `argelts', not
433 `paramelts'. Correct create and pass arguments to ffi_call.
434 Don't let presence of `this' argument affect index used to look in
436 (COPY): Set appropriate element in `values' vector.
438 * java/lang/natClass.cc: Include <gcj/method.h>.
440 * java/lang/Class.h (_getMethods): Correctly declare as private,
443 * java/lang/Class.h (_getMethods): Declare.
444 * java/lang/Class.java (_getMethods): Declare.
445 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
446 (getDeclaredClasses): Always return empty array.
447 (_getMethods): New method.
449 (getDeclaredMethod): Return `rmethod'.
450 (finit_name): New global.
451 (getDeclaredMethods): Check for finit_name.
452 (_getMethods): Likewise.
453 (getMethod): Only return public methods.
455 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
456 jboolean and select correct ffi type on that basis.
457 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
458 Constructor call always has `void' return type.
460 2000-01-04 Tom Tromey <tromey@cygnus.com>
462 * java/lang/Class.h (getSignature): Updated.
463 * java/lang/Class.java (getSignature): Updated.
464 * java/lang/natClass.cc (getSignature): Added `is_constructor'
466 (getConstructor): Ensure constructor is public.
467 (_getConstructors): Check for public-ness of constructor when
468 `declared' is false, not when it is true.
470 2000-01-04 Warren Levy <warrenl@cygnus.com>
472 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
474 (receive): Set the sender's address in the DatagramPacket.
476 2000-01-04 Tom Tromey <tromey@cygnus.com>
478 * java/lang/reflect/natConstructor.cc (newInstance): Pass
479 declaring class as return_type argument to
480 _Jv_CallNonvirtualMethodA.
481 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
482 constructor case, create object and use it as `this' argument.
483 * java/lang/Class.h (_getConstructors): Declare.
484 (_getFields): Declare.
485 * java/lang/Class.java (getConstructors): Wrote.
486 (_getConstructors): New native method.
487 (getDeclaredConstructors): Wrote.
488 (_getFields): Declare new native method.
489 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
491 (getMethod): Work correctly when class is primitive.
492 (getDeclaredMethods): Likewise. Compute offset using `method',
494 (getDeclaredMethod): Likewise.
495 (getConstructor): Wrote.
496 (ConstructorClass): New define.
497 (getDeclaredConstructor): Wrote.
498 (_getConstructors): New method.
499 (_getFields): New method.
502 * Makefile.in: Rebuilt.
503 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
505 * prims.cc: Remove `#pragma implementation'.
506 * gcj/array.h: Remove `#pragma interface'.
508 * prims.cc (_Jv_equaln): New function.
509 * java/lang/Class.java (getSignature): Declare.
510 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
511 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
513 (getSignature): New method.
514 (getDeclaredMethod): Wrote.
516 Include StringBuffer.h.
517 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
518 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
520 (getSignature): Declare.
521 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
522 (_Jv_equaln): Declare.
523 (_Jv_CallNonvirtualMethodA): Declare.
524 * Makefile.in: Rebuilt.
525 * Makefile.am (nat_source_files): Added natConstructor.cc.
526 (java/lang/reflect/Constructor.h): New target.
527 * java/lang/reflect/natConstructor.cc: New file.
528 * java/lang/reflect/Constructor.java (newInstance): Now native.
529 (declaringClass): Renamed from decl_class.
530 (offset): Renamed from index.
531 (getType): New native method.
532 (getModifiers): Now native.
533 (getParameterTypes): Call getType if required.
534 (hashCode): Include hash code from declaring class.
535 (modifiers): Removed.
536 (toString): Call getType if required.
537 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
538 * java/lang/reflect/natMethod.cc (hack_call): New method.
539 Removed `#if 0' around FFI code.
540 Include <gnu/gcj/RawData.h>.
541 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
542 IllegalArgumentException when argument object and class disagree.
543 (_Jv_GetTypesFromSignature): New function.
545 (ObjectClass): New define.
546 (_Jv_CallNonvirtualMethodA): New function.
547 * java/lang/reflect/Method.java (hack_trampoline): New method.
548 (hack_call): New native method.
550 1999-12-21 Per Bothner <per@bothner.com>
552 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
553 offset in new Method.
555 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
557 * java/lang/natObject.cc (notify): Throw message with
558 IllegalMonitorStateException.
561 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
562 (isInterrupted_): New function, which does clear interrupt_flag.
563 (interrupt): Use `isInterrupted_'.
564 * java/lang/natThread.cc (interrupt): Add comment.
565 (join): Set `prev' in joiner loop.
566 Change various calls to `isInterrupted' to use `isInterrupted_'.
567 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
568 on linux. Set result to 0 on an interrupt. Test interrupted status
569 of java Thread object directly.
570 FLAG_INTERRUPTED: removed.
571 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
572 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
573 (_Jv_InitThreads): Don't block SIGINT.
574 (_Jv_ThreadWait): Don't configure SIGINT handler.
576 1999-12-21 Tom Tromey <tromey@cygnus.com>
578 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
580 1999-12-20 Tom Tromey <tromey@cygnus.com>
582 * java/lang/reflect/Modifier.java (STRICT): New constant.
583 (isStrict): New method.
584 (toString): Added `strict'.
586 1999-12-23 Anthony Green <green@cygnus.com>
588 * configure: Rebuilt.
589 * configure.in (LIBDATASTARTSPEC): Force data_start in with
592 1999-12-19 Anthony Green <green@cygnus.com>
594 * libgcjdata.c: New file.
595 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
596 * configure: Rebuilt.
597 * configure.in (LIBDATASTARTSPEC): Force data with a known name
599 * Makefile.in: Rebuilt.
600 * Makefile.am: Build libgcjdata.a.
602 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
603 * configure: Rebuilt.
604 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
607 1999-12-17 Tom Tromey <tromey@cygnus.com>
609 * java/lang/reflect/Method.java (toString): Call getType if
610 required. Partial fix for PR libgcj/111. From Per Bothner.
612 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
614 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
616 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
617 null String constructor parameter.
618 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
619 for exception messages.
620 BooleanClass: declare.
621 (setOption): Use BooleanClass instead of Class.forName() for
623 (bind): Cast 4th parameter of setsockopt to `char *' for
624 compatibility with older Solaris headers.
625 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
626 sprintf calls for exception messages.
627 BooleanClass, IntegerClass: declare.
628 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
631 1999-12-15 Tom Tromey <tromey@cygnus.com>
633 * java/lang/natSystem.cc (init_properties): Don't set user.name or
634 user.home if NO_GETUID defined. Only set user.dir if getcwd
637 * include/config.h.in: Rebuilt.
638 * acconfig.h (NO_GETUID): New define.
639 * configure.in: Rebuilt.
640 * configure.in: Define NO_GETUID in cross case. Check for getcwd
643 1999-12-08 Tom Tromey <tromey@cygnus.com>
645 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
646 where no recursive mutexes exist. Fixes PR libgcj/117.
648 1999-12-05 Anthony Green <green@cygnus.com>
650 * include/jvm.h: Declare many functions with
651 __attribute__((__malloc__)).
652 * gcj/javaprims.h: Ditto.
654 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
656 * THANKS: Giving credit where credit is due.
658 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
660 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
662 * java/lang/natString.cc (equalsIgnoreCase): return false if
663 anotherString is null.
664 * java/lang/Boolean.java (valueOf): return FALSE if argument is
667 1999-11-30 Tom Tromey <tromey@cygnus.com>
669 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
670 mutex to initialize. Initialize `count' if required.
673 1999-11-27 Per Bothner <per@bothner.com>
675 * exception.cc: Remove prototype declarations for malloc and free.
676 These clash with recent versions of glibc, which specifies `throws ()'
677 when __cplusplus is defined. Instead, #include <stdlib.h>.
679 1999-11-24 Tom Tromey <tromey@cygnus.com>
681 * prims.cc (_Jv_NewObjectArray): Use
682 _Jv_GetArrayElementFromElementType.
683 (_Jv_NewPrimArray): Likewise.
684 * java/lang/natObject.cc (clone): Use
685 _Jv_GetArrayElementFromElementType instead of sizeof.
686 * java/lang/natSystem.cc (arraycopy): Use
687 _Jv_GetArrayElementFromElementType.
688 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
691 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
693 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
694 Exception messages. PR java.net/57.
695 (bind): set SO_REUSEADDR before bind.
696 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
697 overruns. PR java.net/57.
699 1999-11-19 Tom Tromey <tromey@cygnus.com>
701 * Makefile.am (DIVIDESPEC): Removed.
702 (EXCEPTIONSPEC): Removed.
704 1999-11-19 Andrew Haley <aph@cygnus.com>
706 * Makefile.am (JCFLAGS): Add -L$(here)
708 * Makefile.in: Rebuild.
710 1999-11-18 Tom Tromey <tromey@cygnus.com>
712 * java/lang/natDouble.cc: Include <config.h>.
714 * include/config.h.in: Rebuilt.
715 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
716 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
718 * configure: Rebuilt.
719 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
720 requested by configure.host. Don't put `-D' option into
721 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
723 * configure: Rebuilt.
724 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
727 1999-11-18 Andrew Haley <aph@cygnus.com>
729 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
730 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
732 * Makefile.in: Rebuild
733 * acconfig.h: remove SJLJ_EXCEPTIONS
734 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
735 Do not AC_DEFINE SJLJ_EXCEPTIONS.
736 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
737 * gcj/Makefile.in, include/Makefile.in: rebuild.
738 * include/config.h.in: remove SJLJ_EXCEPTIONS.
740 1999-11-18 Andrew Haley <aph@cygnus.com>
742 * gij.cc (main): Rename label to prevent conflict.
744 * exception.cc (_Jv_type_matcher): Don't check the table if we're
745 using setjmp/longjmp exceptions: there isn't one.
747 1999-11-17 Andrew Haley <aph@cygnus.com>
749 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
750 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
751 (__sjthrow): Add declaration.
752 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
756 * Makefile.in: Rebuild
757 * acconfig.h: Add SJLJ_EXCEPTIONS
758 * configure.in: Add SJLJ_EXCEPTIONS
759 * configure: Rebuild.
760 * gcj/Makefile.in: Rebuild.
761 * gcj/cni.h: Add support for sjlj-exceptions.
762 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
763 * include/Makefile.in: Rebuild.
764 * include/default-signal.h: Add support for sjlj-exceptions.
766 1999-11-18 Tom Tromey <tromey@cygnus.com>
768 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
770 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
772 (method_cache): Made larger.
774 1999-11-11 Tom Tromey <tromey@cygnus.com>
776 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
777 initializing mutex. Initialize `count' when required.
779 1999-11-07 Anthony Green <green@trip.cygnus.com>
781 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
784 1999-11-05 Tom Tromey <tromey@cygnus.com>
786 * java/lang/natThread.cc (destroy): Removed incorrect comment.
788 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
790 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
791 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
794 1999-11-05 Tom Tromey <tromey@cygnus.com>
796 * java/lang/natThread.cc (stop): Removed argument name.
798 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
799 `private'; now has default access.
800 * Makefile.in: Rebuilt.
801 * Makefile.am (java/lang/ThreadGroup.h): Removed.
803 1999-11-04 Tom Tromey <tromey@cygnus.com>
805 * java/lang/natClass.cc (method_cache_count): Removed.
806 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
807 (_Jv_AddMethodToCache): Don't loop.
809 * configure.in: Removed `qt' threads case.
810 * include/quick-threads.h: Removed.
811 * quick-threads.cc: Removed.
813 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
814 (_Jv_ThreadDestroy): Likewise.
815 * include/no-threads.h (_Jv_ThreadCancel): Removed.
816 (_Jv_ThreadDestroy): Likewise.
817 * include/posix-threads.h (struct _Jv_Thread_t): Removed
819 (_Jv_ThreadCancel): Removed decl.
820 (_Jv_ThreadDestroy): Removed.
821 * posix-threads.cc (_Jv_ThreadCancel): Removed.
822 (throw_cleanup): Removed.
823 (really_start): Don't push or pop cleanup.
824 (_Jv_ThreadInitData): Don't initialize `exception' field.
825 * java/lang/Thread.java (stop): Officially unimplemented.
826 * java/lang/natThread.cc (stop): Officially unimplemented.
828 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
830 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
833 1999-11-02 Tom Tromey <tromey@cygnus.com>
835 * boehm.cc: Don't include boehm-config.h.
837 1999-11-01 Tom Tromey <tromey@cygnus.com>
839 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
840 (sum_blocks): Removed.
841 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
843 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
845 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
847 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
848 * java/io/InputStreamReader (InputStreamReader): ditto.
850 1999-10-22 Tom Tromey <tromey@cygnus.com>
852 * Makefile.in: Rebuilt.
853 * Makefile.am (java/lang/ClassLoader.h): New target.
854 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
857 * include/java-props.h (_Jv_Compiler_Properties): Changed
859 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
860 * include/jvm.h (_Jv_GCSetInitialHeapSize,
861 _Jv_GCSetMaximumHeapSize): Declare.
862 (JvRunMain, _Jv_RunMain): Declare.
863 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
864 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
865 (_Jv_GCSetMaximumHeapSize): Likewise.
866 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
867 (_Jv_GCSetMaximumHeapSize): Likewise.
868 * prims.cc (parse_heap_size): New function.
869 (_Jv_SetInitialHeapSize): Likewise.
870 (_Jv_SetMaximumHeapSize): Likewise.
871 (_Jv_Compiler_Properties): New global.
872 * gij.cc (help): New function.
874 (heap_size): Likewise.
875 (heap_max_size): Likewise.
876 (main): Parse arguments. Set _Jv_Compiler_Properties.
877 Include <config.h>, <java-props.h>.
878 (_Jv_Compiler_Properties): Removed.
880 1999-10-18 Tom Tromey <tromey@cygnus.com>
882 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
884 (redirect): New static field.
885 * java/lang/ClassLoader.java (getSystemClassLoader): Now
887 (getVMClassLoader0): Removed.
888 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
890 (getSystemClassLoader): Implemented.
892 1999-10-16 Anthony Green <green@cygnus.com>
894 * java/lang/ClassLoader.java (getSystemResource): Use
895 getSystemClassLoader instead of ClassLoader.system.
896 (getSystemResourceAsStream): Ditto.
898 * java/lang/natClassLoader.cc (redirect): Make static and
899 remove #ifdef INTERPRETER so it is always defined.
900 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
901 returns a VMClassLoader.
903 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
904 PropertyResourceBundle if a properties file is found before a
905 ResourceBundle class.
907 1999-10-15 Tom Tromey <tromey@cygnus.com>
909 * gij.cc (main): Formatting fixes.
910 (_Jv_Compiler_Properties): Define.
911 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
913 (init_properties): Set properites from _Jv_Compiler_Properties.
914 * include/java-props.h (_Jv_Compiler_Properties,
915 _Jv_Environment_Properties): Declare.
917 * include/java-props.h: Added copyright.
919 1999-10-13 Anthony Green <green@cygnus.com>
921 * libtool-version: Catch up by incrementing current.
923 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
924 * configure, include/config.h.in: Rebuilt.
925 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
926 * configure.in: Added --disable-getenv-properties and new define
927 `DISABLE_GETENV_PROPERTIES'.
929 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
930 (next_property_key): New function.
931 (next_property_value): New function.
932 (process_gcj_properties): New function.
933 (JvRunMain): Call process_gcj_properties.
936 * java/lang/natSystem.cc (init_properties): Set properties defined
939 * include/java-props.h: New file.
941 * java/lang/natSystem.cc (init_properties): Add new properties to
942 conform with Java Product Versioning Specification.
944 1999-10-12 Tom Tromey <tromey@cygnus.com>
946 * configure: Rebuilt.
947 * configure.in: Fixed test for --disable-java-net.
949 1999-10-06 Tom Tromey <tromey@cygnus.com>
951 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
952 when building Canadian cross.
953 (NATIVE): Don't define when cross-compiling.
955 1999-10-04 Tom Tromey <tromey@cygnus.com>
957 * java/net/natPlainSocketImpl.cc: Don't include headers if
958 java.net is disabled.
960 * Makefile.in: Rebuilt.
961 * Makefile.am (ZINCS): Removed. This is defined in configure.in
962 when needed, and must be left empty when not needed.
964 1999-10-01 Anthony Green <green@cygnus.com>
966 * THANKS: Refreshed from htdocs version.
968 1999-10-01 Steve Chamberlain <sac@pobox.com>
970 * Makefile.in: Rebuilt.
971 * Makefile.am (ZINCS): Define
973 * configure: Rebuilt.
974 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
976 * java/lang/ieeefp.h: Add definitions for picoJava.
978 1999-10-01 Tom Tromey <tromey@cygnus.com>
980 * configure: Rebuilt.
981 * configure.in: Set classpath when invoking gcj. Use changequote
982 around sed invocation.
984 * java/net/natPlainSocketImpl.cc: Stub native functions if
985 DISABLE_JAVA_NET is defined.
986 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
987 typo in exception string.
988 (getTimeToLive): Likewise.
989 Stub native functions if DISABLE_JAVA_NET is defined.
990 * java/net/natInetAddress.cc: Stub native functions if
991 DISABLE_JAVA_NET is defined.
992 * configure.host: Disable java.net for mips-tx39.
993 * configure, include/config.h.in: Rebuilt.
994 * acconfig.h (DISABLE_JAVA_NET): Undefine.
995 * configure.in: Added --disable-java-net and new define
998 1999-09-30 Tom Tromey <tromey@cygnus.com>
1000 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
1002 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
1006 1999-09-28 Tom Tromey <tromey@cygnus.com>
1008 * configure: Rebuilt.
1009 * configure.in (PROCESS): In POSIX case, only set if not already
1011 * configure.host (PROCESS): Set in mips-tx39 case.
1013 * aclocal.m4, configure: Rebuilt.
1014 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
1015 appropriate AC_PROG_ symbol.
1017 1999-09-24 Tom Tromey <tromey@cygnus.com>
1019 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
1021 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
1023 Fix for PR java.util/47:
1024 * configure, include/config.h: Rebuilt.
1025 * configure.in: Don't look for ctime or ctime_r.
1026 * Makefile.in: Rebuilt.
1027 * Makefile.am (nat_source_files): Don't mention natDate.cc.
1028 * java/util/natDate.cc: Removed.
1029 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
1031 (getAvailableIDs): Rewrote.
1032 (getTimeZone): Rewrote.
1033 * java/util/Date.java (toGMTString): New method.
1034 (toLocaleString): New method.
1035 (toString): Rewrote.
1037 1999-09-23 Tom Tromey <tromey@cygnus.com>
1039 * configure: Rebuilt.
1040 * configure.in: Print message when checking to see if gcj can
1041 handle -fuse-divide-subroutine.
1043 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
1045 * java/lang/FirstThread.java (run0): Renamed to `run'.
1048 * prims.cc (main_init): New function.
1049 (JvRunMain): Call it.
1050 (_Jv_RunMain): Likewise.
1052 (main_init): Ignore SIGPIPE. Fixes PR 51.
1054 1999-09-22 Tom Tromey <tromey@cygnus.com>
1056 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1058 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
1060 * java/text/MessageFormat.java (MessageFormat(String)): Set the
1062 * java/text/NumberFormat.java: Check that object is a Number. If
1063 not, throw IllegialArgumentException.
1065 1999-09-21 Tom Tromey <tromey@cygnus.com>
1067 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1068 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
1070 * include/posix-threads.h (_Jv_MutexDestroy): Use
1071 _Jv_PthreadGetMutex.
1072 (_Jv_MutexLock): Likewise.
1073 (_Jv_MutexUnlock): Likewise.
1075 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1076 previous patch; it too was incorrect.
1077 * java/io/PrintStream.java (PrintStream): Likewise.
1079 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1080 refer to `this' before calling superclass constructor.
1081 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1082 before calling superclass constructor.
1084 1999-09-20 Tom Tromey <tromey@cygnus.com>
1086 * configure: Rebuilt.
1087 * configure.in: Send output of `-fuse-divide-subroutine' test
1088 compilation to /dev/null.
1090 1999-09-14 Tom Tromey <tromey@cygnus.com>
1092 * include/java-insns.h: Turned constants into an enum. Added
1093 multiple-inclusion protection.
1095 1999-09-10 Tom Tromey <tromey@cygnus.com>
1097 * configure: Rebuilt.
1098 * configure.in: Build include/Makefile.
1099 * Makefile.in: Rebuilt.
1100 * Makefile.am (SUBDIRS): Added gcj and include.
1101 (install-data-local): New target.
1102 (extra_headers): New macro.
1103 * include/Makefile.in: New file.
1104 * include/Makefile.am: New file.
1106 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1107 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1109 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1110 * resolve.cc: Include config.h.
1111 * defineclass.cc: Include config.h.
1112 * include/java-interp.h: Don't include config.h.
1113 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1116 * gcj/javaprims.h: Regenerated namespace decls.
1117 * classes.pl (scan): Don't put `;' after closing brace.
1119 * Makefile.in: Rebuilt.
1120 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1121 * configure.in: Create gcj/Makefile.
1122 * gcj/Makefile.in: New file.
1123 * gcj/Makefile.am: New file.
1124 * java/lang/Object.h: Don't include any other headers.
1125 * gcj/array.h: Renamed from include/java-array.h.
1126 * gcj/field.h: Renamed from include/java-field.h.
1127 * gcj/method.h: Renamed from include/java-method.h.
1128 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1129 Updated all files to reflect new include structure.
1131 1999-09-09 Tom Tromey <tromey@cygnus.com>
1133 * configure: Rebuilt.
1134 * configure.in: Fixed typo; variable is THREADSPEC and not
1137 1999-09-08 Tom Tromey <tromey@cygnus.com>
1139 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1140 previous change and implemented a correct test in the __m_count
1143 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1146 1999-09-07 Tom Tromey <tromey@cygnus.com>
1148 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1149 code and don't set errno.
1151 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1152 not `r'. Changed `done_sleeping' to a `bool'.
1154 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1156 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1157 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1158 by another thread, rather than by the GC.
1159 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1160 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1161 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1164 1999-09-03 Tom Tromey <tromey@cygnus.com>
1166 * configure: Rebuilt.
1167 * configure.in: Check for fstat function.
1168 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1171 1999-09-02 Tom Tromey <tromey@cygnus.com>
1173 * include/java-array.h (jobjectArrayjchar): Removed unused
1176 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1177 _Jv_PrepareCompiledClass while holding class mutex.
1179 1999-09-01 Tom Tromey <tromey@cygnus.com>
1181 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1182 (_Jv_PthreadGetMutex): Use it.
1183 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1184 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1185 (_Jv_MutexLock): Likewise.
1186 (_Jv_MutexUnlock): Likewise.
1187 * include/config.h.in: Rebuilt.
1188 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1189 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1190 * configure: Rebuilt.
1191 * libgcj.spec.in: Don't mention INTERPSPEC.
1192 * configure.in (INTERPSPEC): Removed.
1193 Only run pthreads-related checks when using POSIX threads. Check
1194 for m_count and __m_count in mutex structure.
1196 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1198 * java/lang/natClass.cc: Fixed notification of threads
1199 when class initialization is complete.
1201 1999-09-01 Tom Tromey <tromey@cygnus.com>
1203 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1204 * resolve.cc: Removed constants defined by
1205 java.lang.reflect.Modifier.
1206 Include <java/lang/reflect/Modifier.h>.
1207 (_Jv_ResolvePoolEntry): Use values from Modifier.
1208 (_Jv_DetermineVTableIndex): Likewise.
1209 (_Jv_PrepareClass): Likewise.
1211 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1212 java.lang.reflect.Modifier.
1213 Include <java/lang/reflect/Modifier.h>.
1214 (checkExtends): Use values from Modifier.
1215 (checkImplements): Likewise.
1216 (handleField): Likewise.
1217 (handleConstantValueAttribute): Likewise.
1218 (handleFieldsEnd): Likewise.
1219 (handleMethod ): Likewise.
1220 (handleMethodsEnd): Likewise.
1221 (handleClassBegin): Likewise.
1222 * interpret.cc: Removed constants defined by
1223 java.lang.reflect.Modifier.
1224 (continue1): Use values from Modifier.
1225 * java/lang/natClassLoader.cc: Removed constants defined by
1226 java.lang.reflect.Modifier.
1228 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1229 JV_STATE_NOTHING, not `0'.
1230 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1232 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1233 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1235 (_Jv_PthreadGetMutex): New function.
1236 (_Jv_PthreadCheckMonitor): Use it.
1237 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1238 (_Jv_MutexLock): Update `count'.
1239 (_Jv_MutexUnlock): Likewise.
1240 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1243 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1245 * Makefile.am (.java.lo): Add rule.
1247 * Makefile.in: Rebuilt.
1249 1999-09-01 Tom Tromey <tromey@cygnus.com>
1251 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1252 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1254 (_Jv_CondNotify): Use it.
1255 (_Jv_CondNotifyAll): Likewise.
1257 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1259 1999-08-31 Tom Tromey <tromey@cygnus.com>
1261 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1264 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1266 * posix-threads.cc: Include <errno.h>.
1268 1999-08-23 Tom Tromey <tromey@cygnus.com>
1270 * boehm.cc: Undefine TRUE and FALSE.
1272 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1274 1999-08-21 Tom Tromey <tromey@cygnus.com>
1276 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1279 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1281 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1283 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1284 (HAVE_STRUCT_IP_MREQ): Added.
1285 * configure, include/config.h.in: Rebuilt.
1286 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1288 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1289 Disable if ip_mreq is not available.
1291 * configure.in: Check types ssize_t and in_addr_t.
1292 * acconfig.h: Undefine them.
1293 * configure, include/config.h.in: Rebuilt.
1295 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1296 function that detects the signature of getpwuid_r.
1297 (init_properties): Use it.
1298 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1301 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1303 * interpret.cc (continue1): Implement explicit dispatch table.
1304 insn_target: Explicit interpreter switch table.
1305 SAVE_PC: New macro, moves pc saving code into instructions that
1307 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1308 PC_REGISTER_ASM: New macro.
1309 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1310 opcode: Remove local variable.
1311 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1312 (POKEI): Use _Jv_word.
1313 (iinc): Use _Jv_word.
1314 (dupx): Change reference argument (sp) to pointer.
1317 * interpret.cc: Remove instruction timing instrumentation.
1319 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1320 comment. Don't use _Jv_ClassNameSamePackage.
1322 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1323 URLPathEntry, CacheEntry}: Removed.
1325 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1327 (.java.lo): Rule removed.
1329 * Makefile.in: Rebuilt.
1331 1999-08-19 Tom Tromey <tromey@cygnus.com>
1333 * java/lang/natThread.cc (class locker): New class.
1334 (join): Use a locker around _Jv_CondWait.
1337 1999-08-18 Tom Tromey <tromey@cygnus.com>
1339 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1340 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1342 1999-08-18 Tom Tromey <tromey@cygnus.com>
1344 * include/javaprims.h ("Java"): Regenerated namespace decls.
1346 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1348 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1349 from _Jv_InternClassStrings.
1351 * prims.cc (_Jv_RunMain): New function.
1352 (JvRunMain): Remove gij-support.
1354 * gij.cc (main): Use _Jv_RunMain.
1356 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1358 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1359 argument in temp variable.
1360 (continue1): For all op_x2y insns, use temp variable for
1361 intermediate value. Also remove some comments.
1363 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1364 (forName): Don't call _Jv_InitClass.
1366 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1368 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1370 * java/util/jar/JarInputStream.java: New file.
1372 * java/util/jar/JarEntry.java: New file.
1374 * java/util/jar/JarFile.java: New file.
1376 * java/net/URLClassLoader.java: New file.
1378 * java/net/JarURLConnection.java: New file.
1380 * gnu/gcj/protocol/jar/Handler.java: New file.
1382 * gnu/gcj/protocol/jar/Connection.java: New file.
1384 * java/security/SecureClassLoader.java: New file.
1386 * java/lang/ClassLoader.java (parent): New variable.
1387 (ClassLoader (ClassLoader)): new constructor.
1388 (findClass): New method.
1389 (loadClass): Add default 1.2 implementation.
1390 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1391 (readfully): Removed.
1393 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1394 (findSystemClass): New method.
1395 (VMClassLoader): Constructor rewritten.
1397 All other methods removed.
1399 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1400 to gnu::gcj::runtime::VMClassLoader.
1401 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1403 (VMClassLoader::findSystemClass): renamed from findBootClass.
1405 * Makefile.am: Add new files.
1406 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1408 * Makefile.in: Rebuilt.
1410 1999-08-17 Tom Tromey <tromey@cygnus.com>
1412 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1414 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1417 1999-08-16 Tom Tromey <tromey@cygnus.com>
1419 * configure: Rebuilt.
1420 * configure.in: Set DIVIDESPEC to empty string if compiler does
1421 not support -fuse-divide-subroutine.
1423 1999-08-14 Per Bothner <per@bothner.com>
1425 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1426 * java/lang/natClass.cc (initializeClass): Likewise.
1427 * java/lang/ClassLoader.java (resolveClass0): New static method.
1428 (resolveClass): Call resolveClass0.
1429 (findSystemClass): No longer static.
1431 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1433 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1435 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1437 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1440 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1442 * Makefile: Rebuilt.
1443 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1446 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1449 * configure: Rebuilt.
1450 * configure.in: Properly align --help output, fix capitalization
1452 * acinclude.m4: Likewise.
1454 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1456 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1458 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1459 (_Jv_callInterpretedMethod): Unused. Remove.
1460 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1462 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1463 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1464 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1465 * interpret.cc: use _Jv_word.
1466 * defineclass.cc: use_Jv_word.
1467 * resolve.cc: Use _Jv_word.
1468 (_Jv_ResolvePoolEntry): Return _Jv_word.
1469 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1470 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1472 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1475 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1477 * configure: Rebuilt.
1478 * configure.in (sched_yield): Try librt first, then libposix4.
1479 Add -lrt, -lposix4 to THREADSPEC.
1481 1999-08-08 Anthony Green <green@cygnus.com>
1483 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1485 1999-08-08 Anthony Green <green@cygnus.com>
1487 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1490 1999-08-08 Anthony Green <green@cygnus.com>
1494 * include/config.h.in: Rebuilt.
1495 * acconfig.h: Add INTERPRETER.
1497 * Makefile.in: Rebuilt.
1498 * Makefile.am (libffi_files): Identify the libffi object files for
1499 inclusion in libgcj.
1500 (LIBFFIINCS): Define.
1502 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1503 Dummy definition for configurations without an interpreter.
1505 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1506 java::lang::Boolean constructor.
1508 * include/java-interp.h: Always include java-cpool.h.
1510 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1511 when INTERPRETER not defined.
1513 * java/lang/Class.h (finalize): Define.
1515 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1516 IOException from File.getCanonicalPath.
1517 (getStream): Likewise.
1520 * THANKS: More thanks.
1522 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1524 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1526 (_Jv_PrepareClass): Allow non-abstract classes to
1527 have abstract subclasses.
1528 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1530 * interpret.cc (continue1/perform_invoke): Don't sign extend
1532 (continue1/lshl,lshr): Push long, not int.
1533 (continue1/ulshr): Use UINT64, not long long.
1534 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1536 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1537 * java/lang/FirstThread.java (run): Add top-level exception
1539 (run0): Renamed from run.
1541 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1543 * configure.in (--with-interpreter): Added.
1544 * include/config.h.in (INTERPRETER): Added.
1546 * java/lang/ClassLoader.java: File replaced.
1547 * java/lang/VMClassLoader.java: New file.
1548 * java/lang/natClassLoader.cc: New file.
1549 * gnu/gcj/runtime/MethodInvocation.java: New file.
1550 * gnu/gcj/util/path/SearchPath.java: New file.
1551 * gnu/gcj/util/path/PathEntry.java: New file.
1552 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1553 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1554 * gnu/gcj/util/path/URLPathEntry.java: New file.
1555 * gnu/gcj/util/path/CacheEntry.java: New file.
1556 * include/java-interp.h: New file.
1557 * include/java-cpool.h: New file.
1558 * include/java-insns.h: New file.
1559 * defineclass.cc: New file.
1560 * interpret.cc: New file.
1561 * resolve.cc: New file.
1563 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1564 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1565 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1567 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1568 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1570 (initializeClass): Use new JV_ prefixed names. Also, call
1571 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1573 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1574 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1575 JV_STATE_LINKED): New.
1576 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1577 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1578 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1579 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1580 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1581 _Jv_InterpMethodInvocation): New friends for interpreter.
1583 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1584 include/java-cpool.h and renamed with JV_ prefix.
1586 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1588 (_Jv_UnregisterClass): New decl.
1590 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1591 class loader argument.
1592 (_Jv_FindClass): Use class loader.
1594 * prims.cc (_Jv_makeUtf8Const): New function.
1595 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1596 (_Jv_NewPrimArray): Ditto.
1597 (_Jv_FindClassFromSignature): Ditto.
1598 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1599 * java/lang/reflect/natMethod.cc (getType): Ditto.
1601 * include/java-field.h (_Jv_Field::isRef): Make robust for
1602 non-resolved contexts.
1604 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1605 Also, don't mark class->next field.
1607 * java/lang/VirtualMachineError.java: Added FIXME note.
1609 * configure.in (INTERPSPEC): New spec.
1610 * libgcj.spec.in: Added INTERPSPEC.
1611 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1612 gnu/gcj/runtime/MethodInvocation.
1613 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1614 (ordinary_java_source_files): Added above mentioned java classes.
1616 * configure: Rebuilt.
1617 * Makefile.in: Rebuilt.
1619 1999-08-06 Tom Tromey <tromey@cygnus.com>
1621 * configure: Rebuilt.
1622 * configure.in: Look for sched_yield in -lrt.
1624 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1626 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1627 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1628 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1630 (toString): Print correctly when `country' is empty.
1632 1999-08-04 Per Bothner <per@bothner.com>
1634 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1636 1999-08-02 Tom Tromey <tromey@cygnus.com>
1638 * aclocal.m4, configure: Rebuilt for new libtool.
1640 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1642 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1643 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1644 * java/net/ServerSocket.java: Define ANY_IF.
1645 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1646 all network interfaces.
1647 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1648 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1650 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1652 * java/io/natFile.cc (performMkdir): Remove FIXME.
1653 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1655 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1657 * configure.in: Check for bstring.h.
1658 * configure, include/config.h.in: Rebuilt.
1659 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1660 * java/net/natPlainSocketImpl.cc: Likewise.
1662 1999-07-31 Tom Tromey <tromey@cygnus.com>
1667 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1669 * configure.in: Check for struct hostent_data and need for
1670 -D_REENTRANT for gethostbyname_r declaration.
1671 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1672 (lookup): Use hostent_data for fixed_buffer.
1673 * configure, include/config.h.in: Rebuilt.
1675 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1677 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1678 available. Don't cast memmove args to (void*).
1679 * configure.in: Do not abort if memmove is not available.
1681 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1683 * java/lang/natString.cc (substring): optimize where substring is
1685 * java/io/File.java (getName): don't return separator with file name.
1686 * java/io/natFile.cc (attr): fix overflow.
1688 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1690 * mauve-libgcj: Disable Object Serialization tests.
1692 1999-07-20 Warren Levy <warrenl@cygnus.com>
1694 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1695 Default to using PlainDatagramSocketImpl.
1696 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1698 1999-07-19 Tom Tromey <tromey@cygnus.com>
1700 * include/stamp-h.in: New file.
1702 1999-07-12 Tom Tromey <tromey@cygnus.com>
1704 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1707 1999-07-07 Andrew Haley <aph@cygnus.com>
1709 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1710 bytes to make it point after the instruction where the trap
1712 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1714 1999-07-07 Tom Tromey <tromey@cygnus.com>
1716 * mauve-libgcj: Explicitly enable formerly disabled java.text
1719 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1722 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1724 * java/net/URL.java (equals): Compare strings using String.equals.
1725 * java/net/URL.java (sameFile): Ditto.
1727 1999-07-02 Warren Levy <warrenl@cygnus.com>
1729 * configure: Rebuilt.
1730 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1731 * include/config.h.in: Rebuilt.
1732 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1733 (mcastGrp): Updated FIXME comments.
1734 (setOption): Fixed typo.
1735 (getOption):Implemented IP_MULTICAST_IF.
1737 1999-07-02 Warren Levy <warrenl@cygnus.com>
1739 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1740 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1741 (getTimeToLive): Implemented.
1742 (setOption): Implemented IP_MULTICAST_IF.
1744 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1746 * java/lang/String.java (toString): Check for this == null and throw
1747 NullPointerException.
1749 1999-07-01 Warren Levy <warrenl@cygnus.com>
1751 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1752 to count and revised comments to match.
1753 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1754 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1755 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1756 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1757 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1758 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1760 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1762 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1763 properly as count rather than outlength.
1764 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1765 output on overflow rather than buffer fill.
1766 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1767 if markPos is 0 and there is still room in the buffer.
1769 1999-07-01 Andrew Haley <aph@cygnus.com>
1771 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1772 This is a workaround for a bug in glibc's pthreads package which
1773 doesn't deliver any sigcontext information to a signal handler.
1775 1999-06-24 Tom Tromey <tromey@cygnus.com>
1777 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1778 * java/lang/fdlibm.h (HUGE): Conditionally define.
1780 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1782 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1783 * java/lang/e_log.c: Don't use __uint32_t.
1785 1999-05-27 Eric Christopher <echristo@cygnus.com>
1787 * configure: Rebuilt
1788 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1789 * acconfig.h: Rebuilt
1790 * include/config.h.in: Rebuilt
1792 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1793 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1794 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1795 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1796 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1797 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1798 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1799 and namespace collision with __uint32_t
1801 1999-06-23 Tom Tromey <tromey@cygnus.com>
1803 * java/util/zip/InflaterInputStream.java (read): Throw
1804 ZipException if inflater throws a DataFormatException.
1806 1999-06-23 Warren Levy <warrenl@cygnus.com>
1808 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1809 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1810 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1811 is not final per JDK.
1812 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1814 * java/util/zip/DataFormatException.java: Class extends Exception.
1815 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1816 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1817 * java/util/zip/ZipInputStream.java: ditto.
1818 (closeEntry): Changed method name to match JDK spec.
1820 1999-06-21 Tom Tromey <tromey@cygnus.com>
1822 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1825 * Makefile.in: Rebuilt.
1826 * Makefile.am (toolexeclibdir): Define as libdir when
1828 * configure: Rebuilt.
1829 * configure.in (USE_LIBDIR): New conditional.
1831 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1833 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1834 hostname in returned InetAddress objects.
1835 (getLocalHostname): Fix typo.
1836 * java/net/InetAddress.java (getByName): Set hostname on return
1838 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1841 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1843 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1844 interfaces if host==NULL.
1845 (accept): Throw message with InterruptedIOException.
1846 (getOption): Cache localAddress.
1847 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1848 'address' for DatagramSocket.
1849 (setTimeToLive): Fix compiler warnings.
1850 (getOption): Cache localAddress.
1851 * java/net/Socket.java (getLocalAddress): Don't need local
1852 InetAddress object. Add FIXME comment about calling checkConnect().
1853 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1854 connection queue to 50 as per JDK 1.2 docs.
1855 (ServerSocket(int,int)): Listen on all network interfaces by
1856 default, per JDK 1.2 docs.
1857 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1858 Add localAddress caching.
1860 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1862 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1864 (write(byte[],int,int)): ditto.
1866 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1868 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1870 1999-06-11 Warren Levy <warrenl@cygnus.com>
1872 * mauve-libgcj: Activated java.net Mauve tests.
1874 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1876 * java/net/natInetAddress.cc (aton): Fix typos.
1877 (lookup): Use a bigger buffer size for gethostbyname_r on all
1878 versions of glibc. Updated FIXME comment explaining this.
1879 Modified while loops to not set herr = ERANGE to work around glibc
1880 problems. Use user specified hostname in InetAddress result when
1881 available (consistent with JDK).
1883 1999-06-10 Warren Levy <warrenl@cygnus.com>
1885 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1886 Throw FileNotFoundException instead of IOException.
1888 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1890 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1891 in static field name.
1892 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1893 throughout rather than ParseException.
1895 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1897 * java/lang/Runtime.java (exec): Convert prog name and arguments
1899 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1900 environment array conversion. Preserve current environment if envp
1901 not passed. Preserve PATH unless explicitly specified.
1902 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1903 followed by EOF. Set a flag when a line is terminated by '\r' and
1904 ignore following '\n' if set.
1906 1999-06-02 Warren Levy <warrenl@cygnus.com>
1908 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1909 Ignore context if spec is an absolute URL. Fix braindead
1911 (hashCode): Use JDK 1.2 style algorithm.
1912 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1913 context URL properly.
1915 1999-05-30 Anthony Green <green@cygnus.com>
1917 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1918 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1920 1999-05-28 Warren Levy <warrenl@cygnus.com>
1922 * java/net/DatagramSocket.java (laddr): Removed.
1923 (DatagramSocket): Removed attempts to get or set laddr if null.
1924 (getLocalAddress): Reimplemented per spec.
1925 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1927 (joinGroup): Throw NullPointerException if any argument is null.
1928 (leaveGroup): ditto.
1929 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1930 * java/net/PlainSocketImpl.java (timeout): Added.
1931 (getInputStream): Added FIXME comment on how to support timeouts
1933 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1934 * java/net/Socket.java: Added FIXME comments to identify
1935 conflicting specs between the JCL and JDK 1.2 documents.
1936 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1937 if host is null. Get localport value resolved by kernel if bind
1939 (receive): Implemented support for timeouts in UDP.
1940 (setOption): Implemented based on natPlainSocketImpl version.
1942 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1943 resolved by kernel if bind lport is 0.
1944 (connect): Get localport value resolved by kernel if bind wasn't
1945 done to set localport.
1946 (accept): Implemented support for timeouts for ServerSocket.
1947 (setOption): Save value for SO_TIMEOUT.
1948 (getOption): Return timeout for SO_TIMEOUT.
1950 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1952 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1953 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1954 (setOption): Made abstract.
1955 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1956 to avoid cpp conflicts in native code.
1957 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1958 cpp conflicts in native code.
1959 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1960 * java/net/Socket.java (getLocalAddress): Implemented.
1961 (setTcpNoDelay): Implemented.
1962 (getTcpNoDelay): Implemented.
1963 (setSoLinger): Implemented.
1964 (getSoLinger): Implemented.
1965 (getSoTimeout): Verify class type.
1966 (setSendBufferSize): Implemented.
1967 (getSendBufferSize): Implemented.
1968 (setReceiveBufferSize): Implemented.
1969 (getReceiveBufferSize): Implemented.
1970 (toString): Prepended "Socket".
1971 * java/net/SocketImpl.java (toString): Rewritten.
1972 (getOption): Made abstract.
1973 (setOption): Made abstract.
1974 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1975 (setOption): Implemented.
1976 (getOption): Implemented.
1978 1999-05-26 Warren Levy <warrenl@cygnus.com>
1980 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1981 address when null. Set SO_REUSEADDR for multicasts.
1982 (getSoTimeout): Implemented.
1983 (setSoTimeout): Implemented.
1984 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1985 * java/net/MulticastSocket.java (getInterface): Implemented.
1986 (setInterface): Implemented.
1987 (setTimeToLive): Check for invalid ttl.
1988 (joinGroup): Verify multicast address and security.
1989 (leaveGroup): Verify multicast address and security.
1990 (send): Implemented.
1991 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1997 (getTTL): Implemented as non-native.
2001 * java/net/ServerSocket.java (setSoTimeout): Implemented.
2002 (getSoTimeout): Implemented.
2003 (setSocketFactory): Made synchronized.
2004 * java/net/Socket.java (setSoTimeout): Implemented.
2005 (getSoTimeout): Implemented.
2006 (close): Made synchronized.
2007 (setSocketImplFactory): Made synchronized.
2008 * java/net/SocketImpl.java: Implement SocketOptions interface.
2009 * java/net/natInetAddress.cc: Corrected module name at top of file.
2010 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
2011 (bind): Added FIXME.
2012 (peek): Implemented.
2018 (setOption): Implemented for SO_REUSEADDR.
2019 (getOption): Implemented for SO_REUSEADDR.
2021 1999-05-24 Tom Tromey <tromey@cygnus.com>
2023 * java/util/ResourceBundle.java (getBundle): Throw
2024 NullPointerException if baseName is null.
2026 1999-05-22 Tom Tromey <tromey@cygnus.com>
2028 * java/util/zip/ZipInputStream.java (fill): New method.
2029 (compressed_len): New instance variable.
2030 (getNextStream): Set it.
2031 (read): Reset inflater on EOF. Only read via `super' if entry is
2033 (skip): Only skip via `super' if entry is deflated.
2034 * java/util/zip/Deflater.java (last_input_count): Removed.
2035 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
2037 (needsInput): Don't use last_input_count.
2038 (setInput): Don't set last_input_count.
2039 * java/util/zip/natInflater.cc (getRemaining): Return correct
2041 (inflate): Return 0 if input array is length 0.
2042 (setInput): Don't set last_input_count.
2043 * java/util/zip/Inflater.java (last_input_count): Removed.
2045 1999-05-21 Tom Tromey <tromey@cygnus.com>
2047 * Makefile.in: Rebuilt.
2048 * Makefile.am (INCLUDES): Added $(ZINCS).
2049 * configure: Rebuilt.
2050 * configure.in (ZINCS): New subst.
2052 1999-05-21 Andrew Haley <aph@cygnus.com>
2054 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2055 to signal options to allow the same exceptions to be rethrown
2058 1999-05-20 Andrew Haley <aph@cygnus.com>
2060 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2062 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2063 (INIT_FPE): Exception string made more informative.
2064 * include/sparc-signal.h (INIT_FPE): Exception string made more
2066 * testsuite/libjava.lang/Divide_1.java: New file.
2067 * testsuite/libjava.lang/Divide_1.out: New file.
2069 1999-05-19 Tom Tromey <tromey@cygnus.com>
2071 * aclocal.m4, configure: Rebuilt.
2072 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2074 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2077 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2079 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2081 (update): Fail in default case. Always initialize `strat'.
2083 * mauve-libgcj: Enable java.util.zip.
2085 1999-05-18 Warren Levy <warrenl@cygnus.com>
2087 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2088 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2089 PlainDatagramSocketImpl.java, and SocketOptions.java.
2090 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2091 * Makefile.in: Rebuilt.
2093 * java/net/DatagramPacket.java: New file.
2094 * java/net/DatagramSocket.java: New file.
2095 * java/net/DatagramSocketImpl.java: New file.
2096 * java/net/MulticastSocket.java: New file.
2097 * java/net/PlainDatagramSocketImpl.java: New file.
2098 * java/net/SocketOptions.java: New file.
2099 * java/net/natPlainDatagramSocketImpl.cc: New file.
2101 1999-05-18 Tom Tromey <tromey@cygnus.com>
2103 * java/util/zip/ZipOutputStream.java (level): Initial value is
2104 Deflater.DEFAULT_COMPRESSION.
2105 (close): New method.
2106 (closeEntry): Likewise.
2108 (put_version): Likewise.
2109 (write_entry): Likewise.
2110 (put2, put4): Now return `int'.
2111 (comment): Default to empty string.
2112 (bytes_written): New instance variable.
2114 * java/util/zip/ZipEntry.java (setComment): Limit length of
2116 (setCrc): Check CRC validity.
2117 (setExtra): Check argument validity.
2118 (setMethod): Likewise.
2119 (setSize): Likewise.
2120 (ZipEntry): Likewise.
2121 * include/javaprims.h: Updated namespace declarations.
2122 * Makefile.in: Rebuilt.
2123 * Makefile.am (ordinary_java_source_files): Mention new files.
2124 (nat_source_files): Likewise.
2125 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2128 (getInputStream): Handle compressed entries.
2129 * java/util/zip/GZIPOutputStream.java: New file.
2130 * java/util/zip/GZIPInputStream.java: New file.
2131 * java/util/zip/DataFormatException.java: New file.
2132 * java/util/zip/CheckedInputStream.java: New file.
2133 * java/util/zip/CheckedOutputStream.java: New file.
2134 * java/util/zip/InflaterInputStream.java: Implemented.
2135 * java/util/zip/natInflater.cc: New file.
2136 * java/util/zip/Deflater.java: Implemented.
2137 * java/util/zip/natDeflater.cc: New file.
2138 * java/util/zip/DeflaterOutputStream.java: Implemented.
2140 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2141 ZipException, not IOException.
2142 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2145 1999-05-17 Tom Tromey <tromey@cygnus.com>
2147 * java/lang/natSystem.cc (init_properties): URL now points to
2150 1999-05-12 Per Bothner <bothner@cygnus.com>
2152 * java/util/Calendar.java (set): First call computeFields if needed.
2153 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2155 1999-05-12 Tom Tromey <tromey@cygnus.com>
2157 * configure: Rebuilt.
2158 * configure.in: Look for -ldl when using the Boehm collector.
2159 Look for sched_yield in -lposix4.
2161 1999-05-12 Per Bothner <bothner@cygnus.com>
2163 * java/io/File.java (mkdirs): Handle a null parent directory.
2165 1999-05-12 Tom Tromey <tromey@cygnus.com>
2167 * include/javaprims.h: Updated namespace declarations.
2168 * classes.pl (scan): Uniquify class list.
2169 * Makefile.in, configure: Rebuilt.
2170 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2171 (built_java_source_files): New macro.
2172 (nat_headers): Added built_java_source_files.
2173 (javao_files): Likewise.
2174 (EXTRA_libgcj_la_SOURCES): Likewise.
2175 (libgcj.zip): Create built class files.
2176 ($(built_java_source_files:.java=.class)): New target.
2177 (jv_convert_LDADD): Added -L$(here)/.libs.
2178 * configure.in: Create links for ConcreteProcess.java and
2179 natConcreteProcess.cc.
2180 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2181 * java/lang/natEcosProcess.cc: New file.
2182 * java/lang/EcosProcess.java: New file.
2183 * java/lang/PosixProcess.java: New file.
2184 * java/lang/natPosixProcess.cc: New file.
2186 1999-05-12 Warren Levy <warrenl@cygnus.com>
2188 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2189 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2190 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2191 (connect): Throw ConnectException.
2193 1999-05-11 Tom Tromey <tromey@cygnus.com>
2195 * Makefile.in: Rebuilt.
2196 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2197 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2200 * Makefile.in: Rebuilt.
2201 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2202 and it causes problems with libtool.
2204 * Makefile.in, configure: Rebuilt.
2205 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2206 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2207 (jv_convert_DEPENDENCIES): Added ZDEPS.
2208 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2210 (THREADSPEC): Added `-L' to point to qthreads build directory.
2214 * configure, Makefile.in: Rebuilt.
2215 * Makefile.am (toolexeclib_DATA): New macro.
2216 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2217 Recognize --with-system-zlib.
2218 (GCSPEC): New subst.
2219 (THREADSPEC): New subst.
2220 (SYSTEMSPEC): New subst.
2221 (ZLIBSPEC): New subst.
2222 * libgcj.spec.in: New file.
2224 1999-05-10 Tom Tromey <tromey@cygnus.com>
2226 * java/io/InputStreamReader.java (read): If length is 0, return
2227 0. Reset `wpos' and `wcount' when buffer has been filled and
2230 * java/util/Properties.java (save): Removed `FIXME' comment.
2231 (load): Invalid characters in \u now treated as terminators.
2232 Make sure to append character resulting from `\' handling.
2233 Cast to `char' when appending to key or value.
2234 (skip_ws): Inverted test for whitespace.
2236 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2238 (readLine): Likewise.
2239 (readFully): Implemented.
2241 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2243 * java/awt/natToolkit.cc: Added copyright header.
2244 * java/util/zip/InflaterInputStream.java: Added copyright header.
2246 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2248 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2250 (getNextStream): Likewise.
2252 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2254 (getBundle): Don't explicitly throw null pointer exception.
2256 * gnu/gcj/RawData.java: Added copyright header.
2258 * include/jni.h (_Jv_va_list): Always define as va_list.
2260 1999-05-9 Anthony Green <green@cygnus.com>
2262 * java/text/DateFormat.java (computeInstance): Separate time
2264 (getDateTimeInstance): Ditto.
2265 (getDateTimeInstance(int,int)): New method.
2267 * Makefile.in: Rebuilt.
2268 * Makefile.am (ordinary_java_source_files): Add new classes.
2270 * java/util/PropertyResourceBundle.java: New file.
2271 * gnu/gcj/util/EnumerationChain.java: New file.
2273 1999-05-07 Tom Tromey <tromey@cygnus.com>
2275 * acconfig.h (GCJVERSION): New undef.
2276 * java/lang/natSystem.cc (init_properties): Define java.version,
2277 java.class.version, os.name, os.arch, os.version.
2278 Include <sys/utsname.h> if required.
2279 * configure: Rebuilt.
2280 * configure.in: Compute and define GCJVERSION.
2282 * java/lang/natSystem.cc (default_file_encoding): Now static.
2284 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2286 * libtool-version: New file.
2287 * Makefile.in: Rebuilt.
2288 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2291 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2292 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2295 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2296 (we pick those up already).
2298 1999-05-05 Per Bothner <bothner@cygnus.com>
2300 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2301 stub classes. (This is enough to get Kawa to compile against libgcj.)
2303 * gnu/gcj/RawData.java: New class.
2304 * doc/cni.sgml: Document RawData.
2306 * java/util/zip/InflaterInputStream.java: New stub class.
2307 * java/util/zip/ZipInputStream.java: New class. Partly works.
2308 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2309 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2310 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2311 * java/util/zip/ZipOutputStream.java: Start implementation.
2313 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2314 (default_file_encoding): New global, initial value is above macro.
2315 (init_properties): Default file.encoding to default_file_encoding.
2317 * Makefile.am: Add new classes.
2319 1999-05-05 Tom Tromey <tromey@cygnus.com>
2321 * Makefile.in: Rebuilt.
2322 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2323 (clean-local): New target
2325 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2326 (load, loadLibrary): Now native.
2328 * java/lang/Runtime.java (load, loadLibrary): Now native.
2329 (init): New native method.
2330 (Runtime): Use init.
2331 * prims.cc: Include <ltdl.h> if required.
2332 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2334 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2336 * configure.in: Switch from irix threads to posix threads
2337 * configure: Regenerate.
2339 1999-04-30 Tom Tromey <tromey@cygnus.com>
2341 * Makefile.in: Rebuilt.
2342 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2344 1999-04-29 Tom Tromey <tromey@cygnus.com>
2346 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2349 * java/util/Locale.java (Locale(String,String)): Implement in
2350 terms of 3-argument version; variant now defaults to empty
2352 (toString): Assume variant is not null.
2353 (equals): Assume all strings are not null.
2354 (Locale): Throw NullPointerException if any argument is null.
2356 * java/util/ResourceBundle.java (getBundle): Don't try the base
2357 name; now implicit in partialGetBundle call.
2358 (trySomeGetBundle): Search for parent bundles and call setParent
2360 (partialGetBundle): Added `langStop' argument. Use
2361 `Locale.toString' to compute bundleName.
2362 (resource_cache): New static field.
2363 (partialGetBundle): Cache the returned resource bundle. Now
2366 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2369 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2370 * java/text/natCollator.cc (decomposeCharacter): `base' now
2372 * Makefile.in: Rebuilt.
2373 * Makefile.am (ordinary_java_source_files): Added
2374 CollationElementIterator, CollationKey, Collator,
2376 (nat_source_files): Added natCollator.cc.
2377 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2378 (compare): Pass `this' to CollationElementIterator constructor.
2379 (getCollationElementIterator): Likewise.
2380 (ceiNext): Fix off-by-one error when finding initial substring.
2381 (next): Correctly mask off bits when computing return value.
2382 Fixed return values when one string is shorter than the other.
2383 * java/text/CollationElementIterator.java (collator): New field.
2384 (CollationElementIterator): Added collator argument.
2385 (next): Call ceiNext on collator object.
2387 1999-04-26 Tom Tromey <tromey@cygnus.com>
2389 * natCollator.cc: New file.
2391 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2392 (GregorianCalendar): Use it in all constructors.
2393 * java/util/Calendar.java (Calendar): Changed argument name to
2394 `zone' to match code.
2396 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2397 * java/text/CollationKey.java: New file.
2398 * java/text/CollationElementIterator.java: New file.
2399 * java/text/Collator.java: New file.
2400 * java/text/RuleBasedCollator.java: New file.
2402 * Makefile.in: Rebuilt.
2403 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2404 (jv_convert_LDADD): Explicltly add -lm -lc.
2406 1999-04-26 Tom Tromey <tromey@cygnus.com>
2408 * configure, Makefile.in: Rebuilt.
2409 * configure.in: Added AM_PROG_LIBTOOL.
2410 (GCOBJS): Use `.lo' form of files.
2411 (THREADOBJS): Likewise.
2412 (GCDEPS): Use `.la' form of library.
2413 (GCLIBS): Set to be the same as GCDEPS.
2414 (THREADDEPS): Use `.la' form of library.
2415 (THREADLIBS): Set to be the same as THREADDEPS.
2416 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2417 toolexeclib_LIBRARIES.
2418 (libgcj_la_SOURCES): Renamed for libtoolization.
2419 (EXTRA_libgcj_la_SOURCES): Likewise.
2420 (libgcj_la_DEPENDENCIES): Likewise.
2421 (libgcj_la_LIBADD): Likewise.
2422 ($(nat_files)): Use LTCXXCOMPILE.
2423 ($(c_files)): Use LTCOMPILE.
2424 (GCJCOMPILE): New macro.
2426 (.java.o): Likewise.
2427 ($(javao_files)): Likewise.
2428 (jv_convert_LINK): Use LIBTOOL.
2429 (nat_files): Use `.lo' files.
2430 (c_files): Likewise.
2431 (javao_files): Likewise.
2432 (.class.lo): Renamed.
2433 (.java.lo): Likewise.
2434 ($(nat_files)): Depend on %.lo.
2435 ($(c_files)): Likewise.
2436 ($(javao_files)): Likewise.
2437 (jv_convert_LDADD): Link against .lo files.
2438 (jv_convert_DEPENDENCIES): Depend on .lo files.
2439 (maintainer-check): Depend on libgcj.la, but examine .a file.
2440 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2441 (libgcj_la_LDFLAGS): New macro.
2443 1999-04-23 Warren Levy <warrenl@cygnus.com>
2445 * Makefile.am: Added URLDecoder and URLEncoder.
2446 * Makefile.in: Rebuilt.
2448 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2449 setSocketImplFactory to match spec.
2450 * java/net/Socket.java (getSoLinger): Changed return type to
2453 * java/net/URLDecoder.java: New file.
2454 * java/net/URLEncoder.java: New file.
2456 1999-04-21 Tom Tromey <tromey@cygnus.com>
2458 * java/lang/natString.cc (getBytes): Reverted earlier change and
2459 applied correct fix from Per Bothner.
2461 * java/lang/String.java: Don't throw
2462 UnsupportedEncodingException.
2464 * java/lang/natString.cc (getBytes): Correctly size result
2465 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2467 1999-04-20 Andrew Haley <aph@cygnus.com>
2469 * include/sparc-signal.h: new file.
2470 * configure.in: include/sparc-signal.h added.
2471 * configure: regenerated.
2472 * prims.cc (JvRunMain): signal handling code rewritten to be more
2474 (catch_segv): ditto.
2476 * include/i386-signal.h: reorganized.
2477 * include/default-signal.h: reorganized.
2479 1999-04-19 Tom Tromey <tromey@cygnus.com>
2481 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2482 once. From Anthony Green.
2484 1999-04-19 Andrew Haley <aph@cygnus.com>
2486 * Makefile.in: Processed with new automake.
2488 1999-04-19 Tom Tromey <tromey@cygnus.com>
2490 * include/javaprims.h: Removed security namespace.
2492 1999-04-20 Anthony Green <green@cygnus.com>
2494 * java/io/PrintStream.java (println): Remove extra println.
2496 1999-04-19 Anthony Green <green@cygnus.com>
2498 * Makefile.in: Rebuilt.
2499 * Makefile.am (ordinary_java_source_files): Add new security files.
2501 * java/security/NoSuchAlgorithmException.java,
2502 java/security/MessageDigest.java: New files.
2504 * include/javaprims.h: Add security namespace.
2506 1999-04-16 Per Bothner <bothner@cygnus.com>
2508 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2509 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2510 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2511 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2512 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2513 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2514 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2515 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2516 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2517 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2518 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2519 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2520 * Makefile.am: Various changes for new files and conversions.
2522 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2523 New overloading, allows greater efficiency.
2524 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2525 New overloading (for efficiency - avoids copying).
2527 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2528 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2530 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2531 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2532 (writeChars): Don't be quite so eager to flush.
2533 * java/io/PrintStream.java: Rewrite. Now more similar to
2534 OutputStreamWriter, using explicit UnicodeToBytes converter.
2535 Also, autoflush does not need to flush so often.
2536 * java/lang/natString.cc (getBytes): More efficient algorithm.
2537 (init(jbyteArray,jint,jint,jstring)): More efficient.
2539 1999-04-15 Warren Levy <warrenl@cygnus.com>
2541 * Makefile.am (ordinary_java_source_files): Added new Connection
2542 and Handler classes in gnu.gcj.protocol.file package.
2543 * Makefile.in: Rebuilt.
2545 * gnu/gcj/protocol/file/Connection.java: New file.
2546 * gnu/gcj/protocol/file/Handler.java: New file.
2547 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2548 if doInput allows input.
2549 (getOutputStream): Check if doOutput allows output.
2550 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2552 1999-04-14 Tom Tromey <tromey@cygnus.com>
2554 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2555 buffer larger to work around bug.
2556 From Bryce McKinlay <bryce@albatross.co.nz>.
2558 1999-04-14 Andrew Haley <aph@cygnus.com>
2560 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2561 NaNs are always converted to the same long value.
2562 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2565 1999-04-13 Tom Tromey <tromey@cygnus.com>
2567 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2568 instead switch on actual element type.
2570 * Makefile.in: Rebuilt.
2571 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2573 1999-04-13 Andrew Haley <aph@cygnus.com>
2575 * include/i386-signal.h, include/default-signal.h: New files.
2576 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2578 (catch_fpe): New function.
2579 * configure.in: Make link to appropriate include/java-signal.h.
2580 * configure: Rebuilt.
2581 * Makefile.am: include/java-signal.h added to dependency list.
2582 * Makefile.in: Rebuilt.
2584 1999-04-12 Urban Widmark <urban@svenskatest.se>
2586 * java/io/DataInputStream.java (readLine): Corrected handling of
2587 empty lines, from null to "".
2589 1999-04-12 Tom Tromey <tromey@cygnus.com>
2591 * Makefile.in: Rebuilt.
2592 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2594 * java/lang/natSystem.cc (SystemClass): New define.
2595 (init_properties): Synchronize.
2597 1999-04-08 Geoff Berry <gcb@gnu.org>
2599 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2600 * natPlainSocketImpl.cc (accept): Add missing else if check
2603 1999-04-08 Tom Tromey <tromey@cygnus.com>
2605 * java/lang/Long.java (parseLong): Corrected overflow detection
2607 * java/lang/Integer.java (parseInt): Corrected overflow detection
2610 * java/io/PrintStream.java (print): Handle null string argument.
2611 (println): Likewise.
2613 1999-04-07 Warren Levy <warrenl@cygnus.com>
2615 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2616 Set count to 0 when InputStreamReader returns -1 for EOF.
2618 1999-04-07 Tom Tromey <tromey@cygnus.com>
2620 * mauve-libgcj: Omit java.text.Collator,
2621 java.text.RuleBasedCollator.
2623 1999-04-06 Tom Tromey <tromey@cygnus.com>
2625 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2626 IOException from getHttpHeaders().
2627 (getHeaderFieldKey): Likewise.
2629 * include/javaprims.h: Regenerated declarations.
2631 * Makefile.in: Rebuilt.
2632 * Makefile.am (ordinary_java_source_files): Updated for removed
2635 1999-04-06 Per Bothner <bothner@cygnus.com>
2637 * java/util/zip/Adler32.java: New class.
2638 * java/util/zip/CRC32.java: Add working method bodies.
2639 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2640 * Makefile.in: Re-generate.
2642 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2644 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2645 from version in removed www hierarchy.
2646 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2647 version in removed www hierarchy.
2649 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2650 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2651 * gnu/gcj/www/protocol/http: Removed dir.
2652 * gnu/gcj/www/protocol: Removed dir.
2653 * gnu/gcj/www: Removed dir.
2655 * java/net/HttpURLConnection.java: Revised comments to indicate
2656 missing JDK 1.2 methods.
2658 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2659 hierarchy rather than the gnu/gcj/www/protocol one.
2660 * java/net/URLConnection.java: Updated status comments.
2661 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2662 the gnu/gcj/www/content one.
2664 1999-04-06 Per Bothner <bothner@cygnus.com>
2666 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2667 The gen-from-JIS program is in $(CONVERT_DIR).
2669 1999-04-06 Tom Tromey <tromey@cygnus.com>
2671 * mauve-libgcj: Renamed from mauve-libjava.
2673 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2675 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2676 (getResponseMessage): Implemented.
2677 (getResponseVals): New private method.
2679 * java/net/URLConnection.java (getContent): Implemented.
2680 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2682 1999-04-05 Tom Tromey <tromey@cygnus.com>
2684 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2685 (jv_convert_SOURCES): Renamed.
2686 (EXTRA_jv_convert_SOURCES): Likewise.
2687 (jv_convert_LDFLAGS): Likewise.
2688 (jv_convert_LINK): Likewise.
2689 (jv_convert_LDADD): Likewise.
2690 (jv_convert_DEPENDENCIES): Likewise.
2692 * Makefile.in: Rebuilt.
2693 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2696 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2698 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2699 method for comparison.
2701 * java/net/URLConnection.java (getContentLength): Implemented.
2702 (getContentType): Implemented.
2703 (getContentEncoding): Implemented.
2704 (getExpiration): Implemented.
2705 (getDate): Implemented.
2706 (getLastModified): Implemented.
2707 (getHeaderFieldInt): Implemented.
2708 (getHeaderFieldDate): Implemented.
2710 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2712 * java/net/URLConnection.java (toString): Implemented.
2713 (setContentHandlerFactory): Implemented.
2714 (setContentHandler): Wrote new private helper method.
2716 1999-04-01 Tom Tromey <tromey@cygnus.com>
2718 * Makefile.in: Rebuilt.
2719 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2720 of 1999-03-31; we always want to build all the .class files.
2721 Depend on java_source_files, not libgcj.zip.
2722 (nat_headers): Define in terms of ordinary_java_source_files.
2724 1999-03-31 Tom Tromey <tromey@cygnus.com>
2726 * Makefile.in: Rebuilt.
2727 * Makefile.am (special_java_source_files): New macro.
2728 (java_source_files): Use it.
2729 (ordinary_java_source_files): New macro.
2730 (java_source_files): Use it.
2731 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2732 creating headers for those files with hand-maintained headers.
2734 * include/javaprims.h: Regenerated namespace declarations.
2735 * classes.pl (scan): Include [0-9] in regexp for matching class
2736 names; for java.util.zip.CRC32.
2738 * Makefile.in: Rebuilt.
2739 * Makefile.am (nat_headers): Redefined to generate all possible
2742 * java/util/zip/ZipException.java: In package java.util.zip, not
2745 1999-03-30 Tom Tromey <tromey@cygnus.com>
2747 * configure: Rebuilt.
2748 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2749 eh-common.h when not building in tree with gcc.
2751 * Makefile.in: Rebuilt.
2752 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2753 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2755 ($(java_source_files:.java=.class)): New target.
2757 * Makefile.in: Rebuilt.
2758 * Makefile.am (java_source_files): Added
2759 java/net/HttpURLConnection.java and
2760 gnu/gcj/www/protocol/http/Connection.java.
2762 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2764 * gnu/gcj/www/protocol/http/Connection.java: New file.
2765 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2766 * java/net/HttpURLConnection.java: New file.
2767 * java/net/URLConnection.java (getHeaderField): Implemented default.
2768 (getHeaderFieldKey): Implemented default method.
2770 1999-03-30 Tom Tromey <tromey@cygnus.com>
2772 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2774 * java/util/zip/Deflater.java: Added copyright header.
2775 * java/util/zip/CRC32.java: Added copyright header.
2777 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2778 that it is automatically generated.
2779 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2781 * gnu/gcj/convert/BytesToUnicode.java,
2782 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2783 gnu/gcj/convert/Input_EUCJIS.java,
2784 gnu/gcj/convert/Input_UTF8.java,
2785 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2786 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2787 gnu/gcj/convert/Output_8859_1.java,
2788 gnu/gcj/convert/Output_JavaSrc.java,
2789 gnu/gcj/convert/Output_UTF8.java,
2790 gnu/gcj/convert/UnicodeToBytes.java,
2791 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2793 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2795 * Makefile.in, configure: Rebuilt.
2796 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2797 not if test subdir exists.
2798 (--enable-gcj-classes): Removed; gcj always used to generate
2800 (JAVA, JAVAC): Removed.
2801 (--enable-single-compilation, --enable-source-compilation):
2804 (NATIVE): New conditional.
2805 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2806 `install-exec' to work.
2807 (toolexeclibdir): Likewise.
2808 (toollib_LIBRARIES): Likewise.
2809 (AM_MAKEFLAGS): Don't pass tooldir.
2811 (javao_files): Redefined.
2812 (java_source_files): New macro.
2813 (c_source_files): New macro.
2814 (c_files): Redefined in terms of c_source_files.
2815 (java_io_files, java_lang_files, java_net_files, java_text_files,
2816 java_util_files, gnu_files, java_files): Removed.
2817 (class_io_files, class_lang_files, class_net_files,
2818 class_text_files, class_util_files, class_gnu_files, class_files):
2820 (nat_source_files): New macro.
2821 (nat_files): Redefined in terms of nat_source_files.
2822 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2823 java_source_files. Removed no-such-file.c.
2825 (ETAGS_ARGS): Removed.
2826 (TAGS_DEPENDENCIES): Likewise.
2827 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2829 (src_io_files, src_lang_files, src_text_files, src_util_files,
2830 src_gnu_files): Removed.
2831 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2832 (BUILT_SOURCES): Removed.
2833 (header-check): New target.
2835 (noinst_PROGRAMS): New macro.
2836 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2838 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2839 (gen-from-JIS): Build in top directory.
2840 (convert_source_files): New macro.
2841 (convert_SOURCES): New macro.
2842 (convert_LDFLAGS): Likewise.
2843 (convert_LINK): Likewise.
2844 (convert_LDADD): Likewise.
2845 (convert_DEPENDENCIES): Likewise.
2847 (gen-from-JIS): Removed.
2848 (gen_from_JIS_SOURCES): New macro.
2849 (gen_from_JIS_LDADD): Likewise.
2850 (gen_from_JIS_DEPENDENCIES): Likewise.
2852 * configure: Rebuilt.
2853 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2854 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2855 when defining conditional.
2857 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2859 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2860 The Unicode Consortium does not permit their re-distribution.
2861 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2862 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2864 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2866 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2868 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2870 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2871 from Unicode Consortium.
2872 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2873 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2874 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2875 New tables, generated using gen-from-JIS.
2876 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2877 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2878 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2879 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2881 * gnu/gcj/convert/Convert.java: New application.
2882 * Makefile.am, Makefile.in (convert): New program, using Convert.
2883 Build the various JIS conversion tables (in maintainer mode).
2885 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2887 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2889 * java/net/URL.java (URL): Deal with null property value. Use "."
2890 as separator in building class name.
2891 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2892 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2893 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2894 beginning of the substring rather than 'start'.
2896 1999-03-26 Tom Tromey <tromey@cygnus.com>
2898 * include/java-chartables.h: Rebuilt.
2899 * include/java-chardecomp.h: New file.
2900 * chartables.pl: Generate output files directly. Added support
2901 for generating decomposition header.
2902 (canonical_decomposition, full_decomposition): New globals.
2903 (DECOMPOSITION): New constant.
2904 (process_char): Call add_decomposition.
2905 (add_decomposition): New sub.
2906 (write_decompositions): New sub.
2908 1999-03-25 Tom Tromey <tromey@cygnus.com>
2910 * java/text/CollationElementIterator.java: New file.
2912 * mauve-libjava: Omit StringTest.
2914 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2916 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2917 without a '/' when parsing protocol. Handle ref outside of parseURL.
2918 (hashCode): Implemented.
2919 (set): Don't expand -1 to default port.
2920 (getDefaultPort): Removed.
2922 * java/net/URLStreamHandler.java (parseURL): Implemented.
2923 (toExternalForm): Implemented.
2925 1999-03-23 Tom Tromey <tromey@cygnus.com>
2927 * java/text/BreakIterator.java (getSentenceInstance):
2929 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2931 * Makefile.in: Rebuilt.
2932 * Makefile.am (nat_headers): Added IllegalAccessException.
2933 * java/lang/natClass.cc (newInstance): Throw
2934 IllegalAccessException, not IllegalAccessError.
2935 Include IllegalAccessException.h.
2937 1999-03-22 Tom Tromey <tromey@cygnus.com>
2939 * gnu/gcj/text/LineBreakIterator.java: New file.
2940 * java/text/BreakIterator.java (getLineInstance): Implemented.
2942 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2943 copy constructor private.
2944 (previous, next): Removed erroneous comment about line
2946 (previous): Correctly recognize break between non-letter on the
2947 left and letter on the right. Handle apostrophes correctly.
2949 * java/text/BreakIterator.java (getWordInstance): Implemented.
2950 * gnu/gcj/text/WordBreakIterator.java: New file.
2951 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2953 * gnu/gcj/text/BaseBreakIterator.java: New file.
2955 1999-03-19 Tom Tromey <tromey@cygnus.com>
2957 * java/text/BreakIterator.java: New file (partially stubbed out).
2958 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2960 * include/config.h.in: Rebuilt.
2961 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2962 (HAVE_TIMEZONE): Likewise.
2963 * configure: Rebuilt.
2964 * configure.in: Added timezone checks.
2965 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2968 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2970 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2971 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2972 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2973 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2974 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2975 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2976 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2977 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2979 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2980 (BSD_COMP): Kludge needed for Solaris2.
2982 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2984 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2985 URL(java.net.URL, string, URLStreamHandler) and call it with a
2986 null handler. In latter constructor, added SecurityManager check.
2987 (set): Expect null handler on bad protocol rather than an exception.
2988 (setURLStreamHandler): Simplified exception handling; return null
2989 on invalid protocol.
2991 1999-03-18 Tom Tromey <tromey@cygnus.com>
2993 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2995 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2997 Include PrintStream.h, InputStream.h.
2998 * java/lang/System.java (ForwardingInputStream,
2999 ForwardingOutputStream): Removed.
3000 (setErr, setIn, setOut): Now native.
3002 Reverted patch from 1999-02-12 to work around problem in
3004 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
3005 (_Jv_eh_free): Use free.
3007 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
3008 for path name. Minor formatting fixes.
3010 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
3012 * prims.cc (fail_on_finalization): New function.
3013 (_Jv_GCWatch): Likewise.
3015 * prims.cc (JvRunMain): Initialize `nullp'.
3016 (nullp): New global.
3017 (catch_segv): Throw nullp.
3019 * Makefile.in: Rebuilt.
3020 * Makefile.am (ZIP): In "null target" case, zip is found in the
3023 * prims.cc (_Jv_PrimClass): Initialize all elements of class
3027 * java/lang/StringBuffer.java (StringBuffer): Don't use
3028 ensureCapacity to set initial capacity.
3029 (capacity): Subtract `length' from return result.
3031 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
3033 * java/io/natFileDescriptorPosix.cc (open): Throw
3034 FileNotFoundException, but with filename and errno in msg.
3036 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
3038 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
3039 functionality folded into java/net/URL.java per spec.
3041 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
3042 than EEXIST for throwing FileNotFoundException.
3044 * java/net/URL.java: Folded in default URLStreamHandlerFactory
3045 algorithm per JDK 1.2 doc. Added SecurityManager checks.
3047 * java/net/URLStreamHandler.java (parseURL): Added stub.
3049 1999-03-15 Andrew Haley <aph@cygnus.com>
3051 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3054 1999-03-15 Andrew Haley <aph@cygnus.com>
3056 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3059 1999-03-12 Tom Tromey <tromey@cygnus.com>
3061 * prims.cc (catch_segv): New function.
3062 Include <signal.h> if HANDLE_SEGV defined. Include
3063 NullPointerException.h.
3064 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3067 * java/text/SimpleDateFormat.java (equals): Ensure that object is
3068 a SimpleDateFormat, not just a DateFormat.
3069 (defaultCenturyStart, formatData, pattern): Now private.
3070 (append): Now `final'. Use `NumberFormat.format'.
3072 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3074 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3077 * java/text/MessageFormat.java (format): Use default MessageFormat
3079 (parse, parseObject): Wrote.
3081 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3084 1999-03-12 Andrew Haley <aph@cygnus.com>
3086 * java/lang/String.java (indexOf): Replace with native method for
3088 * java/lang/natString.cc (IndexOf): As above.
3090 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3091 Argument check corrected.
3092 (init(jbyteArray,jint,jint,jstring)): Likewise.
3094 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3095 1.2 compliant method.
3097 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3099 * java/lang/Float.java (byteValue, shortValue): Likewise.
3101 1999-03-11 Tom Tromey <tromey@cygnus.com>
3103 * java/text/DecimalFormat.java (parse): Wrote.
3105 * java/text/ChoiceFormat.java (parse): Set error index on
3106 ParsePosition object.
3108 * java/lang/Integer.java (parseInt): Throw exception on overflow
3109 when intermediate result is most negative number. Changed
3110 overflow detection as well.
3111 * java/lang/Long.java (parseLong): Likewise.
3113 * configure, Makefile.in: Rebuilt.
3114 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3115 CANADIAN when building in source tree that doesn't include gcc.
3116 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3119 * java/text/ChoiceFormat.java (nextDouble): Correct some
3120 off-by-one errors when masking or adding.
3122 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3123 parameter, if given. Use `%', not IEEEremainder.
3124 (scanFix): Throw error if multiplier already set.
3125 (computePattern): Wrote.
3127 1999-03-11 Andrew Haley <aph@cygnus.com>
3129 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3131 (nextDouble): Corrected masking logic. Handle interaction between
3132 `next' and negative numbers.
3134 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3136 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3137 * java/net/URL.java: Added general comments.
3139 1999-03-10 Tom Tromey <tromey@cygnus.com>
3141 * java/text/ChoiceFormat.java (parse): Wrote.
3143 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3145 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3146 Create ChoiceFormat objects.
3147 (format): Special-case ChoiceFormat.
3148 (scanFormatElement): Include { and } in generated style string.
3150 1999-03-09 Tom Tromey <tromey@cygnus.com>
3152 * java/text/ChoiceFormat.java: New file.
3154 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3156 * java/net/BindException.java: Created.
3157 * java/net/ConnectException.java: Created.
3158 * java/net/ContentHandler.java: Created.
3159 * java/net/ContentHandlerFactory.java: Created.
3160 * java/net/FileNameMap.java: Created.
3161 * java/net/MalformedURLException.java: Created.
3162 * java/net/NoRouteToHostException.java: Created.
3163 * java/net/ProtocolException.java: Created.
3164 * java/net/ServerSocket.java (@author): Fixed typo.
3165 * java/net/Socket.java (@author): Fixed typo.
3166 * java/net/SocketImpl.java (@author): Fixed typo.
3167 * java/net/SocketImplFactory.java (@author): Fixed typo.
3168 * java/net/URL.java: Created - nearly complete.
3169 * java/net/URLConnection.java: Created - near-empty stub.
3170 * java/net/URLStreamHandler.java: Created - incomplete stub.
3171 * java/net/URLStreamHandlerFactory.java: Created.
3172 * java/net/UnknownServiceException.java: Created.
3174 1999-03-09 Tom Tromey <tromey@cygnus.com>
3176 * java/lang/System.java (ForwardingInputStream): New class.
3177 (ForwardingOutputStream): Likewise.
3178 (in, out, err): Now `final' forwarding streams.
3179 (setIn, setOut, setErr): Use appropriate method on forwarding
3182 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3185 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3187 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3188 * java/util/zip/Checksum.java: New interface (complete).
3189 * java/util/zip/Deflater.java: New class (near-empty stub).
3190 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3191 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3192 * java/util/zip/ZipEntry.java: New class (complete).
3193 * java/util/zip/ZipException.java: New class (complete).
3194 * java/util/zip/ZipFile.java: New class (incomplete stub).
3195 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3197 1999-03-09 Tom Tromey <tromey@cygnus.com>
3199 * java/text/MessageFormat.java (MessageFormatElement): Removed
3200 `public' specifiers.
3202 * java/text/DecimalFormat.java (scanFormat): Increment index
3203 before processing exponential format. Fixed a couple typos in
3205 (format): Correct normalization of exponent.
3207 1999-03-08 Tom Tromey <tromey@cygnus.com>
3209 * java/text/SimpleDateFormat.java (parse): Throw
3210 IllegalArgumentException, not ParseException.
3212 1999-03-05 Tom Tromey <tromey@cygnus.com>
3214 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3215 when constructing DateFormatSymbols. Initialize numberFormat
3216 field of superclass.
3218 * java/text/DateFormat.java (equals): Rewrote.
3219 (getAvailableLocales): New method.
3220 (getDateInstance): New methods.
3221 (getDateTimeInstance): Likewise.
3222 (getTimeInstance): Likewise.
3223 (getInstance): New method.
3224 (computeInstance): New method.
3226 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3228 (safeGetResource): New method.
3229 (DateFormatSymbols): Use Locale paramater.
3230 (equals): Now protected.
3231 Made instance variables private.
3233 1999-03-04 Tom Tromey <tromey@cygnus.com>
3235 * java/text/DecimalFormat.java: New file.
3237 * java/text/NumberFormat.java (groupingUsed,
3238 maximumFractionDigits, maximumIntegerDigits,
3239 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3241 (setDecimalSeparatorAlwaysShown, setMultiplier,
3242 setPositivePrefix): Removed.
3243 (setMinimumFractionDigits, setMaximumFractionDigits):
3245 (format): Now final.
3246 Added many new methods.
3248 * Makefile.in: Rebuilt.
3249 * Makefile.am (gnu_files): New macro.
3250 (java_files): Added gnu_files.
3251 (class_gnu_files): New macro.
3252 (class_files): Use it.
3253 (src_gnu_files): New macro.
3254 (gnu.o): New target.
3255 (javao_files): Added gnu.o.
3257 * gnu/gcj/text/LocaleData_en_US.java: New file.
3258 * gnu/gcj/text/LocaleData_en.java: New file.
3259 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3260 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3261 (safeGetString): New method.
3262 (safeGetChar): Likewise.
3264 1999-03-03 Tom Tromey <tromey@cygnus.com>
3266 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3269 * java/text/FieldPosition.java (equals): Don't check for null
3270 object; instanceof does this.
3272 * java/util/Locale.java (clone): New method.
3275 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3277 * doc/cni.sgml: New file.
3279 1999-03-03 Tom Tromey <tromey@cygnus.com>
3281 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3283 * java/text/DecimalFormatSymbols.java: New file.
3285 1999-03-02 Tom Tromey <tromey@cygnus.com>
3287 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3289 * configure: Rebuilt.
3290 * configure.in: Check for sys/filio.h.
3292 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3294 (load): Always throw UnsatisfiedLinkError.
3295 (loadLibrary): Likewise.
3297 1999-03-02 Anthony Green <green@cygnus.com>
3299 * LIBGCJ_LICENSE: New file.
3300 * LIBJAVA_LICENSE: Removed.
3301 * Many files: libjava now libgcj.
3303 1999-03-02 Tom Tromey <tromey@cygnus.com>
3305 * include/java-chartables.h: Rebuilt.
3306 * chartables.pl (print_block): Make table `const'.
3307 (print_numerics): Likewise.
3308 (print_single_map): Likewise.
3309 (print_all_block): Likewise.
3310 (print_case_table): Likewise.
3311 (print_fast_tables): Likewise.
3312 * java/lang/natCharacter.cc (table_search): `table' argument now
3315 1999-03-01 Tom Tromey <tromey@cygnus.com>
3317 * java/util/Date.java (before, after): Inverted logic.
3319 * java/util/Date.java (parse): Handle case where first character
3320 in string is open parenthesis.
3321 (skipParens): Rewrote.
3323 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3324 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3326 * java/util/Date.java (parse): Correctly compute beginning of
3329 * java/util/Hashtable.java (get): Throw NullPointerException if
3331 (containsKey): Likewise.
3333 * java/util/Properties.java (list): Truncate value to 37
3334 characters and add `...'.
3336 * java/lang/Byte.java (parseByte): Pass `radix' to
3339 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3341 Include System.h, PrintStream.h.
3343 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3346 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3348 * configure: Rebuilt.
3349 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3352 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3354 * java/lang/SecurityManager.java: Import java.net.*.
3355 (checkMulticast): New methods.
3357 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3359 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3360 (nat_files): Add java/lang/reflect/natArray.o.
3361 (nat_headers): Add Field.h and NoSuchFieldException.h.
3363 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3364 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3365 (_Jv_FromReflectedField): Fix buglet.
3366 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3367 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3368 * prims.cc (_Jv_Abort): Include message in print-out.
3370 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3371 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3372 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3374 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3375 * include/config.h.in (HAVE_PWD_H): New feature macro.
3376 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3377 user.name, user.home, user.dir.
3379 * java/lang/reflect/Array.java: New class.
3380 * java/lang/reflect/natArray.cc: New native methods.
3381 * include/javaprims.h: Declare java::lang::reflect::Array.
3383 * java/lang/Class.h (getField): New private method. Add friends.
3384 * java/lang/Class.java (getField): Add private overload.
3385 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3386 getDeclaredMethods): Add working implementations.
3387 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3388 Finish implementation, except for access control.
3390 * java/lang/reflect/Modifier.java (toString): New overload.
3391 * include/java-method.h: New file.
3392 * java/lang/reflect/Method.java (index): Replaced by offset field.
3393 Remove various private fields - get them from _Jv_Field instead.
3394 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3395 New method implementations.
3397 * java/text/NumberFormat.java: Add a bunch of methods.
3399 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3401 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3403 1999-02-26 Tom Tromey <tromey@cygnus.com>
3405 * include/config.h.in: Rebuilt.
3406 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3407 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3408 HAVE_GETHOSTBYADDR_R): New defines.
3409 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3410 gethostbyaddr_r if available.
3412 * configure: Rebuilt.
3413 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3415 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3419 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3420 * prims.cc (_Jv_AllocBytesChecked): New function.
3422 * Makefile.in: Rebuilt.
3423 * Makefile.am (SUBDIRS): Removed `test'.
3424 * configure: Rebuilt.
3425 * configure.in: Don't build test/Makefile.
3426 * test/*: Removed all files.
3428 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3430 * java/lang/reflect/Constructor.java: Make class final to match spec.
3431 * java/lang/reflect/Method.java: Ditto.
3433 1999-02-25 Tom Tromey <tromey@cygnus.com>
3435 * java/net/natInetAddress.cc: Include <sys/types.h> before
3437 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3440 * java/net/natInetAddress.cc: Declare gethostname if required.
3441 * include/config.h.in: Rebuilt.
3442 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3443 * configure: Rebuilt.
3444 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3445 declared in unistd.h.
3447 1999-02-24 Tom Tromey <tromey@cygnus.com>
3449 * Makefile.in: Rebuilt.
3450 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3451 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3452 from private to "none".
3454 * include/javaprims.h: Regenerated class declarations with new
3456 * classes.pl (scan): Only generate decls for java.lang, java.io,
3459 1999-02-24 Tom Tromey <tromey@cygnus.com>
3461 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3462 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3464 1999-02-23 Tom Tromey <tromey@cygnus.com>
3466 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3467 not already defined.
3468 * java/io/natFile.cc (_REENTRANT): Only define if not already
3470 * include/config.h.in: Rebuilt.
3471 * acconfig.h (HAVE_BOEHM_GC): New define.
3472 * configure: Rebuilt.
3473 * configure.in: Define HAVE_BOEHM_GC if using it.
3474 * posix-threads.cc: Include boehm-config.h and gc.h if
3476 * include/posix-threads.h: Added explanatory note about Boehm GC.
3478 * java/io/BufferedReader.java (readLine): Only return null when
3479 EOF seen before any characters read. (In particular, an empty
3480 line should not return null.)
3482 * java/io/BufferedInputStream.java (read): Only refill once per
3485 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3486 java.lang.Character.classify12, java.lang.String.hash,
3487 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3488 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3490 * java/text/StringCharacterIterator.java (setIndex): No error if
3492 (next): Check for `pos == end', not `end - 1'.
3493 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3494 for null text in each constructor.
3495 (clone): Fixed order of arguments to constructor.
3497 1999-02-22 Tom Tromey <tromey@cygnus.com>
3499 * include/config.h.in: Rebuilt.
3500 * acconfig.h (HAVE_INET6): New define.
3501 (HAVE_SOCKLEN_T): Likewise.
3502 * java/net/PlainSocketImpl.java: Added copyright header.
3503 * java/net/natPlainSocketImpl.cc: Added copyright header.
3504 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3506 (connect): Likewise.
3508 (socklen_t): New typedef.
3509 (accept): Use socklen_t.
3510 * java/net/natInetAddress.cc: Added copyright header.
3511 (HAVE_GETHOSTNAME): Don't define.
3512 (HAVE_INET_ADDR): Likewise.
3513 (lookup): Fixed typo.
3514 (aton): Don't use `address' as name of local variable.
3515 (lookup): Use HAVE_INET6, not AF_INET6.
3517 * configure: Rebuilt.
3518 * configure.in: Look for functions inet_aton, inet_addr,
3519 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3520 Check for socklen_t typedef.
3522 * exception.cc (__throw): Declare as __noreturn__.
3524 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3526 * Makefile.am, Makefile.in: Also build java/net.
3527 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3529 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3530 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3532 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3533 * include/cni.h (JvMalloc, JvFree): New inline functions.
3534 (JvThrow): Add __noreturn__ attribute.
3535 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3536 (_Jv_Throw): Add __noreturn__ attribute.
3538 * java/net/PlainSocketImpl.java: Init fnum to -1.
3539 * java/net/ServerSocket.java: Add missing throws clauses.
3540 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3541 don't call create on the latter. Instead, other constructors
3542 have to explicitly call SocketImpl.create.
3543 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3544 from size_t to int, to match ::accept prototype.
3545 * java/net/natInetAddress.cc: Use JvFree rather than free.
3548 1999-02-22 Tom Tromey <tromey@cygnus.com>
3550 * include/javaprims.h: Added new classes.
3551 * java/text/StringCharacterIterator.java: New file.
3552 * java/text/CharacterIterator.java: New file.
3554 * java/text/ParseException.java (errorOffset): Now private.
3556 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3558 * java/net: New package.
3559 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3560 Socket.java,SocketException.java,SocketImpl.java,
3561 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3562 natPlainSocketImpl.cc}: New classes.
3564 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3565 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3566 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3567 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3569 * classes.pl: Translate package into "namespace", not "class".
3570 * include/javaprims.h: Update class list, using "namespace".
3572 1999-02-21 Tom Tromey <tromey@cygnus.com>
3574 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3575 Define when appropriate.
3577 1999-02-20 Tom Tromey <tromey@cygnus.com>
3579 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3580 as a single byte and \u07ff as two bytes.
3581 (_Jv_GetStringUTFLength): Likewise.
3582 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3583 with 0x0f, not 0x1f.
3585 1999-02-19 Tom Tromey <tromey@cygnus.com>
3587 * java/io/DataOutputStream.java (writeUTF): When encoding
3588 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3589 * java/io/DataInputStream.java (readUTF): Mask second byte of
3590 3-byte character with 0x3f, not 0x1f.
3592 * java/io/DataInputStream.java (readLong): Cast result of
3593 readUnsignedByte to long before using.
3595 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3598 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3599 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3600 argument to avoid warning.
3601 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3602 argument to avoid warning.
3604 1999-02-18 Tom Tromey <tromey@cygnus.com>
3606 * mauve-libjava: Omit java.io.DataInputOutput and
3607 java.io.Utf8Encoding.
3609 1999-02-17 Tom Tromey <tromey@cygnus.com>
3611 * Makefile.in: Rebuilt.
3612 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3613 * java/io/natFileDescriptorPosix.cc: Include
3614 InterruptedIOException.h, Thread.h.
3615 (write): Throw InterruptedIOException when required.
3617 * posix-threads.cc: Include <signal.h>.
3618 (_Jv_ThreadInterrupt): New function.
3620 (handle_intr): New function.
3621 (_Jv_InitThreads): Register handle_intr via sigaction.
3622 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3623 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3624 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3625 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3627 1999-02-19 Andrew Haley <aph@cygnus.com>
3629 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3631 (ThreadGroup (int)): Set the maximum priority of the initial
3634 1999-02-18 Andrew Haley <aph@cygnus.com>
3636 * java/lang/natClass.cc (forName): Check for the case where a
3637 classname is the name of an array and call FindClassFromSignature
3640 1999-02-18 Andrew Haley <aph@cygnus.com>
3642 * java/lang/StringBuffer (insert (int, String)): Move up any
3643 characters above the insert position and increase the length of
3644 the string buffer by the length of the argument.
3645 (insert (int, char[])): Likewise.
3646 (insert (int, char)): Likewise.
3647 (StringBuffer (String)): The initial capacity of the string buffer
3648 is 16 plus the length of the argument.
3649 (getChars): Add a JDK 1.2 FIXME.
3651 1999-02-18 Andrew Haley <aph@cygnus.com>
3653 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3656 1999-02-18 Andrew Haley <aph@cygnus.com>
3658 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3659 instead of floating-point equality. This is necessary for
3660 correct floating-point Hashtables.
3661 * java/lang/Float.java (equals): Ditto.
3663 1999-02-16 Tom Tromey <tromey@cygnus.com>
3665 * java/util/Properties.java (list): Truncate value to 37
3666 characters and add "...".
3668 1999-02-16 Tom Tromey <tromey@cygnus.com>
3670 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3671 if initCap is negative.
3672 (contains): Implement JDK1.2-style handling of null argument.
3673 (removeElement): Likewise.
3674 (indexOf): Likewise. Also, correctly handle case where idx is
3676 (lastIndexOf): Likewise.
3678 1999-02-16 Tom Tromey <tromey@cygnus.com>
3680 * java/lang/natString.cc (init): Increment source pointer in
3683 1999-02-16 Tom Tromey <tromey@cygnus.com>
3685 * exception.cc: Include NullPointerException.h.
3686 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3688 1999-02-16 Tom Tromey <tromey@cygnus.com>
3690 * Makefile.in: Rebuilt.
3691 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3693 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3695 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3696 we're compiling canadian.
3697 * configure: Regenerated.
3699 1999-02-12 Andrew Haley <aph@cygnus.com>
3701 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3702 deleted from libgcj.
3704 1999-02-12 Tom Tromey <tromey@cygnus.com>
3706 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3707 (_Jv_eh_free): Don't call free.
3708 Don't declare malloc or free.
3710 1999-02-11 Tom Tromey <tromey@cygnus.com>
3712 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3714 1999-02-11 Andrew Haley <aph@cygnus.com>
3716 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3717 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3718 needed by java.lang.*.
3719 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3720 wf_fmod.o: Removed from libjava.a.
3722 1999-02-11 Tom Tromey <tromey@cygnus.com>
3724 * include/javaprims.h: Reverted previous change; with it
3725 exception.cc can't compile.
3727 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3729 * include/config.h.in: Rebuilt.
3730 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3732 * configure: Rebuilt.
3733 * configure.in: Check for sched_yield. Look in thread library for
3734 all thread functions.
3736 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3737 no recursive mutexes.
3738 (_Jv_MutexDestroy): Define when required.
3739 (_Jv_MutexLock): Likewise.
3740 (_Jv_MutexUnlock): Likewise.
3741 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3742 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3743 (_Jv_Mutex_t): New structure.
3744 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3745 (_Jv_MutexLock): Likewise.
3746 (_Jv_MutexUnlock): Likewise.
3748 1999-02-10 Tom Tromey <tromey@cygnus.com>
3750 * aclocal.m4, configure, Makefile.in: Rebuilt.
3751 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3753 * configure.in: Changed to track library changes.
3754 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3755 (AM_CXXFLAGS): Likewise.
3756 (data_DATA): Likewise.
3757 (AM_CFLAGS): Likewise.
3758 (JC1FLAGS): Likewise.
3759 (libgcj_a_SOURCES): Likewise.
3760 (EXTRA_libgcj_a_SOURCES): Likewise.
3761 (libgcj_a_DEPENDENCIES): Likewise.
3762 (libgcj_a_LIBADD): Likewise.
3763 (libgcj.zip): Likewise.
3764 (CLEANFILES): Likewise.
3765 ($(nat_headers)): Likewise.
3766 (java/lang/FirstThread.h): Likewise.
3767 (java/lang/ThreadGroup.h): Likewise.
3768 (java/lang/String.h): Likewise.
3769 (java/lang/reflect/Field.h): Likewise.
3770 (BUILT_SOURCES): Likewise.
3771 (maintainer-check): Likewise.
3772 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3773 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3775 * java/util/natGregorianCalendar.cc (computeFields): Only use
3776 gmtime_r and localtime_r when configured for posix threads.
3778 * java/io/natFile.cc (get_entry): Only use readdir_r when
3779 configured for posix threads.
3781 * java/util/natGregorianCalendar.cc: Update copyright notice.
3782 * java/util/TimeZone.java: Ditto.
3783 * java/util/SimpleTimeZone.java: Ditto.
3785 1999-02-08 Tom Tromey <tromey@cygnus.com>
3787 * java/io/PrintStream.java (line_separator): New constant.
3788 (print): Use line_separator, not `file.separator' property.
3789 (println): Use line_separator.
3791 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3792 when trying to instantiate Class.
3794 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3795 NullPointerException if argument is null.
3797 * java/lang/Thread.java (setName): Throw NullPointerException, not
3798 IllegalArgumentException.
3801 1999-02-08 Andrew Haley <aph@cygnus.com>
3803 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3804 create new Classes with Class.newInstance().
3806 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3807 semiciolon to end of an array Class's signature if the elements of
3808 the array aren't themselves arrays.
3810 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3811 array of objects is always sizeof(jobject), not the size of the
3812 object to which the reference points.
3814 1999-02-08 Tom Tromey <tromey@cygnus.com>
3816 * java/util/BitSet.java (and): Throw NullPointerException when
3821 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3822 if argument is negative.
3823 (clear): Correctly compute `offset'. Throw
3824 IndexOutOfBoundsException when required.
3826 (get): Likewise. Also, return correct value.
3827 (ensure): Changed meaning of argument.
3828 (toString): Wrap contents in `{}'; put spaces after commas.
3829 (hashCode): Don't try to examine elements off the end of array.
3830 (or): Correctly include bits past the end of this bit set.
3833 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3835 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3836 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3838 1999-02-04 Andrew Haley <aph@cygnus.com>
3840 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3841 '/' in signatures to '.'
3842 (Class::getName): Likewise,
3843 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3845 * java/lang/natFirstThread.cc (run): Change '/' in main's
3848 1999-02-03 Andrew Haley <aph@cygnus.com>
3850 * configure.host: -ffloat-store added when compiling libjava on
3851 x86. fdlibm apparently relies on this.
3853 * java/lang/ThreadGroup.java (add): throw an exception if the
3854 ThreadGroup has been destroyed.
3856 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3859 1999-01-27 Tom Tromey <tromey@cygnus.com>
3861 * java/lang/StringBuffer.java (StringBuffer): Handle null
3864 1999-01-21 Tom Tromey <tromey@cygnus.com>
3866 * java/lang/natFirstThread.cc (run): Don't require main to be
3869 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3871 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3873 1999-01-20 Tom Tromey <tromey@cygnus.com>
3875 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3879 (unintern): Likewise.
3880 (_Jv_NewStringUtf8Const): Likewise.
3882 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3883 Character.isLetter, to see if character is self-quoting. Also,
3884 correctly handle quoted characters.
3885 (parse): Fixed typo. Also now throws ParseException.
3887 1999-01-15 Tom Tromey <tromey@cygnus.com>
3889 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3891 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3892 _Jv_SyncInfo has `init' member.
3894 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3897 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3898 IllegalMonitorStateException if unlock fails.
3900 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3902 (_Jv_NewObjectArray): Likewise.
3904 1999-01-14 Tom Tromey <tromey@cygnus.com>
3906 * java/lang/Character.java (isJavaIdentifierPart): Allow
3907 LETTER_NUMBER characters.
3909 * chartables.pl (process_char): Fixed error messages.
3911 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3912 * chartables.pl: Updated comments. Changed detection of non-digit
3913 numeric values (no longer miss \u00b2 and friends).
3915 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3916 currency symbols and connector punctuation.
3917 (isIdentifierIgnorable): Make 7f-9f ignorable.
3919 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3920 (_Jv_NewPrimArray): Likewise.
3921 (SIZE_T_MAX): New define.
3923 * java/lang/ClassLoader.java (system): Now private and final.
3925 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3928 * configure: Rebuilt.
3929 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3931 * exception.cc: Include gansidecl.h.
3933 1999-01-14 Andrew Haley <aph@cygnus.com>
3935 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3936 corrected: they didn't treat -0.0 and NaNs correctly.
3938 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3940 * nogc.cc: Use calloc to zero out memory.
3942 1999-01-11 Tom Tromey <tromey@cygnus.com>
3944 * java/lang/natClass.cc (isInstance): Return false if this class
3945 is primitive, not if class of `obj' is primitive.
3946 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3948 * java/io/SequenceInputStream.java (close): Handle case where `in'
3951 * java/text/DateFormat.java (format): New method.
3953 * mauve-libjava: Omit java.text.DateFormat.
3955 1999-01-08 Tom Tromey <tromey@cygnus.com>
3957 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3959 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3961 (_Jv_CondNotifyAll): Likewise.
3963 * configure: Rebuilt.
3964 * configure.in: Change --enable-source-compilation logic to work
3967 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3969 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3970 and RUNTESTFLAGS from AM_MAKEFLAGS.
3971 * configure.in: AM_RUNTESTFLAGS added.
3972 * configure.host: AM_RUNTESTFLAGS added.
3973 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3974 * configure: rebuilt.
3975 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3977 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3978 argv[] made conditional because embedded targets may not have
3980 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3981 explanatory comments added in call to super.
3983 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3984 exception thrown in the test harness itself added.
3985 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3987 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3989 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3991 1999-01-06 Tom Tromey <tromey@cygnus.com>
3993 * java/io/natFile.cc (get_entry): New function.
3994 (performList): Use get_entry.
3995 * include/config.h.in: Rebuilt.
3996 * acconfig.h (HAVE_READDIR_R): New define.
3997 * configure: Rebuilt.
3998 * configure.in: Look for readdir_r.
4000 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
4002 * java/util/natDate.cc: Added copyright header.
4004 1999-01-05 Tom Tromey <tromey@cygnus.com>
4006 * include/config.h.in: Rebuilt.
4007 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
4008 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
4009 * configure: Rebuilt.
4010 * configure.in: Check for access, stat, mkdir, rename, rmdir,
4011 unlink, and realpath.
4012 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
4013 (stat): Conditionalize on HAVE_STAT.
4015 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
4016 (performMkdir): Conditionalize on HAVE_MKDIR.
4017 (performRenameTo): Conditionalize on HAVE_RENAME.
4018 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
4020 * include/config.h.in: Rebuilt.
4021 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
4022 * configure: Rebuilt.
4023 * configure.in: Check for gmtime_r and localtime_r. For cross
4024 builds, assume they exist.
4026 * mauve-libjava: Include java.text.DateFormatSymbols again.
4027 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
4028 from setAmPmStrings.
4030 * mauve-libjava: Omit java.text.DateFormatSymbols.
4032 1999-01-04 Tom Tromey <tromey@cygnus.com>
4034 * java/io/PushbackReader.java: `off' already includes `numBytes'.
4036 * java/io/LineNumberReader.java (read): Decrement `count' in
4039 * java/io/BufferedWriter.java (write): Correctly determine when
4040 incoming data would overrun buffer. Flush buffer if write causes
4043 * java/io/BufferedOutputStream.java (write): Increment `count'
4044 after copying data into buffer.
4046 * java/io/FilterOutputStream.java (close): Call flush first.
4048 * java/io/PipedReader.java (read): If read causes `out' to catch
4049 up with `in', then set `in' to -1.
4051 * java/io/LineNumberInputStream.java (read): If no bytes read,
4052 return -1. If no bytes requested, return 0.
4054 * java/lang/StringBuffer.java (insert): If `str' is null, use
4057 1998-12-30 Anthony Green <green@cygnus.com>
4060 * LIBJAVA_LICENSE, COPYING.LIB: Created.
4062 1998-12-23 Tom Tromey <tromey@cygnus.com>
4064 * java/io/PushbackInputStream.java (read): `off' already includes
4067 1998-12-17 Tom Tromey <tromey@cygnus.com>
4069 * Makefile.in: Rebuilt.
4070 * Makefile.am (GCJ_canadian): Include target_alias.
4072 * java/lang/natFirstThread.cc (run): Require main's class to be
4075 1998-12-16 Tom Tromey <tromey@cygnus.com>
4077 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4079 * java/util/ResourceBundle.java (getBundle): Throw
4080 NullPointerException if locale argument is null.
4082 * java/lang/natClass.cc (forName): Throw NullPointerException if
4084 Include NullPointerException.h.
4086 1998-12-14 Tom Tromey <tromey@cygnus.com>
4088 * java/lang/Character.java (Character): Implement Comparable.
4089 (compareTo): New methods.
4091 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4092 correct country and language codes.
4093 (UK, US): New constants.
4094 (setDefault): Language codes are lower-case.
4096 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4097 (getDeclaredConstructors): Likewise.
4098 (getDeclaredField): Likewise.
4099 (getDeclaredFields): Likewise.
4100 (getDeclaredMethod): Likewise.
4101 (getDeclaredMethods): Likewise.
4102 (getField): Likewise.
4103 (getFields): Likewise.
4104 (getMethod): Likewise.
4105 (getMethods): Likewise.
4106 * java/lang/Class.java: Declare new methods.
4107 * java/lang/Class.h: Declare new methods.
4109 * java/lang/natString.cc: Removed `#pragma implementation'.
4110 * include/cni.h (_Jv_GetStringChars): New function.
4111 * Makefile.in: Rebuilt.
4112 * Makefile.am (java/lang/String.h): Don't generate definition for
4115 * java/lang/natString.cc: Added `#pragma implementation'.
4117 * Makefile.in: Rebuilt.
4118 * Makefile.am (libjava.zip): Put build directory first in class
4119 path to avoid bug in compiler.
4121 1998-12-14 Anthony Green <green@cygnus.com>
4123 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4125 * include/javaprims.h: Add EventObject, ListResourceBundle and
4128 1998-12-13 Anthony Green <green@cygnus.com>
4130 * mauve-libjava: Run the ResourceBundle tests.
4132 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4135 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4137 * configure.in, configure: Make --enable-gcj-classes and
4138 --enable-source-compilation the default. (Nervously...) Yeah!
4139 Based on a patch from Tom Tromey.
4141 1998-12-13 Tom Tromey <tromey@cygnus.com>
4143 * java/util/EventObject.java: New file.
4144 * java/util/EventListener.java: New file.
4146 * include/javaprims.h: Updated class declarations.
4147 * Makefile.in: Rebuilt.
4148 * Makefile.am (nat_headers): Added Constructor.h.
4149 (java/lang/String.h): Don't inline String::length().
4150 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4151 * java/lang/Class.java (initializeClass, hackRunInitializers,
4152 hackTrampoline): No need to mark `final'.
4153 (getConstructor, getConstructors): Declare.
4154 * java/lang/reflect/Field.java (equals): New method.
4155 * java/lang/natClass.cc (getConstructor): New method.
4156 (getConstructors): Likewise.
4157 Include Method.h, Field.h, Constructor.h.
4158 * java/lang/reflect/Constructor.java: New file.
4159 * java/lang/reflect/Method.java (toString): No space before open
4161 (equals): Simplified.
4163 1998-12-13 Anthony Green <green@cygnus.com>
4165 * java/util/ResourceBundle.java: New file.
4166 * java/util/ListResourceBundle.java: New file.
4168 1998-12-12 Tom Tromey <tromey@cygnus.com>
4170 * java/lang/System.java (in, out, err): Now buffered streams by
4173 * include/javaprims.h: Updated class declarations.
4174 * Makefile.in: Rebuilt.
4175 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4176 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4178 (nat_files): Added natMethod.o.
4179 * java/lang/reflect/natMethod.cc: New file.
4180 * java/lang/reflect/Field.java (Field): Now extends
4182 * java/lang/reflect/AccessibleObject.java: New file.
4183 * java/lang/reflect/InvocationTargetException.java: New file.
4185 1998-12-11 Tom Tromey <tromey@cygnus.com>
4187 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4188 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4189 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4191 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4193 1998-12-09 Tom Tromey <tromey@cygnus.com>
4195 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4198 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4199 character is already titlecase.
4201 * java/lang/Character.java (isJavaLetter): Follow spec.
4202 (isJavaLetterOrDigit): Likewise.
4204 * java/util/GregorianCalendar.java (gregorianCutover): Append
4207 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4209 1998-12-08 Tom Tromey <tromey@cygnus.com>
4211 * java/lang/reflect/Modifier.java (toString): Replace second
4212 `static' with `synchronized'.
4214 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4215 * java/lang/Object.h (Object::hack12_6): Declare.
4216 * java/lang/Object.java (hack12_6): New function.
4218 1998-12-07 Tom Tromey <tromey@cygnus.com>
4220 * include/java-array.h (__JArray::clone): Removed decl.
4221 * prims.cc (__JArray::clone): Removed.
4222 * java/lang/natObject.cc (clone): Incorporate code to clone an
4225 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4226 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4227 Correctly use dtable_method_count.
4229 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4231 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4234 1998-12-06 Anthony Green <green@cygnus.com>
4236 * mauve-libjava: Don't test ResourceBundle.
4238 1998-12-04 Tom Tromey <tromey@cygnus.com>
4240 More JDK 1.2 spec fixes:
4241 * java/util/Date.java (millis): Now private.
4242 * java/text/DateFormat.java (DateFormat): Constructor now
4244 * java/lang/Void.java (Void): New private constructor.
4245 * java/lang/System.java (System): New private constructor.
4246 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4248 (currentClassLoader): New method.
4249 (currentLoadedClass): New method.
4250 * java/lang/Math.java (Math): New private constructor.
4251 * java/lang/Compiler.java (Compiler): New private constructor.
4252 * java/lang/Class.java (Class): New private constructor.
4253 * java/lang/Double.java (toString): Removed access specifier from
4254 two-argument `toString' method.
4256 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4258 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4259 causes it to be flushed from an fp register (where it may be
4260 longer than double precision) to a double in memory. This is
4261 essential to ensure correct rounding behaviour.
4263 1998-12-04 Tom Tromey <tromey@cygnus.com>
4265 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4268 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4269 explaining apparent divergence from JDK 1.2.
4271 1998-12-04 Per Bothner <bothner@cygnus.com>
4273 * include/no-threads.h: Remove unused parameter names.
4274 This silences a bunch of warnings.
4276 1998-12-04 Tom Tromey <tromey@cygnus.com>
4278 * include/config.h.in: Rebuilt.
4279 * acconfig.h (HAVE_CTIME_R): New symbol.
4281 1998-12-03 Tom Tromey <tromey@cygnus.com>
4283 * mauve-libjava: Added many more categories to reject.
4285 Changes to follow JDK1.2 spec:
4286 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4287 setErr, setIn, setOut): No need to be `final'.
4288 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4289 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4290 * java/lang/Object.java (wait): `nanos' argument is an int.
4291 * java/lang/VirtualMachineError.java: Class is abstract.
4292 * java/lang/ThreadDeath.java: Made constructors public.
4293 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4296 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4298 * java/text/DateFormatSymbols.java (getAmPmStrings,
4299 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4301 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4303 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4304 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4305 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4308 * java/lang/IllegalThreadStateException.java
4309 (IllegalThreadStateException): Changed extending class to match spec.
4311 * java/lang/NumberFormatException.java
4312 (java/lang/NumberFormatException): Changed extending class to match
4315 * java/util/Observer.java (Observer): Changed sig to match JCL.
4317 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4319 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4320 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4321 signature to match JDK 1.1 and 1.2.
4323 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4325 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4326 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4327 * Makefile.in, configure: Rebuilt.
4329 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4332 1998-12-02 Tom Tromey <tromey@cygnus.com>
4334 * mauve-libjava: New file.
4336 The remaining `-W -Wall' fixes:
4337 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4339 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4341 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4343 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4345 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4347 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4349 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4351 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4353 * java/lang/mprec.c (Balloc): Removed unused variable.
4354 (mult): Added parentheses per gcc suggestion.
4355 (pow5mult): Likewise.
4360 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4361 suggestion. Added cast to `int' to avoid signed/unsigned
4363 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4365 (IsAssignableFrom): Likewise.
4366 (_Jv_JNI_GetObjectField): Likewise.
4367 (_Jv_JNI_GetByteField): Likewise.
4368 (_Jv_JNI_GetShortField): Likewise.
4369 (_Jv_JNI_GetIntField): Likewise.
4370 (_Jv_JNI_GetLongField): Likewise.
4371 (_Jv_JNI_GetStringLength): Likewise.
4372 (_Jv_JNI_ToReflectedField): Likewise.
4373 (_Jv_JNI_FromReflectedField): Likewise.
4374 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4376 * Makefile.in: Rebuilt.
4377 * Makefile.am (AM_CFLAGS): Define conditionally.
4378 (WARNINGS): New macro.
4379 (AM_CXXFLAGS): Include WARNINGS.
4380 * configure: Rebuilt.
4381 * configure.in (USING_GCC): New conditional.
4383 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4385 * java/lang/Character.java: Changed classification constants to
4386 type `byte' to match JDK 1.2 docs.
4388 1998-12-01 Tom Tromey <tromey@cygnus.com>
4390 Some fixes to be `-W -Wall' clean:
4391 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4392 (_Jv_MarkArray): Likewise.
4393 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4394 (to_upper_title): Likewise.
4395 (isTitleCase): Likewise.
4396 (toTitleCase): Likewise.
4397 (getNumericValue): Likewise.
4398 (isLowerCase): Likewise.
4399 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4400 (avoids compiler warning).
4401 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4403 (getDeclaringClass): Likewise.
4404 (_Jv_LookupInterfaceMethod): Likewise.
4405 (_Jv_NewClass): Removed name of unused parameter.
4406 * exception.cc (_Jv_type_matcher): Removed unused variable.
4407 (_Jv_setup_eh_info): Removed name of unused parameter.
4408 * prims.cc (_Jv_NewArray): Always return a value.
4409 (_Jv_FindClassFromSignature): Likewise.
4410 * include/java-field.h (getNameUtf8Const): Removed name of unused
4412 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4414 (_Jv_ThreadSetPriority): Likewise.
4416 * java/lang/natString.cc (hashChars): Now static.
4418 * java/lang/FirstThread.java (FirstThread): Now final.
4420 * java/io/File.java (performMkdir, performRenameTo): Now private.
4422 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4423 if no time function defined.
4425 * configure: Rebuilt.
4426 * configure.in: Look for ctime_r, ctime.
4427 * java/util/Date.java (toString): Now native.
4428 * java/util/natDate.cc (toString): Rewrote.
4430 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4432 * Add LDFLAGS line to allow TX39 test cases to link when cross
4435 1998-11-23 Anthony Green <green@cygnus.com>
4437 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4438 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4439 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4440 include/java-array.h, include/java-assert.h, include/java-field.h,
4441 include/javaprims.h, include/jni.h, include/jvm.h,
4442 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4443 include/quick-threads.h, java/io/BufferedInputStream.java,
4444 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4445 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4446 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4447 java/io/CharArrayWriter.java,
4448 java/io/CharConversionException.java, java/io/DataInput.java,
4449 java/io/DataInputStream.java, java/io/DataOutput.java,
4450 java/io/DataOutputStream.java, java/io/EOFException.java,
4451 java/io/File.java, java/io/FileDescriptor.java,
4452 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4453 java/io/FileOutputStream.java, java/io/FileReader.java,
4454 java/io/FileWriter.java, java/io/FilenameFilter.java,
4455 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4456 java/io/FilterReader.java, java/io/FilterWriter.java,
4457 java/io/IOException.java, java/io/InputStream.java,
4458 java/io/InputStreamReader.java,
4459 java/io/InterruptedIOException.java,
4460 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4461 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4462 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4463 java/io/PipedReader.java, java/io/PipedWriter.java,
4464 java/io/PrintStream.java, java/io/PrintWriter.java,
4465 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4466 java/io/RandomAccessFile.java, java/io/Reader.java,
4467 java/io/SequenceInputStream.java, java/io/Serializable.java,
4468 java/io/StreamTokenizer.java,
4469 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4470 java/io/StringWriter.java, java/io/SyncFailedException.java,
4471 java/io/UTFDataFormatException.java,
4472 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4473 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4474 java/io/natFileDescriptorPosix.cc,
4475 java/lang/AbstractMethodError.java,
4476 java/lang/ArithmeticException.java,
4477 java/lang/ArrayIndexOutOfBoundsException.java,
4478 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4479 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4480 java/lang/Class.java, java/lang/ClassCastException.java,
4481 java/lang/ClassCircularityError.java,
4482 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4483 java/lang/ClassNotFoundException.java,
4484 java/lang/CloneNotSupportedException.java,
4485 java/lang/Cloneable.java, java/lang/Comparable.java,
4486 java/lang/Compiler.java, java/lang/Double.java,
4487 java/lang/Error.java, java/lang/Exception.java,
4488 java/lang/ExceptionInInitializerError.java,
4489 java/lang/FirstThread.java, java/lang/Float.java,
4490 java/lang/IllegalAccessError.java,
4491 java/lang/IllegalAccessException.java,
4492 java/lang/IllegalArgumentException.java,
4493 java/lang/IllegalMonitorStateException.java,
4494 java/lang/IllegalStateException.java,
4495 java/lang/IllegalThreadStateException.java,
4496 java/lang/IncompatibleClassChangeError.java,
4497 java/lang/IndexOutOfBoundsException.java,
4498 java/lang/InstantiationError.java,
4499 java/lang/InstantiationException.java, java/lang/Integer.java,
4500 java/lang/InternalError.java, java/lang/InterruptedException.java,
4501 java/lang/LinkageError.java, java/lang/Long.java,
4502 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4503 java/lang/NoClassDefFoundError.java,
4504 java/lang/NoSuchFieldError.java,
4505 java/lang/NoSuchFieldException.java,
4506 java/lang/NoSuchMethodError.java,
4507 java/lang/NoSuchMethodException.java,
4508 java/lang/NullPointerException.java, java/lang/Number.java,
4509 java/lang/NumberFormatException.java, java/lang/Object.h,
4510 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4511 java/lang/Process.java, java/lang/Runnable.java,
4512 java/lang/Runtime.java, java/lang/RuntimeException.java,
4513 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4514 java/lang/Short.java, java/lang/StackOverflowError.java,
4515 java/lang/String.java, java/lang/StringBuffer.java,
4516 java/lang/StringIndexOutOfBoundsException.java,
4517 java/lang/System.java, java/lang/Thread.java,
4518 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4519 java/lang/Throwable.java, java/lang/UnknownError.java,
4520 java/lang/UnsatisfiedLinkError.java,
4521 java/lang/UnsupportedOperationException.java,
4522 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4523 java/lang/Void.java, java/lang/natCharacter.cc,
4524 java/lang/natClass.cc, java/lang/natDouble.cc,
4525 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4526 java/lang/natMath.cc, java/lang/natObject.cc,
4527 java/lang/natRuntime.cc, java/lang/natString.cc,
4528 java/lang/natSystem.cc, java/lang/natThread.cc,
4529 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4530 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4531 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4532 java/text/FieldPosition.java, java/text/Format.java,
4533 java/text/NumberFormat.java, java/text/ParseException.java,
4534 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4535 java/util/BitSet.java, java/util/Calendar.java,
4536 java/util/ConcurrentModificationException.java,
4537 java/util/Date.java, java/util/Dictionary.java,
4538 java/util/EmptyStackException.java, java/util/Enumeration.java,
4539 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4540 java/util/Locale.java, java/util/MissingResourceException.java,
4541 java/util/NoSuchElementException.java, java/util/Observable.java,
4542 java/util/Observer.java, java/util/Properties.java,
4543 java/util/Random.java, java/util/SimpleTimeZone.java,
4544 java/util/Stack.java, java/util/StringTokenizer.java,
4545 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4546 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4549 * exception.cc: Include eh-common.h instead of duplicating
4552 1998-11-23 Tom Tromey <tromey@cygnus.com>
4554 * configure.host: Don't add `-O2' to libjava_flags. Only add
4555 `-Os' to libjava_flags once.
4557 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4559 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4560 * Makefile.in: likewise
4561 * acconfig.h: add ECOS conditional for configure.h
4562 * config.h.in: likewise
4563 * configure: add test for --with-ecos
4564 * configure.in: likewise
4565 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4566 rename call to avoid name clash.
4567 * java/lang/natSystem.cc: add eCos clock support.
4568 * java/util/natGregorianCalendar.cc: add eCos support.
4570 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4572 * Makefile.am, Makefile.in, configure.host: tx39 build option
4575 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4577 * java/io/BufferedReader.java: Added more comments for clarity.
4578 (mark): Used more mnemonic name for local var extraBuffSpace.
4580 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4581 confusion with private method of same name in superclass.
4582 (skipRedundantLF): Set fields in special case to avoid infinite
4583 recursion. Check if markPos has been invalidated in special case.
4584 (readLine): Rewritten to use readLine method of superclass.
4585 (skip): Incorporated code from lineEnd.
4587 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4589 * java/io/BufferedReader.java (readLine): New method.
4590 (lineEnd): new private method.
4591 (mark): Track special case for readLine of getting '\r' at the
4598 * java/io/InputStreamReader.java (read): Return number chars skipped
4599 rather than requested.
4601 * java/lang/StringBuffer.java (append): Update count and differentiate
4602 between field and local variable.
4604 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4605 seconds. Deal with military style time.
4606 (parse): Consistently treat all timezones in minutes until final
4607 calculation. Flag as non-local timezone. Return value in milliseconds.
4608 (setTime): Adjust for year offset from 1900.
4609 (UTC): Adjust for year offset from 1900.
4611 1998-11-17 Tom Tromey <tromey@cygnus.com>
4613 * configure: Rebuilt.
4614 * configure.in: Switch on host, not target.
4616 * Makefile.in: Rebuilt.
4617 * Makefile.am (GCJ_no): New macro.
4618 (GCJ): Use @CANADIAN@.
4619 (GCJH_no): New macro
4620 (GCJH_canadian): New macro.
4621 (GCJH): Use @CANADIAN@.
4622 (ZIP_no): New macro.
4623 (ZIP_canadian): New macro.
4624 (ZIP): Use @CANADIAN@.
4625 * aclocal.m4, configure: Rebuilt.
4626 * configure.in (CANADIAN): Compute and subst.
4628 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4630 * java/io/FileDescriptor.java (finalize): Only close file
4631 descriptor if valid.
4633 1998-11-17 Tom Tromey <tromey@cygnus.com>
4635 * prims.cc (_Jv_InitRuntime): Removed.
4637 1998-11-16 Tom Tromey <tromey@cygnus.com>
4639 * java/io/FileOutputStream.java (close): Only close file
4640 descriptor if valid.
4641 (finalize): New method.
4643 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4644 (_Jv_NewPrimArray): Likewise.
4645 * boehm.cc (_Jv_RegisterFinalizer): Use
4646 GC_REGISTER_FINALIZER_NO_ORDER.
4647 (GC_GENERIC_MALLOC): New define.
4648 (_Jv_AllocObj): Use it.
4649 (_Jv_AllocArray): Likewise.
4650 (_Jv_AllocBytes): Likewise.
4651 (_Jv_MarkObj): Just return if vtbl not set.
4652 (_Jv_MarkArray): Likewise.
4653 (MAYBE_MARK): New macro; use everywhere.
4654 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4656 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4658 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4659 to a jlong before calculation to prevent overflow.
4661 1998-11-16 Tom Tromey <tromey@cygnus.com>
4663 * Makefile.in: Rebuilt.
4664 * Makefile.am (nat_headers): Fixed typo.
4666 1998-11-15 Tom Tromey <tromey@cygnus.com>
4668 * java/lang/Class.h (Class::getName): Removed definition.
4669 * Makefile.in: Rebuilt.
4670 * Makefile.am (nat_headers): Added InstantiationException.h,
4671 NoSuchMethodException.h.
4672 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4673 (init_name): New global.
4674 (hackRunInitializers): Use clinit_name.
4675 Include InstantiationException.h, NoSuchMethodException.h.
4676 (newInstance): Do some error checking (but not all). Call
4678 (forName): Throw exception if class not found.
4679 (getName): New method.
4680 (forName): Transform class name from external format to internal
4681 format before lookup.
4683 1998-11-15 Anthony Green <green@cygnus.com>
4685 * java/lang/Class.h (Class::forName): Method is static.
4687 * java/lang/natClass.cc (newInstance): Add simple implementation.
4690 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4692 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4693 int), for compatibility with jc1.
4695 1998-11-14 Tom Tromey <tromey@cygnus.com>
4697 * include/config.h.in: Rebuilt.
4698 * acconfig.h (LINUX_THREADS): New define.
4699 * configure: Rebuilt.
4700 * configure.in: Define LINUX_THREADS if using POSIX threads on
4701 Linux. Look for pthread_mutexattr_setkind_np function.
4702 * posix-threads.cc (throw_cleanup): New function.
4703 (really_start): Push cleanup function.
4704 (_Jv_ThreadCancel): New function.
4705 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4706 (_Jv_ThreadInitData): Set `exception' field in new structure.
4707 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4709 (_Jv_ThreadWait): New function.
4710 (_Jv_InitThreads): Initialize daemon globals.
4711 (FLAG_DAEMON): New macro.
4712 (really_start): Notify daemon_cond when non-daemon thread exits.
4713 Include <java/lang/System.h>.
4714 (struct starter): `object' field now a thread.
4715 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4716 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4717 (_Jv_ThreadWait): Removed definition.
4718 (_Jv_Thread_t): Added `exception' field.
4719 (_Jv_ThreadCancel): Removed definition.
4721 1998-11-13 Tom Tromey <tromey@cygnus.com>
4723 * Makefile.in: Rebuilt.
4724 * Makefile.am (libjava.zip): Compute javac before changing
4727 * Makefile.in: Rebuilt.
4728 * Makefile.am (libjava.zip): Include directory entries.
4730 * Makefile.in: Rebuilt.
4731 * Makefile.am (expanded): New macro.
4734 1998-11-12 Tom Tromey <tromey@cygnus.com>
4736 * prims.cc (clone): New function.
4737 * include/java-array.h (__JArray::clone): Removed definition.
4739 * java/lang/natObject.cc (clone): Don't assert that class is not
4740 an array; array's `clone' method just calls this one.
4742 * Makefile.in: Rebuilt.
4743 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4744 Now creates zip file. Changed all users.
4746 (data_DATA): New macro.
4748 1998-11-11 Tom Tromey <tromey@cygnus.com>
4750 * configure: Rebuilt.
4751 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4753 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4755 * java/io/InputStream.java (reset): Add msg to thrown exception.
4757 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4759 * java/io/LineNumberInputStream.java: Rewritten.
4761 * java/io/StringBufferInputStream.java: Removed extraneous import.
4763 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4765 * java/io/StringBufferInputStream.java: Rewritten.
4767 * java/util/Date.java (parseMonth): Optimize.
4768 (parseDayOfWeek): Created.
4769 (parse): Optimize to use parseDayOfWeek.
4771 1998-11-11 Tom Tromey <tromey@cygnus.com>
4773 * java/lang/StringBuffer.java (append): Handle case where STR is
4776 * include/javaprims.h: Regenerated class declarations.
4778 * configure: Rebuilt.
4779 * configure.in: Added --enable-gcj-classes,
4780 --enable-single-compilation, --enable-source-compilation flags.
4781 * Makefile.in: Rebuilt.
4782 * Makefile.am (java_io_files): New macro.
4783 (java_lang_files): Likewise.
4784 (java_text_files): Likewise.
4785 (java_util_files): Likewise.
4786 (java_files): Use new macros.
4787 (java-io.o): New target.
4788 (java-lang.o): Likewise.
4789 (java-text.o): Likewise.
4790 (java-util.o): Likewise.
4791 (src_io_files): New macro.
4792 (src_lang_files): Likewise.
4793 (src_text_files): Likewise.
4794 (src_util_files): Likewise.
4795 (class_io_files): New macro.
4796 (class_lang_files): Likewise.
4797 (class_text_files): Likewise.
4798 (class_util_files): Likewise.
4799 (class_files): Use new macros.
4800 (javao_files): Define conditionally.
4801 (.java.o): New target.
4802 ($(javao_files)): New target.
4804 (GCJH): Added $(EXEEXT).
4805 (CLASSPATH_ENV): Removed.
4806 (GCJCOMPILE): New macro.
4808 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4810 * java/util/Date.java (parse): Written from scratch.
4812 1998-11-11 Tom Tromey <tromey@cygnus.com>
4814 * java/lang/Throwable.java (toString): Correct sense of test for
4815 determining when to include detail message in result.
4817 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4820 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4822 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4824 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4825 (_Jv_RegisterClass): Use it.
4826 * include/jvm.h (_Jv_RegisterClasses): Declare.
4827 * java/lang/natObject.cc (init): Removed.
4828 (sync_init): Never call _Jv_InitializeSyncMutex.
4829 (_Jv_InitializeSyncMutex): Don't set `init'.
4830 * prims.cc (JvRunMain): Don't run init functions.
4832 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4834 * java/lang/natClass.cc (initializeClass): Set state before
4835 resolving constants.
4837 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4838 (STATE_RESOLVED): New macro.
4839 (initializeClass): Call resolveConstants.
4840 (hackRunInitializers): Don't call resolveConstants.
4841 (_Jv_FindArrayClass): Move short-circuit return for primitive
4842 element types earlier in function.
4844 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4846 * prims.cc (no_memory): New global.
4847 (_Jv_makeUtf8Const): Throw no_memory.
4848 (_Jv_AllocObject): Likewise.
4849 (_Jv_NewObjectArray): Likewise.
4850 (_Jv_NewPrimArray): Likewise.
4851 (JvRunMain): Initialize no_memory.
4853 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4855 * java/io/FileInputStream.java: Corrected date comment.
4856 * java/io/SequenceInputStream.java: Rewritten.
4858 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4860 * java/lang/FirstThread.java (die): New method.
4861 * java/lang/natFirstThread.cc (die): Removed.
4863 (run): Use `DIE', not `die'.
4865 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4867 * java/io/CharArrayReader.java (read): Move check into synchronized
4868 block to prevent a close while in progress.
4871 * java/io/PushbackReader.java (read): Ditto.
4874 * java/io/StringReader.java (mark): Ditto.
4879 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4881 * java/io/PipedInputStream.java: Updated status.
4882 (connect): Added code to prevent infinite recursion and to
4883 differentiate exception causes.
4884 (read): Added code to differentiate exception causes.
4885 (receive): Made exception pass string with the cause.
4887 * java/io/PipedOutputStream.java: Updated status.
4888 (connect): Added code to call connect at the other end of the pipe.
4890 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4892 * java/io/PipedInputStream.java (connect): Throw exception if
4893 already connected to the same output stream.
4894 (read): Do bounds checking first.
4896 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4898 * java/io/PipedInputStream.java: Added private boolean outClosed.
4899 (available): Removed check if output stream is open.
4900 (close): Mark the buffer as empty so available returns 0.
4901 (read): Check if the output stream was closed and then return EOF
4902 when the buffer is empty.
4903 (receive): Mark the output stream as closed when passed a -1.
4905 * java/io/PipedOutputStream.java (close): Notify the input stream
4906 that there's no more data coming.
4907 (connect): Added a FIXME comment to note more coordination needed
4908 with PipedInputStream.
4909 (flush): Added a FIXME comment to mark what this method might do
4912 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4914 * java/io/PipedInputStream.java: Rewritten.
4916 1998-10-30 Tom Tromey <tromey@cygnus.com>
4918 * java/lang/Throwable.java: Rewrote from scratch.
4920 * java/lang/Class.h (Class): Don't mention newMultiArray.
4921 * prims.cc (newMultiArray): Removed.
4922 (_Jv_NewMultiArray): Removed.
4923 (newArray): Removed.
4924 (new_multi_array): New function.
4925 (_Jv_NewMultiArray): Rewrote from scratch.
4927 * include/javaprims.h: Regenerated class declarations.
4928 * classes.pl (scan): Don't declare PrimClass.
4929 * include/cni.h (JvPrimClass): Use new names for classes.
4930 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4931 added _Jv_PrimClass.
4932 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4933 (_Jv_initPrimClass): Removed.
4934 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4935 (_Jv_AllocObject): Added comment.
4936 (_Jv_NewObjectArray): Likewise.
4937 (_Jv_NewPrimArray): Likewise.
4939 1998-10-29 Tom Tromey <tromey@cygnus.com>
4941 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4942 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4944 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4946 * java/lang/natObject.cc (init): New global.
4947 (sync_init): Call _Jv_InitializeSyncMutex if required.
4949 * Makefile.in: Rebuilt.
4950 * Makefile.am (nat_headers): Added ClassLoader.h.
4951 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4952 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4953 internalAddClass, lookupArray no longer friends.
4954 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4955 _Jv_FindArrayClass now friends.
4956 * java/lang/natClass.cc (HASH_LEN): New macro.
4957 (HASH_UTF): Likewise.
4958 (loaded_classes): New global.
4959 (_Jv_FindClass): New function.
4960 (ClassClass): New define.
4961 (_Jv_FindClassInCache): New function.
4962 (_Jv_RegisterClass): Likewise.
4963 (_Jv_NewClass): Likewise.
4965 (ObjectClass): New define.
4966 (CloneableClass): New define.
4967 * prims.cc (_Jv_FindClass): Removed.
4968 (simpleLookupClass): Removed.
4969 (insertClass): Removed.
4970 (CLASSHASHSZ): Removed.
4971 (classPool): Removed.
4972 (_Jv_RegisterClass): Removed.
4973 (internalAddClass): Removed.
4974 (ClassClass): Removed.
4975 (RuntimeClass): Removed.
4976 (lookupArray): Removed.
4977 (CloneableClass): Removed.
4978 (CLASSMAXSIG): Removed.
4979 Rearranged file to group related functions together.
4980 (_Jv_IsInstanceOf): Moved to natClass.cc.
4981 (abort_final): Removed.
4982 Removed some unused includes.
4983 (classFromSig): Removed.
4984 (_Jv_FindClassFromSignature): New function.
4985 (_Jv_initPrimClass): Renamed.
4986 (getClass): Removed.
4988 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4990 * java/io/FileDescriptor.java (finalize): Throws IOException
4991 instead of Throwable.
4993 * java/io/FileInputStream.java: Rewritten.
4995 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4996 at the end of a comment.
4998 1998-10-29 Tom Tromey <tromey@cygnus.com>
5000 * include/javaprims.h: Regenerated class declarations.
5001 * classes.pl (scan): Don't special-case ClassLoader.
5003 * prims.cc (processClass): Removed.
5004 (_Jv_InitClass): Removed.
5005 Removed all CSTATE_ macros.
5006 (resolveConstants): Removed.
5008 (_Jv_NewMultiArray): Cleaned up.
5009 * Makefile.in: Rebuilt.
5010 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
5011 * java/lang/Class.h (Class): Declare new methods. processClass no
5013 * java/lang/Class.java (hackTrampoline): New method.
5014 (initializeClass): Declare.
5015 (hackRunInitializers): Declare.
5016 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
5017 (initializeClass): New method.
5018 (hackRunInitializers): New method.
5019 (init_name, void_signature): Moved from prims.cc.
5020 (_Jv_InitClass): New function.
5021 (isAssignableFrom): Don't call processClass.
5022 (STATE_NOTHING): New macro.
5023 (resolveConstants): New function.
5025 (ErrorClass): New define.
5027 * java/lang/Class.java (getClassLoader): Declare.
5028 * java/lang/ClassLoader.java: Rewrote from scratch.
5030 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
5031 AbstractMethodError.h, IllegalAccessError.h,
5032 NoClassDefFoundError.h.
5033 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
5034 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
5035 longer static. Changed return type.
5036 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
5037 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
5038 * prims.cc (findMethodLocal): Removed.
5039 (processClass): Use _Jv_GetMethodLocal.
5041 1998-10-28 Tom Tromey <tromey@cygnus.com>
5043 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
5044 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
5046 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
5047 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
5049 * include/jni.h: Added copyright header.
5050 * include/javaprims.h: Added copyright header.
5051 * include/java-field.h: Added copyright header.
5052 * include/java-array.h: Added copyright header.
5053 * include/cni.h: Added copyright header.
5055 * include/javaprims.h: Regenerated class declarations using
5056 classes.pl; now they are complete.
5057 * classes.pl: New file.
5059 * java/lang/natMath.cc: Include <config.h>.
5060 * java/lang/reflect/natField.cc: Include <config.h>.
5061 * java/util/NativeUtil.java: Removed.
5062 * Makefile.in: Rebuilt.
5063 * Makefile.am (nat_headers): Added Math.h.
5064 * java/lang/Math.h: Removed.
5065 * java/util/natGregorianCalendar.cc: Added copyright header.
5067 * java/lang/natFloat.cc: Added copyright header.
5068 * java/lang/Byte.java: Added copyright header.
5069 * java/lang/Void.java: Added copyright header.
5070 * java/lang/Short.java: Added copyright header.
5072 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5074 * include/javaprims.h (java::io): Added bunch of missing classes.
5076 * java/io/DataInputStream.java (readLine): Added a special case
5077 for handling BufferedInputStream data to reduce the likelihood
5078 of a pushback error.
5079 (skipBytes): Added code to handle negative number of skip bytes.
5081 * java/io/StreamTokenizer.java: Rewritten.
5083 1998-10-28 Tom Tromey <tromey@cygnus.com>
5085 * java/util/natGregorianCalendar.cc (computeFields): Call
5086 getRawOffset as a method.
5088 * include/javaprims.h (java::io): Added FilterOutputStream.
5089 * Makefile.in: Rebuilt.
5090 * Makefile.am (nat_headers): Added PrintStream.h,
5091 FilterOutputStream.h.
5092 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5094 (die): New function.
5095 (run): Die if `main' not found, is not public, or is not static.
5097 * boehm.cc (_Jv_MarkObj): Use new field names.
5098 * include/java-field.h (JvGetFirstInstanceField): Use new field
5100 (JvNumInstanceFields): Likewise.
5101 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5102 (getInterfaces): Likewise.
5103 * prims.cc (CLASS_CONSTANTS): Removed.
5104 (CLASS_CONST_SIZE): Likewise.
5105 (CLASS_CONST_TAG): Likewise.
5106 (CLASS_CONST_DATA): Likewise.
5107 (CLASS_CONST_UTF8): Likewise.
5108 (WORD2UTF): Likewise.
5109 (CLASS_CLASS): Likewise.
5110 (CLASS_PRIM_SIG): Likewise.
5111 (CLASS_ARRAY_CACHE): Likewise.
5112 (HASH_CHARS): Likewise.
5113 (hashClassName): Likewise.
5114 Many changes to use new field names.
5115 * java/lang/Class.h (Class): Renamed fields to track compiler.
5117 1998-10-27 Tom Tromey <tromey@cygnus.com>
5119 * java/lang/natClass.cc: Use #pragma implementation.
5120 (getComponentType): Moved into header.
5121 (getModifiers): Likewise.
5122 (getName): Likewise.
5123 (getSuperclass): Likewise.
5124 (isArray): Likewise.
5125 (isPrimitive): Likewise.
5126 * include/jvm.h (_Jv_FindClass): Declare.
5127 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5128 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5129 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5130 * java/lang/Class.h: Rewrote from scratch.
5131 * prims.cc: Many changes to work with new Class.h.
5132 * include/java-field.h (CLASS_FIELDS): Removed.
5133 (CLASS_SFIELDS): Likewise.
5134 (CLASS_IFIELDS): Likewise.
5135 (CLASS_NFIELDS): Likewise.
5136 (CLASS_NIFIELDS): Likewise.
5137 (CLASS_NSFIELDS): Likewise.
5138 (CLASS_FSIZE): Likewise.
5139 (JvGetFirstInstanceField): Rewrote.
5140 (JvNumInstanceFields): Likewise.
5142 * java/lang/Object.h: Added copyright comment.
5144 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5146 * java/text: New package directory.
5147 * java/text/FieldPosition.java: New class.
5148 * java/text/ParsePosition.java: New class.
5149 * java/text/ParseException.java: New Exception class.
5150 * java/text/Format.java: New class.
5151 * java/text/NumberFormat.java: New (empty placeholder) class.
5152 * java/text/DateFormatSymbols.java: New class (no Locales support).
5153 * java/text/DateFormat.java: New Format class (incomplete).
5154 * java/text/SimpleDateFormat.java: New DateFormat class.
5156 * include/javaprims.h (java::test): Added new package and classes.
5157 * java/util/Calendar.java (clone): New method.
5158 * java/util/Date.java (toString): Added non-native implementation.
5159 (parse): Made public instead of synchronized.
5160 * java/util/natDate.cc (toString): Removed.
5161 * java/util/natGregorianCalendar.cc (computeFields):
5162 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5164 1998-10-27 Tom Tromey <tromey@cygnus.com>
5166 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5168 * prims.cc (lookupArray): Added explanatory comment.
5169 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5170 class. Mark the class of each object.
5171 (_Jv_MarkArray): Mark the object's class.
5173 * configure: Rebuilt.
5174 * configure.in: Create java-gc.h.
5175 * include/boehm-gc.h: New file.
5176 * include/no-gc.h: New file.
5177 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5179 * java/lang/Object.h: Include java-gc.h.
5180 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5181 friends, if defined.
5182 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5184 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5186 1998-10-26 Tom Tromey <tromey@cygnus.com>
5188 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5189 paragraph separators, not numbers.
5191 * java/io/Writer.java (write): Removed write(char) to avoid
5193 * java/util/Properties.java: Rewrote from scratch.
5194 * include/javaprims.h (java::io): Added PrintWriter,
5195 BufferedWriter, PushbackReader.
5197 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5199 * java/lang/System.java: exit() is a static method.
5201 1998-10-26 Tom Tromey <tromey@cygnus.com>
5203 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5205 (_Jv_NewStringUtf8Const): Likewise.
5206 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5207 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5209 * java/lang/Object.h (Object): Add mark_array as friend function.
5210 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5211 _Jv_AllocBytes, to ensure that header is marked.
5212 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5214 (mark_array): Push sync_info field for array.
5216 1998-10-24 Tom Tromey <tromey@cygnus.com>
5218 * java/lang/String.java (String): Updated for StringBuffer
5220 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5222 * java/lang/StringBuffer.java: Renamed fields to conform to
5223 serialization spec: buffer->value, next->count, copy->shared.
5225 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5227 * java/util/TimeZone.java: New class.
5228 * java/util/SimpleTimeZone.java: New class.
5229 * java/util/Locale.java: New file.
5230 * java/util/Calendar.java: Make almost complete.
5231 * java/util/GregorianCalendar.java
5232 * java/util/natGregorianCalendar.cc: New file.
5233 * java/util/Date.java: Re-written from scratch.
5234 * java/util/natDate.cc (setTime): Removed - no longer native.
5235 * include/javaprims.h (java::util): Add new classes.
5236 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5237 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5239 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5241 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5242 returning it as a jint.
5244 1998-10-23 Tom Tromey <tromey@cygnus.com>
5246 * prims.cc (arg_vec, main_group, main_thread): New globals.
5247 (JvRunMain): Use them.
5249 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5251 * java/io/DataInputStream.java: Rewritten.
5253 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5254 tertiary bytes with 0x80 per spec.
5256 1998-10-23 Tom Tromey <tromey@cygnus.com>
5258 * java/lang/String.java (init): Changed name of `copy' argument.
5259 * java/lang/natString.cc (init): Inverted sense of `copy'
5262 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5263 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5264 * boehm.cc (ObjectClass): New define.
5265 (ClassClass): Likewise.
5266 (mark_obj): Special-case Object and Class.
5268 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5270 * java/util/BitSet.java: Rewrote from scratch.
5272 * prims.cc (lookupArray): Removed useless cast.
5274 * java/lang/natObject.cc: Use `#pragma implementation'.
5276 * java/lang/String.java (init): Added `copy' argument.
5277 (String): Look in StringBuffer to find char array.
5278 * java/lang/natString.cc (init): Added `copy' argument.
5279 * java/lang/StringBuffer.java: Rewrote from scratch.
5281 * java/lang/Compiler.java: Rewrote from scratch.
5282 * java/lang/Throwable.java: Don't use NativeLang.
5283 * include/javaprims.h (java::lang): Don't mention NativeLang.
5284 * java/lang/Process.java: Rewrote from scratch.
5285 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5287 (currentClassLoader): Likewise.
5288 (currentLoadedClass): Likewise.
5289 * java/lang/natClass.cc (getClassLoader): Commented out.
5290 * java/lang/Class.java (getClassLoader): Commented out.
5291 * java/lang/Compiler.java: Removed.
5292 * java/lang/NativeLang.java: Removed.
5294 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5295 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5296 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5297 (_Jv_hashUtf8String): Now static.
5298 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5299 name of return type.
5301 * java/lang/Class.h (Class): Declare checkMemberAccess.
5302 * Makefile.in: Rebuilt.
5303 * Makefile.am (nat_headers): Added Member.h.
5304 * java/lang/natClass.cc: Include Member.h.
5305 (getDeclaredClasses): Call checkMemberAccess.
5306 * java/lang/Class.java (checkMemberAccess): Call
5307 SecurityManager.checkMemberAccess.
5309 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5311 * java/lang/SecurityManager.java: Rewritten.
5313 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5315 * java/applet/Applet.java, java/applet/AppletContext.java,
5316 java/applet/AppletStub.java, java/applet/AudioClip.java,
5317 java/awt/AWTError.java, java/awt/AWTException.java,
5318 java/awt/BorderLayout.java, java/awt/Button.java,
5319 java/awt/Canvas.java, java/awt/CardLayout.java,
5320 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5321 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5322 java/awt/Color.java, java/awt/Component.java,
5323 java/awt/Container.java, java/awt/Dialog.java,
5324 java/awt/Dimension.java, java/awt/Event.java,
5325 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5326 java/awt/Font.java, java/awt/FontMetrics.java,
5327 java/awt/Frame.java, java/awt/Graphics.java,
5328 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5329 java/awt/GridLayout.java, java/awt/Image.java,
5330 java/awt/Insets.java, java/awt/Label.java,
5331 java/awt/LayoutManager.java, java/awt/List.java,
5332 java/awt/MediaTracker.java, java/awt/Menu.java,
5333 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5334 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5335 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5336 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5337 java/awt/TextArea.java, java/awt/TextComponent.java,
5338 java/awt/TextField.java, java/awt/Toolkit.java,
5339 java/awt/Window.java, java/awt/image/ColorModel.java,
5340 java/awt/image/CropImageFilter.java,
5341 java/awt/image/DirectColorModel.java,
5342 java/awt/image/FilteredImageSource.java,
5343 java/awt/image/ImageConsumer.java,
5344 java/awt/image/ImageFilter.java,
5345 java/awt/image/ImageObserver.java,
5346 java/awt/image/ImageProducer.java,
5347 java/awt/image/IndexColorModel.java,
5348 java/awt/image/MemoryImageSource.java,
5349 java/awt/image/PixelGrabber.java,
5350 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5351 java/awt/peer/CanvasPeer.java,
5352 java/awt/peer/CheckboxMenuItemPeer.java,
5353 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5354 java/awt/peer/ComponentPeer.java,
5355 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5356 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5357 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5358 java/awt/peer/MenuBarPeer.java,
5359 java/awt/peer/MenuComponentPeer.java,
5360 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5361 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5362 java/awt/peer/TextAreaPeer.java,
5363 java/awt/peer/TextComponentPeer.java,
5364 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5365 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5366 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5367 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5368 java/net/MalformedURLException.java, java/net/NativeNet.java,
5369 java/net/ProtocolException.java, java/net/ServerSocket.java,
5370 java/net/Socket.java, java/net/SocketException.java,
5371 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5372 java/net/URL.java, java/net/URLConnection.java,
5373 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5374 java/net/URLStreamHandlerFactory.java,
5375 java/net/UnknownHostException.java,
5376 java/net/UnknownServiceException.java: Removed.
5378 1998-10-22 Tom Tromey <tromey@cygnus.com>
5380 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5381 finalizer is not Object.finalize.
5382 (internalAddClass): Don't set `final' member of class.
5383 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5384 other places that know about finalize() location.
5385 * java/lang/Class.h (Class): Removed `final' field.
5387 * aclocal.m4, configure: Rebuilt.
5388 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5389 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5391 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5392 * Makefile.in: Rebuilt.
5393 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5395 1998-10-21 Tom Tromey <tromey@cygnus.com>
5397 * java/lang/Object.java (finalize): Move to be first method in
5400 * configure: Rebuilt.
5401 * configure.in (GCINCS): Include contents of boehm-cflags file.
5403 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5405 * java/lang/ArrayIndexOutOfBoundsException.java
5406 (ArrayIndexOutOfBoundsException): Fixed string literal.
5407 * java/lang/StringIndexOutOfBoundsException.java
5408 (StringIndexOutOfBoundsException): Fixed string literal.
5410 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5412 * natFileDescriptorEcos.cc added.
5413 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5415 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5417 * acconfig.h: test for __int32_t and __uint32_t added.
5418 * include/config.h.in: test for __int32_t and __uint32_t added.
5419 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5420 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5421 * configure.in: test for __int32_t and __uint32_t added.
5422 * configure: test for __int32_t and __uint32_t added.
5424 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5426 * configure.in: Test for --enable ecos and link
5427 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5428 natFileDescriptorPosix.cc
5430 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5432 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5434 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5437 * java/io/CharArrayReader.java (close): Synchronize on lock
5438 object per Reader contract.
5439 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5440 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5441 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5442 Ensure that arg passed in isn't negative.
5444 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5445 constructing the superclass.
5447 * java/io/PushbackReader.java (close): Synchronize on lock
5448 object per Reader contract.
5449 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5450 (ready): Synchronize on lock obj. Throw IOException if reader
5452 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5453 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5454 Ensure that arg passed in isn't negative.
5455 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5457 * java/io/StringReader.java: Created.
5459 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5461 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5463 (read): Removed synchronized modifier to match JCL.
5464 (reset): Removed synchronized modifier to match JCL.
5465 (skip): Removed synchronized modifier to match JCL.
5467 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5469 * java/io/PushbackReader.java (PushbackReader): Made
5470 constructors public.
5472 1998-10-17 Tom Tromey <tromey@cygnus.com>
5474 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5475 constructors public.
5477 1998-10-16 Anthony Green <green@cygnus.com>
5479 * aclocal.m4, configure: Rebuilt.
5480 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5482 * configure.host: Rewrote.
5483 * Makefile.in: Rebuilt.
5484 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5485 (AM_CFLAGS): New macro.
5486 ($(c_files)): Use COMPILE macro.
5487 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5488 automake problem(s).
5490 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5492 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5494 * java/io/CharArrayReader.java: Created.
5496 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5498 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5499 size check to allow 0 per JCL.
5501 * java/io/PushbackReader.java: Created.
5503 1998-10-16 Tom Tromey <tromey@cygnus.com>
5505 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5506 <sys/time.h> includes.
5507 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5508 * include/no-threads.h: Conditionalize <unistd.h> include on
5511 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5513 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5516 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5518 * java/io/FilterReader.java: Created.
5520 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5522 * java/io/PushbackInputStream.java: Rewritten.
5524 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5525 that size passed to constructor is legal.
5526 (read): Check that args passed in are legal.
5527 (skip): Rewritten to get rid of the temporary buffer.
5528 (refill): Added marklimit check to grow the buffer.
5530 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5532 (bytesAvail): Removed.
5533 (read): Changed bytesAvail to Math.min.
5534 (skip): Changed bytesAvail to Math.min.
5536 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5537 from the throws clause.
5538 (skip): Rewritten to use a temporary buffer.
5540 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5542 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5545 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5547 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5548 to write the double one word at a time.
5550 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5552 * java/io/BufferedInputStream.java: Rewritten.
5554 1998-10-12 Tom Tromey <tromey@cygnus.com>
5556 * jni.cc: Include config.h and stddef.h.
5558 * java/lang/Class.h (_dispatchTable): Removed again.
5559 Removed all ACC_* defines again.
5561 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5563 * Makefile.am (nat_files): Add netField.o.
5564 (libjava_a_SOURCES): Add jni.cc.
5565 (java/lang/reflect/Field.h): New rule.
5566 * Makefile.in: Re-generated.
5567 * include/javaprims.h: Add some extra class and typedefs.
5568 * include/jni.h: New file.
5571 * include/java-field.h: New file.
5572 * include/jvm.h: #include <java-field.h>.
5573 * boehm.cc: #include <java-field.h>.
5574 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5575 * java/lang/reflect/Member.java: New class.
5576 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5577 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5579 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5581 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5582 testsuite/Makefile.in: Rebuilt.
5583 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5584 * configure.host: Created.
5586 1998-10-10 Tom Tromey <tromey@cygnus.com>
5588 * java/lang/natObject.cc (sync_init): Always allocate a new
5591 1998-10-09 Tom Tromey <tromey@cygnus.com>
5593 * java/io/ByteArrayInputStream.java (mark): Renamed from
5596 * java/io/FileOutputStream.java (finalize): Removed.
5597 * java/io/FileDescriptor.java (finalize): New method.
5599 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5601 * ByteArrayInputStream.java: Corrected status comment.
5603 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5605 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5607 1998-10-08 Tom Tromey <tromey@cygnus.com>
5609 * prims.cc (lookupArray): Use static array to initialize list of
5612 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5614 * prims.cc (lookupArray): Initialize the msize for new
5617 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5619 * configure: Rebuilt.
5620 * configure.in: Check for fsync and sleep.
5621 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5623 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5624 HAVE_SLEEP. Include config.h.
5626 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5627 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5630 1998-10-08 Tom Tromey <tromey@cygnus.com>
5632 * java/io/natFile.cc: Don't include SecurityManager.h.
5633 (performList): Renamed.
5634 (performMkdir): Likewise.
5635 (performRenameTo): Likewise.
5636 (performDelete): Likewise.
5638 * java/io/File.java (performDelete): Renamed from natDelete.
5639 (list): Now written in Java.
5640 (performList): New method.
5641 (performMkdir): New method.
5642 (mkdir): Now written in Java.
5643 (performRenameTo): New method.
5644 (renameTo): Now written in Java.
5646 1998-10-06 Tom Tromey <tromey@cygnus.com>
5648 * Makefile.in: Rebuilt.
5649 * Makefile.am (ETAGS_ARGS): New macro.
5650 (TAGS_DEPENDENCIES): Likewise.
5652 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5654 * Makefile.in: Rebuilt.
5655 * Makefile.am: Use -classpath option with javac.
5657 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5659 * java/io/FileOutputStream.java (finalize): Call
5662 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5664 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5666 * java/lang/mprec.c: Ditto.
5668 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5671 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5673 * java/io/InputStream.java (skip): Make local var i a long.
5675 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5677 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5678 * prims.cc (lookupArray): Use memcpy, not memmove.
5679 * include/config.h.in: Rebuilt.
5680 * acconfig.h (HAVE_MEMCPY): Added.
5681 * configure: Rebuilt.
5682 * configure.in: Check for memcpy again.
5684 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5685 String.compareTo, not ==.
5687 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5688 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5689 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5690 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5691 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5692 into new array's dtable.
5693 (_Jv_AllocObject): Use _Jv_DispatchTable.
5694 (_Jv_NewPrimArray): Likewise.
5695 (_Jv_NewObjectArray): Likewise.
5697 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5699 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5700 offending index value.
5701 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5703 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5704 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5706 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5708 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5710 * java/io/OutputStream.java (write): Use off and len parameters to
5711 output partial byte array.
5713 * java/io/BufferedReader.java, java/io/FileReader.java,
5714 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5715 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5716 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5717 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5719 * include/javaprims.h (java::lang): Added
5720 ExceptionInInitializerError, IllegalStateException,
5721 NoSuchFieldException, and UnsupportedOperationException.
5723 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5725 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5728 * include/java-array.h (__JArray): Added clone method.
5729 * prims.cc (CloneableClass): New define.
5730 (lookupArray): Initialize array class to indicate that it
5731 implements Cloneable.
5733 * java/lang/Class.h: Removed all ACC_* defines.
5734 * prims.cc: Include Modifier.h.
5735 (_Jv_LookupInterfaceMethod): Use methods in
5736 java.lang.reflect.Modifier, not ACC_ defines.
5738 * java/lang/Class.h (Class): Declare getClasses,
5739 getDeclaredClasses, getDeclaringClass, getModifiers,
5740 * java/lang/Class.java: Rewrote from scratch.
5742 * include/javaprims.h (java::lang): Added reflect and
5744 * Makefile.in: Rebuilt.
5745 * Makefile.am (nat_headers): Added Modifier.h.
5747 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5750 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5752 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5753 instead of test and abort.
5755 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5756 remove compiler warning.
5758 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5760 * java/lang/natDouble.cc: zero terminate string.
5761 * strtod.c: Set errno if no digits are found in fraction.
5763 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5765 * java/lang/reflect/Modifier.java: New file.
5767 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5768 * java/lang/VerifyError.java: Rewrote from scratch.
5769 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5770 * java/lang/UnknownError.java: Rewrote from scratch.
5771 * java/lang/StackOverflowError.java: Rewrote from scratch.
5772 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5773 * java/lang/InternalError.java: Rewrote from scratch.
5774 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5775 * java/lang/ExceptionInInitializerError.java: New file.
5776 * java/lang/Error.java: Rewrote from scratch.
5777 * java/lang/ClassFormatError.java: Rewrote from scratch.
5778 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5779 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5780 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5781 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5782 * java/lang/LinkageError.java: Rewrote from scratch.
5783 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5785 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5787 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5788 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5790 * include/cni.h (JvAllocObject): Moved from prims.cc.
5792 * prims.cc (JvAllocObject): Moved to cni.h.
5793 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5794 (finalize_name): Removed.
5796 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5798 * java/lang/Class.h (Class): Added size() method.
5799 * prims.cc (_Jv_MonitorEnter): Removed.
5800 (_Jv_MonitorExit): Removed.
5801 * java/lang/Object.h (JvSyncInfo): Removed.
5802 * Makefile.in: Rebuilt.
5803 * Makefile.am (nat_headers): Added Cloneable.h,
5804 CloneNotSupportedException.h.
5805 * java/lang/Object.h: Rewrote.
5806 * java/lang/natObject.cc: Rewrote from scratch.
5807 * java/lang/Object.java: Rewrote from scratch.
5809 * java/io/natFile.cc: Conditionally include <dirent.h>.
5810 (list): If no <dirent.h>, always return NULL.
5811 * configure: Rebuilt.
5812 * configure.in: Check for dirent.h.
5814 * prims.cc (lookupArray): Don't use sprintf.
5816 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5823 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5824 name conflict with method.
5826 * include/javaprims.h (java::util): Added HashtableEntry.
5828 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5830 * java/util/Hashtable.java: Rewritten.
5832 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5834 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5838 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5841 * posix-threads.cc (_Jv_CondWait): Now returns int.
5842 * include/javaprims.h (java::lang): Added
5843 IllegalMonitorStateException.
5844 * Makefile.in: Rebuilt.
5845 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5846 * include/no-threads.h (_Jv_CondDestroy): Removed.
5847 (_Jv_MutexDestroy): Removed.
5848 (_Jv_CondWait): Now returns int.
5849 (_Jv_CondNotify): Likewise. Added mutex argument.
5850 (_Jv_CondNotifyAll): Likewise.
5851 (_Jv_MutexLock): Always succeed.
5852 (_Jv_MutexUnlock): Likewise.
5853 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5854 (_Jv_HaveMutexDestroy): Define.
5855 (_Jv_CondNotify): Now returns int. Added mutex argument.
5856 (_Jv_CondNotifyAll): Likewise.
5857 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5858 (_Jv_MutexDestroy): Removed.
5859 (_Jv_CondWait): Now returns int.
5860 (_Jv_CondNotify): Likewise. Added mutex argument.
5861 (_Jv_CondNotifyAll): Likewise.
5862 * java/lang/natObject.cc (finalize_sync_info): New function.
5863 (init_mutex): Initialize `init' and register finalizer if
5866 (init_mutex): Use it.
5868 (notifyAll): Use it.
5870 (notify): Throw IllegalMonitorStateException on failure.
5871 (notifyAll): Likewise.
5872 (wait): Likewise. Also, throw InterruptedException if
5874 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5875 InterruptedException.h, IllegalArgumentException.h.
5876 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5878 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5879 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5880 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5881 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5882 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5883 * quick-threads.cc: Renamed all `JvPriv' functions.
5884 * prims.cc: Renamed all `JvPriv' functions.
5885 * posix-threads.cc: Renamed all `JvPriv' functions.
5886 * nogc.cc: Renamed all `JvPriv' functions.
5887 * no-threads.cc: Renamed all `JvPriv' functions.
5888 * boehm.cc: Renamed all `JvPriv' functions.
5889 * include/quick-threads.h: Renamed all `JvPriv' functions.
5890 * include/posix-threads.h: Renamed all `JvPriv' functions.
5891 * include/no-threads.h: Renamed all `JvPriv' functions.
5892 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5894 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5896 (JvPrivCondNotify): Do nothing.
5897 (JvPrivCondNotifyAll): Do nothing.
5899 * prims.cc (processClass): Handle case where state is
5902 * java/lang/natFirstThread.cc: Include <stdlib.h>
5904 * configure: Rebuilt.
5905 * configure.in: Fixed sense of --enable-libjava-debug.
5907 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5908 it can be used afterward by the assertion.
5910 * configure: Rebuilt.
5911 * configure.in: When cross-compiling, assume alloca.
5913 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5914 __builtin_alloca (autoconf docs are wrong here).
5916 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5918 (available): Use `FD_ZERO' (typo fix).
5920 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5922 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5923 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5925 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5926 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5929 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5931 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5933 * java/lang/natDouble.cc: Declare alloca safely.
5935 * configure, include/config.h.in: Rebuilt.
5936 * configure.in: Add alloca check.
5938 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5940 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5941 condition while calling notify.
5942 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5943 (interrupt): Hold mutex for interrupt condition while calling
5946 * java/lang/natString.cc (init): Allocate and try to read `count'
5947 characters, not `count - offset' characters.
5949 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5950 Correctly compute `count'.
5952 * java/lang/Boolean.java (getBoolean): Return false if property
5955 * java/lang/System.java (setProperties): Set prop_init.
5957 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5959 * java/io/PrintStream.java (println): Use line.separator, not
5961 * java/lang/System.java (out, err): Make both autoflush streams.
5962 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5964 * include/config.h.in: Rebuilt.
5965 * acconfig.h (HAVE_MEMCPY): Removed.
5966 * configure: Rebuilt.
5967 * configure.in: Never define HAVE_MEMCPY.
5969 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5971 (_Jv_AllocString): Use JvAllocObject again.
5972 * java/lang/Class.h (thread): New field.
5973 (_Jv_AllocString): No longer a friend.
5974 * prims.cc (processClass): Removed dead code. Changed to more
5975 closely follow the Java Language Specification.
5976 (processClass): Return early if already at the right state.
5978 * prims.cc (JvNewStringUTF): Removed.
5979 * include/cni.h (JvNewStringUTF): New function.
5980 (_Jv_NewStringUTF): Declare as `extern "C"'.
5981 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5983 * java/lang/natDouble.cc: Added copyright info and header
5984 comment. Include <stdlib.h>.
5985 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5986 bytes as are chars in string.
5988 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5990 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5994 * java/lang/System.java (init_properties): Now native.
5995 * java/lang/natSystem.cc (init_properties): New method.
5996 Include java/util/Properties.h.
5998 * Makefile.in: Rebuilt.
5999 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
6000 OutputStreamWriter.h, ByteArrayInputStream.h,
6001 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
6002 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
6003 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
6004 Properties.h, Hashtable.h, Dictionary.h.
6007 * include/javaprims.h (java::io): Added Reader, Writer,
6008 InputStreamReader, OutputStreamWriter,
6009 UnsupportedEncodingException, ByteArrayInputStream,
6010 ByteArrayOutputStream, EOFException, SyncFailedException,
6011 PushbackInputStream.
6012 (java::lang): Added Cloneable.
6013 (java::util): Added NoSuchElementException, VectorEnumeration,
6014 Dictionary, HashtableEnumeration, PropertiesEnumeration.
6016 * java/io/PipedReader.java: New file.
6018 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
6020 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
6023 * java/io/io-defs.h: Removed.
6025 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
6026 (FileInputStream): Use new constructor. Can throw IOException.
6028 * java/lang/System.java (getProperty): Don't throw
6029 NullPointerException.
6031 * java/io/RandomAccessFile.java: Rewrote from scratch.
6033 * java/io/natFileDescriptor.cc: Include EOFException.h.
6035 (length): New method.
6036 (getFilePointer): New method.
6038 (available): New method.
6039 * java/io/FileDescriptor.java (SET, CUR): New constants.
6040 (seek, length, getFilePointer, read, available): New decls.
6042 * java/io/PipedWriter.java: New file.
6043 * java/io/StringWriter.java: New file.
6044 * java/io/CharArrayWriter.java: New file.
6045 * java/io/CharConversionException.java: New file.
6046 * java/io/BufferedWriter.java: New file.
6047 * java/io/FilterWriter.java: New file.
6048 * java/io/FileWriter.java: New file.
6050 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6051 OutputStreamWriter.h, NullPointerException.h,
6052 ByteArrayInputStream.h, InputStreamReader.h.
6053 (getBytes): New method.
6054 (init): Throw NullPointerException.
6055 (init): New function.
6056 * java/lang/String.java (getBytes): Added missing decl.
6057 (getBytes): New method.
6058 (String): Added byte[]-based constructors.
6059 (copyValueOf): Wrote.
6060 (init): Declare variant which takes byte array and encoding.
6061 Import java.io.UnsupportedEncodingException.
6063 * java/io/File.java: Rewrote from scratch.
6064 * java/io/natFileDescriptor.cc: Rewrote from scratch.
6065 * java/io/FileDescriptor.java: Rewrote from scratch.
6066 * java/io/FilenameFilter.java: Rewrote from scratch.
6068 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6070 * java/io/SyncFailedException.java: New file.
6071 * java/io/UTFDataFormatException.java: Rewrote from scratch.
6072 * java/io/InterruptedIOException.java: Rewrote from scratch.
6073 * java/io/FileNotFoundException.java: Rewrote from scratch.
6074 * java/io/EOFException.java: Rewrote from scratch.
6075 * java/io/IOException.java: Rewrote from scratch.
6076 * java/io/PrintStream.java: Rewrote from scratch.
6077 * java/io/DataOutputStream.java: Rewrote from scratch.
6078 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6079 * java/io/FilterOutputStream.java: Rewrote from scratch.
6080 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6081 * java/io/PipedOutputStream.java: Rewrote from scratch.
6082 * java/io/FileOutputStream.java: Rewrote from scratch.
6083 * java/io/OutputStream.java: Rewrote from scratch.
6084 * java/io/DataOutput.java: Rewrote from scratch.
6086 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6088 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6090 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6092 * configure.in: Add --enable-libjava-debug
6094 * Makefile.am (nat_headers): Add java/lang/Float.h and
6097 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6099 * Makefile.in, configure, include/config.h.in: Rebuilt.
6101 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6103 * java/lang/Float.java: Rewritten
6104 * java/lang/Double.java: Rewritten
6105 * java/lang/natFloat.cc: toString() added.
6106 * java/lang/natDouble.cc: toString() added.
6107 * java/lang/natDouble.cc: doubleValueOf() added.
6108 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6109 java/lang/strtod.c: added.
6110 * ieeefp.h: __sparc added.
6111 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6113 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6115 * include/javaprims.h (java::lang): Added
6116 CloneNotSupportedException.
6118 * java/lang/Object.java (clone): No longer native. Implemented.
6119 * java/lang/natObject.cc (clone): Removed.
6121 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6123 * prims.cc: Don't make definitions `extern "C"'.
6124 (_Jv_RegisterClass): Renamed from registerClass.
6125 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6126 (_Jv_NewArray): Likewise.
6127 (_Jv_NewMultiArray): Likewise.
6128 (_Jv_CheckCast): Likewise.
6129 (_Jv_LookupInterfaceMethod): Likewise.
6130 (_Jv_CheckArrayStore): Likewise.
6131 (_Jv_RegisterClass): Likewise.
6133 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6134 * configure: Rebuilt.
6135 * configure.in: Don't check for fmod; it is provided by the fdlibm
6137 * prims.cc (fmod): Removed.
6139 * java/lang/natString.cc (charAt): Use _Jv_uint.
6140 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6141 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6142 (equalUtf8Consts): Likewise.
6143 (internalAddClass): Use _Jv_uint.
6144 (processClass): Likewise.
6145 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6146 (_Jv_uint): Renamed from uint32.
6147 (struct _Jv_Utf8Const): Changed members to use new type names.
6149 * configure: Rebuilt.
6150 * configure.in: Don't check for memcpy. Require memmove and a way
6152 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6154 (currentTimeMillis): Don't use #error.
6156 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6158 * java/lang/Math.java: static member random renamed to random_ to
6159 avoid conflict with member function of the same name.
6160 * include/javaprims.h: java.util.Random added.
6162 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6164 * include/java-chartables.h: Regenerated.
6165 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6168 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6170 * java/lang/Math.java: Rewritten.
6171 * java/lang/natMath.cc: New file.
6172 * Files added from fdlibm:
6173 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6174 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6175 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6176 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6177 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6178 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6179 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6180 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6181 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6182 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6183 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6184 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6185 java/lang/k_cos.c, java/lang/sf_ceil.c,
6186 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6187 java/lang/ieeefp.h, java/lang/fdlibm.h
6188 * Makefile.am: rules added for compiling C files from fdlibm.
6190 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6192 * chartables.pl: Minor documentation fixes.
6194 * configure: Rebuilt.
6195 * configure.in: Fixed --help output for --enable-fast-character.
6197 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6199 * configure: Rebuilt.
6200 * configure.in: Recognize --enable-fast-character.
6201 * acconfig.h (COMPACT_CHARACTER): New define.
6202 * include/config.h.in: Rebuilt.
6203 * include/java-chartables.h: New file.
6204 * Makefile.in: Rebuilt.
6205 * Makefile.am (nat_files): Added natCharacter.o.
6206 * java/lang/natCharacter.cc: New file.
6207 * chartables.pl (set_attribute): New function.
6208 (@attributes, @second_attributes): New globals.
6209 ($ROMAN_START, $ROMAN_END): Likewise.
6210 (process_char): Call set_attribute when required.
6211 (print_char): Just print hex value.
6212 (print_block): Generate C++ syntax.
6213 (print_numerics): Likewise.
6214 (print_single_map): Likewise.
6215 (print_all_block): Likewise.
6216 (print_case_table): Likewise.
6217 (print_fast_tables): New function.
6218 Generate C++ code suitable for a header file.
6219 * java/lang/Character.java (table_search): Removed.
6220 (digit_value): Now native.
6221 (getNumericValue): Likewise.
6222 (getType): Likewise.
6223 Removed all automatically-generated tables.
6224 (Tamil_Digit_One): Removed.
6225 (isSpaceChar): Now native.
6226 (isTitleCase): Likewise.
6227 (isLowerCase): Likewise.
6228 (isUpperCase): Likewise.
6229 (toLowerCase): Likewise.
6230 (toTitleCase): Likewise.
6231 (toUpperCase): Likewise.
6232 (isDefined): Fixed sense of test.
6234 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6236 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6238 (regionMatches): Likewise.
6240 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6242 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6244 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6246 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6249 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6252 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6254 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6256 * prims.cc (instanceof_class): Removed.
6257 (instanceof_array): Likewise.
6258 (instanceof): Likewise.
6259 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6260 (_Jv_CheckCast): Likewise.
6261 * java/lang/natClass.cc (isAssignableFrom): New method.
6262 * java/lang/Class.java (isAssignableFrom): Now native.
6264 * include/cni.h (JvThrow): Use `extern inline'.
6265 (JvAllocObject): Likewise.
6266 (JvInitClass): Likewise.
6268 * java/lang/natSystem.cc (arraycopy): Only check class of source
6271 * prims.cc (_Jv_CheckArrayStore): Wrote.
6272 (_Jv_MonitorEnter): Prefer `JvThrow'.
6273 Include ArrayStoreException.h.
6274 (_Jv_CheckCast): Indentation cleanup.
6276 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6278 * chartables.pl: New file.
6279 * java/lang/Character.java: Rewrote from scratch.
6281 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6283 * java/lang/ArithmeticException.java,
6284 java/lang/ArrayIndexOutOfBoundsException.java,
6285 java/lang/ArrayStoreException.java,
6286 java/lang/ClassCastException.java,
6287 java/lang/ClassNotFoundException.java,
6288 java/lang/CloneNotSupportedException.java,
6289 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6290 java/lang/IllegalArgumentException.java,
6291 java/lang/IllegalMonitorStateException.java,
6292 java/lang/IllegalThreadStateException.java,
6293 java/lang/IndexOutOfBoundsException.java,
6294 java/lang/InstantiationException.java,
6295 java/lang/InterruptedException.java,
6296 java/lang/NegativeArraySizeException.java,
6297 java/lang/NoSuchMethodException.java,
6298 java/lang/NullPointerException.java,
6299 java/lang/NumberFormatException.java,
6300 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6301 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6303 * java/lang/IllegalStateException.java,
6304 java/lang/NoSuchFieldException.java,
6305 java/lang/UnsupportedOperationException.java: Created.
6307 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6309 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6310 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6312 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6314 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6316 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6318 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6320 * Makefile.in: Rebuilt.
6322 * include/javaprims.h (java::lang): Added
6323 StringIndexOutOfBoundsException.
6325 * java/lang/String.java: Added header comment and FIXME comment for
6326 missing constructors/methods.
6327 (endsWith): Adjusted offset into string to look at just the last chars.
6328 Commented out undocumented method.
6330 * java/lang/natString.cc: Added includes for
6331 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6332 (String::init): Throw StringIndexOutOfBoundsException.
6333 (String::charAt): Throw StringIndexOutOfBoundsException.
6334 (String::substring): Throw StringIndexOutOfBoundsException.
6335 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6336 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6337 (String::compareTo): Return difference/offset between chars/strings.
6339 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6341 * java/lang/Boolean.java (TYPE): Added comment.
6343 * java/lang/Byte.java (decode): Added - commented out until dependent
6344 code for Integer is written.
6345 (compareTo): JDK 1.2 methods written.
6346 (hashCode): Added comment to note that values have been verified.
6348 * java/lang/Short.java (decode): Added - commented out until dependent
6349 code for Integer is written.
6350 (compareTo): JDK 1.2 methods written.
6351 (hashCode): Added comment to note that values have been verified.
6353 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6355 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6357 * include/javaprims.h (java::lang): Added VirtualMachineError,
6359 * Makefile.in: Rebuilt.
6360 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6361 VirtualMachineError.h.
6362 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6363 (lookupArray): Likewise.
6364 (makeUtf8Const): Likewise.
6365 (_Jv_AllocObject): Likewise.
6366 (_Jv_NewObjectArray): Likewise.
6367 Include OutOfMemoryError.h.
6369 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6370 to use JvNewStringLatin1.
6372 * java/io/io-defs.h: Include java/lang/IOException.h.
6373 * Makefile.in: Rebuilt.
6374 * Makefile.am (nat_headers): Added
6375 ArrayIndexOutOfBoundsException.h,
6376 ClassFormatError.h,ClassNotFoundException.h,
6377 ClassCircularityError.h, ClassCastException.h,
6378 IncompatibleClassChangeError.h, AbstractMethodError.h,
6379 IllegalAccessError.h, LinkageError.h, Error.h,
6380 NegativeArraySizeException.h, IOException.h.
6381 * include/cni.h (SignalError): Removed declaration.
6382 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6383 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6384 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6385 (newInstance): Likewise.
6386 (forName): Likewise.
6387 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6389 (read): Use JvThrow, not SignalError.
6394 (open_read): Likewise.
6395 (open_write): Likewise.
6398 (newstr): New function.
6399 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6401 (lastModifiedUnchecked): Likewise.
6402 (lengthUnchecked): Likewise.
6403 * include/javaprims.h (sorry): Removed declaration.
6404 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6405 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6406 ClassCastException, IncompatibleClassChangeError,
6407 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6408 * prims.cc (instanceof_array): Use JvFail, not sorry.
6410 Include ArrayIndexOutOfBoundsException.h,
6411 ClassFormatError.h,ClassNotFoundException.h,
6412 ClassCircularityError.h, ClassCastException.h,
6413 IncompatibleClassChangeError.h, AbstractMethodError.h,
6414 IllegalAccessError.h, NegativeArraySizeException.h.
6415 (_Jv_ThrowBadArrayIndex): Implemented.
6416 (JvNewStringUTF): Use JvFail, not sorry.
6417 (_Jv_FindClass): Likewise.
6418 (_Jv_NewArray): Likewise.
6419 (throwException): Removed.
6420 (getClass): Use JvThrow.
6421 (processClass): Likewise.
6422 (_Jv_NewObjectArray): Likewise.
6423 (_Jv_NewMultiArray): Likewise.
6424 (_Jv_CheckCast): Likewise.
6425 (_Jv_LookupInterfaceMethod): Likewise.
6426 (SignalError): Removed.
6427 (getClass): Use _Jv_NewStringUtf8Const to create String.
6429 * java/lang/natSystem.cc (arraycopy): Throw
6430 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6432 * Makefile.in: Rebuilt.
6433 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6435 * include/java-array.h: Mention gcjh, not gjavah.
6437 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6438 (canReadUnchecked): Likewise.
6439 (canWriteUnchecked): Likewise.
6440 (isFileUnchecked): Likewise.
6441 * java/io/natFileDescriptor.cc: Don't include cni.h.
6443 * java/lang/Thread.java (run__): Declare.
6444 * java/lang/natThread.cc (run__): New method, to avoid compiler
6446 (start): Use run__, not run_.
6448 * java/io/io-defs.h: Include cni.h and jvm.h.
6450 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6452 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6453 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6454 to natString.cc (with suitable renaming, inlines etc).
6455 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6456 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6457 * java/lang/String.h: Removed - now generated using gjavah.
6458 * java/lang/String.java: Re-written from scratch. Many native methods.
6459 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6460 * java/lang/natString.cc: Many functions re-written for "compact
6461 strings" representation, or native java.lang.String methods added.
6462 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6463 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6464 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6465 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6466 * include/cni.h: Add inline method.
6467 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6468 * include/javaprims.h: Moved some stuff frm String.h.
6469 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6470 * Makefile.am (nat_header): Added Character.h and String.h.
6471 (String.h): Add new rule.
6473 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6475 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6477 * posix-threads.cc: Include cni.h, jvm.h.
6478 * quick-threads.cc: Include cni.h, jvm.h.
6479 * nogc.cc: Include cni.h, not javaprims.h.
6480 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6481 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6482 include java-assert.h.
6483 * java/lang/natSystem.cc: Include cni.h. Don't include
6485 * java/lang/natRuntime.cc: Include cni.h. Don't include
6487 * prims.cc: Rearranged #include ordering. Don't include
6488 java-array.h or java-assert.h.
6489 * boehm.cc: Include config.h, cni.h.
6490 * exception.cc: Include config.h, cni.h.
6491 * include/jvm.h: Include java-assert.h.
6492 * include/cni.h: Include java/lang/Object.h. Don't include
6493 java-threads.h or java-array.h.
6495 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6497 * java/lang/Boolean.java: Rewritten.
6499 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6501 * java/lang/natFirstThread.cc (main_func): New typedef.
6502 (run): Use main_func, not JvPrivThreadStartFunc.
6503 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6505 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6507 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6510 Can't throw Java exceptions with C++ `throw':
6511 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6512 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6513 (setPriority): Likewise.
6517 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6518 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6520 Can't catch Java exceptions from C++:
6521 * java/lang/natThread.cc (finish_): New method.
6523 * java/lang/Thread.java (run_): Rewrote in Java.
6524 (finish_): New native method.
6526 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6528 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6530 * include/javaprims.h (java::io): Added Serializable.
6532 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6534 * java/util/EmptyStackException.java,
6535 java/util/NoSuchElementException.java: Rewritten.
6537 * java/util/ConcurrentModificationException.java,
6538 java/util/MissingResourceException.java,
6539 java/util/TooManyListenersException.java: Created.
6541 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6543 * include/cni.h (JvThrow): New function.
6544 * include/javaprims.h (_Jv_Throw): Declare.
6546 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6548 * java/util/Observable.java: Rewritten.
6550 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6552 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6553 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6554 Include NullPointerException.h.
6556 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6558 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6559 assignability checks. Don't bother using memcpy.
6561 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6563 * include/quick-threads.h (JvPrivThreadWait): New function.
6564 * include/no-threads.h (JvPrivThreadWait): New function.
6565 * include/posix-threads.h (JvPrivThreadWait): New function.
6566 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6568 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6570 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6571 offsets by size of type that is being copied.
6573 * java/lang/natThread.cc (start): Don't pass `object' argument to
6575 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6576 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6578 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6579 always pass thread as object.
6580 * include/quick-threads.h, include/posix-threads.h,
6581 include/no-threads.h (JvPrivThreadStart): Removed `object'
6584 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6586 * java/util/Dictionary.java: Rewritten.
6588 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6590 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6591 (JvPrivThreadDestroy): Likewise.
6593 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6595 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6597 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6599 * java/lang/natSystem.cc: Rewrote from scratch.
6600 * java/lang/System.java: Rewrote from scratch.
6601 * java/lang/Class.h (Class): Declare isAssignableFrom.
6602 * include/javaprims.h (java::lang): Added ArrayStoreException,
6603 IndexOutOfBoundsException.
6604 * Makefile.in: Rebuilt.
6605 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6606 IndexOutOfBoundsException.h.
6607 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6608 * include/jvm.h (_Jv_HashCode): New function.
6610 * java/lang/natThread.cc (suspend): Call checkAccess.
6612 * java/lang/Thread.java (setDaemon): Call checkAccess.
6614 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6616 * java/lang/Runtime.java: Rewrote from scratch.
6617 * java/lang/natRuntime.cc: Rewrote from scratch.
6619 * nogc.cc (JvPrivGCTotalMemory): New function.
6620 (JvPrivGCFreeMemory): Likewise.
6621 (total): New global.
6622 (JvPrivAllocObj): Increment total.
6623 (JvPrivAllocArray): Likewise.
6624 (JvPrivAllocBytes): Likewise.
6625 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6626 * boehm.cc (JvPrivGCTotalMemory): New function.
6627 (sum_blocks): Likewise.
6628 (JvPrivGCFreeMemory): Likewise.
6630 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6632 * include/javaprims.h (java::lang): Added FirstThread.
6633 * java/lang/natFirstThread.cc: New file.
6634 * java/lang/FirstThread.java: New file.
6635 * prims.cc (main_signature): Removed.
6636 (main_name): Removed.
6637 #include FirstThread.h.
6638 * Makefile.in: Rebuilt.
6639 * Makefile.am (TFRIEND): Removed.
6640 (java/lang/Thread.h): Likewise.
6641 (FTFRIEND): New macro.
6642 (java/lang/FirstThread.h): New target.
6643 (nat_files): Added natFirstThread.o.
6644 (nat_headers): Added FirstThread.h.
6645 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6646 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6648 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6652 * java/lang/natThread.cc (start): Synchronize the thread.
6653 (stop): Synchronize the thread.
6655 * java/lang/ThreadDeath.java: Rewrote from scratch.
6657 * Makefile.in: Rebuilt.
6658 * Makefile.am (TGFRIEND): New macro.
6659 (java/lang/ThreadGroup.h): New target.
6660 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6662 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6664 * nogc.cc: Include config.h.
6666 * java/lang/ThreadGroup.java: Rewrote from scratch.
6668 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6670 * java/lang/Thread.java (checkAccess): Only call in to security
6671 manager if it exists.
6672 (Thread): Don't check access when creating the first thread. Add
6673 this thread to the appropriate ThreadGroup.
6675 * java/lang/natThread.cc (run_): Call uncaughtException method on
6678 * java/lang/Runnable.java: Rewrote from scratch.
6679 * java/lang/Thread.java: Updated copyright comment to correct
6682 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6684 * java/util/Random.java: Rewritten.
6686 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6688 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6689 trailing 0 in array[].
6691 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6693 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6694 and RUNTESTFLAGS from AM_MAKEFLAGS.
6695 (SUBDIRS): Conditionally include testsuite.
6696 * Makefile.in: Rebuilt.
6698 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6700 * java/lang/Object.h: Include java-assert.h.
6702 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6704 * Makefile.am: Add testsuite directory.
6705 * configure.in: Build testsuite/Makefile.
6706 * Makefile.in, configure: Rebuilt.
6708 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6710 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6711 * include/jvm.h (_Jv_StartFirstThread): Declare.
6713 * include/javaprims.h (java::lang): Added Exception,
6716 * Makefile.in: Rebuilt.
6717 * Makefile.am (nat_headers): Added NullPointerException.h,
6718 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6719 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6720 (java/lang/Thread.h): New target.
6721 (TFRIEND): New macro
6723 * include/java-assert.h (JvFail): Use 0 and not NULL.
6725 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6726 instead of assuming we are a friend of Thread.
6727 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6728 instead of assuming we are a friend of Thread.
6730 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6732 * java/lang/natThread.cc: Rewrote from scratch.
6733 * java/lang/Thread.java: Rewrote from scratch.
6734 * prims.cc (JvRunMain): Use new Thread constructor.
6735 * include/javaprims.h (java::lang): Added InterruptedException.
6736 * Makefile.in: Rebuilt.
6737 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6738 * java/lang/Thread.h: Removed.
6739 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6740 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6742 * posix-threads.cc (JvPrivThreadJoin): Removed.
6743 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6744 (really_start): Don't notify join_cond.
6745 (JvPrivThreadStart): Added `data' argument.
6746 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6747 (JvPrivThreadJoin): Likewise.
6748 Use JvFail instead of sorry.
6749 (JvPrivThreadSuspend): Removed.
6750 (JvPrivThreadResume): Removed.
6751 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6752 (JvPrivThreadJoin): Likewise.
6753 (JvPrivThreadSuspend): Use JvFail.
6754 (JvPrivThreadResume): Likewise.
6755 (JvPrivThreadSuspend): Removed.
6756 (JvPrivThreadResume): Likewise.
6757 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6758 (JvPrivThread_t): Removed join_mutex, join_cond.
6759 Use JvFail instead of sorry.
6760 (JvPrivThreadSuspend): Removed.
6761 (JvPrivThreadResume): Likewise.
6763 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6765 * java/util/Observer.java: Rewritten
6766 * java/util/Enumeration.java: Rewritten
6768 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6770 * java/util/StringTokenizer.java: Rewritten
6771 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6772 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6773 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6775 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6777 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6780 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6781 Include java-assert.h.
6782 * include/java-assert.h: New file.
6783 * prims.cc (_Jv_Abort): New function.
6784 Include java-assert.h, not assert.h.
6785 (_Jv_MonitorExit): Use JvAssert.
6786 (resolveConstants): Likewise.
6787 (processClass): Likewise.
6788 (JvRunMain): Assert that method is found.
6790 * configure: Rebuilt.
6791 * configure.in: Check for test subdir.
6792 * Makefile.in: Rebuilt.
6793 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6795 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6796 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6798 * prims.cc (resolveConstants): Removed unused variables.
6799 (processClass): Likewise.
6801 * include/quick-threads.h (JvPrivThreadCurrent): Use
6803 * quick-threads.cc (destroy_data): New function.
6804 (JvPrivInitThreads): Create key.
6805 (JvPrivThreadKey): New global.
6806 (JvPrivThreadStart): Use coop_setspecific.
6808 * include/quick-threads.h, include/posix-threads.h,
6809 include/no-threads.h, no-threads.cc, quick-threads.cc,
6810 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6812 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6814 * include/no-threads.h (JvPrivThreadInitData): Don't set
6817 * include/quick-threads.h (JvPrivCondWait): coop function now
6819 (JvPrivThreadJoin): Likewise.
6821 * java/lang/Thread.h (Thread): Updated declaration of
6823 * include/quick-threads.h, include/posix-threads.h: Updated
6824 declaration of JvPrivThreadStart.
6825 * include/no-threads.h (JvPrivThreadStart): Changed definition
6827 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6828 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6829 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6831 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6833 * quick-threads.cc (qthrow): New function.
6834 (JvPrivInitThreads): New function.
6835 (started): New global.
6836 (JvPrivThreadStart): Call coop_start if required.
6837 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6838 (JvPrivThreadDestroy): Likewise.
6839 (JvPrivInitThreads): Removed.
6840 * include/posix-threads.h (JvPrivThreadCancel): Added error
6842 * java/lang/natThread.cc (stop_): Pass exception to
6845 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6847 * include/javaprims.h (java::lang): Added
6848 IllegalArgumentException, IllegalThreadStateException, Math,
6849 NullPointerException, ThreadDeath.
6850 (java::util): Added Enumeration.
6852 * Makefile.in: Rebuilt.
6853 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6855 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6857 (threadsv): Renamed from threads to avoid clash in C++ header.
6858 (groupsv): Likewise.
6859 * include/no-threads.h (JvPrivThreadStart): Removed.
6860 * no-threads.cc (JvPrivThreadStart): New function.
6861 * java/lang/Thread.java (Thread): New constructor for internal use.
6862 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6863 (Thread): Declare constructor.
6864 * prims.cc (JvRunMain): Create the initial Thread and
6866 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6867 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6868 Removed `daemon' argument.
6870 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6871 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6873 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6875 * Makefile.in: Rebuilt.
6876 * Makefile.am (INCLUDES): Include THREADINCS.
6878 * configure: Rebuilt.
6879 * configure.in: Recognize `qt' as a threads package.
6881 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6883 * java/util/Stack.java (pop): Null out topmost node for robustness.
6885 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6887 * java/util/Stack.java: Rewritten.
6888 * java/util/Vector.java (isEmpty): Simplified expression.
6890 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6892 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6893 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6895 * include/java-array.h (JvNewObjectArray): Created inline to
6898 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6901 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6903 * java/util/Vector.java: Rewritten.
6904 * java/io/Serializable.java: Created.
6906 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6908 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6909 Infinity is 1/0, not 1/1.
6911 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6913 * configure: Rebuilt.
6914 * configure.in: Removed duplicate AC_ARG_WITH.
6916 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6918 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6920 (_Jv_InitClass): Renamed from soft_initialise_class.
6921 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6922 (_Jv_CheckCast): Renamed from soft_checkcast.
6923 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6924 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6925 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6926 * include/cni.h (JvInitClass): New function.
6927 (_Jv_InitClass): Renamed from soft_initialise_class.
6929 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6931 * configure: Rebuilt.
6932 * configure.in (CXX): Don't set.
6933 * Makefile.in: Rebuilt.
6934 * Makefile.am (AM_CXXFLAGS): New macro.
6936 * Makefile.in: Rebuilt.
6937 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6938 nogc.o): New target.
6940 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6942 (mark_array): Likewise.
6944 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6946 * java/lang/Class.h (JvMethod): Removed some unused fields.
6947 (JvField.info): Removed unused idx union variant.
6949 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6951 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6954 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6956 * configure.in, configure (CXX): Add -fvtable-thunks.
6958 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6960 * java/lang/Object.java (finalize): Move first.
6961 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6962 (Object): Re-arrange order to match Object.java.
6964 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6966 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6967 * java/lang/natString.cc (hashChars): Likewise.
6969 * prims.cc (RuntimeClass): New macro.
6970 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6972 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6974 * Makefile.in: Rebuilt.
6975 * Makefile.am (AM_MAKEFLAGS): New macro.
6977 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6979 * nogc.cc: Include <javaprims.h>.
6981 * Makefile.in: Rebuilt.
6982 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6984 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6986 * exception.cc (terminate): Removed.
6987 (unexpected): Removed.
6989 * configure: Rebuilt.
6990 * configure.in: Handle case where target subdir is ".".
6992 * configure: Rebuilt.
6993 * configure.in: Compute COMPPATH based on --with-target-subdir
6994 option. Added --with-target-subdir and --with-cross-host. Use
6995 --with-cross-host to determine when a cross compiler is in use.
6997 * Makefile.in: Rebuilt.
6998 * Makefile.am (GJAVAH): Include COMPPATH.
6999 * configure: Rebuilt.
7000 * configure.in: Subst COMPPATH.
7002 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
7004 * prims.cc (lockMutex): Removed.
7005 (unlockMutex): Likewise.
7006 (processClass): Lock the class using a JvSynchronize object.
7008 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
7010 * java/lang/natString.cc (gc_calloc_fixed): Removed.
7011 (gc_free_fixed): Removed.
7012 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
7013 freeing old value of strhash.
7015 * exception.cc (_Jv_type_matcher): Cast first argument to
7018 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
7020 * include/java-array.h (jstringArray): New type.
7021 * java/lang/natSystem.cc (setProperty): Removed.
7022 (initProperties): Directly call JvNewStringLatin1 for arguments.
7023 * java/util/natDate.cc: Include java/util/Date.h, not
7026 * java/io/FileDescriptor.java (available): No longer static.
7027 * java/lang/natDouble.cc (Double): Removed class definition.
7028 * include/javaprims.h (java::lang::Number): Declare.
7029 (java::lang::NumberFormatException): Likewise.
7030 (java::io::FilenameFilter): Likewise.
7031 (java::lang::Character): Likewise.
7032 (java::lang::Error): Likewise.
7033 (java::lang::SecurityManager): Likewise.
7034 (java::util::Vector): Likewise.
7035 (java::io::FileNotFoundException): Likewise.
7036 (java::io::IOException): Likewise.
7037 (java::lang::NativeLang): Likewise.
7038 (java::lang::UnsatisfiedLinkError): Likewise.
7039 (java::util::StringTokenizer): Likewise.
7040 (java::io::InputStream, java::io::OutputStream): Likewise.
7041 (java::io::PrintStream, java::lang::SecurityException): Likewise.
7042 (java::util::Hashtable): Likewise.
7043 * Makefile.in: Rebuilt.
7044 * Makefile.am (nat_headers): Added java/lang/Double.h,
7045 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
7046 (MOSTLYCLEANFILES): Added nat_headers.
7047 * include/jvm.h: Moved many defines, declarations, and functions
7048 to java/lang/Class.h.
7049 (struct JvSyncInfo): Moved to java/lang/Object.h.
7050 (UTF8_GET): Moved to java/lang/String.h.
7052 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
7054 * java/io/io-defs.h: Don't include java-io.h.
7055 * include/java-io.h: Removed.
7056 * include/javaprims.h: Include java::io.
7058 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
7060 * include/java-io.h (File): Removed
7061 (FileDescriptor): Likewise.
7063 * java/io/io-defs.h: Include java/io/File.h and
7064 java/io/FileDescriptor.h.
7066 * Makefile.in: Rebuilt.
7067 * Makefile.am (GJAVAH): New macro.
7068 (.class.h): New rule.
7069 (SUFFIXES): Added .h.
7070 (nat_headers): New macro.
7071 ($(nat_headers)): New target.
7072 (BUILT_SOURCES): Added nat_headers.
7074 * include/java-util.h: Removed.
7076 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7078 * include/java-io.h: Changed to avoid java-lang.h.
7079 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7081 * java/lang/natSystem.cc: Include java/lang/System.h, not
7083 * java/lang/natString.cc: Include java/lang/String.h, not
7085 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7087 * java/lang/natClass.cc: Include java/lang/Class.h, not
7089 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7091 * java/lang/natObject.cc: Include java/lang/Object.h, not
7093 * exception.cc: Don't include java-lang.h.
7094 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7095 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7096 * nogc.cc: Don't include java-lang.h.
7097 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7098 * prims.cc (processClass): Don't use `init_type'; just cast to
7100 Include java/lang/Class.h and jvm.h, not java-lang.h.
7101 (JvAllocObject): Wrote single-argument version.
7102 (PrimClass): Inherit from Class.
7103 (initPrimClass): Removed.
7104 * include/java-lang.h: Removed.
7105 * include/jvm.h: Declare struct _dispatchTable.
7106 * include/cni.h: Don't declare _Jv_MonitorEnter,
7107 _Jv_MonitorExit, struct _dispatchTable.
7108 * include/javaprims.h: Moved all typedefs here, from cni.h.
7109 * java/lang/Class.h: New file.
7110 * include/java-array.h: New file.
7111 * java/lang/Object.h: New file.
7113 * prims.cc (classFromSig): Now static.
7115 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7117 * include/cni.h: Don't mention soft_new.
7118 * include/java-lang.h (Object): Don't mention soft_new. Mention
7119 _Jv_NewPrimArray, not newPrimArray.
7120 * prims.cc (soft_new): Removed.
7121 (_Jv_NewArray): Renamed from soft_newarray.
7122 (soft_anewarray): Use JvNewObjectArray.
7123 (newArray): Likewise.
7124 (newRefArray): Removed.
7125 (_Jv_NewPrimArray): Renamed from newPrimArray.
7126 (equalUtf8Consts): Now static.
7127 (soft_instanceof): Removed.
7128 * java/lang/natDouble.cc (doubleToString): Now static.
7130 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7131 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7134 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7136 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7138 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7140 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7141 (JvPrivMutexUnlock): Likewise.
7142 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7143 Return value now jint.
7144 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7147 * Makefile.in: Rebuilt.
7148 * Makefile.am: Don't allow `jV' names.
7149 (maintainer-check): Depend on libjava.a.
7150 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7152 * Makefile.in: Rebuilt.
7153 * Makefile.am (NM): New macro.
7154 (maintainer-check): New target.
7156 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7158 * configure: Rebuilt.
7159 * configure.in: Use --enable-threads, not --enable-gc. Fix
7160 documentation for --enable-threads. Changed option to work like
7161 identical option in gcc/configure.
7163 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7165 * boehm.cc (mark_array): Use JvGetArrayLength.
7167 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7169 * exception.cc: New file (mostly written by Andrew MacLeod),
7170 exception handling support.
7171 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7172 Remove -fexceptions - it is now the default.
7174 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7175 (JvAllocObject): Renamed to _Jv_AllocObject.
7176 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7177 (loadClass): Renamed to _Jv_FindClass.
7178 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7179 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7180 * include/java-lang.h (JvGetArrayLength): New CNI function.
7181 * include/jvm.h (_Jv_FindClass): Added declaration.
7183 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7185 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7187 * java/lang/natClass.cc (getName): Add implementation.
7188 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7190 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7192 * Makefile.in: Rebuilt.
7193 * Makefile.am (.class.o): Added -fexceptions.
7195 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7197 * configure: Rebuilt.
7198 * configure.in: Don't check for __nanosleep.
7199 * posix-threads.cc (nanosleep): Never define.
7201 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7203 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7206 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7208 * java/lang/natThread.cc (enumerate): Uncommented.
7209 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7210 (interrupt): Call it.
7212 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7214 * configure: Rebuilt.
7215 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7217 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7219 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7220 * include/java-lang.h (Thread): Added `interrupted_' method.
7221 * java/lang/Thread.java (interrupted_): New method.
7222 * java/lang/natThread.cc (join): Possibly throw interrupted
7223 exception after join finishes.
7224 (interrupted_): New method.
7225 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7227 (JvPrivThreadJoin): New function.
7228 (really_start): Notify all threads waiting for this thread.
7229 (struct starter): Added `data' member.
7230 (JvPrivThreadStart): Set it.
7231 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7233 (JvPrivThreadJoin): No longer inline.
7234 (JvPrivThreadInterrupt): New function.
7236 * include/no-threads.h (JvPrivThreadSleep): Removed.
7237 * posix-threads.cc (JvPrivThreadSleep): Removed.
7239 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7241 * configure: Rebuilt.
7242 * configure.in (THREADOBJS): Initialize to no-threads.o in
7244 * posix-threads.cc (key): New global.
7245 (JvPrivInitThreads): New function.
7246 (really_start): Set thread-specific data to point to object.
7247 (JvPrivThreadStart): Added `daemon' argument.
7248 (JvPrivThreadSleep): Added `data' argument.
7249 * include/posix-threads.h (JvPrivInitThreads): Removed
7251 (JvPrivThreadCurrent): New function.
7252 * include/no-threads.h (JvPrivThreadInitData): Initialize
7253 JvPrivOnlyThread. Added `thread' argument.
7254 (JvPrivThreadCurrent): New function.
7255 (JvPrivThreadStart): Added `daemon' argument.
7256 * no-threads.cc: New file.
7257 * java/lang/natThread.cc (init_data): New function.
7259 (start): Set `alive' member.
7260 (stop_): Clear `alive' member.
7261 (destroy): Likewise.
7262 (currentThread): Implemented.
7263 (start): Pass `daemon' argument to JvPrivThreadStart.
7265 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7266 (Thread): Added `init_data' method.
7267 * java/lang/Thread.java (alive, data): New instance variables.
7268 (init_data): New private method.
7269 (isAlive): No longer native.
7271 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7273 * include/java-lang.h (JvRunMain): Declare.
7274 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7275 * prims.cc (JvRunMain): New function.
7276 (main_signature, main_name): New globals.
7278 * boehm.cc (mark_array): Use `elements' function and not
7279 operator[] on jarray.
7281 * posix-threads.cc: Include <config.h>. Define nanosleep if
7284 * configure: Rebuilt.
7285 * configure.in: Check for _nanosleep.
7287 * configure: Rebuilt.
7288 * configure.in: Check for pthread_mutexattr_settype.
7290 * include/cni.h (class JvSynchronize): New class.
7291 * java/lang/Thread.java (sleep): Throws InterruptedException.
7292 (join): Throws InterruptedException.
7293 (resume): Not native.
7294 (resume_): New method.
7295 (start): Now synchronized.
7296 (stop_): New method.
7297 (Thread): Synchronize when accessing threadNumber.
7299 * java/lang/natThread.cc (throwException): New macro.
7300 (sleep): Throw InterruptedException.
7303 * include/java-lang.h (Runtime): Added interrupted().
7305 * boehm.cc (call_finalizer): Correctly initialize jobj.
7306 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7308 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7311 * configure: Rebuilt.
7312 * configure.in: Added support for --disable-threads.
7313 * include/no-threads.h: New file.
7315 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7317 * Makefile.in: Rebuilt.
7318 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7319 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7320 (libjava_a_LIBADD): Added THREADOBJS.
7321 * configure: Rebuilt.
7322 * configure.in: Added --with-threads option.
7323 * posix-threads.cc: New file.
7324 * include/posix-threads.h: New file.
7325 * include/java-lang.h (Object): Added static member sync_mutex,
7326 member sync_info, method init_mutex.
7327 (struct JvSyncInfo): New struct.
7328 Include "java-threads.h".
7329 * prims.cc (soft_monitorenter): Wrote.
7330 (soft_monitorexit): Likewise.
7331 * java/lang/natObject.cc (init_mutex): New method.
7335 (sync_mutex): Define.
7336 Include "java-threads.h".
7338 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7340 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7341 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7343 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7345 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7346 Added extern "Java" in places to tell G++ Object is a "Java" type.
7347 Other minor renaming and fixes.
7348 * include/java-io.h (FileDescriptor): Add friend class declarations.
7349 G++ no longer allows non-Java types in method parameters and results
7350 of Java classes. Converted most offending methods to friends.
7351 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7352 * java/lang/natSystem.cc (setProperty): Make friend.
7353 * java/lang/natString.cc, include/java-lang.h (String): Rename
7354 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7355 * include/java-lang.h (JArray): Remove getData and eoprator[].
7356 Add elements friend function instead.
7357 * java/lang/natSystem.cc (arraycopy): Use elements function.
7358 * java/io/natFileDescriptor.cc (read, write): Likewise.
7359 * include/java-lang.h (Object): Remove unused make method.
7360 (System::setProperty(char*,char*)): Turn into friend function.
7361 (Class): Rename newObject by JvAllocObject.
7362 * prims.cc: Update to use JvAllocObject, and elements.
7364 * java/lang/natDouble.cc: Fix double -> jdouble.
7366 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7368 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7370 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7372 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7373 * include/java-lang.h (Runtime): finalize_on_exit and
7374 runFinalizersOnExit now static.
7375 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7377 (finalize_on_exit): Now static.
7379 * boehm.cc (mark_obj): Get class using getClass() method on
7381 (_dispatchTable): Removed.
7383 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7385 * java/io/natFileDescriptor.cc (open_read): Only call open if
7387 (open_write): Likewise.
7389 * Makefile.in: Rebuilt.
7390 * Makefile.am ($(nat_files)): Depend on config.h.
7392 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7394 * prims.cc (ObjectClass): Now a macro; updated for new class name
7396 (StringClass): Likewise.
7397 (ClassClass): Likewise.
7399 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7401 * java/io/natFileDescriptor.cc (available): Do nothing unless
7402 HAVE_SELECT defined.
7403 * java/util/natDate.cc (setTime): Conditional on
7405 (toString): Conditional on HAVE_TIME.
7406 * aclocal.m4, configure: Rebuilt.
7407 * acinclude.m4: New file.
7408 * configure.in: Don't actually call AM_EXEEXT. Call
7409 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7410 --with-target-subdir option. Check for select and open
7413 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7415 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7416 (call_finalizer): Likewise.
7417 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7418 * prims.cc (newObject): Pass actual method pointer to
7419 JvPrivRegisterFinalizer.
7420 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7421 (JvPrivRegisterFinalizer): Changed interface.
7423 * Makefile.in: Rebuilt.
7424 * Makefile.am (MOSTLYCLEANFILES): New macro.
7425 (CLEANFILES): Removed javao_files.
7427 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7429 * nogc.cc: New file.
7430 * Makefile.in: Rebuilt.
7431 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7432 (EXTRA_libjava_a_SOURCES): New macro.
7433 (libjava_a_SOURCES): Removed boehm.cc.
7434 (libjava_a_DEPENDENCIES): Added GCOBJS.
7435 (libjava_a_LIBADD): Likewise.
7436 * configure: Rebuilt.
7437 * configure.in: Added code for --enable-gc=TYPE.
7439 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7441 * boehm.cc (mark_array): Don't further dereference pointer from
7444 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7445 * Makefile.in: Rebuilt.
7446 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7447 one for boehm-gc build directory.
7449 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7451 * include/java-lang.h (finalize_on_exit): New instance variable in
7452 java::lang::Runtime.
7453 (runFinalizersOnExit): New method.
7454 * java/lang/Runtime.java (finalize_on_exit): New instance
7456 (runAllFinalizers_): New private method.
7457 (runFinalizersOnExit): New method.
7458 * boehm.cc (JvPrivRunFinalizers): New function.
7459 (JvPrivRunAllFinalizers): Likewise.
7460 (JvPrivRunGC): Likewise.
7461 * java/lang/natRuntime.cc: Include "jvm.h".
7462 (gc): Call JvPrivRunGC.
7463 (runFinalization): Call JvPrivRunFinalizers.
7464 (runFinalizersOnExit): New method.
7465 (exit_): Call JvPrivRunAllFinalizers if required.
7466 * include/jvm.h: Declare JvPrivRunFinalizers,
7467 JvPrivRunAllFinalizers, JvPrivRunGC.
7469 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7471 * boehm.cc (JvPrivRegisterFinalizer): New function.
7472 (call_finalizer): Likewise.
7473 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7474 * prims.cc (finalize_name): New global.
7475 (newObject): Just call other newObject.
7476 (newObject): Register finalizer if it exists.
7478 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7480 * prims.cc (gc_malloc): Removed.
7481 (makeUtf8Const): Use JvPrivAllocBytes.
7482 (lookupArray): Likewise.
7483 (newPrimArray): Likewise.
7484 (JvNewObjectArray): Use JvPrivAllocArray.
7485 (newObject): Use JvPrivAllocObj.
7486 (newObject): Likewise.
7487 Changed Method -> JvMethod everywhere.
7488 Changed Field -> JvField everywhere.
7489 * include/java-lang.h (Object): Changed type of `fields' to
7491 (jmethodID, jfieldID): New typedefs.
7492 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7494 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7496 (METHOD_NATIVECODE): Moved from java-lang.h.
7497 (class JvField): New class.
7498 (JvGetFirstInstanceField): New function.
7499 (JvFieldIsRef): Likewise.
7500 (JvGetObjectField): Likewise.
7501 (JvNumInstanceFields): Likewise.
7503 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7505 * boehm.cc: New file.
7506 * Makefile.in: Rebuilt.
7507 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7508 (INCLUDES): Added -I options to find boehm-gc files.
7510 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7512 * configure: Rebuilt.
7513 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7515 * Makefile.in: Rebuilt.
7516 * Makefile.am (nat_files): New macro.
7517 (libjava_a_DEPENDENCIES): Use it.
7518 (libjava_a_LIBADD): Likewise.
7519 ($(nat_files)): New static pattern rule.
7520 (class_files): Run separate find to find .class files.
7521 (javao_files): Compute based on class_files.
7522 (BUILT_SOURCES): New macro.
7524 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7526 * Makefile.am (java_files): New macro.
7527 (class_files): Likewise.
7528 (javao_files): Likewise.
7529 (libjava_a_DEPENDENCIES): Include $(javao_files).
7530 (libjava_a_LIBADD): Likewise.
7531 (classes.stamp): Depend on $(java_files); only recompile changed
7534 (CLEANFILES): Don't run find; use macros. Don't mention
7536 (.class.o): New target.
7537 (compiled.stamp): Removed.
7539 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7541 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7542 LineNumberReader}>java: Newly-implemented standard classes.
7544 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7546 * Makefile.in: Rebuilt.
7547 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7549 * Makefile.in: Rebuilt.
7550 * Makefile.am (hack): New macro.
7551 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7553 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7555 * include/config.h.in: New file.
7556 * include/config.h: Removed.
7557 * acconfig.h: New file.
7558 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7559 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7560 libjava_a_LIBADD): New macros.
7561 (INCLUDES): New macro.
7564 (SUFFIXES): Removed.
7566 (libjava.a): Removed.
7568 * configure: Rebuilt.
7569 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7570 Look for headers and functions we require. Create
7573 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7575 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7576 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7577 soft_lookupinterfacemethod): New functions.
7578 (PrimClass): Actually initialize the primitive classes.
7579 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7581 * include/java-util.h: Removed java::util definition.
7582 * include/cni.h: Moved java::util here and added Properties.
7583 Added more function prototypes.
7584 * include/java-lang.h: Added mroe methods and friend declarations.
7585 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7586 * include/jvm.h (strLengthUtf8): Add declaration.
7588 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7590 * java/lang/{Byte,Short,Void}.java: New classes.
7591 * java/lang/Character.java (isJavaIdentifierStart,
7592 JavaIdentifierPart): New static methods.
7593 * java/lang/Number.java (byteValue, shortValue): New methods.
7595 * java/lang/String.java (intern, hashCode): Make native.
7596 * java/lang/natString.cc: New file. Handle the string pool.
7597 * Makefile.am: Build natString.o. Use CXXFLAGS.
7599 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7600 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7601 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7602 * java/lang/System.java (setProperty): New private method.
7603 (initProperties): Take argument, and make native.
7604 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7605 (currentTimeMillis): Make more robust.
7607 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7608 * java/io/UnsupportedEncodingException.java: New exception class.
7610 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7611 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7613 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7615 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7616 * prims.cc: Added bunch of stuff.
7617 * include/cni.h: Added various definitions.
7618 * include/java-lang.h: Added Method, various friends, some macros.
7620 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7621 * java/lang/System.java (arraycopy): Make native.
7623 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7625 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7626 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7627 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7628 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7630 * java/lang/Runtime.java: Declare methods as native instead of
7632 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7633 * java/lang/System.java: Comment out some stuff, for now.
7634 * java/lang/Thread.java: Re-write. Use native methods.
7635 * java/lang/NativeLang.java: Remove most of it.
7637 * java/util/natDate.cc: Native (C++) methods for Date.
7638 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7639 * java/util/Date.java: Complete re-write.
7641 * java/io/io-defs.h: New header file.
7642 * java/io/FileDescriptor.java: Add a bunch of private methods,
7643 mostly moved from NativeIO.java and natNativeIO.cc.
7644 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7645 * java/io/File.java: Use new code.
7646 * java/io/{FileInputStream.java.FileOutputStream.java,
7647 RandomAccessFile.java}: Use new private FileDescriptor methods.
7648 * java/io/NativeIO.java: Removed, no longer used.
7650 * java/io/StreamTokenizer.java (numericChars): Make char array.
7652 * include/*.h: Various header files used by the C++ native code.
7654 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7655 New autoconf+automake-based setup.
7656 * prims.cc: New file for Java "primitives".