1 2000-02-04 Warren Levy <warrenl@cygnus.com>
3 * Makefile.am: Added MPN.java and BigInteger.java.
4 * Makefile.in: Rebuilt.
5 * gnu/gcj/math/MPN.java: New file.
6 * java/math/BigInteger.java: New file.
8 2000-02-04 Tom Tromey <tromey@cygnus.com>
10 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
12 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
13 if the method is native.
14 * resolve.cc (ncode): Don't handle native methods.
15 (_Jv_JNIMethod::ncode): New method.
16 (_Jv_PrepareClass): Handle native methods.
17 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
18 Include AbstractMethodError.h.
19 (add_char): New function.
20 (mangled_name): Likewise.
21 * include/java-interp.h (class _Jv_JNIMethod): New class.
22 (class _Jv_MethodBase): New class.
23 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
24 (_Jv_InterpClass): Changed `interpreted_methods' field to type
27 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
28 * java/lang/natRuntime.cc (libraries_size, libraries_count,
29 libraries): New globals.
30 (add_library): New function.
31 (_Jv_FindSymbolInExecutable): New function.
33 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
36 2000-02-04 Andrew Haley <aph@cygnus.com>
38 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
39 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
40 * java/lang/natThrowable.cc (printRawStackTrace): Rename
41 printStackTrace to printRawStackTrace.
43 2000-02-03 Tom Tromey <tromey@cygnus.com>
45 * java/util/Calendar.java (toString): New method.
46 * java/util/SimpleTimeZone.java (clone): New method.
47 (toString): New method.
48 * java/util/TimeZone.java (clone): New method.
49 * java/text/SimpleDateFormat.java (clone): New method.
50 * java/text/NumberFormat.java (clone): New method.
52 * java/text/Format.java (clone): New method.
53 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
56 * java/text/DateFormat.java (clone): New method.
57 * java/text/Collator.java (clone): New method.
59 2000-02-03 Tom Tromey <tromey@cygnus.com>
61 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
64 2000-02-01 Tom Tromey <tromey@cygnus.com>
66 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
67 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
68 constructing the closure if the function is native.
69 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
70 a template function, #if'd out, or static.
71 Include <java-interp.h>.
73 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
75 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
77 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
78 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
80 (wrap_value): New function.
81 (_Jv_JNI_CallAnyMethodV): Use it.
82 (_Jv_JNI_CallAnyMethodA): Likewise.
83 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
84 (_Jv_JNI_GetStaticField): Likewise.
86 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
87 (_Jv_JNI_GetStaticField): Likewise.
89 2000-01-31 Tom Tromey <tromey@cygnus.com>
91 * prims.cc (_Jv_MallocUnchecked): New function.
92 (main_init): Call _Jv_JNI_Init.
93 * include/jvm.h (_Jv_MallocUnchecked): Declare.
94 (_Jv_JNI_Init): Declare.
95 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
97 (_Jv_JNI_NewGlobalRef): New function.
98 (_Jv_JNI_DeleteGlobalRef): New function.
99 (_Jv_JNI_DeleteLocalRef): New function.
100 (_Jv_JNI_conversion_call): Initialize and clear local reference
102 (_Jv_JNI_NewLocalRef): New function.
103 (struct _Jv_JNI_LocalFrame): New structure.
104 (_Jv_JNI_PushLocalFrame): New function.
105 (_Jv_JNI_EnsureLocalCapacity): New function.
106 (FRAME_SIZE): New define.
107 (_Jv_JNI_GetStringChars): Mark string, not characters.
108 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
109 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
110 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
112 (_Jv_JNI_DefineClass): Make return value a local ref.
113 (_Jv_JNI_FindClass): Likewise.
114 (_Jv_JNI_GetSuperclass): Likewise.
115 (_Jv_JNI_ExceptionOccurred): Likewise.
116 (_Jv_JNI_AllocObject): Likewise.
117 (_Jv_JNI_GetObjectClass): Likewise.
118 (_Jv_JNI_CallAnyMethodV): Likewise.
119 (_Jv_JNI_NewString): Likewise.
120 (_Jv_JNI_NewStringUTF): Likewise.
121 (_Jv_JNI_NewObjectArray): Likewise.
122 (_Jv_JNI_GetObjectArrayElement): Likewise.
123 (_Jv_JNI_ToReflectedField): Likewise.
124 (_Jv_JNI_ToReflectedMethod): Likewise.
125 (_Jv_JNIFunctions): Updated table for new functions.
126 (_Jv_JNI_Init): New function.
127 (mark_for_gc): Wrote.
128 (unmark_for_gc): Wrote.
129 * include/jni.h (struct JNINativeInterface): Removed name from
130 PopLocalFrame parameter.
131 (class _Jv_JNIEnv): Added `locals' field.
133 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
135 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
138 2000-01-30 Tom Tromey <tromey@cygnus.com>
140 * include/config.h.in: Rebuilt.
141 * acconfig.h (HAVE_ICONV): Define.
142 * configure: Rebuilt.
143 * configure.in: Check for `iconv' function.
144 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
145 no specific encoder exists.
146 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
147 no specific encoder exists.
148 * Makefile.in: Rebuilt.
149 * Makefile.am (convert_source_files): Mention Input_iconv.java and
151 (nat_source_files): Added natIconv.cc.
152 * gnu/gcj/convert/natIconv.cc: New file.
153 * gnu/gcj/convert/Input_iconv.java: New file.
154 * gnu/gcj/convert/Output_iconv.java: New file.
156 2000-01-28 Tom Tromey <tromey@cygnus.com>
158 * Makefile.in: Rebuilt.
159 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
161 2000-01-26 Tom Tromey <tromey@cygnus.com>
163 * gcj/method.h (JvNumMethods): Moved from Class.h.
164 (JvGetFirstMethod): Likewise.
165 * java/lang/Class.h (Object): Updated decl of
166 _Jv_JNI_ToReflectedField.
167 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
168 * Makefile.in: Rebuilt.
169 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
170 argument of _Jv_JNI_ToReflectedField.
171 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
173 (java/lang/reflect/Method.h): Likewise.
174 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
176 (jweak): New typedef.
177 (struct JNINativeInterface): Correctly declare remaining entries.
178 * jni.cc: Include Class.h, ClassLoader.h.
179 (_Jv_JNI_FindClass): New function.
180 (_Jv_JNI_DefineClass): New function.
181 (_Jv_JNI_conversion_call): New function.
182 (_Jv_JNI_FindClass): Use current class loader to find class.
183 (_Jv_JNI_ExceptionCheck): New function.
184 (_Jv_JNI_FromReflectedField): Now static.
185 (MethodClass): New define.
186 (_Jv_JNI_FromReflectedMethod): New function.
187 (_Jv_JNI_ToReflectedMethod): Likewise.
189 (_Jv_JNI_IsAssignableFrom): Renamed.
190 (_Jv_JNI_GetStringRegion): New function.
191 Include StringIndexOutOfBoundsException.h.
192 (_Jv_JNI_GetStringUTFRegion): New function.
193 (_Jv_JNIFunctions): Updated for new functions.
194 (_Jv_JNI_GetPrimitiveArrayCritical): New function
195 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
196 (_Jv_JNI_GetStringCritical): New function.
197 (_Jv_JNI_ReleaseStringCritical): Likewise.
198 (get_throwable): Removed.
199 (GCJ_JV_JNIENV_FRIEND): Removed.
200 (__GCJ_JNI_IMPL__): Define.
203 * resolve.cc (get_ffi_type_from_signature): Handle case where
206 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
208 * interpret.cc (run): Don't call println.
209 Don't include PrintStream.h.
211 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
212 nameIndex. Use "jint" as type for boffset.
213 * java/lang/Class.h (struct _Jv_Method): Made accflags a
215 (Class): Likewise. Also changed type of method_count,
216 vtable_method_count, size_in_bytes, field_count,
217 static_field_count, interface_count.
218 * gcj/array.h (__JArray): Made `length' a const jsize, not an
221 2000-01-21 Tom Tromey <tromey@cygnus.com>
223 * java/lang/reflect/natConstructor.cc (newInstance): Use
225 * include/jvm.h: Declare _Jv_CallAnyMethodA.
226 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
227 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
230 (invoke): Use _Jv_CallAnyMethodA.
232 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
233 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
235 (struct _Jv_Method): Added getNextMethod method.
236 (JvNumMethods): New function.
237 (JvGetFirstMethod): Likewise.
238 * gcj/field.h (JvGetFirstStaticField): New function.
239 (JvNumStaticFields): Likewise.
240 (getNextField): Renamed from getNextInstanceField.
241 (struct _Jv_Field): New method getClass.
242 * jni.cc: Wrote many new functions.
243 * include/jni.h (JNI_TRUE): Define.
244 (JNI_FALSE): Likewise.
245 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
246 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
247 jcharArray, jfloatArray, jdoubleArray): New typedefs.
248 (jfieldID, jmethodID): Likewise.
249 (JNI_COMMIT, JNI_ABORT): New defines.
250 (JNINativeMethod): New struct.
251 (struct JNINativeInterface): Correctly declared more entries.
252 (class _Jv_JNIEnv): Added `ex' member.
253 (JNI_VERSION_1_1): New define.
254 (JNI_VERSION_1_2): Likewise.
256 * boehm.cc (_Jv_MarkObj): Use getNextField, not
257 getNextInstanceField.
259 2000-01-20 Tom Tromey <tromey@cygnus.com>
261 * resolve.cc (StringClass): Removed.
262 * defineclass.cc (StringClass): Removed.
264 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
268 2000-01-19 Tom Tromey <tromey@cygnus.com>
270 * interpret.cc (PC_REGISTER_ASM): Removed.
272 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
275 * All files: Updated copyright to reflect Cygnus purchase.
277 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
279 * configure: Rebuilt.
280 * configure.in: Recognize --disable-interpreter.
282 2000-01-18 Andrew Haley <aph@cygnus.com>
284 * name-finder.cc (lookup): Check for dladdr function.
285 acconfig.h (HAVE_DLADDR): Add.
286 configure.in: Check for HAVE_DLADDR
288 include/config.h.in: Rebuilt.
290 2000-01-17 Andrew Haley <aph@cygnus.com>
292 * prims.cc (_Jv_RunMain): Set the name of this executable.
294 2000-01-17 Tom Tromey <tromey@cygnus.com>
296 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
297 when backtrace can't be computed.
299 * configure: Rebuilt.
300 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
302 * java/lang/Runtime.java (loadLibraryInternal): Declare.
303 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
304 (_Jv_FindClassInCache): Likewise.
305 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
306 (findSystemClass): Try to load class from compiled module.
308 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
309 (loadLibrary): Likewise.
310 (lt_preloaded_symbols): Define.
311 (loadLibraryInternal): New method.
312 * include/config.h.in: Rebuilt.
313 * acconfig.h (USE_LTDL): Added.
314 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
315 (INCLUDES): Added $(INCLTDL).
316 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
317 (libgcj_la_LIBADD): Likewise.
318 * aclocal.m4, configure: Rebuilt.
319 * configure.in: Added libltdl support.
321 2000-01-15 Tom Tromey <tromey@cygnus.com>
323 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
325 2000-01-14 Andrew Haley <aph@cygnus.com>
327 * java/lang/natThrowable.cc: New file.
329 * java/lang/Throwable.java (fillInStackTrace): Make native.
330 (printStackTrace): Call native method to do this.
331 (Throwable): Call fillInStackTrace.
332 (stackTrace): New variable.
334 * include/jvm.h: Add _Jv_ThisExecutable functions.
336 * prims.cc: (_Jv_execName): New variable.
337 (catch_segv): Call fillInStackTrace.
339 (_Jv_ThisExecutable): New functions.
340 (JvRunMain): Set the name of this executable.
342 * Makefile.am: Add java/lang/natThrowable.cc.
344 * Makefile.in: Rebuilt.
346 * acconfig.h: Add HAVE_PROC_SELF_EXE.
348 * configure.in: Force link with __frame_state_for in
349 FORCELIBGCCSPEC. Add new checks for backtrace.
350 * include/config.h.in: Rebuilt.
352 * name-finder.cc: New file.
353 * include/name-finder.h: New file.
355 2000-01-16 Anthony Green <green@cygnus.com>
357 * java/lang/StringBuffer.java (StringBuffer): Don't special case
360 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
362 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
364 2000-01-13 Tom Tromey <tromey@cygnus.com>
366 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
367 not system loader, as initiating loader.
369 2000-01-11 Tom Tromey <tromey@cygnus.com>
371 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
372 HP/UX. From David Scott Urban.
374 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
376 * java/lang/natMath.cc (pow): Cast args to `double', not
379 (IEEEremainder): Likewise.
380 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
381 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
383 2000-01-09 Anthony Green <green@cygnus.com>
385 * java/lang/natString.cc (init): Test for overflow condition
386 during out of bounds check.
387 (getChars): Throw StringIndexOutOfBoundsException, not
388 ArrayIndexOutOfBoundsException.
390 (regionMatches): Obey case option during string comparison.
392 * configure.host (ligcj_interpreter): New variable. Enable
393 interpreter by default on IA-32.
394 * configure.in: Examine libgcj_interpreter.
395 * configure: Rebuilt.
397 2000-01-07 Tom Tromey <tromey@cygnus.com>
399 * mauve-libgcj: Don't disable ClassTest.
401 * java/lang/natClass.cc (getClasses): Wrote.
403 2000-01-06 Tom Tromey <tromey@cygnus.com>
405 * java/lang/natClass.cc (_getConstructors): Correctly check
406 whether method name is the init name.
407 (getMethod): Look at accflags on method in `klass', not `this'.
409 2000-01-05 Tom Tromey <tromey@cygnus.com>
411 * java/lang/natClass.cc (getMethod): Compute offset relative to
412 `klass's methods table, not `this's table.
414 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
415 In unwrapping/widening case, check whether `k' is null, not
416 whether it is primitive. Initialize `num' from `argelts', not
417 `paramelts'. Correct create and pass arguments to ffi_call.
418 Don't let presence of `this' argument affect index used to look in
420 (COPY): Set appropriate element in `values' vector.
422 * java/lang/natClass.cc: Include <gcj/method.h>.
424 * java/lang/Class.h (_getMethods): Correctly declare as private,
427 * java/lang/Class.h (_getMethods): Declare.
428 * java/lang/Class.java (_getMethods): Declare.
429 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
430 (getDeclaredClasses): Always return empty array.
431 (_getMethods): New method.
433 (getDeclaredMethod): Return `rmethod'.
434 (finit_name): New global.
435 (getDeclaredMethods): Check for finit_name.
436 (_getMethods): Likewise.
437 (getMethod): Only return public methods.
439 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
440 jboolean and select correct ffi type on that basis.
441 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
442 Constructor call always has `void' return type.
444 2000-01-04 Tom Tromey <tromey@cygnus.com>
446 * java/lang/Class.h (getSignature): Updated.
447 * java/lang/Class.java (getSignature): Updated.
448 * java/lang/natClass.cc (getSignature): Added `is_constructor'
450 (getConstructor): Ensure constructor is public.
451 (_getConstructors): Check for public-ness of constructor when
452 `declared' is false, not when it is true.
454 2000-01-04 Warren Levy <warrenl@cygnus.com>
456 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
458 (receive): Set the sender's address in the DatagramPacket.
460 2000-01-04 Tom Tromey <tromey@cygnus.com>
462 * java/lang/reflect/natConstructor.cc (newInstance): Pass
463 declaring class as return_type argument to
464 _Jv_CallNonvirtualMethodA.
465 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
466 constructor case, create object and use it as `this' argument.
467 * java/lang/Class.h (_getConstructors): Declare.
468 (_getFields): Declare.
469 * java/lang/Class.java (getConstructors): Wrote.
470 (_getConstructors): New native method.
471 (getDeclaredConstructors): Wrote.
472 (_getFields): Declare new native method.
473 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
475 (getMethod): Work correctly when class is primitive.
476 (getDeclaredMethods): Likewise. Compute offset using `method',
478 (getDeclaredMethod): Likewise.
479 (getConstructor): Wrote.
480 (ConstructorClass): New define.
481 (getDeclaredConstructor): Wrote.
482 (_getConstructors): New method.
483 (_getFields): New method.
486 * Makefile.in: Rebuilt.
487 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
489 * prims.cc: Remove `#pragma implementation'.
490 * gcj/array.h: Remove `#pragma interface'.
492 * prims.cc (_Jv_equaln): New function.
493 * java/lang/Class.java (getSignature): Declare.
494 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
495 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
497 (getSignature): New method.
498 (getDeclaredMethod): Wrote.
500 Include StringBuffer.h.
501 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
502 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
504 (getSignature): Declare.
505 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
506 (_Jv_equaln): Declare.
507 (_Jv_CallNonvirtualMethodA): Declare.
508 * Makefile.in: Rebuilt.
509 * Makefile.am (nat_source_files): Added natConstructor.cc.
510 (java/lang/reflect/Constructor.h): New target.
511 * java/lang/reflect/natConstructor.cc: New file.
512 * java/lang/reflect/Constructor.java (newInstance): Now native.
513 (declaringClass): Renamed from decl_class.
514 (offset): Renamed from index.
515 (getType): New native method.
516 (getModifiers): Now native.
517 (getParameterTypes): Call getType if required.
518 (hashCode): Include hash code from declaring class.
519 (modifiers): Removed.
520 (toString): Call getType if required.
521 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
522 * java/lang/reflect/natMethod.cc (hack_call): New method.
523 Removed `#if 0' around FFI code.
524 Include <gnu/gcj/RawData.h>.
525 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
526 IllegalArgumentException when argument object and class disagree.
527 (_Jv_GetTypesFromSignature): New function.
529 (ObjectClass): New define.
530 (_Jv_CallNonvirtualMethodA): New function.
531 * java/lang/reflect/Method.java (hack_trampoline): New method.
532 (hack_call): New native method.
534 1999-12-21 Per Bothner <per@bothner.com>
536 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
537 offset in new Method.
539 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
541 * java/lang/natObject.cc (notify): Throw message with
542 IllegalMonitorStateException.
545 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
546 (isInterrupted_): New function, which does clear interrupt_flag.
547 (interrupt): Use `isInterrupted_'.
548 * java/lang/natThread.cc (interrupt): Add comment.
549 (join): Set `prev' in joiner loop.
550 Change various calls to `isInterrupted' to use `isInterrupted_'.
551 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
552 on linux. Set result to 0 on an interrupt. Test interrupted status
553 of java Thread object directly.
554 FLAG_INTERRUPTED: removed.
555 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
556 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
557 (_Jv_InitThreads): Don't block SIGINT.
558 (_Jv_ThreadWait): Don't configure SIGINT handler.
560 1999-12-21 Tom Tromey <tromey@cygnus.com>
562 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
564 1999-12-20 Tom Tromey <tromey@cygnus.com>
566 * java/lang/reflect/Modifier.java (STRICT): New constant.
567 (isStrict): New method.
568 (toString): Added `strict'.
570 1999-12-23 Anthony Green <green@cygnus.com>
572 * configure: Rebuilt.
573 * configure.in (LIBDATASTARTSPEC): Force data_start in with
576 1999-12-19 Anthony Green <green@cygnus.com>
578 * libgcjdata.c: New file.
579 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
580 * configure: Rebuilt.
581 * configure.in (LIBDATASTARTSPEC): Force data with a known name
583 * Makefile.in: Rebuilt.
584 * Makefile.am: Build libgcjdata.a.
586 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
587 * configure: Rebuilt.
588 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
591 1999-12-17 Tom Tromey <tromey@cygnus.com>
593 * java/lang/reflect/Method.java (toString): Call getType if
594 required. Partial fix for PR libgcj/111. From Per Bothner.
596 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
598 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
600 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
601 null String constructor parameter.
602 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
603 for exception messages.
604 BooleanClass: declare.
605 (setOption): Use BooleanClass instead of Class.forName() for
607 (bind): Cast 4th parameter of setsockopt to `char *' for
608 compatibility with older Solaris headers.
609 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
610 sprintf calls for exception messages.
611 BooleanClass, IntegerClass: declare.
612 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
615 1999-12-15 Tom Tromey <tromey@cygnus.com>
617 * java/lang/natSystem.cc (init_properties): Don't set user.name or
618 user.home if NO_GETUID defined. Only set user.dir if getcwd
621 * include/config.h.in: Rebuilt.
622 * acconfig.h (NO_GETUID): New define.
623 * configure.in: Rebuilt.
624 * configure.in: Define NO_GETUID in cross case. Check for getcwd
627 1999-12-08 Tom Tromey <tromey@cygnus.com>
629 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
630 where no recursive mutexes exist. Fixes PR libgcj/117.
632 1999-12-05 Anthony Green <green@cygnus.com>
634 * include/jvm.h: Declare many functions with
635 __attribute__((__malloc__)).
636 * gcj/javaprims.h: Ditto.
638 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
640 * THANKS: Giving credit where credit is due.
642 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
644 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
646 * java/lang/natString.cc (equalsIgnoreCase): return false if
647 anotherString is null.
648 * java/lang/Boolean.java (valueOf): return FALSE if argument is
651 1999-11-30 Tom Tromey <tromey@cygnus.com>
653 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
654 mutex to initialize. Initialize `count' if required.
657 1999-11-27 Per Bothner <per@bothner.com>
659 * exception.cc: Remove prototype declarations for malloc and free.
660 These clash with recent versions of glibc, which specifies `throws ()'
661 when __cplusplus is defined. Instead, #include <stdlib.h>.
663 1999-11-24 Tom Tromey <tromey@cygnus.com>
665 * prims.cc (_Jv_NewObjectArray): Use
666 _Jv_GetArrayElementFromElementType.
667 (_Jv_NewPrimArray): Likewise.
668 * java/lang/natObject.cc (clone): Use
669 _Jv_GetArrayElementFromElementType instead of sizeof.
670 * java/lang/natSystem.cc (arraycopy): Use
671 _Jv_GetArrayElementFromElementType.
672 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
675 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
677 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
678 Exception messages. PR java.net/57.
679 (bind): set SO_REUSEADDR before bind.
680 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
681 overruns. PR java.net/57.
683 1999-11-19 Tom Tromey <tromey@cygnus.com>
685 * Makefile.am (DIVIDESPEC): Removed.
686 (EXCEPTIONSPEC): Removed.
688 1999-11-19 Andrew Haley <aph@cygnus.com>
690 * Makefile.am (JCFLAGS): Add -L$(here)
692 * Makefile.in: Rebuild.
694 1999-11-18 Tom Tromey <tromey@cygnus.com>
696 * java/lang/natDouble.cc: Include <config.h>.
698 * include/config.h.in: Rebuilt.
699 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
700 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
702 * configure: Rebuilt.
703 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
704 requested by configure.host. Don't put `-D' option into
705 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
707 * configure: Rebuilt.
708 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
711 1999-11-18 Andrew Haley <aph@cygnus.com>
713 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
714 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
716 * Makefile.in: Rebuild
717 * acconfig.h: remove SJLJ_EXCEPTIONS
718 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
719 Do not AC_DEFINE SJLJ_EXCEPTIONS.
720 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
721 * gcj/Makefile.in, include/Makefile.in: rebuild.
722 * include/config.h.in: remove SJLJ_EXCEPTIONS.
724 1999-11-18 Andrew Haley <aph@cygnus.com>
726 * gij.cc (main): Rename label to prevent conflict.
728 * exception.cc (_Jv_type_matcher): Don't check the table if we're
729 using setjmp/longjmp exceptions: there isn't one.
731 1999-11-17 Andrew Haley <aph@cygnus.com>
733 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
734 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
735 (__sjthrow): Add declaration.
736 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
740 * Makefile.in: Rebuild
741 * acconfig.h: Add SJLJ_EXCEPTIONS
742 * configure.in: Add SJLJ_EXCEPTIONS
743 * configure: Rebuild.
744 * gcj/Makefile.in: Rebuild.
745 * gcj/cni.h: Add support for sjlj-exceptions.
746 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
747 * include/Makefile.in: Rebuild.
748 * include/default-signal.h: Add support for sjlj-exceptions.
750 1999-11-18 Tom Tromey <tromey@cygnus.com>
752 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
754 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
756 (method_cache): Made larger.
758 1999-11-11 Tom Tromey <tromey@cygnus.com>
760 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
761 initializing mutex. Initialize `count' when required.
763 1999-11-07 Anthony Green <green@trip.cygnus.com>
765 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
768 1999-11-05 Tom Tromey <tromey@cygnus.com>
770 * java/lang/natThread.cc (destroy): Removed incorrect comment.
772 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
774 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
775 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
778 1999-11-05 Tom Tromey <tromey@cygnus.com>
780 * java/lang/natThread.cc (stop): Removed argument name.
782 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
783 `private'; now has default access.
784 * Makefile.in: Rebuilt.
785 * Makefile.am (java/lang/ThreadGroup.h): Removed.
787 1999-11-04 Tom Tromey <tromey@cygnus.com>
789 * java/lang/natClass.cc (method_cache_count): Removed.
790 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
791 (_Jv_AddMethodToCache): Don't loop.
793 * configure.in: Removed `qt' threads case.
794 * include/quick-threads.h: Removed.
795 * quick-threads.cc: Removed.
797 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
798 (_Jv_ThreadDestroy): Likewise.
799 * include/no-threads.h (_Jv_ThreadCancel): Removed.
800 (_Jv_ThreadDestroy): Likewise.
801 * include/posix-threads.h (struct _Jv_Thread_t): Removed
803 (_Jv_ThreadCancel): Removed decl.
804 (_Jv_ThreadDestroy): Removed.
805 * posix-threads.cc (_Jv_ThreadCancel): Removed.
806 (throw_cleanup): Removed.
807 (really_start): Don't push or pop cleanup.
808 (_Jv_ThreadInitData): Don't initialize `exception' field.
809 * java/lang/Thread.java (stop): Officially unimplemented.
810 * java/lang/natThread.cc (stop): Officially unimplemented.
812 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
814 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
817 1999-11-02 Tom Tromey <tromey@cygnus.com>
819 * boehm.cc: Don't include boehm-config.h.
821 1999-11-01 Tom Tromey <tromey@cygnus.com>
823 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
824 (sum_blocks): Removed.
825 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
827 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
829 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
831 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
832 * java/io/InputStreamReader (InputStreamReader): ditto.
834 1999-10-22 Tom Tromey <tromey@cygnus.com>
836 * Makefile.in: Rebuilt.
837 * Makefile.am (java/lang/ClassLoader.h): New target.
838 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
841 * include/java-props.h (_Jv_Compiler_Properties): Changed
843 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
844 * include/jvm.h (_Jv_GCSetInitialHeapSize,
845 _Jv_GCSetMaximumHeapSize): Declare.
846 (JvRunMain, _Jv_RunMain): Declare.
847 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
848 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
849 (_Jv_GCSetMaximumHeapSize): Likewise.
850 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
851 (_Jv_GCSetMaximumHeapSize): Likewise.
852 * prims.cc (parse_heap_size): New function.
853 (_Jv_SetInitialHeapSize): Likewise.
854 (_Jv_SetMaximumHeapSize): Likewise.
855 (_Jv_Compiler_Properties): New global.
856 * gij.cc (help): New function.
858 (heap_size): Likewise.
859 (heap_max_size): Likewise.
860 (main): Parse arguments. Set _Jv_Compiler_Properties.
861 Include <config.h>, <java-props.h>.
862 (_Jv_Compiler_Properties): Removed.
864 1999-10-18 Tom Tromey <tromey@cygnus.com>
866 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
868 (redirect): New static field.
869 * java/lang/ClassLoader.java (getSystemClassLoader): Now
871 (getVMClassLoader0): Removed.
872 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
874 (getSystemClassLoader): Implemented.
876 1999-10-16 Anthony Green <green@cygnus.com>
878 * java/lang/ClassLoader.java (getSystemResource): Use
879 getSystemClassLoader instead of ClassLoader.system.
880 (getSystemResourceAsStream): Ditto.
882 * java/lang/natClassLoader.cc (redirect): Make static and
883 remove #ifdef INTERPRETER so it is always defined.
884 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
885 returns a VMClassLoader.
887 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
888 PropertyResourceBundle if a properties file is found before a
889 ResourceBundle class.
891 1999-10-15 Tom Tromey <tromey@cygnus.com>
893 * gij.cc (main): Formatting fixes.
894 (_Jv_Compiler_Properties): Define.
895 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
897 (init_properties): Set properites from _Jv_Compiler_Properties.
898 * include/java-props.h (_Jv_Compiler_Properties,
899 _Jv_Environment_Properties): Declare.
901 * include/java-props.h: Added copyright.
903 1999-10-13 Anthony Green <green@cygnus.com>
905 * libtool-version: Catch up by incrementing current.
907 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
908 * configure, include/config.h.in: Rebuilt.
909 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
910 * configure.in: Added --disable-getenv-properties and new define
911 `DISABLE_GETENV_PROPERTIES'.
913 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
914 (next_property_key): New function.
915 (next_property_value): New function.
916 (process_gcj_properties): New function.
917 (JvRunMain): Call process_gcj_properties.
920 * java/lang/natSystem.cc (init_properties): Set properties defined
923 * include/java-props.h: New file.
925 * java/lang/natSystem.cc (init_properties): Add new properties to
926 conform with Java Product Versioning Specification.
928 1999-10-12 Tom Tromey <tromey@cygnus.com>
930 * configure: Rebuilt.
931 * configure.in: Fixed test for --disable-java-net.
933 1999-10-06 Tom Tromey <tromey@cygnus.com>
935 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
936 when building Canadian cross.
937 (NATIVE): Don't define when cross-compiling.
939 1999-10-04 Tom Tromey <tromey@cygnus.com>
941 * java/net/natPlainSocketImpl.cc: Don't include headers if
942 java.net is disabled.
944 * Makefile.in: Rebuilt.
945 * Makefile.am (ZINCS): Removed. This is defined in configure.in
946 when needed, and must be left empty when not needed.
948 1999-10-01 Anthony Green <green@cygnus.com>
950 * THANKS: Refreshed from htdocs version.
952 1999-10-01 Steve Chamberlain <sac@pobox.com>
954 * Makefile.in: Rebuilt.
955 * Makefile.am (ZINCS): Define
957 * configure: Rebuilt.
958 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
960 * java/lang/ieeefp.h: Add definitions for picoJava.
962 1999-10-01 Tom Tromey <tromey@cygnus.com>
964 * configure: Rebuilt.
965 * configure.in: Set classpath when invoking gcj. Use changequote
966 around sed invocation.
968 * java/net/natPlainSocketImpl.cc: Stub native functions if
969 DISABLE_JAVA_NET is defined.
970 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
971 typo in exception string.
972 (getTimeToLive): Likewise.
973 Stub native functions if DISABLE_JAVA_NET is defined.
974 * java/net/natInetAddress.cc: Stub native functions if
975 DISABLE_JAVA_NET is defined.
976 * configure.host: Disable java.net for mips-tx39.
977 * configure, include/config.h.in: Rebuilt.
978 * acconfig.h (DISABLE_JAVA_NET): Undefine.
979 * configure.in: Added --disable-java-net and new define
982 1999-09-30 Tom Tromey <tromey@cygnus.com>
984 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
986 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
990 1999-09-28 Tom Tromey <tromey@cygnus.com>
992 * configure: Rebuilt.
993 * configure.in (PROCESS): In POSIX case, only set if not already
995 * configure.host (PROCESS): Set in mips-tx39 case.
997 * aclocal.m4, configure: Rebuilt.
998 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
999 appropriate AC_PROG_ symbol.
1001 1999-09-24 Tom Tromey <tromey@cygnus.com>
1003 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
1005 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
1007 Fix for PR java.util/47:
1008 * configure, include/config.h: Rebuilt.
1009 * configure.in: Don't look for ctime or ctime_r.
1010 * Makefile.in: Rebuilt.
1011 * Makefile.am (nat_source_files): Don't mention natDate.cc.
1012 * java/util/natDate.cc: Removed.
1013 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
1015 (getAvailableIDs): Rewrote.
1016 (getTimeZone): Rewrote.
1017 * java/util/Date.java (toGMTString): New method.
1018 (toLocaleString): New method.
1019 (toString): Rewrote.
1021 1999-09-23 Tom Tromey <tromey@cygnus.com>
1023 * configure: Rebuilt.
1024 * configure.in: Print message when checking to see if gcj can
1025 handle -fuse-divide-subroutine.
1027 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
1029 * java/lang/FirstThread.java (run0): Renamed to `run'.
1032 * prims.cc (main_init): New function.
1033 (JvRunMain): Call it.
1034 (_Jv_RunMain): Likewise.
1036 (main_init): Ignore SIGPIPE. Fixes PR 51.
1038 1999-09-22 Tom Tromey <tromey@cygnus.com>
1040 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1042 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
1044 * java/text/MessageFormat.java (MessageFormat(String)): Set the
1046 * java/text/NumberFormat.java: Check that object is a Number. If
1047 not, throw IllegialArgumentException.
1049 1999-09-21 Tom Tromey <tromey@cygnus.com>
1051 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1052 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
1054 * include/posix-threads.h (_Jv_MutexDestroy): Use
1055 _Jv_PthreadGetMutex.
1056 (_Jv_MutexLock): Likewise.
1057 (_Jv_MutexUnlock): Likewise.
1059 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1060 previous patch; it too was incorrect.
1061 * java/io/PrintStream.java (PrintStream): Likewise.
1063 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1064 refer to `this' before calling superclass constructor.
1065 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1066 before calling superclass constructor.
1068 1999-09-20 Tom Tromey <tromey@cygnus.com>
1070 * configure: Rebuilt.
1071 * configure.in: Send output of `-fuse-divide-subroutine' test
1072 compilation to /dev/null.
1074 1999-09-14 Tom Tromey <tromey@cygnus.com>
1076 * include/java-insns.h: Turned constants into an enum. Added
1077 multiple-inclusion protection.
1079 1999-09-10 Tom Tromey <tromey@cygnus.com>
1081 * configure: Rebuilt.
1082 * configure.in: Build include/Makefile.
1083 * Makefile.in: Rebuilt.
1084 * Makefile.am (SUBDIRS): Added gcj and include.
1085 (install-data-local): New target.
1086 (extra_headers): New macro.
1087 * include/Makefile.in: New file.
1088 * include/Makefile.am: New file.
1090 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1091 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1093 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1094 * resolve.cc: Include config.h.
1095 * defineclass.cc: Include config.h.
1096 * include/java-interp.h: Don't include config.h.
1097 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1100 * gcj/javaprims.h: Regenerated namespace decls.
1101 * classes.pl (scan): Don't put `;' after closing brace.
1103 * Makefile.in: Rebuilt.
1104 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1105 * configure.in: Create gcj/Makefile.
1106 * gcj/Makefile.in: New file.
1107 * gcj/Makefile.am: New file.
1108 * java/lang/Object.h: Don't include any other headers.
1109 * gcj/array.h: Renamed from include/java-array.h.
1110 * gcj/field.h: Renamed from include/java-field.h.
1111 * gcj/method.h: Renamed from include/java-method.h.
1112 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1113 Updated all files to reflect new include structure.
1115 1999-09-09 Tom Tromey <tromey@cygnus.com>
1117 * configure: Rebuilt.
1118 * configure.in: Fixed typo; variable is THREADSPEC and not
1121 1999-09-08 Tom Tromey <tromey@cygnus.com>
1123 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1124 previous change and implemented a correct test in the __m_count
1127 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1130 1999-09-07 Tom Tromey <tromey@cygnus.com>
1132 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1133 code and don't set errno.
1135 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1136 not `r'. Changed `done_sleeping' to a `bool'.
1138 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1140 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1141 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1142 by another thread, rather than by the GC.
1143 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1144 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1145 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1148 1999-09-03 Tom Tromey <tromey@cygnus.com>
1150 * configure: Rebuilt.
1151 * configure.in: Check for fstat function.
1152 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1155 1999-09-02 Tom Tromey <tromey@cygnus.com>
1157 * include/java-array.h (jobjectArrayjchar): Removed unused
1160 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1161 _Jv_PrepareCompiledClass while holding class mutex.
1163 1999-09-01 Tom Tromey <tromey@cygnus.com>
1165 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1166 (_Jv_PthreadGetMutex): Use it.
1167 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1168 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1169 (_Jv_MutexLock): Likewise.
1170 (_Jv_MutexUnlock): Likewise.
1171 * include/config.h.in: Rebuilt.
1172 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1173 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1174 * configure: Rebuilt.
1175 * libgcj.spec.in: Don't mention INTERPSPEC.
1176 * configure.in (INTERPSPEC): Removed.
1177 Only run pthreads-related checks when using POSIX threads. Check
1178 for m_count and __m_count in mutex structure.
1180 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1182 * java/lang/natClass.cc: Fixed notification of threads
1183 when class initialization is complete.
1185 1999-09-01 Tom Tromey <tromey@cygnus.com>
1187 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1188 * resolve.cc: Removed constants defined by
1189 java.lang.reflect.Modifier.
1190 Include <java/lang/reflect/Modifier.h>.
1191 (_Jv_ResolvePoolEntry): Use values from Modifier.
1192 (_Jv_DetermineVTableIndex): Likewise.
1193 (_Jv_PrepareClass): Likewise.
1195 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1196 java.lang.reflect.Modifier.
1197 Include <java/lang/reflect/Modifier.h>.
1198 (checkExtends): Use values from Modifier.
1199 (checkImplements): Likewise.
1200 (handleField): Likewise.
1201 (handleConstantValueAttribute): Likewise.
1202 (handleFieldsEnd): Likewise.
1203 (handleMethod ): Likewise.
1204 (handleMethodsEnd): Likewise.
1205 (handleClassBegin): Likewise.
1206 * interpret.cc: Removed constants defined by
1207 java.lang.reflect.Modifier.
1208 (continue1): Use values from Modifier.
1209 * java/lang/natClassLoader.cc: Removed constants defined by
1210 java.lang.reflect.Modifier.
1212 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1213 JV_STATE_NOTHING, not `0'.
1214 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1216 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1217 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1219 (_Jv_PthreadGetMutex): New function.
1220 (_Jv_PthreadCheckMonitor): Use it.
1221 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1222 (_Jv_MutexLock): Update `count'.
1223 (_Jv_MutexUnlock): Likewise.
1224 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1227 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1229 * Makefile.am (.java.lo): Add rule.
1231 * Makefile.in: Rebuilt.
1233 1999-09-01 Tom Tromey <tromey@cygnus.com>
1235 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1236 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1238 (_Jv_CondNotify): Use it.
1239 (_Jv_CondNotifyAll): Likewise.
1241 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1243 1999-08-31 Tom Tromey <tromey@cygnus.com>
1245 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1248 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1250 * posix-threads.cc: Include <errno.h>.
1252 1999-08-23 Tom Tromey <tromey@cygnus.com>
1254 * boehm.cc: Undefine TRUE and FALSE.
1256 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1258 1999-08-21 Tom Tromey <tromey@cygnus.com>
1260 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1263 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1265 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1267 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1268 (HAVE_STRUCT_IP_MREQ): Added.
1269 * configure, include/config.h.in: Rebuilt.
1270 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1272 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1273 Disable if ip_mreq is not available.
1275 * configure.in: Check types ssize_t and in_addr_t.
1276 * acconfig.h: Undefine them.
1277 * configure, include/config.h.in: Rebuilt.
1279 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1280 function that detects the signature of getpwuid_r.
1281 (init_properties): Use it.
1282 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1285 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1287 * interpret.cc (continue1): Implement explicit dispatch table.
1288 insn_target: Explicit interpreter switch table.
1289 SAVE_PC: New macro, moves pc saving code into instructions that
1291 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1292 PC_REGISTER_ASM: New macro.
1293 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1294 opcode: Remove local variable.
1295 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1296 (POKEI): Use _Jv_word.
1297 (iinc): Use _Jv_word.
1298 (dupx): Change reference argument (sp) to pointer.
1301 * interpret.cc: Remove instruction timing instrumentation.
1303 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1304 comment. Don't use _Jv_ClassNameSamePackage.
1306 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1307 URLPathEntry, CacheEntry}: Removed.
1309 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1311 (.java.lo): Rule removed.
1313 * Makefile.in: Rebuilt.
1315 1999-08-19 Tom Tromey <tromey@cygnus.com>
1317 * java/lang/natThread.cc (class locker): New class.
1318 (join): Use a locker around _Jv_CondWait.
1321 1999-08-18 Tom Tromey <tromey@cygnus.com>
1323 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1324 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1326 1999-08-18 Tom Tromey <tromey@cygnus.com>
1328 * include/javaprims.h ("Java"): Regenerated namespace decls.
1330 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1332 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1333 from _Jv_InternClassStrings.
1335 * prims.cc (_Jv_RunMain): New function.
1336 (JvRunMain): Remove gij-support.
1338 * gij.cc (main): Use _Jv_RunMain.
1340 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1342 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1343 argument in temp variable.
1344 (continue1): For all op_x2y insns, use temp variable for
1345 intermediate value. Also remove some comments.
1347 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1348 (forName): Don't call _Jv_InitClass.
1350 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1352 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1354 * java/util/jar/JarInputStream.java: New file.
1356 * java/util/jar/JarEntry.java: New file.
1358 * java/util/jar/JarFile.java: New file.
1360 * java/net/URLClassLoader.java: New file.
1362 * java/net/JarURLConnection.java: New file.
1364 * gnu/gcj/protocol/jar/Handler.java: New file.
1366 * gnu/gcj/protocol/jar/Connection.java: New file.
1368 * java/security/SecureClassLoader.java: New file.
1370 * java/lang/ClassLoader.java (parent): New variable.
1371 (ClassLoader (ClassLoader)): new constructor.
1372 (findClass): New method.
1373 (loadClass): Add default 1.2 implementation.
1374 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1375 (readfully): Removed.
1377 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1378 (findSystemClass): New method.
1379 (VMClassLoader): Constructor rewritten.
1381 All other methods removed.
1383 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1384 to gnu::gcj::runtime::VMClassLoader.
1385 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1387 (VMClassLoader::findSystemClass): renamed from findBootClass.
1389 * Makefile.am: Add new files.
1390 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1392 * Makefile.in: Rebuilt.
1394 1999-08-17 Tom Tromey <tromey@cygnus.com>
1396 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1398 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1401 1999-08-16 Tom Tromey <tromey@cygnus.com>
1403 * configure: Rebuilt.
1404 * configure.in: Set DIVIDESPEC to empty string if compiler does
1405 not support -fuse-divide-subroutine.
1407 1999-08-14 Per Bothner <per@bothner.com>
1409 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1410 * java/lang/natClass.cc (initializeClass): Likewise.
1411 * java/lang/ClassLoader.java (resolveClass0): New static method.
1412 (resolveClass): Call resolveClass0.
1413 (findSystemClass): No longer static.
1415 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1417 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1419 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1421 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1424 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1426 * Makefile: Rebuilt.
1427 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1430 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1433 * configure: Rebuilt.
1434 * configure.in: Properly align --help output, fix capitalization
1436 * acinclude.m4: Likewise.
1438 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1440 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1442 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1443 (_Jv_callInterpretedMethod): Unused. Remove.
1444 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1446 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1447 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1448 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1449 * interpret.cc: use _Jv_word.
1450 * defineclass.cc: use_Jv_word.
1451 * resolve.cc: Use _Jv_word.
1452 (_Jv_ResolvePoolEntry): Return _Jv_word.
1453 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1454 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1456 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1459 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1461 * configure: Rebuilt.
1462 * configure.in (sched_yield): Try librt first, then libposix4.
1463 Add -lrt, -lposix4 to THREADSPEC.
1465 1999-08-08 Anthony Green <green@cygnus.com>
1467 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1469 1999-08-08 Anthony Green <green@cygnus.com>
1471 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1474 1999-08-08 Anthony Green <green@cygnus.com>
1478 * include/config.h.in: Rebuilt.
1479 * acconfig.h: Add INTERPRETER.
1481 * Makefile.in: Rebuilt.
1482 * Makefile.am (libffi_files): Identify the libffi object files for
1483 inclusion in libgcj.
1484 (LIBFFIINCS): Define.
1486 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1487 Dummy definition for configurations without an interpreter.
1489 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1490 java::lang::Boolean constructor.
1492 * include/java-interp.h: Always include java-cpool.h.
1494 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1495 when INTERPRETER not defined.
1497 * java/lang/Class.h (finalize): Define.
1499 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1500 IOException from File.getCanonicalPath.
1501 (getStream): Likewise.
1504 * THANKS: More thanks.
1506 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1508 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1510 (_Jv_PrepareClass): Allow non-abstract classes to
1511 have abstract subclasses.
1512 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1514 * interpret.cc (continue1/perform_invoke): Don't sign extend
1516 (continue1/lshl,lshr): Push long, not int.
1517 (continue1/ulshr): Use UINT64, not long long.
1518 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1520 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1521 * java/lang/FirstThread.java (run): Add top-level exception
1523 (run0): Renamed from run.
1525 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1527 * configure.in (--with-interpreter): Added.
1528 * include/config.h.in (INTERPRETER): Added.
1530 * java/lang/ClassLoader.java: File replaced.
1531 * java/lang/VMClassLoader.java: New file.
1532 * java/lang/natClassLoader.cc: New file.
1533 * gnu/gcj/runtime/MethodInvocation.java: New file.
1534 * gnu/gcj/util/path/SearchPath.java: New file.
1535 * gnu/gcj/util/path/PathEntry.java: New file.
1536 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1537 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1538 * gnu/gcj/util/path/URLPathEntry.java: New file.
1539 * gnu/gcj/util/path/CacheEntry.java: New file.
1540 * include/java-interp.h: New file.
1541 * include/java-cpool.h: New file.
1542 * include/java-insns.h: New file.
1543 * defineclass.cc: New file.
1544 * interpret.cc: New file.
1545 * resolve.cc: New file.
1547 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1548 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1549 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1551 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1552 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1554 (initializeClass): Use new JV_ prefixed names. Also, call
1555 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1557 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1558 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1559 JV_STATE_LINKED): New.
1560 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1561 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1562 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1563 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1564 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1565 _Jv_InterpMethodInvocation): New friends for interpreter.
1567 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1568 include/java-cpool.h and renamed with JV_ prefix.
1570 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1572 (_Jv_UnregisterClass): New decl.
1574 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1575 class loader argument.
1576 (_Jv_FindClass): Use class loader.
1578 * prims.cc (_Jv_makeUtf8Const): New function.
1579 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1580 (_Jv_NewPrimArray): Ditto.
1581 (_Jv_FindClassFromSignature): Ditto.
1582 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1583 * java/lang/reflect/natMethod.cc (getType): Ditto.
1585 * include/java-field.h (_Jv_Field::isRef): Make robust for
1586 non-resolved contexts.
1588 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1589 Also, don't mark class->next field.
1591 * java/lang/VirtualMachineError.java: Added FIXME note.
1593 * configure.in (INTERPSPEC): New spec.
1594 * libgcj.spec.in: Added INTERPSPEC.
1595 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1596 gnu/gcj/runtime/MethodInvocation.
1597 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1598 (ordinary_java_source_files): Added above mentioned java classes.
1600 * configure: Rebuilt.
1601 * Makefile.in: Rebuilt.
1603 1999-08-06 Tom Tromey <tromey@cygnus.com>
1605 * configure: Rebuilt.
1606 * configure.in: Look for sched_yield in -lrt.
1608 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1610 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1611 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1612 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1614 (toString): Print correctly when `country' is empty.
1616 1999-08-04 Per Bothner <per@bothner.com>
1618 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1620 1999-08-02 Tom Tromey <tromey@cygnus.com>
1622 * aclocal.m4, configure: Rebuilt for new libtool.
1624 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1626 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1627 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1628 * java/net/ServerSocket.java: Define ANY_IF.
1629 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1630 all network interfaces.
1631 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1632 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1634 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1636 * java/io/natFile.cc (performMkdir): Remove FIXME.
1637 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1639 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1641 * configure.in: Check for bstring.h.
1642 * configure, include/config.h.in: Rebuilt.
1643 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1644 * java/net/natPlainSocketImpl.cc: Likewise.
1646 1999-07-31 Tom Tromey <tromey@cygnus.com>
1651 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1653 * configure.in: Check for struct hostent_data and need for
1654 -D_REENTRANT for gethostbyname_r declaration.
1655 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1656 (lookup): Use hostent_data for fixed_buffer.
1657 * configure, include/config.h.in: Rebuilt.
1659 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1661 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1662 available. Don't cast memmove args to (void*).
1663 * configure.in: Do not abort if memmove is not available.
1665 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1667 * java/lang/natString.cc (substring): optimize where substring is
1669 * java/io/File.java (getName): don't return separator with file name.
1670 * java/io/natFile.cc (attr): fix overflow.
1672 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1674 * mauve-libgcj: Disable Object Serialization tests.
1676 1999-07-20 Warren Levy <warrenl@cygnus.com>
1678 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1679 Default to using PlainDatagramSocketImpl.
1680 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1682 1999-07-19 Tom Tromey <tromey@cygnus.com>
1684 * include/stamp-h.in: New file.
1686 1999-07-12 Tom Tromey <tromey@cygnus.com>
1688 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1691 1999-07-07 Andrew Haley <aph@cygnus.com>
1693 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1694 bytes to make it point after the instruction where the trap
1696 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1698 1999-07-07 Tom Tromey <tromey@cygnus.com>
1700 * mauve-libgcj: Explicitly enable formerly disabled java.text
1703 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1706 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1708 * java/net/URL.java (equals): Compare strings using String.equals.
1709 * java/net/URL.java (sameFile): Ditto.
1711 1999-07-02 Warren Levy <warrenl@cygnus.com>
1713 * configure: Rebuilt.
1714 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1715 * include/config.h.in: Rebuilt.
1716 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1717 (mcastGrp): Updated FIXME comments.
1718 (setOption): Fixed typo.
1719 (getOption):Implemented IP_MULTICAST_IF.
1721 1999-07-02 Warren Levy <warrenl@cygnus.com>
1723 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1724 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1725 (getTimeToLive): Implemented.
1726 (setOption): Implemented IP_MULTICAST_IF.
1728 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1730 * java/lang/String.java (toString): Check for this == null and throw
1731 NullPointerException.
1733 1999-07-01 Warren Levy <warrenl@cygnus.com>
1735 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1736 to count and revised comments to match.
1737 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1738 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1739 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1740 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1741 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1742 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1744 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1746 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1747 properly as count rather than outlength.
1748 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1749 output on overflow rather than buffer fill.
1750 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1751 if markPos is 0 and there is still room in the buffer.
1753 1999-07-01 Andrew Haley <aph@cygnus.com>
1755 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1756 This is a workaround for a bug in glibc's pthreads package which
1757 doesn't deliver any sigcontext information to a signal handler.
1759 1999-06-24 Tom Tromey <tromey@cygnus.com>
1761 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1762 * java/lang/fdlibm.h (HUGE): Conditionally define.
1764 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1766 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1767 * java/lang/e_log.c: Don't use __uint32_t.
1769 1999-05-27 Eric Christopher <echristo@cygnus.com>
1771 * configure: Rebuilt
1772 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1773 * acconfig.h: Rebuilt
1774 * include/config.h.in: Rebuilt
1776 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1777 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1778 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1779 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1780 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1781 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1782 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1783 and namespace collision with __uint32_t
1785 1999-06-23 Tom Tromey <tromey@cygnus.com>
1787 * java/util/zip/InflaterInputStream.java (read): Throw
1788 ZipException if inflater throws a DataFormatException.
1790 1999-06-23 Warren Levy <warrenl@cygnus.com>
1792 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1793 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1794 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1795 is not final per JDK.
1796 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1798 * java/util/zip/DataFormatException.java: Class extends Exception.
1799 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1800 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1801 * java/util/zip/ZipInputStream.java: ditto.
1802 (closeEntry): Changed method name to match JDK spec.
1804 1999-06-21 Tom Tromey <tromey@cygnus.com>
1806 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1809 * Makefile.in: Rebuilt.
1810 * Makefile.am (toolexeclibdir): Define as libdir when
1812 * configure: Rebuilt.
1813 * configure.in (USE_LIBDIR): New conditional.
1815 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1817 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1818 hostname in returned InetAddress objects.
1819 (getLocalHostname): Fix typo.
1820 * java/net/InetAddress.java (getByName): Set hostname on return
1822 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1825 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1827 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1828 interfaces if host==NULL.
1829 (accept): Throw message with InterruptedIOException.
1830 (getOption): Cache localAddress.
1831 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1832 'address' for DatagramSocket.
1833 (setTimeToLive): Fix compiler warnings.
1834 (getOption): Cache localAddress.
1835 * java/net/Socket.java (getLocalAddress): Don't need local
1836 InetAddress object. Add FIXME comment about calling checkConnect().
1837 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1838 connection queue to 50 as per JDK 1.2 docs.
1839 (ServerSocket(int,int)): Listen on all network interfaces by
1840 default, per JDK 1.2 docs.
1841 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1842 Add localAddress caching.
1844 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1846 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1848 (write(byte[],int,int)): ditto.
1850 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1852 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1854 1999-06-11 Warren Levy <warrenl@cygnus.com>
1856 * mauve-libgcj: Activated java.net Mauve tests.
1858 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1860 * java/net/natInetAddress.cc (aton): Fix typos.
1861 (lookup): Use a bigger buffer size for gethostbyname_r on all
1862 versions of glibc. Updated FIXME comment explaining this.
1863 Modified while loops to not set herr = ERANGE to work around glibc
1864 problems. Use user specified hostname in InetAddress result when
1865 available (consistent with JDK).
1867 1999-06-10 Warren Levy <warrenl@cygnus.com>
1869 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1870 Throw FileNotFoundException instead of IOException.
1872 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1874 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1875 in static field name.
1876 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1877 throughout rather than ParseException.
1879 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1881 * java/lang/Runtime.java (exec): Convert prog name and arguments
1883 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1884 environment array conversion. Preserve current environment if envp
1885 not passed. Preserve PATH unless explicitly specified.
1886 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1887 followed by EOF. Set a flag when a line is terminated by '\r' and
1888 ignore following '\n' if set.
1890 1999-06-02 Warren Levy <warrenl@cygnus.com>
1892 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1893 Ignore context if spec is an absolute URL. Fix braindead
1895 (hashCode): Use JDK 1.2 style algorithm.
1896 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1897 context URL properly.
1899 1999-05-30 Anthony Green <green@cygnus.com>
1901 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1902 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1904 1999-05-28 Warren Levy <warrenl@cygnus.com>
1906 * java/net/DatagramSocket.java (laddr): Removed.
1907 (DatagramSocket): Removed attempts to get or set laddr if null.
1908 (getLocalAddress): Reimplemented per spec.
1909 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1911 (joinGroup): Throw NullPointerException if any argument is null.
1912 (leaveGroup): ditto.
1913 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1914 * java/net/PlainSocketImpl.java (timeout): Added.
1915 (getInputStream): Added FIXME comment on how to support timeouts
1917 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1918 * java/net/Socket.java: Added FIXME comments to identify
1919 conflicting specs between the JCL and JDK 1.2 documents.
1920 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1921 if host is null. Get localport value resolved by kernel if bind
1923 (receive): Implemented support for timeouts in UDP.
1924 (setOption): Implemented based on natPlainSocketImpl version.
1926 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1927 resolved by kernel if bind lport is 0.
1928 (connect): Get localport value resolved by kernel if bind wasn't
1929 done to set localport.
1930 (accept): Implemented support for timeouts for ServerSocket.
1931 (setOption): Save value for SO_TIMEOUT.
1932 (getOption): Return timeout for SO_TIMEOUT.
1934 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1936 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1937 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1938 (setOption): Made abstract.
1939 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1940 to avoid cpp conflicts in native code.
1941 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1942 cpp conflicts in native code.
1943 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1944 * java/net/Socket.java (getLocalAddress): Implemented.
1945 (setTcpNoDelay): Implemented.
1946 (getTcpNoDelay): Implemented.
1947 (setSoLinger): Implemented.
1948 (getSoLinger): Implemented.
1949 (getSoTimeout): Verify class type.
1950 (setSendBufferSize): Implemented.
1951 (getSendBufferSize): Implemented.
1952 (setReceiveBufferSize): Implemented.
1953 (getReceiveBufferSize): Implemented.
1954 (toString): Prepended "Socket".
1955 * java/net/SocketImpl.java (toString): Rewritten.
1956 (getOption): Made abstract.
1957 (setOption): Made abstract.
1958 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1959 (setOption): Implemented.
1960 (getOption): Implemented.
1962 1999-05-26 Warren Levy <warrenl@cygnus.com>
1964 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1965 address when null. Set SO_REUSEADDR for multicasts.
1966 (getSoTimeout): Implemented.
1967 (setSoTimeout): Implemented.
1968 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1969 * java/net/MulticastSocket.java (getInterface): Implemented.
1970 (setInterface): Implemented.
1971 (setTimeToLive): Check for invalid ttl.
1972 (joinGroup): Verify multicast address and security.
1973 (leaveGroup): Verify multicast address and security.
1974 (send): Implemented.
1975 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1981 (getTTL): Implemented as non-native.
1985 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1986 (getSoTimeout): Implemented.
1987 (setSocketFactory): Made synchronized.
1988 * java/net/Socket.java (setSoTimeout): Implemented.
1989 (getSoTimeout): Implemented.
1990 (close): Made synchronized.
1991 (setSocketImplFactory): Made synchronized.
1992 * java/net/SocketImpl.java: Implement SocketOptions interface.
1993 * java/net/natInetAddress.cc: Corrected module name at top of file.
1994 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1995 (bind): Added FIXME.
1996 (peek): Implemented.
2002 (setOption): Implemented for SO_REUSEADDR.
2003 (getOption): Implemented for SO_REUSEADDR.
2005 1999-05-24 Tom Tromey <tromey@cygnus.com>
2007 * java/util/ResourceBundle.java (getBundle): Throw
2008 NullPointerException if baseName is null.
2010 1999-05-22 Tom Tromey <tromey@cygnus.com>
2012 * java/util/zip/ZipInputStream.java (fill): New method.
2013 (compressed_len): New instance variable.
2014 (getNextStream): Set it.
2015 (read): Reset inflater on EOF. Only read via `super' if entry is
2017 (skip): Only skip via `super' if entry is deflated.
2018 * java/util/zip/Deflater.java (last_input_count): Removed.
2019 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
2021 (needsInput): Don't use last_input_count.
2022 (setInput): Don't set last_input_count.
2023 * java/util/zip/natInflater.cc (getRemaining): Return correct
2025 (inflate): Return 0 if input array is length 0.
2026 (setInput): Don't set last_input_count.
2027 * java/util/zip/Inflater.java (last_input_count): Removed.
2029 1999-05-21 Tom Tromey <tromey@cygnus.com>
2031 * Makefile.in: Rebuilt.
2032 * Makefile.am (INCLUDES): Added $(ZINCS).
2033 * configure: Rebuilt.
2034 * configure.in (ZINCS): New subst.
2036 1999-05-21 Andrew Haley <aph@cygnus.com>
2038 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2039 to signal options to allow the same exceptions to be rethrown
2042 1999-05-20 Andrew Haley <aph@cygnus.com>
2044 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2046 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2047 (INIT_FPE): Exception string made more informative.
2048 * include/sparc-signal.h (INIT_FPE): Exception string made more
2050 * testsuite/libjava.lang/Divide_1.java: New file.
2051 * testsuite/libjava.lang/Divide_1.out: New file.
2053 1999-05-19 Tom Tromey <tromey@cygnus.com>
2055 * aclocal.m4, configure: Rebuilt.
2056 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2058 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2061 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2063 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2065 (update): Fail in default case. Always initialize `strat'.
2067 * mauve-libgcj: Enable java.util.zip.
2069 1999-05-18 Warren Levy <warrenl@cygnus.com>
2071 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2072 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2073 PlainDatagramSocketImpl.java, and SocketOptions.java.
2074 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2075 * Makefile.in: Rebuilt.
2077 * java/net/DatagramPacket.java: New file.
2078 * java/net/DatagramSocket.java: New file.
2079 * java/net/DatagramSocketImpl.java: New file.
2080 * java/net/MulticastSocket.java: New file.
2081 * java/net/PlainDatagramSocketImpl.java: New file.
2082 * java/net/SocketOptions.java: New file.
2083 * java/net/natPlainDatagramSocketImpl.cc: New file.
2085 1999-05-18 Tom Tromey <tromey@cygnus.com>
2087 * java/util/zip/ZipOutputStream.java (level): Initial value is
2088 Deflater.DEFAULT_COMPRESSION.
2089 (close): New method.
2090 (closeEntry): Likewise.
2092 (put_version): Likewise.
2093 (write_entry): Likewise.
2094 (put2, put4): Now return `int'.
2095 (comment): Default to empty string.
2096 (bytes_written): New instance variable.
2098 * java/util/zip/ZipEntry.java (setComment): Limit length of
2100 (setCrc): Check CRC validity.
2101 (setExtra): Check argument validity.
2102 (setMethod): Likewise.
2103 (setSize): Likewise.
2104 (ZipEntry): Likewise.
2105 * include/javaprims.h: Updated namespace declarations.
2106 * Makefile.in: Rebuilt.
2107 * Makefile.am (ordinary_java_source_files): Mention new files.
2108 (nat_source_files): Likewise.
2109 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2112 (getInputStream): Handle compressed entries.
2113 * java/util/zip/GZIPOutputStream.java: New file.
2114 * java/util/zip/GZIPInputStream.java: New file.
2115 * java/util/zip/DataFormatException.java: New file.
2116 * java/util/zip/CheckedInputStream.java: New file.
2117 * java/util/zip/CheckedOutputStream.java: New file.
2118 * java/util/zip/InflaterInputStream.java: Implemented.
2119 * java/util/zip/natInflater.cc: New file.
2120 * java/util/zip/Deflater.java: Implemented.
2121 * java/util/zip/natDeflater.cc: New file.
2122 * java/util/zip/DeflaterOutputStream.java: Implemented.
2124 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2125 ZipException, not IOException.
2126 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2129 1999-05-17 Tom Tromey <tromey@cygnus.com>
2131 * java/lang/natSystem.cc (init_properties): URL now points to
2134 1999-05-12 Per Bothner <bothner@cygnus.com>
2136 * java/util/Calendar.java (set): First call computeFields if needed.
2137 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2139 1999-05-12 Tom Tromey <tromey@cygnus.com>
2141 * configure: Rebuilt.
2142 * configure.in: Look for -ldl when using the Boehm collector.
2143 Look for sched_yield in -lposix4.
2145 1999-05-12 Per Bothner <bothner@cygnus.com>
2147 * java/io/File.java (mkdirs): Handle a null parent directory.
2149 1999-05-12 Tom Tromey <tromey@cygnus.com>
2151 * include/javaprims.h: Updated namespace declarations.
2152 * classes.pl (scan): Uniquify class list.
2153 * Makefile.in, configure: Rebuilt.
2154 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2155 (built_java_source_files): New macro.
2156 (nat_headers): Added built_java_source_files.
2157 (javao_files): Likewise.
2158 (EXTRA_libgcj_la_SOURCES): Likewise.
2159 (libgcj.zip): Create built class files.
2160 ($(built_java_source_files:.java=.class)): New target.
2161 (jv_convert_LDADD): Added -L$(here)/.libs.
2162 * configure.in: Create links for ConcreteProcess.java and
2163 natConcreteProcess.cc.
2164 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2165 * java/lang/natEcosProcess.cc: New file.
2166 * java/lang/EcosProcess.java: New file.
2167 * java/lang/PosixProcess.java: New file.
2168 * java/lang/natPosixProcess.cc: New file.
2170 1999-05-12 Warren Levy <warrenl@cygnus.com>
2172 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2173 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2174 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2175 (connect): Throw ConnectException.
2177 1999-05-11 Tom Tromey <tromey@cygnus.com>
2179 * Makefile.in: Rebuilt.
2180 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2181 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2184 * Makefile.in: Rebuilt.
2185 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2186 and it causes problems with libtool.
2188 * Makefile.in, configure: Rebuilt.
2189 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2190 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2191 (jv_convert_DEPENDENCIES): Added ZDEPS.
2192 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2194 (THREADSPEC): Added `-L' to point to qthreads build directory.
2198 * configure, Makefile.in: Rebuilt.
2199 * Makefile.am (toolexeclib_DATA): New macro.
2200 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2201 Recognize --with-system-zlib.
2202 (GCSPEC): New subst.
2203 (THREADSPEC): New subst.
2204 (SYSTEMSPEC): New subst.
2205 (ZLIBSPEC): New subst.
2206 * libgcj.spec.in: New file.
2208 1999-05-10 Tom Tromey <tromey@cygnus.com>
2210 * java/io/InputStreamReader.java (read): If length is 0, return
2211 0. Reset `wpos' and `wcount' when buffer has been filled and
2214 * java/util/Properties.java (save): Removed `FIXME' comment.
2215 (load): Invalid characters in \u now treated as terminators.
2216 Make sure to append character resulting from `\' handling.
2217 Cast to `char' when appending to key or value.
2218 (skip_ws): Inverted test for whitespace.
2220 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2222 (readLine): Likewise.
2223 (readFully): Implemented.
2225 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2227 * java/awt/natToolkit.cc: Added copyright header.
2228 * java/util/zip/InflaterInputStream.java: Added copyright header.
2230 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2232 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2234 (getNextStream): Likewise.
2236 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2238 (getBundle): Don't explicitly throw null pointer exception.
2240 * gnu/gcj/RawData.java: Added copyright header.
2242 * include/jni.h (_Jv_va_list): Always define as va_list.
2244 1999-05-9 Anthony Green <green@cygnus.com>
2246 * java/text/DateFormat.java (computeInstance): Separate time
2248 (getDateTimeInstance): Ditto.
2249 (getDateTimeInstance(int,int)): New method.
2251 * Makefile.in: Rebuilt.
2252 * Makefile.am (ordinary_java_source_files): Add new classes.
2254 * java/util/PropertyResourceBundle.java: New file.
2255 * gnu/gcj/util/EnumerationChain.java: New file.
2257 1999-05-07 Tom Tromey <tromey@cygnus.com>
2259 * acconfig.h (GCJVERSION): New undef.
2260 * java/lang/natSystem.cc (init_properties): Define java.version,
2261 java.class.version, os.name, os.arch, os.version.
2262 Include <sys/utsname.h> if required.
2263 * configure: Rebuilt.
2264 * configure.in: Compute and define GCJVERSION.
2266 * java/lang/natSystem.cc (default_file_encoding): Now static.
2268 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2270 * libtool-version: New file.
2271 * Makefile.in: Rebuilt.
2272 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2275 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2276 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2279 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2280 (we pick those up already).
2282 1999-05-05 Per Bothner <bothner@cygnus.com>
2284 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2285 stub classes. (This is enough to get Kawa to compile against libgcj.)
2287 * gnu/gcj/RawData.java: New class.
2288 * doc/cni.sgml: Document RawData.
2290 * java/util/zip/InflaterInputStream.java: New stub class.
2291 * java/util/zip/ZipInputStream.java: New class. Partly works.
2292 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2293 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2294 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2295 * java/util/zip/ZipOutputStream.java: Start implementation.
2297 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2298 (default_file_encoding): New global, initial value is above macro.
2299 (init_properties): Default file.encoding to default_file_encoding.
2301 * Makefile.am: Add new classes.
2303 1999-05-05 Tom Tromey <tromey@cygnus.com>
2305 * Makefile.in: Rebuilt.
2306 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2307 (clean-local): New target
2309 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2310 (load, loadLibrary): Now native.
2312 * java/lang/Runtime.java (load, loadLibrary): Now native.
2313 (init): New native method.
2314 (Runtime): Use init.
2315 * prims.cc: Include <ltdl.h> if required.
2316 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2318 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2320 * configure.in: Switch from irix threads to posix threads
2321 * configure: Regenerate.
2323 1999-04-30 Tom Tromey <tromey@cygnus.com>
2325 * Makefile.in: Rebuilt.
2326 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2328 1999-04-29 Tom Tromey <tromey@cygnus.com>
2330 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2333 * java/util/Locale.java (Locale(String,String)): Implement in
2334 terms of 3-argument version; variant now defaults to empty
2336 (toString): Assume variant is not null.
2337 (equals): Assume all strings are not null.
2338 (Locale): Throw NullPointerException if any argument is null.
2340 * java/util/ResourceBundle.java (getBundle): Don't try the base
2341 name; now implicit in partialGetBundle call.
2342 (trySomeGetBundle): Search for parent bundles and call setParent
2344 (partialGetBundle): Added `langStop' argument. Use
2345 `Locale.toString' to compute bundleName.
2346 (resource_cache): New static field.
2347 (partialGetBundle): Cache the returned resource bundle. Now
2350 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2353 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2354 * java/text/natCollator.cc (decomposeCharacter): `base' now
2356 * Makefile.in: Rebuilt.
2357 * Makefile.am (ordinary_java_source_files): Added
2358 CollationElementIterator, CollationKey, Collator,
2360 (nat_source_files): Added natCollator.cc.
2361 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2362 (compare): Pass `this' to CollationElementIterator constructor.
2363 (getCollationElementIterator): Likewise.
2364 (ceiNext): Fix off-by-one error when finding initial substring.
2365 (next): Correctly mask off bits when computing return value.
2366 Fixed return values when one string is shorter than the other.
2367 * java/text/CollationElementIterator.java (collator): New field.
2368 (CollationElementIterator): Added collator argument.
2369 (next): Call ceiNext on collator object.
2371 1999-04-26 Tom Tromey <tromey@cygnus.com>
2373 * natCollator.cc: New file.
2375 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2376 (GregorianCalendar): Use it in all constructors.
2377 * java/util/Calendar.java (Calendar): Changed argument name to
2378 `zone' to match code.
2380 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2381 * java/text/CollationKey.java: New file.
2382 * java/text/CollationElementIterator.java: New file.
2383 * java/text/Collator.java: New file.
2384 * java/text/RuleBasedCollator.java: New file.
2386 * Makefile.in: Rebuilt.
2387 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2388 (jv_convert_LDADD): Explicltly add -lm -lc.
2390 1999-04-26 Tom Tromey <tromey@cygnus.com>
2392 * configure, Makefile.in: Rebuilt.
2393 * configure.in: Added AM_PROG_LIBTOOL.
2394 (GCOBJS): Use `.lo' form of files.
2395 (THREADOBJS): Likewise.
2396 (GCDEPS): Use `.la' form of library.
2397 (GCLIBS): Set to be the same as GCDEPS.
2398 (THREADDEPS): Use `.la' form of library.
2399 (THREADLIBS): Set to be the same as THREADDEPS.
2400 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2401 toolexeclib_LIBRARIES.
2402 (libgcj_la_SOURCES): Renamed for libtoolization.
2403 (EXTRA_libgcj_la_SOURCES): Likewise.
2404 (libgcj_la_DEPENDENCIES): Likewise.
2405 (libgcj_la_LIBADD): Likewise.
2406 ($(nat_files)): Use LTCXXCOMPILE.
2407 ($(c_files)): Use LTCOMPILE.
2408 (GCJCOMPILE): New macro.
2410 (.java.o): Likewise.
2411 ($(javao_files)): Likewise.
2412 (jv_convert_LINK): Use LIBTOOL.
2413 (nat_files): Use `.lo' files.
2414 (c_files): Likewise.
2415 (javao_files): Likewise.
2416 (.class.lo): Renamed.
2417 (.java.lo): Likewise.
2418 ($(nat_files)): Depend on %.lo.
2419 ($(c_files)): Likewise.
2420 ($(javao_files)): Likewise.
2421 (jv_convert_LDADD): Link against .lo files.
2422 (jv_convert_DEPENDENCIES): Depend on .lo files.
2423 (maintainer-check): Depend on libgcj.la, but examine .a file.
2424 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2425 (libgcj_la_LDFLAGS): New macro.
2427 1999-04-23 Warren Levy <warrenl@cygnus.com>
2429 * Makefile.am: Added URLDecoder and URLEncoder.
2430 * Makefile.in: Rebuilt.
2432 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2433 setSocketImplFactory to match spec.
2434 * java/net/Socket.java (getSoLinger): Changed return type to
2437 * java/net/URLDecoder.java: New file.
2438 * java/net/URLEncoder.java: New file.
2440 1999-04-21 Tom Tromey <tromey@cygnus.com>
2442 * java/lang/natString.cc (getBytes): Reverted earlier change and
2443 applied correct fix from Per Bothner.
2445 * java/lang/String.java: Don't throw
2446 UnsupportedEncodingException.
2448 * java/lang/natString.cc (getBytes): Correctly size result
2449 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2451 1999-04-20 Andrew Haley <aph@cygnus.com>
2453 * include/sparc-signal.h: new file.
2454 * configure.in: include/sparc-signal.h added.
2455 * configure: regenerated.
2456 * prims.cc (JvRunMain): signal handling code rewritten to be more
2458 (catch_segv): ditto.
2460 * include/i386-signal.h: reorganized.
2461 * include/default-signal.h: reorganized.
2463 1999-04-19 Tom Tromey <tromey@cygnus.com>
2465 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2466 once. From Anthony Green.
2468 1999-04-19 Andrew Haley <aph@cygnus.com>
2470 * Makefile.in: Processed with new automake.
2472 1999-04-19 Tom Tromey <tromey@cygnus.com>
2474 * include/javaprims.h: Removed security namespace.
2476 1999-04-20 Anthony Green <green@cygnus.com>
2478 * java/io/PrintStream.java (println): Remove extra println.
2480 1999-04-19 Anthony Green <green@cygnus.com>
2482 * Makefile.in: Rebuilt.
2483 * Makefile.am (ordinary_java_source_files): Add new security files.
2485 * java/security/NoSuchAlgorithmException.java,
2486 java/security/MessageDigest.java: New files.
2488 * include/javaprims.h: Add security namespace.
2490 1999-04-16 Per Bothner <bothner@cygnus.com>
2492 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2493 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2494 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2495 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2496 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2497 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2498 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2499 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2500 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2501 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2502 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2503 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2504 * Makefile.am: Various changes for new files and conversions.
2506 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2507 New overloading, allows greater efficiency.
2508 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2509 New overloading (for efficiency - avoids copying).
2511 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2512 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2514 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2515 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2516 (writeChars): Don't be quite so eager to flush.
2517 * java/io/PrintStream.java: Rewrite. Now more similar to
2518 OutputStreamWriter, using explicit UnicodeToBytes converter.
2519 Also, autoflush does not need to flush so often.
2520 * java/lang/natString.cc (getBytes): More efficient algorithm.
2521 (init(jbyteArray,jint,jint,jstring)): More efficient.
2523 1999-04-15 Warren Levy <warrenl@cygnus.com>
2525 * Makefile.am (ordinary_java_source_files): Added new Connection
2526 and Handler classes in gnu.gcj.protocol.file package.
2527 * Makefile.in: Rebuilt.
2529 * gnu/gcj/protocol/file/Connection.java: New file.
2530 * gnu/gcj/protocol/file/Handler.java: New file.
2531 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2532 if doInput allows input.
2533 (getOutputStream): Check if doOutput allows output.
2534 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2536 1999-04-14 Tom Tromey <tromey@cygnus.com>
2538 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2539 buffer larger to work around bug.
2540 From Bryce McKinlay <bryce@albatross.co.nz>.
2542 1999-04-14 Andrew Haley <aph@cygnus.com>
2544 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2545 NaNs are always converted to the same long value.
2546 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2549 1999-04-13 Tom Tromey <tromey@cygnus.com>
2551 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2552 instead switch on actual element type.
2554 * Makefile.in: Rebuilt.
2555 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2557 1999-04-13 Andrew Haley <aph@cygnus.com>
2559 * include/i386-signal.h, include/default-signal.h: New files.
2560 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2562 (catch_fpe): New function.
2563 * configure.in: Make link to appropriate include/java-signal.h.
2564 * configure: Rebuilt.
2565 * Makefile.am: include/java-signal.h added to dependency list.
2566 * Makefile.in: Rebuilt.
2568 1999-04-12 Urban Widmark <urban@svenskatest.se>
2570 * java/io/DataInputStream.java (readLine): Corrected handling of
2571 empty lines, from null to "".
2573 1999-04-12 Tom Tromey <tromey@cygnus.com>
2575 * Makefile.in: Rebuilt.
2576 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2578 * java/lang/natSystem.cc (SystemClass): New define.
2579 (init_properties): Synchronize.
2581 1999-04-08 Geoff Berry <gcb@gnu.org>
2583 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2584 * natPlainSocketImpl.cc (accept): Add missing else if check
2587 1999-04-08 Tom Tromey <tromey@cygnus.com>
2589 * java/lang/Long.java (parseLong): Corrected overflow detection
2591 * java/lang/Integer.java (parseInt): Corrected overflow detection
2594 * java/io/PrintStream.java (print): Handle null string argument.
2595 (println): Likewise.
2597 1999-04-07 Warren Levy <warrenl@cygnus.com>
2599 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2600 Set count to 0 when InputStreamReader returns -1 for EOF.
2602 1999-04-07 Tom Tromey <tromey@cygnus.com>
2604 * mauve-libgcj: Omit java.text.Collator,
2605 java.text.RuleBasedCollator.
2607 1999-04-06 Tom Tromey <tromey@cygnus.com>
2609 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2610 IOException from getHttpHeaders().
2611 (getHeaderFieldKey): Likewise.
2613 * include/javaprims.h: Regenerated declarations.
2615 * Makefile.in: Rebuilt.
2616 * Makefile.am (ordinary_java_source_files): Updated for removed
2619 1999-04-06 Per Bothner <bothner@cygnus.com>
2621 * java/util/zip/Adler32.java: New class.
2622 * java/util/zip/CRC32.java: Add working method bodies.
2623 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2624 * Makefile.in: Re-generate.
2626 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2628 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2629 from version in removed www hierarchy.
2630 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2631 version in removed www hierarchy.
2633 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2634 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2635 * gnu/gcj/www/protocol/http: Removed dir.
2636 * gnu/gcj/www/protocol: Removed dir.
2637 * gnu/gcj/www: Removed dir.
2639 * java/net/HttpURLConnection.java: Revised comments to indicate
2640 missing JDK 1.2 methods.
2642 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2643 hierarchy rather than the gnu/gcj/www/protocol one.
2644 * java/net/URLConnection.java: Updated status comments.
2645 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2646 the gnu/gcj/www/content one.
2648 1999-04-06 Per Bothner <bothner@cygnus.com>
2650 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2651 The gen-from-JIS program is in $(CONVERT_DIR).
2653 1999-04-06 Tom Tromey <tromey@cygnus.com>
2655 * mauve-libgcj: Renamed from mauve-libjava.
2657 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2659 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2660 (getResponseMessage): Implemented.
2661 (getResponseVals): New private method.
2663 * java/net/URLConnection.java (getContent): Implemented.
2664 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2666 1999-04-05 Tom Tromey <tromey@cygnus.com>
2668 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2669 (jv_convert_SOURCES): Renamed.
2670 (EXTRA_jv_convert_SOURCES): Likewise.
2671 (jv_convert_LDFLAGS): Likewise.
2672 (jv_convert_LINK): Likewise.
2673 (jv_convert_LDADD): Likewise.
2674 (jv_convert_DEPENDENCIES): Likewise.
2676 * Makefile.in: Rebuilt.
2677 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2680 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2682 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2683 method for comparison.
2685 * java/net/URLConnection.java (getContentLength): Implemented.
2686 (getContentType): Implemented.
2687 (getContentEncoding): Implemented.
2688 (getExpiration): Implemented.
2689 (getDate): Implemented.
2690 (getLastModified): Implemented.
2691 (getHeaderFieldInt): Implemented.
2692 (getHeaderFieldDate): Implemented.
2694 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2696 * java/net/URLConnection.java (toString): Implemented.
2697 (setContentHandlerFactory): Implemented.
2698 (setContentHandler): Wrote new private helper method.
2700 1999-04-01 Tom Tromey <tromey@cygnus.com>
2702 * Makefile.in: Rebuilt.
2703 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2704 of 1999-03-31; we always want to build all the .class files.
2705 Depend on java_source_files, not libgcj.zip.
2706 (nat_headers): Define in terms of ordinary_java_source_files.
2708 1999-03-31 Tom Tromey <tromey@cygnus.com>
2710 * Makefile.in: Rebuilt.
2711 * Makefile.am (special_java_source_files): New macro.
2712 (java_source_files): Use it.
2713 (ordinary_java_source_files): New macro.
2714 (java_source_files): Use it.
2715 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2716 creating headers for those files with hand-maintained headers.
2718 * include/javaprims.h: Regenerated namespace declarations.
2719 * classes.pl (scan): Include [0-9] in regexp for matching class
2720 names; for java.util.zip.CRC32.
2722 * Makefile.in: Rebuilt.
2723 * Makefile.am (nat_headers): Redefined to generate all possible
2726 * java/util/zip/ZipException.java: In package java.util.zip, not
2729 1999-03-30 Tom Tromey <tromey@cygnus.com>
2731 * configure: Rebuilt.
2732 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2733 eh-common.h when not building in tree with gcc.
2735 * Makefile.in: Rebuilt.
2736 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2737 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2739 ($(java_source_files:.java=.class)): New target.
2741 * Makefile.in: Rebuilt.
2742 * Makefile.am (java_source_files): Added
2743 java/net/HttpURLConnection.java and
2744 gnu/gcj/www/protocol/http/Connection.java.
2746 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2748 * gnu/gcj/www/protocol/http/Connection.java: New file.
2749 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2750 * java/net/HttpURLConnection.java: New file.
2751 * java/net/URLConnection.java (getHeaderField): Implemented default.
2752 (getHeaderFieldKey): Implemented default method.
2754 1999-03-30 Tom Tromey <tromey@cygnus.com>
2756 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2758 * java/util/zip/Deflater.java: Added copyright header.
2759 * java/util/zip/CRC32.java: Added copyright header.
2761 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2762 that it is automatically generated.
2763 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2765 * gnu/gcj/convert/BytesToUnicode.java,
2766 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2767 gnu/gcj/convert/Input_EUCJIS.java,
2768 gnu/gcj/convert/Input_UTF8.java,
2769 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2770 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2771 gnu/gcj/convert/Output_8859_1.java,
2772 gnu/gcj/convert/Output_JavaSrc.java,
2773 gnu/gcj/convert/Output_UTF8.java,
2774 gnu/gcj/convert/UnicodeToBytes.java,
2775 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2777 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2779 * Makefile.in, configure: Rebuilt.
2780 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2781 not if test subdir exists.
2782 (--enable-gcj-classes): Removed; gcj always used to generate
2784 (JAVA, JAVAC): Removed.
2785 (--enable-single-compilation, --enable-source-compilation):
2788 (NATIVE): New conditional.
2789 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2790 `install-exec' to work.
2791 (toolexeclibdir): Likewise.
2792 (toollib_LIBRARIES): Likewise.
2793 (AM_MAKEFLAGS): Don't pass tooldir.
2795 (javao_files): Redefined.
2796 (java_source_files): New macro.
2797 (c_source_files): New macro.
2798 (c_files): Redefined in terms of c_source_files.
2799 (java_io_files, java_lang_files, java_net_files, java_text_files,
2800 java_util_files, gnu_files, java_files): Removed.
2801 (class_io_files, class_lang_files, class_net_files,
2802 class_text_files, class_util_files, class_gnu_files, class_files):
2804 (nat_source_files): New macro.
2805 (nat_files): Redefined in terms of nat_source_files.
2806 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2807 java_source_files. Removed no-such-file.c.
2809 (ETAGS_ARGS): Removed.
2810 (TAGS_DEPENDENCIES): Likewise.
2811 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2813 (src_io_files, src_lang_files, src_text_files, src_util_files,
2814 src_gnu_files): Removed.
2815 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2816 (BUILT_SOURCES): Removed.
2817 (header-check): New target.
2819 (noinst_PROGRAMS): New macro.
2820 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2822 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2823 (gen-from-JIS): Build in top directory.
2824 (convert_source_files): New macro.
2825 (convert_SOURCES): New macro.
2826 (convert_LDFLAGS): Likewise.
2827 (convert_LINK): Likewise.
2828 (convert_LDADD): Likewise.
2829 (convert_DEPENDENCIES): Likewise.
2831 (gen-from-JIS): Removed.
2832 (gen_from_JIS_SOURCES): New macro.
2833 (gen_from_JIS_LDADD): Likewise.
2834 (gen_from_JIS_DEPENDENCIES): Likewise.
2836 * configure: Rebuilt.
2837 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2838 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2839 when defining conditional.
2841 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2843 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2844 The Unicode Consortium does not permit their re-distribution.
2845 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2846 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2848 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2850 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2852 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2854 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2855 from Unicode Consortium.
2856 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2857 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2858 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2859 New tables, generated using gen-from-JIS.
2860 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2861 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2862 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2863 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2865 * gnu/gcj/convert/Convert.java: New application.
2866 * Makefile.am, Makefile.in (convert): New program, using Convert.
2867 Build the various JIS conversion tables (in maintainer mode).
2869 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2871 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2873 * java/net/URL.java (URL): Deal with null property value. Use "."
2874 as separator in building class name.
2875 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2876 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2877 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2878 beginning of the substring rather than 'start'.
2880 1999-03-26 Tom Tromey <tromey@cygnus.com>
2882 * include/java-chartables.h: Rebuilt.
2883 * include/java-chardecomp.h: New file.
2884 * chartables.pl: Generate output files directly. Added support
2885 for generating decomposition header.
2886 (canonical_decomposition, full_decomposition): New globals.
2887 (DECOMPOSITION): New constant.
2888 (process_char): Call add_decomposition.
2889 (add_decomposition): New sub.
2890 (write_decompositions): New sub.
2892 1999-03-25 Tom Tromey <tromey@cygnus.com>
2894 * java/text/CollationElementIterator.java: New file.
2896 * mauve-libjava: Omit StringTest.
2898 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2900 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2901 without a '/' when parsing protocol. Handle ref outside of parseURL.
2902 (hashCode): Implemented.
2903 (set): Don't expand -1 to default port.
2904 (getDefaultPort): Removed.
2906 * java/net/URLStreamHandler.java (parseURL): Implemented.
2907 (toExternalForm): Implemented.
2909 1999-03-23 Tom Tromey <tromey@cygnus.com>
2911 * java/text/BreakIterator.java (getSentenceInstance):
2913 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2915 * Makefile.in: Rebuilt.
2916 * Makefile.am (nat_headers): Added IllegalAccessException.
2917 * java/lang/natClass.cc (newInstance): Throw
2918 IllegalAccessException, not IllegalAccessError.
2919 Include IllegalAccessException.h.
2921 1999-03-22 Tom Tromey <tromey@cygnus.com>
2923 * gnu/gcj/text/LineBreakIterator.java: New file.
2924 * java/text/BreakIterator.java (getLineInstance): Implemented.
2926 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2927 copy constructor private.
2928 (previous, next): Removed erroneous comment about line
2930 (previous): Correctly recognize break between non-letter on the
2931 left and letter on the right. Handle apostrophes correctly.
2933 * java/text/BreakIterator.java (getWordInstance): Implemented.
2934 * gnu/gcj/text/WordBreakIterator.java: New file.
2935 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2937 * gnu/gcj/text/BaseBreakIterator.java: New file.
2939 1999-03-19 Tom Tromey <tromey@cygnus.com>
2941 * java/text/BreakIterator.java: New file (partially stubbed out).
2942 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2944 * include/config.h.in: Rebuilt.
2945 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2946 (HAVE_TIMEZONE): Likewise.
2947 * configure: Rebuilt.
2948 * configure.in: Added timezone checks.
2949 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2952 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2954 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2955 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2956 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2957 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2958 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2959 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2960 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2961 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2963 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2964 (BSD_COMP): Kludge needed for Solaris2.
2966 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2968 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2969 URL(java.net.URL, string, URLStreamHandler) and call it with a
2970 null handler. In latter constructor, added SecurityManager check.
2971 (set): Expect null handler on bad protocol rather than an exception.
2972 (setURLStreamHandler): Simplified exception handling; return null
2973 on invalid protocol.
2975 1999-03-18 Tom Tromey <tromey@cygnus.com>
2977 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2979 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2981 Include PrintStream.h, InputStream.h.
2982 * java/lang/System.java (ForwardingInputStream,
2983 ForwardingOutputStream): Removed.
2984 (setErr, setIn, setOut): Now native.
2986 Reverted patch from 1999-02-12 to work around problem in
2988 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2989 (_Jv_eh_free): Use free.
2991 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2992 for path name. Minor formatting fixes.
2994 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2996 * prims.cc (fail_on_finalization): New function.
2997 (_Jv_GCWatch): Likewise.
2999 * prims.cc (JvRunMain): Initialize `nullp'.
3000 (nullp): New global.
3001 (catch_segv): Throw nullp.
3003 * Makefile.in: Rebuilt.
3004 * Makefile.am (ZIP): In "null target" case, zip is found in the
3007 * prims.cc (_Jv_PrimClass): Initialize all elements of class
3011 * java/lang/StringBuffer.java (StringBuffer): Don't use
3012 ensureCapacity to set initial capacity.
3013 (capacity): Subtract `length' from return result.
3015 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
3017 * java/io/natFileDescriptorPosix.cc (open): Throw
3018 FileNotFoundException, but with filename and errno in msg.
3020 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
3022 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
3023 functionality folded into java/net/URL.java per spec.
3025 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
3026 than EEXIST for throwing FileNotFoundException.
3028 * java/net/URL.java: Folded in default URLStreamHandlerFactory
3029 algorithm per JDK 1.2 doc. Added SecurityManager checks.
3031 * java/net/URLStreamHandler.java (parseURL): Added stub.
3033 1999-03-15 Andrew Haley <aph@cygnus.com>
3035 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3038 1999-03-15 Andrew Haley <aph@cygnus.com>
3040 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3043 1999-03-12 Tom Tromey <tromey@cygnus.com>
3045 * prims.cc (catch_segv): New function.
3046 Include <signal.h> if HANDLE_SEGV defined. Include
3047 NullPointerException.h.
3048 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3051 * java/text/SimpleDateFormat.java (equals): Ensure that object is
3052 a SimpleDateFormat, not just a DateFormat.
3053 (defaultCenturyStart, formatData, pattern): Now private.
3054 (append): Now `final'. Use `NumberFormat.format'.
3056 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3058 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3061 * java/text/MessageFormat.java (format): Use default MessageFormat
3063 (parse, parseObject): Wrote.
3065 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3068 1999-03-12 Andrew Haley <aph@cygnus.com>
3070 * java/lang/String.java (indexOf): Replace with native method for
3072 * java/lang/natString.cc (IndexOf): As above.
3074 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3075 Argument check corrected.
3076 (init(jbyteArray,jint,jint,jstring)): Likewise.
3078 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3079 1.2 compliant method.
3081 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3083 * java/lang/Float.java (byteValue, shortValue): Likewise.
3085 1999-03-11 Tom Tromey <tromey@cygnus.com>
3087 * java/text/DecimalFormat.java (parse): Wrote.
3089 * java/text/ChoiceFormat.java (parse): Set error index on
3090 ParsePosition object.
3092 * java/lang/Integer.java (parseInt): Throw exception on overflow
3093 when intermediate result is most negative number. Changed
3094 overflow detection as well.
3095 * java/lang/Long.java (parseLong): Likewise.
3097 * configure, Makefile.in: Rebuilt.
3098 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3099 CANADIAN when building in source tree that doesn't include gcc.
3100 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3103 * java/text/ChoiceFormat.java (nextDouble): Correct some
3104 off-by-one errors when masking or adding.
3106 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3107 parameter, if given. Use `%', not IEEEremainder.
3108 (scanFix): Throw error if multiplier already set.
3109 (computePattern): Wrote.
3111 1999-03-11 Andrew Haley <aph@cygnus.com>
3113 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3115 (nextDouble): Corrected masking logic. Handle interaction between
3116 `next' and negative numbers.
3118 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3120 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3121 * java/net/URL.java: Added general comments.
3123 1999-03-10 Tom Tromey <tromey@cygnus.com>
3125 * java/text/ChoiceFormat.java (parse): Wrote.
3127 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3129 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3130 Create ChoiceFormat objects.
3131 (format): Special-case ChoiceFormat.
3132 (scanFormatElement): Include { and } in generated style string.
3134 1999-03-09 Tom Tromey <tromey@cygnus.com>
3136 * java/text/ChoiceFormat.java: New file.
3138 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3140 * java/net/BindException.java: Created.
3141 * java/net/ConnectException.java: Created.
3142 * java/net/ContentHandler.java: Created.
3143 * java/net/ContentHandlerFactory.java: Created.
3144 * java/net/FileNameMap.java: Created.
3145 * java/net/MalformedURLException.java: Created.
3146 * java/net/NoRouteToHostException.java: Created.
3147 * java/net/ProtocolException.java: Created.
3148 * java/net/ServerSocket.java (@author): Fixed typo.
3149 * java/net/Socket.java (@author): Fixed typo.
3150 * java/net/SocketImpl.java (@author): Fixed typo.
3151 * java/net/SocketImplFactory.java (@author): Fixed typo.
3152 * java/net/URL.java: Created - nearly complete.
3153 * java/net/URLConnection.java: Created - near-empty stub.
3154 * java/net/URLStreamHandler.java: Created - incomplete stub.
3155 * java/net/URLStreamHandlerFactory.java: Created.
3156 * java/net/UnknownServiceException.java: Created.
3158 1999-03-09 Tom Tromey <tromey@cygnus.com>
3160 * java/lang/System.java (ForwardingInputStream): New class.
3161 (ForwardingOutputStream): Likewise.
3162 (in, out, err): Now `final' forwarding streams.
3163 (setIn, setOut, setErr): Use appropriate method on forwarding
3166 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3169 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3171 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3172 * java/util/zip/Checksum.java: New interface (complete).
3173 * java/util/zip/Deflater.java: New class (near-empty stub).
3174 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3175 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3176 * java/util/zip/ZipEntry.java: New class (complete).
3177 * java/util/zip/ZipException.java: New class (complete).
3178 * java/util/zip/ZipFile.java: New class (incomplete stub).
3179 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3181 1999-03-09 Tom Tromey <tromey@cygnus.com>
3183 * java/text/MessageFormat.java (MessageFormatElement): Removed
3184 `public' specifiers.
3186 * java/text/DecimalFormat.java (scanFormat): Increment index
3187 before processing exponential format. Fixed a couple typos in
3189 (format): Correct normalization of exponent.
3191 1999-03-08 Tom Tromey <tromey@cygnus.com>
3193 * java/text/SimpleDateFormat.java (parse): Throw
3194 IllegalArgumentException, not ParseException.
3196 1999-03-05 Tom Tromey <tromey@cygnus.com>
3198 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3199 when constructing DateFormatSymbols. Initialize numberFormat
3200 field of superclass.
3202 * java/text/DateFormat.java (equals): Rewrote.
3203 (getAvailableLocales): New method.
3204 (getDateInstance): New methods.
3205 (getDateTimeInstance): Likewise.
3206 (getTimeInstance): Likewise.
3207 (getInstance): New method.
3208 (computeInstance): New method.
3210 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3212 (safeGetResource): New method.
3213 (DateFormatSymbols): Use Locale paramater.
3214 (equals): Now protected.
3215 Made instance variables private.
3217 1999-03-04 Tom Tromey <tromey@cygnus.com>
3219 * java/text/DecimalFormat.java: New file.
3221 * java/text/NumberFormat.java (groupingUsed,
3222 maximumFractionDigits, maximumIntegerDigits,
3223 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3225 (setDecimalSeparatorAlwaysShown, setMultiplier,
3226 setPositivePrefix): Removed.
3227 (setMinimumFractionDigits, setMaximumFractionDigits):
3229 (format): Now final.
3230 Added many new methods.
3232 * Makefile.in: Rebuilt.
3233 * Makefile.am (gnu_files): New macro.
3234 (java_files): Added gnu_files.
3235 (class_gnu_files): New macro.
3236 (class_files): Use it.
3237 (src_gnu_files): New macro.
3238 (gnu.o): New target.
3239 (javao_files): Added gnu.o.
3241 * gnu/gcj/text/LocaleData_en_US.java: New file.
3242 * gnu/gcj/text/LocaleData_en.java: New file.
3243 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3244 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3245 (safeGetString): New method.
3246 (safeGetChar): Likewise.
3248 1999-03-03 Tom Tromey <tromey@cygnus.com>
3250 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3253 * java/text/FieldPosition.java (equals): Don't check for null
3254 object; instanceof does this.
3256 * java/util/Locale.java (clone): New method.
3259 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3261 * doc/cni.sgml: New file.
3263 1999-03-03 Tom Tromey <tromey@cygnus.com>
3265 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3267 * java/text/DecimalFormatSymbols.java: New file.
3269 1999-03-02 Tom Tromey <tromey@cygnus.com>
3271 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3273 * configure: Rebuilt.
3274 * configure.in: Check for sys/filio.h.
3276 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3278 (load): Always throw UnsatisfiedLinkError.
3279 (loadLibrary): Likewise.
3281 1999-03-02 Anthony Green <green@cygnus.com>
3283 * LIBGCJ_LICENSE: New file.
3284 * LIBJAVA_LICENSE: Removed.
3285 * Many files: libjava now libgcj.
3287 1999-03-02 Tom Tromey <tromey@cygnus.com>
3289 * include/java-chartables.h: Rebuilt.
3290 * chartables.pl (print_block): Make table `const'.
3291 (print_numerics): Likewise.
3292 (print_single_map): Likewise.
3293 (print_all_block): Likewise.
3294 (print_case_table): Likewise.
3295 (print_fast_tables): Likewise.
3296 * java/lang/natCharacter.cc (table_search): `table' argument now
3299 1999-03-01 Tom Tromey <tromey@cygnus.com>
3301 * java/util/Date.java (before, after): Inverted logic.
3303 * java/util/Date.java (parse): Handle case where first character
3304 in string is open parenthesis.
3305 (skipParens): Rewrote.
3307 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3308 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3310 * java/util/Date.java (parse): Correctly compute beginning of
3313 * java/util/Hashtable.java (get): Throw NullPointerException if
3315 (containsKey): Likewise.
3317 * java/util/Properties.java (list): Truncate value to 37
3318 characters and add `...'.
3320 * java/lang/Byte.java (parseByte): Pass `radix' to
3323 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3325 Include System.h, PrintStream.h.
3327 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3330 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3332 * configure: Rebuilt.
3333 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3336 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3338 * java/lang/SecurityManager.java: Import java.net.*.
3339 (checkMulticast): New methods.
3341 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3343 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3344 (nat_files): Add java/lang/reflect/natArray.o.
3345 (nat_headers): Add Field.h and NoSuchFieldException.h.
3347 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3348 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3349 (_Jv_FromReflectedField): Fix buglet.
3350 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3351 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3352 * prims.cc (_Jv_Abort): Include message in print-out.
3354 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3355 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3356 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3358 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3359 * include/config.h.in (HAVE_PWD_H): New feature macro.
3360 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3361 user.name, user.home, user.dir.
3363 * java/lang/reflect/Array.java: New class.
3364 * java/lang/reflect/natArray.cc: New native methods.
3365 * include/javaprims.h: Declare java::lang::reflect::Array.
3367 * java/lang/Class.h (getField): New private method. Add friends.
3368 * java/lang/Class.java (getField): Add private overload.
3369 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3370 getDeclaredMethods): Add working implementations.
3371 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3372 Finish implementation, except for access control.
3374 * java/lang/reflect/Modifier.java (toString): New overload.
3375 * include/java-method.h: New file.
3376 * java/lang/reflect/Method.java (index): Replaced by offset field.
3377 Remove various private fields - get them from _Jv_Field instead.
3378 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3379 New method implementations.
3381 * java/text/NumberFormat.java: Add a bunch of methods.
3383 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3385 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3387 1999-02-26 Tom Tromey <tromey@cygnus.com>
3389 * include/config.h.in: Rebuilt.
3390 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3391 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3392 HAVE_GETHOSTBYADDR_R): New defines.
3393 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3394 gethostbyaddr_r if available.
3396 * configure: Rebuilt.
3397 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3399 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3403 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3404 * prims.cc (_Jv_AllocBytesChecked): New function.
3406 * Makefile.in: Rebuilt.
3407 * Makefile.am (SUBDIRS): Removed `test'.
3408 * configure: Rebuilt.
3409 * configure.in: Don't build test/Makefile.
3410 * test/*: Removed all files.
3412 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3414 * java/lang/reflect/Constructor.java: Make class final to match spec.
3415 * java/lang/reflect/Method.java: Ditto.
3417 1999-02-25 Tom Tromey <tromey@cygnus.com>
3419 * java/net/natInetAddress.cc: Include <sys/types.h> before
3421 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3424 * java/net/natInetAddress.cc: Declare gethostname if required.
3425 * include/config.h.in: Rebuilt.
3426 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3427 * configure: Rebuilt.
3428 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3429 declared in unistd.h.
3431 1999-02-24 Tom Tromey <tromey@cygnus.com>
3433 * Makefile.in: Rebuilt.
3434 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3435 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3436 from private to "none".
3438 * include/javaprims.h: Regenerated class declarations with new
3440 * classes.pl (scan): Only generate decls for java.lang, java.io,
3443 1999-02-24 Tom Tromey <tromey@cygnus.com>
3445 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3446 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3448 1999-02-23 Tom Tromey <tromey@cygnus.com>
3450 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3451 not already defined.
3452 * java/io/natFile.cc (_REENTRANT): Only define if not already
3454 * include/config.h.in: Rebuilt.
3455 * acconfig.h (HAVE_BOEHM_GC): New define.
3456 * configure: Rebuilt.
3457 * configure.in: Define HAVE_BOEHM_GC if using it.
3458 * posix-threads.cc: Include boehm-config.h and gc.h if
3460 * include/posix-threads.h: Added explanatory note about Boehm GC.
3462 * java/io/BufferedReader.java (readLine): Only return null when
3463 EOF seen before any characters read. (In particular, an empty
3464 line should not return null.)
3466 * java/io/BufferedInputStream.java (read): Only refill once per
3469 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3470 java.lang.Character.classify12, java.lang.String.hash,
3471 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3472 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3474 * java/text/StringCharacterIterator.java (setIndex): No error if
3476 (next): Check for `pos == end', not `end - 1'.
3477 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3478 for null text in each constructor.
3479 (clone): Fixed order of arguments to constructor.
3481 1999-02-22 Tom Tromey <tromey@cygnus.com>
3483 * include/config.h.in: Rebuilt.
3484 * acconfig.h (HAVE_INET6): New define.
3485 (HAVE_SOCKLEN_T): Likewise.
3486 * java/net/PlainSocketImpl.java: Added copyright header.
3487 * java/net/natPlainSocketImpl.cc: Added copyright header.
3488 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3490 (connect): Likewise.
3492 (socklen_t): New typedef.
3493 (accept): Use socklen_t.
3494 * java/net/natInetAddress.cc: Added copyright header.
3495 (HAVE_GETHOSTNAME): Don't define.
3496 (HAVE_INET_ADDR): Likewise.
3497 (lookup): Fixed typo.
3498 (aton): Don't use `address' as name of local variable.
3499 (lookup): Use HAVE_INET6, not AF_INET6.
3501 * configure: Rebuilt.
3502 * configure.in: Look for functions inet_aton, inet_addr,
3503 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3504 Check for socklen_t typedef.
3506 * exception.cc (__throw): Declare as __noreturn__.
3508 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3510 * Makefile.am, Makefile.in: Also build java/net.
3511 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3513 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3514 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3516 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3517 * include/cni.h (JvMalloc, JvFree): New inline functions.
3518 (JvThrow): Add __noreturn__ attribute.
3519 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3520 (_Jv_Throw): Add __noreturn__ attribute.
3522 * java/net/PlainSocketImpl.java: Init fnum to -1.
3523 * java/net/ServerSocket.java: Add missing throws clauses.
3524 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3525 don't call create on the latter. Instead, other constructors
3526 have to explicitly call SocketImpl.create.
3527 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3528 from size_t to int, to match ::accept prototype.
3529 * java/net/natInetAddress.cc: Use JvFree rather than free.
3532 1999-02-22 Tom Tromey <tromey@cygnus.com>
3534 * include/javaprims.h: Added new classes.
3535 * java/text/StringCharacterIterator.java: New file.
3536 * java/text/CharacterIterator.java: New file.
3538 * java/text/ParseException.java (errorOffset): Now private.
3540 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3542 * java/net: New package.
3543 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3544 Socket.java,SocketException.java,SocketImpl.java,
3545 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3546 natPlainSocketImpl.cc}: New classes.
3548 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3549 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3550 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3551 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3553 * classes.pl: Translate package into "namespace", not "class".
3554 * include/javaprims.h: Update class list, using "namespace".
3556 1999-02-21 Tom Tromey <tromey@cygnus.com>
3558 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3559 Define when appropriate.
3561 1999-02-20 Tom Tromey <tromey@cygnus.com>
3563 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3564 as a single byte and \u07ff as two bytes.
3565 (_Jv_GetStringUTFLength): Likewise.
3566 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3567 with 0x0f, not 0x1f.
3569 1999-02-19 Tom Tromey <tromey@cygnus.com>
3571 * java/io/DataOutputStream.java (writeUTF): When encoding
3572 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3573 * java/io/DataInputStream.java (readUTF): Mask second byte of
3574 3-byte character with 0x3f, not 0x1f.
3576 * java/io/DataInputStream.java (readLong): Cast result of
3577 readUnsignedByte to long before using.
3579 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3582 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3583 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3584 argument to avoid warning.
3585 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3586 argument to avoid warning.
3588 1999-02-18 Tom Tromey <tromey@cygnus.com>
3590 * mauve-libjava: Omit java.io.DataInputOutput and
3591 java.io.Utf8Encoding.
3593 1999-02-17 Tom Tromey <tromey@cygnus.com>
3595 * Makefile.in: Rebuilt.
3596 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3597 * java/io/natFileDescriptorPosix.cc: Include
3598 InterruptedIOException.h, Thread.h.
3599 (write): Throw InterruptedIOException when required.
3601 * posix-threads.cc: Include <signal.h>.
3602 (_Jv_ThreadInterrupt): New function.
3604 (handle_intr): New function.
3605 (_Jv_InitThreads): Register handle_intr via sigaction.
3606 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3607 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3608 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3609 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3611 1999-02-19 Andrew Haley <aph@cygnus.com>
3613 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3615 (ThreadGroup (int)): Set the maximum priority of the initial
3618 1999-02-18 Andrew Haley <aph@cygnus.com>
3620 * java/lang/natClass.cc (forName): Check for the case where a
3621 classname is the name of an array and call FindClassFromSignature
3624 1999-02-18 Andrew Haley <aph@cygnus.com>
3626 * java/lang/StringBuffer (insert (int, String)): Move up any
3627 characters above the insert position and increase the length of
3628 the string buffer by the length of the argument.
3629 (insert (int, char[])): Likewise.
3630 (insert (int, char)): Likewise.
3631 (StringBuffer (String)): The initial capacity of the string buffer
3632 is 16 plus the length of the argument.
3633 (getChars): Add a JDK 1.2 FIXME.
3635 1999-02-18 Andrew Haley <aph@cygnus.com>
3637 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3640 1999-02-18 Andrew Haley <aph@cygnus.com>
3642 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3643 instead of floating-point equality. This is necessary for
3644 correct floating-point Hashtables.
3645 * java/lang/Float.java (equals): Ditto.
3647 1999-02-16 Tom Tromey <tromey@cygnus.com>
3649 * java/util/Properties.java (list): Truncate value to 37
3650 characters and add "...".
3652 1999-02-16 Tom Tromey <tromey@cygnus.com>
3654 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3655 if initCap is negative.
3656 (contains): Implement JDK1.2-style handling of null argument.
3657 (removeElement): Likewise.
3658 (indexOf): Likewise. Also, correctly handle case where idx is
3660 (lastIndexOf): Likewise.
3662 1999-02-16 Tom Tromey <tromey@cygnus.com>
3664 * java/lang/natString.cc (init): Increment source pointer in
3667 1999-02-16 Tom Tromey <tromey@cygnus.com>
3669 * exception.cc: Include NullPointerException.h.
3670 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3672 1999-02-16 Tom Tromey <tromey@cygnus.com>
3674 * Makefile.in: Rebuilt.
3675 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3677 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3679 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3680 we're compiling canadian.
3681 * configure: Regenerated.
3683 1999-02-12 Andrew Haley <aph@cygnus.com>
3685 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3686 deleted from libgcj.
3688 1999-02-12 Tom Tromey <tromey@cygnus.com>
3690 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3691 (_Jv_eh_free): Don't call free.
3692 Don't declare malloc or free.
3694 1999-02-11 Tom Tromey <tromey@cygnus.com>
3696 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3698 1999-02-11 Andrew Haley <aph@cygnus.com>
3700 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3701 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3702 needed by java.lang.*.
3703 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3704 wf_fmod.o: Removed from libjava.a.
3706 1999-02-11 Tom Tromey <tromey@cygnus.com>
3708 * include/javaprims.h: Reverted previous change; with it
3709 exception.cc can't compile.
3711 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3713 * include/config.h.in: Rebuilt.
3714 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3716 * configure: Rebuilt.
3717 * configure.in: Check for sched_yield. Look in thread library for
3718 all thread functions.
3720 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3721 no recursive mutexes.
3722 (_Jv_MutexDestroy): Define when required.
3723 (_Jv_MutexLock): Likewise.
3724 (_Jv_MutexUnlock): Likewise.
3725 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3726 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3727 (_Jv_Mutex_t): New structure.
3728 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3729 (_Jv_MutexLock): Likewise.
3730 (_Jv_MutexUnlock): Likewise.
3732 1999-02-10 Tom Tromey <tromey@cygnus.com>
3734 * aclocal.m4, configure, Makefile.in: Rebuilt.
3735 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3737 * configure.in: Changed to track library changes.
3738 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3739 (AM_CXXFLAGS): Likewise.
3740 (data_DATA): Likewise.
3741 (AM_CFLAGS): Likewise.
3742 (JC1FLAGS): Likewise.
3743 (libgcj_a_SOURCES): Likewise.
3744 (EXTRA_libgcj_a_SOURCES): Likewise.
3745 (libgcj_a_DEPENDENCIES): Likewise.
3746 (libgcj_a_LIBADD): Likewise.
3747 (libgcj.zip): Likewise.
3748 (CLEANFILES): Likewise.
3749 ($(nat_headers)): Likewise.
3750 (java/lang/FirstThread.h): Likewise.
3751 (java/lang/ThreadGroup.h): Likewise.
3752 (java/lang/String.h): Likewise.
3753 (java/lang/reflect/Field.h): Likewise.
3754 (BUILT_SOURCES): Likewise.
3755 (maintainer-check): Likewise.
3756 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3757 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3759 * java/util/natGregorianCalendar.cc (computeFields): Only use
3760 gmtime_r and localtime_r when configured for posix threads.
3762 * java/io/natFile.cc (get_entry): Only use readdir_r when
3763 configured for posix threads.
3765 * java/util/natGregorianCalendar.cc: Update copyright notice.
3766 * java/util/TimeZone.java: Ditto.
3767 * java/util/SimpleTimeZone.java: Ditto.
3769 1999-02-08 Tom Tromey <tromey@cygnus.com>
3771 * java/io/PrintStream.java (line_separator): New constant.
3772 (print): Use line_separator, not `file.separator' property.
3773 (println): Use line_separator.
3775 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3776 when trying to instantiate Class.
3778 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3779 NullPointerException if argument is null.
3781 * java/lang/Thread.java (setName): Throw NullPointerException, not
3782 IllegalArgumentException.
3785 1999-02-08 Andrew Haley <aph@cygnus.com>
3787 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3788 create new Classes with Class.newInstance().
3790 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3791 semiciolon to end of an array Class's signature if the elements of
3792 the array aren't themselves arrays.
3794 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3795 array of objects is always sizeof(jobject), not the size of the
3796 object to which the reference points.
3798 1999-02-08 Tom Tromey <tromey@cygnus.com>
3800 * java/util/BitSet.java (and): Throw NullPointerException when
3805 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3806 if argument is negative.
3807 (clear): Correctly compute `offset'. Throw
3808 IndexOutOfBoundsException when required.
3810 (get): Likewise. Also, return correct value.
3811 (ensure): Changed meaning of argument.
3812 (toString): Wrap contents in `{}'; put spaces after commas.
3813 (hashCode): Don't try to examine elements off the end of array.
3814 (or): Correctly include bits past the end of this bit set.
3817 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3819 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3820 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3822 1999-02-04 Andrew Haley <aph@cygnus.com>
3824 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3825 '/' in signatures to '.'
3826 (Class::getName): Likewise,
3827 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3829 * java/lang/natFirstThread.cc (run): Change '/' in main's
3832 1999-02-03 Andrew Haley <aph@cygnus.com>
3834 * configure.host: -ffloat-store added when compiling libjava on
3835 x86. fdlibm apparently relies on this.
3837 * java/lang/ThreadGroup.java (add): throw an exception if the
3838 ThreadGroup has been destroyed.
3840 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3843 1999-01-27 Tom Tromey <tromey@cygnus.com>
3845 * java/lang/StringBuffer.java (StringBuffer): Handle null
3848 1999-01-21 Tom Tromey <tromey@cygnus.com>
3850 * java/lang/natFirstThread.cc (run): Don't require main to be
3853 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3855 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3857 1999-01-20 Tom Tromey <tromey@cygnus.com>
3859 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3863 (unintern): Likewise.
3864 (_Jv_NewStringUtf8Const): Likewise.
3866 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3867 Character.isLetter, to see if character is self-quoting. Also,
3868 correctly handle quoted characters.
3869 (parse): Fixed typo. Also now throws ParseException.
3871 1999-01-15 Tom Tromey <tromey@cygnus.com>
3873 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3875 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3876 _Jv_SyncInfo has `init' member.
3878 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3881 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3882 IllegalMonitorStateException if unlock fails.
3884 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3886 (_Jv_NewObjectArray): Likewise.
3888 1999-01-14 Tom Tromey <tromey@cygnus.com>
3890 * java/lang/Character.java (isJavaIdentifierPart): Allow
3891 LETTER_NUMBER characters.
3893 * chartables.pl (process_char): Fixed error messages.
3895 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3896 * chartables.pl: Updated comments. Changed detection of non-digit
3897 numeric values (no longer miss \u00b2 and friends).
3899 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3900 currency symbols and connector punctuation.
3901 (isIdentifierIgnorable): Make 7f-9f ignorable.
3903 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3904 (_Jv_NewPrimArray): Likewise.
3905 (SIZE_T_MAX): New define.
3907 * java/lang/ClassLoader.java (system): Now private and final.
3909 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3912 * configure: Rebuilt.
3913 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3915 * exception.cc: Include gansidecl.h.
3917 1999-01-14 Andrew Haley <aph@cygnus.com>
3919 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3920 corrected: they didn't treat -0.0 and NaNs correctly.
3922 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3924 * nogc.cc: Use calloc to zero out memory.
3926 1999-01-11 Tom Tromey <tromey@cygnus.com>
3928 * java/lang/natClass.cc (isInstance): Return false if this class
3929 is primitive, not if class of `obj' is primitive.
3930 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3932 * java/io/SequenceInputStream.java (close): Handle case where `in'
3935 * java/text/DateFormat.java (format): New method.
3937 * mauve-libjava: Omit java.text.DateFormat.
3939 1999-01-08 Tom Tromey <tromey@cygnus.com>
3941 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3943 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3945 (_Jv_CondNotifyAll): Likewise.
3947 * configure: Rebuilt.
3948 * configure.in: Change --enable-source-compilation logic to work
3951 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3953 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3954 and RUNTESTFLAGS from AM_MAKEFLAGS.
3955 * configure.in: AM_RUNTESTFLAGS added.
3956 * configure.host: AM_RUNTESTFLAGS added.
3957 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3958 * configure: rebuilt.
3959 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3961 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3962 argv[] made conditional because embedded targets may not have
3964 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3965 explanatory comments added in call to super.
3967 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3968 exception thrown in the test harness itself added.
3969 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3971 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3973 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3975 1999-01-06 Tom Tromey <tromey@cygnus.com>
3977 * java/io/natFile.cc (get_entry): New function.
3978 (performList): Use get_entry.
3979 * include/config.h.in: Rebuilt.
3980 * acconfig.h (HAVE_READDIR_R): New define.
3981 * configure: Rebuilt.
3982 * configure.in: Look for readdir_r.
3984 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3986 * java/util/natDate.cc: Added copyright header.
3988 1999-01-05 Tom Tromey <tromey@cygnus.com>
3990 * include/config.h.in: Rebuilt.
3991 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3992 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3993 * configure: Rebuilt.
3994 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3995 unlink, and realpath.
3996 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3997 (stat): Conditionalize on HAVE_STAT.
3999 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
4000 (performMkdir): Conditionalize on HAVE_MKDIR.
4001 (performRenameTo): Conditionalize on HAVE_RENAME.
4002 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
4004 * include/config.h.in: Rebuilt.
4005 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
4006 * configure: Rebuilt.
4007 * configure.in: Check for gmtime_r and localtime_r. For cross
4008 builds, assume they exist.
4010 * mauve-libjava: Include java.text.DateFormatSymbols again.
4011 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
4012 from setAmPmStrings.
4014 * mauve-libjava: Omit java.text.DateFormatSymbols.
4016 1999-01-04 Tom Tromey <tromey@cygnus.com>
4018 * java/io/PushbackReader.java: `off' already includes `numBytes'.
4020 * java/io/LineNumberReader.java (read): Decrement `count' in
4023 * java/io/BufferedWriter.java (write): Correctly determine when
4024 incoming data would overrun buffer. Flush buffer if write causes
4027 * java/io/BufferedOutputStream.java (write): Increment `count'
4028 after copying data into buffer.
4030 * java/io/FilterOutputStream.java (close): Call flush first.
4032 * java/io/PipedReader.java (read): If read causes `out' to catch
4033 up with `in', then set `in' to -1.
4035 * java/io/LineNumberInputStream.java (read): If no bytes read,
4036 return -1. If no bytes requested, return 0.
4038 * java/lang/StringBuffer.java (insert): If `str' is null, use
4041 1998-12-30 Anthony Green <green@cygnus.com>
4044 * LIBJAVA_LICENSE, COPYING.LIB: Created.
4046 1998-12-23 Tom Tromey <tromey@cygnus.com>
4048 * java/io/PushbackInputStream.java (read): `off' already includes
4051 1998-12-17 Tom Tromey <tromey@cygnus.com>
4053 * Makefile.in: Rebuilt.
4054 * Makefile.am (GCJ_canadian): Include target_alias.
4056 * java/lang/natFirstThread.cc (run): Require main's class to be
4059 1998-12-16 Tom Tromey <tromey@cygnus.com>
4061 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4063 * java/util/ResourceBundle.java (getBundle): Throw
4064 NullPointerException if locale argument is null.
4066 * java/lang/natClass.cc (forName): Throw NullPointerException if
4068 Include NullPointerException.h.
4070 1998-12-14 Tom Tromey <tromey@cygnus.com>
4072 * java/lang/Character.java (Character): Implement Comparable.
4073 (compareTo): New methods.
4075 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4076 correct country and language codes.
4077 (UK, US): New constants.
4078 (setDefault): Language codes are lower-case.
4080 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4081 (getDeclaredConstructors): Likewise.
4082 (getDeclaredField): Likewise.
4083 (getDeclaredFields): Likewise.
4084 (getDeclaredMethod): Likewise.
4085 (getDeclaredMethods): Likewise.
4086 (getField): Likewise.
4087 (getFields): Likewise.
4088 (getMethod): Likewise.
4089 (getMethods): Likewise.
4090 * java/lang/Class.java: Declare new methods.
4091 * java/lang/Class.h: Declare new methods.
4093 * java/lang/natString.cc: Removed `#pragma implementation'.
4094 * include/cni.h (_Jv_GetStringChars): New function.
4095 * Makefile.in: Rebuilt.
4096 * Makefile.am (java/lang/String.h): Don't generate definition for
4099 * java/lang/natString.cc: Added `#pragma implementation'.
4101 * Makefile.in: Rebuilt.
4102 * Makefile.am (libjava.zip): Put build directory first in class
4103 path to avoid bug in compiler.
4105 1998-12-14 Anthony Green <green@cygnus.com>
4107 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4109 * include/javaprims.h: Add EventObject, ListResourceBundle and
4112 1998-12-13 Anthony Green <green@cygnus.com>
4114 * mauve-libjava: Run the ResourceBundle tests.
4116 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4119 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4121 * configure.in, configure: Make --enable-gcj-classes and
4122 --enable-source-compilation the default. (Nervously...) Yeah!
4123 Based on a patch from Tom Tromey.
4125 1998-12-13 Tom Tromey <tromey@cygnus.com>
4127 * java/util/EventObject.java: New file.
4128 * java/util/EventListener.java: New file.
4130 * include/javaprims.h: Updated class declarations.
4131 * Makefile.in: Rebuilt.
4132 * Makefile.am (nat_headers): Added Constructor.h.
4133 (java/lang/String.h): Don't inline String::length().
4134 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4135 * java/lang/Class.java (initializeClass, hackRunInitializers,
4136 hackTrampoline): No need to mark `final'.
4137 (getConstructor, getConstructors): Declare.
4138 * java/lang/reflect/Field.java (equals): New method.
4139 * java/lang/natClass.cc (getConstructor): New method.
4140 (getConstructors): Likewise.
4141 Include Method.h, Field.h, Constructor.h.
4142 * java/lang/reflect/Constructor.java: New file.
4143 * java/lang/reflect/Method.java (toString): No space before open
4145 (equals): Simplified.
4147 1998-12-13 Anthony Green <green@cygnus.com>
4149 * java/util/ResourceBundle.java: New file.
4150 * java/util/ListResourceBundle.java: New file.
4152 1998-12-12 Tom Tromey <tromey@cygnus.com>
4154 * java/lang/System.java (in, out, err): Now buffered streams by
4157 * include/javaprims.h: Updated class declarations.
4158 * Makefile.in: Rebuilt.
4159 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4160 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4162 (nat_files): Added natMethod.o.
4163 * java/lang/reflect/natMethod.cc: New file.
4164 * java/lang/reflect/Field.java (Field): Now extends
4166 * java/lang/reflect/AccessibleObject.java: New file.
4167 * java/lang/reflect/InvocationTargetException.java: New file.
4169 1998-12-11 Tom Tromey <tromey@cygnus.com>
4171 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4172 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4173 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4175 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4177 1998-12-09 Tom Tromey <tromey@cygnus.com>
4179 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4182 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4183 character is already titlecase.
4185 * java/lang/Character.java (isJavaLetter): Follow spec.
4186 (isJavaLetterOrDigit): Likewise.
4188 * java/util/GregorianCalendar.java (gregorianCutover): Append
4191 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4193 1998-12-08 Tom Tromey <tromey@cygnus.com>
4195 * java/lang/reflect/Modifier.java (toString): Replace second
4196 `static' with `synchronized'.
4198 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4199 * java/lang/Object.h (Object::hack12_6): Declare.
4200 * java/lang/Object.java (hack12_6): New function.
4202 1998-12-07 Tom Tromey <tromey@cygnus.com>
4204 * include/java-array.h (__JArray::clone): Removed decl.
4205 * prims.cc (__JArray::clone): Removed.
4206 * java/lang/natObject.cc (clone): Incorporate code to clone an
4209 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4210 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4211 Correctly use dtable_method_count.
4213 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4215 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4218 1998-12-06 Anthony Green <green@cygnus.com>
4220 * mauve-libjava: Don't test ResourceBundle.
4222 1998-12-04 Tom Tromey <tromey@cygnus.com>
4224 More JDK 1.2 spec fixes:
4225 * java/util/Date.java (millis): Now private.
4226 * java/text/DateFormat.java (DateFormat): Constructor now
4228 * java/lang/Void.java (Void): New private constructor.
4229 * java/lang/System.java (System): New private constructor.
4230 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4232 (currentClassLoader): New method.
4233 (currentLoadedClass): New method.
4234 * java/lang/Math.java (Math): New private constructor.
4235 * java/lang/Compiler.java (Compiler): New private constructor.
4236 * java/lang/Class.java (Class): New private constructor.
4237 * java/lang/Double.java (toString): Removed access specifier from
4238 two-argument `toString' method.
4240 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4242 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4243 causes it to be flushed from an fp register (where it may be
4244 longer than double precision) to a double in memory. This is
4245 essential to ensure correct rounding behaviour.
4247 1998-12-04 Tom Tromey <tromey@cygnus.com>
4249 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4252 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4253 explaining apparent divergence from JDK 1.2.
4255 1998-12-04 Per Bothner <bothner@cygnus.com>
4257 * include/no-threads.h: Remove unused parameter names.
4258 This silences a bunch of warnings.
4260 1998-12-04 Tom Tromey <tromey@cygnus.com>
4262 * include/config.h.in: Rebuilt.
4263 * acconfig.h (HAVE_CTIME_R): New symbol.
4265 1998-12-03 Tom Tromey <tromey@cygnus.com>
4267 * mauve-libjava: Added many more categories to reject.
4269 Changes to follow JDK1.2 spec:
4270 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4271 setErr, setIn, setOut): No need to be `final'.
4272 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4273 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4274 * java/lang/Object.java (wait): `nanos' argument is an int.
4275 * java/lang/VirtualMachineError.java: Class is abstract.
4276 * java/lang/ThreadDeath.java: Made constructors public.
4277 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4280 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4282 * java/text/DateFormatSymbols.java (getAmPmStrings,
4283 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4285 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4287 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4288 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4289 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4292 * java/lang/IllegalThreadStateException.java
4293 (IllegalThreadStateException): Changed extending class to match spec.
4295 * java/lang/NumberFormatException.java
4296 (java/lang/NumberFormatException): Changed extending class to match
4299 * java/util/Observer.java (Observer): Changed sig to match JCL.
4301 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4303 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4304 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4305 signature to match JDK 1.1 and 1.2.
4307 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4309 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4310 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4311 * Makefile.in, configure: Rebuilt.
4313 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4316 1998-12-02 Tom Tromey <tromey@cygnus.com>
4318 * mauve-libjava: New file.
4320 The remaining `-W -Wall' fixes:
4321 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4323 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4325 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4327 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4329 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4331 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4333 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4335 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4337 * java/lang/mprec.c (Balloc): Removed unused variable.
4338 (mult): Added parentheses per gcc suggestion.
4339 (pow5mult): Likewise.
4344 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4345 suggestion. Added cast to `int' to avoid signed/unsigned
4347 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4349 (IsAssignableFrom): Likewise.
4350 (_Jv_JNI_GetObjectField): Likewise.
4351 (_Jv_JNI_GetByteField): Likewise.
4352 (_Jv_JNI_GetShortField): Likewise.
4353 (_Jv_JNI_GetIntField): Likewise.
4354 (_Jv_JNI_GetLongField): Likewise.
4355 (_Jv_JNI_GetStringLength): Likewise.
4356 (_Jv_JNI_ToReflectedField): Likewise.
4357 (_Jv_JNI_FromReflectedField): Likewise.
4358 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4360 * Makefile.in: Rebuilt.
4361 * Makefile.am (AM_CFLAGS): Define conditionally.
4362 (WARNINGS): New macro.
4363 (AM_CXXFLAGS): Include WARNINGS.
4364 * configure: Rebuilt.
4365 * configure.in (USING_GCC): New conditional.
4367 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4369 * java/lang/Character.java: Changed classification constants to
4370 type `byte' to match JDK 1.2 docs.
4372 1998-12-01 Tom Tromey <tromey@cygnus.com>
4374 Some fixes to be `-W -Wall' clean:
4375 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4376 (_Jv_MarkArray): Likewise.
4377 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4378 (to_upper_title): Likewise.
4379 (isTitleCase): Likewise.
4380 (toTitleCase): Likewise.
4381 (getNumericValue): Likewise.
4382 (isLowerCase): Likewise.
4383 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4384 (avoids compiler warning).
4385 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4387 (getDeclaringClass): Likewise.
4388 (_Jv_LookupInterfaceMethod): Likewise.
4389 (_Jv_NewClass): Removed name of unused parameter.
4390 * exception.cc (_Jv_type_matcher): Removed unused variable.
4391 (_Jv_setup_eh_info): Removed name of unused parameter.
4392 * prims.cc (_Jv_NewArray): Always return a value.
4393 (_Jv_FindClassFromSignature): Likewise.
4394 * include/java-field.h (getNameUtf8Const): Removed name of unused
4396 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4398 (_Jv_ThreadSetPriority): Likewise.
4400 * java/lang/natString.cc (hashChars): Now static.
4402 * java/lang/FirstThread.java (FirstThread): Now final.
4404 * java/io/File.java (performMkdir, performRenameTo): Now private.
4406 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4407 if no time function defined.
4409 * configure: Rebuilt.
4410 * configure.in: Look for ctime_r, ctime.
4411 * java/util/Date.java (toString): Now native.
4412 * java/util/natDate.cc (toString): Rewrote.
4414 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4416 * Add LDFLAGS line to allow TX39 test cases to link when cross
4419 1998-11-23 Anthony Green <green@cygnus.com>
4421 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4422 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4423 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4424 include/java-array.h, include/java-assert.h, include/java-field.h,
4425 include/javaprims.h, include/jni.h, include/jvm.h,
4426 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4427 include/quick-threads.h, java/io/BufferedInputStream.java,
4428 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4429 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4430 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4431 java/io/CharArrayWriter.java,
4432 java/io/CharConversionException.java, java/io/DataInput.java,
4433 java/io/DataInputStream.java, java/io/DataOutput.java,
4434 java/io/DataOutputStream.java, java/io/EOFException.java,
4435 java/io/File.java, java/io/FileDescriptor.java,
4436 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4437 java/io/FileOutputStream.java, java/io/FileReader.java,
4438 java/io/FileWriter.java, java/io/FilenameFilter.java,
4439 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4440 java/io/FilterReader.java, java/io/FilterWriter.java,
4441 java/io/IOException.java, java/io/InputStream.java,
4442 java/io/InputStreamReader.java,
4443 java/io/InterruptedIOException.java,
4444 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4445 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4446 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4447 java/io/PipedReader.java, java/io/PipedWriter.java,
4448 java/io/PrintStream.java, java/io/PrintWriter.java,
4449 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4450 java/io/RandomAccessFile.java, java/io/Reader.java,
4451 java/io/SequenceInputStream.java, java/io/Serializable.java,
4452 java/io/StreamTokenizer.java,
4453 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4454 java/io/StringWriter.java, java/io/SyncFailedException.java,
4455 java/io/UTFDataFormatException.java,
4456 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4457 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4458 java/io/natFileDescriptorPosix.cc,
4459 java/lang/AbstractMethodError.java,
4460 java/lang/ArithmeticException.java,
4461 java/lang/ArrayIndexOutOfBoundsException.java,
4462 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4463 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4464 java/lang/Class.java, java/lang/ClassCastException.java,
4465 java/lang/ClassCircularityError.java,
4466 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4467 java/lang/ClassNotFoundException.java,
4468 java/lang/CloneNotSupportedException.java,
4469 java/lang/Cloneable.java, java/lang/Comparable.java,
4470 java/lang/Compiler.java, java/lang/Double.java,
4471 java/lang/Error.java, java/lang/Exception.java,
4472 java/lang/ExceptionInInitializerError.java,
4473 java/lang/FirstThread.java, java/lang/Float.java,
4474 java/lang/IllegalAccessError.java,
4475 java/lang/IllegalAccessException.java,
4476 java/lang/IllegalArgumentException.java,
4477 java/lang/IllegalMonitorStateException.java,
4478 java/lang/IllegalStateException.java,
4479 java/lang/IllegalThreadStateException.java,
4480 java/lang/IncompatibleClassChangeError.java,
4481 java/lang/IndexOutOfBoundsException.java,
4482 java/lang/InstantiationError.java,
4483 java/lang/InstantiationException.java, java/lang/Integer.java,
4484 java/lang/InternalError.java, java/lang/InterruptedException.java,
4485 java/lang/LinkageError.java, java/lang/Long.java,
4486 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4487 java/lang/NoClassDefFoundError.java,
4488 java/lang/NoSuchFieldError.java,
4489 java/lang/NoSuchFieldException.java,
4490 java/lang/NoSuchMethodError.java,
4491 java/lang/NoSuchMethodException.java,
4492 java/lang/NullPointerException.java, java/lang/Number.java,
4493 java/lang/NumberFormatException.java, java/lang/Object.h,
4494 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4495 java/lang/Process.java, java/lang/Runnable.java,
4496 java/lang/Runtime.java, java/lang/RuntimeException.java,
4497 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4498 java/lang/Short.java, java/lang/StackOverflowError.java,
4499 java/lang/String.java, java/lang/StringBuffer.java,
4500 java/lang/StringIndexOutOfBoundsException.java,
4501 java/lang/System.java, java/lang/Thread.java,
4502 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4503 java/lang/Throwable.java, java/lang/UnknownError.java,
4504 java/lang/UnsatisfiedLinkError.java,
4505 java/lang/UnsupportedOperationException.java,
4506 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4507 java/lang/Void.java, java/lang/natCharacter.cc,
4508 java/lang/natClass.cc, java/lang/natDouble.cc,
4509 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4510 java/lang/natMath.cc, java/lang/natObject.cc,
4511 java/lang/natRuntime.cc, java/lang/natString.cc,
4512 java/lang/natSystem.cc, java/lang/natThread.cc,
4513 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4514 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4515 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4516 java/text/FieldPosition.java, java/text/Format.java,
4517 java/text/NumberFormat.java, java/text/ParseException.java,
4518 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4519 java/util/BitSet.java, java/util/Calendar.java,
4520 java/util/ConcurrentModificationException.java,
4521 java/util/Date.java, java/util/Dictionary.java,
4522 java/util/EmptyStackException.java, java/util/Enumeration.java,
4523 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4524 java/util/Locale.java, java/util/MissingResourceException.java,
4525 java/util/NoSuchElementException.java, java/util/Observable.java,
4526 java/util/Observer.java, java/util/Properties.java,
4527 java/util/Random.java, java/util/SimpleTimeZone.java,
4528 java/util/Stack.java, java/util/StringTokenizer.java,
4529 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4530 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4533 * exception.cc: Include eh-common.h instead of duplicating
4536 1998-11-23 Tom Tromey <tromey@cygnus.com>
4538 * configure.host: Don't add `-O2' to libjava_flags. Only add
4539 `-Os' to libjava_flags once.
4541 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4543 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4544 * Makefile.in: likewise
4545 * acconfig.h: add ECOS conditional for configure.h
4546 * config.h.in: likewise
4547 * configure: add test for --with-ecos
4548 * configure.in: likewise
4549 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4550 rename call to avoid name clash.
4551 * java/lang/natSystem.cc: add eCos clock support.
4552 * java/util/natGregorianCalendar.cc: add eCos support.
4554 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4556 * Makefile.am, Makefile.in, configure.host: tx39 build option
4559 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4561 * java/io/BufferedReader.java: Added more comments for clarity.
4562 (mark): Used more mnemonic name for local var extraBuffSpace.
4564 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4565 confusion with private method of same name in superclass.
4566 (skipRedundantLF): Set fields in special case to avoid infinite
4567 recursion. Check if markPos has been invalidated in special case.
4568 (readLine): Rewritten to use readLine method of superclass.
4569 (skip): Incorporated code from lineEnd.
4571 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4573 * java/io/BufferedReader.java (readLine): New method.
4574 (lineEnd): new private method.
4575 (mark): Track special case for readLine of getting '\r' at the
4582 * java/io/InputStreamReader.java (read): Return number chars skipped
4583 rather than requested.
4585 * java/lang/StringBuffer.java (append): Update count and differentiate
4586 between field and local variable.
4588 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4589 seconds. Deal with military style time.
4590 (parse): Consistently treat all timezones in minutes until final
4591 calculation. Flag as non-local timezone. Return value in milliseconds.
4592 (setTime): Adjust for year offset from 1900.
4593 (UTC): Adjust for year offset from 1900.
4595 1998-11-17 Tom Tromey <tromey@cygnus.com>
4597 * configure: Rebuilt.
4598 * configure.in: Switch on host, not target.
4600 * Makefile.in: Rebuilt.
4601 * Makefile.am (GCJ_no): New macro.
4602 (GCJ): Use @CANADIAN@.
4603 (GCJH_no): New macro
4604 (GCJH_canadian): New macro.
4605 (GCJH): Use @CANADIAN@.
4606 (ZIP_no): New macro.
4607 (ZIP_canadian): New macro.
4608 (ZIP): Use @CANADIAN@.
4609 * aclocal.m4, configure: Rebuilt.
4610 * configure.in (CANADIAN): Compute and subst.
4612 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4614 * java/io/FileDescriptor.java (finalize): Only close file
4615 descriptor if valid.
4617 1998-11-17 Tom Tromey <tromey@cygnus.com>
4619 * prims.cc (_Jv_InitRuntime): Removed.
4621 1998-11-16 Tom Tromey <tromey@cygnus.com>
4623 * java/io/FileOutputStream.java (close): Only close file
4624 descriptor if valid.
4625 (finalize): New method.
4627 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4628 (_Jv_NewPrimArray): Likewise.
4629 * boehm.cc (_Jv_RegisterFinalizer): Use
4630 GC_REGISTER_FINALIZER_NO_ORDER.
4631 (GC_GENERIC_MALLOC): New define.
4632 (_Jv_AllocObj): Use it.
4633 (_Jv_AllocArray): Likewise.
4634 (_Jv_AllocBytes): Likewise.
4635 (_Jv_MarkObj): Just return if vtbl not set.
4636 (_Jv_MarkArray): Likewise.
4637 (MAYBE_MARK): New macro; use everywhere.
4638 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4640 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4642 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4643 to a jlong before calculation to prevent overflow.
4645 1998-11-16 Tom Tromey <tromey@cygnus.com>
4647 * Makefile.in: Rebuilt.
4648 * Makefile.am (nat_headers): Fixed typo.
4650 1998-11-15 Tom Tromey <tromey@cygnus.com>
4652 * java/lang/Class.h (Class::getName): Removed definition.
4653 * Makefile.in: Rebuilt.
4654 * Makefile.am (nat_headers): Added InstantiationException.h,
4655 NoSuchMethodException.h.
4656 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4657 (init_name): New global.
4658 (hackRunInitializers): Use clinit_name.
4659 Include InstantiationException.h, NoSuchMethodException.h.
4660 (newInstance): Do some error checking (but not all). Call
4662 (forName): Throw exception if class not found.
4663 (getName): New method.
4664 (forName): Transform class name from external format to internal
4665 format before lookup.
4667 1998-11-15 Anthony Green <green@cygnus.com>
4669 * java/lang/Class.h (Class::forName): Method is static.
4671 * java/lang/natClass.cc (newInstance): Add simple implementation.
4674 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4676 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4677 int), for compatibility with jc1.
4679 1998-11-14 Tom Tromey <tromey@cygnus.com>
4681 * include/config.h.in: Rebuilt.
4682 * acconfig.h (LINUX_THREADS): New define.
4683 * configure: Rebuilt.
4684 * configure.in: Define LINUX_THREADS if using POSIX threads on
4685 Linux. Look for pthread_mutexattr_setkind_np function.
4686 * posix-threads.cc (throw_cleanup): New function.
4687 (really_start): Push cleanup function.
4688 (_Jv_ThreadCancel): New function.
4689 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4690 (_Jv_ThreadInitData): Set `exception' field in new structure.
4691 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4693 (_Jv_ThreadWait): New function.
4694 (_Jv_InitThreads): Initialize daemon globals.
4695 (FLAG_DAEMON): New macro.
4696 (really_start): Notify daemon_cond when non-daemon thread exits.
4697 Include <java/lang/System.h>.
4698 (struct starter): `object' field now a thread.
4699 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4700 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4701 (_Jv_ThreadWait): Removed definition.
4702 (_Jv_Thread_t): Added `exception' field.
4703 (_Jv_ThreadCancel): Removed definition.
4705 1998-11-13 Tom Tromey <tromey@cygnus.com>
4707 * Makefile.in: Rebuilt.
4708 * Makefile.am (libjava.zip): Compute javac before changing
4711 * Makefile.in: Rebuilt.
4712 * Makefile.am (libjava.zip): Include directory entries.
4714 * Makefile.in: Rebuilt.
4715 * Makefile.am (expanded): New macro.
4718 1998-11-12 Tom Tromey <tromey@cygnus.com>
4720 * prims.cc (clone): New function.
4721 * include/java-array.h (__JArray::clone): Removed definition.
4723 * java/lang/natObject.cc (clone): Don't assert that class is not
4724 an array; array's `clone' method just calls this one.
4726 * Makefile.in: Rebuilt.
4727 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4728 Now creates zip file. Changed all users.
4730 (data_DATA): New macro.
4732 1998-11-11 Tom Tromey <tromey@cygnus.com>
4734 * configure: Rebuilt.
4735 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4737 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4739 * java/io/InputStream.java (reset): Add msg to thrown exception.
4741 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4743 * java/io/LineNumberInputStream.java: Rewritten.
4745 * java/io/StringBufferInputStream.java: Removed extraneous import.
4747 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4749 * java/io/StringBufferInputStream.java: Rewritten.
4751 * java/util/Date.java (parseMonth): Optimize.
4752 (parseDayOfWeek): Created.
4753 (parse): Optimize to use parseDayOfWeek.
4755 1998-11-11 Tom Tromey <tromey@cygnus.com>
4757 * java/lang/StringBuffer.java (append): Handle case where STR is
4760 * include/javaprims.h: Regenerated class declarations.
4762 * configure: Rebuilt.
4763 * configure.in: Added --enable-gcj-classes,
4764 --enable-single-compilation, --enable-source-compilation flags.
4765 * Makefile.in: Rebuilt.
4766 * Makefile.am (java_io_files): New macro.
4767 (java_lang_files): Likewise.
4768 (java_text_files): Likewise.
4769 (java_util_files): Likewise.
4770 (java_files): Use new macros.
4771 (java-io.o): New target.
4772 (java-lang.o): Likewise.
4773 (java-text.o): Likewise.
4774 (java-util.o): Likewise.
4775 (src_io_files): New macro.
4776 (src_lang_files): Likewise.
4777 (src_text_files): Likewise.
4778 (src_util_files): Likewise.
4779 (class_io_files): New macro.
4780 (class_lang_files): Likewise.
4781 (class_text_files): Likewise.
4782 (class_util_files): Likewise.
4783 (class_files): Use new macros.
4784 (javao_files): Define conditionally.
4785 (.java.o): New target.
4786 ($(javao_files)): New target.
4788 (GCJH): Added $(EXEEXT).
4789 (CLASSPATH_ENV): Removed.
4790 (GCJCOMPILE): New macro.
4792 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4794 * java/util/Date.java (parse): Written from scratch.
4796 1998-11-11 Tom Tromey <tromey@cygnus.com>
4798 * java/lang/Throwable.java (toString): Correct sense of test for
4799 determining when to include detail message in result.
4801 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4804 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4806 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4808 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4809 (_Jv_RegisterClass): Use it.
4810 * include/jvm.h (_Jv_RegisterClasses): Declare.
4811 * java/lang/natObject.cc (init): Removed.
4812 (sync_init): Never call _Jv_InitializeSyncMutex.
4813 (_Jv_InitializeSyncMutex): Don't set `init'.
4814 * prims.cc (JvRunMain): Don't run init functions.
4816 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4818 * java/lang/natClass.cc (initializeClass): Set state before
4819 resolving constants.
4821 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4822 (STATE_RESOLVED): New macro.
4823 (initializeClass): Call resolveConstants.
4824 (hackRunInitializers): Don't call resolveConstants.
4825 (_Jv_FindArrayClass): Move short-circuit return for primitive
4826 element types earlier in function.
4828 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4830 * prims.cc (no_memory): New global.
4831 (_Jv_makeUtf8Const): Throw no_memory.
4832 (_Jv_AllocObject): Likewise.
4833 (_Jv_NewObjectArray): Likewise.
4834 (_Jv_NewPrimArray): Likewise.
4835 (JvRunMain): Initialize no_memory.
4837 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4839 * java/io/FileInputStream.java: Corrected date comment.
4840 * java/io/SequenceInputStream.java: Rewritten.
4842 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4844 * java/lang/FirstThread.java (die): New method.
4845 * java/lang/natFirstThread.cc (die): Removed.
4847 (run): Use `DIE', not `die'.
4849 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4851 * java/io/CharArrayReader.java (read): Move check into synchronized
4852 block to prevent a close while in progress.
4855 * java/io/PushbackReader.java (read): Ditto.
4858 * java/io/StringReader.java (mark): Ditto.
4863 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4865 * java/io/PipedInputStream.java: Updated status.
4866 (connect): Added code to prevent infinite recursion and to
4867 differentiate exception causes.
4868 (read): Added code to differentiate exception causes.
4869 (receive): Made exception pass string with the cause.
4871 * java/io/PipedOutputStream.java: Updated status.
4872 (connect): Added code to call connect at the other end of the pipe.
4874 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4876 * java/io/PipedInputStream.java (connect): Throw exception if
4877 already connected to the same output stream.
4878 (read): Do bounds checking first.
4880 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4882 * java/io/PipedInputStream.java: Added private boolean outClosed.
4883 (available): Removed check if output stream is open.
4884 (close): Mark the buffer as empty so available returns 0.
4885 (read): Check if the output stream was closed and then return EOF
4886 when the buffer is empty.
4887 (receive): Mark the output stream as closed when passed a -1.
4889 * java/io/PipedOutputStream.java (close): Notify the input stream
4890 that there's no more data coming.
4891 (connect): Added a FIXME comment to note more coordination needed
4892 with PipedInputStream.
4893 (flush): Added a FIXME comment to mark what this method might do
4896 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4898 * java/io/PipedInputStream.java: Rewritten.
4900 1998-10-30 Tom Tromey <tromey@cygnus.com>
4902 * java/lang/Throwable.java: Rewrote from scratch.
4904 * java/lang/Class.h (Class): Don't mention newMultiArray.
4905 * prims.cc (newMultiArray): Removed.
4906 (_Jv_NewMultiArray): Removed.
4907 (newArray): Removed.
4908 (new_multi_array): New function.
4909 (_Jv_NewMultiArray): Rewrote from scratch.
4911 * include/javaprims.h: Regenerated class declarations.
4912 * classes.pl (scan): Don't declare PrimClass.
4913 * include/cni.h (JvPrimClass): Use new names for classes.
4914 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4915 added _Jv_PrimClass.
4916 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4917 (_Jv_initPrimClass): Removed.
4918 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4919 (_Jv_AllocObject): Added comment.
4920 (_Jv_NewObjectArray): Likewise.
4921 (_Jv_NewPrimArray): Likewise.
4923 1998-10-29 Tom Tromey <tromey@cygnus.com>
4925 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4926 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4928 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4930 * java/lang/natObject.cc (init): New global.
4931 (sync_init): Call _Jv_InitializeSyncMutex if required.
4933 * Makefile.in: Rebuilt.
4934 * Makefile.am (nat_headers): Added ClassLoader.h.
4935 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4936 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4937 internalAddClass, lookupArray no longer friends.
4938 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4939 _Jv_FindArrayClass now friends.
4940 * java/lang/natClass.cc (HASH_LEN): New macro.
4941 (HASH_UTF): Likewise.
4942 (loaded_classes): New global.
4943 (_Jv_FindClass): New function.
4944 (ClassClass): New define.
4945 (_Jv_FindClassInCache): New function.
4946 (_Jv_RegisterClass): Likewise.
4947 (_Jv_NewClass): Likewise.
4949 (ObjectClass): New define.
4950 (CloneableClass): New define.
4951 * prims.cc (_Jv_FindClass): Removed.
4952 (simpleLookupClass): Removed.
4953 (insertClass): Removed.
4954 (CLASSHASHSZ): Removed.
4955 (classPool): Removed.
4956 (_Jv_RegisterClass): Removed.
4957 (internalAddClass): Removed.
4958 (ClassClass): Removed.
4959 (RuntimeClass): Removed.
4960 (lookupArray): Removed.
4961 (CloneableClass): Removed.
4962 (CLASSMAXSIG): Removed.
4963 Rearranged file to group related functions together.
4964 (_Jv_IsInstanceOf): Moved to natClass.cc.
4965 (abort_final): Removed.
4966 Removed some unused includes.
4967 (classFromSig): Removed.
4968 (_Jv_FindClassFromSignature): New function.
4969 (_Jv_initPrimClass): Renamed.
4970 (getClass): Removed.
4972 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4974 * java/io/FileDescriptor.java (finalize): Throws IOException
4975 instead of Throwable.
4977 * java/io/FileInputStream.java: Rewritten.
4979 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4980 at the end of a comment.
4982 1998-10-29 Tom Tromey <tromey@cygnus.com>
4984 * include/javaprims.h: Regenerated class declarations.
4985 * classes.pl (scan): Don't special-case ClassLoader.
4987 * prims.cc (processClass): Removed.
4988 (_Jv_InitClass): Removed.
4989 Removed all CSTATE_ macros.
4990 (resolveConstants): Removed.
4992 (_Jv_NewMultiArray): Cleaned up.
4993 * Makefile.in: Rebuilt.
4994 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4995 * java/lang/Class.h (Class): Declare new methods. processClass no
4997 * java/lang/Class.java (hackTrampoline): New method.
4998 (initializeClass): Declare.
4999 (hackRunInitializers): Declare.
5000 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
5001 (initializeClass): New method.
5002 (hackRunInitializers): New method.
5003 (init_name, void_signature): Moved from prims.cc.
5004 (_Jv_InitClass): New function.
5005 (isAssignableFrom): Don't call processClass.
5006 (STATE_NOTHING): New macro.
5007 (resolveConstants): New function.
5009 (ErrorClass): New define.
5011 * java/lang/Class.java (getClassLoader): Declare.
5012 * java/lang/ClassLoader.java: Rewrote from scratch.
5014 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
5015 AbstractMethodError.h, IllegalAccessError.h,
5016 NoClassDefFoundError.h.
5017 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
5018 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
5019 longer static. Changed return type.
5020 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
5021 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
5022 * prims.cc (findMethodLocal): Removed.
5023 (processClass): Use _Jv_GetMethodLocal.
5025 1998-10-28 Tom Tromey <tromey@cygnus.com>
5027 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
5028 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
5030 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
5031 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
5033 * include/jni.h: Added copyright header.
5034 * include/javaprims.h: Added copyright header.
5035 * include/java-field.h: Added copyright header.
5036 * include/java-array.h: Added copyright header.
5037 * include/cni.h: Added copyright header.
5039 * include/javaprims.h: Regenerated class declarations using
5040 classes.pl; now they are complete.
5041 * classes.pl: New file.
5043 * java/lang/natMath.cc: Include <config.h>.
5044 * java/lang/reflect/natField.cc: Include <config.h>.
5045 * java/util/NativeUtil.java: Removed.
5046 * Makefile.in: Rebuilt.
5047 * Makefile.am (nat_headers): Added Math.h.
5048 * java/lang/Math.h: Removed.
5049 * java/util/natGregorianCalendar.cc: Added copyright header.
5051 * java/lang/natFloat.cc: Added copyright header.
5052 * java/lang/Byte.java: Added copyright header.
5053 * java/lang/Void.java: Added copyright header.
5054 * java/lang/Short.java: Added copyright header.
5056 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5058 * include/javaprims.h (java::io): Added bunch of missing classes.
5060 * java/io/DataInputStream.java (readLine): Added a special case
5061 for handling BufferedInputStream data to reduce the likelihood
5062 of a pushback error.
5063 (skipBytes): Added code to handle negative number of skip bytes.
5065 * java/io/StreamTokenizer.java: Rewritten.
5067 1998-10-28 Tom Tromey <tromey@cygnus.com>
5069 * java/util/natGregorianCalendar.cc (computeFields): Call
5070 getRawOffset as a method.
5072 * include/javaprims.h (java::io): Added FilterOutputStream.
5073 * Makefile.in: Rebuilt.
5074 * Makefile.am (nat_headers): Added PrintStream.h,
5075 FilterOutputStream.h.
5076 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5078 (die): New function.
5079 (run): Die if `main' not found, is not public, or is not static.
5081 * boehm.cc (_Jv_MarkObj): Use new field names.
5082 * include/java-field.h (JvGetFirstInstanceField): Use new field
5084 (JvNumInstanceFields): Likewise.
5085 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5086 (getInterfaces): Likewise.
5087 * prims.cc (CLASS_CONSTANTS): Removed.
5088 (CLASS_CONST_SIZE): Likewise.
5089 (CLASS_CONST_TAG): Likewise.
5090 (CLASS_CONST_DATA): Likewise.
5091 (CLASS_CONST_UTF8): Likewise.
5092 (WORD2UTF): Likewise.
5093 (CLASS_CLASS): Likewise.
5094 (CLASS_PRIM_SIG): Likewise.
5095 (CLASS_ARRAY_CACHE): Likewise.
5096 (HASH_CHARS): Likewise.
5097 (hashClassName): Likewise.
5098 Many changes to use new field names.
5099 * java/lang/Class.h (Class): Renamed fields to track compiler.
5101 1998-10-27 Tom Tromey <tromey@cygnus.com>
5103 * java/lang/natClass.cc: Use #pragma implementation.
5104 (getComponentType): Moved into header.
5105 (getModifiers): Likewise.
5106 (getName): Likewise.
5107 (getSuperclass): Likewise.
5108 (isArray): Likewise.
5109 (isPrimitive): Likewise.
5110 * include/jvm.h (_Jv_FindClass): Declare.
5111 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5112 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5113 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5114 * java/lang/Class.h: Rewrote from scratch.
5115 * prims.cc: Many changes to work with new Class.h.
5116 * include/java-field.h (CLASS_FIELDS): Removed.
5117 (CLASS_SFIELDS): Likewise.
5118 (CLASS_IFIELDS): Likewise.
5119 (CLASS_NFIELDS): Likewise.
5120 (CLASS_NIFIELDS): Likewise.
5121 (CLASS_NSFIELDS): Likewise.
5122 (CLASS_FSIZE): Likewise.
5123 (JvGetFirstInstanceField): Rewrote.
5124 (JvNumInstanceFields): Likewise.
5126 * java/lang/Object.h: Added copyright comment.
5128 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5130 * java/text: New package directory.
5131 * java/text/FieldPosition.java: New class.
5132 * java/text/ParsePosition.java: New class.
5133 * java/text/ParseException.java: New Exception class.
5134 * java/text/Format.java: New class.
5135 * java/text/NumberFormat.java: New (empty placeholder) class.
5136 * java/text/DateFormatSymbols.java: New class (no Locales support).
5137 * java/text/DateFormat.java: New Format class (incomplete).
5138 * java/text/SimpleDateFormat.java: New DateFormat class.
5140 * include/javaprims.h (java::test): Added new package and classes.
5141 * java/util/Calendar.java (clone): New method.
5142 * java/util/Date.java (toString): Added non-native implementation.
5143 (parse): Made public instead of synchronized.
5144 * java/util/natDate.cc (toString): Removed.
5145 * java/util/natGregorianCalendar.cc (computeFields):
5146 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5148 1998-10-27 Tom Tromey <tromey@cygnus.com>
5150 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5152 * prims.cc (lookupArray): Added explanatory comment.
5153 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5154 class. Mark the class of each object.
5155 (_Jv_MarkArray): Mark the object's class.
5157 * configure: Rebuilt.
5158 * configure.in: Create java-gc.h.
5159 * include/boehm-gc.h: New file.
5160 * include/no-gc.h: New file.
5161 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5163 * java/lang/Object.h: Include java-gc.h.
5164 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5165 friends, if defined.
5166 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5168 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5170 1998-10-26 Tom Tromey <tromey@cygnus.com>
5172 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5173 paragraph separators, not numbers.
5175 * java/io/Writer.java (write): Removed write(char) to avoid
5177 * java/util/Properties.java: Rewrote from scratch.
5178 * include/javaprims.h (java::io): Added PrintWriter,
5179 BufferedWriter, PushbackReader.
5181 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5183 * java/lang/System.java: exit() is a static method.
5185 1998-10-26 Tom Tromey <tromey@cygnus.com>
5187 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5189 (_Jv_NewStringUtf8Const): Likewise.
5190 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5191 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5193 * java/lang/Object.h (Object): Add mark_array as friend function.
5194 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5195 _Jv_AllocBytes, to ensure that header is marked.
5196 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5198 (mark_array): Push sync_info field for array.
5200 1998-10-24 Tom Tromey <tromey@cygnus.com>
5202 * java/lang/String.java (String): Updated for StringBuffer
5204 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5206 * java/lang/StringBuffer.java: Renamed fields to conform to
5207 serialization spec: buffer->value, next->count, copy->shared.
5209 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5211 * java/util/TimeZone.java: New class.
5212 * java/util/SimpleTimeZone.java: New class.
5213 * java/util/Locale.java: New file.
5214 * java/util/Calendar.java: Make almost complete.
5215 * java/util/GregorianCalendar.java
5216 * java/util/natGregorianCalendar.cc: New file.
5217 * java/util/Date.java: Re-written from scratch.
5218 * java/util/natDate.cc (setTime): Removed - no longer native.
5219 * include/javaprims.h (java::util): Add new classes.
5220 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5221 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5223 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5225 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5226 returning it as a jint.
5228 1998-10-23 Tom Tromey <tromey@cygnus.com>
5230 * prims.cc (arg_vec, main_group, main_thread): New globals.
5231 (JvRunMain): Use them.
5233 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5235 * java/io/DataInputStream.java: Rewritten.
5237 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5238 tertiary bytes with 0x80 per spec.
5240 1998-10-23 Tom Tromey <tromey@cygnus.com>
5242 * java/lang/String.java (init): Changed name of `copy' argument.
5243 * java/lang/natString.cc (init): Inverted sense of `copy'
5246 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5247 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5248 * boehm.cc (ObjectClass): New define.
5249 (ClassClass): Likewise.
5250 (mark_obj): Special-case Object and Class.
5252 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5254 * java/util/BitSet.java: Rewrote from scratch.
5256 * prims.cc (lookupArray): Removed useless cast.
5258 * java/lang/natObject.cc: Use `#pragma implementation'.
5260 * java/lang/String.java (init): Added `copy' argument.
5261 (String): Look in StringBuffer to find char array.
5262 * java/lang/natString.cc (init): Added `copy' argument.
5263 * java/lang/StringBuffer.java: Rewrote from scratch.
5265 * java/lang/Compiler.java: Rewrote from scratch.
5266 * java/lang/Throwable.java: Don't use NativeLang.
5267 * include/javaprims.h (java::lang): Don't mention NativeLang.
5268 * java/lang/Process.java: Rewrote from scratch.
5269 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5271 (currentClassLoader): Likewise.
5272 (currentLoadedClass): Likewise.
5273 * java/lang/natClass.cc (getClassLoader): Commented out.
5274 * java/lang/Class.java (getClassLoader): Commented out.
5275 * java/lang/Compiler.java: Removed.
5276 * java/lang/NativeLang.java: Removed.
5278 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5279 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5280 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5281 (_Jv_hashUtf8String): Now static.
5282 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5283 name of return type.
5285 * java/lang/Class.h (Class): Declare checkMemberAccess.
5286 * Makefile.in: Rebuilt.
5287 * Makefile.am (nat_headers): Added Member.h.
5288 * java/lang/natClass.cc: Include Member.h.
5289 (getDeclaredClasses): Call checkMemberAccess.
5290 * java/lang/Class.java (checkMemberAccess): Call
5291 SecurityManager.checkMemberAccess.
5293 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5295 * java/lang/SecurityManager.java: Rewritten.
5297 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5299 * java/applet/Applet.java, java/applet/AppletContext.java,
5300 java/applet/AppletStub.java, java/applet/AudioClip.java,
5301 java/awt/AWTError.java, java/awt/AWTException.java,
5302 java/awt/BorderLayout.java, java/awt/Button.java,
5303 java/awt/Canvas.java, java/awt/CardLayout.java,
5304 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5305 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5306 java/awt/Color.java, java/awt/Component.java,
5307 java/awt/Container.java, java/awt/Dialog.java,
5308 java/awt/Dimension.java, java/awt/Event.java,
5309 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5310 java/awt/Font.java, java/awt/FontMetrics.java,
5311 java/awt/Frame.java, java/awt/Graphics.java,
5312 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5313 java/awt/GridLayout.java, java/awt/Image.java,
5314 java/awt/Insets.java, java/awt/Label.java,
5315 java/awt/LayoutManager.java, java/awt/List.java,
5316 java/awt/MediaTracker.java, java/awt/Menu.java,
5317 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5318 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5319 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5320 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5321 java/awt/TextArea.java, java/awt/TextComponent.java,
5322 java/awt/TextField.java, java/awt/Toolkit.java,
5323 java/awt/Window.java, java/awt/image/ColorModel.java,
5324 java/awt/image/CropImageFilter.java,
5325 java/awt/image/DirectColorModel.java,
5326 java/awt/image/FilteredImageSource.java,
5327 java/awt/image/ImageConsumer.java,
5328 java/awt/image/ImageFilter.java,
5329 java/awt/image/ImageObserver.java,
5330 java/awt/image/ImageProducer.java,
5331 java/awt/image/IndexColorModel.java,
5332 java/awt/image/MemoryImageSource.java,
5333 java/awt/image/PixelGrabber.java,
5334 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5335 java/awt/peer/CanvasPeer.java,
5336 java/awt/peer/CheckboxMenuItemPeer.java,
5337 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5338 java/awt/peer/ComponentPeer.java,
5339 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5340 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5341 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5342 java/awt/peer/MenuBarPeer.java,
5343 java/awt/peer/MenuComponentPeer.java,
5344 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5345 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5346 java/awt/peer/TextAreaPeer.java,
5347 java/awt/peer/TextComponentPeer.java,
5348 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5349 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5350 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5351 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5352 java/net/MalformedURLException.java, java/net/NativeNet.java,
5353 java/net/ProtocolException.java, java/net/ServerSocket.java,
5354 java/net/Socket.java, java/net/SocketException.java,
5355 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5356 java/net/URL.java, java/net/URLConnection.java,
5357 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5358 java/net/URLStreamHandlerFactory.java,
5359 java/net/UnknownHostException.java,
5360 java/net/UnknownServiceException.java: Removed.
5362 1998-10-22 Tom Tromey <tromey@cygnus.com>
5364 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5365 finalizer is not Object.finalize.
5366 (internalAddClass): Don't set `final' member of class.
5367 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5368 other places that know about finalize() location.
5369 * java/lang/Class.h (Class): Removed `final' field.
5371 * aclocal.m4, configure: Rebuilt.
5372 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5373 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5375 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5376 * Makefile.in: Rebuilt.
5377 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5379 1998-10-21 Tom Tromey <tromey@cygnus.com>
5381 * java/lang/Object.java (finalize): Move to be first method in
5384 * configure: Rebuilt.
5385 * configure.in (GCINCS): Include contents of boehm-cflags file.
5387 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5389 * java/lang/ArrayIndexOutOfBoundsException.java
5390 (ArrayIndexOutOfBoundsException): Fixed string literal.
5391 * java/lang/StringIndexOutOfBoundsException.java
5392 (StringIndexOutOfBoundsException): Fixed string literal.
5394 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5396 * natFileDescriptorEcos.cc added.
5397 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5399 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5401 * acconfig.h: test for __int32_t and __uint32_t added.
5402 * include/config.h.in: test for __int32_t and __uint32_t added.
5403 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5404 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5405 * configure.in: test for __int32_t and __uint32_t added.
5406 * configure: test for __int32_t and __uint32_t added.
5408 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5410 * configure.in: Test for --enable ecos and link
5411 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5412 natFileDescriptorPosix.cc
5414 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5416 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5418 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5421 * java/io/CharArrayReader.java (close): Synchronize on lock
5422 object per Reader contract.
5423 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5424 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5425 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5426 Ensure that arg passed in isn't negative.
5428 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5429 constructing the superclass.
5431 * java/io/PushbackReader.java (close): Synchronize on lock
5432 object per Reader contract.
5433 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5434 (ready): Synchronize on lock obj. Throw IOException if reader
5436 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5437 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5438 Ensure that arg passed in isn't negative.
5439 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5441 * java/io/StringReader.java: Created.
5443 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5445 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5447 (read): Removed synchronized modifier to match JCL.
5448 (reset): Removed synchronized modifier to match JCL.
5449 (skip): Removed synchronized modifier to match JCL.
5451 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5453 * java/io/PushbackReader.java (PushbackReader): Made
5454 constructors public.
5456 1998-10-17 Tom Tromey <tromey@cygnus.com>
5458 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5459 constructors public.
5461 1998-10-16 Anthony Green <green@cygnus.com>
5463 * aclocal.m4, configure: Rebuilt.
5464 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5466 * configure.host: Rewrote.
5467 * Makefile.in: Rebuilt.
5468 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5469 (AM_CFLAGS): New macro.
5470 ($(c_files)): Use COMPILE macro.
5471 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5472 automake problem(s).
5474 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5476 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5478 * java/io/CharArrayReader.java: Created.
5480 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5482 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5483 size check to allow 0 per JCL.
5485 * java/io/PushbackReader.java: Created.
5487 1998-10-16 Tom Tromey <tromey@cygnus.com>
5489 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5490 <sys/time.h> includes.
5491 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5492 * include/no-threads.h: Conditionalize <unistd.h> include on
5495 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5497 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5500 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5502 * java/io/FilterReader.java: Created.
5504 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5506 * java/io/PushbackInputStream.java: Rewritten.
5508 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5509 that size passed to constructor is legal.
5510 (read): Check that args passed in are legal.
5511 (skip): Rewritten to get rid of the temporary buffer.
5512 (refill): Added marklimit check to grow the buffer.
5514 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5516 (bytesAvail): Removed.
5517 (read): Changed bytesAvail to Math.min.
5518 (skip): Changed bytesAvail to Math.min.
5520 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5521 from the throws clause.
5522 (skip): Rewritten to use a temporary buffer.
5524 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5526 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5529 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5531 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5532 to write the double one word at a time.
5534 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5536 * java/io/BufferedInputStream.java: Rewritten.
5538 1998-10-12 Tom Tromey <tromey@cygnus.com>
5540 * jni.cc: Include config.h and stddef.h.
5542 * java/lang/Class.h (_dispatchTable): Removed again.
5543 Removed all ACC_* defines again.
5545 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5547 * Makefile.am (nat_files): Add netField.o.
5548 (libjava_a_SOURCES): Add jni.cc.
5549 (java/lang/reflect/Field.h): New rule.
5550 * Makefile.in: Re-generated.
5551 * include/javaprims.h: Add some extra class and typedefs.
5552 * include/jni.h: New file.
5555 * include/java-field.h: New file.
5556 * include/jvm.h: #include <java-field.h>.
5557 * boehm.cc: #include <java-field.h>.
5558 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5559 * java/lang/reflect/Member.java: New class.
5560 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5561 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5563 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5565 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5566 testsuite/Makefile.in: Rebuilt.
5567 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5568 * configure.host: Created.
5570 1998-10-10 Tom Tromey <tromey@cygnus.com>
5572 * java/lang/natObject.cc (sync_init): Always allocate a new
5575 1998-10-09 Tom Tromey <tromey@cygnus.com>
5577 * java/io/ByteArrayInputStream.java (mark): Renamed from
5580 * java/io/FileOutputStream.java (finalize): Removed.
5581 * java/io/FileDescriptor.java (finalize): New method.
5583 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5585 * ByteArrayInputStream.java: Corrected status comment.
5587 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5589 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5591 1998-10-08 Tom Tromey <tromey@cygnus.com>
5593 * prims.cc (lookupArray): Use static array to initialize list of
5596 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5598 * prims.cc (lookupArray): Initialize the msize for new
5601 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5603 * configure: Rebuilt.
5604 * configure.in: Check for fsync and sleep.
5605 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5607 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5608 HAVE_SLEEP. Include config.h.
5610 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5611 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5614 1998-10-08 Tom Tromey <tromey@cygnus.com>
5616 * java/io/natFile.cc: Don't include SecurityManager.h.
5617 (performList): Renamed.
5618 (performMkdir): Likewise.
5619 (performRenameTo): Likewise.
5620 (performDelete): Likewise.
5622 * java/io/File.java (performDelete): Renamed from natDelete.
5623 (list): Now written in Java.
5624 (performList): New method.
5625 (performMkdir): New method.
5626 (mkdir): Now written in Java.
5627 (performRenameTo): New method.
5628 (renameTo): Now written in Java.
5630 1998-10-06 Tom Tromey <tromey@cygnus.com>
5632 * Makefile.in: Rebuilt.
5633 * Makefile.am (ETAGS_ARGS): New macro.
5634 (TAGS_DEPENDENCIES): Likewise.
5636 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5638 * Makefile.in: Rebuilt.
5639 * Makefile.am: Use -classpath option with javac.
5641 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5643 * java/io/FileOutputStream.java (finalize): Call
5646 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5648 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5650 * java/lang/mprec.c: Ditto.
5652 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5655 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5657 * java/io/InputStream.java (skip): Make local var i a long.
5659 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5661 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5662 * prims.cc (lookupArray): Use memcpy, not memmove.
5663 * include/config.h.in: Rebuilt.
5664 * acconfig.h (HAVE_MEMCPY): Added.
5665 * configure: Rebuilt.
5666 * configure.in: Check for memcpy again.
5668 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5669 String.compareTo, not ==.
5671 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5672 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5673 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5674 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5675 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5676 into new array's dtable.
5677 (_Jv_AllocObject): Use _Jv_DispatchTable.
5678 (_Jv_NewPrimArray): Likewise.
5679 (_Jv_NewObjectArray): Likewise.
5681 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5683 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5684 offending index value.
5685 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5687 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5688 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5690 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5692 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5694 * java/io/OutputStream.java (write): Use off and len parameters to
5695 output partial byte array.
5697 * java/io/BufferedReader.java, java/io/FileReader.java,
5698 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5699 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5700 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5701 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5703 * include/javaprims.h (java::lang): Added
5704 ExceptionInInitializerError, IllegalStateException,
5705 NoSuchFieldException, and UnsupportedOperationException.
5707 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5709 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5712 * include/java-array.h (__JArray): Added clone method.
5713 * prims.cc (CloneableClass): New define.
5714 (lookupArray): Initialize array class to indicate that it
5715 implements Cloneable.
5717 * java/lang/Class.h: Removed all ACC_* defines.
5718 * prims.cc: Include Modifier.h.
5719 (_Jv_LookupInterfaceMethod): Use methods in
5720 java.lang.reflect.Modifier, not ACC_ defines.
5722 * java/lang/Class.h (Class): Declare getClasses,
5723 getDeclaredClasses, getDeclaringClass, getModifiers,
5724 * java/lang/Class.java: Rewrote from scratch.
5726 * include/javaprims.h (java::lang): Added reflect and
5728 * Makefile.in: Rebuilt.
5729 * Makefile.am (nat_headers): Added Modifier.h.
5731 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5734 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5736 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5737 instead of test and abort.
5739 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5740 remove compiler warning.
5742 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5744 * java/lang/natDouble.cc: zero terminate string.
5745 * strtod.c: Set errno if no digits are found in fraction.
5747 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5749 * java/lang/reflect/Modifier.java: New file.
5751 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5752 * java/lang/VerifyError.java: Rewrote from scratch.
5753 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5754 * java/lang/UnknownError.java: Rewrote from scratch.
5755 * java/lang/StackOverflowError.java: Rewrote from scratch.
5756 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5757 * java/lang/InternalError.java: Rewrote from scratch.
5758 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5759 * java/lang/ExceptionInInitializerError.java: New file.
5760 * java/lang/Error.java: Rewrote from scratch.
5761 * java/lang/ClassFormatError.java: Rewrote from scratch.
5762 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5763 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5764 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5765 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5766 * java/lang/LinkageError.java: Rewrote from scratch.
5767 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5769 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5771 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5772 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5774 * include/cni.h (JvAllocObject): Moved from prims.cc.
5776 * prims.cc (JvAllocObject): Moved to cni.h.
5777 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5778 (finalize_name): Removed.
5780 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5782 * java/lang/Class.h (Class): Added size() method.
5783 * prims.cc (_Jv_MonitorEnter): Removed.
5784 (_Jv_MonitorExit): Removed.
5785 * java/lang/Object.h (JvSyncInfo): Removed.
5786 * Makefile.in: Rebuilt.
5787 * Makefile.am (nat_headers): Added Cloneable.h,
5788 CloneNotSupportedException.h.
5789 * java/lang/Object.h: Rewrote.
5790 * java/lang/natObject.cc: Rewrote from scratch.
5791 * java/lang/Object.java: Rewrote from scratch.
5793 * java/io/natFile.cc: Conditionally include <dirent.h>.
5794 (list): If no <dirent.h>, always return NULL.
5795 * configure: Rebuilt.
5796 * configure.in: Check for dirent.h.
5798 * prims.cc (lookupArray): Don't use sprintf.
5800 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5807 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5808 name conflict with method.
5810 * include/javaprims.h (java::util): Added HashtableEntry.
5812 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5814 * java/util/Hashtable.java: Rewritten.
5816 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5818 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5822 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5825 * posix-threads.cc (_Jv_CondWait): Now returns int.
5826 * include/javaprims.h (java::lang): Added
5827 IllegalMonitorStateException.
5828 * Makefile.in: Rebuilt.
5829 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5830 * include/no-threads.h (_Jv_CondDestroy): Removed.
5831 (_Jv_MutexDestroy): Removed.
5832 (_Jv_CondWait): Now returns int.
5833 (_Jv_CondNotify): Likewise. Added mutex argument.
5834 (_Jv_CondNotifyAll): Likewise.
5835 (_Jv_MutexLock): Always succeed.
5836 (_Jv_MutexUnlock): Likewise.
5837 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5838 (_Jv_HaveMutexDestroy): Define.
5839 (_Jv_CondNotify): Now returns int. Added mutex argument.
5840 (_Jv_CondNotifyAll): Likewise.
5841 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5842 (_Jv_MutexDestroy): Removed.
5843 (_Jv_CondWait): Now returns int.
5844 (_Jv_CondNotify): Likewise. Added mutex argument.
5845 (_Jv_CondNotifyAll): Likewise.
5846 * java/lang/natObject.cc (finalize_sync_info): New function.
5847 (init_mutex): Initialize `init' and register finalizer if
5850 (init_mutex): Use it.
5852 (notifyAll): Use it.
5854 (notify): Throw IllegalMonitorStateException on failure.
5855 (notifyAll): Likewise.
5856 (wait): Likewise. Also, throw InterruptedException if
5858 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5859 InterruptedException.h, IllegalArgumentException.h.
5860 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5862 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5863 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5864 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5865 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5866 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5867 * quick-threads.cc: Renamed all `JvPriv' functions.
5868 * prims.cc: Renamed all `JvPriv' functions.
5869 * posix-threads.cc: Renamed all `JvPriv' functions.
5870 * nogc.cc: Renamed all `JvPriv' functions.
5871 * no-threads.cc: Renamed all `JvPriv' functions.
5872 * boehm.cc: Renamed all `JvPriv' functions.
5873 * include/quick-threads.h: Renamed all `JvPriv' functions.
5874 * include/posix-threads.h: Renamed all `JvPriv' functions.
5875 * include/no-threads.h: Renamed all `JvPriv' functions.
5876 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5878 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5880 (JvPrivCondNotify): Do nothing.
5881 (JvPrivCondNotifyAll): Do nothing.
5883 * prims.cc (processClass): Handle case where state is
5886 * java/lang/natFirstThread.cc: Include <stdlib.h>
5888 * configure: Rebuilt.
5889 * configure.in: Fixed sense of --enable-libjava-debug.
5891 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5892 it can be used afterward by the assertion.
5894 * configure: Rebuilt.
5895 * configure.in: When cross-compiling, assume alloca.
5897 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5898 __builtin_alloca (autoconf docs are wrong here).
5900 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5902 (available): Use `FD_ZERO' (typo fix).
5904 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5906 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5907 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5909 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5910 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5913 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5915 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5917 * java/lang/natDouble.cc: Declare alloca safely.
5919 * configure, include/config.h.in: Rebuilt.
5920 * configure.in: Add alloca check.
5922 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5924 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5925 condition while calling notify.
5926 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5927 (interrupt): Hold mutex for interrupt condition while calling
5930 * java/lang/natString.cc (init): Allocate and try to read `count'
5931 characters, not `count - offset' characters.
5933 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5934 Correctly compute `count'.
5936 * java/lang/Boolean.java (getBoolean): Return false if property
5939 * java/lang/System.java (setProperties): Set prop_init.
5941 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5943 * java/io/PrintStream.java (println): Use line.separator, not
5945 * java/lang/System.java (out, err): Make both autoflush streams.
5946 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5948 * include/config.h.in: Rebuilt.
5949 * acconfig.h (HAVE_MEMCPY): Removed.
5950 * configure: Rebuilt.
5951 * configure.in: Never define HAVE_MEMCPY.
5953 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5955 (_Jv_AllocString): Use JvAllocObject again.
5956 * java/lang/Class.h (thread): New field.
5957 (_Jv_AllocString): No longer a friend.
5958 * prims.cc (processClass): Removed dead code. Changed to more
5959 closely follow the Java Language Specification.
5960 (processClass): Return early if already at the right state.
5962 * prims.cc (JvNewStringUTF): Removed.
5963 * include/cni.h (JvNewStringUTF): New function.
5964 (_Jv_NewStringUTF): Declare as `extern "C"'.
5965 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5967 * java/lang/natDouble.cc: Added copyright info and header
5968 comment. Include <stdlib.h>.
5969 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5970 bytes as are chars in string.
5972 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5974 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5978 * java/lang/System.java (init_properties): Now native.
5979 * java/lang/natSystem.cc (init_properties): New method.
5980 Include java/util/Properties.h.
5982 * Makefile.in: Rebuilt.
5983 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5984 OutputStreamWriter.h, ByteArrayInputStream.h,
5985 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5986 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5987 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5988 Properties.h, Hashtable.h, Dictionary.h.
5991 * include/javaprims.h (java::io): Added Reader, Writer,
5992 InputStreamReader, OutputStreamWriter,
5993 UnsupportedEncodingException, ByteArrayInputStream,
5994 ByteArrayOutputStream, EOFException, SyncFailedException,
5995 PushbackInputStream.
5996 (java::lang): Added Cloneable.
5997 (java::util): Added NoSuchElementException, VectorEnumeration,
5998 Dictionary, HashtableEnumeration, PropertiesEnumeration.
6000 * java/io/PipedReader.java: New file.
6002 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
6004 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
6007 * java/io/io-defs.h: Removed.
6009 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
6010 (FileInputStream): Use new constructor. Can throw IOException.
6012 * java/lang/System.java (getProperty): Don't throw
6013 NullPointerException.
6015 * java/io/RandomAccessFile.java: Rewrote from scratch.
6017 * java/io/natFileDescriptor.cc: Include EOFException.h.
6019 (length): New method.
6020 (getFilePointer): New method.
6022 (available): New method.
6023 * java/io/FileDescriptor.java (SET, CUR): New constants.
6024 (seek, length, getFilePointer, read, available): New decls.
6026 * java/io/PipedWriter.java: New file.
6027 * java/io/StringWriter.java: New file.
6028 * java/io/CharArrayWriter.java: New file.
6029 * java/io/CharConversionException.java: New file.
6030 * java/io/BufferedWriter.java: New file.
6031 * java/io/FilterWriter.java: New file.
6032 * java/io/FileWriter.java: New file.
6034 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6035 OutputStreamWriter.h, NullPointerException.h,
6036 ByteArrayInputStream.h, InputStreamReader.h.
6037 (getBytes): New method.
6038 (init): Throw NullPointerException.
6039 (init): New function.
6040 * java/lang/String.java (getBytes): Added missing decl.
6041 (getBytes): New method.
6042 (String): Added byte[]-based constructors.
6043 (copyValueOf): Wrote.
6044 (init): Declare variant which takes byte array and encoding.
6045 Import java.io.UnsupportedEncodingException.
6047 * java/io/File.java: Rewrote from scratch.
6048 * java/io/natFileDescriptor.cc: Rewrote from scratch.
6049 * java/io/FileDescriptor.java: Rewrote from scratch.
6050 * java/io/FilenameFilter.java: Rewrote from scratch.
6052 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6054 * java/io/SyncFailedException.java: New file.
6055 * java/io/UTFDataFormatException.java: Rewrote from scratch.
6056 * java/io/InterruptedIOException.java: Rewrote from scratch.
6057 * java/io/FileNotFoundException.java: Rewrote from scratch.
6058 * java/io/EOFException.java: Rewrote from scratch.
6059 * java/io/IOException.java: Rewrote from scratch.
6060 * java/io/PrintStream.java: Rewrote from scratch.
6061 * java/io/DataOutputStream.java: Rewrote from scratch.
6062 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6063 * java/io/FilterOutputStream.java: Rewrote from scratch.
6064 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6065 * java/io/PipedOutputStream.java: Rewrote from scratch.
6066 * java/io/FileOutputStream.java: Rewrote from scratch.
6067 * java/io/OutputStream.java: Rewrote from scratch.
6068 * java/io/DataOutput.java: Rewrote from scratch.
6070 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6072 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6074 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6076 * configure.in: Add --enable-libjava-debug
6078 * Makefile.am (nat_headers): Add java/lang/Float.h and
6081 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6083 * Makefile.in, configure, include/config.h.in: Rebuilt.
6085 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6087 * java/lang/Float.java: Rewritten
6088 * java/lang/Double.java: Rewritten
6089 * java/lang/natFloat.cc: toString() added.
6090 * java/lang/natDouble.cc: toString() added.
6091 * java/lang/natDouble.cc: doubleValueOf() added.
6092 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6093 java/lang/strtod.c: added.
6094 * ieeefp.h: __sparc added.
6095 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6097 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6099 * include/javaprims.h (java::lang): Added
6100 CloneNotSupportedException.
6102 * java/lang/Object.java (clone): No longer native. Implemented.
6103 * java/lang/natObject.cc (clone): Removed.
6105 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6107 * prims.cc: Don't make definitions `extern "C"'.
6108 (_Jv_RegisterClass): Renamed from registerClass.
6109 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6110 (_Jv_NewArray): Likewise.
6111 (_Jv_NewMultiArray): Likewise.
6112 (_Jv_CheckCast): Likewise.
6113 (_Jv_LookupInterfaceMethod): Likewise.
6114 (_Jv_CheckArrayStore): Likewise.
6115 (_Jv_RegisterClass): Likewise.
6117 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6118 * configure: Rebuilt.
6119 * configure.in: Don't check for fmod; it is provided by the fdlibm
6121 * prims.cc (fmod): Removed.
6123 * java/lang/natString.cc (charAt): Use _Jv_uint.
6124 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6125 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6126 (equalUtf8Consts): Likewise.
6127 (internalAddClass): Use _Jv_uint.
6128 (processClass): Likewise.
6129 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6130 (_Jv_uint): Renamed from uint32.
6131 (struct _Jv_Utf8Const): Changed members to use new type names.
6133 * configure: Rebuilt.
6134 * configure.in: Don't check for memcpy. Require memmove and a way
6136 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6138 (currentTimeMillis): Don't use #error.
6140 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6142 * java/lang/Math.java: static member random renamed to random_ to
6143 avoid conflict with member function of the same name.
6144 * include/javaprims.h: java.util.Random added.
6146 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6148 * include/java-chartables.h: Regenerated.
6149 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6152 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6154 * java/lang/Math.java: Rewritten.
6155 * java/lang/natMath.cc: New file.
6156 * Files added from fdlibm:
6157 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6158 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6159 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6160 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6161 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6162 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6163 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6164 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6165 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6166 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6167 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6168 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6169 java/lang/k_cos.c, java/lang/sf_ceil.c,
6170 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6171 java/lang/ieeefp.h, java/lang/fdlibm.h
6172 * Makefile.am: rules added for compiling C files from fdlibm.
6174 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6176 * chartables.pl: Minor documentation fixes.
6178 * configure: Rebuilt.
6179 * configure.in: Fixed --help output for --enable-fast-character.
6181 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6183 * configure: Rebuilt.
6184 * configure.in: Recognize --enable-fast-character.
6185 * acconfig.h (COMPACT_CHARACTER): New define.
6186 * include/config.h.in: Rebuilt.
6187 * include/java-chartables.h: New file.
6188 * Makefile.in: Rebuilt.
6189 * Makefile.am (nat_files): Added natCharacter.o.
6190 * java/lang/natCharacter.cc: New file.
6191 * chartables.pl (set_attribute): New function.
6192 (@attributes, @second_attributes): New globals.
6193 ($ROMAN_START, $ROMAN_END): Likewise.
6194 (process_char): Call set_attribute when required.
6195 (print_char): Just print hex value.
6196 (print_block): Generate C++ syntax.
6197 (print_numerics): Likewise.
6198 (print_single_map): Likewise.
6199 (print_all_block): Likewise.
6200 (print_case_table): Likewise.
6201 (print_fast_tables): New function.
6202 Generate C++ code suitable for a header file.
6203 * java/lang/Character.java (table_search): Removed.
6204 (digit_value): Now native.
6205 (getNumericValue): Likewise.
6206 (getType): Likewise.
6207 Removed all automatically-generated tables.
6208 (Tamil_Digit_One): Removed.
6209 (isSpaceChar): Now native.
6210 (isTitleCase): Likewise.
6211 (isLowerCase): Likewise.
6212 (isUpperCase): Likewise.
6213 (toLowerCase): Likewise.
6214 (toTitleCase): Likewise.
6215 (toUpperCase): Likewise.
6216 (isDefined): Fixed sense of test.
6218 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6220 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6222 (regionMatches): Likewise.
6224 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6226 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6228 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6230 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6233 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6236 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6238 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6240 * prims.cc (instanceof_class): Removed.
6241 (instanceof_array): Likewise.
6242 (instanceof): Likewise.
6243 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6244 (_Jv_CheckCast): Likewise.
6245 * java/lang/natClass.cc (isAssignableFrom): New method.
6246 * java/lang/Class.java (isAssignableFrom): Now native.
6248 * include/cni.h (JvThrow): Use `extern inline'.
6249 (JvAllocObject): Likewise.
6250 (JvInitClass): Likewise.
6252 * java/lang/natSystem.cc (arraycopy): Only check class of source
6255 * prims.cc (_Jv_CheckArrayStore): Wrote.
6256 (_Jv_MonitorEnter): Prefer `JvThrow'.
6257 Include ArrayStoreException.h.
6258 (_Jv_CheckCast): Indentation cleanup.
6260 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6262 * chartables.pl: New file.
6263 * java/lang/Character.java: Rewrote from scratch.
6265 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6267 * java/lang/ArithmeticException.java,
6268 java/lang/ArrayIndexOutOfBoundsException.java,
6269 java/lang/ArrayStoreException.java,
6270 java/lang/ClassCastException.java,
6271 java/lang/ClassNotFoundException.java,
6272 java/lang/CloneNotSupportedException.java,
6273 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6274 java/lang/IllegalArgumentException.java,
6275 java/lang/IllegalMonitorStateException.java,
6276 java/lang/IllegalThreadStateException.java,
6277 java/lang/IndexOutOfBoundsException.java,
6278 java/lang/InstantiationException.java,
6279 java/lang/InterruptedException.java,
6280 java/lang/NegativeArraySizeException.java,
6281 java/lang/NoSuchMethodException.java,
6282 java/lang/NullPointerException.java,
6283 java/lang/NumberFormatException.java,
6284 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6285 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6287 * java/lang/IllegalStateException.java,
6288 java/lang/NoSuchFieldException.java,
6289 java/lang/UnsupportedOperationException.java: Created.
6291 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6293 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6294 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6296 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6298 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6300 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6302 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6304 * Makefile.in: Rebuilt.
6306 * include/javaprims.h (java::lang): Added
6307 StringIndexOutOfBoundsException.
6309 * java/lang/String.java: Added header comment and FIXME comment for
6310 missing constructors/methods.
6311 (endsWith): Adjusted offset into string to look at just the last chars.
6312 Commented out undocumented method.
6314 * java/lang/natString.cc: Added includes for
6315 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6316 (String::init): Throw StringIndexOutOfBoundsException.
6317 (String::charAt): Throw StringIndexOutOfBoundsException.
6318 (String::substring): Throw StringIndexOutOfBoundsException.
6319 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6320 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6321 (String::compareTo): Return difference/offset between chars/strings.
6323 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6325 * java/lang/Boolean.java (TYPE): Added comment.
6327 * java/lang/Byte.java (decode): Added - commented out until dependent
6328 code for Integer is written.
6329 (compareTo): JDK 1.2 methods written.
6330 (hashCode): Added comment to note that values have been verified.
6332 * java/lang/Short.java (decode): Added - commented out until dependent
6333 code for Integer is written.
6334 (compareTo): JDK 1.2 methods written.
6335 (hashCode): Added comment to note that values have been verified.
6337 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6339 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6341 * include/javaprims.h (java::lang): Added VirtualMachineError,
6343 * Makefile.in: Rebuilt.
6344 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6345 VirtualMachineError.h.
6346 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6347 (lookupArray): Likewise.
6348 (makeUtf8Const): Likewise.
6349 (_Jv_AllocObject): Likewise.
6350 (_Jv_NewObjectArray): Likewise.
6351 Include OutOfMemoryError.h.
6353 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6354 to use JvNewStringLatin1.
6356 * java/io/io-defs.h: Include java/lang/IOException.h.
6357 * Makefile.in: Rebuilt.
6358 * Makefile.am (nat_headers): Added
6359 ArrayIndexOutOfBoundsException.h,
6360 ClassFormatError.h,ClassNotFoundException.h,
6361 ClassCircularityError.h, ClassCastException.h,
6362 IncompatibleClassChangeError.h, AbstractMethodError.h,
6363 IllegalAccessError.h, LinkageError.h, Error.h,
6364 NegativeArraySizeException.h, IOException.h.
6365 * include/cni.h (SignalError): Removed declaration.
6366 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6367 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6368 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6369 (newInstance): Likewise.
6370 (forName): Likewise.
6371 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6373 (read): Use JvThrow, not SignalError.
6378 (open_read): Likewise.
6379 (open_write): Likewise.
6382 (newstr): New function.
6383 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6385 (lastModifiedUnchecked): Likewise.
6386 (lengthUnchecked): Likewise.
6387 * include/javaprims.h (sorry): Removed declaration.
6388 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6389 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6390 ClassCastException, IncompatibleClassChangeError,
6391 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6392 * prims.cc (instanceof_array): Use JvFail, not sorry.
6394 Include ArrayIndexOutOfBoundsException.h,
6395 ClassFormatError.h,ClassNotFoundException.h,
6396 ClassCircularityError.h, ClassCastException.h,
6397 IncompatibleClassChangeError.h, AbstractMethodError.h,
6398 IllegalAccessError.h, NegativeArraySizeException.h.
6399 (_Jv_ThrowBadArrayIndex): Implemented.
6400 (JvNewStringUTF): Use JvFail, not sorry.
6401 (_Jv_FindClass): Likewise.
6402 (_Jv_NewArray): Likewise.
6403 (throwException): Removed.
6404 (getClass): Use JvThrow.
6405 (processClass): Likewise.
6406 (_Jv_NewObjectArray): Likewise.
6407 (_Jv_NewMultiArray): Likewise.
6408 (_Jv_CheckCast): Likewise.
6409 (_Jv_LookupInterfaceMethod): Likewise.
6410 (SignalError): Removed.
6411 (getClass): Use _Jv_NewStringUtf8Const to create String.
6413 * java/lang/natSystem.cc (arraycopy): Throw
6414 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6416 * Makefile.in: Rebuilt.
6417 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6419 * include/java-array.h: Mention gcjh, not gjavah.
6421 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6422 (canReadUnchecked): Likewise.
6423 (canWriteUnchecked): Likewise.
6424 (isFileUnchecked): Likewise.
6425 * java/io/natFileDescriptor.cc: Don't include cni.h.
6427 * java/lang/Thread.java (run__): Declare.
6428 * java/lang/natThread.cc (run__): New method, to avoid compiler
6430 (start): Use run__, not run_.
6432 * java/io/io-defs.h: Include cni.h and jvm.h.
6434 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6436 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6437 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6438 to natString.cc (with suitable renaming, inlines etc).
6439 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6440 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6441 * java/lang/String.h: Removed - now generated using gjavah.
6442 * java/lang/String.java: Re-written from scratch. Many native methods.
6443 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6444 * java/lang/natString.cc: Many functions re-written for "compact
6445 strings" representation, or native java.lang.String methods added.
6446 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6447 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6448 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6449 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6450 * include/cni.h: Add inline method.
6451 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6452 * include/javaprims.h: Moved some stuff frm String.h.
6453 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6454 * Makefile.am (nat_header): Added Character.h and String.h.
6455 (String.h): Add new rule.
6457 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6459 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6461 * posix-threads.cc: Include cni.h, jvm.h.
6462 * quick-threads.cc: Include cni.h, jvm.h.
6463 * nogc.cc: Include cni.h, not javaprims.h.
6464 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6465 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6466 include java-assert.h.
6467 * java/lang/natSystem.cc: Include cni.h. Don't include
6469 * java/lang/natRuntime.cc: Include cni.h. Don't include
6471 * prims.cc: Rearranged #include ordering. Don't include
6472 java-array.h or java-assert.h.
6473 * boehm.cc: Include config.h, cni.h.
6474 * exception.cc: Include config.h, cni.h.
6475 * include/jvm.h: Include java-assert.h.
6476 * include/cni.h: Include java/lang/Object.h. Don't include
6477 java-threads.h or java-array.h.
6479 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6481 * java/lang/Boolean.java: Rewritten.
6483 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6485 * java/lang/natFirstThread.cc (main_func): New typedef.
6486 (run): Use main_func, not JvPrivThreadStartFunc.
6487 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6489 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6491 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6494 Can't throw Java exceptions with C++ `throw':
6495 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6496 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6497 (setPriority): Likewise.
6501 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6502 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6504 Can't catch Java exceptions from C++:
6505 * java/lang/natThread.cc (finish_): New method.
6507 * java/lang/Thread.java (run_): Rewrote in Java.
6508 (finish_): New native method.
6510 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6512 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6514 * include/javaprims.h (java::io): Added Serializable.
6516 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6518 * java/util/EmptyStackException.java,
6519 java/util/NoSuchElementException.java: Rewritten.
6521 * java/util/ConcurrentModificationException.java,
6522 java/util/MissingResourceException.java,
6523 java/util/TooManyListenersException.java: Created.
6525 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6527 * include/cni.h (JvThrow): New function.
6528 * include/javaprims.h (_Jv_Throw): Declare.
6530 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6532 * java/util/Observable.java: Rewritten.
6534 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6536 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6537 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6538 Include NullPointerException.h.
6540 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6542 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6543 assignability checks. Don't bother using memcpy.
6545 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6547 * include/quick-threads.h (JvPrivThreadWait): New function.
6548 * include/no-threads.h (JvPrivThreadWait): New function.
6549 * include/posix-threads.h (JvPrivThreadWait): New function.
6550 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6552 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6554 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6555 offsets by size of type that is being copied.
6557 * java/lang/natThread.cc (start): Don't pass `object' argument to
6559 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6560 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6562 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6563 always pass thread as object.
6564 * include/quick-threads.h, include/posix-threads.h,
6565 include/no-threads.h (JvPrivThreadStart): Removed `object'
6568 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6570 * java/util/Dictionary.java: Rewritten.
6572 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6574 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6575 (JvPrivThreadDestroy): Likewise.
6577 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6579 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6581 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6583 * java/lang/natSystem.cc: Rewrote from scratch.
6584 * java/lang/System.java: Rewrote from scratch.
6585 * java/lang/Class.h (Class): Declare isAssignableFrom.
6586 * include/javaprims.h (java::lang): Added ArrayStoreException,
6587 IndexOutOfBoundsException.
6588 * Makefile.in: Rebuilt.
6589 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6590 IndexOutOfBoundsException.h.
6591 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6592 * include/jvm.h (_Jv_HashCode): New function.
6594 * java/lang/natThread.cc (suspend): Call checkAccess.
6596 * java/lang/Thread.java (setDaemon): Call checkAccess.
6598 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6600 * java/lang/Runtime.java: Rewrote from scratch.
6601 * java/lang/natRuntime.cc: Rewrote from scratch.
6603 * nogc.cc (JvPrivGCTotalMemory): New function.
6604 (JvPrivGCFreeMemory): Likewise.
6605 (total): New global.
6606 (JvPrivAllocObj): Increment total.
6607 (JvPrivAllocArray): Likewise.
6608 (JvPrivAllocBytes): Likewise.
6609 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6610 * boehm.cc (JvPrivGCTotalMemory): New function.
6611 (sum_blocks): Likewise.
6612 (JvPrivGCFreeMemory): Likewise.
6614 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6616 * include/javaprims.h (java::lang): Added FirstThread.
6617 * java/lang/natFirstThread.cc: New file.
6618 * java/lang/FirstThread.java: New file.
6619 * prims.cc (main_signature): Removed.
6620 (main_name): Removed.
6621 #include FirstThread.h.
6622 * Makefile.in: Rebuilt.
6623 * Makefile.am (TFRIEND): Removed.
6624 (java/lang/Thread.h): Likewise.
6625 (FTFRIEND): New macro.
6626 (java/lang/FirstThread.h): New target.
6627 (nat_files): Added natFirstThread.o.
6628 (nat_headers): Added FirstThread.h.
6629 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6630 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6632 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6636 * java/lang/natThread.cc (start): Synchronize the thread.
6637 (stop): Synchronize the thread.
6639 * java/lang/ThreadDeath.java: Rewrote from scratch.
6641 * Makefile.in: Rebuilt.
6642 * Makefile.am (TGFRIEND): New macro.
6643 (java/lang/ThreadGroup.h): New target.
6644 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6646 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6648 * nogc.cc: Include config.h.
6650 * java/lang/ThreadGroup.java: Rewrote from scratch.
6652 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6654 * java/lang/Thread.java (checkAccess): Only call in to security
6655 manager if it exists.
6656 (Thread): Don't check access when creating the first thread. Add
6657 this thread to the appropriate ThreadGroup.
6659 * java/lang/natThread.cc (run_): Call uncaughtException method on
6662 * java/lang/Runnable.java: Rewrote from scratch.
6663 * java/lang/Thread.java: Updated copyright comment to correct
6666 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6668 * java/util/Random.java: Rewritten.
6670 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6672 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6673 trailing 0 in array[].
6675 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6677 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6678 and RUNTESTFLAGS from AM_MAKEFLAGS.
6679 (SUBDIRS): Conditionally include testsuite.
6680 * Makefile.in: Rebuilt.
6682 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6684 * java/lang/Object.h: Include java-assert.h.
6686 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6688 * Makefile.am: Add testsuite directory.
6689 * configure.in: Build testsuite/Makefile.
6690 * Makefile.in, configure: Rebuilt.
6692 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6694 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6695 * include/jvm.h (_Jv_StartFirstThread): Declare.
6697 * include/javaprims.h (java::lang): Added Exception,
6700 * Makefile.in: Rebuilt.
6701 * Makefile.am (nat_headers): Added NullPointerException.h,
6702 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6703 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6704 (java/lang/Thread.h): New target.
6705 (TFRIEND): New macro
6707 * include/java-assert.h (JvFail): Use 0 and not NULL.
6709 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6710 instead of assuming we are a friend of Thread.
6711 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6712 instead of assuming we are a friend of Thread.
6714 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6716 * java/lang/natThread.cc: Rewrote from scratch.
6717 * java/lang/Thread.java: Rewrote from scratch.
6718 * prims.cc (JvRunMain): Use new Thread constructor.
6719 * include/javaprims.h (java::lang): Added InterruptedException.
6720 * Makefile.in: Rebuilt.
6721 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6722 * java/lang/Thread.h: Removed.
6723 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6724 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6726 * posix-threads.cc (JvPrivThreadJoin): Removed.
6727 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6728 (really_start): Don't notify join_cond.
6729 (JvPrivThreadStart): Added `data' argument.
6730 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6731 (JvPrivThreadJoin): Likewise.
6732 Use JvFail instead of sorry.
6733 (JvPrivThreadSuspend): Removed.
6734 (JvPrivThreadResume): Removed.
6735 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6736 (JvPrivThreadJoin): Likewise.
6737 (JvPrivThreadSuspend): Use JvFail.
6738 (JvPrivThreadResume): Likewise.
6739 (JvPrivThreadSuspend): Removed.
6740 (JvPrivThreadResume): Likewise.
6741 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6742 (JvPrivThread_t): Removed join_mutex, join_cond.
6743 Use JvFail instead of sorry.
6744 (JvPrivThreadSuspend): Removed.
6745 (JvPrivThreadResume): Likewise.
6747 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6749 * java/util/Observer.java: Rewritten
6750 * java/util/Enumeration.java: Rewritten
6752 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6754 * java/util/StringTokenizer.java: Rewritten
6755 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6756 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6757 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6759 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6761 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6764 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6765 Include java-assert.h.
6766 * include/java-assert.h: New file.
6767 * prims.cc (_Jv_Abort): New function.
6768 Include java-assert.h, not assert.h.
6769 (_Jv_MonitorExit): Use JvAssert.
6770 (resolveConstants): Likewise.
6771 (processClass): Likewise.
6772 (JvRunMain): Assert that method is found.
6774 * configure: Rebuilt.
6775 * configure.in: Check for test subdir.
6776 * Makefile.in: Rebuilt.
6777 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6779 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6780 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6782 * prims.cc (resolveConstants): Removed unused variables.
6783 (processClass): Likewise.
6785 * include/quick-threads.h (JvPrivThreadCurrent): Use
6787 * quick-threads.cc (destroy_data): New function.
6788 (JvPrivInitThreads): Create key.
6789 (JvPrivThreadKey): New global.
6790 (JvPrivThreadStart): Use coop_setspecific.
6792 * include/quick-threads.h, include/posix-threads.h,
6793 include/no-threads.h, no-threads.cc, quick-threads.cc,
6794 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6796 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6798 * include/no-threads.h (JvPrivThreadInitData): Don't set
6801 * include/quick-threads.h (JvPrivCondWait): coop function now
6803 (JvPrivThreadJoin): Likewise.
6805 * java/lang/Thread.h (Thread): Updated declaration of
6807 * include/quick-threads.h, include/posix-threads.h: Updated
6808 declaration of JvPrivThreadStart.
6809 * include/no-threads.h (JvPrivThreadStart): Changed definition
6811 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6812 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6813 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6815 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6817 * quick-threads.cc (qthrow): New function.
6818 (JvPrivInitThreads): New function.
6819 (started): New global.
6820 (JvPrivThreadStart): Call coop_start if required.
6821 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6822 (JvPrivThreadDestroy): Likewise.
6823 (JvPrivInitThreads): Removed.
6824 * include/posix-threads.h (JvPrivThreadCancel): Added error
6826 * java/lang/natThread.cc (stop_): Pass exception to
6829 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6831 * include/javaprims.h (java::lang): Added
6832 IllegalArgumentException, IllegalThreadStateException, Math,
6833 NullPointerException, ThreadDeath.
6834 (java::util): Added Enumeration.
6836 * Makefile.in: Rebuilt.
6837 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6839 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6841 (threadsv): Renamed from threads to avoid clash in C++ header.
6842 (groupsv): Likewise.
6843 * include/no-threads.h (JvPrivThreadStart): Removed.
6844 * no-threads.cc (JvPrivThreadStart): New function.
6845 * java/lang/Thread.java (Thread): New constructor for internal use.
6846 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6847 (Thread): Declare constructor.
6848 * prims.cc (JvRunMain): Create the initial Thread and
6850 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6851 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6852 Removed `daemon' argument.
6854 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6855 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6857 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6859 * Makefile.in: Rebuilt.
6860 * Makefile.am (INCLUDES): Include THREADINCS.
6862 * configure: Rebuilt.
6863 * configure.in: Recognize `qt' as a threads package.
6865 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6867 * java/util/Stack.java (pop): Null out topmost node for robustness.
6869 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6871 * java/util/Stack.java: Rewritten.
6872 * java/util/Vector.java (isEmpty): Simplified expression.
6874 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6876 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6877 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6879 * include/java-array.h (JvNewObjectArray): Created inline to
6882 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6885 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6887 * java/util/Vector.java: Rewritten.
6888 * java/io/Serializable.java: Created.
6890 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6892 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6893 Infinity is 1/0, not 1/1.
6895 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6897 * configure: Rebuilt.
6898 * configure.in: Removed duplicate AC_ARG_WITH.
6900 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6902 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6904 (_Jv_InitClass): Renamed from soft_initialise_class.
6905 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6906 (_Jv_CheckCast): Renamed from soft_checkcast.
6907 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6908 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6909 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6910 * include/cni.h (JvInitClass): New function.
6911 (_Jv_InitClass): Renamed from soft_initialise_class.
6913 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6915 * configure: Rebuilt.
6916 * configure.in (CXX): Don't set.
6917 * Makefile.in: Rebuilt.
6918 * Makefile.am (AM_CXXFLAGS): New macro.
6920 * Makefile.in: Rebuilt.
6921 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6922 nogc.o): New target.
6924 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6926 (mark_array): Likewise.
6928 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6930 * java/lang/Class.h (JvMethod): Removed some unused fields.
6931 (JvField.info): Removed unused idx union variant.
6933 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6935 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6938 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6940 * configure.in, configure (CXX): Add -fvtable-thunks.
6942 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6944 * java/lang/Object.java (finalize): Move first.
6945 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6946 (Object): Re-arrange order to match Object.java.
6948 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6950 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6951 * java/lang/natString.cc (hashChars): Likewise.
6953 * prims.cc (RuntimeClass): New macro.
6954 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6956 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6958 * Makefile.in: Rebuilt.
6959 * Makefile.am (AM_MAKEFLAGS): New macro.
6961 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6963 * nogc.cc: Include <javaprims.h>.
6965 * Makefile.in: Rebuilt.
6966 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6968 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6970 * exception.cc (terminate): Removed.
6971 (unexpected): Removed.
6973 * configure: Rebuilt.
6974 * configure.in: Handle case where target subdir is ".".
6976 * configure: Rebuilt.
6977 * configure.in: Compute COMPPATH based on --with-target-subdir
6978 option. Added --with-target-subdir and --with-cross-host. Use
6979 --with-cross-host to determine when a cross compiler is in use.
6981 * Makefile.in: Rebuilt.
6982 * Makefile.am (GJAVAH): Include COMPPATH.
6983 * configure: Rebuilt.
6984 * configure.in: Subst COMPPATH.
6986 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6988 * prims.cc (lockMutex): Removed.
6989 (unlockMutex): Likewise.
6990 (processClass): Lock the class using a JvSynchronize object.
6992 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6994 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6995 (gc_free_fixed): Removed.
6996 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6997 freeing old value of strhash.
6999 * exception.cc (_Jv_type_matcher): Cast first argument to
7002 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
7004 * include/java-array.h (jstringArray): New type.
7005 * java/lang/natSystem.cc (setProperty): Removed.
7006 (initProperties): Directly call JvNewStringLatin1 for arguments.
7007 * java/util/natDate.cc: Include java/util/Date.h, not
7010 * java/io/FileDescriptor.java (available): No longer static.
7011 * java/lang/natDouble.cc (Double): Removed class definition.
7012 * include/javaprims.h (java::lang::Number): Declare.
7013 (java::lang::NumberFormatException): Likewise.
7014 (java::io::FilenameFilter): Likewise.
7015 (java::lang::Character): Likewise.
7016 (java::lang::Error): Likewise.
7017 (java::lang::SecurityManager): Likewise.
7018 (java::util::Vector): Likewise.
7019 (java::io::FileNotFoundException): Likewise.
7020 (java::io::IOException): Likewise.
7021 (java::lang::NativeLang): Likewise.
7022 (java::lang::UnsatisfiedLinkError): Likewise.
7023 (java::util::StringTokenizer): Likewise.
7024 (java::io::InputStream, java::io::OutputStream): Likewise.
7025 (java::io::PrintStream, java::lang::SecurityException): Likewise.
7026 (java::util::Hashtable): Likewise.
7027 * Makefile.in: Rebuilt.
7028 * Makefile.am (nat_headers): Added java/lang/Double.h,
7029 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
7030 (MOSTLYCLEANFILES): Added nat_headers.
7031 * include/jvm.h: Moved many defines, declarations, and functions
7032 to java/lang/Class.h.
7033 (struct JvSyncInfo): Moved to java/lang/Object.h.
7034 (UTF8_GET): Moved to java/lang/String.h.
7036 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
7038 * java/io/io-defs.h: Don't include java-io.h.
7039 * include/java-io.h: Removed.
7040 * include/javaprims.h: Include java::io.
7042 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
7044 * include/java-io.h (File): Removed
7045 (FileDescriptor): Likewise.
7047 * java/io/io-defs.h: Include java/io/File.h and
7048 java/io/FileDescriptor.h.
7050 * Makefile.in: Rebuilt.
7051 * Makefile.am (GJAVAH): New macro.
7052 (.class.h): New rule.
7053 (SUFFIXES): Added .h.
7054 (nat_headers): New macro.
7055 ($(nat_headers)): New target.
7056 (BUILT_SOURCES): Added nat_headers.
7058 * include/java-util.h: Removed.
7060 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7062 * include/java-io.h: Changed to avoid java-lang.h.
7063 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7065 * java/lang/natSystem.cc: Include java/lang/System.h, not
7067 * java/lang/natString.cc: Include java/lang/String.h, not
7069 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7071 * java/lang/natClass.cc: Include java/lang/Class.h, not
7073 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7075 * java/lang/natObject.cc: Include java/lang/Object.h, not
7077 * exception.cc: Don't include java-lang.h.
7078 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7079 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7080 * nogc.cc: Don't include java-lang.h.
7081 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7082 * prims.cc (processClass): Don't use `init_type'; just cast to
7084 Include java/lang/Class.h and jvm.h, not java-lang.h.
7085 (JvAllocObject): Wrote single-argument version.
7086 (PrimClass): Inherit from Class.
7087 (initPrimClass): Removed.
7088 * include/java-lang.h: Removed.
7089 * include/jvm.h: Declare struct _dispatchTable.
7090 * include/cni.h: Don't declare _Jv_MonitorEnter,
7091 _Jv_MonitorExit, struct _dispatchTable.
7092 * include/javaprims.h: Moved all typedefs here, from cni.h.
7093 * java/lang/Class.h: New file.
7094 * include/java-array.h: New file.
7095 * java/lang/Object.h: New file.
7097 * prims.cc (classFromSig): Now static.
7099 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7101 * include/cni.h: Don't mention soft_new.
7102 * include/java-lang.h (Object): Don't mention soft_new. Mention
7103 _Jv_NewPrimArray, not newPrimArray.
7104 * prims.cc (soft_new): Removed.
7105 (_Jv_NewArray): Renamed from soft_newarray.
7106 (soft_anewarray): Use JvNewObjectArray.
7107 (newArray): Likewise.
7108 (newRefArray): Removed.
7109 (_Jv_NewPrimArray): Renamed from newPrimArray.
7110 (equalUtf8Consts): Now static.
7111 (soft_instanceof): Removed.
7112 * java/lang/natDouble.cc (doubleToString): Now static.
7114 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7115 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7118 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7120 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7122 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7124 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7125 (JvPrivMutexUnlock): Likewise.
7126 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7127 Return value now jint.
7128 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7131 * Makefile.in: Rebuilt.
7132 * Makefile.am: Don't allow `jV' names.
7133 (maintainer-check): Depend on libjava.a.
7134 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7136 * Makefile.in: Rebuilt.
7137 * Makefile.am (NM): New macro.
7138 (maintainer-check): New target.
7140 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7142 * configure: Rebuilt.
7143 * configure.in: Use --enable-threads, not --enable-gc. Fix
7144 documentation for --enable-threads. Changed option to work like
7145 identical option in gcc/configure.
7147 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7149 * boehm.cc (mark_array): Use JvGetArrayLength.
7151 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7153 * exception.cc: New file (mostly written by Andrew MacLeod),
7154 exception handling support.
7155 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7156 Remove -fexceptions - it is now the default.
7158 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7159 (JvAllocObject): Renamed to _Jv_AllocObject.
7160 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7161 (loadClass): Renamed to _Jv_FindClass.
7162 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7163 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7164 * include/java-lang.h (JvGetArrayLength): New CNI function.
7165 * include/jvm.h (_Jv_FindClass): Added declaration.
7167 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7169 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7171 * java/lang/natClass.cc (getName): Add implementation.
7172 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7174 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7176 * Makefile.in: Rebuilt.
7177 * Makefile.am (.class.o): Added -fexceptions.
7179 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7181 * configure: Rebuilt.
7182 * configure.in: Don't check for __nanosleep.
7183 * posix-threads.cc (nanosleep): Never define.
7185 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7187 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7190 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7192 * java/lang/natThread.cc (enumerate): Uncommented.
7193 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7194 (interrupt): Call it.
7196 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7198 * configure: Rebuilt.
7199 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7201 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7203 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7204 * include/java-lang.h (Thread): Added `interrupted_' method.
7205 * java/lang/Thread.java (interrupted_): New method.
7206 * java/lang/natThread.cc (join): Possibly throw interrupted
7207 exception after join finishes.
7208 (interrupted_): New method.
7209 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7211 (JvPrivThreadJoin): New function.
7212 (really_start): Notify all threads waiting for this thread.
7213 (struct starter): Added `data' member.
7214 (JvPrivThreadStart): Set it.
7215 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7217 (JvPrivThreadJoin): No longer inline.
7218 (JvPrivThreadInterrupt): New function.
7220 * include/no-threads.h (JvPrivThreadSleep): Removed.
7221 * posix-threads.cc (JvPrivThreadSleep): Removed.
7223 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7225 * configure: Rebuilt.
7226 * configure.in (THREADOBJS): Initialize to no-threads.o in
7228 * posix-threads.cc (key): New global.
7229 (JvPrivInitThreads): New function.
7230 (really_start): Set thread-specific data to point to object.
7231 (JvPrivThreadStart): Added `daemon' argument.
7232 (JvPrivThreadSleep): Added `data' argument.
7233 * include/posix-threads.h (JvPrivInitThreads): Removed
7235 (JvPrivThreadCurrent): New function.
7236 * include/no-threads.h (JvPrivThreadInitData): Initialize
7237 JvPrivOnlyThread. Added `thread' argument.
7238 (JvPrivThreadCurrent): New function.
7239 (JvPrivThreadStart): Added `daemon' argument.
7240 * no-threads.cc: New file.
7241 * java/lang/natThread.cc (init_data): New function.
7243 (start): Set `alive' member.
7244 (stop_): Clear `alive' member.
7245 (destroy): Likewise.
7246 (currentThread): Implemented.
7247 (start): Pass `daemon' argument to JvPrivThreadStart.
7249 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7250 (Thread): Added `init_data' method.
7251 * java/lang/Thread.java (alive, data): New instance variables.
7252 (init_data): New private method.
7253 (isAlive): No longer native.
7255 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7257 * include/java-lang.h (JvRunMain): Declare.
7258 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7259 * prims.cc (JvRunMain): New function.
7260 (main_signature, main_name): New globals.
7262 * boehm.cc (mark_array): Use `elements' function and not
7263 operator[] on jarray.
7265 * posix-threads.cc: Include <config.h>. Define nanosleep if
7268 * configure: Rebuilt.
7269 * configure.in: Check for _nanosleep.
7271 * configure: Rebuilt.
7272 * configure.in: Check for pthread_mutexattr_settype.
7274 * include/cni.h (class JvSynchronize): New class.
7275 * java/lang/Thread.java (sleep): Throws InterruptedException.
7276 (join): Throws InterruptedException.
7277 (resume): Not native.
7278 (resume_): New method.
7279 (start): Now synchronized.
7280 (stop_): New method.
7281 (Thread): Synchronize when accessing threadNumber.
7283 * java/lang/natThread.cc (throwException): New macro.
7284 (sleep): Throw InterruptedException.
7287 * include/java-lang.h (Runtime): Added interrupted().
7289 * boehm.cc (call_finalizer): Correctly initialize jobj.
7290 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7292 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7295 * configure: Rebuilt.
7296 * configure.in: Added support for --disable-threads.
7297 * include/no-threads.h: New file.
7299 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7301 * Makefile.in: Rebuilt.
7302 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7303 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7304 (libjava_a_LIBADD): Added THREADOBJS.
7305 * configure: Rebuilt.
7306 * configure.in: Added --with-threads option.
7307 * posix-threads.cc: New file.
7308 * include/posix-threads.h: New file.
7309 * include/java-lang.h (Object): Added static member sync_mutex,
7310 member sync_info, method init_mutex.
7311 (struct JvSyncInfo): New struct.
7312 Include "java-threads.h".
7313 * prims.cc (soft_monitorenter): Wrote.
7314 (soft_monitorexit): Likewise.
7315 * java/lang/natObject.cc (init_mutex): New method.
7319 (sync_mutex): Define.
7320 Include "java-threads.h".
7322 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7324 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7325 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7327 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7329 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7330 Added extern "Java" in places to tell G++ Object is a "Java" type.
7331 Other minor renaming and fixes.
7332 * include/java-io.h (FileDescriptor): Add friend class declarations.
7333 G++ no longer allows non-Java types in method parameters and results
7334 of Java classes. Converted most offending methods to friends.
7335 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7336 * java/lang/natSystem.cc (setProperty): Make friend.
7337 * java/lang/natString.cc, include/java-lang.h (String): Rename
7338 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7339 * include/java-lang.h (JArray): Remove getData and eoprator[].
7340 Add elements friend function instead.
7341 * java/lang/natSystem.cc (arraycopy): Use elements function.
7342 * java/io/natFileDescriptor.cc (read, write): Likewise.
7343 * include/java-lang.h (Object): Remove unused make method.
7344 (System::setProperty(char*,char*)): Turn into friend function.
7345 (Class): Rename newObject by JvAllocObject.
7346 * prims.cc: Update to use JvAllocObject, and elements.
7348 * java/lang/natDouble.cc: Fix double -> jdouble.
7350 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7352 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7354 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7356 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7357 * include/java-lang.h (Runtime): finalize_on_exit and
7358 runFinalizersOnExit now static.
7359 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7361 (finalize_on_exit): Now static.
7363 * boehm.cc (mark_obj): Get class using getClass() method on
7365 (_dispatchTable): Removed.
7367 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7369 * java/io/natFileDescriptor.cc (open_read): Only call open if
7371 (open_write): Likewise.
7373 * Makefile.in: Rebuilt.
7374 * Makefile.am ($(nat_files)): Depend on config.h.
7376 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7378 * prims.cc (ObjectClass): Now a macro; updated for new class name
7380 (StringClass): Likewise.
7381 (ClassClass): Likewise.
7383 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7385 * java/io/natFileDescriptor.cc (available): Do nothing unless
7386 HAVE_SELECT defined.
7387 * java/util/natDate.cc (setTime): Conditional on
7389 (toString): Conditional on HAVE_TIME.
7390 * aclocal.m4, configure: Rebuilt.
7391 * acinclude.m4: New file.
7392 * configure.in: Don't actually call AM_EXEEXT. Call
7393 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7394 --with-target-subdir option. Check for select and open
7397 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7399 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7400 (call_finalizer): Likewise.
7401 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7402 * prims.cc (newObject): Pass actual method pointer to
7403 JvPrivRegisterFinalizer.
7404 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7405 (JvPrivRegisterFinalizer): Changed interface.
7407 * Makefile.in: Rebuilt.
7408 * Makefile.am (MOSTLYCLEANFILES): New macro.
7409 (CLEANFILES): Removed javao_files.
7411 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7413 * nogc.cc: New file.
7414 * Makefile.in: Rebuilt.
7415 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7416 (EXTRA_libjava_a_SOURCES): New macro.
7417 (libjava_a_SOURCES): Removed boehm.cc.
7418 (libjava_a_DEPENDENCIES): Added GCOBJS.
7419 (libjava_a_LIBADD): Likewise.
7420 * configure: Rebuilt.
7421 * configure.in: Added code for --enable-gc=TYPE.
7423 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7425 * boehm.cc (mark_array): Don't further dereference pointer from
7428 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7429 * Makefile.in: Rebuilt.
7430 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7431 one for boehm-gc build directory.
7433 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7435 * include/java-lang.h (finalize_on_exit): New instance variable in
7436 java::lang::Runtime.
7437 (runFinalizersOnExit): New method.
7438 * java/lang/Runtime.java (finalize_on_exit): New instance
7440 (runAllFinalizers_): New private method.
7441 (runFinalizersOnExit): New method.
7442 * boehm.cc (JvPrivRunFinalizers): New function.
7443 (JvPrivRunAllFinalizers): Likewise.
7444 (JvPrivRunGC): Likewise.
7445 * java/lang/natRuntime.cc: Include "jvm.h".
7446 (gc): Call JvPrivRunGC.
7447 (runFinalization): Call JvPrivRunFinalizers.
7448 (runFinalizersOnExit): New method.
7449 (exit_): Call JvPrivRunAllFinalizers if required.
7450 * include/jvm.h: Declare JvPrivRunFinalizers,
7451 JvPrivRunAllFinalizers, JvPrivRunGC.
7453 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7455 * boehm.cc (JvPrivRegisterFinalizer): New function.
7456 (call_finalizer): Likewise.
7457 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7458 * prims.cc (finalize_name): New global.
7459 (newObject): Just call other newObject.
7460 (newObject): Register finalizer if it exists.
7462 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7464 * prims.cc (gc_malloc): Removed.
7465 (makeUtf8Const): Use JvPrivAllocBytes.
7466 (lookupArray): Likewise.
7467 (newPrimArray): Likewise.
7468 (JvNewObjectArray): Use JvPrivAllocArray.
7469 (newObject): Use JvPrivAllocObj.
7470 (newObject): Likewise.
7471 Changed Method -> JvMethod everywhere.
7472 Changed Field -> JvField everywhere.
7473 * include/java-lang.h (Object): Changed type of `fields' to
7475 (jmethodID, jfieldID): New typedefs.
7476 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7478 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7480 (METHOD_NATIVECODE): Moved from java-lang.h.
7481 (class JvField): New class.
7482 (JvGetFirstInstanceField): New function.
7483 (JvFieldIsRef): Likewise.
7484 (JvGetObjectField): Likewise.
7485 (JvNumInstanceFields): Likewise.
7487 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7489 * boehm.cc: New file.
7490 * Makefile.in: Rebuilt.
7491 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7492 (INCLUDES): Added -I options to find boehm-gc files.
7494 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7496 * configure: Rebuilt.
7497 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7499 * Makefile.in: Rebuilt.
7500 * Makefile.am (nat_files): New macro.
7501 (libjava_a_DEPENDENCIES): Use it.
7502 (libjava_a_LIBADD): Likewise.
7503 ($(nat_files)): New static pattern rule.
7504 (class_files): Run separate find to find .class files.
7505 (javao_files): Compute based on class_files.
7506 (BUILT_SOURCES): New macro.
7508 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7510 * Makefile.am (java_files): New macro.
7511 (class_files): Likewise.
7512 (javao_files): Likewise.
7513 (libjava_a_DEPENDENCIES): Include $(javao_files).
7514 (libjava_a_LIBADD): Likewise.
7515 (classes.stamp): Depend on $(java_files); only recompile changed
7518 (CLEANFILES): Don't run find; use macros. Don't mention
7520 (.class.o): New target.
7521 (compiled.stamp): Removed.
7523 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7525 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7526 LineNumberReader}>java: Newly-implemented standard classes.
7528 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7530 * Makefile.in: Rebuilt.
7531 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7533 * Makefile.in: Rebuilt.
7534 * Makefile.am (hack): New macro.
7535 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7537 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7539 * include/config.h.in: New file.
7540 * include/config.h: Removed.
7541 * acconfig.h: New file.
7542 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7543 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7544 libjava_a_LIBADD): New macros.
7545 (INCLUDES): New macro.
7548 (SUFFIXES): Removed.
7550 (libjava.a): Removed.
7552 * configure: Rebuilt.
7553 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7554 Look for headers and functions we require. Create
7557 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7559 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7560 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7561 soft_lookupinterfacemethod): New functions.
7562 (PrimClass): Actually initialize the primitive classes.
7563 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7565 * include/java-util.h: Removed java::util definition.
7566 * include/cni.h: Moved java::util here and added Properties.
7567 Added more function prototypes.
7568 * include/java-lang.h: Added mroe methods and friend declarations.
7569 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7570 * include/jvm.h (strLengthUtf8): Add declaration.
7572 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7574 * java/lang/{Byte,Short,Void}.java: New classes.
7575 * java/lang/Character.java (isJavaIdentifierStart,
7576 JavaIdentifierPart): New static methods.
7577 * java/lang/Number.java (byteValue, shortValue): New methods.
7579 * java/lang/String.java (intern, hashCode): Make native.
7580 * java/lang/natString.cc: New file. Handle the string pool.
7581 * Makefile.am: Build natString.o. Use CXXFLAGS.
7583 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7584 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7585 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7586 * java/lang/System.java (setProperty): New private method.
7587 (initProperties): Take argument, and make native.
7588 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7589 (currentTimeMillis): Make more robust.
7591 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7592 * java/io/UnsupportedEncodingException.java: New exception class.
7594 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7595 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7597 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7599 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7600 * prims.cc: Added bunch of stuff.
7601 * include/cni.h: Added various definitions.
7602 * include/java-lang.h: Added Method, various friends, some macros.
7604 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7605 * java/lang/System.java (arraycopy): Make native.
7607 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7609 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7610 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7611 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7612 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7614 * java/lang/Runtime.java: Declare methods as native instead of
7616 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7617 * java/lang/System.java: Comment out some stuff, for now.
7618 * java/lang/Thread.java: Re-write. Use native methods.
7619 * java/lang/NativeLang.java: Remove most of it.
7621 * java/util/natDate.cc: Native (C++) methods for Date.
7622 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7623 * java/util/Date.java: Complete re-write.
7625 * java/io/io-defs.h: New header file.
7626 * java/io/FileDescriptor.java: Add a bunch of private methods,
7627 mostly moved from NativeIO.java and natNativeIO.cc.
7628 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7629 * java/io/File.java: Use new code.
7630 * java/io/{FileInputStream.java.FileOutputStream.java,
7631 RandomAccessFile.java}: Use new private FileDescriptor methods.
7632 * java/io/NativeIO.java: Removed, no longer used.
7634 * java/io/StreamTokenizer.java (numericChars): Make char array.
7636 * include/*.h: Various header files used by the C++ native code.
7638 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7639 New autoconf+automake-based setup.
7640 * prims.cc: New file for Java "primitives".