1 2000-02-04 Andrew Haley <aph@cygnus.com>
3 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
4 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5 * java/lang/natThrowable.cc (printRawStackTrace): Rename
6 printStackTrace to printRawStackTrace.
8 2000-02-03 Tom Tromey <tromey@cygnus.com>
10 * java/util/Calendar.java (toString): New method.
11 * java/util/SimpleTimeZone.java (clone): New method.
12 (toString): New method.
13 * java/util/TimeZone.java (clone): New method.
14 * java/text/SimpleDateFormat.java (clone): New method.
15 * java/text/NumberFormat.java (clone): New method.
17 * java/text/Format.java (clone): New method.
18 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
21 * java/text/DateFormat.java (clone): New method.
22 * java/text/Collator.java (clone): New method.
24 2000-02-03 Tom Tromey <tromey@cygnus.com>
26 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
29 2000-02-01 Tom Tromey <tromey@cygnus.com>
31 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
32 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
33 constructing the closure if the function is native.
34 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
35 a template function, #if'd out, or static.
36 Include <java-interp.h>.
38 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
40 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
42 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
43 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
45 (wrap_value): New function.
46 (_Jv_JNI_CallAnyMethodV): Use it.
47 (_Jv_JNI_CallAnyMethodA): Likewise.
48 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
49 (_Jv_JNI_GetStaticField): Likewise.
51 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
52 (_Jv_JNI_GetStaticField): Likewise.
54 2000-01-31 Tom Tromey <tromey@cygnus.com>
56 * prims.cc (_Jv_MallocUnchecked): New function.
57 (main_init): Call _Jv_JNI_Init.
58 * include/jvm.h (_Jv_MallocUnchecked): Declare.
59 (_Jv_JNI_Init): Declare.
60 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
62 (_Jv_JNI_NewGlobalRef): New function.
63 (_Jv_JNI_DeleteGlobalRef): New function.
64 (_Jv_JNI_DeleteLocalRef): New function.
65 (_Jv_JNI_conversion_call): Initialize and clear local reference
67 (_Jv_JNI_NewLocalRef): New function.
68 (struct _Jv_JNI_LocalFrame): New structure.
69 (_Jv_JNI_PushLocalFrame): New function.
70 (_Jv_JNI_EnsureLocalCapacity): New function.
71 (FRAME_SIZE): New define.
72 (_Jv_JNI_GetStringChars): Mark string, not characters.
73 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
74 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
75 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
77 (_Jv_JNI_DefineClass): Make return value a local ref.
78 (_Jv_JNI_FindClass): Likewise.
79 (_Jv_JNI_GetSuperclass): Likewise.
80 (_Jv_JNI_ExceptionOccurred): Likewise.
81 (_Jv_JNI_AllocObject): Likewise.
82 (_Jv_JNI_GetObjectClass): Likewise.
83 (_Jv_JNI_CallAnyMethodV): Likewise.
84 (_Jv_JNI_NewString): Likewise.
85 (_Jv_JNI_NewStringUTF): Likewise.
86 (_Jv_JNI_NewObjectArray): Likewise.
87 (_Jv_JNI_GetObjectArrayElement): Likewise.
88 (_Jv_JNI_ToReflectedField): Likewise.
89 (_Jv_JNI_ToReflectedMethod): Likewise.
90 (_Jv_JNIFunctions): Updated table for new functions.
91 (_Jv_JNI_Init): New function.
93 (unmark_for_gc): Wrote.
94 * include/jni.h (struct JNINativeInterface): Removed name from
95 PopLocalFrame parameter.
96 (class _Jv_JNIEnv): Added `locals' field.
98 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
100 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
103 2000-01-30 Tom Tromey <tromey@cygnus.com>
105 * include/config.h.in: Rebuilt.
106 * acconfig.h (HAVE_ICONV): Define.
107 * configure: Rebuilt.
108 * configure.in: Check for `iconv' function.
109 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
110 no specific encoder exists.
111 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
112 no specific encoder exists.
113 * Makefile.in: Rebuilt.
114 * Makefile.am (convert_source_files): Mention Input_iconv.java and
116 (nat_source_files): Added natIconv.cc.
117 * gnu/gcj/convert/natIconv.cc: New file.
118 * gnu/gcj/convert/Input_iconv.java: New file.
119 * gnu/gcj/convert/Output_iconv.java: New file.
121 2000-01-28 Tom Tromey <tromey@cygnus.com>
123 * Makefile.in: Rebuilt.
124 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
126 2000-01-26 Tom Tromey <tromey@cygnus.com>
128 * gcj/method.h (JvNumMethods): Moved from Class.h.
129 (JvGetFirstMethod): Likewise.
130 * java/lang/Class.h (Object): Updated decl of
131 _Jv_JNI_ToReflectedField.
132 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
133 * Makefile.in: Rebuilt.
134 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
135 argument of _Jv_JNI_ToReflectedField.
136 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
138 (java/lang/reflect/Method.h): Likewise.
139 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
141 (jweak): New typedef.
142 (struct JNINativeInterface): Correctly declare remaining entries.
143 * jni.cc: Include Class.h, ClassLoader.h.
144 (_Jv_JNI_FindClass): New function.
145 (_Jv_JNI_DefineClass): New function.
146 (_Jv_JNI_conversion_call): New function.
147 (_Jv_JNI_FindClass): Use current class loader to find class.
148 (_Jv_JNI_ExceptionCheck): New function.
149 (_Jv_JNI_FromReflectedField): Now static.
150 (MethodClass): New define.
151 (_Jv_JNI_FromReflectedMethod): New function.
152 (_Jv_JNI_ToReflectedMethod): Likewise.
154 (_Jv_JNI_IsAssignableFrom): Renamed.
155 (_Jv_JNI_GetStringRegion): New function.
156 Include StringIndexOutOfBoundsException.h.
157 (_Jv_JNI_GetStringUTFRegion): New function.
158 (_Jv_JNIFunctions): Updated for new functions.
159 (_Jv_JNI_GetPrimitiveArrayCritical): New function
160 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
161 (_Jv_JNI_GetStringCritical): New function.
162 (_Jv_JNI_ReleaseStringCritical): Likewise.
163 (get_throwable): Removed.
164 (GCJ_JV_JNIENV_FRIEND): Removed.
165 (__GCJ_JNI_IMPL__): Define.
168 * resolve.cc (get_ffi_type_from_signature): Handle case where
171 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
173 * interpret.cc (run): Don't call println.
174 Don't include PrintStream.h.
176 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
177 nameIndex. Use "jint" as type for boffset.
178 * java/lang/Class.h (struct _Jv_Method): Made accflags a
180 (Class): Likewise. Also changed type of method_count,
181 vtable_method_count, size_in_bytes, field_count,
182 static_field_count, interface_count.
183 * gcj/array.h (__JArray): Made `length' a const jsize, not an
186 2000-01-21 Tom Tromey <tromey@cygnus.com>
188 * java/lang/reflect/natConstructor.cc (newInstance): Use
190 * include/jvm.h: Declare _Jv_CallAnyMethodA.
191 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
192 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
195 (invoke): Use _Jv_CallAnyMethodA.
197 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
198 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
200 (struct _Jv_Method): Added getNextMethod method.
201 (JvNumMethods): New function.
202 (JvGetFirstMethod): Likewise.
203 * gcj/field.h (JvGetFirstStaticField): New function.
204 (JvNumStaticFields): Likewise.
205 (getNextField): Renamed from getNextInstanceField.
206 (struct _Jv_Field): New method getClass.
207 * jni.cc: Wrote many new functions.
208 * include/jni.h (JNI_TRUE): Define.
209 (JNI_FALSE): Likewise.
210 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
211 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
212 jcharArray, jfloatArray, jdoubleArray): New typedefs.
213 (jfieldID, jmethodID): Likewise.
214 (JNI_COMMIT, JNI_ABORT): New defines.
215 (JNINativeMethod): New struct.
216 (struct JNINativeInterface): Correctly declared more entries.
217 (class _Jv_JNIEnv): Added `ex' member.
218 (JNI_VERSION_1_1): New define.
219 (JNI_VERSION_1_2): Likewise.
221 * boehm.cc (_Jv_MarkObj): Use getNextField, not
222 getNextInstanceField.
224 2000-01-20 Tom Tromey <tromey@cygnus.com>
226 * resolve.cc (StringClass): Removed.
227 * defineclass.cc (StringClass): Removed.
229 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
233 2000-01-19 Tom Tromey <tromey@cygnus.com>
235 * interpret.cc (PC_REGISTER_ASM): Removed.
237 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
240 * All files: Updated copyright to reflect Cygnus purchase.
242 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
244 * configure: Rebuilt.
245 * configure.in: Recognize --disable-interpreter.
247 2000-01-18 Andrew Haley <aph@cygnus.com>
249 * name-finder.cc (lookup): Check for dladdr function.
250 acconfig.h (HAVE_DLADDR): Add.
251 configure.in: Check for HAVE_DLADDR
253 include/config.h.in: Rebuilt.
255 2000-01-17 Andrew Haley <aph@cygnus.com>
257 * prims.cc (_Jv_RunMain): Set the name of this executable.
259 2000-01-17 Tom Tromey <tromey@cygnus.com>
261 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
262 when backtrace can't be computed.
264 * configure: Rebuilt.
265 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
267 * java/lang/Runtime.java (loadLibraryInternal): Declare.
268 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
269 (_Jv_FindClassInCache): Likewise.
270 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
271 (findSystemClass): Try to load class from compiled module.
273 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
274 (loadLibrary): Likewise.
275 (lt_preloaded_symbols): Define.
276 (loadLibraryInternal): New method.
277 * include/config.h.in: Rebuilt.
278 * acconfig.h (USE_LTDL): Added.
279 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
280 (INCLUDES): Added $(INCLTDL).
281 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
282 (libgcj_la_LIBADD): Likewise.
283 * aclocal.m4, configure: Rebuilt.
284 * configure.in: Added libltdl support.
286 2000-01-15 Tom Tromey <tromey@cygnus.com>
288 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
290 2000-01-14 Andrew Haley <aph@cygnus.com>
292 * java/lang/natThrowable.cc: New file.
294 * java/lang/Throwable.java (fillInStackTrace): Make native.
295 (printStackTrace): Call native method to do this.
296 (Throwable): Call fillInStackTrace.
297 (stackTrace): New variable.
299 * include/jvm.h: Add _Jv_ThisExecutable functions.
301 * prims.cc: (_Jv_execName): New variable.
302 (catch_segv): Call fillInStackTrace.
304 (_Jv_ThisExecutable): New functions.
305 (JvRunMain): Set the name of this executable.
307 * Makefile.am: Add java/lang/natThrowable.cc.
309 * Makefile.in: Rebuilt.
311 * acconfig.h: Add HAVE_PROC_SELF_EXE.
313 * configure.in: Force link with __frame_state_for in
314 FORCELIBGCCSPEC. Add new checks for backtrace.
315 * include/config.h.in: Rebuilt.
317 * name-finder.cc: New file.
318 * include/name-finder.h: New file.
320 2000-01-16 Anthony Green <green@cygnus.com>
322 * java/lang/StringBuffer.java (StringBuffer): Don't special case
325 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
327 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
329 2000-01-13 Tom Tromey <tromey@cygnus.com>
331 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
332 not system loader, as initiating loader.
334 2000-01-11 Tom Tromey <tromey@cygnus.com>
336 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
337 HP/UX. From David Scott Urban.
339 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
341 * java/lang/natMath.cc (pow): Cast args to `double', not
344 (IEEEremainder): Likewise.
345 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
346 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
348 2000-01-09 Anthony Green <green@cygnus.com>
350 * java/lang/natString.cc (init): Test for overflow condition
351 during out of bounds check.
352 (getChars): Throw StringIndexOutOfBoundsException, not
353 ArrayIndexOutOfBoundsException.
355 (regionMatches): Obey case option during string comparison.
357 * configure.host (ligcj_interpreter): New variable. Enable
358 interpreter by default on IA-32.
359 * configure.in: Examine libgcj_interpreter.
360 * configure: Rebuilt.
362 2000-01-07 Tom Tromey <tromey@cygnus.com>
364 * mauve-libgcj: Don't disable ClassTest.
366 * java/lang/natClass.cc (getClasses): Wrote.
368 2000-01-06 Tom Tromey <tromey@cygnus.com>
370 * java/lang/natClass.cc (_getConstructors): Correctly check
371 whether method name is the init name.
372 (getMethod): Look at accflags on method in `klass', not `this'.
374 2000-01-05 Tom Tromey <tromey@cygnus.com>
376 * java/lang/natClass.cc (getMethod): Compute offset relative to
377 `klass's methods table, not `this's table.
379 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
380 In unwrapping/widening case, check whether `k' is null, not
381 whether it is primitive. Initialize `num' from `argelts', not
382 `paramelts'. Correct create and pass arguments to ffi_call.
383 Don't let presence of `this' argument affect index used to look in
385 (COPY): Set appropriate element in `values' vector.
387 * java/lang/natClass.cc: Include <gcj/method.h>.
389 * java/lang/Class.h (_getMethods): Correctly declare as private,
392 * java/lang/Class.h (_getMethods): Declare.
393 * java/lang/Class.java (_getMethods): Declare.
394 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
395 (getDeclaredClasses): Always return empty array.
396 (_getMethods): New method.
398 (getDeclaredMethod): Return `rmethod'.
399 (finit_name): New global.
400 (getDeclaredMethods): Check for finit_name.
401 (_getMethods): Likewise.
402 (getMethod): Only return public methods.
404 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
405 jboolean and select correct ffi type on that basis.
406 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
407 Constructor call always has `void' return type.
409 2000-01-04 Tom Tromey <tromey@cygnus.com>
411 * java/lang/Class.h (getSignature): Updated.
412 * java/lang/Class.java (getSignature): Updated.
413 * java/lang/natClass.cc (getSignature): Added `is_constructor'
415 (getConstructor): Ensure constructor is public.
416 (_getConstructors): Check for public-ness of constructor when
417 `declared' is false, not when it is true.
419 2000-01-04 Warren Levy <warrenl@cygnus.com>
421 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
423 (receive): Set the sender's address in the DatagramPacket.
425 2000-01-04 Tom Tromey <tromey@cygnus.com>
427 * java/lang/reflect/natConstructor.cc (newInstance): Pass
428 declaring class as return_type argument to
429 _Jv_CallNonvirtualMethodA.
430 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
431 constructor case, create object and use it as `this' argument.
432 * java/lang/Class.h (_getConstructors): Declare.
433 (_getFields): Declare.
434 * java/lang/Class.java (getConstructors): Wrote.
435 (_getConstructors): New native method.
436 (getDeclaredConstructors): Wrote.
437 (_getFields): Declare new native method.
438 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
440 (getMethod): Work correctly when class is primitive.
441 (getDeclaredMethods): Likewise. Compute offset using `method',
443 (getDeclaredMethod): Likewise.
444 (getConstructor): Wrote.
445 (ConstructorClass): New define.
446 (getDeclaredConstructor): Wrote.
447 (_getConstructors): New method.
448 (_getFields): New method.
451 * Makefile.in: Rebuilt.
452 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
454 * prims.cc: Remove `#pragma implementation'.
455 * gcj/array.h: Remove `#pragma interface'.
457 * prims.cc (_Jv_equaln): New function.
458 * java/lang/Class.java (getSignature): Declare.
459 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
460 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
462 (getSignature): New method.
463 (getDeclaredMethod): Wrote.
465 Include StringBuffer.h.
466 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
467 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
469 (getSignature): Declare.
470 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
471 (_Jv_equaln): Declare.
472 (_Jv_CallNonvirtualMethodA): Declare.
473 * Makefile.in: Rebuilt.
474 * Makefile.am (nat_source_files): Added natConstructor.cc.
475 (java/lang/reflect/Constructor.h): New target.
476 * java/lang/reflect/natConstructor.cc: New file.
477 * java/lang/reflect/Constructor.java (newInstance): Now native.
478 (declaringClass): Renamed from decl_class.
479 (offset): Renamed from index.
480 (getType): New native method.
481 (getModifiers): Now native.
482 (getParameterTypes): Call getType if required.
483 (hashCode): Include hash code from declaring class.
484 (modifiers): Removed.
485 (toString): Call getType if required.
486 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
487 * java/lang/reflect/natMethod.cc (hack_call): New method.
488 Removed `#if 0' around FFI code.
489 Include <gnu/gcj/RawData.h>.
490 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
491 IllegalArgumentException when argument object and class disagree.
492 (_Jv_GetTypesFromSignature): New function.
494 (ObjectClass): New define.
495 (_Jv_CallNonvirtualMethodA): New function.
496 * java/lang/reflect/Method.java (hack_trampoline): New method.
497 (hack_call): New native method.
499 1999-12-21 Per Bothner <per@bothner.com>
501 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
502 offset in new Method.
504 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
506 * java/lang/natObject.cc (notify): Throw message with
507 IllegalMonitorStateException.
510 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
511 (isInterrupted_): New function, which does clear interrupt_flag.
512 (interrupt): Use `isInterrupted_'.
513 * java/lang/natThread.cc (interrupt): Add comment.
514 (join): Set `prev' in joiner loop.
515 Change various calls to `isInterrupted' to use `isInterrupted_'.
516 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
517 on linux. Set result to 0 on an interrupt. Test interrupted status
518 of java Thread object directly.
519 FLAG_INTERRUPTED: removed.
520 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
521 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
522 (_Jv_InitThreads): Don't block SIGINT.
523 (_Jv_ThreadWait): Don't configure SIGINT handler.
525 1999-12-21 Tom Tromey <tromey@cygnus.com>
527 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
529 1999-12-20 Tom Tromey <tromey@cygnus.com>
531 * java/lang/reflect/Modifier.java (STRICT): New constant.
532 (isStrict): New method.
533 (toString): Added `strict'.
535 1999-12-23 Anthony Green <green@cygnus.com>
537 * configure: Rebuilt.
538 * configure.in (LIBDATASTARTSPEC): Force data_start in with
541 1999-12-19 Anthony Green <green@cygnus.com>
543 * libgcjdata.c: New file.
544 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
545 * configure: Rebuilt.
546 * configure.in (LIBDATASTARTSPEC): Force data with a known name
548 * Makefile.in: Rebuilt.
549 * Makefile.am: Build libgcjdata.a.
551 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
552 * configure: Rebuilt.
553 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
556 1999-12-17 Tom Tromey <tromey@cygnus.com>
558 * java/lang/reflect/Method.java (toString): Call getType if
559 required. Partial fix for PR libgcj/111. From Per Bothner.
561 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
563 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
565 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
566 null String constructor parameter.
567 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
568 for exception messages.
569 BooleanClass: declare.
570 (setOption): Use BooleanClass instead of Class.forName() for
572 (bind): Cast 4th parameter of setsockopt to `char *' for
573 compatibility with older Solaris headers.
574 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
575 sprintf calls for exception messages.
576 BooleanClass, IntegerClass: declare.
577 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
580 1999-12-15 Tom Tromey <tromey@cygnus.com>
582 * java/lang/natSystem.cc (init_properties): Don't set user.name or
583 user.home if NO_GETUID defined. Only set user.dir if getcwd
586 * include/config.h.in: Rebuilt.
587 * acconfig.h (NO_GETUID): New define.
588 * configure.in: Rebuilt.
589 * configure.in: Define NO_GETUID in cross case. Check for getcwd
592 1999-12-08 Tom Tromey <tromey@cygnus.com>
594 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
595 where no recursive mutexes exist. Fixes PR libgcj/117.
597 1999-12-05 Anthony Green <green@cygnus.com>
599 * include/jvm.h: Declare many functions with
600 __attribute__((__malloc__)).
601 * gcj/javaprims.h: Ditto.
603 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
605 * THANKS: Giving credit where credit is due.
607 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
609 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
611 * java/lang/natString.cc (equalsIgnoreCase): return false if
612 anotherString is null.
613 * java/lang/Boolean.java (valueOf): return FALSE if argument is
616 1999-11-30 Tom Tromey <tromey@cygnus.com>
618 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
619 mutex to initialize. Initialize `count' if required.
622 1999-11-27 Per Bothner <per@bothner.com>
624 * exception.cc: Remove prototype declarations for malloc and free.
625 These clash with recent versions of glibc, which specifies `throws ()'
626 when __cplusplus is defined. Instead, #include <stdlib.h>.
628 1999-11-24 Tom Tromey <tromey@cygnus.com>
630 * prims.cc (_Jv_NewObjectArray): Use
631 _Jv_GetArrayElementFromElementType.
632 (_Jv_NewPrimArray): Likewise.
633 * java/lang/natObject.cc (clone): Use
634 _Jv_GetArrayElementFromElementType instead of sizeof.
635 * java/lang/natSystem.cc (arraycopy): Use
636 _Jv_GetArrayElementFromElementType.
637 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
640 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
642 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
643 Exception messages. PR java.net/57.
644 (bind): set SO_REUSEADDR before bind.
645 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
646 overruns. PR java.net/57.
648 1999-11-19 Tom Tromey <tromey@cygnus.com>
650 * Makefile.am (DIVIDESPEC): Removed.
651 (EXCEPTIONSPEC): Removed.
653 1999-11-19 Andrew Haley <aph@cygnus.com>
655 * Makefile.am (JCFLAGS): Add -L$(here)
657 * Makefile.in: Rebuild.
659 1999-11-18 Tom Tromey <tromey@cygnus.com>
661 * java/lang/natDouble.cc: Include <config.h>.
663 * include/config.h.in: Rebuilt.
664 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
665 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
667 * configure: Rebuilt.
668 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
669 requested by configure.host. Don't put `-D' option into
670 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
672 * configure: Rebuilt.
673 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
676 1999-11-18 Andrew Haley <aph@cygnus.com>
678 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
679 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
681 * Makefile.in: Rebuild
682 * acconfig.h: remove SJLJ_EXCEPTIONS
683 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
684 Do not AC_DEFINE SJLJ_EXCEPTIONS.
685 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
686 * gcj/Makefile.in, include/Makefile.in: rebuild.
687 * include/config.h.in: remove SJLJ_EXCEPTIONS.
689 1999-11-18 Andrew Haley <aph@cygnus.com>
691 * gij.cc (main): Rename label to prevent conflict.
693 * exception.cc (_Jv_type_matcher): Don't check the table if we're
694 using setjmp/longjmp exceptions: there isn't one.
696 1999-11-17 Andrew Haley <aph@cygnus.com>
698 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
699 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
700 (__sjthrow): Add declaration.
701 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
705 * Makefile.in: Rebuild
706 * acconfig.h: Add SJLJ_EXCEPTIONS
707 * configure.in: Add SJLJ_EXCEPTIONS
708 * configure: Rebuild.
709 * gcj/Makefile.in: Rebuild.
710 * gcj/cni.h: Add support for sjlj-exceptions.
711 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
712 * include/Makefile.in: Rebuild.
713 * include/default-signal.h: Add support for sjlj-exceptions.
715 1999-11-18 Tom Tromey <tromey@cygnus.com>
717 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
719 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
721 (method_cache): Made larger.
723 1999-11-11 Tom Tromey <tromey@cygnus.com>
725 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
726 initializing mutex. Initialize `count' when required.
728 1999-11-07 Anthony Green <green@trip.cygnus.com>
730 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
733 1999-11-05 Tom Tromey <tromey@cygnus.com>
735 * java/lang/natThread.cc (destroy): Removed incorrect comment.
737 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
739 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
740 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
743 1999-11-05 Tom Tromey <tromey@cygnus.com>
745 * java/lang/natThread.cc (stop): Removed argument name.
747 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
748 `private'; now has default access.
749 * Makefile.in: Rebuilt.
750 * Makefile.am (java/lang/ThreadGroup.h): Removed.
752 1999-11-04 Tom Tromey <tromey@cygnus.com>
754 * java/lang/natClass.cc (method_cache_count): Removed.
755 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
756 (_Jv_AddMethodToCache): Don't loop.
758 * configure.in: Removed `qt' threads case.
759 * include/quick-threads.h: Removed.
760 * quick-threads.cc: Removed.
762 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
763 (_Jv_ThreadDestroy): Likewise.
764 * include/no-threads.h (_Jv_ThreadCancel): Removed.
765 (_Jv_ThreadDestroy): Likewise.
766 * include/posix-threads.h (struct _Jv_Thread_t): Removed
768 (_Jv_ThreadCancel): Removed decl.
769 (_Jv_ThreadDestroy): Removed.
770 * posix-threads.cc (_Jv_ThreadCancel): Removed.
771 (throw_cleanup): Removed.
772 (really_start): Don't push or pop cleanup.
773 (_Jv_ThreadInitData): Don't initialize `exception' field.
774 * java/lang/Thread.java (stop): Officially unimplemented.
775 * java/lang/natThread.cc (stop): Officially unimplemented.
777 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
779 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
782 1999-11-02 Tom Tromey <tromey@cygnus.com>
784 * boehm.cc: Don't include boehm-config.h.
786 1999-11-01 Tom Tromey <tromey@cygnus.com>
788 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
789 (sum_blocks): Removed.
790 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
792 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
794 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
796 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
797 * java/io/InputStreamReader (InputStreamReader): ditto.
799 1999-10-22 Tom Tromey <tromey@cygnus.com>
801 * Makefile.in: Rebuilt.
802 * Makefile.am (java/lang/ClassLoader.h): New target.
803 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
806 * include/java-props.h (_Jv_Compiler_Properties): Changed
808 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
809 * include/jvm.h (_Jv_GCSetInitialHeapSize,
810 _Jv_GCSetMaximumHeapSize): Declare.
811 (JvRunMain, _Jv_RunMain): Declare.
812 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
813 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
814 (_Jv_GCSetMaximumHeapSize): Likewise.
815 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
816 (_Jv_GCSetMaximumHeapSize): Likewise.
817 * prims.cc (parse_heap_size): New function.
818 (_Jv_SetInitialHeapSize): Likewise.
819 (_Jv_SetMaximumHeapSize): Likewise.
820 (_Jv_Compiler_Properties): New global.
821 * gij.cc (help): New function.
823 (heap_size): Likewise.
824 (heap_max_size): Likewise.
825 (main): Parse arguments. Set _Jv_Compiler_Properties.
826 Include <config.h>, <java-props.h>.
827 (_Jv_Compiler_Properties): Removed.
829 1999-10-18 Tom Tromey <tromey@cygnus.com>
831 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
833 (redirect): New static field.
834 * java/lang/ClassLoader.java (getSystemClassLoader): Now
836 (getVMClassLoader0): Removed.
837 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
839 (getSystemClassLoader): Implemented.
841 1999-10-16 Anthony Green <green@cygnus.com>
843 * java/lang/ClassLoader.java (getSystemResource): Use
844 getSystemClassLoader instead of ClassLoader.system.
845 (getSystemResourceAsStream): Ditto.
847 * java/lang/natClassLoader.cc (redirect): Make static and
848 remove #ifdef INTERPRETER so it is always defined.
849 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
850 returns a VMClassLoader.
852 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
853 PropertyResourceBundle if a properties file is found before a
854 ResourceBundle class.
856 1999-10-15 Tom Tromey <tromey@cygnus.com>
858 * gij.cc (main): Formatting fixes.
859 (_Jv_Compiler_Properties): Define.
860 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
862 (init_properties): Set properites from _Jv_Compiler_Properties.
863 * include/java-props.h (_Jv_Compiler_Properties,
864 _Jv_Environment_Properties): Declare.
866 * include/java-props.h: Added copyright.
868 1999-10-13 Anthony Green <green@cygnus.com>
870 * libtool-version: Catch up by incrementing current.
872 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
873 * configure, include/config.h.in: Rebuilt.
874 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
875 * configure.in: Added --disable-getenv-properties and new define
876 `DISABLE_GETENV_PROPERTIES'.
878 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
879 (next_property_key): New function.
880 (next_property_value): New function.
881 (process_gcj_properties): New function.
882 (JvRunMain): Call process_gcj_properties.
885 * java/lang/natSystem.cc (init_properties): Set properties defined
888 * include/java-props.h: New file.
890 * java/lang/natSystem.cc (init_properties): Add new properties to
891 conform with Java Product Versioning Specification.
893 1999-10-12 Tom Tromey <tromey@cygnus.com>
895 * configure: Rebuilt.
896 * configure.in: Fixed test for --disable-java-net.
898 1999-10-06 Tom Tromey <tromey@cygnus.com>
900 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
901 when building Canadian cross.
902 (NATIVE): Don't define when cross-compiling.
904 1999-10-04 Tom Tromey <tromey@cygnus.com>
906 * java/net/natPlainSocketImpl.cc: Don't include headers if
907 java.net is disabled.
909 * Makefile.in: Rebuilt.
910 * Makefile.am (ZINCS): Removed. This is defined in configure.in
911 when needed, and must be left empty when not needed.
913 1999-10-01 Anthony Green <green@cygnus.com>
915 * THANKS: Refreshed from htdocs version.
917 1999-10-01 Steve Chamberlain <sac@pobox.com>
919 * Makefile.in: Rebuilt.
920 * Makefile.am (ZINCS): Define
922 * configure: Rebuilt.
923 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
925 * java/lang/ieeefp.h: Add definitions for picoJava.
927 1999-10-01 Tom Tromey <tromey@cygnus.com>
929 * configure: Rebuilt.
930 * configure.in: Set classpath when invoking gcj. Use changequote
931 around sed invocation.
933 * java/net/natPlainSocketImpl.cc: Stub native functions if
934 DISABLE_JAVA_NET is defined.
935 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
936 typo in exception string.
937 (getTimeToLive): Likewise.
938 Stub native functions if DISABLE_JAVA_NET is defined.
939 * java/net/natInetAddress.cc: Stub native functions if
940 DISABLE_JAVA_NET is defined.
941 * configure.host: Disable java.net for mips-tx39.
942 * configure, include/config.h.in: Rebuilt.
943 * acconfig.h (DISABLE_JAVA_NET): Undefine.
944 * configure.in: Added --disable-java-net and new define
947 1999-09-30 Tom Tromey <tromey@cygnus.com>
949 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
951 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
955 1999-09-28 Tom Tromey <tromey@cygnus.com>
957 * configure: Rebuilt.
958 * configure.in (PROCESS): In POSIX case, only set if not already
960 * configure.host (PROCESS): Set in mips-tx39 case.
962 * aclocal.m4, configure: Rebuilt.
963 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
964 appropriate AC_PROG_ symbol.
966 1999-09-24 Tom Tromey <tromey@cygnus.com>
968 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
970 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
972 Fix for PR java.util/47:
973 * configure, include/config.h: Rebuilt.
974 * configure.in: Don't look for ctime or ctime_r.
975 * Makefile.in: Rebuilt.
976 * Makefile.am (nat_source_files): Don't mention natDate.cc.
977 * java/util/natDate.cc: Removed.
978 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
980 (getAvailableIDs): Rewrote.
981 (getTimeZone): Rewrote.
982 * java/util/Date.java (toGMTString): New method.
983 (toLocaleString): New method.
986 1999-09-23 Tom Tromey <tromey@cygnus.com>
988 * configure: Rebuilt.
989 * configure.in: Print message when checking to see if gcj can
990 handle -fuse-divide-subroutine.
992 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
994 * java/lang/FirstThread.java (run0): Renamed to `run'.
997 * prims.cc (main_init): New function.
998 (JvRunMain): Call it.
999 (_Jv_RunMain): Likewise.
1001 (main_init): Ignore SIGPIPE. Fixes PR 51.
1003 1999-09-22 Tom Tromey <tromey@cygnus.com>
1005 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1007 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
1009 * java/text/MessageFormat.java (MessageFormat(String)): Set the
1011 * java/text/NumberFormat.java: Check that object is a Number. If
1012 not, throw IllegialArgumentException.
1014 1999-09-21 Tom Tromey <tromey@cygnus.com>
1016 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1017 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
1019 * include/posix-threads.h (_Jv_MutexDestroy): Use
1020 _Jv_PthreadGetMutex.
1021 (_Jv_MutexLock): Likewise.
1022 (_Jv_MutexUnlock): Likewise.
1024 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1025 previous patch; it too was incorrect.
1026 * java/io/PrintStream.java (PrintStream): Likewise.
1028 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1029 refer to `this' before calling superclass constructor.
1030 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1031 before calling superclass constructor.
1033 1999-09-20 Tom Tromey <tromey@cygnus.com>
1035 * configure: Rebuilt.
1036 * configure.in: Send output of `-fuse-divide-subroutine' test
1037 compilation to /dev/null.
1039 1999-09-14 Tom Tromey <tromey@cygnus.com>
1041 * include/java-insns.h: Turned constants into an enum. Added
1042 multiple-inclusion protection.
1044 1999-09-10 Tom Tromey <tromey@cygnus.com>
1046 * configure: Rebuilt.
1047 * configure.in: Build include/Makefile.
1048 * Makefile.in: Rebuilt.
1049 * Makefile.am (SUBDIRS): Added gcj and include.
1050 (install-data-local): New target.
1051 (extra_headers): New macro.
1052 * include/Makefile.in: New file.
1053 * include/Makefile.am: New file.
1055 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1056 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1058 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1059 * resolve.cc: Include config.h.
1060 * defineclass.cc: Include config.h.
1061 * include/java-interp.h: Don't include config.h.
1062 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1065 * gcj/javaprims.h: Regenerated namespace decls.
1066 * classes.pl (scan): Don't put `;' after closing brace.
1068 * Makefile.in: Rebuilt.
1069 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1070 * configure.in: Create gcj/Makefile.
1071 * gcj/Makefile.in: New file.
1072 * gcj/Makefile.am: New file.
1073 * java/lang/Object.h: Don't include any other headers.
1074 * gcj/array.h: Renamed from include/java-array.h.
1075 * gcj/field.h: Renamed from include/java-field.h.
1076 * gcj/method.h: Renamed from include/java-method.h.
1077 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1078 Updated all files to reflect new include structure.
1080 1999-09-09 Tom Tromey <tromey@cygnus.com>
1082 * configure: Rebuilt.
1083 * configure.in: Fixed typo; variable is THREADSPEC and not
1086 1999-09-08 Tom Tromey <tromey@cygnus.com>
1088 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1089 previous change and implemented a correct test in the __m_count
1092 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1095 1999-09-07 Tom Tromey <tromey@cygnus.com>
1097 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1098 code and don't set errno.
1100 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1101 not `r'. Changed `done_sleeping' to a `bool'.
1103 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1105 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1106 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1107 by another thread, rather than by the GC.
1108 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1109 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1110 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1113 1999-09-03 Tom Tromey <tromey@cygnus.com>
1115 * configure: Rebuilt.
1116 * configure.in: Check for fstat function.
1117 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1120 1999-09-02 Tom Tromey <tromey@cygnus.com>
1122 * include/java-array.h (jobjectArrayjchar): Removed unused
1125 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1126 _Jv_PrepareCompiledClass while holding class mutex.
1128 1999-09-01 Tom Tromey <tromey@cygnus.com>
1130 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1131 (_Jv_PthreadGetMutex): Use it.
1132 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1133 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1134 (_Jv_MutexLock): Likewise.
1135 (_Jv_MutexUnlock): Likewise.
1136 * include/config.h.in: Rebuilt.
1137 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1138 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1139 * configure: Rebuilt.
1140 * libgcj.spec.in: Don't mention INTERPSPEC.
1141 * configure.in (INTERPSPEC): Removed.
1142 Only run pthreads-related checks when using POSIX threads. Check
1143 for m_count and __m_count in mutex structure.
1145 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1147 * java/lang/natClass.cc: Fixed notification of threads
1148 when class initialization is complete.
1150 1999-09-01 Tom Tromey <tromey@cygnus.com>
1152 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1153 * resolve.cc: Removed constants defined by
1154 java.lang.reflect.Modifier.
1155 Include <java/lang/reflect/Modifier.h>.
1156 (_Jv_ResolvePoolEntry): Use values from Modifier.
1157 (_Jv_DetermineVTableIndex): Likewise.
1158 (_Jv_PrepareClass): Likewise.
1160 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1161 java.lang.reflect.Modifier.
1162 Include <java/lang/reflect/Modifier.h>.
1163 (checkExtends): Use values from Modifier.
1164 (checkImplements): Likewise.
1165 (handleField): Likewise.
1166 (handleConstantValueAttribute): Likewise.
1167 (handleFieldsEnd): Likewise.
1168 (handleMethod ): Likewise.
1169 (handleMethodsEnd): Likewise.
1170 (handleClassBegin): Likewise.
1171 * interpret.cc: Removed constants defined by
1172 java.lang.reflect.Modifier.
1173 (continue1): Use values from Modifier.
1174 * java/lang/natClassLoader.cc: Removed constants defined by
1175 java.lang.reflect.Modifier.
1177 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1178 JV_STATE_NOTHING, not `0'.
1179 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1181 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1182 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1184 (_Jv_PthreadGetMutex): New function.
1185 (_Jv_PthreadCheckMonitor): Use it.
1186 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1187 (_Jv_MutexLock): Update `count'.
1188 (_Jv_MutexUnlock): Likewise.
1189 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1192 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1194 * Makefile.am (.java.lo): Add rule.
1196 * Makefile.in: Rebuilt.
1198 1999-09-01 Tom Tromey <tromey@cygnus.com>
1200 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1201 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1203 (_Jv_CondNotify): Use it.
1204 (_Jv_CondNotifyAll): Likewise.
1206 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1208 1999-08-31 Tom Tromey <tromey@cygnus.com>
1210 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1213 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1215 * posix-threads.cc: Include <errno.h>.
1217 1999-08-23 Tom Tromey <tromey@cygnus.com>
1219 * boehm.cc: Undefine TRUE and FALSE.
1221 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1223 1999-08-21 Tom Tromey <tromey@cygnus.com>
1225 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1228 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1230 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1232 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1233 (HAVE_STRUCT_IP_MREQ): Added.
1234 * configure, include/config.h.in: Rebuilt.
1235 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1237 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1238 Disable if ip_mreq is not available.
1240 * configure.in: Check types ssize_t and in_addr_t.
1241 * acconfig.h: Undefine them.
1242 * configure, include/config.h.in: Rebuilt.
1244 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1245 function that detects the signature of getpwuid_r.
1246 (init_properties): Use it.
1247 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1250 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1252 * interpret.cc (continue1): Implement explicit dispatch table.
1253 insn_target: Explicit interpreter switch table.
1254 SAVE_PC: New macro, moves pc saving code into instructions that
1256 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1257 PC_REGISTER_ASM: New macro.
1258 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1259 opcode: Remove local variable.
1260 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1261 (POKEI): Use _Jv_word.
1262 (iinc): Use _Jv_word.
1263 (dupx): Change reference argument (sp) to pointer.
1266 * interpret.cc: Remove instruction timing instrumentation.
1268 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1269 comment. Don't use _Jv_ClassNameSamePackage.
1271 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1272 URLPathEntry, CacheEntry}: Removed.
1274 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1276 (.java.lo): Rule removed.
1278 * Makefile.in: Rebuilt.
1280 1999-08-19 Tom Tromey <tromey@cygnus.com>
1282 * java/lang/natThread.cc (class locker): New class.
1283 (join): Use a locker around _Jv_CondWait.
1286 1999-08-18 Tom Tromey <tromey@cygnus.com>
1288 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1289 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1291 1999-08-18 Tom Tromey <tromey@cygnus.com>
1293 * include/javaprims.h ("Java"): Regenerated namespace decls.
1295 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1297 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1298 from _Jv_InternClassStrings.
1300 * prims.cc (_Jv_RunMain): New function.
1301 (JvRunMain): Remove gij-support.
1303 * gij.cc (main): Use _Jv_RunMain.
1305 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1307 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1308 argument in temp variable.
1309 (continue1): For all op_x2y insns, use temp variable for
1310 intermediate value. Also remove some comments.
1312 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1313 (forName): Don't call _Jv_InitClass.
1315 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1317 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1319 * java/util/jar/JarInputStream.java: New file.
1321 * java/util/jar/JarEntry.java: New file.
1323 * java/util/jar/JarFile.java: New file.
1325 * java/net/URLClassLoader.java: New file.
1327 * java/net/JarURLConnection.java: New file.
1329 * gnu/gcj/protocol/jar/Handler.java: New file.
1331 * gnu/gcj/protocol/jar/Connection.java: New file.
1333 * java/security/SecureClassLoader.java: New file.
1335 * java/lang/ClassLoader.java (parent): New variable.
1336 (ClassLoader (ClassLoader)): new constructor.
1337 (findClass): New method.
1338 (loadClass): Add default 1.2 implementation.
1339 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1340 (readfully): Removed.
1342 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1343 (findSystemClass): New method.
1344 (VMClassLoader): Constructor rewritten.
1346 All other methods removed.
1348 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1349 to gnu::gcj::runtime::VMClassLoader.
1350 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1352 (VMClassLoader::findSystemClass): renamed from findBootClass.
1354 * Makefile.am: Add new files.
1355 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1357 * Makefile.in: Rebuilt.
1359 1999-08-17 Tom Tromey <tromey@cygnus.com>
1361 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1363 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1366 1999-08-16 Tom Tromey <tromey@cygnus.com>
1368 * configure: Rebuilt.
1369 * configure.in: Set DIVIDESPEC to empty string if compiler does
1370 not support -fuse-divide-subroutine.
1372 1999-08-14 Per Bothner <per@bothner.com>
1374 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1375 * java/lang/natClass.cc (initializeClass): Likewise.
1376 * java/lang/ClassLoader.java (resolveClass0): New static method.
1377 (resolveClass): Call resolveClass0.
1378 (findSystemClass): No longer static.
1380 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1382 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1384 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1386 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1389 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1391 * Makefile: Rebuilt.
1392 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1395 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1398 * configure: Rebuilt.
1399 * configure.in: Properly align --help output, fix capitalization
1401 * acinclude.m4: Likewise.
1403 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1405 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1407 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1408 (_Jv_callInterpretedMethod): Unused. Remove.
1409 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1411 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1412 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1413 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1414 * interpret.cc: use _Jv_word.
1415 * defineclass.cc: use_Jv_word.
1416 * resolve.cc: Use _Jv_word.
1417 (_Jv_ResolvePoolEntry): Return _Jv_word.
1418 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1419 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1421 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1424 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1426 * configure: Rebuilt.
1427 * configure.in (sched_yield): Try librt first, then libposix4.
1428 Add -lrt, -lposix4 to THREADSPEC.
1430 1999-08-08 Anthony Green <green@cygnus.com>
1432 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1434 1999-08-08 Anthony Green <green@cygnus.com>
1436 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1439 1999-08-08 Anthony Green <green@cygnus.com>
1443 * include/config.h.in: Rebuilt.
1444 * acconfig.h: Add INTERPRETER.
1446 * Makefile.in: Rebuilt.
1447 * Makefile.am (libffi_files): Identify the libffi object files for
1448 inclusion in libgcj.
1449 (LIBFFIINCS): Define.
1451 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1452 Dummy definition for configurations without an interpreter.
1454 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1455 java::lang::Boolean constructor.
1457 * include/java-interp.h: Always include java-cpool.h.
1459 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1460 when INTERPRETER not defined.
1462 * java/lang/Class.h (finalize): Define.
1464 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1465 IOException from File.getCanonicalPath.
1466 (getStream): Likewise.
1469 * THANKS: More thanks.
1471 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1473 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1475 (_Jv_PrepareClass): Allow non-abstract classes to
1476 have abstract subclasses.
1477 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1479 * interpret.cc (continue1/perform_invoke): Don't sign extend
1481 (continue1/lshl,lshr): Push long, not int.
1482 (continue1/ulshr): Use UINT64, not long long.
1483 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1485 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1486 * java/lang/FirstThread.java (run): Add top-level exception
1488 (run0): Renamed from run.
1490 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1492 * configure.in (--with-interpreter): Added.
1493 * include/config.h.in (INTERPRETER): Added.
1495 * java/lang/ClassLoader.java: File replaced.
1496 * java/lang/VMClassLoader.java: New file.
1497 * java/lang/natClassLoader.cc: New file.
1498 * gnu/gcj/runtime/MethodInvocation.java: New file.
1499 * gnu/gcj/util/path/SearchPath.java: New file.
1500 * gnu/gcj/util/path/PathEntry.java: New file.
1501 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1502 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1503 * gnu/gcj/util/path/URLPathEntry.java: New file.
1504 * gnu/gcj/util/path/CacheEntry.java: New file.
1505 * include/java-interp.h: New file.
1506 * include/java-cpool.h: New file.
1507 * include/java-insns.h: New file.
1508 * defineclass.cc: New file.
1509 * interpret.cc: New file.
1510 * resolve.cc: New file.
1512 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1513 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1514 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1516 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1517 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1519 (initializeClass): Use new JV_ prefixed names. Also, call
1520 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1522 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1523 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1524 JV_STATE_LINKED): New.
1525 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1526 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1527 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1528 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1529 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1530 _Jv_InterpMethodInvocation): New friends for interpreter.
1532 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1533 include/java-cpool.h and renamed with JV_ prefix.
1535 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1537 (_Jv_UnregisterClass): New decl.
1539 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1540 class loader argument.
1541 (_Jv_FindClass): Use class loader.
1543 * prims.cc (_Jv_makeUtf8Const): New function.
1544 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1545 (_Jv_NewPrimArray): Ditto.
1546 (_Jv_FindClassFromSignature): Ditto.
1547 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1548 * java/lang/reflect/natMethod.cc (getType): Ditto.
1550 * include/java-field.h (_Jv_Field::isRef): Make robust for
1551 non-resolved contexts.
1553 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1554 Also, don't mark class->next field.
1556 * java/lang/VirtualMachineError.java: Added FIXME note.
1558 * configure.in (INTERPSPEC): New spec.
1559 * libgcj.spec.in: Added INTERPSPEC.
1560 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1561 gnu/gcj/runtime/MethodInvocation.
1562 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1563 (ordinary_java_source_files): Added above mentioned java classes.
1565 * configure: Rebuilt.
1566 * Makefile.in: Rebuilt.
1568 1999-08-06 Tom Tromey <tromey@cygnus.com>
1570 * configure: Rebuilt.
1571 * configure.in: Look for sched_yield in -lrt.
1573 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1575 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1576 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1577 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1579 (toString): Print correctly when `country' is empty.
1581 1999-08-04 Per Bothner <per@bothner.com>
1583 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1585 1999-08-02 Tom Tromey <tromey@cygnus.com>
1587 * aclocal.m4, configure: Rebuilt for new libtool.
1589 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1591 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1592 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1593 * java/net/ServerSocket.java: Define ANY_IF.
1594 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1595 all network interfaces.
1596 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1597 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1599 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1601 * java/io/natFile.cc (performMkdir): Remove FIXME.
1602 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1604 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1606 * configure.in: Check for bstring.h.
1607 * configure, include/config.h.in: Rebuilt.
1608 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1609 * java/net/natPlainSocketImpl.cc: Likewise.
1611 1999-07-31 Tom Tromey <tromey@cygnus.com>
1616 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1618 * configure.in: Check for struct hostent_data and need for
1619 -D_REENTRANT for gethostbyname_r declaration.
1620 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1621 (lookup): Use hostent_data for fixed_buffer.
1622 * configure, include/config.h.in: Rebuilt.
1624 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1626 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1627 available. Don't cast memmove args to (void*).
1628 * configure.in: Do not abort if memmove is not available.
1630 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1632 * java/lang/natString.cc (substring): optimize where substring is
1634 * java/io/File.java (getName): don't return separator with file name.
1635 * java/io/natFile.cc (attr): fix overflow.
1637 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1639 * mauve-libgcj: Disable Object Serialization tests.
1641 1999-07-20 Warren Levy <warrenl@cygnus.com>
1643 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1644 Default to using PlainDatagramSocketImpl.
1645 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1647 1999-07-19 Tom Tromey <tromey@cygnus.com>
1649 * include/stamp-h.in: New file.
1651 1999-07-12 Tom Tromey <tromey@cygnus.com>
1653 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1656 1999-07-07 Andrew Haley <aph@cygnus.com>
1658 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1659 bytes to make it point after the instruction where the trap
1661 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1663 1999-07-07 Tom Tromey <tromey@cygnus.com>
1665 * mauve-libgcj: Explicitly enable formerly disabled java.text
1668 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1671 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1673 * java/net/URL.java (equals): Compare strings using String.equals.
1674 * java/net/URL.java (sameFile): Ditto.
1676 1999-07-02 Warren Levy <warrenl@cygnus.com>
1678 * configure: Rebuilt.
1679 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1680 * include/config.h.in: Rebuilt.
1681 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1682 (mcastGrp): Updated FIXME comments.
1683 (setOption): Fixed typo.
1684 (getOption):Implemented IP_MULTICAST_IF.
1686 1999-07-02 Warren Levy <warrenl@cygnus.com>
1688 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1689 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1690 (getTimeToLive): Implemented.
1691 (setOption): Implemented IP_MULTICAST_IF.
1693 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1695 * java/lang/String.java (toString): Check for this == null and throw
1696 NullPointerException.
1698 1999-07-01 Warren Levy <warrenl@cygnus.com>
1700 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1701 to count and revised comments to match.
1702 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1703 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1704 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1705 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1706 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1707 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1709 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1711 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1712 properly as count rather than outlength.
1713 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1714 output on overflow rather than buffer fill.
1715 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1716 if markPos is 0 and there is still room in the buffer.
1718 1999-07-01 Andrew Haley <aph@cygnus.com>
1720 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1721 This is a workaround for a bug in glibc's pthreads package which
1722 doesn't deliver any sigcontext information to a signal handler.
1724 1999-06-24 Tom Tromey <tromey@cygnus.com>
1726 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1727 * java/lang/fdlibm.h (HUGE): Conditionally define.
1729 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1731 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1732 * java/lang/e_log.c: Don't use __uint32_t.
1734 1999-05-27 Eric Christopher <echristo@cygnus.com>
1736 * configure: Rebuilt
1737 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1738 * acconfig.h: Rebuilt
1739 * include/config.h.in: Rebuilt
1741 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1742 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1743 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1744 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1745 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1746 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1747 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1748 and namespace collision with __uint32_t
1750 1999-06-23 Tom Tromey <tromey@cygnus.com>
1752 * java/util/zip/InflaterInputStream.java (read): Throw
1753 ZipException if inflater throws a DataFormatException.
1755 1999-06-23 Warren Levy <warrenl@cygnus.com>
1757 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1758 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1759 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1760 is not final per JDK.
1761 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1763 * java/util/zip/DataFormatException.java: Class extends Exception.
1764 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1765 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1766 * java/util/zip/ZipInputStream.java: ditto.
1767 (closeEntry): Changed method name to match JDK spec.
1769 1999-06-21 Tom Tromey <tromey@cygnus.com>
1771 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1774 * Makefile.in: Rebuilt.
1775 * Makefile.am (toolexeclibdir): Define as libdir when
1777 * configure: Rebuilt.
1778 * configure.in (USE_LIBDIR): New conditional.
1780 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1782 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1783 hostname in returned InetAddress objects.
1784 (getLocalHostname): Fix typo.
1785 * java/net/InetAddress.java (getByName): Set hostname on return
1787 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1790 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1792 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1793 interfaces if host==NULL.
1794 (accept): Throw message with InterruptedIOException.
1795 (getOption): Cache localAddress.
1796 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1797 'address' for DatagramSocket.
1798 (setTimeToLive): Fix compiler warnings.
1799 (getOption): Cache localAddress.
1800 * java/net/Socket.java (getLocalAddress): Don't need local
1801 InetAddress object. Add FIXME comment about calling checkConnect().
1802 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1803 connection queue to 50 as per JDK 1.2 docs.
1804 (ServerSocket(int,int)): Listen on all network interfaces by
1805 default, per JDK 1.2 docs.
1806 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1807 Add localAddress caching.
1809 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1811 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1813 (write(byte[],int,int)): ditto.
1815 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1817 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1819 1999-06-11 Warren Levy <warrenl@cygnus.com>
1821 * mauve-libgcj: Activated java.net Mauve tests.
1823 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1825 * java/net/natInetAddress.cc (aton): Fix typos.
1826 (lookup): Use a bigger buffer size for gethostbyname_r on all
1827 versions of glibc. Updated FIXME comment explaining this.
1828 Modified while loops to not set herr = ERANGE to work around glibc
1829 problems. Use user specified hostname in InetAddress result when
1830 available (consistent with JDK).
1832 1999-06-10 Warren Levy <warrenl@cygnus.com>
1834 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1835 Throw FileNotFoundException instead of IOException.
1837 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1839 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1840 in static field name.
1841 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1842 throughout rather than ParseException.
1844 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1846 * java/lang/Runtime.java (exec): Convert prog name and arguments
1848 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1849 environment array conversion. Preserve current environment if envp
1850 not passed. Preserve PATH unless explicitly specified.
1851 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1852 followed by EOF. Set a flag when a line is terminated by '\r' and
1853 ignore following '\n' if set.
1855 1999-06-02 Warren Levy <warrenl@cygnus.com>
1857 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1858 Ignore context if spec is an absolute URL. Fix braindead
1860 (hashCode): Use JDK 1.2 style algorithm.
1861 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1862 context URL properly.
1864 1999-05-30 Anthony Green <green@cygnus.com>
1866 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1867 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1869 1999-05-28 Warren Levy <warrenl@cygnus.com>
1871 * java/net/DatagramSocket.java (laddr): Removed.
1872 (DatagramSocket): Removed attempts to get or set laddr if null.
1873 (getLocalAddress): Reimplemented per spec.
1874 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1876 (joinGroup): Throw NullPointerException if any argument is null.
1877 (leaveGroup): ditto.
1878 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1879 * java/net/PlainSocketImpl.java (timeout): Added.
1880 (getInputStream): Added FIXME comment on how to support timeouts
1882 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1883 * java/net/Socket.java: Added FIXME comments to identify
1884 conflicting specs between the JCL and JDK 1.2 documents.
1885 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1886 if host is null. Get localport value resolved by kernel if bind
1888 (receive): Implemented support for timeouts in UDP.
1889 (setOption): Implemented based on natPlainSocketImpl version.
1891 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1892 resolved by kernel if bind lport is 0.
1893 (connect): Get localport value resolved by kernel if bind wasn't
1894 done to set localport.
1895 (accept): Implemented support for timeouts for ServerSocket.
1896 (setOption): Save value for SO_TIMEOUT.
1897 (getOption): Return timeout for SO_TIMEOUT.
1899 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1901 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1902 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1903 (setOption): Made abstract.
1904 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1905 to avoid cpp conflicts in native code.
1906 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1907 cpp conflicts in native code.
1908 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1909 * java/net/Socket.java (getLocalAddress): Implemented.
1910 (setTcpNoDelay): Implemented.
1911 (getTcpNoDelay): Implemented.
1912 (setSoLinger): Implemented.
1913 (getSoLinger): Implemented.
1914 (getSoTimeout): Verify class type.
1915 (setSendBufferSize): Implemented.
1916 (getSendBufferSize): Implemented.
1917 (setReceiveBufferSize): Implemented.
1918 (getReceiveBufferSize): Implemented.
1919 (toString): Prepended "Socket".
1920 * java/net/SocketImpl.java (toString): Rewritten.
1921 (getOption): Made abstract.
1922 (setOption): Made abstract.
1923 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1924 (setOption): Implemented.
1925 (getOption): Implemented.
1927 1999-05-26 Warren Levy <warrenl@cygnus.com>
1929 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1930 address when null. Set SO_REUSEADDR for multicasts.
1931 (getSoTimeout): Implemented.
1932 (setSoTimeout): Implemented.
1933 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1934 * java/net/MulticastSocket.java (getInterface): Implemented.
1935 (setInterface): Implemented.
1936 (setTimeToLive): Check for invalid ttl.
1937 (joinGroup): Verify multicast address and security.
1938 (leaveGroup): Verify multicast address and security.
1939 (send): Implemented.
1940 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1946 (getTTL): Implemented as non-native.
1950 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1951 (getSoTimeout): Implemented.
1952 (setSocketFactory): Made synchronized.
1953 * java/net/Socket.java (setSoTimeout): Implemented.
1954 (getSoTimeout): Implemented.
1955 (close): Made synchronized.
1956 (setSocketImplFactory): Made synchronized.
1957 * java/net/SocketImpl.java: Implement SocketOptions interface.
1958 * java/net/natInetAddress.cc: Corrected module name at top of file.
1959 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1960 (bind): Added FIXME.
1961 (peek): Implemented.
1967 (setOption): Implemented for SO_REUSEADDR.
1968 (getOption): Implemented for SO_REUSEADDR.
1970 1999-05-24 Tom Tromey <tromey@cygnus.com>
1972 * java/util/ResourceBundle.java (getBundle): Throw
1973 NullPointerException if baseName is null.
1975 1999-05-22 Tom Tromey <tromey@cygnus.com>
1977 * java/util/zip/ZipInputStream.java (fill): New method.
1978 (compressed_len): New instance variable.
1979 (getNextStream): Set it.
1980 (read): Reset inflater on EOF. Only read via `super' if entry is
1982 (skip): Only skip via `super' if entry is deflated.
1983 * java/util/zip/Deflater.java (last_input_count): Removed.
1984 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1986 (needsInput): Don't use last_input_count.
1987 (setInput): Don't set last_input_count.
1988 * java/util/zip/natInflater.cc (getRemaining): Return correct
1990 (inflate): Return 0 if input array is length 0.
1991 (setInput): Don't set last_input_count.
1992 * java/util/zip/Inflater.java (last_input_count): Removed.
1994 1999-05-21 Tom Tromey <tromey@cygnus.com>
1996 * Makefile.in: Rebuilt.
1997 * Makefile.am (INCLUDES): Added $(ZINCS).
1998 * configure: Rebuilt.
1999 * configure.in (ZINCS): New subst.
2001 1999-05-21 Andrew Haley <aph@cygnus.com>
2003 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2004 to signal options to allow the same exceptions to be rethrown
2007 1999-05-20 Andrew Haley <aph@cygnus.com>
2009 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2011 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2012 (INIT_FPE): Exception string made more informative.
2013 * include/sparc-signal.h (INIT_FPE): Exception string made more
2015 * testsuite/libjava.lang/Divide_1.java: New file.
2016 * testsuite/libjava.lang/Divide_1.out: New file.
2018 1999-05-19 Tom Tromey <tromey@cygnus.com>
2020 * aclocal.m4, configure: Rebuilt.
2021 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2023 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2026 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2028 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2030 (update): Fail in default case. Always initialize `strat'.
2032 * mauve-libgcj: Enable java.util.zip.
2034 1999-05-18 Warren Levy <warrenl@cygnus.com>
2036 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2037 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2038 PlainDatagramSocketImpl.java, and SocketOptions.java.
2039 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2040 * Makefile.in: Rebuilt.
2042 * java/net/DatagramPacket.java: New file.
2043 * java/net/DatagramSocket.java: New file.
2044 * java/net/DatagramSocketImpl.java: New file.
2045 * java/net/MulticastSocket.java: New file.
2046 * java/net/PlainDatagramSocketImpl.java: New file.
2047 * java/net/SocketOptions.java: New file.
2048 * java/net/natPlainDatagramSocketImpl.cc: New file.
2050 1999-05-18 Tom Tromey <tromey@cygnus.com>
2052 * java/util/zip/ZipOutputStream.java (level): Initial value is
2053 Deflater.DEFAULT_COMPRESSION.
2054 (close): New method.
2055 (closeEntry): Likewise.
2057 (put_version): Likewise.
2058 (write_entry): Likewise.
2059 (put2, put4): Now return `int'.
2060 (comment): Default to empty string.
2061 (bytes_written): New instance variable.
2063 * java/util/zip/ZipEntry.java (setComment): Limit length of
2065 (setCrc): Check CRC validity.
2066 (setExtra): Check argument validity.
2067 (setMethod): Likewise.
2068 (setSize): Likewise.
2069 (ZipEntry): Likewise.
2070 * include/javaprims.h: Updated namespace declarations.
2071 * Makefile.in: Rebuilt.
2072 * Makefile.am (ordinary_java_source_files): Mention new files.
2073 (nat_source_files): Likewise.
2074 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2077 (getInputStream): Handle compressed entries.
2078 * java/util/zip/GZIPOutputStream.java: New file.
2079 * java/util/zip/GZIPInputStream.java: New file.
2080 * java/util/zip/DataFormatException.java: New file.
2081 * java/util/zip/CheckedInputStream.java: New file.
2082 * java/util/zip/CheckedOutputStream.java: New file.
2083 * java/util/zip/InflaterInputStream.java: Implemented.
2084 * java/util/zip/natInflater.cc: New file.
2085 * java/util/zip/Deflater.java: Implemented.
2086 * java/util/zip/natDeflater.cc: New file.
2087 * java/util/zip/DeflaterOutputStream.java: Implemented.
2089 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2090 ZipException, not IOException.
2091 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2094 1999-05-17 Tom Tromey <tromey@cygnus.com>
2096 * java/lang/natSystem.cc (init_properties): URL now points to
2099 1999-05-12 Per Bothner <bothner@cygnus.com>
2101 * java/util/Calendar.java (set): First call computeFields if needed.
2102 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2104 1999-05-12 Tom Tromey <tromey@cygnus.com>
2106 * configure: Rebuilt.
2107 * configure.in: Look for -ldl when using the Boehm collector.
2108 Look for sched_yield in -lposix4.
2110 1999-05-12 Per Bothner <bothner@cygnus.com>
2112 * java/io/File.java (mkdirs): Handle a null parent directory.
2114 1999-05-12 Tom Tromey <tromey@cygnus.com>
2116 * include/javaprims.h: Updated namespace declarations.
2117 * classes.pl (scan): Uniquify class list.
2118 * Makefile.in, configure: Rebuilt.
2119 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2120 (built_java_source_files): New macro.
2121 (nat_headers): Added built_java_source_files.
2122 (javao_files): Likewise.
2123 (EXTRA_libgcj_la_SOURCES): Likewise.
2124 (libgcj.zip): Create built class files.
2125 ($(built_java_source_files:.java=.class)): New target.
2126 (jv_convert_LDADD): Added -L$(here)/.libs.
2127 * configure.in: Create links for ConcreteProcess.java and
2128 natConcreteProcess.cc.
2129 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2130 * java/lang/natEcosProcess.cc: New file.
2131 * java/lang/EcosProcess.java: New file.
2132 * java/lang/PosixProcess.java: New file.
2133 * java/lang/natPosixProcess.cc: New file.
2135 1999-05-12 Warren Levy <warrenl@cygnus.com>
2137 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2138 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2139 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2140 (connect): Throw ConnectException.
2142 1999-05-11 Tom Tromey <tromey@cygnus.com>
2144 * Makefile.in: Rebuilt.
2145 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2146 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2149 * Makefile.in: Rebuilt.
2150 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2151 and it causes problems with libtool.
2153 * Makefile.in, configure: Rebuilt.
2154 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2155 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2156 (jv_convert_DEPENDENCIES): Added ZDEPS.
2157 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2159 (THREADSPEC): Added `-L' to point to qthreads build directory.
2163 * configure, Makefile.in: Rebuilt.
2164 * Makefile.am (toolexeclib_DATA): New macro.
2165 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2166 Recognize --with-system-zlib.
2167 (GCSPEC): New subst.
2168 (THREADSPEC): New subst.
2169 (SYSTEMSPEC): New subst.
2170 (ZLIBSPEC): New subst.
2171 * libgcj.spec.in: New file.
2173 1999-05-10 Tom Tromey <tromey@cygnus.com>
2175 * java/io/InputStreamReader.java (read): If length is 0, return
2176 0. Reset `wpos' and `wcount' when buffer has been filled and
2179 * java/util/Properties.java (save): Removed `FIXME' comment.
2180 (load): Invalid characters in \u now treated as terminators.
2181 Make sure to append character resulting from `\' handling.
2182 Cast to `char' when appending to key or value.
2183 (skip_ws): Inverted test for whitespace.
2185 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2187 (readLine): Likewise.
2188 (readFully): Implemented.
2190 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2192 * java/awt/natToolkit.cc: Added copyright header.
2193 * java/util/zip/InflaterInputStream.java: Added copyright header.
2195 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2197 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2199 (getNextStream): Likewise.
2201 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2203 (getBundle): Don't explicitly throw null pointer exception.
2205 * gnu/gcj/RawData.java: Added copyright header.
2207 * include/jni.h (_Jv_va_list): Always define as va_list.
2209 1999-05-9 Anthony Green <green@cygnus.com>
2211 * java/text/DateFormat.java (computeInstance): Separate time
2213 (getDateTimeInstance): Ditto.
2214 (getDateTimeInstance(int,int)): New method.
2216 * Makefile.in: Rebuilt.
2217 * Makefile.am (ordinary_java_source_files): Add new classes.
2219 * java/util/PropertyResourceBundle.java: New file.
2220 * gnu/gcj/util/EnumerationChain.java: New file.
2222 1999-05-07 Tom Tromey <tromey@cygnus.com>
2224 * acconfig.h (GCJVERSION): New undef.
2225 * java/lang/natSystem.cc (init_properties): Define java.version,
2226 java.class.version, os.name, os.arch, os.version.
2227 Include <sys/utsname.h> if required.
2228 * configure: Rebuilt.
2229 * configure.in: Compute and define GCJVERSION.
2231 * java/lang/natSystem.cc (default_file_encoding): Now static.
2233 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2235 * libtool-version: New file.
2236 * Makefile.in: Rebuilt.
2237 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2240 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2241 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2244 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2245 (we pick those up already).
2247 1999-05-05 Per Bothner <bothner@cygnus.com>
2249 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2250 stub classes. (This is enough to get Kawa to compile against libgcj.)
2252 * gnu/gcj/RawData.java: New class.
2253 * doc/cni.sgml: Document RawData.
2255 * java/util/zip/InflaterInputStream.java: New stub class.
2256 * java/util/zip/ZipInputStream.java: New class. Partly works.
2257 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2258 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2259 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2260 * java/util/zip/ZipOutputStream.java: Start implementation.
2262 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2263 (default_file_encoding): New global, initial value is above macro.
2264 (init_properties): Default file.encoding to default_file_encoding.
2266 * Makefile.am: Add new classes.
2268 1999-05-05 Tom Tromey <tromey@cygnus.com>
2270 * Makefile.in: Rebuilt.
2271 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2272 (clean-local): New target
2274 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2275 (load, loadLibrary): Now native.
2277 * java/lang/Runtime.java (load, loadLibrary): Now native.
2278 (init): New native method.
2279 (Runtime): Use init.
2280 * prims.cc: Include <ltdl.h> if required.
2281 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2283 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2285 * configure.in: Switch from irix threads to posix threads
2286 * configure: Regenerate.
2288 1999-04-30 Tom Tromey <tromey@cygnus.com>
2290 * Makefile.in: Rebuilt.
2291 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2293 1999-04-29 Tom Tromey <tromey@cygnus.com>
2295 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2298 * java/util/Locale.java (Locale(String,String)): Implement in
2299 terms of 3-argument version; variant now defaults to empty
2301 (toString): Assume variant is not null.
2302 (equals): Assume all strings are not null.
2303 (Locale): Throw NullPointerException if any argument is null.
2305 * java/util/ResourceBundle.java (getBundle): Don't try the base
2306 name; now implicit in partialGetBundle call.
2307 (trySomeGetBundle): Search for parent bundles and call setParent
2309 (partialGetBundle): Added `langStop' argument. Use
2310 `Locale.toString' to compute bundleName.
2311 (resource_cache): New static field.
2312 (partialGetBundle): Cache the returned resource bundle. Now
2315 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2318 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2319 * java/text/natCollator.cc (decomposeCharacter): `base' now
2321 * Makefile.in: Rebuilt.
2322 * Makefile.am (ordinary_java_source_files): Added
2323 CollationElementIterator, CollationKey, Collator,
2325 (nat_source_files): Added natCollator.cc.
2326 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2327 (compare): Pass `this' to CollationElementIterator constructor.
2328 (getCollationElementIterator): Likewise.
2329 (ceiNext): Fix off-by-one error when finding initial substring.
2330 (next): Correctly mask off bits when computing return value.
2331 Fixed return values when one string is shorter than the other.
2332 * java/text/CollationElementIterator.java (collator): New field.
2333 (CollationElementIterator): Added collator argument.
2334 (next): Call ceiNext on collator object.
2336 1999-04-26 Tom Tromey <tromey@cygnus.com>
2338 * natCollator.cc: New file.
2340 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2341 (GregorianCalendar): Use it in all constructors.
2342 * java/util/Calendar.java (Calendar): Changed argument name to
2343 `zone' to match code.
2345 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2346 * java/text/CollationKey.java: New file.
2347 * java/text/CollationElementIterator.java: New file.
2348 * java/text/Collator.java: New file.
2349 * java/text/RuleBasedCollator.java: New file.
2351 * Makefile.in: Rebuilt.
2352 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2353 (jv_convert_LDADD): Explicltly add -lm -lc.
2355 1999-04-26 Tom Tromey <tromey@cygnus.com>
2357 * configure, Makefile.in: Rebuilt.
2358 * configure.in: Added AM_PROG_LIBTOOL.
2359 (GCOBJS): Use `.lo' form of files.
2360 (THREADOBJS): Likewise.
2361 (GCDEPS): Use `.la' form of library.
2362 (GCLIBS): Set to be the same as GCDEPS.
2363 (THREADDEPS): Use `.la' form of library.
2364 (THREADLIBS): Set to be the same as THREADDEPS.
2365 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2366 toolexeclib_LIBRARIES.
2367 (libgcj_la_SOURCES): Renamed for libtoolization.
2368 (EXTRA_libgcj_la_SOURCES): Likewise.
2369 (libgcj_la_DEPENDENCIES): Likewise.
2370 (libgcj_la_LIBADD): Likewise.
2371 ($(nat_files)): Use LTCXXCOMPILE.
2372 ($(c_files)): Use LTCOMPILE.
2373 (GCJCOMPILE): New macro.
2375 (.java.o): Likewise.
2376 ($(javao_files)): Likewise.
2377 (jv_convert_LINK): Use LIBTOOL.
2378 (nat_files): Use `.lo' files.
2379 (c_files): Likewise.
2380 (javao_files): Likewise.
2381 (.class.lo): Renamed.
2382 (.java.lo): Likewise.
2383 ($(nat_files)): Depend on %.lo.
2384 ($(c_files)): Likewise.
2385 ($(javao_files)): Likewise.
2386 (jv_convert_LDADD): Link against .lo files.
2387 (jv_convert_DEPENDENCIES): Depend on .lo files.
2388 (maintainer-check): Depend on libgcj.la, but examine .a file.
2389 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2390 (libgcj_la_LDFLAGS): New macro.
2392 1999-04-23 Warren Levy <warrenl@cygnus.com>
2394 * Makefile.am: Added URLDecoder and URLEncoder.
2395 * Makefile.in: Rebuilt.
2397 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2398 setSocketImplFactory to match spec.
2399 * java/net/Socket.java (getSoLinger): Changed return type to
2402 * java/net/URLDecoder.java: New file.
2403 * java/net/URLEncoder.java: New file.
2405 1999-04-21 Tom Tromey <tromey@cygnus.com>
2407 * java/lang/natString.cc (getBytes): Reverted earlier change and
2408 applied correct fix from Per Bothner.
2410 * java/lang/String.java: Don't throw
2411 UnsupportedEncodingException.
2413 * java/lang/natString.cc (getBytes): Correctly size result
2414 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2416 1999-04-20 Andrew Haley <aph@cygnus.com>
2418 * include/sparc-signal.h: new file.
2419 * configure.in: include/sparc-signal.h added.
2420 * configure: regenerated.
2421 * prims.cc (JvRunMain): signal handling code rewritten to be more
2423 (catch_segv): ditto.
2425 * include/i386-signal.h: reorganized.
2426 * include/default-signal.h: reorganized.
2428 1999-04-19 Tom Tromey <tromey@cygnus.com>
2430 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2431 once. From Anthony Green.
2433 1999-04-19 Andrew Haley <aph@cygnus.com>
2435 * Makefile.in: Processed with new automake.
2437 1999-04-19 Tom Tromey <tromey@cygnus.com>
2439 * include/javaprims.h: Removed security namespace.
2441 1999-04-20 Anthony Green <green@cygnus.com>
2443 * java/io/PrintStream.java (println): Remove extra println.
2445 1999-04-19 Anthony Green <green@cygnus.com>
2447 * Makefile.in: Rebuilt.
2448 * Makefile.am (ordinary_java_source_files): Add new security files.
2450 * java/security/NoSuchAlgorithmException.java,
2451 java/security/MessageDigest.java: New files.
2453 * include/javaprims.h: Add security namespace.
2455 1999-04-16 Per Bothner <bothner@cygnus.com>
2457 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2458 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2459 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2460 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2461 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2462 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2463 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2464 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2465 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2466 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2467 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2468 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2469 * Makefile.am: Various changes for new files and conversions.
2471 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2472 New overloading, allows greater efficiency.
2473 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2474 New overloading (for efficiency - avoids copying).
2476 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2477 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2479 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2480 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2481 (writeChars): Don't be quite so eager to flush.
2482 * java/io/PrintStream.java: Rewrite. Now more similar to
2483 OutputStreamWriter, using explicit UnicodeToBytes converter.
2484 Also, autoflush does not need to flush so often.
2485 * java/lang/natString.cc (getBytes): More efficient algorithm.
2486 (init(jbyteArray,jint,jint,jstring)): More efficient.
2488 1999-04-15 Warren Levy <warrenl@cygnus.com>
2490 * Makefile.am (ordinary_java_source_files): Added new Connection
2491 and Handler classes in gnu.gcj.protocol.file package.
2492 * Makefile.in: Rebuilt.
2494 * gnu/gcj/protocol/file/Connection.java: New file.
2495 * gnu/gcj/protocol/file/Handler.java: New file.
2496 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2497 if doInput allows input.
2498 (getOutputStream): Check if doOutput allows output.
2499 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2501 1999-04-14 Tom Tromey <tromey@cygnus.com>
2503 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2504 buffer larger to work around bug.
2505 From Bryce McKinlay <bryce@albatross.co.nz>.
2507 1999-04-14 Andrew Haley <aph@cygnus.com>
2509 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2510 NaNs are always converted to the same long value.
2511 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2514 1999-04-13 Tom Tromey <tromey@cygnus.com>
2516 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2517 instead switch on actual element type.
2519 * Makefile.in: Rebuilt.
2520 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2522 1999-04-13 Andrew Haley <aph@cygnus.com>
2524 * include/i386-signal.h, include/default-signal.h: New files.
2525 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2527 (catch_fpe): New function.
2528 * configure.in: Make link to appropriate include/java-signal.h.
2529 * configure: Rebuilt.
2530 * Makefile.am: include/java-signal.h added to dependency list.
2531 * Makefile.in: Rebuilt.
2533 1999-04-12 Urban Widmark <urban@svenskatest.se>
2535 * java/io/DataInputStream.java (readLine): Corrected handling of
2536 empty lines, from null to "".
2538 1999-04-12 Tom Tromey <tromey@cygnus.com>
2540 * Makefile.in: Rebuilt.
2541 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2543 * java/lang/natSystem.cc (SystemClass): New define.
2544 (init_properties): Synchronize.
2546 1999-04-08 Geoff Berry <gcb@gnu.org>
2548 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2549 * natPlainSocketImpl.cc (accept): Add missing else if check
2552 1999-04-08 Tom Tromey <tromey@cygnus.com>
2554 * java/lang/Long.java (parseLong): Corrected overflow detection
2556 * java/lang/Integer.java (parseInt): Corrected overflow detection
2559 * java/io/PrintStream.java (print): Handle null string argument.
2560 (println): Likewise.
2562 1999-04-07 Warren Levy <warrenl@cygnus.com>
2564 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2565 Set count to 0 when InputStreamReader returns -1 for EOF.
2567 1999-04-07 Tom Tromey <tromey@cygnus.com>
2569 * mauve-libgcj: Omit java.text.Collator,
2570 java.text.RuleBasedCollator.
2572 1999-04-06 Tom Tromey <tromey@cygnus.com>
2574 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2575 IOException from getHttpHeaders().
2576 (getHeaderFieldKey): Likewise.
2578 * include/javaprims.h: Regenerated declarations.
2580 * Makefile.in: Rebuilt.
2581 * Makefile.am (ordinary_java_source_files): Updated for removed
2584 1999-04-06 Per Bothner <bothner@cygnus.com>
2586 * java/util/zip/Adler32.java: New class.
2587 * java/util/zip/CRC32.java: Add working method bodies.
2588 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2589 * Makefile.in: Re-generate.
2591 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2593 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2594 from version in removed www hierarchy.
2595 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2596 version in removed www hierarchy.
2598 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2599 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2600 * gnu/gcj/www/protocol/http: Removed dir.
2601 * gnu/gcj/www/protocol: Removed dir.
2602 * gnu/gcj/www: Removed dir.
2604 * java/net/HttpURLConnection.java: Revised comments to indicate
2605 missing JDK 1.2 methods.
2607 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2608 hierarchy rather than the gnu/gcj/www/protocol one.
2609 * java/net/URLConnection.java: Updated status comments.
2610 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2611 the gnu/gcj/www/content one.
2613 1999-04-06 Per Bothner <bothner@cygnus.com>
2615 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2616 The gen-from-JIS program is in $(CONVERT_DIR).
2618 1999-04-06 Tom Tromey <tromey@cygnus.com>
2620 * mauve-libgcj: Renamed from mauve-libjava.
2622 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2624 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2625 (getResponseMessage): Implemented.
2626 (getResponseVals): New private method.
2628 * java/net/URLConnection.java (getContent): Implemented.
2629 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2631 1999-04-05 Tom Tromey <tromey@cygnus.com>
2633 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2634 (jv_convert_SOURCES): Renamed.
2635 (EXTRA_jv_convert_SOURCES): Likewise.
2636 (jv_convert_LDFLAGS): Likewise.
2637 (jv_convert_LINK): Likewise.
2638 (jv_convert_LDADD): Likewise.
2639 (jv_convert_DEPENDENCIES): Likewise.
2641 * Makefile.in: Rebuilt.
2642 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2645 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2647 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2648 method for comparison.
2650 * java/net/URLConnection.java (getContentLength): Implemented.
2651 (getContentType): Implemented.
2652 (getContentEncoding): Implemented.
2653 (getExpiration): Implemented.
2654 (getDate): Implemented.
2655 (getLastModified): Implemented.
2656 (getHeaderFieldInt): Implemented.
2657 (getHeaderFieldDate): Implemented.
2659 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2661 * java/net/URLConnection.java (toString): Implemented.
2662 (setContentHandlerFactory): Implemented.
2663 (setContentHandler): Wrote new private helper method.
2665 1999-04-01 Tom Tromey <tromey@cygnus.com>
2667 * Makefile.in: Rebuilt.
2668 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2669 of 1999-03-31; we always want to build all the .class files.
2670 Depend on java_source_files, not libgcj.zip.
2671 (nat_headers): Define in terms of ordinary_java_source_files.
2673 1999-03-31 Tom Tromey <tromey@cygnus.com>
2675 * Makefile.in: Rebuilt.
2676 * Makefile.am (special_java_source_files): New macro.
2677 (java_source_files): Use it.
2678 (ordinary_java_source_files): New macro.
2679 (java_source_files): Use it.
2680 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2681 creating headers for those files with hand-maintained headers.
2683 * include/javaprims.h: Regenerated namespace declarations.
2684 * classes.pl (scan): Include [0-9] in regexp for matching class
2685 names; for java.util.zip.CRC32.
2687 * Makefile.in: Rebuilt.
2688 * Makefile.am (nat_headers): Redefined to generate all possible
2691 * java/util/zip/ZipException.java: In package java.util.zip, not
2694 1999-03-30 Tom Tromey <tromey@cygnus.com>
2696 * configure: Rebuilt.
2697 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2698 eh-common.h when not building in tree with gcc.
2700 * Makefile.in: Rebuilt.
2701 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2702 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2704 ($(java_source_files:.java=.class)): New target.
2706 * Makefile.in: Rebuilt.
2707 * Makefile.am (java_source_files): Added
2708 java/net/HttpURLConnection.java and
2709 gnu/gcj/www/protocol/http/Connection.java.
2711 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2713 * gnu/gcj/www/protocol/http/Connection.java: New file.
2714 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2715 * java/net/HttpURLConnection.java: New file.
2716 * java/net/URLConnection.java (getHeaderField): Implemented default.
2717 (getHeaderFieldKey): Implemented default method.
2719 1999-03-30 Tom Tromey <tromey@cygnus.com>
2721 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2723 * java/util/zip/Deflater.java: Added copyright header.
2724 * java/util/zip/CRC32.java: Added copyright header.
2726 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2727 that it is automatically generated.
2728 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2730 * gnu/gcj/convert/BytesToUnicode.java,
2731 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2732 gnu/gcj/convert/Input_EUCJIS.java,
2733 gnu/gcj/convert/Input_UTF8.java,
2734 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2735 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2736 gnu/gcj/convert/Output_8859_1.java,
2737 gnu/gcj/convert/Output_JavaSrc.java,
2738 gnu/gcj/convert/Output_UTF8.java,
2739 gnu/gcj/convert/UnicodeToBytes.java,
2740 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2742 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2744 * Makefile.in, configure: Rebuilt.
2745 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2746 not if test subdir exists.
2747 (--enable-gcj-classes): Removed; gcj always used to generate
2749 (JAVA, JAVAC): Removed.
2750 (--enable-single-compilation, --enable-source-compilation):
2753 (NATIVE): New conditional.
2754 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2755 `install-exec' to work.
2756 (toolexeclibdir): Likewise.
2757 (toollib_LIBRARIES): Likewise.
2758 (AM_MAKEFLAGS): Don't pass tooldir.
2760 (javao_files): Redefined.
2761 (java_source_files): New macro.
2762 (c_source_files): New macro.
2763 (c_files): Redefined in terms of c_source_files.
2764 (java_io_files, java_lang_files, java_net_files, java_text_files,
2765 java_util_files, gnu_files, java_files): Removed.
2766 (class_io_files, class_lang_files, class_net_files,
2767 class_text_files, class_util_files, class_gnu_files, class_files):
2769 (nat_source_files): New macro.
2770 (nat_files): Redefined in terms of nat_source_files.
2771 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2772 java_source_files. Removed no-such-file.c.
2774 (ETAGS_ARGS): Removed.
2775 (TAGS_DEPENDENCIES): Likewise.
2776 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2778 (src_io_files, src_lang_files, src_text_files, src_util_files,
2779 src_gnu_files): Removed.
2780 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2781 (BUILT_SOURCES): Removed.
2782 (header-check): New target.
2784 (noinst_PROGRAMS): New macro.
2785 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2787 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2788 (gen-from-JIS): Build in top directory.
2789 (convert_source_files): New macro.
2790 (convert_SOURCES): New macro.
2791 (convert_LDFLAGS): Likewise.
2792 (convert_LINK): Likewise.
2793 (convert_LDADD): Likewise.
2794 (convert_DEPENDENCIES): Likewise.
2796 (gen-from-JIS): Removed.
2797 (gen_from_JIS_SOURCES): New macro.
2798 (gen_from_JIS_LDADD): Likewise.
2799 (gen_from_JIS_DEPENDENCIES): Likewise.
2801 * configure: Rebuilt.
2802 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2803 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2804 when defining conditional.
2806 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2808 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2809 The Unicode Consortium does not permit their re-distribution.
2810 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2811 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2813 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2815 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2817 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2819 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2820 from Unicode Consortium.
2821 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2822 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2823 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2824 New tables, generated using gen-from-JIS.
2825 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2826 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2827 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2828 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2830 * gnu/gcj/convert/Convert.java: New application.
2831 * Makefile.am, Makefile.in (convert): New program, using Convert.
2832 Build the various JIS conversion tables (in maintainer mode).
2834 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2836 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2838 * java/net/URL.java (URL): Deal with null property value. Use "."
2839 as separator in building class name.
2840 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2841 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2842 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2843 beginning of the substring rather than 'start'.
2845 1999-03-26 Tom Tromey <tromey@cygnus.com>
2847 * include/java-chartables.h: Rebuilt.
2848 * include/java-chardecomp.h: New file.
2849 * chartables.pl: Generate output files directly. Added support
2850 for generating decomposition header.
2851 (canonical_decomposition, full_decomposition): New globals.
2852 (DECOMPOSITION): New constant.
2853 (process_char): Call add_decomposition.
2854 (add_decomposition): New sub.
2855 (write_decompositions): New sub.
2857 1999-03-25 Tom Tromey <tromey@cygnus.com>
2859 * java/text/CollationElementIterator.java: New file.
2861 * mauve-libjava: Omit StringTest.
2863 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2865 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2866 without a '/' when parsing protocol. Handle ref outside of parseURL.
2867 (hashCode): Implemented.
2868 (set): Don't expand -1 to default port.
2869 (getDefaultPort): Removed.
2871 * java/net/URLStreamHandler.java (parseURL): Implemented.
2872 (toExternalForm): Implemented.
2874 1999-03-23 Tom Tromey <tromey@cygnus.com>
2876 * java/text/BreakIterator.java (getSentenceInstance):
2878 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2880 * Makefile.in: Rebuilt.
2881 * Makefile.am (nat_headers): Added IllegalAccessException.
2882 * java/lang/natClass.cc (newInstance): Throw
2883 IllegalAccessException, not IllegalAccessError.
2884 Include IllegalAccessException.h.
2886 1999-03-22 Tom Tromey <tromey@cygnus.com>
2888 * gnu/gcj/text/LineBreakIterator.java: New file.
2889 * java/text/BreakIterator.java (getLineInstance): Implemented.
2891 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2892 copy constructor private.
2893 (previous, next): Removed erroneous comment about line
2895 (previous): Correctly recognize break between non-letter on the
2896 left and letter on the right. Handle apostrophes correctly.
2898 * java/text/BreakIterator.java (getWordInstance): Implemented.
2899 * gnu/gcj/text/WordBreakIterator.java: New file.
2900 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2902 * gnu/gcj/text/BaseBreakIterator.java: New file.
2904 1999-03-19 Tom Tromey <tromey@cygnus.com>
2906 * java/text/BreakIterator.java: New file (partially stubbed out).
2907 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2909 * include/config.h.in: Rebuilt.
2910 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2911 (HAVE_TIMEZONE): Likewise.
2912 * configure: Rebuilt.
2913 * configure.in: Added timezone checks.
2914 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2917 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2919 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2920 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2921 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2922 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2923 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2924 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2925 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2926 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2928 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2929 (BSD_COMP): Kludge needed for Solaris2.
2931 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2933 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2934 URL(java.net.URL, string, URLStreamHandler) and call it with a
2935 null handler. In latter constructor, added SecurityManager check.
2936 (set): Expect null handler on bad protocol rather than an exception.
2937 (setURLStreamHandler): Simplified exception handling; return null
2938 on invalid protocol.
2940 1999-03-18 Tom Tromey <tromey@cygnus.com>
2942 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2944 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2946 Include PrintStream.h, InputStream.h.
2947 * java/lang/System.java (ForwardingInputStream,
2948 ForwardingOutputStream): Removed.
2949 (setErr, setIn, setOut): Now native.
2951 Reverted patch from 1999-02-12 to work around problem in
2953 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2954 (_Jv_eh_free): Use free.
2956 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2957 for path name. Minor formatting fixes.
2959 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2961 * prims.cc (fail_on_finalization): New function.
2962 (_Jv_GCWatch): Likewise.
2964 * prims.cc (JvRunMain): Initialize `nullp'.
2965 (nullp): New global.
2966 (catch_segv): Throw nullp.
2968 * Makefile.in: Rebuilt.
2969 * Makefile.am (ZIP): In "null target" case, zip is found in the
2972 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2976 * java/lang/StringBuffer.java (StringBuffer): Don't use
2977 ensureCapacity to set initial capacity.
2978 (capacity): Subtract `length' from return result.
2980 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2982 * java/io/natFileDescriptorPosix.cc (open): Throw
2983 FileNotFoundException, but with filename and errno in msg.
2985 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2987 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2988 functionality folded into java/net/URL.java per spec.
2990 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2991 than EEXIST for throwing FileNotFoundException.
2993 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2994 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2996 * java/net/URLStreamHandler.java (parseURL): Added stub.
2998 1999-03-15 Andrew Haley <aph@cygnus.com>
3000 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3003 1999-03-15 Andrew Haley <aph@cygnus.com>
3005 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3008 1999-03-12 Tom Tromey <tromey@cygnus.com>
3010 * prims.cc (catch_segv): New function.
3011 Include <signal.h> if HANDLE_SEGV defined. Include
3012 NullPointerException.h.
3013 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3016 * java/text/SimpleDateFormat.java (equals): Ensure that object is
3017 a SimpleDateFormat, not just a DateFormat.
3018 (defaultCenturyStart, formatData, pattern): Now private.
3019 (append): Now `final'. Use `NumberFormat.format'.
3021 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3023 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3026 * java/text/MessageFormat.java (format): Use default MessageFormat
3028 (parse, parseObject): Wrote.
3030 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3033 1999-03-12 Andrew Haley <aph@cygnus.com>
3035 * java/lang/String.java (indexOf): Replace with native method for
3037 * java/lang/natString.cc (IndexOf): As above.
3039 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3040 Argument check corrected.
3041 (init(jbyteArray,jint,jint,jstring)): Likewise.
3043 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3044 1.2 compliant method.
3046 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3048 * java/lang/Float.java (byteValue, shortValue): Likewise.
3050 1999-03-11 Tom Tromey <tromey@cygnus.com>
3052 * java/text/DecimalFormat.java (parse): Wrote.
3054 * java/text/ChoiceFormat.java (parse): Set error index on
3055 ParsePosition object.
3057 * java/lang/Integer.java (parseInt): Throw exception on overflow
3058 when intermediate result is most negative number. Changed
3059 overflow detection as well.
3060 * java/lang/Long.java (parseLong): Likewise.
3062 * configure, Makefile.in: Rebuilt.
3063 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3064 CANADIAN when building in source tree that doesn't include gcc.
3065 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3068 * java/text/ChoiceFormat.java (nextDouble): Correct some
3069 off-by-one errors when masking or adding.
3071 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3072 parameter, if given. Use `%', not IEEEremainder.
3073 (scanFix): Throw error if multiplier already set.
3074 (computePattern): Wrote.
3076 1999-03-11 Andrew Haley <aph@cygnus.com>
3078 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3080 (nextDouble): Corrected masking logic. Handle interaction between
3081 `next' and negative numbers.
3083 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3085 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3086 * java/net/URL.java: Added general comments.
3088 1999-03-10 Tom Tromey <tromey@cygnus.com>
3090 * java/text/ChoiceFormat.java (parse): Wrote.
3092 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3094 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3095 Create ChoiceFormat objects.
3096 (format): Special-case ChoiceFormat.
3097 (scanFormatElement): Include { and } in generated style string.
3099 1999-03-09 Tom Tromey <tromey@cygnus.com>
3101 * java/text/ChoiceFormat.java: New file.
3103 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3105 * java/net/BindException.java: Created.
3106 * java/net/ConnectException.java: Created.
3107 * java/net/ContentHandler.java: Created.
3108 * java/net/ContentHandlerFactory.java: Created.
3109 * java/net/FileNameMap.java: Created.
3110 * java/net/MalformedURLException.java: Created.
3111 * java/net/NoRouteToHostException.java: Created.
3112 * java/net/ProtocolException.java: Created.
3113 * java/net/ServerSocket.java (@author): Fixed typo.
3114 * java/net/Socket.java (@author): Fixed typo.
3115 * java/net/SocketImpl.java (@author): Fixed typo.
3116 * java/net/SocketImplFactory.java (@author): Fixed typo.
3117 * java/net/URL.java: Created - nearly complete.
3118 * java/net/URLConnection.java: Created - near-empty stub.
3119 * java/net/URLStreamHandler.java: Created - incomplete stub.
3120 * java/net/URLStreamHandlerFactory.java: Created.
3121 * java/net/UnknownServiceException.java: Created.
3123 1999-03-09 Tom Tromey <tromey@cygnus.com>
3125 * java/lang/System.java (ForwardingInputStream): New class.
3126 (ForwardingOutputStream): Likewise.
3127 (in, out, err): Now `final' forwarding streams.
3128 (setIn, setOut, setErr): Use appropriate method on forwarding
3131 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3134 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3136 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3137 * java/util/zip/Checksum.java: New interface (complete).
3138 * java/util/zip/Deflater.java: New class (near-empty stub).
3139 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3140 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3141 * java/util/zip/ZipEntry.java: New class (complete).
3142 * java/util/zip/ZipException.java: New class (complete).
3143 * java/util/zip/ZipFile.java: New class (incomplete stub).
3144 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3146 1999-03-09 Tom Tromey <tromey@cygnus.com>
3148 * java/text/MessageFormat.java (MessageFormatElement): Removed
3149 `public' specifiers.
3151 * java/text/DecimalFormat.java (scanFormat): Increment index
3152 before processing exponential format. Fixed a couple typos in
3154 (format): Correct normalization of exponent.
3156 1999-03-08 Tom Tromey <tromey@cygnus.com>
3158 * java/text/SimpleDateFormat.java (parse): Throw
3159 IllegalArgumentException, not ParseException.
3161 1999-03-05 Tom Tromey <tromey@cygnus.com>
3163 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3164 when constructing DateFormatSymbols. Initialize numberFormat
3165 field of superclass.
3167 * java/text/DateFormat.java (equals): Rewrote.
3168 (getAvailableLocales): New method.
3169 (getDateInstance): New methods.
3170 (getDateTimeInstance): Likewise.
3171 (getTimeInstance): Likewise.
3172 (getInstance): New method.
3173 (computeInstance): New method.
3175 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3177 (safeGetResource): New method.
3178 (DateFormatSymbols): Use Locale paramater.
3179 (equals): Now protected.
3180 Made instance variables private.
3182 1999-03-04 Tom Tromey <tromey@cygnus.com>
3184 * java/text/DecimalFormat.java: New file.
3186 * java/text/NumberFormat.java (groupingUsed,
3187 maximumFractionDigits, maximumIntegerDigits,
3188 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3190 (setDecimalSeparatorAlwaysShown, setMultiplier,
3191 setPositivePrefix): Removed.
3192 (setMinimumFractionDigits, setMaximumFractionDigits):
3194 (format): Now final.
3195 Added many new methods.
3197 * Makefile.in: Rebuilt.
3198 * Makefile.am (gnu_files): New macro.
3199 (java_files): Added gnu_files.
3200 (class_gnu_files): New macro.
3201 (class_files): Use it.
3202 (src_gnu_files): New macro.
3203 (gnu.o): New target.
3204 (javao_files): Added gnu.o.
3206 * gnu/gcj/text/LocaleData_en_US.java: New file.
3207 * gnu/gcj/text/LocaleData_en.java: New file.
3208 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3209 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3210 (safeGetString): New method.
3211 (safeGetChar): Likewise.
3213 1999-03-03 Tom Tromey <tromey@cygnus.com>
3215 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3218 * java/text/FieldPosition.java (equals): Don't check for null
3219 object; instanceof does this.
3221 * java/util/Locale.java (clone): New method.
3224 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3226 * doc/cni.sgml: New file.
3228 1999-03-03 Tom Tromey <tromey@cygnus.com>
3230 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3232 * java/text/DecimalFormatSymbols.java: New file.
3234 1999-03-02 Tom Tromey <tromey@cygnus.com>
3236 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3238 * configure: Rebuilt.
3239 * configure.in: Check for sys/filio.h.
3241 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3243 (load): Always throw UnsatisfiedLinkError.
3244 (loadLibrary): Likewise.
3246 1999-03-02 Anthony Green <green@cygnus.com>
3248 * LIBGCJ_LICENSE: New file.
3249 * LIBJAVA_LICENSE: Removed.
3250 * Many files: libjava now libgcj.
3252 1999-03-02 Tom Tromey <tromey@cygnus.com>
3254 * include/java-chartables.h: Rebuilt.
3255 * chartables.pl (print_block): Make table `const'.
3256 (print_numerics): Likewise.
3257 (print_single_map): Likewise.
3258 (print_all_block): Likewise.
3259 (print_case_table): Likewise.
3260 (print_fast_tables): Likewise.
3261 * java/lang/natCharacter.cc (table_search): `table' argument now
3264 1999-03-01 Tom Tromey <tromey@cygnus.com>
3266 * java/util/Date.java (before, after): Inverted logic.
3268 * java/util/Date.java (parse): Handle case where first character
3269 in string is open parenthesis.
3270 (skipParens): Rewrote.
3272 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3273 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3275 * java/util/Date.java (parse): Correctly compute beginning of
3278 * java/util/Hashtable.java (get): Throw NullPointerException if
3280 (containsKey): Likewise.
3282 * java/util/Properties.java (list): Truncate value to 37
3283 characters and add `...'.
3285 * java/lang/Byte.java (parseByte): Pass `radix' to
3288 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3290 Include System.h, PrintStream.h.
3292 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3295 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3297 * configure: Rebuilt.
3298 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3301 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3303 * java/lang/SecurityManager.java: Import java.net.*.
3304 (checkMulticast): New methods.
3306 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3308 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3309 (nat_files): Add java/lang/reflect/natArray.o.
3310 (nat_headers): Add Field.h and NoSuchFieldException.h.
3312 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3313 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3314 (_Jv_FromReflectedField): Fix buglet.
3315 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3316 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3317 * prims.cc (_Jv_Abort): Include message in print-out.
3319 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3320 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3321 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3323 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3324 * include/config.h.in (HAVE_PWD_H): New feature macro.
3325 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3326 user.name, user.home, user.dir.
3328 * java/lang/reflect/Array.java: New class.
3329 * java/lang/reflect/natArray.cc: New native methods.
3330 * include/javaprims.h: Declare java::lang::reflect::Array.
3332 * java/lang/Class.h (getField): New private method. Add friends.
3333 * java/lang/Class.java (getField): Add private overload.
3334 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3335 getDeclaredMethods): Add working implementations.
3336 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3337 Finish implementation, except for access control.
3339 * java/lang/reflect/Modifier.java (toString): New overload.
3340 * include/java-method.h: New file.
3341 * java/lang/reflect/Method.java (index): Replaced by offset field.
3342 Remove various private fields - get them from _Jv_Field instead.
3343 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3344 New method implementations.
3346 * java/text/NumberFormat.java: Add a bunch of methods.
3348 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3350 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3352 1999-02-26 Tom Tromey <tromey@cygnus.com>
3354 * include/config.h.in: Rebuilt.
3355 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3356 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3357 HAVE_GETHOSTBYADDR_R): New defines.
3358 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3359 gethostbyaddr_r if available.
3361 * configure: Rebuilt.
3362 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3364 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3368 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3369 * prims.cc (_Jv_AllocBytesChecked): New function.
3371 * Makefile.in: Rebuilt.
3372 * Makefile.am (SUBDIRS): Removed `test'.
3373 * configure: Rebuilt.
3374 * configure.in: Don't build test/Makefile.
3375 * test/*: Removed all files.
3377 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3379 * java/lang/reflect/Constructor.java: Make class final to match spec.
3380 * java/lang/reflect/Method.java: Ditto.
3382 1999-02-25 Tom Tromey <tromey@cygnus.com>
3384 * java/net/natInetAddress.cc: Include <sys/types.h> before
3386 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3389 * java/net/natInetAddress.cc: Declare gethostname if required.
3390 * include/config.h.in: Rebuilt.
3391 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3392 * configure: Rebuilt.
3393 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3394 declared in unistd.h.
3396 1999-02-24 Tom Tromey <tromey@cygnus.com>
3398 * Makefile.in: Rebuilt.
3399 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3400 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3401 from private to "none".
3403 * include/javaprims.h: Regenerated class declarations with new
3405 * classes.pl (scan): Only generate decls for java.lang, java.io,
3408 1999-02-24 Tom Tromey <tromey@cygnus.com>
3410 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3411 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3413 1999-02-23 Tom Tromey <tromey@cygnus.com>
3415 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3416 not already defined.
3417 * java/io/natFile.cc (_REENTRANT): Only define if not already
3419 * include/config.h.in: Rebuilt.
3420 * acconfig.h (HAVE_BOEHM_GC): New define.
3421 * configure: Rebuilt.
3422 * configure.in: Define HAVE_BOEHM_GC if using it.
3423 * posix-threads.cc: Include boehm-config.h and gc.h if
3425 * include/posix-threads.h: Added explanatory note about Boehm GC.
3427 * java/io/BufferedReader.java (readLine): Only return null when
3428 EOF seen before any characters read. (In particular, an empty
3429 line should not return null.)
3431 * java/io/BufferedInputStream.java (read): Only refill once per
3434 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3435 java.lang.Character.classify12, java.lang.String.hash,
3436 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3437 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3439 * java/text/StringCharacterIterator.java (setIndex): No error if
3441 (next): Check for `pos == end', not `end - 1'.
3442 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3443 for null text in each constructor.
3444 (clone): Fixed order of arguments to constructor.
3446 1999-02-22 Tom Tromey <tromey@cygnus.com>
3448 * include/config.h.in: Rebuilt.
3449 * acconfig.h (HAVE_INET6): New define.
3450 (HAVE_SOCKLEN_T): Likewise.
3451 * java/net/PlainSocketImpl.java: Added copyright header.
3452 * java/net/natPlainSocketImpl.cc: Added copyright header.
3453 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3455 (connect): Likewise.
3457 (socklen_t): New typedef.
3458 (accept): Use socklen_t.
3459 * java/net/natInetAddress.cc: Added copyright header.
3460 (HAVE_GETHOSTNAME): Don't define.
3461 (HAVE_INET_ADDR): Likewise.
3462 (lookup): Fixed typo.
3463 (aton): Don't use `address' as name of local variable.
3464 (lookup): Use HAVE_INET6, not AF_INET6.
3466 * configure: Rebuilt.
3467 * configure.in: Look for functions inet_aton, inet_addr,
3468 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3469 Check for socklen_t typedef.
3471 * exception.cc (__throw): Declare as __noreturn__.
3473 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3475 * Makefile.am, Makefile.in: Also build java/net.
3476 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3478 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3479 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3481 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3482 * include/cni.h (JvMalloc, JvFree): New inline functions.
3483 (JvThrow): Add __noreturn__ attribute.
3484 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3485 (_Jv_Throw): Add __noreturn__ attribute.
3487 * java/net/PlainSocketImpl.java: Init fnum to -1.
3488 * java/net/ServerSocket.java: Add missing throws clauses.
3489 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3490 don't call create on the latter. Instead, other constructors
3491 have to explicitly call SocketImpl.create.
3492 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3493 from size_t to int, to match ::accept prototype.
3494 * java/net/natInetAddress.cc: Use JvFree rather than free.
3497 1999-02-22 Tom Tromey <tromey@cygnus.com>
3499 * include/javaprims.h: Added new classes.
3500 * java/text/StringCharacterIterator.java: New file.
3501 * java/text/CharacterIterator.java: New file.
3503 * java/text/ParseException.java (errorOffset): Now private.
3505 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3507 * java/net: New package.
3508 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3509 Socket.java,SocketException.java,SocketImpl.java,
3510 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3511 natPlainSocketImpl.cc}: New classes.
3513 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3514 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3515 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3516 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3518 * classes.pl: Translate package into "namespace", not "class".
3519 * include/javaprims.h: Update class list, using "namespace".
3521 1999-02-21 Tom Tromey <tromey@cygnus.com>
3523 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3524 Define when appropriate.
3526 1999-02-20 Tom Tromey <tromey@cygnus.com>
3528 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3529 as a single byte and \u07ff as two bytes.
3530 (_Jv_GetStringUTFLength): Likewise.
3531 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3532 with 0x0f, not 0x1f.
3534 1999-02-19 Tom Tromey <tromey@cygnus.com>
3536 * java/io/DataOutputStream.java (writeUTF): When encoding
3537 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3538 * java/io/DataInputStream.java (readUTF): Mask second byte of
3539 3-byte character with 0x3f, not 0x1f.
3541 * java/io/DataInputStream.java (readLong): Cast result of
3542 readUnsignedByte to long before using.
3544 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3547 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3548 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3549 argument to avoid warning.
3550 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3551 argument to avoid warning.
3553 1999-02-18 Tom Tromey <tromey@cygnus.com>
3555 * mauve-libjava: Omit java.io.DataInputOutput and
3556 java.io.Utf8Encoding.
3558 1999-02-17 Tom Tromey <tromey@cygnus.com>
3560 * Makefile.in: Rebuilt.
3561 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3562 * java/io/natFileDescriptorPosix.cc: Include
3563 InterruptedIOException.h, Thread.h.
3564 (write): Throw InterruptedIOException when required.
3566 * posix-threads.cc: Include <signal.h>.
3567 (_Jv_ThreadInterrupt): New function.
3569 (handle_intr): New function.
3570 (_Jv_InitThreads): Register handle_intr via sigaction.
3571 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3572 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3573 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3574 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3576 1999-02-19 Andrew Haley <aph@cygnus.com>
3578 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3580 (ThreadGroup (int)): Set the maximum priority of the initial
3583 1999-02-18 Andrew Haley <aph@cygnus.com>
3585 * java/lang/natClass.cc (forName): Check for the case where a
3586 classname is the name of an array and call FindClassFromSignature
3589 1999-02-18 Andrew Haley <aph@cygnus.com>
3591 * java/lang/StringBuffer (insert (int, String)): Move up any
3592 characters above the insert position and increase the length of
3593 the string buffer by the length of the argument.
3594 (insert (int, char[])): Likewise.
3595 (insert (int, char)): Likewise.
3596 (StringBuffer (String)): The initial capacity of the string buffer
3597 is 16 plus the length of the argument.
3598 (getChars): Add a JDK 1.2 FIXME.
3600 1999-02-18 Andrew Haley <aph@cygnus.com>
3602 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3605 1999-02-18 Andrew Haley <aph@cygnus.com>
3607 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3608 instead of floating-point equality. This is necessary for
3609 correct floating-point Hashtables.
3610 * java/lang/Float.java (equals): Ditto.
3612 1999-02-16 Tom Tromey <tromey@cygnus.com>
3614 * java/util/Properties.java (list): Truncate value to 37
3615 characters and add "...".
3617 1999-02-16 Tom Tromey <tromey@cygnus.com>
3619 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3620 if initCap is negative.
3621 (contains): Implement JDK1.2-style handling of null argument.
3622 (removeElement): Likewise.
3623 (indexOf): Likewise. Also, correctly handle case where idx is
3625 (lastIndexOf): Likewise.
3627 1999-02-16 Tom Tromey <tromey@cygnus.com>
3629 * java/lang/natString.cc (init): Increment source pointer in
3632 1999-02-16 Tom Tromey <tromey@cygnus.com>
3634 * exception.cc: Include NullPointerException.h.
3635 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3637 1999-02-16 Tom Tromey <tromey@cygnus.com>
3639 * Makefile.in: Rebuilt.
3640 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3642 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3644 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3645 we're compiling canadian.
3646 * configure: Regenerated.
3648 1999-02-12 Andrew Haley <aph@cygnus.com>
3650 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3651 deleted from libgcj.
3653 1999-02-12 Tom Tromey <tromey@cygnus.com>
3655 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3656 (_Jv_eh_free): Don't call free.
3657 Don't declare malloc or free.
3659 1999-02-11 Tom Tromey <tromey@cygnus.com>
3661 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3663 1999-02-11 Andrew Haley <aph@cygnus.com>
3665 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3666 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3667 needed by java.lang.*.
3668 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3669 wf_fmod.o: Removed from libjava.a.
3671 1999-02-11 Tom Tromey <tromey@cygnus.com>
3673 * include/javaprims.h: Reverted previous change; with it
3674 exception.cc can't compile.
3676 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3678 * include/config.h.in: Rebuilt.
3679 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3681 * configure: Rebuilt.
3682 * configure.in: Check for sched_yield. Look in thread library for
3683 all thread functions.
3685 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3686 no recursive mutexes.
3687 (_Jv_MutexDestroy): Define when required.
3688 (_Jv_MutexLock): Likewise.
3689 (_Jv_MutexUnlock): Likewise.
3690 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3691 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3692 (_Jv_Mutex_t): New structure.
3693 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3694 (_Jv_MutexLock): Likewise.
3695 (_Jv_MutexUnlock): Likewise.
3697 1999-02-10 Tom Tromey <tromey@cygnus.com>
3699 * aclocal.m4, configure, Makefile.in: Rebuilt.
3700 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3702 * configure.in: Changed to track library changes.
3703 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3704 (AM_CXXFLAGS): Likewise.
3705 (data_DATA): Likewise.
3706 (AM_CFLAGS): Likewise.
3707 (JC1FLAGS): Likewise.
3708 (libgcj_a_SOURCES): Likewise.
3709 (EXTRA_libgcj_a_SOURCES): Likewise.
3710 (libgcj_a_DEPENDENCIES): Likewise.
3711 (libgcj_a_LIBADD): Likewise.
3712 (libgcj.zip): Likewise.
3713 (CLEANFILES): Likewise.
3714 ($(nat_headers)): Likewise.
3715 (java/lang/FirstThread.h): Likewise.
3716 (java/lang/ThreadGroup.h): Likewise.
3717 (java/lang/String.h): Likewise.
3718 (java/lang/reflect/Field.h): Likewise.
3719 (BUILT_SOURCES): Likewise.
3720 (maintainer-check): Likewise.
3721 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3722 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3724 * java/util/natGregorianCalendar.cc (computeFields): Only use
3725 gmtime_r and localtime_r when configured for posix threads.
3727 * java/io/natFile.cc (get_entry): Only use readdir_r when
3728 configured for posix threads.
3730 * java/util/natGregorianCalendar.cc: Update copyright notice.
3731 * java/util/TimeZone.java: Ditto.
3732 * java/util/SimpleTimeZone.java: Ditto.
3734 1999-02-08 Tom Tromey <tromey@cygnus.com>
3736 * java/io/PrintStream.java (line_separator): New constant.
3737 (print): Use line_separator, not `file.separator' property.
3738 (println): Use line_separator.
3740 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3741 when trying to instantiate Class.
3743 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3744 NullPointerException if argument is null.
3746 * java/lang/Thread.java (setName): Throw NullPointerException, not
3747 IllegalArgumentException.
3750 1999-02-08 Andrew Haley <aph@cygnus.com>
3752 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3753 create new Classes with Class.newInstance().
3755 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3756 semiciolon to end of an array Class's signature if the elements of
3757 the array aren't themselves arrays.
3759 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3760 array of objects is always sizeof(jobject), not the size of the
3761 object to which the reference points.
3763 1999-02-08 Tom Tromey <tromey@cygnus.com>
3765 * java/util/BitSet.java (and): Throw NullPointerException when
3770 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3771 if argument is negative.
3772 (clear): Correctly compute `offset'. Throw
3773 IndexOutOfBoundsException when required.
3775 (get): Likewise. Also, return correct value.
3776 (ensure): Changed meaning of argument.
3777 (toString): Wrap contents in `{}'; put spaces after commas.
3778 (hashCode): Don't try to examine elements off the end of array.
3779 (or): Correctly include bits past the end of this bit set.
3782 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3784 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3785 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3787 1999-02-04 Andrew Haley <aph@cygnus.com>
3789 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3790 '/' in signatures to '.'
3791 (Class::getName): Likewise,
3792 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3794 * java/lang/natFirstThread.cc (run): Change '/' in main's
3797 1999-02-03 Andrew Haley <aph@cygnus.com>
3799 * configure.host: -ffloat-store added when compiling libjava on
3800 x86. fdlibm apparently relies on this.
3802 * java/lang/ThreadGroup.java (add): throw an exception if the
3803 ThreadGroup has been destroyed.
3805 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3808 1999-01-27 Tom Tromey <tromey@cygnus.com>
3810 * java/lang/StringBuffer.java (StringBuffer): Handle null
3813 1999-01-21 Tom Tromey <tromey@cygnus.com>
3815 * java/lang/natFirstThread.cc (run): Don't require main to be
3818 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3820 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3822 1999-01-20 Tom Tromey <tromey@cygnus.com>
3824 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3828 (unintern): Likewise.
3829 (_Jv_NewStringUtf8Const): Likewise.
3831 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3832 Character.isLetter, to see if character is self-quoting. Also,
3833 correctly handle quoted characters.
3834 (parse): Fixed typo. Also now throws ParseException.
3836 1999-01-15 Tom Tromey <tromey@cygnus.com>
3838 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3840 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3841 _Jv_SyncInfo has `init' member.
3843 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3846 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3847 IllegalMonitorStateException if unlock fails.
3849 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3851 (_Jv_NewObjectArray): Likewise.
3853 1999-01-14 Tom Tromey <tromey@cygnus.com>
3855 * java/lang/Character.java (isJavaIdentifierPart): Allow
3856 LETTER_NUMBER characters.
3858 * chartables.pl (process_char): Fixed error messages.
3860 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3861 * chartables.pl: Updated comments. Changed detection of non-digit
3862 numeric values (no longer miss \u00b2 and friends).
3864 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3865 currency symbols and connector punctuation.
3866 (isIdentifierIgnorable): Make 7f-9f ignorable.
3868 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3869 (_Jv_NewPrimArray): Likewise.
3870 (SIZE_T_MAX): New define.
3872 * java/lang/ClassLoader.java (system): Now private and final.
3874 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3877 * configure: Rebuilt.
3878 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3880 * exception.cc: Include gansidecl.h.
3882 1999-01-14 Andrew Haley <aph@cygnus.com>
3884 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3885 corrected: they didn't treat -0.0 and NaNs correctly.
3887 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3889 * nogc.cc: Use calloc to zero out memory.
3891 1999-01-11 Tom Tromey <tromey@cygnus.com>
3893 * java/lang/natClass.cc (isInstance): Return false if this class
3894 is primitive, not if class of `obj' is primitive.
3895 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3897 * java/io/SequenceInputStream.java (close): Handle case where `in'
3900 * java/text/DateFormat.java (format): New method.
3902 * mauve-libjava: Omit java.text.DateFormat.
3904 1999-01-08 Tom Tromey <tromey@cygnus.com>
3906 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3908 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3910 (_Jv_CondNotifyAll): Likewise.
3912 * configure: Rebuilt.
3913 * configure.in: Change --enable-source-compilation logic to work
3916 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3918 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3919 and RUNTESTFLAGS from AM_MAKEFLAGS.
3920 * configure.in: AM_RUNTESTFLAGS added.
3921 * configure.host: AM_RUNTESTFLAGS added.
3922 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3923 * configure: rebuilt.
3924 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3926 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3927 argv[] made conditional because embedded targets may not have
3929 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3930 explanatory comments added in call to super.
3932 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3933 exception thrown in the test harness itself added.
3934 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3936 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3938 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3940 1999-01-06 Tom Tromey <tromey@cygnus.com>
3942 * java/io/natFile.cc (get_entry): New function.
3943 (performList): Use get_entry.
3944 * include/config.h.in: Rebuilt.
3945 * acconfig.h (HAVE_READDIR_R): New define.
3946 * configure: Rebuilt.
3947 * configure.in: Look for readdir_r.
3949 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3951 * java/util/natDate.cc: Added copyright header.
3953 1999-01-05 Tom Tromey <tromey@cygnus.com>
3955 * include/config.h.in: Rebuilt.
3956 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3957 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3958 * configure: Rebuilt.
3959 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3960 unlink, and realpath.
3961 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3962 (stat): Conditionalize on HAVE_STAT.
3964 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3965 (performMkdir): Conditionalize on HAVE_MKDIR.
3966 (performRenameTo): Conditionalize on HAVE_RENAME.
3967 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3969 * include/config.h.in: Rebuilt.
3970 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3971 * configure: Rebuilt.
3972 * configure.in: Check for gmtime_r and localtime_r. For cross
3973 builds, assume they exist.
3975 * mauve-libjava: Include java.text.DateFormatSymbols again.
3976 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3977 from setAmPmStrings.
3979 * mauve-libjava: Omit java.text.DateFormatSymbols.
3981 1999-01-04 Tom Tromey <tromey@cygnus.com>
3983 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3985 * java/io/LineNumberReader.java (read): Decrement `count' in
3988 * java/io/BufferedWriter.java (write): Correctly determine when
3989 incoming data would overrun buffer. Flush buffer if write causes
3992 * java/io/BufferedOutputStream.java (write): Increment `count'
3993 after copying data into buffer.
3995 * java/io/FilterOutputStream.java (close): Call flush first.
3997 * java/io/PipedReader.java (read): If read causes `out' to catch
3998 up with `in', then set `in' to -1.
4000 * java/io/LineNumberInputStream.java (read): If no bytes read,
4001 return -1. If no bytes requested, return 0.
4003 * java/lang/StringBuffer.java (insert): If `str' is null, use
4006 1998-12-30 Anthony Green <green@cygnus.com>
4009 * LIBJAVA_LICENSE, COPYING.LIB: Created.
4011 1998-12-23 Tom Tromey <tromey@cygnus.com>
4013 * java/io/PushbackInputStream.java (read): `off' already includes
4016 1998-12-17 Tom Tromey <tromey@cygnus.com>
4018 * Makefile.in: Rebuilt.
4019 * Makefile.am (GCJ_canadian): Include target_alias.
4021 * java/lang/natFirstThread.cc (run): Require main's class to be
4024 1998-12-16 Tom Tromey <tromey@cygnus.com>
4026 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4028 * java/util/ResourceBundle.java (getBundle): Throw
4029 NullPointerException if locale argument is null.
4031 * java/lang/natClass.cc (forName): Throw NullPointerException if
4033 Include NullPointerException.h.
4035 1998-12-14 Tom Tromey <tromey@cygnus.com>
4037 * java/lang/Character.java (Character): Implement Comparable.
4038 (compareTo): New methods.
4040 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4041 correct country and language codes.
4042 (UK, US): New constants.
4043 (setDefault): Language codes are lower-case.
4045 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4046 (getDeclaredConstructors): Likewise.
4047 (getDeclaredField): Likewise.
4048 (getDeclaredFields): Likewise.
4049 (getDeclaredMethod): Likewise.
4050 (getDeclaredMethods): Likewise.
4051 (getField): Likewise.
4052 (getFields): Likewise.
4053 (getMethod): Likewise.
4054 (getMethods): Likewise.
4055 * java/lang/Class.java: Declare new methods.
4056 * java/lang/Class.h: Declare new methods.
4058 * java/lang/natString.cc: Removed `#pragma implementation'.
4059 * include/cni.h (_Jv_GetStringChars): New function.
4060 * Makefile.in: Rebuilt.
4061 * Makefile.am (java/lang/String.h): Don't generate definition for
4064 * java/lang/natString.cc: Added `#pragma implementation'.
4066 * Makefile.in: Rebuilt.
4067 * Makefile.am (libjava.zip): Put build directory first in class
4068 path to avoid bug in compiler.
4070 1998-12-14 Anthony Green <green@cygnus.com>
4072 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4074 * include/javaprims.h: Add EventObject, ListResourceBundle and
4077 1998-12-13 Anthony Green <green@cygnus.com>
4079 * mauve-libjava: Run the ResourceBundle tests.
4081 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4084 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4086 * configure.in, configure: Make --enable-gcj-classes and
4087 --enable-source-compilation the default. (Nervously...) Yeah!
4088 Based on a patch from Tom Tromey.
4090 1998-12-13 Tom Tromey <tromey@cygnus.com>
4092 * java/util/EventObject.java: New file.
4093 * java/util/EventListener.java: New file.
4095 * include/javaprims.h: Updated class declarations.
4096 * Makefile.in: Rebuilt.
4097 * Makefile.am (nat_headers): Added Constructor.h.
4098 (java/lang/String.h): Don't inline String::length().
4099 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4100 * java/lang/Class.java (initializeClass, hackRunInitializers,
4101 hackTrampoline): No need to mark `final'.
4102 (getConstructor, getConstructors): Declare.
4103 * java/lang/reflect/Field.java (equals): New method.
4104 * java/lang/natClass.cc (getConstructor): New method.
4105 (getConstructors): Likewise.
4106 Include Method.h, Field.h, Constructor.h.
4107 * java/lang/reflect/Constructor.java: New file.
4108 * java/lang/reflect/Method.java (toString): No space before open
4110 (equals): Simplified.
4112 1998-12-13 Anthony Green <green@cygnus.com>
4114 * java/util/ResourceBundle.java: New file.
4115 * java/util/ListResourceBundle.java: New file.
4117 1998-12-12 Tom Tromey <tromey@cygnus.com>
4119 * java/lang/System.java (in, out, err): Now buffered streams by
4122 * include/javaprims.h: Updated class declarations.
4123 * Makefile.in: Rebuilt.
4124 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4125 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4127 (nat_files): Added natMethod.o.
4128 * java/lang/reflect/natMethod.cc: New file.
4129 * java/lang/reflect/Field.java (Field): Now extends
4131 * java/lang/reflect/AccessibleObject.java: New file.
4132 * java/lang/reflect/InvocationTargetException.java: New file.
4134 1998-12-11 Tom Tromey <tromey@cygnus.com>
4136 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4137 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4138 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4140 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4142 1998-12-09 Tom Tromey <tromey@cygnus.com>
4144 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4147 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4148 character is already titlecase.
4150 * java/lang/Character.java (isJavaLetter): Follow spec.
4151 (isJavaLetterOrDigit): Likewise.
4153 * java/util/GregorianCalendar.java (gregorianCutover): Append
4156 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4158 1998-12-08 Tom Tromey <tromey@cygnus.com>
4160 * java/lang/reflect/Modifier.java (toString): Replace second
4161 `static' with `synchronized'.
4163 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4164 * java/lang/Object.h (Object::hack12_6): Declare.
4165 * java/lang/Object.java (hack12_6): New function.
4167 1998-12-07 Tom Tromey <tromey@cygnus.com>
4169 * include/java-array.h (__JArray::clone): Removed decl.
4170 * prims.cc (__JArray::clone): Removed.
4171 * java/lang/natObject.cc (clone): Incorporate code to clone an
4174 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4175 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4176 Correctly use dtable_method_count.
4178 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4180 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4183 1998-12-06 Anthony Green <green@cygnus.com>
4185 * mauve-libjava: Don't test ResourceBundle.
4187 1998-12-04 Tom Tromey <tromey@cygnus.com>
4189 More JDK 1.2 spec fixes:
4190 * java/util/Date.java (millis): Now private.
4191 * java/text/DateFormat.java (DateFormat): Constructor now
4193 * java/lang/Void.java (Void): New private constructor.
4194 * java/lang/System.java (System): New private constructor.
4195 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4197 (currentClassLoader): New method.
4198 (currentLoadedClass): New method.
4199 * java/lang/Math.java (Math): New private constructor.
4200 * java/lang/Compiler.java (Compiler): New private constructor.
4201 * java/lang/Class.java (Class): New private constructor.
4202 * java/lang/Double.java (toString): Removed access specifier from
4203 two-argument `toString' method.
4205 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4207 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4208 causes it to be flushed from an fp register (where it may be
4209 longer than double precision) to a double in memory. This is
4210 essential to ensure correct rounding behaviour.
4212 1998-12-04 Tom Tromey <tromey@cygnus.com>
4214 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4217 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4218 explaining apparent divergence from JDK 1.2.
4220 1998-12-04 Per Bothner <bothner@cygnus.com>
4222 * include/no-threads.h: Remove unused parameter names.
4223 This silences a bunch of warnings.
4225 1998-12-04 Tom Tromey <tromey@cygnus.com>
4227 * include/config.h.in: Rebuilt.
4228 * acconfig.h (HAVE_CTIME_R): New symbol.
4230 1998-12-03 Tom Tromey <tromey@cygnus.com>
4232 * mauve-libjava: Added many more categories to reject.
4234 Changes to follow JDK1.2 spec:
4235 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4236 setErr, setIn, setOut): No need to be `final'.
4237 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4238 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4239 * java/lang/Object.java (wait): `nanos' argument is an int.
4240 * java/lang/VirtualMachineError.java: Class is abstract.
4241 * java/lang/ThreadDeath.java: Made constructors public.
4242 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4245 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4247 * java/text/DateFormatSymbols.java (getAmPmStrings,
4248 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4250 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4252 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4253 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4254 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4257 * java/lang/IllegalThreadStateException.java
4258 (IllegalThreadStateException): Changed extending class to match spec.
4260 * java/lang/NumberFormatException.java
4261 (java/lang/NumberFormatException): Changed extending class to match
4264 * java/util/Observer.java (Observer): Changed sig to match JCL.
4266 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4268 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4269 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4270 signature to match JDK 1.1 and 1.2.
4272 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4274 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4275 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4276 * Makefile.in, configure: Rebuilt.
4278 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4281 1998-12-02 Tom Tromey <tromey@cygnus.com>
4283 * mauve-libjava: New file.
4285 The remaining `-W -Wall' fixes:
4286 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4288 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4290 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4292 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4294 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4296 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4298 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4300 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4302 * java/lang/mprec.c (Balloc): Removed unused variable.
4303 (mult): Added parentheses per gcc suggestion.
4304 (pow5mult): Likewise.
4309 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4310 suggestion. Added cast to `int' to avoid signed/unsigned
4312 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4314 (IsAssignableFrom): Likewise.
4315 (_Jv_JNI_GetObjectField): Likewise.
4316 (_Jv_JNI_GetByteField): Likewise.
4317 (_Jv_JNI_GetShortField): Likewise.
4318 (_Jv_JNI_GetIntField): Likewise.
4319 (_Jv_JNI_GetLongField): Likewise.
4320 (_Jv_JNI_GetStringLength): Likewise.
4321 (_Jv_JNI_ToReflectedField): Likewise.
4322 (_Jv_JNI_FromReflectedField): Likewise.
4323 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4325 * Makefile.in: Rebuilt.
4326 * Makefile.am (AM_CFLAGS): Define conditionally.
4327 (WARNINGS): New macro.
4328 (AM_CXXFLAGS): Include WARNINGS.
4329 * configure: Rebuilt.
4330 * configure.in (USING_GCC): New conditional.
4332 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4334 * java/lang/Character.java: Changed classification constants to
4335 type `byte' to match JDK 1.2 docs.
4337 1998-12-01 Tom Tromey <tromey@cygnus.com>
4339 Some fixes to be `-W -Wall' clean:
4340 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4341 (_Jv_MarkArray): Likewise.
4342 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4343 (to_upper_title): Likewise.
4344 (isTitleCase): Likewise.
4345 (toTitleCase): Likewise.
4346 (getNumericValue): Likewise.
4347 (isLowerCase): Likewise.
4348 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4349 (avoids compiler warning).
4350 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4352 (getDeclaringClass): Likewise.
4353 (_Jv_LookupInterfaceMethod): Likewise.
4354 (_Jv_NewClass): Removed name of unused parameter.
4355 * exception.cc (_Jv_type_matcher): Removed unused variable.
4356 (_Jv_setup_eh_info): Removed name of unused parameter.
4357 * prims.cc (_Jv_NewArray): Always return a value.
4358 (_Jv_FindClassFromSignature): Likewise.
4359 * include/java-field.h (getNameUtf8Const): Removed name of unused
4361 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4363 (_Jv_ThreadSetPriority): Likewise.
4365 * java/lang/natString.cc (hashChars): Now static.
4367 * java/lang/FirstThread.java (FirstThread): Now final.
4369 * java/io/File.java (performMkdir, performRenameTo): Now private.
4371 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4372 if no time function defined.
4374 * configure: Rebuilt.
4375 * configure.in: Look for ctime_r, ctime.
4376 * java/util/Date.java (toString): Now native.
4377 * java/util/natDate.cc (toString): Rewrote.
4379 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4381 * Add LDFLAGS line to allow TX39 test cases to link when cross
4384 1998-11-23 Anthony Green <green@cygnus.com>
4386 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4387 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4388 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4389 include/java-array.h, include/java-assert.h, include/java-field.h,
4390 include/javaprims.h, include/jni.h, include/jvm.h,
4391 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4392 include/quick-threads.h, java/io/BufferedInputStream.java,
4393 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4394 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4395 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4396 java/io/CharArrayWriter.java,
4397 java/io/CharConversionException.java, java/io/DataInput.java,
4398 java/io/DataInputStream.java, java/io/DataOutput.java,
4399 java/io/DataOutputStream.java, java/io/EOFException.java,
4400 java/io/File.java, java/io/FileDescriptor.java,
4401 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4402 java/io/FileOutputStream.java, java/io/FileReader.java,
4403 java/io/FileWriter.java, java/io/FilenameFilter.java,
4404 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4405 java/io/FilterReader.java, java/io/FilterWriter.java,
4406 java/io/IOException.java, java/io/InputStream.java,
4407 java/io/InputStreamReader.java,
4408 java/io/InterruptedIOException.java,
4409 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4410 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4411 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4412 java/io/PipedReader.java, java/io/PipedWriter.java,
4413 java/io/PrintStream.java, java/io/PrintWriter.java,
4414 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4415 java/io/RandomAccessFile.java, java/io/Reader.java,
4416 java/io/SequenceInputStream.java, java/io/Serializable.java,
4417 java/io/StreamTokenizer.java,
4418 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4419 java/io/StringWriter.java, java/io/SyncFailedException.java,
4420 java/io/UTFDataFormatException.java,
4421 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4422 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4423 java/io/natFileDescriptorPosix.cc,
4424 java/lang/AbstractMethodError.java,
4425 java/lang/ArithmeticException.java,
4426 java/lang/ArrayIndexOutOfBoundsException.java,
4427 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4428 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4429 java/lang/Class.java, java/lang/ClassCastException.java,
4430 java/lang/ClassCircularityError.java,
4431 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4432 java/lang/ClassNotFoundException.java,
4433 java/lang/CloneNotSupportedException.java,
4434 java/lang/Cloneable.java, java/lang/Comparable.java,
4435 java/lang/Compiler.java, java/lang/Double.java,
4436 java/lang/Error.java, java/lang/Exception.java,
4437 java/lang/ExceptionInInitializerError.java,
4438 java/lang/FirstThread.java, java/lang/Float.java,
4439 java/lang/IllegalAccessError.java,
4440 java/lang/IllegalAccessException.java,
4441 java/lang/IllegalArgumentException.java,
4442 java/lang/IllegalMonitorStateException.java,
4443 java/lang/IllegalStateException.java,
4444 java/lang/IllegalThreadStateException.java,
4445 java/lang/IncompatibleClassChangeError.java,
4446 java/lang/IndexOutOfBoundsException.java,
4447 java/lang/InstantiationError.java,
4448 java/lang/InstantiationException.java, java/lang/Integer.java,
4449 java/lang/InternalError.java, java/lang/InterruptedException.java,
4450 java/lang/LinkageError.java, java/lang/Long.java,
4451 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4452 java/lang/NoClassDefFoundError.java,
4453 java/lang/NoSuchFieldError.java,
4454 java/lang/NoSuchFieldException.java,
4455 java/lang/NoSuchMethodError.java,
4456 java/lang/NoSuchMethodException.java,
4457 java/lang/NullPointerException.java, java/lang/Number.java,
4458 java/lang/NumberFormatException.java, java/lang/Object.h,
4459 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4460 java/lang/Process.java, java/lang/Runnable.java,
4461 java/lang/Runtime.java, java/lang/RuntimeException.java,
4462 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4463 java/lang/Short.java, java/lang/StackOverflowError.java,
4464 java/lang/String.java, java/lang/StringBuffer.java,
4465 java/lang/StringIndexOutOfBoundsException.java,
4466 java/lang/System.java, java/lang/Thread.java,
4467 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4468 java/lang/Throwable.java, java/lang/UnknownError.java,
4469 java/lang/UnsatisfiedLinkError.java,
4470 java/lang/UnsupportedOperationException.java,
4471 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4472 java/lang/Void.java, java/lang/natCharacter.cc,
4473 java/lang/natClass.cc, java/lang/natDouble.cc,
4474 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4475 java/lang/natMath.cc, java/lang/natObject.cc,
4476 java/lang/natRuntime.cc, java/lang/natString.cc,
4477 java/lang/natSystem.cc, java/lang/natThread.cc,
4478 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4479 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4480 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4481 java/text/FieldPosition.java, java/text/Format.java,
4482 java/text/NumberFormat.java, java/text/ParseException.java,
4483 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4484 java/util/BitSet.java, java/util/Calendar.java,
4485 java/util/ConcurrentModificationException.java,
4486 java/util/Date.java, java/util/Dictionary.java,
4487 java/util/EmptyStackException.java, java/util/Enumeration.java,
4488 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4489 java/util/Locale.java, java/util/MissingResourceException.java,
4490 java/util/NoSuchElementException.java, java/util/Observable.java,
4491 java/util/Observer.java, java/util/Properties.java,
4492 java/util/Random.java, java/util/SimpleTimeZone.java,
4493 java/util/Stack.java, java/util/StringTokenizer.java,
4494 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4495 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4498 * exception.cc: Include eh-common.h instead of duplicating
4501 1998-11-23 Tom Tromey <tromey@cygnus.com>
4503 * configure.host: Don't add `-O2' to libjava_flags. Only add
4504 `-Os' to libjava_flags once.
4506 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4508 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4509 * Makefile.in: likewise
4510 * acconfig.h: add ECOS conditional for configure.h
4511 * config.h.in: likewise
4512 * configure: add test for --with-ecos
4513 * configure.in: likewise
4514 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4515 rename call to avoid name clash.
4516 * java/lang/natSystem.cc: add eCos clock support.
4517 * java/util/natGregorianCalendar.cc: add eCos support.
4519 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4521 * Makefile.am, Makefile.in, configure.host: tx39 build option
4524 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4526 * java/io/BufferedReader.java: Added more comments for clarity.
4527 (mark): Used more mnemonic name for local var extraBuffSpace.
4529 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4530 confusion with private method of same name in superclass.
4531 (skipRedundantLF): Set fields in special case to avoid infinite
4532 recursion. Check if markPos has been invalidated in special case.
4533 (readLine): Rewritten to use readLine method of superclass.
4534 (skip): Incorporated code from lineEnd.
4536 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4538 * java/io/BufferedReader.java (readLine): New method.
4539 (lineEnd): new private method.
4540 (mark): Track special case for readLine of getting '\r' at the
4547 * java/io/InputStreamReader.java (read): Return number chars skipped
4548 rather than requested.
4550 * java/lang/StringBuffer.java (append): Update count and differentiate
4551 between field and local variable.
4553 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4554 seconds. Deal with military style time.
4555 (parse): Consistently treat all timezones in minutes until final
4556 calculation. Flag as non-local timezone. Return value in milliseconds.
4557 (setTime): Adjust for year offset from 1900.
4558 (UTC): Adjust for year offset from 1900.
4560 1998-11-17 Tom Tromey <tromey@cygnus.com>
4562 * configure: Rebuilt.
4563 * configure.in: Switch on host, not target.
4565 * Makefile.in: Rebuilt.
4566 * Makefile.am (GCJ_no): New macro.
4567 (GCJ): Use @CANADIAN@.
4568 (GCJH_no): New macro
4569 (GCJH_canadian): New macro.
4570 (GCJH): Use @CANADIAN@.
4571 (ZIP_no): New macro.
4572 (ZIP_canadian): New macro.
4573 (ZIP): Use @CANADIAN@.
4574 * aclocal.m4, configure: Rebuilt.
4575 * configure.in (CANADIAN): Compute and subst.
4577 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4579 * java/io/FileDescriptor.java (finalize): Only close file
4580 descriptor if valid.
4582 1998-11-17 Tom Tromey <tromey@cygnus.com>
4584 * prims.cc (_Jv_InitRuntime): Removed.
4586 1998-11-16 Tom Tromey <tromey@cygnus.com>
4588 * java/io/FileOutputStream.java (close): Only close file
4589 descriptor if valid.
4590 (finalize): New method.
4592 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4593 (_Jv_NewPrimArray): Likewise.
4594 * boehm.cc (_Jv_RegisterFinalizer): Use
4595 GC_REGISTER_FINALIZER_NO_ORDER.
4596 (GC_GENERIC_MALLOC): New define.
4597 (_Jv_AllocObj): Use it.
4598 (_Jv_AllocArray): Likewise.
4599 (_Jv_AllocBytes): Likewise.
4600 (_Jv_MarkObj): Just return if vtbl not set.
4601 (_Jv_MarkArray): Likewise.
4602 (MAYBE_MARK): New macro; use everywhere.
4603 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4605 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4607 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4608 to a jlong before calculation to prevent overflow.
4610 1998-11-16 Tom Tromey <tromey@cygnus.com>
4612 * Makefile.in: Rebuilt.
4613 * Makefile.am (nat_headers): Fixed typo.
4615 1998-11-15 Tom Tromey <tromey@cygnus.com>
4617 * java/lang/Class.h (Class::getName): Removed definition.
4618 * Makefile.in: Rebuilt.
4619 * Makefile.am (nat_headers): Added InstantiationException.h,
4620 NoSuchMethodException.h.
4621 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4622 (init_name): New global.
4623 (hackRunInitializers): Use clinit_name.
4624 Include InstantiationException.h, NoSuchMethodException.h.
4625 (newInstance): Do some error checking (but not all). Call
4627 (forName): Throw exception if class not found.
4628 (getName): New method.
4629 (forName): Transform class name from external format to internal
4630 format before lookup.
4632 1998-11-15 Anthony Green <green@cygnus.com>
4634 * java/lang/Class.h (Class::forName): Method is static.
4636 * java/lang/natClass.cc (newInstance): Add simple implementation.
4639 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4641 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4642 int), for compatibility with jc1.
4644 1998-11-14 Tom Tromey <tromey@cygnus.com>
4646 * include/config.h.in: Rebuilt.
4647 * acconfig.h (LINUX_THREADS): New define.
4648 * configure: Rebuilt.
4649 * configure.in: Define LINUX_THREADS if using POSIX threads on
4650 Linux. Look for pthread_mutexattr_setkind_np function.
4651 * posix-threads.cc (throw_cleanup): New function.
4652 (really_start): Push cleanup function.
4653 (_Jv_ThreadCancel): New function.
4654 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4655 (_Jv_ThreadInitData): Set `exception' field in new structure.
4656 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4658 (_Jv_ThreadWait): New function.
4659 (_Jv_InitThreads): Initialize daemon globals.
4660 (FLAG_DAEMON): New macro.
4661 (really_start): Notify daemon_cond when non-daemon thread exits.
4662 Include <java/lang/System.h>.
4663 (struct starter): `object' field now a thread.
4664 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4665 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4666 (_Jv_ThreadWait): Removed definition.
4667 (_Jv_Thread_t): Added `exception' field.
4668 (_Jv_ThreadCancel): Removed definition.
4670 1998-11-13 Tom Tromey <tromey@cygnus.com>
4672 * Makefile.in: Rebuilt.
4673 * Makefile.am (libjava.zip): Compute javac before changing
4676 * Makefile.in: Rebuilt.
4677 * Makefile.am (libjava.zip): Include directory entries.
4679 * Makefile.in: Rebuilt.
4680 * Makefile.am (expanded): New macro.
4683 1998-11-12 Tom Tromey <tromey@cygnus.com>
4685 * prims.cc (clone): New function.
4686 * include/java-array.h (__JArray::clone): Removed definition.
4688 * java/lang/natObject.cc (clone): Don't assert that class is not
4689 an array; array's `clone' method just calls this one.
4691 * Makefile.in: Rebuilt.
4692 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4693 Now creates zip file. Changed all users.
4695 (data_DATA): New macro.
4697 1998-11-11 Tom Tromey <tromey@cygnus.com>
4699 * configure: Rebuilt.
4700 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4702 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4704 * java/io/InputStream.java (reset): Add msg to thrown exception.
4706 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4708 * java/io/LineNumberInputStream.java: Rewritten.
4710 * java/io/StringBufferInputStream.java: Removed extraneous import.
4712 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4714 * java/io/StringBufferInputStream.java: Rewritten.
4716 * java/util/Date.java (parseMonth): Optimize.
4717 (parseDayOfWeek): Created.
4718 (parse): Optimize to use parseDayOfWeek.
4720 1998-11-11 Tom Tromey <tromey@cygnus.com>
4722 * java/lang/StringBuffer.java (append): Handle case where STR is
4725 * include/javaprims.h: Regenerated class declarations.
4727 * configure: Rebuilt.
4728 * configure.in: Added --enable-gcj-classes,
4729 --enable-single-compilation, --enable-source-compilation flags.
4730 * Makefile.in: Rebuilt.
4731 * Makefile.am (java_io_files): New macro.
4732 (java_lang_files): Likewise.
4733 (java_text_files): Likewise.
4734 (java_util_files): Likewise.
4735 (java_files): Use new macros.
4736 (java-io.o): New target.
4737 (java-lang.o): Likewise.
4738 (java-text.o): Likewise.
4739 (java-util.o): Likewise.
4740 (src_io_files): New macro.
4741 (src_lang_files): Likewise.
4742 (src_text_files): Likewise.
4743 (src_util_files): Likewise.
4744 (class_io_files): New macro.
4745 (class_lang_files): Likewise.
4746 (class_text_files): Likewise.
4747 (class_util_files): Likewise.
4748 (class_files): Use new macros.
4749 (javao_files): Define conditionally.
4750 (.java.o): New target.
4751 ($(javao_files)): New target.
4753 (GCJH): Added $(EXEEXT).
4754 (CLASSPATH_ENV): Removed.
4755 (GCJCOMPILE): New macro.
4757 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4759 * java/util/Date.java (parse): Written from scratch.
4761 1998-11-11 Tom Tromey <tromey@cygnus.com>
4763 * java/lang/Throwable.java (toString): Correct sense of test for
4764 determining when to include detail message in result.
4766 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4769 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4771 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4773 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4774 (_Jv_RegisterClass): Use it.
4775 * include/jvm.h (_Jv_RegisterClasses): Declare.
4776 * java/lang/natObject.cc (init): Removed.
4777 (sync_init): Never call _Jv_InitializeSyncMutex.
4778 (_Jv_InitializeSyncMutex): Don't set `init'.
4779 * prims.cc (JvRunMain): Don't run init functions.
4781 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4783 * java/lang/natClass.cc (initializeClass): Set state before
4784 resolving constants.
4786 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4787 (STATE_RESOLVED): New macro.
4788 (initializeClass): Call resolveConstants.
4789 (hackRunInitializers): Don't call resolveConstants.
4790 (_Jv_FindArrayClass): Move short-circuit return for primitive
4791 element types earlier in function.
4793 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4795 * prims.cc (no_memory): New global.
4796 (_Jv_makeUtf8Const): Throw no_memory.
4797 (_Jv_AllocObject): Likewise.
4798 (_Jv_NewObjectArray): Likewise.
4799 (_Jv_NewPrimArray): Likewise.
4800 (JvRunMain): Initialize no_memory.
4802 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4804 * java/io/FileInputStream.java: Corrected date comment.
4805 * java/io/SequenceInputStream.java: Rewritten.
4807 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4809 * java/lang/FirstThread.java (die): New method.
4810 * java/lang/natFirstThread.cc (die): Removed.
4812 (run): Use `DIE', not `die'.
4814 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4816 * java/io/CharArrayReader.java (read): Move check into synchronized
4817 block to prevent a close while in progress.
4820 * java/io/PushbackReader.java (read): Ditto.
4823 * java/io/StringReader.java (mark): Ditto.
4828 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4830 * java/io/PipedInputStream.java: Updated status.
4831 (connect): Added code to prevent infinite recursion and to
4832 differentiate exception causes.
4833 (read): Added code to differentiate exception causes.
4834 (receive): Made exception pass string with the cause.
4836 * java/io/PipedOutputStream.java: Updated status.
4837 (connect): Added code to call connect at the other end of the pipe.
4839 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4841 * java/io/PipedInputStream.java (connect): Throw exception if
4842 already connected to the same output stream.
4843 (read): Do bounds checking first.
4845 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4847 * java/io/PipedInputStream.java: Added private boolean outClosed.
4848 (available): Removed check if output stream is open.
4849 (close): Mark the buffer as empty so available returns 0.
4850 (read): Check if the output stream was closed and then return EOF
4851 when the buffer is empty.
4852 (receive): Mark the output stream as closed when passed a -1.
4854 * java/io/PipedOutputStream.java (close): Notify the input stream
4855 that there's no more data coming.
4856 (connect): Added a FIXME comment to note more coordination needed
4857 with PipedInputStream.
4858 (flush): Added a FIXME comment to mark what this method might do
4861 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4863 * java/io/PipedInputStream.java: Rewritten.
4865 1998-10-30 Tom Tromey <tromey@cygnus.com>
4867 * java/lang/Throwable.java: Rewrote from scratch.
4869 * java/lang/Class.h (Class): Don't mention newMultiArray.
4870 * prims.cc (newMultiArray): Removed.
4871 (_Jv_NewMultiArray): Removed.
4872 (newArray): Removed.
4873 (new_multi_array): New function.
4874 (_Jv_NewMultiArray): Rewrote from scratch.
4876 * include/javaprims.h: Regenerated class declarations.
4877 * classes.pl (scan): Don't declare PrimClass.
4878 * include/cni.h (JvPrimClass): Use new names for classes.
4879 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4880 added _Jv_PrimClass.
4881 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4882 (_Jv_initPrimClass): Removed.
4883 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4884 (_Jv_AllocObject): Added comment.
4885 (_Jv_NewObjectArray): Likewise.
4886 (_Jv_NewPrimArray): Likewise.
4888 1998-10-29 Tom Tromey <tromey@cygnus.com>
4890 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4891 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4893 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4895 * java/lang/natObject.cc (init): New global.
4896 (sync_init): Call _Jv_InitializeSyncMutex if required.
4898 * Makefile.in: Rebuilt.
4899 * Makefile.am (nat_headers): Added ClassLoader.h.
4900 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4901 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4902 internalAddClass, lookupArray no longer friends.
4903 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4904 _Jv_FindArrayClass now friends.
4905 * java/lang/natClass.cc (HASH_LEN): New macro.
4906 (HASH_UTF): Likewise.
4907 (loaded_classes): New global.
4908 (_Jv_FindClass): New function.
4909 (ClassClass): New define.
4910 (_Jv_FindClassInCache): New function.
4911 (_Jv_RegisterClass): Likewise.
4912 (_Jv_NewClass): Likewise.
4914 (ObjectClass): New define.
4915 (CloneableClass): New define.
4916 * prims.cc (_Jv_FindClass): Removed.
4917 (simpleLookupClass): Removed.
4918 (insertClass): Removed.
4919 (CLASSHASHSZ): Removed.
4920 (classPool): Removed.
4921 (_Jv_RegisterClass): Removed.
4922 (internalAddClass): Removed.
4923 (ClassClass): Removed.
4924 (RuntimeClass): Removed.
4925 (lookupArray): Removed.
4926 (CloneableClass): Removed.
4927 (CLASSMAXSIG): Removed.
4928 Rearranged file to group related functions together.
4929 (_Jv_IsInstanceOf): Moved to natClass.cc.
4930 (abort_final): Removed.
4931 Removed some unused includes.
4932 (classFromSig): Removed.
4933 (_Jv_FindClassFromSignature): New function.
4934 (_Jv_initPrimClass): Renamed.
4935 (getClass): Removed.
4937 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4939 * java/io/FileDescriptor.java (finalize): Throws IOException
4940 instead of Throwable.
4942 * java/io/FileInputStream.java: Rewritten.
4944 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4945 at the end of a comment.
4947 1998-10-29 Tom Tromey <tromey@cygnus.com>
4949 * include/javaprims.h: Regenerated class declarations.
4950 * classes.pl (scan): Don't special-case ClassLoader.
4952 * prims.cc (processClass): Removed.
4953 (_Jv_InitClass): Removed.
4954 Removed all CSTATE_ macros.
4955 (resolveConstants): Removed.
4957 (_Jv_NewMultiArray): Cleaned up.
4958 * Makefile.in: Rebuilt.
4959 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4960 * java/lang/Class.h (Class): Declare new methods. processClass no
4962 * java/lang/Class.java (hackTrampoline): New method.
4963 (initializeClass): Declare.
4964 (hackRunInitializers): Declare.
4965 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4966 (initializeClass): New method.
4967 (hackRunInitializers): New method.
4968 (init_name, void_signature): Moved from prims.cc.
4969 (_Jv_InitClass): New function.
4970 (isAssignableFrom): Don't call processClass.
4971 (STATE_NOTHING): New macro.
4972 (resolveConstants): New function.
4974 (ErrorClass): New define.
4976 * java/lang/Class.java (getClassLoader): Declare.
4977 * java/lang/ClassLoader.java: Rewrote from scratch.
4979 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4980 AbstractMethodError.h, IllegalAccessError.h,
4981 NoClassDefFoundError.h.
4982 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4983 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4984 longer static. Changed return type.
4985 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4986 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4987 * prims.cc (findMethodLocal): Removed.
4988 (processClass): Use _Jv_GetMethodLocal.
4990 1998-10-28 Tom Tromey <tromey@cygnus.com>
4992 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4993 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4995 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4996 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4998 * include/jni.h: Added copyright header.
4999 * include/javaprims.h: Added copyright header.
5000 * include/java-field.h: Added copyright header.
5001 * include/java-array.h: Added copyright header.
5002 * include/cni.h: Added copyright header.
5004 * include/javaprims.h: Regenerated class declarations using
5005 classes.pl; now they are complete.
5006 * classes.pl: New file.
5008 * java/lang/natMath.cc: Include <config.h>.
5009 * java/lang/reflect/natField.cc: Include <config.h>.
5010 * java/util/NativeUtil.java: Removed.
5011 * Makefile.in: Rebuilt.
5012 * Makefile.am (nat_headers): Added Math.h.
5013 * java/lang/Math.h: Removed.
5014 * java/util/natGregorianCalendar.cc: Added copyright header.
5016 * java/lang/natFloat.cc: Added copyright header.
5017 * java/lang/Byte.java: Added copyright header.
5018 * java/lang/Void.java: Added copyright header.
5019 * java/lang/Short.java: Added copyright header.
5021 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5023 * include/javaprims.h (java::io): Added bunch of missing classes.
5025 * java/io/DataInputStream.java (readLine): Added a special case
5026 for handling BufferedInputStream data to reduce the likelihood
5027 of a pushback error.
5028 (skipBytes): Added code to handle negative number of skip bytes.
5030 * java/io/StreamTokenizer.java: Rewritten.
5032 1998-10-28 Tom Tromey <tromey@cygnus.com>
5034 * java/util/natGregorianCalendar.cc (computeFields): Call
5035 getRawOffset as a method.
5037 * include/javaprims.h (java::io): Added FilterOutputStream.
5038 * Makefile.in: Rebuilt.
5039 * Makefile.am (nat_headers): Added PrintStream.h,
5040 FilterOutputStream.h.
5041 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5043 (die): New function.
5044 (run): Die if `main' not found, is not public, or is not static.
5046 * boehm.cc (_Jv_MarkObj): Use new field names.
5047 * include/java-field.h (JvGetFirstInstanceField): Use new field
5049 (JvNumInstanceFields): Likewise.
5050 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5051 (getInterfaces): Likewise.
5052 * prims.cc (CLASS_CONSTANTS): Removed.
5053 (CLASS_CONST_SIZE): Likewise.
5054 (CLASS_CONST_TAG): Likewise.
5055 (CLASS_CONST_DATA): Likewise.
5056 (CLASS_CONST_UTF8): Likewise.
5057 (WORD2UTF): Likewise.
5058 (CLASS_CLASS): Likewise.
5059 (CLASS_PRIM_SIG): Likewise.
5060 (CLASS_ARRAY_CACHE): Likewise.
5061 (HASH_CHARS): Likewise.
5062 (hashClassName): Likewise.
5063 Many changes to use new field names.
5064 * java/lang/Class.h (Class): Renamed fields to track compiler.
5066 1998-10-27 Tom Tromey <tromey@cygnus.com>
5068 * java/lang/natClass.cc: Use #pragma implementation.
5069 (getComponentType): Moved into header.
5070 (getModifiers): Likewise.
5071 (getName): Likewise.
5072 (getSuperclass): Likewise.
5073 (isArray): Likewise.
5074 (isPrimitive): Likewise.
5075 * include/jvm.h (_Jv_FindClass): Declare.
5076 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5077 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5078 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5079 * java/lang/Class.h: Rewrote from scratch.
5080 * prims.cc: Many changes to work with new Class.h.
5081 * include/java-field.h (CLASS_FIELDS): Removed.
5082 (CLASS_SFIELDS): Likewise.
5083 (CLASS_IFIELDS): Likewise.
5084 (CLASS_NFIELDS): Likewise.
5085 (CLASS_NIFIELDS): Likewise.
5086 (CLASS_NSFIELDS): Likewise.
5087 (CLASS_FSIZE): Likewise.
5088 (JvGetFirstInstanceField): Rewrote.
5089 (JvNumInstanceFields): Likewise.
5091 * java/lang/Object.h: Added copyright comment.
5093 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5095 * java/text: New package directory.
5096 * java/text/FieldPosition.java: New class.
5097 * java/text/ParsePosition.java: New class.
5098 * java/text/ParseException.java: New Exception class.
5099 * java/text/Format.java: New class.
5100 * java/text/NumberFormat.java: New (empty placeholder) class.
5101 * java/text/DateFormatSymbols.java: New class (no Locales support).
5102 * java/text/DateFormat.java: New Format class (incomplete).
5103 * java/text/SimpleDateFormat.java: New DateFormat class.
5105 * include/javaprims.h (java::test): Added new package and classes.
5106 * java/util/Calendar.java (clone): New method.
5107 * java/util/Date.java (toString): Added non-native implementation.
5108 (parse): Made public instead of synchronized.
5109 * java/util/natDate.cc (toString): Removed.
5110 * java/util/natGregorianCalendar.cc (computeFields):
5111 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5113 1998-10-27 Tom Tromey <tromey@cygnus.com>
5115 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5117 * prims.cc (lookupArray): Added explanatory comment.
5118 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5119 class. Mark the class of each object.
5120 (_Jv_MarkArray): Mark the object's class.
5122 * configure: Rebuilt.
5123 * configure.in: Create java-gc.h.
5124 * include/boehm-gc.h: New file.
5125 * include/no-gc.h: New file.
5126 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5128 * java/lang/Object.h: Include java-gc.h.
5129 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5130 friends, if defined.
5131 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5133 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5135 1998-10-26 Tom Tromey <tromey@cygnus.com>
5137 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5138 paragraph separators, not numbers.
5140 * java/io/Writer.java (write): Removed write(char) to avoid
5142 * java/util/Properties.java: Rewrote from scratch.
5143 * include/javaprims.h (java::io): Added PrintWriter,
5144 BufferedWriter, PushbackReader.
5146 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5148 * java/lang/System.java: exit() is a static method.
5150 1998-10-26 Tom Tromey <tromey@cygnus.com>
5152 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5154 (_Jv_NewStringUtf8Const): Likewise.
5155 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5156 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5158 * java/lang/Object.h (Object): Add mark_array as friend function.
5159 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5160 _Jv_AllocBytes, to ensure that header is marked.
5161 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5163 (mark_array): Push sync_info field for array.
5165 1998-10-24 Tom Tromey <tromey@cygnus.com>
5167 * java/lang/String.java (String): Updated for StringBuffer
5169 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5171 * java/lang/StringBuffer.java: Renamed fields to conform to
5172 serialization spec: buffer->value, next->count, copy->shared.
5174 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5176 * java/util/TimeZone.java: New class.
5177 * java/util/SimpleTimeZone.java: New class.
5178 * java/util/Locale.java: New file.
5179 * java/util/Calendar.java: Make almost complete.
5180 * java/util/GregorianCalendar.java
5181 * java/util/natGregorianCalendar.cc: New file.
5182 * java/util/Date.java: Re-written from scratch.
5183 * java/util/natDate.cc (setTime): Removed - no longer native.
5184 * include/javaprims.h (java::util): Add new classes.
5185 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5186 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5188 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5190 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5191 returning it as a jint.
5193 1998-10-23 Tom Tromey <tromey@cygnus.com>
5195 * prims.cc (arg_vec, main_group, main_thread): New globals.
5196 (JvRunMain): Use them.
5198 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5200 * java/io/DataInputStream.java: Rewritten.
5202 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5203 tertiary bytes with 0x80 per spec.
5205 1998-10-23 Tom Tromey <tromey@cygnus.com>
5207 * java/lang/String.java (init): Changed name of `copy' argument.
5208 * java/lang/natString.cc (init): Inverted sense of `copy'
5211 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5212 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5213 * boehm.cc (ObjectClass): New define.
5214 (ClassClass): Likewise.
5215 (mark_obj): Special-case Object and Class.
5217 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5219 * java/util/BitSet.java: Rewrote from scratch.
5221 * prims.cc (lookupArray): Removed useless cast.
5223 * java/lang/natObject.cc: Use `#pragma implementation'.
5225 * java/lang/String.java (init): Added `copy' argument.
5226 (String): Look in StringBuffer to find char array.
5227 * java/lang/natString.cc (init): Added `copy' argument.
5228 * java/lang/StringBuffer.java: Rewrote from scratch.
5230 * java/lang/Compiler.java: Rewrote from scratch.
5231 * java/lang/Throwable.java: Don't use NativeLang.
5232 * include/javaprims.h (java::lang): Don't mention NativeLang.
5233 * java/lang/Process.java: Rewrote from scratch.
5234 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5236 (currentClassLoader): Likewise.
5237 (currentLoadedClass): Likewise.
5238 * java/lang/natClass.cc (getClassLoader): Commented out.
5239 * java/lang/Class.java (getClassLoader): Commented out.
5240 * java/lang/Compiler.java: Removed.
5241 * java/lang/NativeLang.java: Removed.
5243 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5244 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5245 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5246 (_Jv_hashUtf8String): Now static.
5247 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5248 name of return type.
5250 * java/lang/Class.h (Class): Declare checkMemberAccess.
5251 * Makefile.in: Rebuilt.
5252 * Makefile.am (nat_headers): Added Member.h.
5253 * java/lang/natClass.cc: Include Member.h.
5254 (getDeclaredClasses): Call checkMemberAccess.
5255 * java/lang/Class.java (checkMemberAccess): Call
5256 SecurityManager.checkMemberAccess.
5258 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5260 * java/lang/SecurityManager.java: Rewritten.
5262 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5264 * java/applet/Applet.java, java/applet/AppletContext.java,
5265 java/applet/AppletStub.java, java/applet/AudioClip.java,
5266 java/awt/AWTError.java, java/awt/AWTException.java,
5267 java/awt/BorderLayout.java, java/awt/Button.java,
5268 java/awt/Canvas.java, java/awt/CardLayout.java,
5269 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5270 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5271 java/awt/Color.java, java/awt/Component.java,
5272 java/awt/Container.java, java/awt/Dialog.java,
5273 java/awt/Dimension.java, java/awt/Event.java,
5274 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5275 java/awt/Font.java, java/awt/FontMetrics.java,
5276 java/awt/Frame.java, java/awt/Graphics.java,
5277 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5278 java/awt/GridLayout.java, java/awt/Image.java,
5279 java/awt/Insets.java, java/awt/Label.java,
5280 java/awt/LayoutManager.java, java/awt/List.java,
5281 java/awt/MediaTracker.java, java/awt/Menu.java,
5282 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5283 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5284 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5285 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5286 java/awt/TextArea.java, java/awt/TextComponent.java,
5287 java/awt/TextField.java, java/awt/Toolkit.java,
5288 java/awt/Window.java, java/awt/image/ColorModel.java,
5289 java/awt/image/CropImageFilter.java,
5290 java/awt/image/DirectColorModel.java,
5291 java/awt/image/FilteredImageSource.java,
5292 java/awt/image/ImageConsumer.java,
5293 java/awt/image/ImageFilter.java,
5294 java/awt/image/ImageObserver.java,
5295 java/awt/image/ImageProducer.java,
5296 java/awt/image/IndexColorModel.java,
5297 java/awt/image/MemoryImageSource.java,
5298 java/awt/image/PixelGrabber.java,
5299 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5300 java/awt/peer/CanvasPeer.java,
5301 java/awt/peer/CheckboxMenuItemPeer.java,
5302 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5303 java/awt/peer/ComponentPeer.java,
5304 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5305 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5306 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5307 java/awt/peer/MenuBarPeer.java,
5308 java/awt/peer/MenuComponentPeer.java,
5309 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5310 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5311 java/awt/peer/TextAreaPeer.java,
5312 java/awt/peer/TextComponentPeer.java,
5313 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5314 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5315 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5316 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5317 java/net/MalformedURLException.java, java/net/NativeNet.java,
5318 java/net/ProtocolException.java, java/net/ServerSocket.java,
5319 java/net/Socket.java, java/net/SocketException.java,
5320 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5321 java/net/URL.java, java/net/URLConnection.java,
5322 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5323 java/net/URLStreamHandlerFactory.java,
5324 java/net/UnknownHostException.java,
5325 java/net/UnknownServiceException.java: Removed.
5327 1998-10-22 Tom Tromey <tromey@cygnus.com>
5329 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5330 finalizer is not Object.finalize.
5331 (internalAddClass): Don't set `final' member of class.
5332 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5333 other places that know about finalize() location.
5334 * java/lang/Class.h (Class): Removed `final' field.
5336 * aclocal.m4, configure: Rebuilt.
5337 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5338 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5340 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5341 * Makefile.in: Rebuilt.
5342 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5344 1998-10-21 Tom Tromey <tromey@cygnus.com>
5346 * java/lang/Object.java (finalize): Move to be first method in
5349 * configure: Rebuilt.
5350 * configure.in (GCINCS): Include contents of boehm-cflags file.
5352 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5354 * java/lang/ArrayIndexOutOfBoundsException.java
5355 (ArrayIndexOutOfBoundsException): Fixed string literal.
5356 * java/lang/StringIndexOutOfBoundsException.java
5357 (StringIndexOutOfBoundsException): Fixed string literal.
5359 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5361 * natFileDescriptorEcos.cc added.
5362 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5364 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5366 * acconfig.h: test for __int32_t and __uint32_t added.
5367 * include/config.h.in: test for __int32_t and __uint32_t added.
5368 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5369 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5370 * configure.in: test for __int32_t and __uint32_t added.
5371 * configure: test for __int32_t and __uint32_t added.
5373 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5375 * configure.in: Test for --enable ecos and link
5376 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5377 natFileDescriptorPosix.cc
5379 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5381 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5383 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5386 * java/io/CharArrayReader.java (close): Synchronize on lock
5387 object per Reader contract.
5388 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5389 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5390 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5391 Ensure that arg passed in isn't negative.
5393 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5394 constructing the superclass.
5396 * java/io/PushbackReader.java (close): Synchronize on lock
5397 object per Reader contract.
5398 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5399 (ready): Synchronize on lock obj. Throw IOException if reader
5401 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5402 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5403 Ensure that arg passed in isn't negative.
5404 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5406 * java/io/StringReader.java: Created.
5408 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5410 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5412 (read): Removed synchronized modifier to match JCL.
5413 (reset): Removed synchronized modifier to match JCL.
5414 (skip): Removed synchronized modifier to match JCL.
5416 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5418 * java/io/PushbackReader.java (PushbackReader): Made
5419 constructors public.
5421 1998-10-17 Tom Tromey <tromey@cygnus.com>
5423 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5424 constructors public.
5426 1998-10-16 Anthony Green <green@cygnus.com>
5428 * aclocal.m4, configure: Rebuilt.
5429 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5431 * configure.host: Rewrote.
5432 * Makefile.in: Rebuilt.
5433 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5434 (AM_CFLAGS): New macro.
5435 ($(c_files)): Use COMPILE macro.
5436 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5437 automake problem(s).
5439 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5441 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5443 * java/io/CharArrayReader.java: Created.
5445 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5447 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5448 size check to allow 0 per JCL.
5450 * java/io/PushbackReader.java: Created.
5452 1998-10-16 Tom Tromey <tromey@cygnus.com>
5454 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5455 <sys/time.h> includes.
5456 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5457 * include/no-threads.h: Conditionalize <unistd.h> include on
5460 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5462 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5465 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5467 * java/io/FilterReader.java: Created.
5469 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5471 * java/io/PushbackInputStream.java: Rewritten.
5473 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5474 that size passed to constructor is legal.
5475 (read): Check that args passed in are legal.
5476 (skip): Rewritten to get rid of the temporary buffer.
5477 (refill): Added marklimit check to grow the buffer.
5479 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5481 (bytesAvail): Removed.
5482 (read): Changed bytesAvail to Math.min.
5483 (skip): Changed bytesAvail to Math.min.
5485 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5486 from the throws clause.
5487 (skip): Rewritten to use a temporary buffer.
5489 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5491 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5494 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5496 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5497 to write the double one word at a time.
5499 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5501 * java/io/BufferedInputStream.java: Rewritten.
5503 1998-10-12 Tom Tromey <tromey@cygnus.com>
5505 * jni.cc: Include config.h and stddef.h.
5507 * java/lang/Class.h (_dispatchTable): Removed again.
5508 Removed all ACC_* defines again.
5510 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5512 * Makefile.am (nat_files): Add netField.o.
5513 (libjava_a_SOURCES): Add jni.cc.
5514 (java/lang/reflect/Field.h): New rule.
5515 * Makefile.in: Re-generated.
5516 * include/javaprims.h: Add some extra class and typedefs.
5517 * include/jni.h: New file.
5520 * include/java-field.h: New file.
5521 * include/jvm.h: #include <java-field.h>.
5522 * boehm.cc: #include <java-field.h>.
5523 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5524 * java/lang/reflect/Member.java: New class.
5525 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5526 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5528 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5530 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5531 testsuite/Makefile.in: Rebuilt.
5532 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5533 * configure.host: Created.
5535 1998-10-10 Tom Tromey <tromey@cygnus.com>
5537 * java/lang/natObject.cc (sync_init): Always allocate a new
5540 1998-10-09 Tom Tromey <tromey@cygnus.com>
5542 * java/io/ByteArrayInputStream.java (mark): Renamed from
5545 * java/io/FileOutputStream.java (finalize): Removed.
5546 * java/io/FileDescriptor.java (finalize): New method.
5548 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5550 * ByteArrayInputStream.java: Corrected status comment.
5552 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5554 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5556 1998-10-08 Tom Tromey <tromey@cygnus.com>
5558 * prims.cc (lookupArray): Use static array to initialize list of
5561 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5563 * prims.cc (lookupArray): Initialize the msize for new
5566 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5568 * configure: Rebuilt.
5569 * configure.in: Check for fsync and sleep.
5570 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5572 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5573 HAVE_SLEEP. Include config.h.
5575 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5576 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5579 1998-10-08 Tom Tromey <tromey@cygnus.com>
5581 * java/io/natFile.cc: Don't include SecurityManager.h.
5582 (performList): Renamed.
5583 (performMkdir): Likewise.
5584 (performRenameTo): Likewise.
5585 (performDelete): Likewise.
5587 * java/io/File.java (performDelete): Renamed from natDelete.
5588 (list): Now written in Java.
5589 (performList): New method.
5590 (performMkdir): New method.
5591 (mkdir): Now written in Java.
5592 (performRenameTo): New method.
5593 (renameTo): Now written in Java.
5595 1998-10-06 Tom Tromey <tromey@cygnus.com>
5597 * Makefile.in: Rebuilt.
5598 * Makefile.am (ETAGS_ARGS): New macro.
5599 (TAGS_DEPENDENCIES): Likewise.
5601 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5603 * Makefile.in: Rebuilt.
5604 * Makefile.am: Use -classpath option with javac.
5606 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5608 * java/io/FileOutputStream.java (finalize): Call
5611 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5613 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5615 * java/lang/mprec.c: Ditto.
5617 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5620 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5622 * java/io/InputStream.java (skip): Make local var i a long.
5624 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5626 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5627 * prims.cc (lookupArray): Use memcpy, not memmove.
5628 * include/config.h.in: Rebuilt.
5629 * acconfig.h (HAVE_MEMCPY): Added.
5630 * configure: Rebuilt.
5631 * configure.in: Check for memcpy again.
5633 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5634 String.compareTo, not ==.
5636 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5637 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5638 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5639 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5640 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5641 into new array's dtable.
5642 (_Jv_AllocObject): Use _Jv_DispatchTable.
5643 (_Jv_NewPrimArray): Likewise.
5644 (_Jv_NewObjectArray): Likewise.
5646 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5648 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5649 offending index value.
5650 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5652 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5653 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5655 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5657 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5659 * java/io/OutputStream.java (write): Use off and len parameters to
5660 output partial byte array.
5662 * java/io/BufferedReader.java, java/io/FileReader.java,
5663 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5664 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5665 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5666 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5668 * include/javaprims.h (java::lang): Added
5669 ExceptionInInitializerError, IllegalStateException,
5670 NoSuchFieldException, and UnsupportedOperationException.
5672 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5674 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5677 * include/java-array.h (__JArray): Added clone method.
5678 * prims.cc (CloneableClass): New define.
5679 (lookupArray): Initialize array class to indicate that it
5680 implements Cloneable.
5682 * java/lang/Class.h: Removed all ACC_* defines.
5683 * prims.cc: Include Modifier.h.
5684 (_Jv_LookupInterfaceMethod): Use methods in
5685 java.lang.reflect.Modifier, not ACC_ defines.
5687 * java/lang/Class.h (Class): Declare getClasses,
5688 getDeclaredClasses, getDeclaringClass, getModifiers,
5689 * java/lang/Class.java: Rewrote from scratch.
5691 * include/javaprims.h (java::lang): Added reflect and
5693 * Makefile.in: Rebuilt.
5694 * Makefile.am (nat_headers): Added Modifier.h.
5696 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5699 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5701 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5702 instead of test and abort.
5704 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5705 remove compiler warning.
5707 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5709 * java/lang/natDouble.cc: zero terminate string.
5710 * strtod.c: Set errno if no digits are found in fraction.
5712 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5714 * java/lang/reflect/Modifier.java: New file.
5716 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5717 * java/lang/VerifyError.java: Rewrote from scratch.
5718 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5719 * java/lang/UnknownError.java: Rewrote from scratch.
5720 * java/lang/StackOverflowError.java: Rewrote from scratch.
5721 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5722 * java/lang/InternalError.java: Rewrote from scratch.
5723 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5724 * java/lang/ExceptionInInitializerError.java: New file.
5725 * java/lang/Error.java: Rewrote from scratch.
5726 * java/lang/ClassFormatError.java: Rewrote from scratch.
5727 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5728 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5729 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5730 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5731 * java/lang/LinkageError.java: Rewrote from scratch.
5732 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5734 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5736 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5737 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5739 * include/cni.h (JvAllocObject): Moved from prims.cc.
5741 * prims.cc (JvAllocObject): Moved to cni.h.
5742 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5743 (finalize_name): Removed.
5745 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5747 * java/lang/Class.h (Class): Added size() method.
5748 * prims.cc (_Jv_MonitorEnter): Removed.
5749 (_Jv_MonitorExit): Removed.
5750 * java/lang/Object.h (JvSyncInfo): Removed.
5751 * Makefile.in: Rebuilt.
5752 * Makefile.am (nat_headers): Added Cloneable.h,
5753 CloneNotSupportedException.h.
5754 * java/lang/Object.h: Rewrote.
5755 * java/lang/natObject.cc: Rewrote from scratch.
5756 * java/lang/Object.java: Rewrote from scratch.
5758 * java/io/natFile.cc: Conditionally include <dirent.h>.
5759 (list): If no <dirent.h>, always return NULL.
5760 * configure: Rebuilt.
5761 * configure.in: Check for dirent.h.
5763 * prims.cc (lookupArray): Don't use sprintf.
5765 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5772 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5773 name conflict with method.
5775 * include/javaprims.h (java::util): Added HashtableEntry.
5777 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5779 * java/util/Hashtable.java: Rewritten.
5781 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5783 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5787 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5790 * posix-threads.cc (_Jv_CondWait): Now returns int.
5791 * include/javaprims.h (java::lang): Added
5792 IllegalMonitorStateException.
5793 * Makefile.in: Rebuilt.
5794 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5795 * include/no-threads.h (_Jv_CondDestroy): Removed.
5796 (_Jv_MutexDestroy): Removed.
5797 (_Jv_CondWait): Now returns int.
5798 (_Jv_CondNotify): Likewise. Added mutex argument.
5799 (_Jv_CondNotifyAll): Likewise.
5800 (_Jv_MutexLock): Always succeed.
5801 (_Jv_MutexUnlock): Likewise.
5802 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5803 (_Jv_HaveMutexDestroy): Define.
5804 (_Jv_CondNotify): Now returns int. Added mutex argument.
5805 (_Jv_CondNotifyAll): Likewise.
5806 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5807 (_Jv_MutexDestroy): Removed.
5808 (_Jv_CondWait): Now returns int.
5809 (_Jv_CondNotify): Likewise. Added mutex argument.
5810 (_Jv_CondNotifyAll): Likewise.
5811 * java/lang/natObject.cc (finalize_sync_info): New function.
5812 (init_mutex): Initialize `init' and register finalizer if
5815 (init_mutex): Use it.
5817 (notifyAll): Use it.
5819 (notify): Throw IllegalMonitorStateException on failure.
5820 (notifyAll): Likewise.
5821 (wait): Likewise. Also, throw InterruptedException if
5823 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5824 InterruptedException.h, IllegalArgumentException.h.
5825 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5827 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5828 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5829 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5830 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5831 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5832 * quick-threads.cc: Renamed all `JvPriv' functions.
5833 * prims.cc: Renamed all `JvPriv' functions.
5834 * posix-threads.cc: Renamed all `JvPriv' functions.
5835 * nogc.cc: Renamed all `JvPriv' functions.
5836 * no-threads.cc: Renamed all `JvPriv' functions.
5837 * boehm.cc: Renamed all `JvPriv' functions.
5838 * include/quick-threads.h: Renamed all `JvPriv' functions.
5839 * include/posix-threads.h: Renamed all `JvPriv' functions.
5840 * include/no-threads.h: Renamed all `JvPriv' functions.
5841 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5843 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5845 (JvPrivCondNotify): Do nothing.
5846 (JvPrivCondNotifyAll): Do nothing.
5848 * prims.cc (processClass): Handle case where state is
5851 * java/lang/natFirstThread.cc: Include <stdlib.h>
5853 * configure: Rebuilt.
5854 * configure.in: Fixed sense of --enable-libjava-debug.
5856 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5857 it can be used afterward by the assertion.
5859 * configure: Rebuilt.
5860 * configure.in: When cross-compiling, assume alloca.
5862 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5863 __builtin_alloca (autoconf docs are wrong here).
5865 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5867 (available): Use `FD_ZERO' (typo fix).
5869 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5871 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5872 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5874 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5875 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5878 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5880 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5882 * java/lang/natDouble.cc: Declare alloca safely.
5884 * configure, include/config.h.in: Rebuilt.
5885 * configure.in: Add alloca check.
5887 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5889 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5890 condition while calling notify.
5891 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5892 (interrupt): Hold mutex for interrupt condition while calling
5895 * java/lang/natString.cc (init): Allocate and try to read `count'
5896 characters, not `count - offset' characters.
5898 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5899 Correctly compute `count'.
5901 * java/lang/Boolean.java (getBoolean): Return false if property
5904 * java/lang/System.java (setProperties): Set prop_init.
5906 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5908 * java/io/PrintStream.java (println): Use line.separator, not
5910 * java/lang/System.java (out, err): Make both autoflush streams.
5911 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5913 * include/config.h.in: Rebuilt.
5914 * acconfig.h (HAVE_MEMCPY): Removed.
5915 * configure: Rebuilt.
5916 * configure.in: Never define HAVE_MEMCPY.
5918 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5920 (_Jv_AllocString): Use JvAllocObject again.
5921 * java/lang/Class.h (thread): New field.
5922 (_Jv_AllocString): No longer a friend.
5923 * prims.cc (processClass): Removed dead code. Changed to more
5924 closely follow the Java Language Specification.
5925 (processClass): Return early if already at the right state.
5927 * prims.cc (JvNewStringUTF): Removed.
5928 * include/cni.h (JvNewStringUTF): New function.
5929 (_Jv_NewStringUTF): Declare as `extern "C"'.
5930 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5932 * java/lang/natDouble.cc: Added copyright info and header
5933 comment. Include <stdlib.h>.
5934 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5935 bytes as are chars in string.
5937 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5939 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5943 * java/lang/System.java (init_properties): Now native.
5944 * java/lang/natSystem.cc (init_properties): New method.
5945 Include java/util/Properties.h.
5947 * Makefile.in: Rebuilt.
5948 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5949 OutputStreamWriter.h, ByteArrayInputStream.h,
5950 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5951 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5952 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5953 Properties.h, Hashtable.h, Dictionary.h.
5956 * include/javaprims.h (java::io): Added Reader, Writer,
5957 InputStreamReader, OutputStreamWriter,
5958 UnsupportedEncodingException, ByteArrayInputStream,
5959 ByteArrayOutputStream, EOFException, SyncFailedException,
5960 PushbackInputStream.
5961 (java::lang): Added Cloneable.
5962 (java::util): Added NoSuchElementException, VectorEnumeration,
5963 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5965 * java/io/PipedReader.java: New file.
5967 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5969 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5972 * java/io/io-defs.h: Removed.
5974 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5975 (FileInputStream): Use new constructor. Can throw IOException.
5977 * java/lang/System.java (getProperty): Don't throw
5978 NullPointerException.
5980 * java/io/RandomAccessFile.java: Rewrote from scratch.
5982 * java/io/natFileDescriptor.cc: Include EOFException.h.
5984 (length): New method.
5985 (getFilePointer): New method.
5987 (available): New method.
5988 * java/io/FileDescriptor.java (SET, CUR): New constants.
5989 (seek, length, getFilePointer, read, available): New decls.
5991 * java/io/PipedWriter.java: New file.
5992 * java/io/StringWriter.java: New file.
5993 * java/io/CharArrayWriter.java: New file.
5994 * java/io/CharConversionException.java: New file.
5995 * java/io/BufferedWriter.java: New file.
5996 * java/io/FilterWriter.java: New file.
5997 * java/io/FileWriter.java: New file.
5999 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6000 OutputStreamWriter.h, NullPointerException.h,
6001 ByteArrayInputStream.h, InputStreamReader.h.
6002 (getBytes): New method.
6003 (init): Throw NullPointerException.
6004 (init): New function.
6005 * java/lang/String.java (getBytes): Added missing decl.
6006 (getBytes): New method.
6007 (String): Added byte[]-based constructors.
6008 (copyValueOf): Wrote.
6009 (init): Declare variant which takes byte array and encoding.
6010 Import java.io.UnsupportedEncodingException.
6012 * java/io/File.java: Rewrote from scratch.
6013 * java/io/natFileDescriptor.cc: Rewrote from scratch.
6014 * java/io/FileDescriptor.java: Rewrote from scratch.
6015 * java/io/FilenameFilter.java: Rewrote from scratch.
6017 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6019 * java/io/SyncFailedException.java: New file.
6020 * java/io/UTFDataFormatException.java: Rewrote from scratch.
6021 * java/io/InterruptedIOException.java: Rewrote from scratch.
6022 * java/io/FileNotFoundException.java: Rewrote from scratch.
6023 * java/io/EOFException.java: Rewrote from scratch.
6024 * java/io/IOException.java: Rewrote from scratch.
6025 * java/io/PrintStream.java: Rewrote from scratch.
6026 * java/io/DataOutputStream.java: Rewrote from scratch.
6027 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6028 * java/io/FilterOutputStream.java: Rewrote from scratch.
6029 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6030 * java/io/PipedOutputStream.java: Rewrote from scratch.
6031 * java/io/FileOutputStream.java: Rewrote from scratch.
6032 * java/io/OutputStream.java: Rewrote from scratch.
6033 * java/io/DataOutput.java: Rewrote from scratch.
6035 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6037 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6039 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6041 * configure.in: Add --enable-libjava-debug
6043 * Makefile.am (nat_headers): Add java/lang/Float.h and
6046 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6048 * Makefile.in, configure, include/config.h.in: Rebuilt.
6050 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6052 * java/lang/Float.java: Rewritten
6053 * java/lang/Double.java: Rewritten
6054 * java/lang/natFloat.cc: toString() added.
6055 * java/lang/natDouble.cc: toString() added.
6056 * java/lang/natDouble.cc: doubleValueOf() added.
6057 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6058 java/lang/strtod.c: added.
6059 * ieeefp.h: __sparc added.
6060 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6062 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6064 * include/javaprims.h (java::lang): Added
6065 CloneNotSupportedException.
6067 * java/lang/Object.java (clone): No longer native. Implemented.
6068 * java/lang/natObject.cc (clone): Removed.
6070 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6072 * prims.cc: Don't make definitions `extern "C"'.
6073 (_Jv_RegisterClass): Renamed from registerClass.
6074 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6075 (_Jv_NewArray): Likewise.
6076 (_Jv_NewMultiArray): Likewise.
6077 (_Jv_CheckCast): Likewise.
6078 (_Jv_LookupInterfaceMethod): Likewise.
6079 (_Jv_CheckArrayStore): Likewise.
6080 (_Jv_RegisterClass): Likewise.
6082 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6083 * configure: Rebuilt.
6084 * configure.in: Don't check for fmod; it is provided by the fdlibm
6086 * prims.cc (fmod): Removed.
6088 * java/lang/natString.cc (charAt): Use _Jv_uint.
6089 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6090 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6091 (equalUtf8Consts): Likewise.
6092 (internalAddClass): Use _Jv_uint.
6093 (processClass): Likewise.
6094 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6095 (_Jv_uint): Renamed from uint32.
6096 (struct _Jv_Utf8Const): Changed members to use new type names.
6098 * configure: Rebuilt.
6099 * configure.in: Don't check for memcpy. Require memmove and a way
6101 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6103 (currentTimeMillis): Don't use #error.
6105 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6107 * java/lang/Math.java: static member random renamed to random_ to
6108 avoid conflict with member function of the same name.
6109 * include/javaprims.h: java.util.Random added.
6111 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6113 * include/java-chartables.h: Regenerated.
6114 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6117 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6119 * java/lang/Math.java: Rewritten.
6120 * java/lang/natMath.cc: New file.
6121 * Files added from fdlibm:
6122 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6123 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6124 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6125 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6126 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6127 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6128 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6129 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6130 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6131 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6132 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6133 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6134 java/lang/k_cos.c, java/lang/sf_ceil.c,
6135 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6136 java/lang/ieeefp.h, java/lang/fdlibm.h
6137 * Makefile.am: rules added for compiling C files from fdlibm.
6139 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6141 * chartables.pl: Minor documentation fixes.
6143 * configure: Rebuilt.
6144 * configure.in: Fixed --help output for --enable-fast-character.
6146 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6148 * configure: Rebuilt.
6149 * configure.in: Recognize --enable-fast-character.
6150 * acconfig.h (COMPACT_CHARACTER): New define.
6151 * include/config.h.in: Rebuilt.
6152 * include/java-chartables.h: New file.
6153 * Makefile.in: Rebuilt.
6154 * Makefile.am (nat_files): Added natCharacter.o.
6155 * java/lang/natCharacter.cc: New file.
6156 * chartables.pl (set_attribute): New function.
6157 (@attributes, @second_attributes): New globals.
6158 ($ROMAN_START, $ROMAN_END): Likewise.
6159 (process_char): Call set_attribute when required.
6160 (print_char): Just print hex value.
6161 (print_block): Generate C++ syntax.
6162 (print_numerics): Likewise.
6163 (print_single_map): Likewise.
6164 (print_all_block): Likewise.
6165 (print_case_table): Likewise.
6166 (print_fast_tables): New function.
6167 Generate C++ code suitable for a header file.
6168 * java/lang/Character.java (table_search): Removed.
6169 (digit_value): Now native.
6170 (getNumericValue): Likewise.
6171 (getType): Likewise.
6172 Removed all automatically-generated tables.
6173 (Tamil_Digit_One): Removed.
6174 (isSpaceChar): Now native.
6175 (isTitleCase): Likewise.
6176 (isLowerCase): Likewise.
6177 (isUpperCase): Likewise.
6178 (toLowerCase): Likewise.
6179 (toTitleCase): Likewise.
6180 (toUpperCase): Likewise.
6181 (isDefined): Fixed sense of test.
6183 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6185 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6187 (regionMatches): Likewise.
6189 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6191 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6193 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6195 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6198 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6201 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6203 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6205 * prims.cc (instanceof_class): Removed.
6206 (instanceof_array): Likewise.
6207 (instanceof): Likewise.
6208 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6209 (_Jv_CheckCast): Likewise.
6210 * java/lang/natClass.cc (isAssignableFrom): New method.
6211 * java/lang/Class.java (isAssignableFrom): Now native.
6213 * include/cni.h (JvThrow): Use `extern inline'.
6214 (JvAllocObject): Likewise.
6215 (JvInitClass): Likewise.
6217 * java/lang/natSystem.cc (arraycopy): Only check class of source
6220 * prims.cc (_Jv_CheckArrayStore): Wrote.
6221 (_Jv_MonitorEnter): Prefer `JvThrow'.
6222 Include ArrayStoreException.h.
6223 (_Jv_CheckCast): Indentation cleanup.
6225 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6227 * chartables.pl: New file.
6228 * java/lang/Character.java: Rewrote from scratch.
6230 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6232 * java/lang/ArithmeticException.java,
6233 java/lang/ArrayIndexOutOfBoundsException.java,
6234 java/lang/ArrayStoreException.java,
6235 java/lang/ClassCastException.java,
6236 java/lang/ClassNotFoundException.java,
6237 java/lang/CloneNotSupportedException.java,
6238 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6239 java/lang/IllegalArgumentException.java,
6240 java/lang/IllegalMonitorStateException.java,
6241 java/lang/IllegalThreadStateException.java,
6242 java/lang/IndexOutOfBoundsException.java,
6243 java/lang/InstantiationException.java,
6244 java/lang/InterruptedException.java,
6245 java/lang/NegativeArraySizeException.java,
6246 java/lang/NoSuchMethodException.java,
6247 java/lang/NullPointerException.java,
6248 java/lang/NumberFormatException.java,
6249 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6250 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6252 * java/lang/IllegalStateException.java,
6253 java/lang/NoSuchFieldException.java,
6254 java/lang/UnsupportedOperationException.java: Created.
6256 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6258 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6259 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6261 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6263 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6265 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6267 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6269 * Makefile.in: Rebuilt.
6271 * include/javaprims.h (java::lang): Added
6272 StringIndexOutOfBoundsException.
6274 * java/lang/String.java: Added header comment and FIXME comment for
6275 missing constructors/methods.
6276 (endsWith): Adjusted offset into string to look at just the last chars.
6277 Commented out undocumented method.
6279 * java/lang/natString.cc: Added includes for
6280 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6281 (String::init): Throw StringIndexOutOfBoundsException.
6282 (String::charAt): Throw StringIndexOutOfBoundsException.
6283 (String::substring): Throw StringIndexOutOfBoundsException.
6284 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6285 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6286 (String::compareTo): Return difference/offset between chars/strings.
6288 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6290 * java/lang/Boolean.java (TYPE): Added comment.
6292 * java/lang/Byte.java (decode): Added - commented out until dependent
6293 code for Integer is written.
6294 (compareTo): JDK 1.2 methods written.
6295 (hashCode): Added comment to note that values have been verified.
6297 * java/lang/Short.java (decode): Added - commented out until dependent
6298 code for Integer is written.
6299 (compareTo): JDK 1.2 methods written.
6300 (hashCode): Added comment to note that values have been verified.
6302 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6304 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6306 * include/javaprims.h (java::lang): Added VirtualMachineError,
6308 * Makefile.in: Rebuilt.
6309 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6310 VirtualMachineError.h.
6311 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6312 (lookupArray): Likewise.
6313 (makeUtf8Const): Likewise.
6314 (_Jv_AllocObject): Likewise.
6315 (_Jv_NewObjectArray): Likewise.
6316 Include OutOfMemoryError.h.
6318 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6319 to use JvNewStringLatin1.
6321 * java/io/io-defs.h: Include java/lang/IOException.h.
6322 * Makefile.in: Rebuilt.
6323 * Makefile.am (nat_headers): Added
6324 ArrayIndexOutOfBoundsException.h,
6325 ClassFormatError.h,ClassNotFoundException.h,
6326 ClassCircularityError.h, ClassCastException.h,
6327 IncompatibleClassChangeError.h, AbstractMethodError.h,
6328 IllegalAccessError.h, LinkageError.h, Error.h,
6329 NegativeArraySizeException.h, IOException.h.
6330 * include/cni.h (SignalError): Removed declaration.
6331 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6332 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6333 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6334 (newInstance): Likewise.
6335 (forName): Likewise.
6336 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6338 (read): Use JvThrow, not SignalError.
6343 (open_read): Likewise.
6344 (open_write): Likewise.
6347 (newstr): New function.
6348 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6350 (lastModifiedUnchecked): Likewise.
6351 (lengthUnchecked): Likewise.
6352 * include/javaprims.h (sorry): Removed declaration.
6353 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6354 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6355 ClassCastException, IncompatibleClassChangeError,
6356 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6357 * prims.cc (instanceof_array): Use JvFail, not sorry.
6359 Include ArrayIndexOutOfBoundsException.h,
6360 ClassFormatError.h,ClassNotFoundException.h,
6361 ClassCircularityError.h, ClassCastException.h,
6362 IncompatibleClassChangeError.h, AbstractMethodError.h,
6363 IllegalAccessError.h, NegativeArraySizeException.h.
6364 (_Jv_ThrowBadArrayIndex): Implemented.
6365 (JvNewStringUTF): Use JvFail, not sorry.
6366 (_Jv_FindClass): Likewise.
6367 (_Jv_NewArray): Likewise.
6368 (throwException): Removed.
6369 (getClass): Use JvThrow.
6370 (processClass): Likewise.
6371 (_Jv_NewObjectArray): Likewise.
6372 (_Jv_NewMultiArray): Likewise.
6373 (_Jv_CheckCast): Likewise.
6374 (_Jv_LookupInterfaceMethod): Likewise.
6375 (SignalError): Removed.
6376 (getClass): Use _Jv_NewStringUtf8Const to create String.
6378 * java/lang/natSystem.cc (arraycopy): Throw
6379 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6381 * Makefile.in: Rebuilt.
6382 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6384 * include/java-array.h: Mention gcjh, not gjavah.
6386 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6387 (canReadUnchecked): Likewise.
6388 (canWriteUnchecked): Likewise.
6389 (isFileUnchecked): Likewise.
6390 * java/io/natFileDescriptor.cc: Don't include cni.h.
6392 * java/lang/Thread.java (run__): Declare.
6393 * java/lang/natThread.cc (run__): New method, to avoid compiler
6395 (start): Use run__, not run_.
6397 * java/io/io-defs.h: Include cni.h and jvm.h.
6399 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6401 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6402 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6403 to natString.cc (with suitable renaming, inlines etc).
6404 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6405 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6406 * java/lang/String.h: Removed - now generated using gjavah.
6407 * java/lang/String.java: Re-written from scratch. Many native methods.
6408 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6409 * java/lang/natString.cc: Many functions re-written for "compact
6410 strings" representation, or native java.lang.String methods added.
6411 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6412 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6413 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6414 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6415 * include/cni.h: Add inline method.
6416 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6417 * include/javaprims.h: Moved some stuff frm String.h.
6418 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6419 * Makefile.am (nat_header): Added Character.h and String.h.
6420 (String.h): Add new rule.
6422 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6424 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6426 * posix-threads.cc: Include cni.h, jvm.h.
6427 * quick-threads.cc: Include cni.h, jvm.h.
6428 * nogc.cc: Include cni.h, not javaprims.h.
6429 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6430 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6431 include java-assert.h.
6432 * java/lang/natSystem.cc: Include cni.h. Don't include
6434 * java/lang/natRuntime.cc: Include cni.h. Don't include
6436 * prims.cc: Rearranged #include ordering. Don't include
6437 java-array.h or java-assert.h.
6438 * boehm.cc: Include config.h, cni.h.
6439 * exception.cc: Include config.h, cni.h.
6440 * include/jvm.h: Include java-assert.h.
6441 * include/cni.h: Include java/lang/Object.h. Don't include
6442 java-threads.h or java-array.h.
6444 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6446 * java/lang/Boolean.java: Rewritten.
6448 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6450 * java/lang/natFirstThread.cc (main_func): New typedef.
6451 (run): Use main_func, not JvPrivThreadStartFunc.
6452 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6454 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6456 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6459 Can't throw Java exceptions with C++ `throw':
6460 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6461 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6462 (setPriority): Likewise.
6466 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6467 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6469 Can't catch Java exceptions from C++:
6470 * java/lang/natThread.cc (finish_): New method.
6472 * java/lang/Thread.java (run_): Rewrote in Java.
6473 (finish_): New native method.
6475 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6477 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6479 * include/javaprims.h (java::io): Added Serializable.
6481 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6483 * java/util/EmptyStackException.java,
6484 java/util/NoSuchElementException.java: Rewritten.
6486 * java/util/ConcurrentModificationException.java,
6487 java/util/MissingResourceException.java,
6488 java/util/TooManyListenersException.java: Created.
6490 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6492 * include/cni.h (JvThrow): New function.
6493 * include/javaprims.h (_Jv_Throw): Declare.
6495 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6497 * java/util/Observable.java: Rewritten.
6499 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6501 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6502 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6503 Include NullPointerException.h.
6505 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6507 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6508 assignability checks. Don't bother using memcpy.
6510 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6512 * include/quick-threads.h (JvPrivThreadWait): New function.
6513 * include/no-threads.h (JvPrivThreadWait): New function.
6514 * include/posix-threads.h (JvPrivThreadWait): New function.
6515 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6517 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6519 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6520 offsets by size of type that is being copied.
6522 * java/lang/natThread.cc (start): Don't pass `object' argument to
6524 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6525 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6527 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6528 always pass thread as object.
6529 * include/quick-threads.h, include/posix-threads.h,
6530 include/no-threads.h (JvPrivThreadStart): Removed `object'
6533 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6535 * java/util/Dictionary.java: Rewritten.
6537 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6539 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6540 (JvPrivThreadDestroy): Likewise.
6542 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6544 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6546 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6548 * java/lang/natSystem.cc: Rewrote from scratch.
6549 * java/lang/System.java: Rewrote from scratch.
6550 * java/lang/Class.h (Class): Declare isAssignableFrom.
6551 * include/javaprims.h (java::lang): Added ArrayStoreException,
6552 IndexOutOfBoundsException.
6553 * Makefile.in: Rebuilt.
6554 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6555 IndexOutOfBoundsException.h.
6556 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6557 * include/jvm.h (_Jv_HashCode): New function.
6559 * java/lang/natThread.cc (suspend): Call checkAccess.
6561 * java/lang/Thread.java (setDaemon): Call checkAccess.
6563 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6565 * java/lang/Runtime.java: Rewrote from scratch.
6566 * java/lang/natRuntime.cc: Rewrote from scratch.
6568 * nogc.cc (JvPrivGCTotalMemory): New function.
6569 (JvPrivGCFreeMemory): Likewise.
6570 (total): New global.
6571 (JvPrivAllocObj): Increment total.
6572 (JvPrivAllocArray): Likewise.
6573 (JvPrivAllocBytes): Likewise.
6574 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6575 * boehm.cc (JvPrivGCTotalMemory): New function.
6576 (sum_blocks): Likewise.
6577 (JvPrivGCFreeMemory): Likewise.
6579 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6581 * include/javaprims.h (java::lang): Added FirstThread.
6582 * java/lang/natFirstThread.cc: New file.
6583 * java/lang/FirstThread.java: New file.
6584 * prims.cc (main_signature): Removed.
6585 (main_name): Removed.
6586 #include FirstThread.h.
6587 * Makefile.in: Rebuilt.
6588 * Makefile.am (TFRIEND): Removed.
6589 (java/lang/Thread.h): Likewise.
6590 (FTFRIEND): New macro.
6591 (java/lang/FirstThread.h): New target.
6592 (nat_files): Added natFirstThread.o.
6593 (nat_headers): Added FirstThread.h.
6594 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6595 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6597 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6601 * java/lang/natThread.cc (start): Synchronize the thread.
6602 (stop): Synchronize the thread.
6604 * java/lang/ThreadDeath.java: Rewrote from scratch.
6606 * Makefile.in: Rebuilt.
6607 * Makefile.am (TGFRIEND): New macro.
6608 (java/lang/ThreadGroup.h): New target.
6609 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6611 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6613 * nogc.cc: Include config.h.
6615 * java/lang/ThreadGroup.java: Rewrote from scratch.
6617 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6619 * java/lang/Thread.java (checkAccess): Only call in to security
6620 manager if it exists.
6621 (Thread): Don't check access when creating the first thread. Add
6622 this thread to the appropriate ThreadGroup.
6624 * java/lang/natThread.cc (run_): Call uncaughtException method on
6627 * java/lang/Runnable.java: Rewrote from scratch.
6628 * java/lang/Thread.java: Updated copyright comment to correct
6631 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6633 * java/util/Random.java: Rewritten.
6635 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6637 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6638 trailing 0 in array[].
6640 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6642 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6643 and RUNTESTFLAGS from AM_MAKEFLAGS.
6644 (SUBDIRS): Conditionally include testsuite.
6645 * Makefile.in: Rebuilt.
6647 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6649 * java/lang/Object.h: Include java-assert.h.
6651 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6653 * Makefile.am: Add testsuite directory.
6654 * configure.in: Build testsuite/Makefile.
6655 * Makefile.in, configure: Rebuilt.
6657 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6659 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6660 * include/jvm.h (_Jv_StartFirstThread): Declare.
6662 * include/javaprims.h (java::lang): Added Exception,
6665 * Makefile.in: Rebuilt.
6666 * Makefile.am (nat_headers): Added NullPointerException.h,
6667 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6668 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6669 (java/lang/Thread.h): New target.
6670 (TFRIEND): New macro
6672 * include/java-assert.h (JvFail): Use 0 and not NULL.
6674 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6675 instead of assuming we are a friend of Thread.
6676 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6677 instead of assuming we are a friend of Thread.
6679 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6681 * java/lang/natThread.cc: Rewrote from scratch.
6682 * java/lang/Thread.java: Rewrote from scratch.
6683 * prims.cc (JvRunMain): Use new Thread constructor.
6684 * include/javaprims.h (java::lang): Added InterruptedException.
6685 * Makefile.in: Rebuilt.
6686 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6687 * java/lang/Thread.h: Removed.
6688 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6689 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6691 * posix-threads.cc (JvPrivThreadJoin): Removed.
6692 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6693 (really_start): Don't notify join_cond.
6694 (JvPrivThreadStart): Added `data' argument.
6695 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6696 (JvPrivThreadJoin): Likewise.
6697 Use JvFail instead of sorry.
6698 (JvPrivThreadSuspend): Removed.
6699 (JvPrivThreadResume): Removed.
6700 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6701 (JvPrivThreadJoin): Likewise.
6702 (JvPrivThreadSuspend): Use JvFail.
6703 (JvPrivThreadResume): Likewise.
6704 (JvPrivThreadSuspend): Removed.
6705 (JvPrivThreadResume): Likewise.
6706 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6707 (JvPrivThread_t): Removed join_mutex, join_cond.
6708 Use JvFail instead of sorry.
6709 (JvPrivThreadSuspend): Removed.
6710 (JvPrivThreadResume): Likewise.
6712 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6714 * java/util/Observer.java: Rewritten
6715 * java/util/Enumeration.java: Rewritten
6717 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6719 * java/util/StringTokenizer.java: Rewritten
6720 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6721 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6722 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6724 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6726 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6729 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6730 Include java-assert.h.
6731 * include/java-assert.h: New file.
6732 * prims.cc (_Jv_Abort): New function.
6733 Include java-assert.h, not assert.h.
6734 (_Jv_MonitorExit): Use JvAssert.
6735 (resolveConstants): Likewise.
6736 (processClass): Likewise.
6737 (JvRunMain): Assert that method is found.
6739 * configure: Rebuilt.
6740 * configure.in: Check for test subdir.
6741 * Makefile.in: Rebuilt.
6742 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6744 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6745 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6747 * prims.cc (resolveConstants): Removed unused variables.
6748 (processClass): Likewise.
6750 * include/quick-threads.h (JvPrivThreadCurrent): Use
6752 * quick-threads.cc (destroy_data): New function.
6753 (JvPrivInitThreads): Create key.
6754 (JvPrivThreadKey): New global.
6755 (JvPrivThreadStart): Use coop_setspecific.
6757 * include/quick-threads.h, include/posix-threads.h,
6758 include/no-threads.h, no-threads.cc, quick-threads.cc,
6759 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6761 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6763 * include/no-threads.h (JvPrivThreadInitData): Don't set
6766 * include/quick-threads.h (JvPrivCondWait): coop function now
6768 (JvPrivThreadJoin): Likewise.
6770 * java/lang/Thread.h (Thread): Updated declaration of
6772 * include/quick-threads.h, include/posix-threads.h: Updated
6773 declaration of JvPrivThreadStart.
6774 * include/no-threads.h (JvPrivThreadStart): Changed definition
6776 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6777 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6778 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6780 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6782 * quick-threads.cc (qthrow): New function.
6783 (JvPrivInitThreads): New function.
6784 (started): New global.
6785 (JvPrivThreadStart): Call coop_start if required.
6786 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6787 (JvPrivThreadDestroy): Likewise.
6788 (JvPrivInitThreads): Removed.
6789 * include/posix-threads.h (JvPrivThreadCancel): Added error
6791 * java/lang/natThread.cc (stop_): Pass exception to
6794 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6796 * include/javaprims.h (java::lang): Added
6797 IllegalArgumentException, IllegalThreadStateException, Math,
6798 NullPointerException, ThreadDeath.
6799 (java::util): Added Enumeration.
6801 * Makefile.in: Rebuilt.
6802 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6804 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6806 (threadsv): Renamed from threads to avoid clash in C++ header.
6807 (groupsv): Likewise.
6808 * include/no-threads.h (JvPrivThreadStart): Removed.
6809 * no-threads.cc (JvPrivThreadStart): New function.
6810 * java/lang/Thread.java (Thread): New constructor for internal use.
6811 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6812 (Thread): Declare constructor.
6813 * prims.cc (JvRunMain): Create the initial Thread and
6815 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6816 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6817 Removed `daemon' argument.
6819 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6820 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6822 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6824 * Makefile.in: Rebuilt.
6825 * Makefile.am (INCLUDES): Include THREADINCS.
6827 * configure: Rebuilt.
6828 * configure.in: Recognize `qt' as a threads package.
6830 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6832 * java/util/Stack.java (pop): Null out topmost node for robustness.
6834 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6836 * java/util/Stack.java: Rewritten.
6837 * java/util/Vector.java (isEmpty): Simplified expression.
6839 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6841 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6842 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6844 * include/java-array.h (JvNewObjectArray): Created inline to
6847 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6850 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6852 * java/util/Vector.java: Rewritten.
6853 * java/io/Serializable.java: Created.
6855 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6857 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6858 Infinity is 1/0, not 1/1.
6860 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6862 * configure: Rebuilt.
6863 * configure.in: Removed duplicate AC_ARG_WITH.
6865 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6867 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6869 (_Jv_InitClass): Renamed from soft_initialise_class.
6870 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6871 (_Jv_CheckCast): Renamed from soft_checkcast.
6872 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6873 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6874 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6875 * include/cni.h (JvInitClass): New function.
6876 (_Jv_InitClass): Renamed from soft_initialise_class.
6878 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6880 * configure: Rebuilt.
6881 * configure.in (CXX): Don't set.
6882 * Makefile.in: Rebuilt.
6883 * Makefile.am (AM_CXXFLAGS): New macro.
6885 * Makefile.in: Rebuilt.
6886 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6887 nogc.o): New target.
6889 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6891 (mark_array): Likewise.
6893 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6895 * java/lang/Class.h (JvMethod): Removed some unused fields.
6896 (JvField.info): Removed unused idx union variant.
6898 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6900 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6903 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6905 * configure.in, configure (CXX): Add -fvtable-thunks.
6907 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6909 * java/lang/Object.java (finalize): Move first.
6910 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6911 (Object): Re-arrange order to match Object.java.
6913 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6915 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6916 * java/lang/natString.cc (hashChars): Likewise.
6918 * prims.cc (RuntimeClass): New macro.
6919 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6921 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6923 * Makefile.in: Rebuilt.
6924 * Makefile.am (AM_MAKEFLAGS): New macro.
6926 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6928 * nogc.cc: Include <javaprims.h>.
6930 * Makefile.in: Rebuilt.
6931 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6933 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6935 * exception.cc (terminate): Removed.
6936 (unexpected): Removed.
6938 * configure: Rebuilt.
6939 * configure.in: Handle case where target subdir is ".".
6941 * configure: Rebuilt.
6942 * configure.in: Compute COMPPATH based on --with-target-subdir
6943 option. Added --with-target-subdir and --with-cross-host. Use
6944 --with-cross-host to determine when a cross compiler is in use.
6946 * Makefile.in: Rebuilt.
6947 * Makefile.am (GJAVAH): Include COMPPATH.
6948 * configure: Rebuilt.
6949 * configure.in: Subst COMPPATH.
6951 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6953 * prims.cc (lockMutex): Removed.
6954 (unlockMutex): Likewise.
6955 (processClass): Lock the class using a JvSynchronize object.
6957 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6959 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6960 (gc_free_fixed): Removed.
6961 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6962 freeing old value of strhash.
6964 * exception.cc (_Jv_type_matcher): Cast first argument to
6967 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6969 * include/java-array.h (jstringArray): New type.
6970 * java/lang/natSystem.cc (setProperty): Removed.
6971 (initProperties): Directly call JvNewStringLatin1 for arguments.
6972 * java/util/natDate.cc: Include java/util/Date.h, not
6975 * java/io/FileDescriptor.java (available): No longer static.
6976 * java/lang/natDouble.cc (Double): Removed class definition.
6977 * include/javaprims.h (java::lang::Number): Declare.
6978 (java::lang::NumberFormatException): Likewise.
6979 (java::io::FilenameFilter): Likewise.
6980 (java::lang::Character): Likewise.
6981 (java::lang::Error): Likewise.
6982 (java::lang::SecurityManager): Likewise.
6983 (java::util::Vector): Likewise.
6984 (java::io::FileNotFoundException): Likewise.
6985 (java::io::IOException): Likewise.
6986 (java::lang::NativeLang): Likewise.
6987 (java::lang::UnsatisfiedLinkError): Likewise.
6988 (java::util::StringTokenizer): Likewise.
6989 (java::io::InputStream, java::io::OutputStream): Likewise.
6990 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6991 (java::util::Hashtable): Likewise.
6992 * Makefile.in: Rebuilt.
6993 * Makefile.am (nat_headers): Added java/lang/Double.h,
6994 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6995 (MOSTLYCLEANFILES): Added nat_headers.
6996 * include/jvm.h: Moved many defines, declarations, and functions
6997 to java/lang/Class.h.
6998 (struct JvSyncInfo): Moved to java/lang/Object.h.
6999 (UTF8_GET): Moved to java/lang/String.h.
7001 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
7003 * java/io/io-defs.h: Don't include java-io.h.
7004 * include/java-io.h: Removed.
7005 * include/javaprims.h: Include java::io.
7007 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
7009 * include/java-io.h (File): Removed
7010 (FileDescriptor): Likewise.
7012 * java/io/io-defs.h: Include java/io/File.h and
7013 java/io/FileDescriptor.h.
7015 * Makefile.in: Rebuilt.
7016 * Makefile.am (GJAVAH): New macro.
7017 (.class.h): New rule.
7018 (SUFFIXES): Added .h.
7019 (nat_headers): New macro.
7020 ($(nat_headers)): New target.
7021 (BUILT_SOURCES): Added nat_headers.
7023 * include/java-util.h: Removed.
7025 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7027 * include/java-io.h: Changed to avoid java-lang.h.
7028 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7030 * java/lang/natSystem.cc: Include java/lang/System.h, not
7032 * java/lang/natString.cc: Include java/lang/String.h, not
7034 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7036 * java/lang/natClass.cc: Include java/lang/Class.h, not
7038 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7040 * java/lang/natObject.cc: Include java/lang/Object.h, not
7042 * exception.cc: Don't include java-lang.h.
7043 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7044 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7045 * nogc.cc: Don't include java-lang.h.
7046 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7047 * prims.cc (processClass): Don't use `init_type'; just cast to
7049 Include java/lang/Class.h and jvm.h, not java-lang.h.
7050 (JvAllocObject): Wrote single-argument version.
7051 (PrimClass): Inherit from Class.
7052 (initPrimClass): Removed.
7053 * include/java-lang.h: Removed.
7054 * include/jvm.h: Declare struct _dispatchTable.
7055 * include/cni.h: Don't declare _Jv_MonitorEnter,
7056 _Jv_MonitorExit, struct _dispatchTable.
7057 * include/javaprims.h: Moved all typedefs here, from cni.h.
7058 * java/lang/Class.h: New file.
7059 * include/java-array.h: New file.
7060 * java/lang/Object.h: New file.
7062 * prims.cc (classFromSig): Now static.
7064 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7066 * include/cni.h: Don't mention soft_new.
7067 * include/java-lang.h (Object): Don't mention soft_new. Mention
7068 _Jv_NewPrimArray, not newPrimArray.
7069 * prims.cc (soft_new): Removed.
7070 (_Jv_NewArray): Renamed from soft_newarray.
7071 (soft_anewarray): Use JvNewObjectArray.
7072 (newArray): Likewise.
7073 (newRefArray): Removed.
7074 (_Jv_NewPrimArray): Renamed from newPrimArray.
7075 (equalUtf8Consts): Now static.
7076 (soft_instanceof): Removed.
7077 * java/lang/natDouble.cc (doubleToString): Now static.
7079 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7080 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7083 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7085 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7087 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7089 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7090 (JvPrivMutexUnlock): Likewise.
7091 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7092 Return value now jint.
7093 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7096 * Makefile.in: Rebuilt.
7097 * Makefile.am: Don't allow `jV' names.
7098 (maintainer-check): Depend on libjava.a.
7099 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7101 * Makefile.in: Rebuilt.
7102 * Makefile.am (NM): New macro.
7103 (maintainer-check): New target.
7105 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7107 * configure: Rebuilt.
7108 * configure.in: Use --enable-threads, not --enable-gc. Fix
7109 documentation for --enable-threads. Changed option to work like
7110 identical option in gcc/configure.
7112 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7114 * boehm.cc (mark_array): Use JvGetArrayLength.
7116 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7118 * exception.cc: New file (mostly written by Andrew MacLeod),
7119 exception handling support.
7120 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7121 Remove -fexceptions - it is now the default.
7123 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7124 (JvAllocObject): Renamed to _Jv_AllocObject.
7125 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7126 (loadClass): Renamed to _Jv_FindClass.
7127 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7128 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7129 * include/java-lang.h (JvGetArrayLength): New CNI function.
7130 * include/jvm.h (_Jv_FindClass): Added declaration.
7132 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7134 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7136 * java/lang/natClass.cc (getName): Add implementation.
7137 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7139 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7141 * Makefile.in: Rebuilt.
7142 * Makefile.am (.class.o): Added -fexceptions.
7144 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7146 * configure: Rebuilt.
7147 * configure.in: Don't check for __nanosleep.
7148 * posix-threads.cc (nanosleep): Never define.
7150 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7152 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7155 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7157 * java/lang/natThread.cc (enumerate): Uncommented.
7158 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7159 (interrupt): Call it.
7161 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7163 * configure: Rebuilt.
7164 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7166 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7168 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7169 * include/java-lang.h (Thread): Added `interrupted_' method.
7170 * java/lang/Thread.java (interrupted_): New method.
7171 * java/lang/natThread.cc (join): Possibly throw interrupted
7172 exception after join finishes.
7173 (interrupted_): New method.
7174 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7176 (JvPrivThreadJoin): New function.
7177 (really_start): Notify all threads waiting for this thread.
7178 (struct starter): Added `data' member.
7179 (JvPrivThreadStart): Set it.
7180 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7182 (JvPrivThreadJoin): No longer inline.
7183 (JvPrivThreadInterrupt): New function.
7185 * include/no-threads.h (JvPrivThreadSleep): Removed.
7186 * posix-threads.cc (JvPrivThreadSleep): Removed.
7188 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7190 * configure: Rebuilt.
7191 * configure.in (THREADOBJS): Initialize to no-threads.o in
7193 * posix-threads.cc (key): New global.
7194 (JvPrivInitThreads): New function.
7195 (really_start): Set thread-specific data to point to object.
7196 (JvPrivThreadStart): Added `daemon' argument.
7197 (JvPrivThreadSleep): Added `data' argument.
7198 * include/posix-threads.h (JvPrivInitThreads): Removed
7200 (JvPrivThreadCurrent): New function.
7201 * include/no-threads.h (JvPrivThreadInitData): Initialize
7202 JvPrivOnlyThread. Added `thread' argument.
7203 (JvPrivThreadCurrent): New function.
7204 (JvPrivThreadStart): Added `daemon' argument.
7205 * no-threads.cc: New file.
7206 * java/lang/natThread.cc (init_data): New function.
7208 (start): Set `alive' member.
7209 (stop_): Clear `alive' member.
7210 (destroy): Likewise.
7211 (currentThread): Implemented.
7212 (start): Pass `daemon' argument to JvPrivThreadStart.
7214 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7215 (Thread): Added `init_data' method.
7216 * java/lang/Thread.java (alive, data): New instance variables.
7217 (init_data): New private method.
7218 (isAlive): No longer native.
7220 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7222 * include/java-lang.h (JvRunMain): Declare.
7223 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7224 * prims.cc (JvRunMain): New function.
7225 (main_signature, main_name): New globals.
7227 * boehm.cc (mark_array): Use `elements' function and not
7228 operator[] on jarray.
7230 * posix-threads.cc: Include <config.h>. Define nanosleep if
7233 * configure: Rebuilt.
7234 * configure.in: Check for _nanosleep.
7236 * configure: Rebuilt.
7237 * configure.in: Check for pthread_mutexattr_settype.
7239 * include/cni.h (class JvSynchronize): New class.
7240 * java/lang/Thread.java (sleep): Throws InterruptedException.
7241 (join): Throws InterruptedException.
7242 (resume): Not native.
7243 (resume_): New method.
7244 (start): Now synchronized.
7245 (stop_): New method.
7246 (Thread): Synchronize when accessing threadNumber.
7248 * java/lang/natThread.cc (throwException): New macro.
7249 (sleep): Throw InterruptedException.
7252 * include/java-lang.h (Runtime): Added interrupted().
7254 * boehm.cc (call_finalizer): Correctly initialize jobj.
7255 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7257 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7260 * configure: Rebuilt.
7261 * configure.in: Added support for --disable-threads.
7262 * include/no-threads.h: New file.
7264 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7266 * Makefile.in: Rebuilt.
7267 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7268 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7269 (libjava_a_LIBADD): Added THREADOBJS.
7270 * configure: Rebuilt.
7271 * configure.in: Added --with-threads option.
7272 * posix-threads.cc: New file.
7273 * include/posix-threads.h: New file.
7274 * include/java-lang.h (Object): Added static member sync_mutex,
7275 member sync_info, method init_mutex.
7276 (struct JvSyncInfo): New struct.
7277 Include "java-threads.h".
7278 * prims.cc (soft_monitorenter): Wrote.
7279 (soft_monitorexit): Likewise.
7280 * java/lang/natObject.cc (init_mutex): New method.
7284 (sync_mutex): Define.
7285 Include "java-threads.h".
7287 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7289 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7290 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7292 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7294 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7295 Added extern "Java" in places to tell G++ Object is a "Java" type.
7296 Other minor renaming and fixes.
7297 * include/java-io.h (FileDescriptor): Add friend class declarations.
7298 G++ no longer allows non-Java types in method parameters and results
7299 of Java classes. Converted most offending methods to friends.
7300 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7301 * java/lang/natSystem.cc (setProperty): Make friend.
7302 * java/lang/natString.cc, include/java-lang.h (String): Rename
7303 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7304 * include/java-lang.h (JArray): Remove getData and eoprator[].
7305 Add elements friend function instead.
7306 * java/lang/natSystem.cc (arraycopy): Use elements function.
7307 * java/io/natFileDescriptor.cc (read, write): Likewise.
7308 * include/java-lang.h (Object): Remove unused make method.
7309 (System::setProperty(char*,char*)): Turn into friend function.
7310 (Class): Rename newObject by JvAllocObject.
7311 * prims.cc: Update to use JvAllocObject, and elements.
7313 * java/lang/natDouble.cc: Fix double -> jdouble.
7315 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7317 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7319 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7321 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7322 * include/java-lang.h (Runtime): finalize_on_exit and
7323 runFinalizersOnExit now static.
7324 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7326 (finalize_on_exit): Now static.
7328 * boehm.cc (mark_obj): Get class using getClass() method on
7330 (_dispatchTable): Removed.
7332 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7334 * java/io/natFileDescriptor.cc (open_read): Only call open if
7336 (open_write): Likewise.
7338 * Makefile.in: Rebuilt.
7339 * Makefile.am ($(nat_files)): Depend on config.h.
7341 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7343 * prims.cc (ObjectClass): Now a macro; updated for new class name
7345 (StringClass): Likewise.
7346 (ClassClass): Likewise.
7348 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7350 * java/io/natFileDescriptor.cc (available): Do nothing unless
7351 HAVE_SELECT defined.
7352 * java/util/natDate.cc (setTime): Conditional on
7354 (toString): Conditional on HAVE_TIME.
7355 * aclocal.m4, configure: Rebuilt.
7356 * acinclude.m4: New file.
7357 * configure.in: Don't actually call AM_EXEEXT. Call
7358 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7359 --with-target-subdir option. Check for select and open
7362 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7364 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7365 (call_finalizer): Likewise.
7366 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7367 * prims.cc (newObject): Pass actual method pointer to
7368 JvPrivRegisterFinalizer.
7369 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7370 (JvPrivRegisterFinalizer): Changed interface.
7372 * Makefile.in: Rebuilt.
7373 * Makefile.am (MOSTLYCLEANFILES): New macro.
7374 (CLEANFILES): Removed javao_files.
7376 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7378 * nogc.cc: New file.
7379 * Makefile.in: Rebuilt.
7380 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7381 (EXTRA_libjava_a_SOURCES): New macro.
7382 (libjava_a_SOURCES): Removed boehm.cc.
7383 (libjava_a_DEPENDENCIES): Added GCOBJS.
7384 (libjava_a_LIBADD): Likewise.
7385 * configure: Rebuilt.
7386 * configure.in: Added code for --enable-gc=TYPE.
7388 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7390 * boehm.cc (mark_array): Don't further dereference pointer from
7393 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7394 * Makefile.in: Rebuilt.
7395 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7396 one for boehm-gc build directory.
7398 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7400 * include/java-lang.h (finalize_on_exit): New instance variable in
7401 java::lang::Runtime.
7402 (runFinalizersOnExit): New method.
7403 * java/lang/Runtime.java (finalize_on_exit): New instance
7405 (runAllFinalizers_): New private method.
7406 (runFinalizersOnExit): New method.
7407 * boehm.cc (JvPrivRunFinalizers): New function.
7408 (JvPrivRunAllFinalizers): Likewise.
7409 (JvPrivRunGC): Likewise.
7410 * java/lang/natRuntime.cc: Include "jvm.h".
7411 (gc): Call JvPrivRunGC.
7412 (runFinalization): Call JvPrivRunFinalizers.
7413 (runFinalizersOnExit): New method.
7414 (exit_): Call JvPrivRunAllFinalizers if required.
7415 * include/jvm.h: Declare JvPrivRunFinalizers,
7416 JvPrivRunAllFinalizers, JvPrivRunGC.
7418 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7420 * boehm.cc (JvPrivRegisterFinalizer): New function.
7421 (call_finalizer): Likewise.
7422 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7423 * prims.cc (finalize_name): New global.
7424 (newObject): Just call other newObject.
7425 (newObject): Register finalizer if it exists.
7427 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7429 * prims.cc (gc_malloc): Removed.
7430 (makeUtf8Const): Use JvPrivAllocBytes.
7431 (lookupArray): Likewise.
7432 (newPrimArray): Likewise.
7433 (JvNewObjectArray): Use JvPrivAllocArray.
7434 (newObject): Use JvPrivAllocObj.
7435 (newObject): Likewise.
7436 Changed Method -> JvMethod everywhere.
7437 Changed Field -> JvField everywhere.
7438 * include/java-lang.h (Object): Changed type of `fields' to
7440 (jmethodID, jfieldID): New typedefs.
7441 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7443 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7445 (METHOD_NATIVECODE): Moved from java-lang.h.
7446 (class JvField): New class.
7447 (JvGetFirstInstanceField): New function.
7448 (JvFieldIsRef): Likewise.
7449 (JvGetObjectField): Likewise.
7450 (JvNumInstanceFields): Likewise.
7452 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7454 * boehm.cc: New file.
7455 * Makefile.in: Rebuilt.
7456 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7457 (INCLUDES): Added -I options to find boehm-gc files.
7459 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7461 * configure: Rebuilt.
7462 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7464 * Makefile.in: Rebuilt.
7465 * Makefile.am (nat_files): New macro.
7466 (libjava_a_DEPENDENCIES): Use it.
7467 (libjava_a_LIBADD): Likewise.
7468 ($(nat_files)): New static pattern rule.
7469 (class_files): Run separate find to find .class files.
7470 (javao_files): Compute based on class_files.
7471 (BUILT_SOURCES): New macro.
7473 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7475 * Makefile.am (java_files): New macro.
7476 (class_files): Likewise.
7477 (javao_files): Likewise.
7478 (libjava_a_DEPENDENCIES): Include $(javao_files).
7479 (libjava_a_LIBADD): Likewise.
7480 (classes.stamp): Depend on $(java_files); only recompile changed
7483 (CLEANFILES): Don't run find; use macros. Don't mention
7485 (.class.o): New target.
7486 (compiled.stamp): Removed.
7488 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7490 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7491 LineNumberReader}>java: Newly-implemented standard classes.
7493 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7495 * Makefile.in: Rebuilt.
7496 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7498 * Makefile.in: Rebuilt.
7499 * Makefile.am (hack): New macro.
7500 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7502 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7504 * include/config.h.in: New file.
7505 * include/config.h: Removed.
7506 * acconfig.h: New file.
7507 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7508 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7509 libjava_a_LIBADD): New macros.
7510 (INCLUDES): New macro.
7513 (SUFFIXES): Removed.
7515 (libjava.a): Removed.
7517 * configure: Rebuilt.
7518 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7519 Look for headers and functions we require. Create
7522 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7524 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7525 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7526 soft_lookupinterfacemethod): New functions.
7527 (PrimClass): Actually initialize the primitive classes.
7528 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7530 * include/java-util.h: Removed java::util definition.
7531 * include/cni.h: Moved java::util here and added Properties.
7532 Added more function prototypes.
7533 * include/java-lang.h: Added mroe methods and friend declarations.
7534 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7535 * include/jvm.h (strLengthUtf8): Add declaration.
7537 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7539 * java/lang/{Byte,Short,Void}.java: New classes.
7540 * java/lang/Character.java (isJavaIdentifierStart,
7541 JavaIdentifierPart): New static methods.
7542 * java/lang/Number.java (byteValue, shortValue): New methods.
7544 * java/lang/String.java (intern, hashCode): Make native.
7545 * java/lang/natString.cc: New file. Handle the string pool.
7546 * Makefile.am: Build natString.o. Use CXXFLAGS.
7548 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7549 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7550 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7551 * java/lang/System.java (setProperty): New private method.
7552 (initProperties): Take argument, and make native.
7553 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7554 (currentTimeMillis): Make more robust.
7556 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7557 * java/io/UnsupportedEncodingException.java: New exception class.
7559 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7560 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7562 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7564 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7565 * prims.cc: Added bunch of stuff.
7566 * include/cni.h: Added various definitions.
7567 * include/java-lang.h: Added Method, various friends, some macros.
7569 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7570 * java/lang/System.java (arraycopy): Make native.
7572 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7574 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7575 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7576 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7577 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7579 * java/lang/Runtime.java: Declare methods as native instead of
7581 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7582 * java/lang/System.java: Comment out some stuff, for now.
7583 * java/lang/Thread.java: Re-write. Use native methods.
7584 * java/lang/NativeLang.java: Remove most of it.
7586 * java/util/natDate.cc: Native (C++) methods for Date.
7587 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7588 * java/util/Date.java: Complete re-write.
7590 * java/io/io-defs.h: New header file.
7591 * java/io/FileDescriptor.java: Add a bunch of private methods,
7592 mostly moved from NativeIO.java and natNativeIO.cc.
7593 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7594 * java/io/File.java: Use new code.
7595 * java/io/{FileInputStream.java.FileOutputStream.java,
7596 RandomAccessFile.java}: Use new private FileDescriptor methods.
7597 * java/io/NativeIO.java: Removed, no longer used.
7599 * java/io/StreamTokenizer.java (numericChars): Make char array.
7601 * include/*.h: Various header files used by the C++ native code.
7603 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7604 New autoconf+automake-based setup.
7605 * prims.cc: New file for Java "primitives".