1 2000-02-01 Tom Tromey <tromey@cygnus.com>
3 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
4 (_Jv_JNI_GetStaticField): Likewise.
6 2000-01-31 Tom Tromey <tromey@cygnus.com>
8 * prims.cc (_Jv_MallocUnchecked): New function.
9 (main_init): Call _Jv_JNI_Init.
10 * include/jvm.h (_Jv_MallocUnchecked): Declare.
11 (_Jv_JNI_Init): Declare.
12 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
14 (_Jv_JNI_NewGlobalRef): New function.
15 (_Jv_JNI_DeleteGlobalRef): New function.
16 (_Jv_JNI_DeleteLocalRef): New function.
17 (_Jv_JNI_conversion_call): Initialize and clear local reference
19 (_Jv_JNI_NewLocalRef): New function.
20 (struct _Jv_JNI_LocalFrame): New structure.
21 (_Jv_JNI_PushLocalFrame): New function.
22 (_Jv_JNI_EnsureLocalCapacity): New function.
23 (FRAME_SIZE): New define.
24 (_Jv_JNI_GetStringChars): Mark string, not characters.
25 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
26 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
27 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
29 (_Jv_JNI_DefineClass): Make return value a local ref.
30 (_Jv_JNI_FindClass): Likewise.
31 (_Jv_JNI_GetSuperclass): Likewise.
32 (_Jv_JNI_ExceptionOccurred): Likewise.
33 (_Jv_JNI_AllocObject): Likewise.
34 (_Jv_JNI_GetObjectClass): Likewise.
35 (_Jv_JNI_CallAnyMethodV): Likewise.
36 (_Jv_JNI_NewString): Likewise.
37 (_Jv_JNI_NewStringUTF): Likewise.
38 (_Jv_JNI_NewObjectArray): Likewise.
39 (_Jv_JNI_GetObjectArrayElement): Likewise.
40 (_Jv_JNI_ToReflectedField): Likewise.
41 (_Jv_JNI_ToReflectedMethod): Likewise.
42 (_Jv_JNIFunctions): Updated table for new functions.
43 (_Jv_JNI_Init): New function.
45 (unmark_for_gc): Wrote.
46 * include/jni.h (struct JNINativeInterface): Removed name from
47 PopLocalFrame parameter.
48 (class _Jv_JNIEnv): Added `locals' field.
50 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
52 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
55 2000-01-30 Tom Tromey <tromey@cygnus.com>
57 * include/config.h.in: Rebuilt.
58 * acconfig.h (HAVE_ICONV): Define.
60 * configure.in: Check for `iconv' function.
61 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
62 no specific encoder exists.
63 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
64 no specific encoder exists.
65 * Makefile.in: Rebuilt.
66 * Makefile.am (convert_source_files): Mention Input_iconv.java and
68 (nat_source_files): Added natIconv.cc.
69 * gnu/gcj/convert/natIconv.cc: New file.
70 * gnu/gcj/convert/Input_iconv.java: New file.
71 * gnu/gcj/convert/Output_iconv.java: New file.
73 2000-01-28 Tom Tromey <tromey@cygnus.com>
75 * Makefile.in: Rebuilt.
76 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
78 2000-01-26 Tom Tromey <tromey@cygnus.com>
80 * gcj/method.h (JvNumMethods): Moved from Class.h.
81 (JvGetFirstMethod): Likewise.
82 * java/lang/Class.h (Object): Updated decl of
83 _Jv_JNI_ToReflectedField.
84 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
85 * Makefile.in: Rebuilt.
86 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
87 argument of _Jv_JNI_ToReflectedField.
88 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
90 (java/lang/reflect/Method.h): Likewise.
91 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
94 (struct JNINativeInterface): Correctly declare remaining entries.
95 * jni.cc: Include Class.h, ClassLoader.h.
96 (_Jv_JNI_FindClass): New function.
97 (_Jv_JNI_DefineClass): New function.
98 (_Jv_JNI_conversion_call): New function.
99 (_Jv_JNI_FindClass): Use current class loader to find class.
100 (_Jv_JNI_ExceptionCheck): New function.
101 (_Jv_JNI_FromReflectedField): Now static.
102 (MethodClass): New define.
103 (_Jv_JNI_FromReflectedMethod): New function.
104 (_Jv_JNI_ToReflectedMethod): Likewise.
106 (_Jv_JNI_IsAssignableFrom): Renamed.
107 (_Jv_JNI_GetStringRegion): New function.
108 Include StringIndexOutOfBoundsException.h.
109 (_Jv_JNI_GetStringUTFRegion): New function.
110 (_Jv_JNIFunctions): Updated for new functions.
111 (_Jv_JNI_GetPrimitiveArrayCritical): New function
112 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
113 (_Jv_JNI_GetStringCritical): New function.
114 (_Jv_JNI_ReleaseStringCritical): Likewise.
115 (get_throwable): Removed.
116 (GCJ_JV_JNIENV_FRIEND): Removed.
117 (__GCJ_JNI_IMPL__): Define.
120 * resolve.cc (get_ffi_type_from_signature): Handle case where
123 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
125 * interpret.cc (run): Don't call println.
126 Don't include PrintStream.h.
128 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
129 nameIndex. Use "jint" as type for boffset.
130 * java/lang/Class.h (struct _Jv_Method): Made accflags a
132 (Class): Likewise. Also changed type of method_count,
133 vtable_method_count, size_in_bytes, field_count,
134 static_field_count, interface_count.
135 * gcj/array.h (__JArray): Made `length' a const jsize, not an
138 2000-01-21 Tom Tromey <tromey@cygnus.com>
140 * java/lang/reflect/natConstructor.cc (newInstance): Use
142 * include/jvm.h: Declare _Jv_CallAnyMethodA.
143 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
144 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
147 (invoke): Use _Jv_CallAnyMethodA.
149 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
150 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
152 (struct _Jv_Method): Added getNextMethod method.
153 (JvNumMethods): New function.
154 (JvGetFirstMethod): Likewise.
155 * gcj/field.h (JvGetFirstStaticField): New function.
156 (JvNumStaticFields): Likewise.
157 (getNextField): Renamed from getNextInstanceField.
158 (struct _Jv_Field): New method getClass.
159 * jni.cc: Wrote many new functions.
160 * include/jni.h (JNI_TRUE): Define.
161 (JNI_FALSE): Likewise.
162 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
163 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
164 jcharArray, jfloatArray, jdoubleArray): New typedefs.
165 (jfieldID, jmethodID): Likewise.
166 (JNI_COMMIT, JNI_ABORT): New defines.
167 (JNINativeMethod): New struct.
168 (struct JNINativeInterface): Correctly declared more entries.
169 (class _Jv_JNIEnv): Added `ex' member.
170 (JNI_VERSION_1_1): New define.
171 (JNI_VERSION_1_2): Likewise.
173 * boehm.cc (_Jv_MarkObj): Use getNextField, not
174 getNextInstanceField.
176 2000-01-20 Tom Tromey <tromey@cygnus.com>
178 * resolve.cc (StringClass): Removed.
179 * defineclass.cc (StringClass): Removed.
181 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
185 2000-01-19 Tom Tromey <tromey@cygnus.com>
187 * interpret.cc (PC_REGISTER_ASM): Removed.
189 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
192 * All files: Updated copyright to reflect Cygnus purchase.
194 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
196 * configure: Rebuilt.
197 * configure.in: Recognize --disable-interpreter.
199 2000-01-18 Andrew Haley <aph@cygnus.com>
201 * name-finder.cc (lookup): Check for dladdr function.
202 acconfig.h (HAVE_DLADDR): Add.
203 configure.in: Check for HAVE_DLADDR
205 include/config.h.in: Rebuilt.
207 2000-01-17 Andrew Haley <aph@cygnus.com>
209 * prims.cc (_Jv_RunMain): Set the name of this executable.
211 2000-01-17 Tom Tromey <tromey@cygnus.com>
213 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
214 when backtrace can't be computed.
216 * configure: Rebuilt.
217 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
219 * java/lang/Runtime.java (loadLibraryInternal): Declare.
220 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
221 (_Jv_FindClassInCache): Likewise.
222 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
223 (findSystemClass): Try to load class from compiled module.
225 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
226 (loadLibrary): Likewise.
227 (lt_preloaded_symbols): Define.
228 (loadLibraryInternal): New method.
229 * include/config.h.in: Rebuilt.
230 * acconfig.h (USE_LTDL): Added.
231 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
232 (INCLUDES): Added $(INCLTDL).
233 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
234 (libgcj_la_LIBADD): Likewise.
235 * aclocal.m4, configure: Rebuilt.
236 * configure.in: Added libltdl support.
238 2000-01-15 Tom Tromey <tromey@cygnus.com>
240 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
242 2000-01-14 Andrew Haley <aph@cygnus.com>
244 * java/lang/natThrowable.cc: New file.
246 * java/lang/Throwable.java (fillInStackTrace): Make native.
247 (printStackTrace): Call native method to do this.
248 (Throwable): Call fillInStackTrace.
249 (stackTrace): New variable.
251 * include/jvm.h: Add _Jv_ThisExecutable functions.
253 * prims.cc: (_Jv_execName): New variable.
254 (catch_segv): Call fillInStackTrace.
256 (_Jv_ThisExecutable): New functions.
257 (JvRunMain): Set the name of this executable.
259 * Makefile.am: Add java/lang/natThrowable.cc.
261 * Makefile.in: Rebuilt.
263 * acconfig.h: Add HAVE_PROC_SELF_EXE.
265 * configure.in: Force link with __frame_state_for in
266 FORCELIBGCCSPEC. Add new checks for backtrace.
267 * include/config.h.in: Rebuilt.
269 * name-finder.cc: New file.
270 * include/name-finder.h: New file.
272 2000-01-16 Anthony Green <green@cygnus.com>
274 * java/lang/StringBuffer.java (StringBuffer): Don't special case
277 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
279 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
281 2000-01-13 Tom Tromey <tromey@cygnus.com>
283 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
284 not system loader, as initiating loader.
286 2000-01-11 Tom Tromey <tromey@cygnus.com>
288 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
289 HP/UX. From David Scott Urban.
291 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
293 * java/lang/natMath.cc (pow): Cast args to `double', not
296 (IEEEremainder): Likewise.
297 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
298 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
300 2000-01-09 Anthony Green <green@cygnus.com>
302 * java/lang/natString.cc (init): Test for overflow condition
303 during out of bounds check.
304 (getChars): Throw StringIndexOutOfBoundsException, not
305 ArrayIndexOutOfBoundsException.
307 (regionMatches): Obey case option during string comparison.
309 * configure.host (ligcj_interpreter): New variable. Enable
310 interpreter by default on IA-32.
311 * configure.in: Examine libgcj_interpreter.
312 * configure: Rebuilt.
314 2000-01-07 Tom Tromey <tromey@cygnus.com>
316 * mauve-libgcj: Don't disable ClassTest.
318 * java/lang/natClass.cc (getClasses): Wrote.
320 2000-01-06 Tom Tromey <tromey@cygnus.com>
322 * java/lang/natClass.cc (_getConstructors): Correctly check
323 whether method name is the init name.
324 (getMethod): Look at accflags on method in `klass', not `this'.
326 2000-01-05 Tom Tromey <tromey@cygnus.com>
328 * java/lang/natClass.cc (getMethod): Compute offset relative to
329 `klass's methods table, not `this's table.
331 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
332 In unwrapping/widening case, check whether `k' is null, not
333 whether it is primitive. Initialize `num' from `argelts', not
334 `paramelts'. Correct create and pass arguments to ffi_call.
335 Don't let presence of `this' argument affect index used to look in
337 (COPY): Set appropriate element in `values' vector.
339 * java/lang/natClass.cc: Include <gcj/method.h>.
341 * java/lang/Class.h (_getMethods): Correctly declare as private,
344 * java/lang/Class.h (_getMethods): Declare.
345 * java/lang/Class.java (_getMethods): Declare.
346 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
347 (getDeclaredClasses): Always return empty array.
348 (_getMethods): New method.
350 (getDeclaredMethod): Return `rmethod'.
351 (finit_name): New global.
352 (getDeclaredMethods): Check for finit_name.
353 (_getMethods): Likewise.
354 (getMethod): Only return public methods.
356 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
357 jboolean and select correct ffi type on that basis.
358 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
359 Constructor call always has `void' return type.
361 2000-01-04 Tom Tromey <tromey@cygnus.com>
363 * java/lang/Class.h (getSignature): Updated.
364 * java/lang/Class.java (getSignature): Updated.
365 * java/lang/natClass.cc (getSignature): Added `is_constructor'
367 (getConstructor): Ensure constructor is public.
368 (_getConstructors): Check for public-ness of constructor when
369 `declared' is false, not when it is true.
371 2000-01-04 Warren Levy <warrenl@cygnus.com>
373 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
375 (receive): Set the sender's address in the DatagramPacket.
377 2000-01-04 Tom Tromey <tromey@cygnus.com>
379 * java/lang/reflect/natConstructor.cc (newInstance): Pass
380 declaring class as return_type argument to
381 _Jv_CallNonvirtualMethodA.
382 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
383 constructor case, create object and use it as `this' argument.
384 * java/lang/Class.h (_getConstructors): Declare.
385 (_getFields): Declare.
386 * java/lang/Class.java (getConstructors): Wrote.
387 (_getConstructors): New native method.
388 (getDeclaredConstructors): Wrote.
389 (_getFields): Declare new native method.
390 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
392 (getMethod): Work correctly when class is primitive.
393 (getDeclaredMethods): Likewise. Compute offset using `method',
395 (getDeclaredMethod): Likewise.
396 (getConstructor): Wrote.
397 (ConstructorClass): New define.
398 (getDeclaredConstructor): Wrote.
399 (_getConstructors): New method.
400 (_getFields): New method.
403 * Makefile.in: Rebuilt.
404 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
406 * prims.cc: Remove `#pragma implementation'.
407 * gcj/array.h: Remove `#pragma interface'.
409 * prims.cc (_Jv_equaln): New function.
410 * java/lang/Class.java (getSignature): Declare.
411 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
412 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
414 (getSignature): New method.
415 (getDeclaredMethod): Wrote.
417 Include StringBuffer.h.
418 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
419 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
421 (getSignature): Declare.
422 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
423 (_Jv_equaln): Declare.
424 (_Jv_CallNonvirtualMethodA): Declare.
425 * Makefile.in: Rebuilt.
426 * Makefile.am (nat_source_files): Added natConstructor.cc.
427 (java/lang/reflect/Constructor.h): New target.
428 * java/lang/reflect/natConstructor.cc: New file.
429 * java/lang/reflect/Constructor.java (newInstance): Now native.
430 (declaringClass): Renamed from decl_class.
431 (offset): Renamed from index.
432 (getType): New native method.
433 (getModifiers): Now native.
434 (getParameterTypes): Call getType if required.
435 (hashCode): Include hash code from declaring class.
436 (modifiers): Removed.
437 (toString): Call getType if required.
438 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
439 * java/lang/reflect/natMethod.cc (hack_call): New method.
440 Removed `#if 0' around FFI code.
441 Include <gnu/gcj/RawData.h>.
442 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
443 IllegalArgumentException when argument object and class disagree.
444 (_Jv_GetTypesFromSignature): New function.
446 (ObjectClass): New define.
447 (_Jv_CallNonvirtualMethodA): New function.
448 * java/lang/reflect/Method.java (hack_trampoline): New method.
449 (hack_call): New native method.
451 1999-12-21 Per Bothner <per@bothner.com>
453 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
454 offset in new Method.
456 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
458 * java/lang/natObject.cc (notify): Throw message with
459 IllegalMonitorStateException.
462 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
463 (isInterrupted_): New function, which does clear interrupt_flag.
464 (interrupt): Use `isInterrupted_'.
465 * java/lang/natThread.cc (interrupt): Add comment.
466 (join): Set `prev' in joiner loop.
467 Change various calls to `isInterrupted' to use `isInterrupted_'.
468 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
469 on linux. Set result to 0 on an interrupt. Test interrupted status
470 of java Thread object directly.
471 FLAG_INTERRUPTED: removed.
472 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
473 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
474 (_Jv_InitThreads): Don't block SIGINT.
475 (_Jv_ThreadWait): Don't configure SIGINT handler.
477 1999-12-21 Tom Tromey <tromey@cygnus.com>
479 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
481 1999-12-20 Tom Tromey <tromey@cygnus.com>
483 * java/lang/reflect/Modifier.java (STRICT): New constant.
484 (isStrict): New method.
485 (toString): Added `strict'.
487 1999-12-23 Anthony Green <green@cygnus.com>
489 * configure: Rebuilt.
490 * configure.in (LIBDATASTARTSPEC): Force data_start in with
493 1999-12-19 Anthony Green <green@cygnus.com>
495 * libgcjdata.c: New file.
496 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
497 * configure: Rebuilt.
498 * configure.in (LIBDATASTARTSPEC): Force data with a known name
500 * Makefile.in: Rebuilt.
501 * Makefile.am: Build libgcjdata.a.
503 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
504 * configure: Rebuilt.
505 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
508 1999-12-17 Tom Tromey <tromey@cygnus.com>
510 * java/lang/reflect/Method.java (toString): Call getType if
511 required. Partial fix for PR libgcj/111. From Per Bothner.
513 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
515 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
517 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
518 null String constructor parameter.
519 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
520 for exception messages.
521 BooleanClass: declare.
522 (setOption): Use BooleanClass instead of Class.forName() for
524 (bind): Cast 4th parameter of setsockopt to `char *' for
525 compatibility with older Solaris headers.
526 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
527 sprintf calls for exception messages.
528 BooleanClass, IntegerClass: declare.
529 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
532 1999-12-15 Tom Tromey <tromey@cygnus.com>
534 * java/lang/natSystem.cc (init_properties): Don't set user.name or
535 user.home if NO_GETUID defined. Only set user.dir if getcwd
538 * include/config.h.in: Rebuilt.
539 * acconfig.h (NO_GETUID): New define.
540 * configure.in: Rebuilt.
541 * configure.in: Define NO_GETUID in cross case. Check for getcwd
544 1999-12-08 Tom Tromey <tromey@cygnus.com>
546 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
547 where no recursive mutexes exist. Fixes PR libgcj/117.
549 1999-12-05 Anthony Green <green@cygnus.com>
551 * include/jvm.h: Declare many functions with
552 __attribute__((__malloc__)).
553 * gcj/javaprims.h: Ditto.
555 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
557 * THANKS: Giving credit where credit is due.
559 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
561 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
563 * java/lang/natString.cc (equalsIgnoreCase): return false if
564 anotherString is null.
565 * java/lang/Boolean.java (valueOf): return FALSE if argument is
568 1999-11-30 Tom Tromey <tromey@cygnus.com>
570 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
571 mutex to initialize. Initialize `count' if required.
574 1999-11-27 Per Bothner <per@bothner.com>
576 * exception.cc: Remove prototype declarations for malloc and free.
577 These clash with recent versions of glibc, which specifies `throws ()'
578 when __cplusplus is defined. Instead, #include <stdlib.h>.
580 1999-11-24 Tom Tromey <tromey@cygnus.com>
582 * prims.cc (_Jv_NewObjectArray): Use
583 _Jv_GetArrayElementFromElementType.
584 (_Jv_NewPrimArray): Likewise.
585 * java/lang/natObject.cc (clone): Use
586 _Jv_GetArrayElementFromElementType instead of sizeof.
587 * java/lang/natSystem.cc (arraycopy): Use
588 _Jv_GetArrayElementFromElementType.
589 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
592 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
594 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
595 Exception messages. PR java.net/57.
596 (bind): set SO_REUSEADDR before bind.
597 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
598 overruns. PR java.net/57.
600 1999-11-19 Tom Tromey <tromey@cygnus.com>
602 * Makefile.am (DIVIDESPEC): Removed.
603 (EXCEPTIONSPEC): Removed.
605 1999-11-19 Andrew Haley <aph@cygnus.com>
607 * Makefile.am (JCFLAGS): Add -L$(here)
609 * Makefile.in: Rebuild.
611 1999-11-18 Tom Tromey <tromey@cygnus.com>
613 * java/lang/natDouble.cc: Include <config.h>.
615 * include/config.h.in: Rebuilt.
616 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
617 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
619 * configure: Rebuilt.
620 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
621 requested by configure.host. Don't put `-D' option into
622 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
624 * configure: Rebuilt.
625 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
628 1999-11-18 Andrew Haley <aph@cygnus.com>
630 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
631 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
633 * Makefile.in: Rebuild
634 * acconfig.h: remove SJLJ_EXCEPTIONS
635 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
636 Do not AC_DEFINE SJLJ_EXCEPTIONS.
637 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
638 * gcj/Makefile.in, include/Makefile.in: rebuild.
639 * include/config.h.in: remove SJLJ_EXCEPTIONS.
641 1999-11-18 Andrew Haley <aph@cygnus.com>
643 * gij.cc (main): Rename label to prevent conflict.
645 * exception.cc (_Jv_type_matcher): Don't check the table if we're
646 using setjmp/longjmp exceptions: there isn't one.
648 1999-11-17 Andrew Haley <aph@cygnus.com>
650 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
651 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
652 (__sjthrow): Add declaration.
653 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
657 * Makefile.in: Rebuild
658 * acconfig.h: Add SJLJ_EXCEPTIONS
659 * configure.in: Add SJLJ_EXCEPTIONS
660 * configure: Rebuild.
661 * gcj/Makefile.in: Rebuild.
662 * gcj/cni.h: Add support for sjlj-exceptions.
663 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
664 * include/Makefile.in: Rebuild.
665 * include/default-signal.h: Add support for sjlj-exceptions.
667 1999-11-18 Tom Tromey <tromey@cygnus.com>
669 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
671 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
673 (method_cache): Made larger.
675 1999-11-11 Tom Tromey <tromey@cygnus.com>
677 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
678 initializing mutex. Initialize `count' when required.
680 1999-11-07 Anthony Green <green@trip.cygnus.com>
682 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
685 1999-11-05 Tom Tromey <tromey@cygnus.com>
687 * java/lang/natThread.cc (destroy): Removed incorrect comment.
689 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
691 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
692 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
695 1999-11-05 Tom Tromey <tromey@cygnus.com>
697 * java/lang/natThread.cc (stop): Removed argument name.
699 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
700 `private'; now has default access.
701 * Makefile.in: Rebuilt.
702 * Makefile.am (java/lang/ThreadGroup.h): Removed.
704 1999-11-04 Tom Tromey <tromey@cygnus.com>
706 * java/lang/natClass.cc (method_cache_count): Removed.
707 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
708 (_Jv_AddMethodToCache): Don't loop.
710 * configure.in: Removed `qt' threads case.
711 * include/quick-threads.h: Removed.
712 * quick-threads.cc: Removed.
714 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
715 (_Jv_ThreadDestroy): Likewise.
716 * include/no-threads.h (_Jv_ThreadCancel): Removed.
717 (_Jv_ThreadDestroy): Likewise.
718 * include/posix-threads.h (struct _Jv_Thread_t): Removed
720 (_Jv_ThreadCancel): Removed decl.
721 (_Jv_ThreadDestroy): Removed.
722 * posix-threads.cc (_Jv_ThreadCancel): Removed.
723 (throw_cleanup): Removed.
724 (really_start): Don't push or pop cleanup.
725 (_Jv_ThreadInitData): Don't initialize `exception' field.
726 * java/lang/Thread.java (stop): Officially unimplemented.
727 * java/lang/natThread.cc (stop): Officially unimplemented.
729 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
731 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
734 1999-11-02 Tom Tromey <tromey@cygnus.com>
736 * boehm.cc: Don't include boehm-config.h.
738 1999-11-01 Tom Tromey <tromey@cygnus.com>
740 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
741 (sum_blocks): Removed.
742 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
744 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
746 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
748 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
749 * java/io/InputStreamReader (InputStreamReader): ditto.
751 1999-10-22 Tom Tromey <tromey@cygnus.com>
753 * Makefile.in: Rebuilt.
754 * Makefile.am (java/lang/ClassLoader.h): New target.
755 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
758 * include/java-props.h (_Jv_Compiler_Properties): Changed
760 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
761 * include/jvm.h (_Jv_GCSetInitialHeapSize,
762 _Jv_GCSetMaximumHeapSize): Declare.
763 (JvRunMain, _Jv_RunMain): Declare.
764 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
765 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
766 (_Jv_GCSetMaximumHeapSize): Likewise.
767 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
768 (_Jv_GCSetMaximumHeapSize): Likewise.
769 * prims.cc (parse_heap_size): New function.
770 (_Jv_SetInitialHeapSize): Likewise.
771 (_Jv_SetMaximumHeapSize): Likewise.
772 (_Jv_Compiler_Properties): New global.
773 * gij.cc (help): New function.
775 (heap_size): Likewise.
776 (heap_max_size): Likewise.
777 (main): Parse arguments. Set _Jv_Compiler_Properties.
778 Include <config.h>, <java-props.h>.
779 (_Jv_Compiler_Properties): Removed.
781 1999-10-18 Tom Tromey <tromey@cygnus.com>
783 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
785 (redirect): New static field.
786 * java/lang/ClassLoader.java (getSystemClassLoader): Now
788 (getVMClassLoader0): Removed.
789 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
791 (getSystemClassLoader): Implemented.
793 1999-10-16 Anthony Green <green@cygnus.com>
795 * java/lang/ClassLoader.java (getSystemResource): Use
796 getSystemClassLoader instead of ClassLoader.system.
797 (getSystemResourceAsStream): Ditto.
799 * java/lang/natClassLoader.cc (redirect): Make static and
800 remove #ifdef INTERPRETER so it is always defined.
801 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
802 returns a VMClassLoader.
804 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
805 PropertyResourceBundle if a properties file is found before a
806 ResourceBundle class.
808 1999-10-15 Tom Tromey <tromey@cygnus.com>
810 * gij.cc (main): Formatting fixes.
811 (_Jv_Compiler_Properties): Define.
812 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
814 (init_properties): Set properites from _Jv_Compiler_Properties.
815 * include/java-props.h (_Jv_Compiler_Properties,
816 _Jv_Environment_Properties): Declare.
818 * include/java-props.h: Added copyright.
820 1999-10-13 Anthony Green <green@cygnus.com>
822 * libtool-version: Catch up by incrementing current.
824 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
825 * configure, include/config.h.in: Rebuilt.
826 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
827 * configure.in: Added --disable-getenv-properties and new define
828 `DISABLE_GETENV_PROPERTIES'.
830 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
831 (next_property_key): New function.
832 (next_property_value): New function.
833 (process_gcj_properties): New function.
834 (JvRunMain): Call process_gcj_properties.
837 * java/lang/natSystem.cc (init_properties): Set properties defined
840 * include/java-props.h: New file.
842 * java/lang/natSystem.cc (init_properties): Add new properties to
843 conform with Java Product Versioning Specification.
845 1999-10-12 Tom Tromey <tromey@cygnus.com>
847 * configure: Rebuilt.
848 * configure.in: Fixed test for --disable-java-net.
850 1999-10-06 Tom Tromey <tromey@cygnus.com>
852 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
853 when building Canadian cross.
854 (NATIVE): Don't define when cross-compiling.
856 1999-10-04 Tom Tromey <tromey@cygnus.com>
858 * java/net/natPlainSocketImpl.cc: Don't include headers if
859 java.net is disabled.
861 * Makefile.in: Rebuilt.
862 * Makefile.am (ZINCS): Removed. This is defined in configure.in
863 when needed, and must be left empty when not needed.
865 1999-10-01 Anthony Green <green@cygnus.com>
867 * THANKS: Refreshed from htdocs version.
869 1999-10-01 Steve Chamberlain <sac@pobox.com>
871 * Makefile.in: Rebuilt.
872 * Makefile.am (ZINCS): Define
874 * configure: Rebuilt.
875 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
877 * java/lang/ieeefp.h: Add definitions for picoJava.
879 1999-10-01 Tom Tromey <tromey@cygnus.com>
881 * configure: Rebuilt.
882 * configure.in: Set classpath when invoking gcj. Use changequote
883 around sed invocation.
885 * java/net/natPlainSocketImpl.cc: Stub native functions if
886 DISABLE_JAVA_NET is defined.
887 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
888 typo in exception string.
889 (getTimeToLive): Likewise.
890 Stub native functions if DISABLE_JAVA_NET is defined.
891 * java/net/natInetAddress.cc: Stub native functions if
892 DISABLE_JAVA_NET is defined.
893 * configure.host: Disable java.net for mips-tx39.
894 * configure, include/config.h.in: Rebuilt.
895 * acconfig.h (DISABLE_JAVA_NET): Undefine.
896 * configure.in: Added --disable-java-net and new define
899 1999-09-30 Tom Tromey <tromey@cygnus.com>
901 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
903 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
907 1999-09-28 Tom Tromey <tromey@cygnus.com>
909 * configure: Rebuilt.
910 * configure.in (PROCESS): In POSIX case, only set if not already
912 * configure.host (PROCESS): Set in mips-tx39 case.
914 * aclocal.m4, configure: Rebuilt.
915 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
916 appropriate AC_PROG_ symbol.
918 1999-09-24 Tom Tromey <tromey@cygnus.com>
920 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
922 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
924 Fix for PR java.util/47:
925 * configure, include/config.h: Rebuilt.
926 * configure.in: Don't look for ctime or ctime_r.
927 * Makefile.in: Rebuilt.
928 * Makefile.am (nat_source_files): Don't mention natDate.cc.
929 * java/util/natDate.cc: Removed.
930 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
932 (getAvailableIDs): Rewrote.
933 (getTimeZone): Rewrote.
934 * java/util/Date.java (toGMTString): New method.
935 (toLocaleString): New method.
938 1999-09-23 Tom Tromey <tromey@cygnus.com>
940 * configure: Rebuilt.
941 * configure.in: Print message when checking to see if gcj can
942 handle -fuse-divide-subroutine.
944 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
946 * java/lang/FirstThread.java (run0): Renamed to `run'.
949 * prims.cc (main_init): New function.
950 (JvRunMain): Call it.
951 (_Jv_RunMain): Likewise.
953 (main_init): Ignore SIGPIPE. Fixes PR 51.
955 1999-09-22 Tom Tromey <tromey@cygnus.com>
957 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
959 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
961 * java/text/MessageFormat.java (MessageFormat(String)): Set the
963 * java/text/NumberFormat.java: Check that object is a Number. If
964 not, throw IllegialArgumentException.
966 1999-09-21 Tom Tromey <tromey@cygnus.com>
968 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
969 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
971 * include/posix-threads.h (_Jv_MutexDestroy): Use
973 (_Jv_MutexLock): Likewise.
974 (_Jv_MutexUnlock): Likewise.
976 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
977 previous patch; it too was incorrect.
978 * java/io/PrintStream.java (PrintStream): Likewise.
980 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
981 refer to `this' before calling superclass constructor.
982 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
983 before calling superclass constructor.
985 1999-09-20 Tom Tromey <tromey@cygnus.com>
987 * configure: Rebuilt.
988 * configure.in: Send output of `-fuse-divide-subroutine' test
989 compilation to /dev/null.
991 1999-09-14 Tom Tromey <tromey@cygnus.com>
993 * include/java-insns.h: Turned constants into an enum. Added
994 multiple-inclusion protection.
996 1999-09-10 Tom Tromey <tromey@cygnus.com>
998 * configure: Rebuilt.
999 * configure.in: Build include/Makefile.
1000 * Makefile.in: Rebuilt.
1001 * Makefile.am (SUBDIRS): Added gcj and include.
1002 (install-data-local): New target.
1003 (extra_headers): New macro.
1004 * include/Makefile.in: New file.
1005 * include/Makefile.am: New file.
1007 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1008 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1010 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1011 * resolve.cc: Include config.h.
1012 * defineclass.cc: Include config.h.
1013 * include/java-interp.h: Don't include config.h.
1014 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1017 * gcj/javaprims.h: Regenerated namespace decls.
1018 * classes.pl (scan): Don't put `;' after closing brace.
1020 * Makefile.in: Rebuilt.
1021 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1022 * configure.in: Create gcj/Makefile.
1023 * gcj/Makefile.in: New file.
1024 * gcj/Makefile.am: New file.
1025 * java/lang/Object.h: Don't include any other headers.
1026 * gcj/array.h: Renamed from include/java-array.h.
1027 * gcj/field.h: Renamed from include/java-field.h.
1028 * gcj/method.h: Renamed from include/java-method.h.
1029 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1030 Updated all files to reflect new include structure.
1032 1999-09-09 Tom Tromey <tromey@cygnus.com>
1034 * configure: Rebuilt.
1035 * configure.in: Fixed typo; variable is THREADSPEC and not
1038 1999-09-08 Tom Tromey <tromey@cygnus.com>
1040 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1041 previous change and implemented a correct test in the __m_count
1044 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1047 1999-09-07 Tom Tromey <tromey@cygnus.com>
1049 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1050 code and don't set errno.
1052 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1053 not `r'. Changed `done_sleeping' to a `bool'.
1055 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1057 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1058 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1059 by another thread, rather than by the GC.
1060 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1061 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1062 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1065 1999-09-03 Tom Tromey <tromey@cygnus.com>
1067 * configure: Rebuilt.
1068 * configure.in: Check for fstat function.
1069 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1072 1999-09-02 Tom Tromey <tromey@cygnus.com>
1074 * include/java-array.h (jobjectArrayjchar): Removed unused
1077 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1078 _Jv_PrepareCompiledClass while holding class mutex.
1080 1999-09-01 Tom Tromey <tromey@cygnus.com>
1082 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1083 (_Jv_PthreadGetMutex): Use it.
1084 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1085 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1086 (_Jv_MutexLock): Likewise.
1087 (_Jv_MutexUnlock): Likewise.
1088 * include/config.h.in: Rebuilt.
1089 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1090 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1091 * configure: Rebuilt.
1092 * libgcj.spec.in: Don't mention INTERPSPEC.
1093 * configure.in (INTERPSPEC): Removed.
1094 Only run pthreads-related checks when using POSIX threads. Check
1095 for m_count and __m_count in mutex structure.
1097 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1099 * java/lang/natClass.cc: Fixed notification of threads
1100 when class initialization is complete.
1102 1999-09-01 Tom Tromey <tromey@cygnus.com>
1104 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1105 * resolve.cc: Removed constants defined by
1106 java.lang.reflect.Modifier.
1107 Include <java/lang/reflect/Modifier.h>.
1108 (_Jv_ResolvePoolEntry): Use values from Modifier.
1109 (_Jv_DetermineVTableIndex): Likewise.
1110 (_Jv_PrepareClass): Likewise.
1112 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1113 java.lang.reflect.Modifier.
1114 Include <java/lang/reflect/Modifier.h>.
1115 (checkExtends): Use values from Modifier.
1116 (checkImplements): Likewise.
1117 (handleField): Likewise.
1118 (handleConstantValueAttribute): Likewise.
1119 (handleFieldsEnd): Likewise.
1120 (handleMethod ): Likewise.
1121 (handleMethodsEnd): Likewise.
1122 (handleClassBegin): Likewise.
1123 * interpret.cc: Removed constants defined by
1124 java.lang.reflect.Modifier.
1125 (continue1): Use values from Modifier.
1126 * java/lang/natClassLoader.cc: Removed constants defined by
1127 java.lang.reflect.Modifier.
1129 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1130 JV_STATE_NOTHING, not `0'.
1131 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1133 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1134 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1136 (_Jv_PthreadGetMutex): New function.
1137 (_Jv_PthreadCheckMonitor): Use it.
1138 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1139 (_Jv_MutexLock): Update `count'.
1140 (_Jv_MutexUnlock): Likewise.
1141 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1144 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1146 * Makefile.am (.java.lo): Add rule.
1148 * Makefile.in: Rebuilt.
1150 1999-09-01 Tom Tromey <tromey@cygnus.com>
1152 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1153 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1155 (_Jv_CondNotify): Use it.
1156 (_Jv_CondNotifyAll): Likewise.
1158 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1160 1999-08-31 Tom Tromey <tromey@cygnus.com>
1162 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1165 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1167 * posix-threads.cc: Include <errno.h>.
1169 1999-08-23 Tom Tromey <tromey@cygnus.com>
1171 * boehm.cc: Undefine TRUE and FALSE.
1173 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1175 1999-08-21 Tom Tromey <tromey@cygnus.com>
1177 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1180 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1182 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1184 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1185 (HAVE_STRUCT_IP_MREQ): Added.
1186 * configure, include/config.h.in: Rebuilt.
1187 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1189 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1190 Disable if ip_mreq is not available.
1192 * configure.in: Check types ssize_t and in_addr_t.
1193 * acconfig.h: Undefine them.
1194 * configure, include/config.h.in: Rebuilt.
1196 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1197 function that detects the signature of getpwuid_r.
1198 (init_properties): Use it.
1199 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1202 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1204 * interpret.cc (continue1): Implement explicit dispatch table.
1205 insn_target: Explicit interpreter switch table.
1206 SAVE_PC: New macro, moves pc saving code into instructions that
1208 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1209 PC_REGISTER_ASM: New macro.
1210 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1211 opcode: Remove local variable.
1212 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1213 (POKEI): Use _Jv_word.
1214 (iinc): Use _Jv_word.
1215 (dupx): Change reference argument (sp) to pointer.
1218 * interpret.cc: Remove instruction timing instrumentation.
1220 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1221 comment. Don't use _Jv_ClassNameSamePackage.
1223 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1224 URLPathEntry, CacheEntry}: Removed.
1226 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1228 (.java.lo): Rule removed.
1230 * Makefile.in: Rebuilt.
1232 1999-08-19 Tom Tromey <tromey@cygnus.com>
1234 * java/lang/natThread.cc (class locker): New class.
1235 (join): Use a locker around _Jv_CondWait.
1238 1999-08-18 Tom Tromey <tromey@cygnus.com>
1240 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1241 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1243 1999-08-18 Tom Tromey <tromey@cygnus.com>
1245 * include/javaprims.h ("Java"): Regenerated namespace decls.
1247 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1249 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1250 from _Jv_InternClassStrings.
1252 * prims.cc (_Jv_RunMain): New function.
1253 (JvRunMain): Remove gij-support.
1255 * gij.cc (main): Use _Jv_RunMain.
1257 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1259 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1260 argument in temp variable.
1261 (continue1): For all op_x2y insns, use temp variable for
1262 intermediate value. Also remove some comments.
1264 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1265 (forName): Don't call _Jv_InitClass.
1267 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1269 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1271 * java/util/jar/JarInputStream.java: New file.
1273 * java/util/jar/JarEntry.java: New file.
1275 * java/util/jar/JarFile.java: New file.
1277 * java/net/URLClassLoader.java: New file.
1279 * java/net/JarURLConnection.java: New file.
1281 * gnu/gcj/protocol/jar/Handler.java: New file.
1283 * gnu/gcj/protocol/jar/Connection.java: New file.
1285 * java/security/SecureClassLoader.java: New file.
1287 * java/lang/ClassLoader.java (parent): New variable.
1288 (ClassLoader (ClassLoader)): new constructor.
1289 (findClass): New method.
1290 (loadClass): Add default 1.2 implementation.
1291 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1292 (readfully): Removed.
1294 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1295 (findSystemClass): New method.
1296 (VMClassLoader): Constructor rewritten.
1298 All other methods removed.
1300 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1301 to gnu::gcj::runtime::VMClassLoader.
1302 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1304 (VMClassLoader::findSystemClass): renamed from findBootClass.
1306 * Makefile.am: Add new files.
1307 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1309 * Makefile.in: Rebuilt.
1311 1999-08-17 Tom Tromey <tromey@cygnus.com>
1313 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1315 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1318 1999-08-16 Tom Tromey <tromey@cygnus.com>
1320 * configure: Rebuilt.
1321 * configure.in: Set DIVIDESPEC to empty string if compiler does
1322 not support -fuse-divide-subroutine.
1324 1999-08-14 Per Bothner <per@bothner.com>
1326 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1327 * java/lang/natClass.cc (initializeClass): Likewise.
1328 * java/lang/ClassLoader.java (resolveClass0): New static method.
1329 (resolveClass): Call resolveClass0.
1330 (findSystemClass): No longer static.
1332 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1334 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1336 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1338 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1341 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1343 * Makefile: Rebuilt.
1344 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1347 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1350 * configure: Rebuilt.
1351 * configure.in: Properly align --help output, fix capitalization
1353 * acinclude.m4: Likewise.
1355 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1357 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1359 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1360 (_Jv_callInterpretedMethod): Unused. Remove.
1361 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1363 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1364 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1365 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1366 * interpret.cc: use _Jv_word.
1367 * defineclass.cc: use_Jv_word.
1368 * resolve.cc: Use _Jv_word.
1369 (_Jv_ResolvePoolEntry): Return _Jv_word.
1370 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1371 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1373 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1376 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1378 * configure: Rebuilt.
1379 * configure.in (sched_yield): Try librt first, then libposix4.
1380 Add -lrt, -lposix4 to THREADSPEC.
1382 1999-08-08 Anthony Green <green@cygnus.com>
1384 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1386 1999-08-08 Anthony Green <green@cygnus.com>
1388 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1391 1999-08-08 Anthony Green <green@cygnus.com>
1395 * include/config.h.in: Rebuilt.
1396 * acconfig.h: Add INTERPRETER.
1398 * Makefile.in: Rebuilt.
1399 * Makefile.am (libffi_files): Identify the libffi object files for
1400 inclusion in libgcj.
1401 (LIBFFIINCS): Define.
1403 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1404 Dummy definition for configurations without an interpreter.
1406 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1407 java::lang::Boolean constructor.
1409 * include/java-interp.h: Always include java-cpool.h.
1411 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1412 when INTERPRETER not defined.
1414 * java/lang/Class.h (finalize): Define.
1416 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1417 IOException from File.getCanonicalPath.
1418 (getStream): Likewise.
1421 * THANKS: More thanks.
1423 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1425 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1427 (_Jv_PrepareClass): Allow non-abstract classes to
1428 have abstract subclasses.
1429 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1431 * interpret.cc (continue1/perform_invoke): Don't sign extend
1433 (continue1/lshl,lshr): Push long, not int.
1434 (continue1/ulshr): Use UINT64, not long long.
1435 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1437 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1438 * java/lang/FirstThread.java (run): Add top-level exception
1440 (run0): Renamed from run.
1442 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1444 * configure.in (--with-interpreter): Added.
1445 * include/config.h.in (INTERPRETER): Added.
1447 * java/lang/ClassLoader.java: File replaced.
1448 * java/lang/VMClassLoader.java: New file.
1449 * java/lang/natClassLoader.cc: New file.
1450 * gnu/gcj/runtime/MethodInvocation.java: New file.
1451 * gnu/gcj/util/path/SearchPath.java: New file.
1452 * gnu/gcj/util/path/PathEntry.java: New file.
1453 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1454 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1455 * gnu/gcj/util/path/URLPathEntry.java: New file.
1456 * gnu/gcj/util/path/CacheEntry.java: New file.
1457 * include/java-interp.h: New file.
1458 * include/java-cpool.h: New file.
1459 * include/java-insns.h: New file.
1460 * defineclass.cc: New file.
1461 * interpret.cc: New file.
1462 * resolve.cc: New file.
1464 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1465 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1466 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1468 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1469 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1471 (initializeClass): Use new JV_ prefixed names. Also, call
1472 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1474 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1475 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1476 JV_STATE_LINKED): New.
1477 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1478 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1479 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1480 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1481 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1482 _Jv_InterpMethodInvocation): New friends for interpreter.
1484 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1485 include/java-cpool.h and renamed with JV_ prefix.
1487 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1489 (_Jv_UnregisterClass): New decl.
1491 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1492 class loader argument.
1493 (_Jv_FindClass): Use class loader.
1495 * prims.cc (_Jv_makeUtf8Const): New function.
1496 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1497 (_Jv_NewPrimArray): Ditto.
1498 (_Jv_FindClassFromSignature): Ditto.
1499 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1500 * java/lang/reflect/natMethod.cc (getType): Ditto.
1502 * include/java-field.h (_Jv_Field::isRef): Make robust for
1503 non-resolved contexts.
1505 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1506 Also, don't mark class->next field.
1508 * java/lang/VirtualMachineError.java: Added FIXME note.
1510 * configure.in (INTERPSPEC): New spec.
1511 * libgcj.spec.in: Added INTERPSPEC.
1512 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1513 gnu/gcj/runtime/MethodInvocation.
1514 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1515 (ordinary_java_source_files): Added above mentioned java classes.
1517 * configure: Rebuilt.
1518 * Makefile.in: Rebuilt.
1520 1999-08-06 Tom Tromey <tromey@cygnus.com>
1522 * configure: Rebuilt.
1523 * configure.in: Look for sched_yield in -lrt.
1525 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1527 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1528 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1529 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1531 (toString): Print correctly when `country' is empty.
1533 1999-08-04 Per Bothner <per@bothner.com>
1535 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1537 1999-08-02 Tom Tromey <tromey@cygnus.com>
1539 * aclocal.m4, configure: Rebuilt for new libtool.
1541 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1543 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1544 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1545 * java/net/ServerSocket.java: Define ANY_IF.
1546 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1547 all network interfaces.
1548 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1549 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1551 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1553 * java/io/natFile.cc (performMkdir): Remove FIXME.
1554 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1556 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1558 * configure.in: Check for bstring.h.
1559 * configure, include/config.h.in: Rebuilt.
1560 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1561 * java/net/natPlainSocketImpl.cc: Likewise.
1563 1999-07-31 Tom Tromey <tromey@cygnus.com>
1568 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1570 * configure.in: Check for struct hostent_data and need for
1571 -D_REENTRANT for gethostbyname_r declaration.
1572 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1573 (lookup): Use hostent_data for fixed_buffer.
1574 * configure, include/config.h.in: Rebuilt.
1576 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1578 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1579 available. Don't cast memmove args to (void*).
1580 * configure.in: Do not abort if memmove is not available.
1582 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1584 * java/lang/natString.cc (substring): optimize where substring is
1586 * java/io/File.java (getName): don't return separator with file name.
1587 * java/io/natFile.cc (attr): fix overflow.
1589 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1591 * mauve-libgcj: Disable Object Serialization tests.
1593 1999-07-20 Warren Levy <warrenl@cygnus.com>
1595 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1596 Default to using PlainDatagramSocketImpl.
1597 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1599 1999-07-19 Tom Tromey <tromey@cygnus.com>
1601 * include/stamp-h.in: New file.
1603 1999-07-12 Tom Tromey <tromey@cygnus.com>
1605 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1608 1999-07-07 Andrew Haley <aph@cygnus.com>
1610 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1611 bytes to make it point after the instruction where the trap
1613 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1615 1999-07-07 Tom Tromey <tromey@cygnus.com>
1617 * mauve-libgcj: Explicitly enable formerly disabled java.text
1620 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1623 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1625 * java/net/URL.java (equals): Compare strings using String.equals.
1626 * java/net/URL.java (sameFile): Ditto.
1628 1999-07-02 Warren Levy <warrenl@cygnus.com>
1630 * configure: Rebuilt.
1631 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1632 * include/config.h.in: Rebuilt.
1633 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1634 (mcastGrp): Updated FIXME comments.
1635 (setOption): Fixed typo.
1636 (getOption):Implemented IP_MULTICAST_IF.
1638 1999-07-02 Warren Levy <warrenl@cygnus.com>
1640 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1641 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1642 (getTimeToLive): Implemented.
1643 (setOption): Implemented IP_MULTICAST_IF.
1645 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1647 * java/lang/String.java (toString): Check for this == null and throw
1648 NullPointerException.
1650 1999-07-01 Warren Levy <warrenl@cygnus.com>
1652 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1653 to count and revised comments to match.
1654 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1655 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1656 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1657 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1658 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1659 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1661 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1663 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1664 properly as count rather than outlength.
1665 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1666 output on overflow rather than buffer fill.
1667 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1668 if markPos is 0 and there is still room in the buffer.
1670 1999-07-01 Andrew Haley <aph@cygnus.com>
1672 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1673 This is a workaround for a bug in glibc's pthreads package which
1674 doesn't deliver any sigcontext information to a signal handler.
1676 1999-06-24 Tom Tromey <tromey@cygnus.com>
1678 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1679 * java/lang/fdlibm.h (HUGE): Conditionally define.
1681 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1683 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1684 * java/lang/e_log.c: Don't use __uint32_t.
1686 1999-05-27 Eric Christopher <echristo@cygnus.com>
1688 * configure: Rebuilt
1689 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1690 * acconfig.h: Rebuilt
1691 * include/config.h.in: Rebuilt
1693 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1694 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1695 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1696 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1697 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1698 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1699 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1700 and namespace collision with __uint32_t
1702 1999-06-23 Tom Tromey <tromey@cygnus.com>
1704 * java/util/zip/InflaterInputStream.java (read): Throw
1705 ZipException if inflater throws a DataFormatException.
1707 1999-06-23 Warren Levy <warrenl@cygnus.com>
1709 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1710 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1711 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1712 is not final per JDK.
1713 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1715 * java/util/zip/DataFormatException.java: Class extends Exception.
1716 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1717 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1718 * java/util/zip/ZipInputStream.java: ditto.
1719 (closeEntry): Changed method name to match JDK spec.
1721 1999-06-21 Tom Tromey <tromey@cygnus.com>
1723 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1726 * Makefile.in: Rebuilt.
1727 * Makefile.am (toolexeclibdir): Define as libdir when
1729 * configure: Rebuilt.
1730 * configure.in (USE_LIBDIR): New conditional.
1732 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1734 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1735 hostname in returned InetAddress objects.
1736 (getLocalHostname): Fix typo.
1737 * java/net/InetAddress.java (getByName): Set hostname on return
1739 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1742 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1744 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1745 interfaces if host==NULL.
1746 (accept): Throw message with InterruptedIOException.
1747 (getOption): Cache localAddress.
1748 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1749 'address' for DatagramSocket.
1750 (setTimeToLive): Fix compiler warnings.
1751 (getOption): Cache localAddress.
1752 * java/net/Socket.java (getLocalAddress): Don't need local
1753 InetAddress object. Add FIXME comment about calling checkConnect().
1754 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1755 connection queue to 50 as per JDK 1.2 docs.
1756 (ServerSocket(int,int)): Listen on all network interfaces by
1757 default, per JDK 1.2 docs.
1758 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1759 Add localAddress caching.
1761 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1763 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1765 (write(byte[],int,int)): ditto.
1767 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1769 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1771 1999-06-11 Warren Levy <warrenl@cygnus.com>
1773 * mauve-libgcj: Activated java.net Mauve tests.
1775 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1777 * java/net/natInetAddress.cc (aton): Fix typos.
1778 (lookup): Use a bigger buffer size for gethostbyname_r on all
1779 versions of glibc. Updated FIXME comment explaining this.
1780 Modified while loops to not set herr = ERANGE to work around glibc
1781 problems. Use user specified hostname in InetAddress result when
1782 available (consistent with JDK).
1784 1999-06-10 Warren Levy <warrenl@cygnus.com>
1786 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1787 Throw FileNotFoundException instead of IOException.
1789 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1791 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1792 in static field name.
1793 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1794 throughout rather than ParseException.
1796 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1798 * java/lang/Runtime.java (exec): Convert prog name and arguments
1800 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1801 environment array conversion. Preserve current environment if envp
1802 not passed. Preserve PATH unless explicitly specified.
1803 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1804 followed by EOF. Set a flag when a line is terminated by '\r' and
1805 ignore following '\n' if set.
1807 1999-06-02 Warren Levy <warrenl@cygnus.com>
1809 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1810 Ignore context if spec is an absolute URL. Fix braindead
1812 (hashCode): Use JDK 1.2 style algorithm.
1813 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1814 context URL properly.
1816 1999-05-30 Anthony Green <green@cygnus.com>
1818 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1819 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1821 1999-05-28 Warren Levy <warrenl@cygnus.com>
1823 * java/net/DatagramSocket.java (laddr): Removed.
1824 (DatagramSocket): Removed attempts to get or set laddr if null.
1825 (getLocalAddress): Reimplemented per spec.
1826 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1828 (joinGroup): Throw NullPointerException if any argument is null.
1829 (leaveGroup): ditto.
1830 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1831 * java/net/PlainSocketImpl.java (timeout): Added.
1832 (getInputStream): Added FIXME comment on how to support timeouts
1834 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1835 * java/net/Socket.java: Added FIXME comments to identify
1836 conflicting specs between the JCL and JDK 1.2 documents.
1837 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1838 if host is null. Get localport value resolved by kernel if bind
1840 (receive): Implemented support for timeouts in UDP.
1841 (setOption): Implemented based on natPlainSocketImpl version.
1843 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1844 resolved by kernel if bind lport is 0.
1845 (connect): Get localport value resolved by kernel if bind wasn't
1846 done to set localport.
1847 (accept): Implemented support for timeouts for ServerSocket.
1848 (setOption): Save value for SO_TIMEOUT.
1849 (getOption): Return timeout for SO_TIMEOUT.
1851 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1853 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1854 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1855 (setOption): Made abstract.
1856 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1857 to avoid cpp conflicts in native code.
1858 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1859 cpp conflicts in native code.
1860 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1861 * java/net/Socket.java (getLocalAddress): Implemented.
1862 (setTcpNoDelay): Implemented.
1863 (getTcpNoDelay): Implemented.
1864 (setSoLinger): Implemented.
1865 (getSoLinger): Implemented.
1866 (getSoTimeout): Verify class type.
1867 (setSendBufferSize): Implemented.
1868 (getSendBufferSize): Implemented.
1869 (setReceiveBufferSize): Implemented.
1870 (getReceiveBufferSize): Implemented.
1871 (toString): Prepended "Socket".
1872 * java/net/SocketImpl.java (toString): Rewritten.
1873 (getOption): Made abstract.
1874 (setOption): Made abstract.
1875 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1876 (setOption): Implemented.
1877 (getOption): Implemented.
1879 1999-05-26 Warren Levy <warrenl@cygnus.com>
1881 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1882 address when null. Set SO_REUSEADDR for multicasts.
1883 (getSoTimeout): Implemented.
1884 (setSoTimeout): Implemented.
1885 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1886 * java/net/MulticastSocket.java (getInterface): Implemented.
1887 (setInterface): Implemented.
1888 (setTimeToLive): Check for invalid ttl.
1889 (joinGroup): Verify multicast address and security.
1890 (leaveGroup): Verify multicast address and security.
1891 (send): Implemented.
1892 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1898 (getTTL): Implemented as non-native.
1902 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1903 (getSoTimeout): Implemented.
1904 (setSocketFactory): Made synchronized.
1905 * java/net/Socket.java (setSoTimeout): Implemented.
1906 (getSoTimeout): Implemented.
1907 (close): Made synchronized.
1908 (setSocketImplFactory): Made synchronized.
1909 * java/net/SocketImpl.java: Implement SocketOptions interface.
1910 * java/net/natInetAddress.cc: Corrected module name at top of file.
1911 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1912 (bind): Added FIXME.
1913 (peek): Implemented.
1919 (setOption): Implemented for SO_REUSEADDR.
1920 (getOption): Implemented for SO_REUSEADDR.
1922 1999-05-24 Tom Tromey <tromey@cygnus.com>
1924 * java/util/ResourceBundle.java (getBundle): Throw
1925 NullPointerException if baseName is null.
1927 1999-05-22 Tom Tromey <tromey@cygnus.com>
1929 * java/util/zip/ZipInputStream.java (fill): New method.
1930 (compressed_len): New instance variable.
1931 (getNextStream): Set it.
1932 (read): Reset inflater on EOF. Only read via `super' if entry is
1934 (skip): Only skip via `super' if entry is deflated.
1935 * java/util/zip/Deflater.java (last_input_count): Removed.
1936 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1938 (needsInput): Don't use last_input_count.
1939 (setInput): Don't set last_input_count.
1940 * java/util/zip/natInflater.cc (getRemaining): Return correct
1942 (inflate): Return 0 if input array is length 0.
1943 (setInput): Don't set last_input_count.
1944 * java/util/zip/Inflater.java (last_input_count): Removed.
1946 1999-05-21 Tom Tromey <tromey@cygnus.com>
1948 * Makefile.in: Rebuilt.
1949 * Makefile.am (INCLUDES): Added $(ZINCS).
1950 * configure: Rebuilt.
1951 * configure.in (ZINCS): New subst.
1953 1999-05-21 Andrew Haley <aph@cygnus.com>
1955 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1956 to signal options to allow the same exceptions to be rethrown
1959 1999-05-20 Andrew Haley <aph@cygnus.com>
1961 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1963 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1964 (INIT_FPE): Exception string made more informative.
1965 * include/sparc-signal.h (INIT_FPE): Exception string made more
1967 * testsuite/libjava.lang/Divide_1.java: New file.
1968 * testsuite/libjava.lang/Divide_1.out: New file.
1970 1999-05-19 Tom Tromey <tromey@cygnus.com>
1972 * aclocal.m4, configure: Rebuilt.
1973 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1975 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1978 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1980 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1982 (update): Fail in default case. Always initialize `strat'.
1984 * mauve-libgcj: Enable java.util.zip.
1986 1999-05-18 Warren Levy <warrenl@cygnus.com>
1988 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1989 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1990 PlainDatagramSocketImpl.java, and SocketOptions.java.
1991 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1992 * Makefile.in: Rebuilt.
1994 * java/net/DatagramPacket.java: New file.
1995 * java/net/DatagramSocket.java: New file.
1996 * java/net/DatagramSocketImpl.java: New file.
1997 * java/net/MulticastSocket.java: New file.
1998 * java/net/PlainDatagramSocketImpl.java: New file.
1999 * java/net/SocketOptions.java: New file.
2000 * java/net/natPlainDatagramSocketImpl.cc: New file.
2002 1999-05-18 Tom Tromey <tromey@cygnus.com>
2004 * java/util/zip/ZipOutputStream.java (level): Initial value is
2005 Deflater.DEFAULT_COMPRESSION.
2006 (close): New method.
2007 (closeEntry): Likewise.
2009 (put_version): Likewise.
2010 (write_entry): Likewise.
2011 (put2, put4): Now return `int'.
2012 (comment): Default to empty string.
2013 (bytes_written): New instance variable.
2015 * java/util/zip/ZipEntry.java (setComment): Limit length of
2017 (setCrc): Check CRC validity.
2018 (setExtra): Check argument validity.
2019 (setMethod): Likewise.
2020 (setSize): Likewise.
2021 (ZipEntry): Likewise.
2022 * include/javaprims.h: Updated namespace declarations.
2023 * Makefile.in: Rebuilt.
2024 * Makefile.am (ordinary_java_source_files): Mention new files.
2025 (nat_source_files): Likewise.
2026 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2029 (getInputStream): Handle compressed entries.
2030 * java/util/zip/GZIPOutputStream.java: New file.
2031 * java/util/zip/GZIPInputStream.java: New file.
2032 * java/util/zip/DataFormatException.java: New file.
2033 * java/util/zip/CheckedInputStream.java: New file.
2034 * java/util/zip/CheckedOutputStream.java: New file.
2035 * java/util/zip/InflaterInputStream.java: Implemented.
2036 * java/util/zip/natInflater.cc: New file.
2037 * java/util/zip/Deflater.java: Implemented.
2038 * java/util/zip/natDeflater.cc: New file.
2039 * java/util/zip/DeflaterOutputStream.java: Implemented.
2041 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2042 ZipException, not IOException.
2043 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2046 1999-05-17 Tom Tromey <tromey@cygnus.com>
2048 * java/lang/natSystem.cc (init_properties): URL now points to
2051 1999-05-12 Per Bothner <bothner@cygnus.com>
2053 * java/util/Calendar.java (set): First call computeFields if needed.
2054 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2056 1999-05-12 Tom Tromey <tromey@cygnus.com>
2058 * configure: Rebuilt.
2059 * configure.in: Look for -ldl when using the Boehm collector.
2060 Look for sched_yield in -lposix4.
2062 1999-05-12 Per Bothner <bothner@cygnus.com>
2064 * java/io/File.java (mkdirs): Handle a null parent directory.
2066 1999-05-12 Tom Tromey <tromey@cygnus.com>
2068 * include/javaprims.h: Updated namespace declarations.
2069 * classes.pl (scan): Uniquify class list.
2070 * Makefile.in, configure: Rebuilt.
2071 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2072 (built_java_source_files): New macro.
2073 (nat_headers): Added built_java_source_files.
2074 (javao_files): Likewise.
2075 (EXTRA_libgcj_la_SOURCES): Likewise.
2076 (libgcj.zip): Create built class files.
2077 ($(built_java_source_files:.java=.class)): New target.
2078 (jv_convert_LDADD): Added -L$(here)/.libs.
2079 * configure.in: Create links for ConcreteProcess.java and
2080 natConcreteProcess.cc.
2081 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2082 * java/lang/natEcosProcess.cc: New file.
2083 * java/lang/EcosProcess.java: New file.
2084 * java/lang/PosixProcess.java: New file.
2085 * java/lang/natPosixProcess.cc: New file.
2087 1999-05-12 Warren Levy <warrenl@cygnus.com>
2089 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2090 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2091 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2092 (connect): Throw ConnectException.
2094 1999-05-11 Tom Tromey <tromey@cygnus.com>
2096 * Makefile.in: Rebuilt.
2097 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2098 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2101 * Makefile.in: Rebuilt.
2102 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2103 and it causes problems with libtool.
2105 * Makefile.in, configure: Rebuilt.
2106 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2107 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2108 (jv_convert_DEPENDENCIES): Added ZDEPS.
2109 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2111 (THREADSPEC): Added `-L' to point to qthreads build directory.
2115 * configure, Makefile.in: Rebuilt.
2116 * Makefile.am (toolexeclib_DATA): New macro.
2117 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2118 Recognize --with-system-zlib.
2119 (GCSPEC): New subst.
2120 (THREADSPEC): New subst.
2121 (SYSTEMSPEC): New subst.
2122 (ZLIBSPEC): New subst.
2123 * libgcj.spec.in: New file.
2125 1999-05-10 Tom Tromey <tromey@cygnus.com>
2127 * java/io/InputStreamReader.java (read): If length is 0, return
2128 0. Reset `wpos' and `wcount' when buffer has been filled and
2131 * java/util/Properties.java (save): Removed `FIXME' comment.
2132 (load): Invalid characters in \u now treated as terminators.
2133 Make sure to append character resulting from `\' handling.
2134 Cast to `char' when appending to key or value.
2135 (skip_ws): Inverted test for whitespace.
2137 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2139 (readLine): Likewise.
2140 (readFully): Implemented.
2142 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2144 * java/awt/natToolkit.cc: Added copyright header.
2145 * java/util/zip/InflaterInputStream.java: Added copyright header.
2147 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2149 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2151 (getNextStream): Likewise.
2153 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2155 (getBundle): Don't explicitly throw null pointer exception.
2157 * gnu/gcj/RawData.java: Added copyright header.
2159 * include/jni.h (_Jv_va_list): Always define as va_list.
2161 1999-05-9 Anthony Green <green@cygnus.com>
2163 * java/text/DateFormat.java (computeInstance): Separate time
2165 (getDateTimeInstance): Ditto.
2166 (getDateTimeInstance(int,int)): New method.
2168 * Makefile.in: Rebuilt.
2169 * Makefile.am (ordinary_java_source_files): Add new classes.
2171 * java/util/PropertyResourceBundle.java: New file.
2172 * gnu/gcj/util/EnumerationChain.java: New file.
2174 1999-05-07 Tom Tromey <tromey@cygnus.com>
2176 * acconfig.h (GCJVERSION): New undef.
2177 * java/lang/natSystem.cc (init_properties): Define java.version,
2178 java.class.version, os.name, os.arch, os.version.
2179 Include <sys/utsname.h> if required.
2180 * configure: Rebuilt.
2181 * configure.in: Compute and define GCJVERSION.
2183 * java/lang/natSystem.cc (default_file_encoding): Now static.
2185 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2187 * libtool-version: New file.
2188 * Makefile.in: Rebuilt.
2189 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2192 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2193 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2196 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2197 (we pick those up already).
2199 1999-05-05 Per Bothner <bothner@cygnus.com>
2201 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2202 stub classes. (This is enough to get Kawa to compile against libgcj.)
2204 * gnu/gcj/RawData.java: New class.
2205 * doc/cni.sgml: Document RawData.
2207 * java/util/zip/InflaterInputStream.java: New stub class.
2208 * java/util/zip/ZipInputStream.java: New class. Partly works.
2209 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2210 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2211 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2212 * java/util/zip/ZipOutputStream.java: Start implementation.
2214 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2215 (default_file_encoding): New global, initial value is above macro.
2216 (init_properties): Default file.encoding to default_file_encoding.
2218 * Makefile.am: Add new classes.
2220 1999-05-05 Tom Tromey <tromey@cygnus.com>
2222 * Makefile.in: Rebuilt.
2223 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2224 (clean-local): New target
2226 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2227 (load, loadLibrary): Now native.
2229 * java/lang/Runtime.java (load, loadLibrary): Now native.
2230 (init): New native method.
2231 (Runtime): Use init.
2232 * prims.cc: Include <ltdl.h> if required.
2233 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2235 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2237 * configure.in: Switch from irix threads to posix threads
2238 * configure: Regenerate.
2240 1999-04-30 Tom Tromey <tromey@cygnus.com>
2242 * Makefile.in: Rebuilt.
2243 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2245 1999-04-29 Tom Tromey <tromey@cygnus.com>
2247 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2250 * java/util/Locale.java (Locale(String,String)): Implement in
2251 terms of 3-argument version; variant now defaults to empty
2253 (toString): Assume variant is not null.
2254 (equals): Assume all strings are not null.
2255 (Locale): Throw NullPointerException if any argument is null.
2257 * java/util/ResourceBundle.java (getBundle): Don't try the base
2258 name; now implicit in partialGetBundle call.
2259 (trySomeGetBundle): Search for parent bundles and call setParent
2261 (partialGetBundle): Added `langStop' argument. Use
2262 `Locale.toString' to compute bundleName.
2263 (resource_cache): New static field.
2264 (partialGetBundle): Cache the returned resource bundle. Now
2267 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2270 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2271 * java/text/natCollator.cc (decomposeCharacter): `base' now
2273 * Makefile.in: Rebuilt.
2274 * Makefile.am (ordinary_java_source_files): Added
2275 CollationElementIterator, CollationKey, Collator,
2277 (nat_source_files): Added natCollator.cc.
2278 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2279 (compare): Pass `this' to CollationElementIterator constructor.
2280 (getCollationElementIterator): Likewise.
2281 (ceiNext): Fix off-by-one error when finding initial substring.
2282 (next): Correctly mask off bits when computing return value.
2283 Fixed return values when one string is shorter than the other.
2284 * java/text/CollationElementIterator.java (collator): New field.
2285 (CollationElementIterator): Added collator argument.
2286 (next): Call ceiNext on collator object.
2288 1999-04-26 Tom Tromey <tromey@cygnus.com>
2290 * natCollator.cc: New file.
2292 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2293 (GregorianCalendar): Use it in all constructors.
2294 * java/util/Calendar.java (Calendar): Changed argument name to
2295 `zone' to match code.
2297 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2298 * java/text/CollationKey.java: New file.
2299 * java/text/CollationElementIterator.java: New file.
2300 * java/text/Collator.java: New file.
2301 * java/text/RuleBasedCollator.java: New file.
2303 * Makefile.in: Rebuilt.
2304 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2305 (jv_convert_LDADD): Explicltly add -lm -lc.
2307 1999-04-26 Tom Tromey <tromey@cygnus.com>
2309 * configure, Makefile.in: Rebuilt.
2310 * configure.in: Added AM_PROG_LIBTOOL.
2311 (GCOBJS): Use `.lo' form of files.
2312 (THREADOBJS): Likewise.
2313 (GCDEPS): Use `.la' form of library.
2314 (GCLIBS): Set to be the same as GCDEPS.
2315 (THREADDEPS): Use `.la' form of library.
2316 (THREADLIBS): Set to be the same as THREADDEPS.
2317 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2318 toolexeclib_LIBRARIES.
2319 (libgcj_la_SOURCES): Renamed for libtoolization.
2320 (EXTRA_libgcj_la_SOURCES): Likewise.
2321 (libgcj_la_DEPENDENCIES): Likewise.
2322 (libgcj_la_LIBADD): Likewise.
2323 ($(nat_files)): Use LTCXXCOMPILE.
2324 ($(c_files)): Use LTCOMPILE.
2325 (GCJCOMPILE): New macro.
2327 (.java.o): Likewise.
2328 ($(javao_files)): Likewise.
2329 (jv_convert_LINK): Use LIBTOOL.
2330 (nat_files): Use `.lo' files.
2331 (c_files): Likewise.
2332 (javao_files): Likewise.
2333 (.class.lo): Renamed.
2334 (.java.lo): Likewise.
2335 ($(nat_files)): Depend on %.lo.
2336 ($(c_files)): Likewise.
2337 ($(javao_files)): Likewise.
2338 (jv_convert_LDADD): Link against .lo files.
2339 (jv_convert_DEPENDENCIES): Depend on .lo files.
2340 (maintainer-check): Depend on libgcj.la, but examine .a file.
2341 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2342 (libgcj_la_LDFLAGS): New macro.
2344 1999-04-23 Warren Levy <warrenl@cygnus.com>
2346 * Makefile.am: Added URLDecoder and URLEncoder.
2347 * Makefile.in: Rebuilt.
2349 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2350 setSocketImplFactory to match spec.
2351 * java/net/Socket.java (getSoLinger): Changed return type to
2354 * java/net/URLDecoder.java: New file.
2355 * java/net/URLEncoder.java: New file.
2357 1999-04-21 Tom Tromey <tromey@cygnus.com>
2359 * java/lang/natString.cc (getBytes): Reverted earlier change and
2360 applied correct fix from Per Bothner.
2362 * java/lang/String.java: Don't throw
2363 UnsupportedEncodingException.
2365 * java/lang/natString.cc (getBytes): Correctly size result
2366 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2368 1999-04-20 Andrew Haley <aph@cygnus.com>
2370 * include/sparc-signal.h: new file.
2371 * configure.in: include/sparc-signal.h added.
2372 * configure: regenerated.
2373 * prims.cc (JvRunMain): signal handling code rewritten to be more
2375 (catch_segv): ditto.
2377 * include/i386-signal.h: reorganized.
2378 * include/default-signal.h: reorganized.
2380 1999-04-19 Tom Tromey <tromey@cygnus.com>
2382 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2383 once. From Anthony Green.
2385 1999-04-19 Andrew Haley <aph@cygnus.com>
2387 * Makefile.in: Processed with new automake.
2389 1999-04-19 Tom Tromey <tromey@cygnus.com>
2391 * include/javaprims.h: Removed security namespace.
2393 1999-04-20 Anthony Green <green@cygnus.com>
2395 * java/io/PrintStream.java (println): Remove extra println.
2397 1999-04-19 Anthony Green <green@cygnus.com>
2399 * Makefile.in: Rebuilt.
2400 * Makefile.am (ordinary_java_source_files): Add new security files.
2402 * java/security/NoSuchAlgorithmException.java,
2403 java/security/MessageDigest.java: New files.
2405 * include/javaprims.h: Add security namespace.
2407 1999-04-16 Per Bothner <bothner@cygnus.com>
2409 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2410 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2411 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2412 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2413 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2414 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2415 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2416 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2417 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2418 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2419 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2420 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2421 * Makefile.am: Various changes for new files and conversions.
2423 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2424 New overloading, allows greater efficiency.
2425 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2426 New overloading (for efficiency - avoids copying).
2428 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2429 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2431 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2432 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2433 (writeChars): Don't be quite so eager to flush.
2434 * java/io/PrintStream.java: Rewrite. Now more similar to
2435 OutputStreamWriter, using explicit UnicodeToBytes converter.
2436 Also, autoflush does not need to flush so often.
2437 * java/lang/natString.cc (getBytes): More efficient algorithm.
2438 (init(jbyteArray,jint,jint,jstring)): More efficient.
2440 1999-04-15 Warren Levy <warrenl@cygnus.com>
2442 * Makefile.am (ordinary_java_source_files): Added new Connection
2443 and Handler classes in gnu.gcj.protocol.file package.
2444 * Makefile.in: Rebuilt.
2446 * gnu/gcj/protocol/file/Connection.java: New file.
2447 * gnu/gcj/protocol/file/Handler.java: New file.
2448 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2449 if doInput allows input.
2450 (getOutputStream): Check if doOutput allows output.
2451 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2453 1999-04-14 Tom Tromey <tromey@cygnus.com>
2455 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2456 buffer larger to work around bug.
2457 From Bryce McKinlay <bryce@albatross.co.nz>.
2459 1999-04-14 Andrew Haley <aph@cygnus.com>
2461 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2462 NaNs are always converted to the same long value.
2463 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2466 1999-04-13 Tom Tromey <tromey@cygnus.com>
2468 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2469 instead switch on actual element type.
2471 * Makefile.in: Rebuilt.
2472 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2474 1999-04-13 Andrew Haley <aph@cygnus.com>
2476 * include/i386-signal.h, include/default-signal.h: New files.
2477 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2479 (catch_fpe): New function.
2480 * configure.in: Make link to appropriate include/java-signal.h.
2481 * configure: Rebuilt.
2482 * Makefile.am: include/java-signal.h added to dependency list.
2483 * Makefile.in: Rebuilt.
2485 1999-04-12 Urban Widmark <urban@svenskatest.se>
2487 * java/io/DataInputStream.java (readLine): Corrected handling of
2488 empty lines, from null to "".
2490 1999-04-12 Tom Tromey <tromey@cygnus.com>
2492 * Makefile.in: Rebuilt.
2493 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2495 * java/lang/natSystem.cc (SystemClass): New define.
2496 (init_properties): Synchronize.
2498 1999-04-08 Geoff Berry <gcb@gnu.org>
2500 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2501 * natPlainSocketImpl.cc (accept): Add missing else if check
2504 1999-04-08 Tom Tromey <tromey@cygnus.com>
2506 * java/lang/Long.java (parseLong): Corrected overflow detection
2508 * java/lang/Integer.java (parseInt): Corrected overflow detection
2511 * java/io/PrintStream.java (print): Handle null string argument.
2512 (println): Likewise.
2514 1999-04-07 Warren Levy <warrenl@cygnus.com>
2516 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2517 Set count to 0 when InputStreamReader returns -1 for EOF.
2519 1999-04-07 Tom Tromey <tromey@cygnus.com>
2521 * mauve-libgcj: Omit java.text.Collator,
2522 java.text.RuleBasedCollator.
2524 1999-04-06 Tom Tromey <tromey@cygnus.com>
2526 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2527 IOException from getHttpHeaders().
2528 (getHeaderFieldKey): Likewise.
2530 * include/javaprims.h: Regenerated declarations.
2532 * Makefile.in: Rebuilt.
2533 * Makefile.am (ordinary_java_source_files): Updated for removed
2536 1999-04-06 Per Bothner <bothner@cygnus.com>
2538 * java/util/zip/Adler32.java: New class.
2539 * java/util/zip/CRC32.java: Add working method bodies.
2540 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2541 * Makefile.in: Re-generate.
2543 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2545 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2546 from version in removed www hierarchy.
2547 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2548 version in removed www hierarchy.
2550 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2551 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2552 * gnu/gcj/www/protocol/http: Removed dir.
2553 * gnu/gcj/www/protocol: Removed dir.
2554 * gnu/gcj/www: Removed dir.
2556 * java/net/HttpURLConnection.java: Revised comments to indicate
2557 missing JDK 1.2 methods.
2559 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2560 hierarchy rather than the gnu/gcj/www/protocol one.
2561 * java/net/URLConnection.java: Updated status comments.
2562 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2563 the gnu/gcj/www/content one.
2565 1999-04-06 Per Bothner <bothner@cygnus.com>
2567 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2568 The gen-from-JIS program is in $(CONVERT_DIR).
2570 1999-04-06 Tom Tromey <tromey@cygnus.com>
2572 * mauve-libgcj: Renamed from mauve-libjava.
2574 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2576 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2577 (getResponseMessage): Implemented.
2578 (getResponseVals): New private method.
2580 * java/net/URLConnection.java (getContent): Implemented.
2581 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2583 1999-04-05 Tom Tromey <tromey@cygnus.com>
2585 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2586 (jv_convert_SOURCES): Renamed.
2587 (EXTRA_jv_convert_SOURCES): Likewise.
2588 (jv_convert_LDFLAGS): Likewise.
2589 (jv_convert_LINK): Likewise.
2590 (jv_convert_LDADD): Likewise.
2591 (jv_convert_DEPENDENCIES): Likewise.
2593 * Makefile.in: Rebuilt.
2594 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2597 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2599 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2600 method for comparison.
2602 * java/net/URLConnection.java (getContentLength): Implemented.
2603 (getContentType): Implemented.
2604 (getContentEncoding): Implemented.
2605 (getExpiration): Implemented.
2606 (getDate): Implemented.
2607 (getLastModified): Implemented.
2608 (getHeaderFieldInt): Implemented.
2609 (getHeaderFieldDate): Implemented.
2611 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2613 * java/net/URLConnection.java (toString): Implemented.
2614 (setContentHandlerFactory): Implemented.
2615 (setContentHandler): Wrote new private helper method.
2617 1999-04-01 Tom Tromey <tromey@cygnus.com>
2619 * Makefile.in: Rebuilt.
2620 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2621 of 1999-03-31; we always want to build all the .class files.
2622 Depend on java_source_files, not libgcj.zip.
2623 (nat_headers): Define in terms of ordinary_java_source_files.
2625 1999-03-31 Tom Tromey <tromey@cygnus.com>
2627 * Makefile.in: Rebuilt.
2628 * Makefile.am (special_java_source_files): New macro.
2629 (java_source_files): Use it.
2630 (ordinary_java_source_files): New macro.
2631 (java_source_files): Use it.
2632 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2633 creating headers for those files with hand-maintained headers.
2635 * include/javaprims.h: Regenerated namespace declarations.
2636 * classes.pl (scan): Include [0-9] in regexp for matching class
2637 names; for java.util.zip.CRC32.
2639 * Makefile.in: Rebuilt.
2640 * Makefile.am (nat_headers): Redefined to generate all possible
2643 * java/util/zip/ZipException.java: In package java.util.zip, not
2646 1999-03-30 Tom Tromey <tromey@cygnus.com>
2648 * configure: Rebuilt.
2649 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2650 eh-common.h when not building in tree with gcc.
2652 * Makefile.in: Rebuilt.
2653 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2654 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2656 ($(java_source_files:.java=.class)): New target.
2658 * Makefile.in: Rebuilt.
2659 * Makefile.am (java_source_files): Added
2660 java/net/HttpURLConnection.java and
2661 gnu/gcj/www/protocol/http/Connection.java.
2663 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2665 * gnu/gcj/www/protocol/http/Connection.java: New file.
2666 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2667 * java/net/HttpURLConnection.java: New file.
2668 * java/net/URLConnection.java (getHeaderField): Implemented default.
2669 (getHeaderFieldKey): Implemented default method.
2671 1999-03-30 Tom Tromey <tromey@cygnus.com>
2673 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2675 * java/util/zip/Deflater.java: Added copyright header.
2676 * java/util/zip/CRC32.java: Added copyright header.
2678 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2679 that it is automatically generated.
2680 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2682 * gnu/gcj/convert/BytesToUnicode.java,
2683 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2684 gnu/gcj/convert/Input_EUCJIS.java,
2685 gnu/gcj/convert/Input_UTF8.java,
2686 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2687 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2688 gnu/gcj/convert/Output_8859_1.java,
2689 gnu/gcj/convert/Output_JavaSrc.java,
2690 gnu/gcj/convert/Output_UTF8.java,
2691 gnu/gcj/convert/UnicodeToBytes.java,
2692 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2694 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2696 * Makefile.in, configure: Rebuilt.
2697 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2698 not if test subdir exists.
2699 (--enable-gcj-classes): Removed; gcj always used to generate
2701 (JAVA, JAVAC): Removed.
2702 (--enable-single-compilation, --enable-source-compilation):
2705 (NATIVE): New conditional.
2706 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2707 `install-exec' to work.
2708 (toolexeclibdir): Likewise.
2709 (toollib_LIBRARIES): Likewise.
2710 (AM_MAKEFLAGS): Don't pass tooldir.
2712 (javao_files): Redefined.
2713 (java_source_files): New macro.
2714 (c_source_files): New macro.
2715 (c_files): Redefined in terms of c_source_files.
2716 (java_io_files, java_lang_files, java_net_files, java_text_files,
2717 java_util_files, gnu_files, java_files): Removed.
2718 (class_io_files, class_lang_files, class_net_files,
2719 class_text_files, class_util_files, class_gnu_files, class_files):
2721 (nat_source_files): New macro.
2722 (nat_files): Redefined in terms of nat_source_files.
2723 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2724 java_source_files. Removed no-such-file.c.
2726 (ETAGS_ARGS): Removed.
2727 (TAGS_DEPENDENCIES): Likewise.
2728 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2730 (src_io_files, src_lang_files, src_text_files, src_util_files,
2731 src_gnu_files): Removed.
2732 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2733 (BUILT_SOURCES): Removed.
2734 (header-check): New target.
2736 (noinst_PROGRAMS): New macro.
2737 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2739 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2740 (gen-from-JIS): Build in top directory.
2741 (convert_source_files): New macro.
2742 (convert_SOURCES): New macro.
2743 (convert_LDFLAGS): Likewise.
2744 (convert_LINK): Likewise.
2745 (convert_LDADD): Likewise.
2746 (convert_DEPENDENCIES): Likewise.
2748 (gen-from-JIS): Removed.
2749 (gen_from_JIS_SOURCES): New macro.
2750 (gen_from_JIS_LDADD): Likewise.
2751 (gen_from_JIS_DEPENDENCIES): Likewise.
2753 * configure: Rebuilt.
2754 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2755 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2756 when defining conditional.
2758 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2760 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2761 The Unicode Consortium does not permit their re-distribution.
2762 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2763 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2765 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2767 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2769 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2771 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2772 from Unicode Consortium.
2773 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2774 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2775 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2776 New tables, generated using gen-from-JIS.
2777 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2778 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2779 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2780 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2782 * gnu/gcj/convert/Convert.java: New application.
2783 * Makefile.am, Makefile.in (convert): New program, using Convert.
2784 Build the various JIS conversion tables (in maintainer mode).
2786 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2788 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2790 * java/net/URL.java (URL): Deal with null property value. Use "."
2791 as separator in building class name.
2792 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2793 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2794 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2795 beginning of the substring rather than 'start'.
2797 1999-03-26 Tom Tromey <tromey@cygnus.com>
2799 * include/java-chartables.h: Rebuilt.
2800 * include/java-chardecomp.h: New file.
2801 * chartables.pl: Generate output files directly. Added support
2802 for generating decomposition header.
2803 (canonical_decomposition, full_decomposition): New globals.
2804 (DECOMPOSITION): New constant.
2805 (process_char): Call add_decomposition.
2806 (add_decomposition): New sub.
2807 (write_decompositions): New sub.
2809 1999-03-25 Tom Tromey <tromey@cygnus.com>
2811 * java/text/CollationElementIterator.java: New file.
2813 * mauve-libjava: Omit StringTest.
2815 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2817 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2818 without a '/' when parsing protocol. Handle ref outside of parseURL.
2819 (hashCode): Implemented.
2820 (set): Don't expand -1 to default port.
2821 (getDefaultPort): Removed.
2823 * java/net/URLStreamHandler.java (parseURL): Implemented.
2824 (toExternalForm): Implemented.
2826 1999-03-23 Tom Tromey <tromey@cygnus.com>
2828 * java/text/BreakIterator.java (getSentenceInstance):
2830 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2832 * Makefile.in: Rebuilt.
2833 * Makefile.am (nat_headers): Added IllegalAccessException.
2834 * java/lang/natClass.cc (newInstance): Throw
2835 IllegalAccessException, not IllegalAccessError.
2836 Include IllegalAccessException.h.
2838 1999-03-22 Tom Tromey <tromey@cygnus.com>
2840 * gnu/gcj/text/LineBreakIterator.java: New file.
2841 * java/text/BreakIterator.java (getLineInstance): Implemented.
2843 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2844 copy constructor private.
2845 (previous, next): Removed erroneous comment about line
2847 (previous): Correctly recognize break between non-letter on the
2848 left and letter on the right. Handle apostrophes correctly.
2850 * java/text/BreakIterator.java (getWordInstance): Implemented.
2851 * gnu/gcj/text/WordBreakIterator.java: New file.
2852 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2854 * gnu/gcj/text/BaseBreakIterator.java: New file.
2856 1999-03-19 Tom Tromey <tromey@cygnus.com>
2858 * java/text/BreakIterator.java: New file (partially stubbed out).
2859 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2861 * include/config.h.in: Rebuilt.
2862 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2863 (HAVE_TIMEZONE): Likewise.
2864 * configure: Rebuilt.
2865 * configure.in: Added timezone checks.
2866 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2869 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2871 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2872 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2873 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2874 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2875 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2876 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2877 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2878 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2880 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2881 (BSD_COMP): Kludge needed for Solaris2.
2883 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2885 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2886 URL(java.net.URL, string, URLStreamHandler) and call it with a
2887 null handler. In latter constructor, added SecurityManager check.
2888 (set): Expect null handler on bad protocol rather than an exception.
2889 (setURLStreamHandler): Simplified exception handling; return null
2890 on invalid protocol.
2892 1999-03-18 Tom Tromey <tromey@cygnus.com>
2894 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2896 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2898 Include PrintStream.h, InputStream.h.
2899 * java/lang/System.java (ForwardingInputStream,
2900 ForwardingOutputStream): Removed.
2901 (setErr, setIn, setOut): Now native.
2903 Reverted patch from 1999-02-12 to work around problem in
2905 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2906 (_Jv_eh_free): Use free.
2908 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2909 for path name. Minor formatting fixes.
2911 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2913 * prims.cc (fail_on_finalization): New function.
2914 (_Jv_GCWatch): Likewise.
2916 * prims.cc (JvRunMain): Initialize `nullp'.
2917 (nullp): New global.
2918 (catch_segv): Throw nullp.
2920 * Makefile.in: Rebuilt.
2921 * Makefile.am (ZIP): In "null target" case, zip is found in the
2924 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2928 * java/lang/StringBuffer.java (StringBuffer): Don't use
2929 ensureCapacity to set initial capacity.
2930 (capacity): Subtract `length' from return result.
2932 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2934 * java/io/natFileDescriptorPosix.cc (open): Throw
2935 FileNotFoundException, but with filename and errno in msg.
2937 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2939 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2940 functionality folded into java/net/URL.java per spec.
2942 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2943 than EEXIST for throwing FileNotFoundException.
2945 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2946 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2948 * java/net/URLStreamHandler.java (parseURL): Added stub.
2950 1999-03-15 Andrew Haley <aph@cygnus.com>
2952 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2955 1999-03-15 Andrew Haley <aph@cygnus.com>
2957 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2960 1999-03-12 Tom Tromey <tromey@cygnus.com>
2962 * prims.cc (catch_segv): New function.
2963 Include <signal.h> if HANDLE_SEGV defined. Include
2964 NullPointerException.h.
2965 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2968 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2969 a SimpleDateFormat, not just a DateFormat.
2970 (defaultCenturyStart, formatData, pattern): Now private.
2971 (append): Now `final'. Use `NumberFormat.format'.
2973 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2975 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2978 * java/text/MessageFormat.java (format): Use default MessageFormat
2980 (parse, parseObject): Wrote.
2982 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2985 1999-03-12 Andrew Haley <aph@cygnus.com>
2987 * java/lang/String.java (indexOf): Replace with native method for
2989 * java/lang/natString.cc (IndexOf): As above.
2991 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2992 Argument check corrected.
2993 (init(jbyteArray,jint,jint,jstring)): Likewise.
2995 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2996 1.2 compliant method.
2998 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3000 * java/lang/Float.java (byteValue, shortValue): Likewise.
3002 1999-03-11 Tom Tromey <tromey@cygnus.com>
3004 * java/text/DecimalFormat.java (parse): Wrote.
3006 * java/text/ChoiceFormat.java (parse): Set error index on
3007 ParsePosition object.
3009 * java/lang/Integer.java (parseInt): Throw exception on overflow
3010 when intermediate result is most negative number. Changed
3011 overflow detection as well.
3012 * java/lang/Long.java (parseLong): Likewise.
3014 * configure, Makefile.in: Rebuilt.
3015 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3016 CANADIAN when building in source tree that doesn't include gcc.
3017 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3020 * java/text/ChoiceFormat.java (nextDouble): Correct some
3021 off-by-one errors when masking or adding.
3023 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3024 parameter, if given. Use `%', not IEEEremainder.
3025 (scanFix): Throw error if multiplier already set.
3026 (computePattern): Wrote.
3028 1999-03-11 Andrew Haley <aph@cygnus.com>
3030 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3032 (nextDouble): Corrected masking logic. Handle interaction between
3033 `next' and negative numbers.
3035 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3037 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3038 * java/net/URL.java: Added general comments.
3040 1999-03-10 Tom Tromey <tromey@cygnus.com>
3042 * java/text/ChoiceFormat.java (parse): Wrote.
3044 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3046 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3047 Create ChoiceFormat objects.
3048 (format): Special-case ChoiceFormat.
3049 (scanFormatElement): Include { and } in generated style string.
3051 1999-03-09 Tom Tromey <tromey@cygnus.com>
3053 * java/text/ChoiceFormat.java: New file.
3055 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3057 * java/net/BindException.java: Created.
3058 * java/net/ConnectException.java: Created.
3059 * java/net/ContentHandler.java: Created.
3060 * java/net/ContentHandlerFactory.java: Created.
3061 * java/net/FileNameMap.java: Created.
3062 * java/net/MalformedURLException.java: Created.
3063 * java/net/NoRouteToHostException.java: Created.
3064 * java/net/ProtocolException.java: Created.
3065 * java/net/ServerSocket.java (@author): Fixed typo.
3066 * java/net/Socket.java (@author): Fixed typo.
3067 * java/net/SocketImpl.java (@author): Fixed typo.
3068 * java/net/SocketImplFactory.java (@author): Fixed typo.
3069 * java/net/URL.java: Created - nearly complete.
3070 * java/net/URLConnection.java: Created - near-empty stub.
3071 * java/net/URLStreamHandler.java: Created - incomplete stub.
3072 * java/net/URLStreamHandlerFactory.java: Created.
3073 * java/net/UnknownServiceException.java: Created.
3075 1999-03-09 Tom Tromey <tromey@cygnus.com>
3077 * java/lang/System.java (ForwardingInputStream): New class.
3078 (ForwardingOutputStream): Likewise.
3079 (in, out, err): Now `final' forwarding streams.
3080 (setIn, setOut, setErr): Use appropriate method on forwarding
3083 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3086 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3088 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3089 * java/util/zip/Checksum.java: New interface (complete).
3090 * java/util/zip/Deflater.java: New class (near-empty stub).
3091 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3092 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3093 * java/util/zip/ZipEntry.java: New class (complete).
3094 * java/util/zip/ZipException.java: New class (complete).
3095 * java/util/zip/ZipFile.java: New class (incomplete stub).
3096 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3098 1999-03-09 Tom Tromey <tromey@cygnus.com>
3100 * java/text/MessageFormat.java (MessageFormatElement): Removed
3101 `public' specifiers.
3103 * java/text/DecimalFormat.java (scanFormat): Increment index
3104 before processing exponential format. Fixed a couple typos in
3106 (format): Correct normalization of exponent.
3108 1999-03-08 Tom Tromey <tromey@cygnus.com>
3110 * java/text/SimpleDateFormat.java (parse): Throw
3111 IllegalArgumentException, not ParseException.
3113 1999-03-05 Tom Tromey <tromey@cygnus.com>
3115 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3116 when constructing DateFormatSymbols. Initialize numberFormat
3117 field of superclass.
3119 * java/text/DateFormat.java (equals): Rewrote.
3120 (getAvailableLocales): New method.
3121 (getDateInstance): New methods.
3122 (getDateTimeInstance): Likewise.
3123 (getTimeInstance): Likewise.
3124 (getInstance): New method.
3125 (computeInstance): New method.
3127 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3129 (safeGetResource): New method.
3130 (DateFormatSymbols): Use Locale paramater.
3131 (equals): Now protected.
3132 Made instance variables private.
3134 1999-03-04 Tom Tromey <tromey@cygnus.com>
3136 * java/text/DecimalFormat.java: New file.
3138 * java/text/NumberFormat.java (groupingUsed,
3139 maximumFractionDigits, maximumIntegerDigits,
3140 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3142 (setDecimalSeparatorAlwaysShown, setMultiplier,
3143 setPositivePrefix): Removed.
3144 (setMinimumFractionDigits, setMaximumFractionDigits):
3146 (format): Now final.
3147 Added many new methods.
3149 * Makefile.in: Rebuilt.
3150 * Makefile.am (gnu_files): New macro.
3151 (java_files): Added gnu_files.
3152 (class_gnu_files): New macro.
3153 (class_files): Use it.
3154 (src_gnu_files): New macro.
3155 (gnu.o): New target.
3156 (javao_files): Added gnu.o.
3158 * gnu/gcj/text/LocaleData_en_US.java: New file.
3159 * gnu/gcj/text/LocaleData_en.java: New file.
3160 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3161 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3162 (safeGetString): New method.
3163 (safeGetChar): Likewise.
3165 1999-03-03 Tom Tromey <tromey@cygnus.com>
3167 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3170 * java/text/FieldPosition.java (equals): Don't check for null
3171 object; instanceof does this.
3173 * java/util/Locale.java (clone): New method.
3176 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3178 * doc/cni.sgml: New file.
3180 1999-03-03 Tom Tromey <tromey@cygnus.com>
3182 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3184 * java/text/DecimalFormatSymbols.java: New file.
3186 1999-03-02 Tom Tromey <tromey@cygnus.com>
3188 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3190 * configure: Rebuilt.
3191 * configure.in: Check for sys/filio.h.
3193 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3195 (load): Always throw UnsatisfiedLinkError.
3196 (loadLibrary): Likewise.
3198 1999-03-02 Anthony Green <green@cygnus.com>
3200 * LIBGCJ_LICENSE: New file.
3201 * LIBJAVA_LICENSE: Removed.
3202 * Many files: libjava now libgcj.
3204 1999-03-02 Tom Tromey <tromey@cygnus.com>
3206 * include/java-chartables.h: Rebuilt.
3207 * chartables.pl (print_block): Make table `const'.
3208 (print_numerics): Likewise.
3209 (print_single_map): Likewise.
3210 (print_all_block): Likewise.
3211 (print_case_table): Likewise.
3212 (print_fast_tables): Likewise.
3213 * java/lang/natCharacter.cc (table_search): `table' argument now
3216 1999-03-01 Tom Tromey <tromey@cygnus.com>
3218 * java/util/Date.java (before, after): Inverted logic.
3220 * java/util/Date.java (parse): Handle case where first character
3221 in string is open parenthesis.
3222 (skipParens): Rewrote.
3224 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3225 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3227 * java/util/Date.java (parse): Correctly compute beginning of
3230 * java/util/Hashtable.java (get): Throw NullPointerException if
3232 (containsKey): Likewise.
3234 * java/util/Properties.java (list): Truncate value to 37
3235 characters and add `...'.
3237 * java/lang/Byte.java (parseByte): Pass `radix' to
3240 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3242 Include System.h, PrintStream.h.
3244 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3247 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3249 * configure: Rebuilt.
3250 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3253 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3255 * java/lang/SecurityManager.java: Import java.net.*.
3256 (checkMulticast): New methods.
3258 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3260 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3261 (nat_files): Add java/lang/reflect/natArray.o.
3262 (nat_headers): Add Field.h and NoSuchFieldException.h.
3264 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3265 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3266 (_Jv_FromReflectedField): Fix buglet.
3267 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3268 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3269 * prims.cc (_Jv_Abort): Include message in print-out.
3271 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3272 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3273 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3275 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3276 * include/config.h.in (HAVE_PWD_H): New feature macro.
3277 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3278 user.name, user.home, user.dir.
3280 * java/lang/reflect/Array.java: New class.
3281 * java/lang/reflect/natArray.cc: New native methods.
3282 * include/javaprims.h: Declare java::lang::reflect::Array.
3284 * java/lang/Class.h (getField): New private method. Add friends.
3285 * java/lang/Class.java (getField): Add private overload.
3286 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3287 getDeclaredMethods): Add working implementations.
3288 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3289 Finish implementation, except for access control.
3291 * java/lang/reflect/Modifier.java (toString): New overload.
3292 * include/java-method.h: New file.
3293 * java/lang/reflect/Method.java (index): Replaced by offset field.
3294 Remove various private fields - get them from _Jv_Field instead.
3295 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3296 New method implementations.
3298 * java/text/NumberFormat.java: Add a bunch of methods.
3300 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3302 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3304 1999-02-26 Tom Tromey <tromey@cygnus.com>
3306 * include/config.h.in: Rebuilt.
3307 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3308 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3309 HAVE_GETHOSTBYADDR_R): New defines.
3310 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3311 gethostbyaddr_r if available.
3313 * configure: Rebuilt.
3314 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3316 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3320 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3321 * prims.cc (_Jv_AllocBytesChecked): New function.
3323 * Makefile.in: Rebuilt.
3324 * Makefile.am (SUBDIRS): Removed `test'.
3325 * configure: Rebuilt.
3326 * configure.in: Don't build test/Makefile.
3327 * test/*: Removed all files.
3329 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3331 * java/lang/reflect/Constructor.java: Make class final to match spec.
3332 * java/lang/reflect/Method.java: Ditto.
3334 1999-02-25 Tom Tromey <tromey@cygnus.com>
3336 * java/net/natInetAddress.cc: Include <sys/types.h> before
3338 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3341 * java/net/natInetAddress.cc: Declare gethostname if required.
3342 * include/config.h.in: Rebuilt.
3343 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3344 * configure: Rebuilt.
3345 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3346 declared in unistd.h.
3348 1999-02-24 Tom Tromey <tromey@cygnus.com>
3350 * Makefile.in: Rebuilt.
3351 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3352 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3353 from private to "none".
3355 * include/javaprims.h: Regenerated class declarations with new
3357 * classes.pl (scan): Only generate decls for java.lang, java.io,
3360 1999-02-24 Tom Tromey <tromey@cygnus.com>
3362 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3363 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3365 1999-02-23 Tom Tromey <tromey@cygnus.com>
3367 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3368 not already defined.
3369 * java/io/natFile.cc (_REENTRANT): Only define if not already
3371 * include/config.h.in: Rebuilt.
3372 * acconfig.h (HAVE_BOEHM_GC): New define.
3373 * configure: Rebuilt.
3374 * configure.in: Define HAVE_BOEHM_GC if using it.
3375 * posix-threads.cc: Include boehm-config.h and gc.h if
3377 * include/posix-threads.h: Added explanatory note about Boehm GC.
3379 * java/io/BufferedReader.java (readLine): Only return null when
3380 EOF seen before any characters read. (In particular, an empty
3381 line should not return null.)
3383 * java/io/BufferedInputStream.java (read): Only refill once per
3386 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3387 java.lang.Character.classify12, java.lang.String.hash,
3388 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3389 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3391 * java/text/StringCharacterIterator.java (setIndex): No error if
3393 (next): Check for `pos == end', not `end - 1'.
3394 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3395 for null text in each constructor.
3396 (clone): Fixed order of arguments to constructor.
3398 1999-02-22 Tom Tromey <tromey@cygnus.com>
3400 * include/config.h.in: Rebuilt.
3401 * acconfig.h (HAVE_INET6): New define.
3402 (HAVE_SOCKLEN_T): Likewise.
3403 * java/net/PlainSocketImpl.java: Added copyright header.
3404 * java/net/natPlainSocketImpl.cc: Added copyright header.
3405 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3407 (connect): Likewise.
3409 (socklen_t): New typedef.
3410 (accept): Use socklen_t.
3411 * java/net/natInetAddress.cc: Added copyright header.
3412 (HAVE_GETHOSTNAME): Don't define.
3413 (HAVE_INET_ADDR): Likewise.
3414 (lookup): Fixed typo.
3415 (aton): Don't use `address' as name of local variable.
3416 (lookup): Use HAVE_INET6, not AF_INET6.
3418 * configure: Rebuilt.
3419 * configure.in: Look for functions inet_aton, inet_addr,
3420 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3421 Check for socklen_t typedef.
3423 * exception.cc (__throw): Declare as __noreturn__.
3425 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3427 * Makefile.am, Makefile.in: Also build java/net.
3428 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3430 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3431 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3433 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3434 * include/cni.h (JvMalloc, JvFree): New inline functions.
3435 (JvThrow): Add __noreturn__ attribute.
3436 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3437 (_Jv_Throw): Add __noreturn__ attribute.
3439 * java/net/PlainSocketImpl.java: Init fnum to -1.
3440 * java/net/ServerSocket.java: Add missing throws clauses.
3441 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3442 don't call create on the latter. Instead, other constructors
3443 have to explicitly call SocketImpl.create.
3444 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3445 from size_t to int, to match ::accept prototype.
3446 * java/net/natInetAddress.cc: Use JvFree rather than free.
3449 1999-02-22 Tom Tromey <tromey@cygnus.com>
3451 * include/javaprims.h: Added new classes.
3452 * java/text/StringCharacterIterator.java: New file.
3453 * java/text/CharacterIterator.java: New file.
3455 * java/text/ParseException.java (errorOffset): Now private.
3457 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3459 * java/net: New package.
3460 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3461 Socket.java,SocketException.java,SocketImpl.java,
3462 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3463 natPlainSocketImpl.cc}: New classes.
3465 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3466 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3467 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3468 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3470 * classes.pl: Translate package into "namespace", not "class".
3471 * include/javaprims.h: Update class list, using "namespace".
3473 1999-02-21 Tom Tromey <tromey@cygnus.com>
3475 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3476 Define when appropriate.
3478 1999-02-20 Tom Tromey <tromey@cygnus.com>
3480 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3481 as a single byte and \u07ff as two bytes.
3482 (_Jv_GetStringUTFLength): Likewise.
3483 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3484 with 0x0f, not 0x1f.
3486 1999-02-19 Tom Tromey <tromey@cygnus.com>
3488 * java/io/DataOutputStream.java (writeUTF): When encoding
3489 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3490 * java/io/DataInputStream.java (readUTF): Mask second byte of
3491 3-byte character with 0x3f, not 0x1f.
3493 * java/io/DataInputStream.java (readLong): Cast result of
3494 readUnsignedByte to long before using.
3496 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3499 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3500 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3501 argument to avoid warning.
3502 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3503 argument to avoid warning.
3505 1999-02-18 Tom Tromey <tromey@cygnus.com>
3507 * mauve-libjava: Omit java.io.DataInputOutput and
3508 java.io.Utf8Encoding.
3510 1999-02-17 Tom Tromey <tromey@cygnus.com>
3512 * Makefile.in: Rebuilt.
3513 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3514 * java/io/natFileDescriptorPosix.cc: Include
3515 InterruptedIOException.h, Thread.h.
3516 (write): Throw InterruptedIOException when required.
3518 * posix-threads.cc: Include <signal.h>.
3519 (_Jv_ThreadInterrupt): New function.
3521 (handle_intr): New function.
3522 (_Jv_InitThreads): Register handle_intr via sigaction.
3523 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3524 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3525 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3526 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3528 1999-02-19 Andrew Haley <aph@cygnus.com>
3530 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3532 (ThreadGroup (int)): Set the maximum priority of the initial
3535 1999-02-18 Andrew Haley <aph@cygnus.com>
3537 * java/lang/natClass.cc (forName): Check for the case where a
3538 classname is the name of an array and call FindClassFromSignature
3541 1999-02-18 Andrew Haley <aph@cygnus.com>
3543 * java/lang/StringBuffer (insert (int, String)): Move up any
3544 characters above the insert position and increase the length of
3545 the string buffer by the length of the argument.
3546 (insert (int, char[])): Likewise.
3547 (insert (int, char)): Likewise.
3548 (StringBuffer (String)): The initial capacity of the string buffer
3549 is 16 plus the length of the argument.
3550 (getChars): Add a JDK 1.2 FIXME.
3552 1999-02-18 Andrew Haley <aph@cygnus.com>
3554 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3557 1999-02-18 Andrew Haley <aph@cygnus.com>
3559 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3560 instead of floating-point equality. This is necessary for
3561 correct floating-point Hashtables.
3562 * java/lang/Float.java (equals): Ditto.
3564 1999-02-16 Tom Tromey <tromey@cygnus.com>
3566 * java/util/Properties.java (list): Truncate value to 37
3567 characters and add "...".
3569 1999-02-16 Tom Tromey <tromey@cygnus.com>
3571 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3572 if initCap is negative.
3573 (contains): Implement JDK1.2-style handling of null argument.
3574 (removeElement): Likewise.
3575 (indexOf): Likewise. Also, correctly handle case where idx is
3577 (lastIndexOf): Likewise.
3579 1999-02-16 Tom Tromey <tromey@cygnus.com>
3581 * java/lang/natString.cc (init): Increment source pointer in
3584 1999-02-16 Tom Tromey <tromey@cygnus.com>
3586 * exception.cc: Include NullPointerException.h.
3587 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3589 1999-02-16 Tom Tromey <tromey@cygnus.com>
3591 * Makefile.in: Rebuilt.
3592 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3594 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3596 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3597 we're compiling canadian.
3598 * configure: Regenerated.
3600 1999-02-12 Andrew Haley <aph@cygnus.com>
3602 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3603 deleted from libgcj.
3605 1999-02-12 Tom Tromey <tromey@cygnus.com>
3607 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3608 (_Jv_eh_free): Don't call free.
3609 Don't declare malloc or free.
3611 1999-02-11 Tom Tromey <tromey@cygnus.com>
3613 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3615 1999-02-11 Andrew Haley <aph@cygnus.com>
3617 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3618 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3619 needed by java.lang.*.
3620 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3621 wf_fmod.o: Removed from libjava.a.
3623 1999-02-11 Tom Tromey <tromey@cygnus.com>
3625 * include/javaprims.h: Reverted previous change; with it
3626 exception.cc can't compile.
3628 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3630 * include/config.h.in: Rebuilt.
3631 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3633 * configure: Rebuilt.
3634 * configure.in: Check for sched_yield. Look in thread library for
3635 all thread functions.
3637 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3638 no recursive mutexes.
3639 (_Jv_MutexDestroy): Define when required.
3640 (_Jv_MutexLock): Likewise.
3641 (_Jv_MutexUnlock): Likewise.
3642 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3643 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3644 (_Jv_Mutex_t): New structure.
3645 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3646 (_Jv_MutexLock): Likewise.
3647 (_Jv_MutexUnlock): Likewise.
3649 1999-02-10 Tom Tromey <tromey@cygnus.com>
3651 * aclocal.m4, configure, Makefile.in: Rebuilt.
3652 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3654 * configure.in: Changed to track library changes.
3655 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3656 (AM_CXXFLAGS): Likewise.
3657 (data_DATA): Likewise.
3658 (AM_CFLAGS): Likewise.
3659 (JC1FLAGS): Likewise.
3660 (libgcj_a_SOURCES): Likewise.
3661 (EXTRA_libgcj_a_SOURCES): Likewise.
3662 (libgcj_a_DEPENDENCIES): Likewise.
3663 (libgcj_a_LIBADD): Likewise.
3664 (libgcj.zip): Likewise.
3665 (CLEANFILES): Likewise.
3666 ($(nat_headers)): Likewise.
3667 (java/lang/FirstThread.h): Likewise.
3668 (java/lang/ThreadGroup.h): Likewise.
3669 (java/lang/String.h): Likewise.
3670 (java/lang/reflect/Field.h): Likewise.
3671 (BUILT_SOURCES): Likewise.
3672 (maintainer-check): Likewise.
3673 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3674 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3676 * java/util/natGregorianCalendar.cc (computeFields): Only use
3677 gmtime_r and localtime_r when configured for posix threads.
3679 * java/io/natFile.cc (get_entry): Only use readdir_r when
3680 configured for posix threads.
3682 * java/util/natGregorianCalendar.cc: Update copyright notice.
3683 * java/util/TimeZone.java: Ditto.
3684 * java/util/SimpleTimeZone.java: Ditto.
3686 1999-02-08 Tom Tromey <tromey@cygnus.com>
3688 * java/io/PrintStream.java (line_separator): New constant.
3689 (print): Use line_separator, not `file.separator' property.
3690 (println): Use line_separator.
3692 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3693 when trying to instantiate Class.
3695 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3696 NullPointerException if argument is null.
3698 * java/lang/Thread.java (setName): Throw NullPointerException, not
3699 IllegalArgumentException.
3702 1999-02-08 Andrew Haley <aph@cygnus.com>
3704 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3705 create new Classes with Class.newInstance().
3707 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3708 semiciolon to end of an array Class's signature if the elements of
3709 the array aren't themselves arrays.
3711 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3712 array of objects is always sizeof(jobject), not the size of the
3713 object to which the reference points.
3715 1999-02-08 Tom Tromey <tromey@cygnus.com>
3717 * java/util/BitSet.java (and): Throw NullPointerException when
3722 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3723 if argument is negative.
3724 (clear): Correctly compute `offset'. Throw
3725 IndexOutOfBoundsException when required.
3727 (get): Likewise. Also, return correct value.
3728 (ensure): Changed meaning of argument.
3729 (toString): Wrap contents in `{}'; put spaces after commas.
3730 (hashCode): Don't try to examine elements off the end of array.
3731 (or): Correctly include bits past the end of this bit set.
3734 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3736 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3737 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3739 1999-02-04 Andrew Haley <aph@cygnus.com>
3741 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3742 '/' in signatures to '.'
3743 (Class::getName): Likewise,
3744 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3746 * java/lang/natFirstThread.cc (run): Change '/' in main's
3749 1999-02-03 Andrew Haley <aph@cygnus.com>
3751 * configure.host: -ffloat-store added when compiling libjava on
3752 x86. fdlibm apparently relies on this.
3754 * java/lang/ThreadGroup.java (add): throw an exception if the
3755 ThreadGroup has been destroyed.
3757 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3760 1999-01-27 Tom Tromey <tromey@cygnus.com>
3762 * java/lang/StringBuffer.java (StringBuffer): Handle null
3765 1999-01-21 Tom Tromey <tromey@cygnus.com>
3767 * java/lang/natFirstThread.cc (run): Don't require main to be
3770 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3772 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3774 1999-01-20 Tom Tromey <tromey@cygnus.com>
3776 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3780 (unintern): Likewise.
3781 (_Jv_NewStringUtf8Const): Likewise.
3783 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3784 Character.isLetter, to see if character is self-quoting. Also,
3785 correctly handle quoted characters.
3786 (parse): Fixed typo. Also now throws ParseException.
3788 1999-01-15 Tom Tromey <tromey@cygnus.com>
3790 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3792 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3793 _Jv_SyncInfo has `init' member.
3795 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3798 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3799 IllegalMonitorStateException if unlock fails.
3801 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3803 (_Jv_NewObjectArray): Likewise.
3805 1999-01-14 Tom Tromey <tromey@cygnus.com>
3807 * java/lang/Character.java (isJavaIdentifierPart): Allow
3808 LETTER_NUMBER characters.
3810 * chartables.pl (process_char): Fixed error messages.
3812 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3813 * chartables.pl: Updated comments. Changed detection of non-digit
3814 numeric values (no longer miss \u00b2 and friends).
3816 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3817 currency symbols and connector punctuation.
3818 (isIdentifierIgnorable): Make 7f-9f ignorable.
3820 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3821 (_Jv_NewPrimArray): Likewise.
3822 (SIZE_T_MAX): New define.
3824 * java/lang/ClassLoader.java (system): Now private and final.
3826 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3829 * configure: Rebuilt.
3830 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3832 * exception.cc: Include gansidecl.h.
3834 1999-01-14 Andrew Haley <aph@cygnus.com>
3836 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3837 corrected: they didn't treat -0.0 and NaNs correctly.
3839 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3841 * nogc.cc: Use calloc to zero out memory.
3843 1999-01-11 Tom Tromey <tromey@cygnus.com>
3845 * java/lang/natClass.cc (isInstance): Return false if this class
3846 is primitive, not if class of `obj' is primitive.
3847 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3849 * java/io/SequenceInputStream.java (close): Handle case where `in'
3852 * java/text/DateFormat.java (format): New method.
3854 * mauve-libjava: Omit java.text.DateFormat.
3856 1999-01-08 Tom Tromey <tromey@cygnus.com>
3858 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3860 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3862 (_Jv_CondNotifyAll): Likewise.
3864 * configure: Rebuilt.
3865 * configure.in: Change --enable-source-compilation logic to work
3868 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3870 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3871 and RUNTESTFLAGS from AM_MAKEFLAGS.
3872 * configure.in: AM_RUNTESTFLAGS added.
3873 * configure.host: AM_RUNTESTFLAGS added.
3874 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3875 * configure: rebuilt.
3876 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3878 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3879 argv[] made conditional because embedded targets may not have
3881 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3882 explanatory comments added in call to super.
3884 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3885 exception thrown in the test harness itself added.
3886 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3888 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3890 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3892 1999-01-06 Tom Tromey <tromey@cygnus.com>
3894 * java/io/natFile.cc (get_entry): New function.
3895 (performList): Use get_entry.
3896 * include/config.h.in: Rebuilt.
3897 * acconfig.h (HAVE_READDIR_R): New define.
3898 * configure: Rebuilt.
3899 * configure.in: Look for readdir_r.
3901 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3903 * java/util/natDate.cc: Added copyright header.
3905 1999-01-05 Tom Tromey <tromey@cygnus.com>
3907 * include/config.h.in: Rebuilt.
3908 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3909 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3910 * configure: Rebuilt.
3911 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3912 unlink, and realpath.
3913 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3914 (stat): Conditionalize on HAVE_STAT.
3916 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3917 (performMkdir): Conditionalize on HAVE_MKDIR.
3918 (performRenameTo): Conditionalize on HAVE_RENAME.
3919 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3921 * include/config.h.in: Rebuilt.
3922 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3923 * configure: Rebuilt.
3924 * configure.in: Check for gmtime_r and localtime_r. For cross
3925 builds, assume they exist.
3927 * mauve-libjava: Include java.text.DateFormatSymbols again.
3928 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3929 from setAmPmStrings.
3931 * mauve-libjava: Omit java.text.DateFormatSymbols.
3933 1999-01-04 Tom Tromey <tromey@cygnus.com>
3935 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3937 * java/io/LineNumberReader.java (read): Decrement `count' in
3940 * java/io/BufferedWriter.java (write): Correctly determine when
3941 incoming data would overrun buffer. Flush buffer if write causes
3944 * java/io/BufferedOutputStream.java (write): Increment `count'
3945 after copying data into buffer.
3947 * java/io/FilterOutputStream.java (close): Call flush first.
3949 * java/io/PipedReader.java (read): If read causes `out' to catch
3950 up with `in', then set `in' to -1.
3952 * java/io/LineNumberInputStream.java (read): If no bytes read,
3953 return -1. If no bytes requested, return 0.
3955 * java/lang/StringBuffer.java (insert): If `str' is null, use
3958 1998-12-30 Anthony Green <green@cygnus.com>
3961 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3963 1998-12-23 Tom Tromey <tromey@cygnus.com>
3965 * java/io/PushbackInputStream.java (read): `off' already includes
3968 1998-12-17 Tom Tromey <tromey@cygnus.com>
3970 * Makefile.in: Rebuilt.
3971 * Makefile.am (GCJ_canadian): Include target_alias.
3973 * java/lang/natFirstThread.cc (run): Require main's class to be
3976 1998-12-16 Tom Tromey <tromey@cygnus.com>
3978 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3980 * java/util/ResourceBundle.java (getBundle): Throw
3981 NullPointerException if locale argument is null.
3983 * java/lang/natClass.cc (forName): Throw NullPointerException if
3985 Include NullPointerException.h.
3987 1998-12-14 Tom Tromey <tromey@cygnus.com>
3989 * java/lang/Character.java (Character): Implement Comparable.
3990 (compareTo): New methods.
3992 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3993 correct country and language codes.
3994 (UK, US): New constants.
3995 (setDefault): Language codes are lower-case.
3997 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3998 (getDeclaredConstructors): Likewise.
3999 (getDeclaredField): Likewise.
4000 (getDeclaredFields): Likewise.
4001 (getDeclaredMethod): Likewise.
4002 (getDeclaredMethods): Likewise.
4003 (getField): Likewise.
4004 (getFields): Likewise.
4005 (getMethod): Likewise.
4006 (getMethods): Likewise.
4007 * java/lang/Class.java: Declare new methods.
4008 * java/lang/Class.h: Declare new methods.
4010 * java/lang/natString.cc: Removed `#pragma implementation'.
4011 * include/cni.h (_Jv_GetStringChars): New function.
4012 * Makefile.in: Rebuilt.
4013 * Makefile.am (java/lang/String.h): Don't generate definition for
4016 * java/lang/natString.cc: Added `#pragma implementation'.
4018 * Makefile.in: Rebuilt.
4019 * Makefile.am (libjava.zip): Put build directory first in class
4020 path to avoid bug in compiler.
4022 1998-12-14 Anthony Green <green@cygnus.com>
4024 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4026 * include/javaprims.h: Add EventObject, ListResourceBundle and
4029 1998-12-13 Anthony Green <green@cygnus.com>
4031 * mauve-libjava: Run the ResourceBundle tests.
4033 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4036 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4038 * configure.in, configure: Make --enable-gcj-classes and
4039 --enable-source-compilation the default. (Nervously...) Yeah!
4040 Based on a patch from Tom Tromey.
4042 1998-12-13 Tom Tromey <tromey@cygnus.com>
4044 * java/util/EventObject.java: New file.
4045 * java/util/EventListener.java: New file.
4047 * include/javaprims.h: Updated class declarations.
4048 * Makefile.in: Rebuilt.
4049 * Makefile.am (nat_headers): Added Constructor.h.
4050 (java/lang/String.h): Don't inline String::length().
4051 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4052 * java/lang/Class.java (initializeClass, hackRunInitializers,
4053 hackTrampoline): No need to mark `final'.
4054 (getConstructor, getConstructors): Declare.
4055 * java/lang/reflect/Field.java (equals): New method.
4056 * java/lang/natClass.cc (getConstructor): New method.
4057 (getConstructors): Likewise.
4058 Include Method.h, Field.h, Constructor.h.
4059 * java/lang/reflect/Constructor.java: New file.
4060 * java/lang/reflect/Method.java (toString): No space before open
4062 (equals): Simplified.
4064 1998-12-13 Anthony Green <green@cygnus.com>
4066 * java/util/ResourceBundle.java: New file.
4067 * java/util/ListResourceBundle.java: New file.
4069 1998-12-12 Tom Tromey <tromey@cygnus.com>
4071 * java/lang/System.java (in, out, err): Now buffered streams by
4074 * include/javaprims.h: Updated class declarations.
4075 * Makefile.in: Rebuilt.
4076 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4077 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4079 (nat_files): Added natMethod.o.
4080 * java/lang/reflect/natMethod.cc: New file.
4081 * java/lang/reflect/Field.java (Field): Now extends
4083 * java/lang/reflect/AccessibleObject.java: New file.
4084 * java/lang/reflect/InvocationTargetException.java: New file.
4086 1998-12-11 Tom Tromey <tromey@cygnus.com>
4088 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4089 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4090 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4092 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4094 1998-12-09 Tom Tromey <tromey@cygnus.com>
4096 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4099 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4100 character is already titlecase.
4102 * java/lang/Character.java (isJavaLetter): Follow spec.
4103 (isJavaLetterOrDigit): Likewise.
4105 * java/util/GregorianCalendar.java (gregorianCutover): Append
4108 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4110 1998-12-08 Tom Tromey <tromey@cygnus.com>
4112 * java/lang/reflect/Modifier.java (toString): Replace second
4113 `static' with `synchronized'.
4115 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4116 * java/lang/Object.h (Object::hack12_6): Declare.
4117 * java/lang/Object.java (hack12_6): New function.
4119 1998-12-07 Tom Tromey <tromey@cygnus.com>
4121 * include/java-array.h (__JArray::clone): Removed decl.
4122 * prims.cc (__JArray::clone): Removed.
4123 * java/lang/natObject.cc (clone): Incorporate code to clone an
4126 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4127 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4128 Correctly use dtable_method_count.
4130 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4132 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4135 1998-12-06 Anthony Green <green@cygnus.com>
4137 * mauve-libjava: Don't test ResourceBundle.
4139 1998-12-04 Tom Tromey <tromey@cygnus.com>
4141 More JDK 1.2 spec fixes:
4142 * java/util/Date.java (millis): Now private.
4143 * java/text/DateFormat.java (DateFormat): Constructor now
4145 * java/lang/Void.java (Void): New private constructor.
4146 * java/lang/System.java (System): New private constructor.
4147 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4149 (currentClassLoader): New method.
4150 (currentLoadedClass): New method.
4151 * java/lang/Math.java (Math): New private constructor.
4152 * java/lang/Compiler.java (Compiler): New private constructor.
4153 * java/lang/Class.java (Class): New private constructor.
4154 * java/lang/Double.java (toString): Removed access specifier from
4155 two-argument `toString' method.
4157 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4159 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4160 causes it to be flushed from an fp register (where it may be
4161 longer than double precision) to a double in memory. This is
4162 essential to ensure correct rounding behaviour.
4164 1998-12-04 Tom Tromey <tromey@cygnus.com>
4166 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4169 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4170 explaining apparent divergence from JDK 1.2.
4172 1998-12-04 Per Bothner <bothner@cygnus.com>
4174 * include/no-threads.h: Remove unused parameter names.
4175 This silences a bunch of warnings.
4177 1998-12-04 Tom Tromey <tromey@cygnus.com>
4179 * include/config.h.in: Rebuilt.
4180 * acconfig.h (HAVE_CTIME_R): New symbol.
4182 1998-12-03 Tom Tromey <tromey@cygnus.com>
4184 * mauve-libjava: Added many more categories to reject.
4186 Changes to follow JDK1.2 spec:
4187 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4188 setErr, setIn, setOut): No need to be `final'.
4189 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4190 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4191 * java/lang/Object.java (wait): `nanos' argument is an int.
4192 * java/lang/VirtualMachineError.java: Class is abstract.
4193 * java/lang/ThreadDeath.java: Made constructors public.
4194 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4197 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4199 * java/text/DateFormatSymbols.java (getAmPmStrings,
4200 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4202 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4204 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4205 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4206 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4209 * java/lang/IllegalThreadStateException.java
4210 (IllegalThreadStateException): Changed extending class to match spec.
4212 * java/lang/NumberFormatException.java
4213 (java/lang/NumberFormatException): Changed extending class to match
4216 * java/util/Observer.java (Observer): Changed sig to match JCL.
4218 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4220 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4221 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4222 signature to match JDK 1.1 and 1.2.
4224 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4226 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4227 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4228 * Makefile.in, configure: Rebuilt.
4230 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4233 1998-12-02 Tom Tromey <tromey@cygnus.com>
4235 * mauve-libjava: New file.
4237 The remaining `-W -Wall' fixes:
4238 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4240 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4242 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4244 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4246 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4248 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4250 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4252 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4254 * java/lang/mprec.c (Balloc): Removed unused variable.
4255 (mult): Added parentheses per gcc suggestion.
4256 (pow5mult): Likewise.
4261 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4262 suggestion. Added cast to `int' to avoid signed/unsigned
4264 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4266 (IsAssignableFrom): Likewise.
4267 (_Jv_JNI_GetObjectField): Likewise.
4268 (_Jv_JNI_GetByteField): Likewise.
4269 (_Jv_JNI_GetShortField): Likewise.
4270 (_Jv_JNI_GetIntField): Likewise.
4271 (_Jv_JNI_GetLongField): Likewise.
4272 (_Jv_JNI_GetStringLength): Likewise.
4273 (_Jv_JNI_ToReflectedField): Likewise.
4274 (_Jv_JNI_FromReflectedField): Likewise.
4275 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4277 * Makefile.in: Rebuilt.
4278 * Makefile.am (AM_CFLAGS): Define conditionally.
4279 (WARNINGS): New macro.
4280 (AM_CXXFLAGS): Include WARNINGS.
4281 * configure: Rebuilt.
4282 * configure.in (USING_GCC): New conditional.
4284 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4286 * java/lang/Character.java: Changed classification constants to
4287 type `byte' to match JDK 1.2 docs.
4289 1998-12-01 Tom Tromey <tromey@cygnus.com>
4291 Some fixes to be `-W -Wall' clean:
4292 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4293 (_Jv_MarkArray): Likewise.
4294 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4295 (to_upper_title): Likewise.
4296 (isTitleCase): Likewise.
4297 (toTitleCase): Likewise.
4298 (getNumericValue): Likewise.
4299 (isLowerCase): Likewise.
4300 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4301 (avoids compiler warning).
4302 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4304 (getDeclaringClass): Likewise.
4305 (_Jv_LookupInterfaceMethod): Likewise.
4306 (_Jv_NewClass): Removed name of unused parameter.
4307 * exception.cc (_Jv_type_matcher): Removed unused variable.
4308 (_Jv_setup_eh_info): Removed name of unused parameter.
4309 * prims.cc (_Jv_NewArray): Always return a value.
4310 (_Jv_FindClassFromSignature): Likewise.
4311 * include/java-field.h (getNameUtf8Const): Removed name of unused
4313 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4315 (_Jv_ThreadSetPriority): Likewise.
4317 * java/lang/natString.cc (hashChars): Now static.
4319 * java/lang/FirstThread.java (FirstThread): Now final.
4321 * java/io/File.java (performMkdir, performRenameTo): Now private.
4323 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4324 if no time function defined.
4326 * configure: Rebuilt.
4327 * configure.in: Look for ctime_r, ctime.
4328 * java/util/Date.java (toString): Now native.
4329 * java/util/natDate.cc (toString): Rewrote.
4331 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4333 * Add LDFLAGS line to allow TX39 test cases to link when cross
4336 1998-11-23 Anthony Green <green@cygnus.com>
4338 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4339 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4340 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4341 include/java-array.h, include/java-assert.h, include/java-field.h,
4342 include/javaprims.h, include/jni.h, include/jvm.h,
4343 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4344 include/quick-threads.h, java/io/BufferedInputStream.java,
4345 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4346 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4347 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4348 java/io/CharArrayWriter.java,
4349 java/io/CharConversionException.java, java/io/DataInput.java,
4350 java/io/DataInputStream.java, java/io/DataOutput.java,
4351 java/io/DataOutputStream.java, java/io/EOFException.java,
4352 java/io/File.java, java/io/FileDescriptor.java,
4353 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4354 java/io/FileOutputStream.java, java/io/FileReader.java,
4355 java/io/FileWriter.java, java/io/FilenameFilter.java,
4356 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4357 java/io/FilterReader.java, java/io/FilterWriter.java,
4358 java/io/IOException.java, java/io/InputStream.java,
4359 java/io/InputStreamReader.java,
4360 java/io/InterruptedIOException.java,
4361 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4362 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4363 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4364 java/io/PipedReader.java, java/io/PipedWriter.java,
4365 java/io/PrintStream.java, java/io/PrintWriter.java,
4366 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4367 java/io/RandomAccessFile.java, java/io/Reader.java,
4368 java/io/SequenceInputStream.java, java/io/Serializable.java,
4369 java/io/StreamTokenizer.java,
4370 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4371 java/io/StringWriter.java, java/io/SyncFailedException.java,
4372 java/io/UTFDataFormatException.java,
4373 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4374 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4375 java/io/natFileDescriptorPosix.cc,
4376 java/lang/AbstractMethodError.java,
4377 java/lang/ArithmeticException.java,
4378 java/lang/ArrayIndexOutOfBoundsException.java,
4379 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4380 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4381 java/lang/Class.java, java/lang/ClassCastException.java,
4382 java/lang/ClassCircularityError.java,
4383 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4384 java/lang/ClassNotFoundException.java,
4385 java/lang/CloneNotSupportedException.java,
4386 java/lang/Cloneable.java, java/lang/Comparable.java,
4387 java/lang/Compiler.java, java/lang/Double.java,
4388 java/lang/Error.java, java/lang/Exception.java,
4389 java/lang/ExceptionInInitializerError.java,
4390 java/lang/FirstThread.java, java/lang/Float.java,
4391 java/lang/IllegalAccessError.java,
4392 java/lang/IllegalAccessException.java,
4393 java/lang/IllegalArgumentException.java,
4394 java/lang/IllegalMonitorStateException.java,
4395 java/lang/IllegalStateException.java,
4396 java/lang/IllegalThreadStateException.java,
4397 java/lang/IncompatibleClassChangeError.java,
4398 java/lang/IndexOutOfBoundsException.java,
4399 java/lang/InstantiationError.java,
4400 java/lang/InstantiationException.java, java/lang/Integer.java,
4401 java/lang/InternalError.java, java/lang/InterruptedException.java,
4402 java/lang/LinkageError.java, java/lang/Long.java,
4403 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4404 java/lang/NoClassDefFoundError.java,
4405 java/lang/NoSuchFieldError.java,
4406 java/lang/NoSuchFieldException.java,
4407 java/lang/NoSuchMethodError.java,
4408 java/lang/NoSuchMethodException.java,
4409 java/lang/NullPointerException.java, java/lang/Number.java,
4410 java/lang/NumberFormatException.java, java/lang/Object.h,
4411 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4412 java/lang/Process.java, java/lang/Runnable.java,
4413 java/lang/Runtime.java, java/lang/RuntimeException.java,
4414 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4415 java/lang/Short.java, java/lang/StackOverflowError.java,
4416 java/lang/String.java, java/lang/StringBuffer.java,
4417 java/lang/StringIndexOutOfBoundsException.java,
4418 java/lang/System.java, java/lang/Thread.java,
4419 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4420 java/lang/Throwable.java, java/lang/UnknownError.java,
4421 java/lang/UnsatisfiedLinkError.java,
4422 java/lang/UnsupportedOperationException.java,
4423 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4424 java/lang/Void.java, java/lang/natCharacter.cc,
4425 java/lang/natClass.cc, java/lang/natDouble.cc,
4426 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4427 java/lang/natMath.cc, java/lang/natObject.cc,
4428 java/lang/natRuntime.cc, java/lang/natString.cc,
4429 java/lang/natSystem.cc, java/lang/natThread.cc,
4430 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4431 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4432 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4433 java/text/FieldPosition.java, java/text/Format.java,
4434 java/text/NumberFormat.java, java/text/ParseException.java,
4435 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4436 java/util/BitSet.java, java/util/Calendar.java,
4437 java/util/ConcurrentModificationException.java,
4438 java/util/Date.java, java/util/Dictionary.java,
4439 java/util/EmptyStackException.java, java/util/Enumeration.java,
4440 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4441 java/util/Locale.java, java/util/MissingResourceException.java,
4442 java/util/NoSuchElementException.java, java/util/Observable.java,
4443 java/util/Observer.java, java/util/Properties.java,
4444 java/util/Random.java, java/util/SimpleTimeZone.java,
4445 java/util/Stack.java, java/util/StringTokenizer.java,
4446 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4447 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4450 * exception.cc: Include eh-common.h instead of duplicating
4453 1998-11-23 Tom Tromey <tromey@cygnus.com>
4455 * configure.host: Don't add `-O2' to libjava_flags. Only add
4456 `-Os' to libjava_flags once.
4458 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4460 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4461 * Makefile.in: likewise
4462 * acconfig.h: add ECOS conditional for configure.h
4463 * config.h.in: likewise
4464 * configure: add test for --with-ecos
4465 * configure.in: likewise
4466 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4467 rename call to avoid name clash.
4468 * java/lang/natSystem.cc: add eCos clock support.
4469 * java/util/natGregorianCalendar.cc: add eCos support.
4471 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4473 * Makefile.am, Makefile.in, configure.host: tx39 build option
4476 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4478 * java/io/BufferedReader.java: Added more comments for clarity.
4479 (mark): Used more mnemonic name for local var extraBuffSpace.
4481 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4482 confusion with private method of same name in superclass.
4483 (skipRedundantLF): Set fields in special case to avoid infinite
4484 recursion. Check if markPos has been invalidated in special case.
4485 (readLine): Rewritten to use readLine method of superclass.
4486 (skip): Incorporated code from lineEnd.
4488 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4490 * java/io/BufferedReader.java (readLine): New method.
4491 (lineEnd): new private method.
4492 (mark): Track special case for readLine of getting '\r' at the
4499 * java/io/InputStreamReader.java (read): Return number chars skipped
4500 rather than requested.
4502 * java/lang/StringBuffer.java (append): Update count and differentiate
4503 between field and local variable.
4505 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4506 seconds. Deal with military style time.
4507 (parse): Consistently treat all timezones in minutes until final
4508 calculation. Flag as non-local timezone. Return value in milliseconds.
4509 (setTime): Adjust for year offset from 1900.
4510 (UTC): Adjust for year offset from 1900.
4512 1998-11-17 Tom Tromey <tromey@cygnus.com>
4514 * configure: Rebuilt.
4515 * configure.in: Switch on host, not target.
4517 * Makefile.in: Rebuilt.
4518 * Makefile.am (GCJ_no): New macro.
4519 (GCJ): Use @CANADIAN@.
4520 (GCJH_no): New macro
4521 (GCJH_canadian): New macro.
4522 (GCJH): Use @CANADIAN@.
4523 (ZIP_no): New macro.
4524 (ZIP_canadian): New macro.
4525 (ZIP): Use @CANADIAN@.
4526 * aclocal.m4, configure: Rebuilt.
4527 * configure.in (CANADIAN): Compute and subst.
4529 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4531 * java/io/FileDescriptor.java (finalize): Only close file
4532 descriptor if valid.
4534 1998-11-17 Tom Tromey <tromey@cygnus.com>
4536 * prims.cc (_Jv_InitRuntime): Removed.
4538 1998-11-16 Tom Tromey <tromey@cygnus.com>
4540 * java/io/FileOutputStream.java (close): Only close file
4541 descriptor if valid.
4542 (finalize): New method.
4544 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4545 (_Jv_NewPrimArray): Likewise.
4546 * boehm.cc (_Jv_RegisterFinalizer): Use
4547 GC_REGISTER_FINALIZER_NO_ORDER.
4548 (GC_GENERIC_MALLOC): New define.
4549 (_Jv_AllocObj): Use it.
4550 (_Jv_AllocArray): Likewise.
4551 (_Jv_AllocBytes): Likewise.
4552 (_Jv_MarkObj): Just return if vtbl not set.
4553 (_Jv_MarkArray): Likewise.
4554 (MAYBE_MARK): New macro; use everywhere.
4555 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4557 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4559 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4560 to a jlong before calculation to prevent overflow.
4562 1998-11-16 Tom Tromey <tromey@cygnus.com>
4564 * Makefile.in: Rebuilt.
4565 * Makefile.am (nat_headers): Fixed typo.
4567 1998-11-15 Tom Tromey <tromey@cygnus.com>
4569 * java/lang/Class.h (Class::getName): Removed definition.
4570 * Makefile.in: Rebuilt.
4571 * Makefile.am (nat_headers): Added InstantiationException.h,
4572 NoSuchMethodException.h.
4573 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4574 (init_name): New global.
4575 (hackRunInitializers): Use clinit_name.
4576 Include InstantiationException.h, NoSuchMethodException.h.
4577 (newInstance): Do some error checking (but not all). Call
4579 (forName): Throw exception if class not found.
4580 (getName): New method.
4581 (forName): Transform class name from external format to internal
4582 format before lookup.
4584 1998-11-15 Anthony Green <green@cygnus.com>
4586 * java/lang/Class.h (Class::forName): Method is static.
4588 * java/lang/natClass.cc (newInstance): Add simple implementation.
4591 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4593 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4594 int), for compatibility with jc1.
4596 1998-11-14 Tom Tromey <tromey@cygnus.com>
4598 * include/config.h.in: Rebuilt.
4599 * acconfig.h (LINUX_THREADS): New define.
4600 * configure: Rebuilt.
4601 * configure.in: Define LINUX_THREADS if using POSIX threads on
4602 Linux. Look for pthread_mutexattr_setkind_np function.
4603 * posix-threads.cc (throw_cleanup): New function.
4604 (really_start): Push cleanup function.
4605 (_Jv_ThreadCancel): New function.
4606 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4607 (_Jv_ThreadInitData): Set `exception' field in new structure.
4608 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4610 (_Jv_ThreadWait): New function.
4611 (_Jv_InitThreads): Initialize daemon globals.
4612 (FLAG_DAEMON): New macro.
4613 (really_start): Notify daemon_cond when non-daemon thread exits.
4614 Include <java/lang/System.h>.
4615 (struct starter): `object' field now a thread.
4616 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4617 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4618 (_Jv_ThreadWait): Removed definition.
4619 (_Jv_Thread_t): Added `exception' field.
4620 (_Jv_ThreadCancel): Removed definition.
4622 1998-11-13 Tom Tromey <tromey@cygnus.com>
4624 * Makefile.in: Rebuilt.
4625 * Makefile.am (libjava.zip): Compute javac before changing
4628 * Makefile.in: Rebuilt.
4629 * Makefile.am (libjava.zip): Include directory entries.
4631 * Makefile.in: Rebuilt.
4632 * Makefile.am (expanded): New macro.
4635 1998-11-12 Tom Tromey <tromey@cygnus.com>
4637 * prims.cc (clone): New function.
4638 * include/java-array.h (__JArray::clone): Removed definition.
4640 * java/lang/natObject.cc (clone): Don't assert that class is not
4641 an array; array's `clone' method just calls this one.
4643 * Makefile.in: Rebuilt.
4644 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4645 Now creates zip file. Changed all users.
4647 (data_DATA): New macro.
4649 1998-11-11 Tom Tromey <tromey@cygnus.com>
4651 * configure: Rebuilt.
4652 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4654 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4656 * java/io/InputStream.java (reset): Add msg to thrown exception.
4658 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4660 * java/io/LineNumberInputStream.java: Rewritten.
4662 * java/io/StringBufferInputStream.java: Removed extraneous import.
4664 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4666 * java/io/StringBufferInputStream.java: Rewritten.
4668 * java/util/Date.java (parseMonth): Optimize.
4669 (parseDayOfWeek): Created.
4670 (parse): Optimize to use parseDayOfWeek.
4672 1998-11-11 Tom Tromey <tromey@cygnus.com>
4674 * java/lang/StringBuffer.java (append): Handle case where STR is
4677 * include/javaprims.h: Regenerated class declarations.
4679 * configure: Rebuilt.
4680 * configure.in: Added --enable-gcj-classes,
4681 --enable-single-compilation, --enable-source-compilation flags.
4682 * Makefile.in: Rebuilt.
4683 * Makefile.am (java_io_files): New macro.
4684 (java_lang_files): Likewise.
4685 (java_text_files): Likewise.
4686 (java_util_files): Likewise.
4687 (java_files): Use new macros.
4688 (java-io.o): New target.
4689 (java-lang.o): Likewise.
4690 (java-text.o): Likewise.
4691 (java-util.o): Likewise.
4692 (src_io_files): New macro.
4693 (src_lang_files): Likewise.
4694 (src_text_files): Likewise.
4695 (src_util_files): Likewise.
4696 (class_io_files): New macro.
4697 (class_lang_files): Likewise.
4698 (class_text_files): Likewise.
4699 (class_util_files): Likewise.
4700 (class_files): Use new macros.
4701 (javao_files): Define conditionally.
4702 (.java.o): New target.
4703 ($(javao_files)): New target.
4705 (GCJH): Added $(EXEEXT).
4706 (CLASSPATH_ENV): Removed.
4707 (GCJCOMPILE): New macro.
4709 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4711 * java/util/Date.java (parse): Written from scratch.
4713 1998-11-11 Tom Tromey <tromey@cygnus.com>
4715 * java/lang/Throwable.java (toString): Correct sense of test for
4716 determining when to include detail message in result.
4718 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4721 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4723 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4725 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4726 (_Jv_RegisterClass): Use it.
4727 * include/jvm.h (_Jv_RegisterClasses): Declare.
4728 * java/lang/natObject.cc (init): Removed.
4729 (sync_init): Never call _Jv_InitializeSyncMutex.
4730 (_Jv_InitializeSyncMutex): Don't set `init'.
4731 * prims.cc (JvRunMain): Don't run init functions.
4733 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4735 * java/lang/natClass.cc (initializeClass): Set state before
4736 resolving constants.
4738 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4739 (STATE_RESOLVED): New macro.
4740 (initializeClass): Call resolveConstants.
4741 (hackRunInitializers): Don't call resolveConstants.
4742 (_Jv_FindArrayClass): Move short-circuit return for primitive
4743 element types earlier in function.
4745 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4747 * prims.cc (no_memory): New global.
4748 (_Jv_makeUtf8Const): Throw no_memory.
4749 (_Jv_AllocObject): Likewise.
4750 (_Jv_NewObjectArray): Likewise.
4751 (_Jv_NewPrimArray): Likewise.
4752 (JvRunMain): Initialize no_memory.
4754 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4756 * java/io/FileInputStream.java: Corrected date comment.
4757 * java/io/SequenceInputStream.java: Rewritten.
4759 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4761 * java/lang/FirstThread.java (die): New method.
4762 * java/lang/natFirstThread.cc (die): Removed.
4764 (run): Use `DIE', not `die'.
4766 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4768 * java/io/CharArrayReader.java (read): Move check into synchronized
4769 block to prevent a close while in progress.
4772 * java/io/PushbackReader.java (read): Ditto.
4775 * java/io/StringReader.java (mark): Ditto.
4780 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4782 * java/io/PipedInputStream.java: Updated status.
4783 (connect): Added code to prevent infinite recursion and to
4784 differentiate exception causes.
4785 (read): Added code to differentiate exception causes.
4786 (receive): Made exception pass string with the cause.
4788 * java/io/PipedOutputStream.java: Updated status.
4789 (connect): Added code to call connect at the other end of the pipe.
4791 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4793 * java/io/PipedInputStream.java (connect): Throw exception if
4794 already connected to the same output stream.
4795 (read): Do bounds checking first.
4797 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4799 * java/io/PipedInputStream.java: Added private boolean outClosed.
4800 (available): Removed check if output stream is open.
4801 (close): Mark the buffer as empty so available returns 0.
4802 (read): Check if the output stream was closed and then return EOF
4803 when the buffer is empty.
4804 (receive): Mark the output stream as closed when passed a -1.
4806 * java/io/PipedOutputStream.java (close): Notify the input stream
4807 that there's no more data coming.
4808 (connect): Added a FIXME comment to note more coordination needed
4809 with PipedInputStream.
4810 (flush): Added a FIXME comment to mark what this method might do
4813 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4815 * java/io/PipedInputStream.java: Rewritten.
4817 1998-10-30 Tom Tromey <tromey@cygnus.com>
4819 * java/lang/Throwable.java: Rewrote from scratch.
4821 * java/lang/Class.h (Class): Don't mention newMultiArray.
4822 * prims.cc (newMultiArray): Removed.
4823 (_Jv_NewMultiArray): Removed.
4824 (newArray): Removed.
4825 (new_multi_array): New function.
4826 (_Jv_NewMultiArray): Rewrote from scratch.
4828 * include/javaprims.h: Regenerated class declarations.
4829 * classes.pl (scan): Don't declare PrimClass.
4830 * include/cni.h (JvPrimClass): Use new names for classes.
4831 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4832 added _Jv_PrimClass.
4833 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4834 (_Jv_initPrimClass): Removed.
4835 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4836 (_Jv_AllocObject): Added comment.
4837 (_Jv_NewObjectArray): Likewise.
4838 (_Jv_NewPrimArray): Likewise.
4840 1998-10-29 Tom Tromey <tromey@cygnus.com>
4842 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4843 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4845 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4847 * java/lang/natObject.cc (init): New global.
4848 (sync_init): Call _Jv_InitializeSyncMutex if required.
4850 * Makefile.in: Rebuilt.
4851 * Makefile.am (nat_headers): Added ClassLoader.h.
4852 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4853 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4854 internalAddClass, lookupArray no longer friends.
4855 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4856 _Jv_FindArrayClass now friends.
4857 * java/lang/natClass.cc (HASH_LEN): New macro.
4858 (HASH_UTF): Likewise.
4859 (loaded_classes): New global.
4860 (_Jv_FindClass): New function.
4861 (ClassClass): New define.
4862 (_Jv_FindClassInCache): New function.
4863 (_Jv_RegisterClass): Likewise.
4864 (_Jv_NewClass): Likewise.
4866 (ObjectClass): New define.
4867 (CloneableClass): New define.
4868 * prims.cc (_Jv_FindClass): Removed.
4869 (simpleLookupClass): Removed.
4870 (insertClass): Removed.
4871 (CLASSHASHSZ): Removed.
4872 (classPool): Removed.
4873 (_Jv_RegisterClass): Removed.
4874 (internalAddClass): Removed.
4875 (ClassClass): Removed.
4876 (RuntimeClass): Removed.
4877 (lookupArray): Removed.
4878 (CloneableClass): Removed.
4879 (CLASSMAXSIG): Removed.
4880 Rearranged file to group related functions together.
4881 (_Jv_IsInstanceOf): Moved to natClass.cc.
4882 (abort_final): Removed.
4883 Removed some unused includes.
4884 (classFromSig): Removed.
4885 (_Jv_FindClassFromSignature): New function.
4886 (_Jv_initPrimClass): Renamed.
4887 (getClass): Removed.
4889 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4891 * java/io/FileDescriptor.java (finalize): Throws IOException
4892 instead of Throwable.
4894 * java/io/FileInputStream.java: Rewritten.
4896 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4897 at the end of a comment.
4899 1998-10-29 Tom Tromey <tromey@cygnus.com>
4901 * include/javaprims.h: Regenerated class declarations.
4902 * classes.pl (scan): Don't special-case ClassLoader.
4904 * prims.cc (processClass): Removed.
4905 (_Jv_InitClass): Removed.
4906 Removed all CSTATE_ macros.
4907 (resolveConstants): Removed.
4909 (_Jv_NewMultiArray): Cleaned up.
4910 * Makefile.in: Rebuilt.
4911 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4912 * java/lang/Class.h (Class): Declare new methods. processClass no
4914 * java/lang/Class.java (hackTrampoline): New method.
4915 (initializeClass): Declare.
4916 (hackRunInitializers): Declare.
4917 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4918 (initializeClass): New method.
4919 (hackRunInitializers): New method.
4920 (init_name, void_signature): Moved from prims.cc.
4921 (_Jv_InitClass): New function.
4922 (isAssignableFrom): Don't call processClass.
4923 (STATE_NOTHING): New macro.
4924 (resolveConstants): New function.
4926 (ErrorClass): New define.
4928 * java/lang/Class.java (getClassLoader): Declare.
4929 * java/lang/ClassLoader.java: Rewrote from scratch.
4931 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4932 AbstractMethodError.h, IllegalAccessError.h,
4933 NoClassDefFoundError.h.
4934 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4935 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4936 longer static. Changed return type.
4937 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4938 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4939 * prims.cc (findMethodLocal): Removed.
4940 (processClass): Use _Jv_GetMethodLocal.
4942 1998-10-28 Tom Tromey <tromey@cygnus.com>
4944 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4945 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4947 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4948 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4950 * include/jni.h: Added copyright header.
4951 * include/javaprims.h: Added copyright header.
4952 * include/java-field.h: Added copyright header.
4953 * include/java-array.h: Added copyright header.
4954 * include/cni.h: Added copyright header.
4956 * include/javaprims.h: Regenerated class declarations using
4957 classes.pl; now they are complete.
4958 * classes.pl: New file.
4960 * java/lang/natMath.cc: Include <config.h>.
4961 * java/lang/reflect/natField.cc: Include <config.h>.
4962 * java/util/NativeUtil.java: Removed.
4963 * Makefile.in: Rebuilt.
4964 * Makefile.am (nat_headers): Added Math.h.
4965 * java/lang/Math.h: Removed.
4966 * java/util/natGregorianCalendar.cc: Added copyright header.
4968 * java/lang/natFloat.cc: Added copyright header.
4969 * java/lang/Byte.java: Added copyright header.
4970 * java/lang/Void.java: Added copyright header.
4971 * java/lang/Short.java: Added copyright header.
4973 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4975 * include/javaprims.h (java::io): Added bunch of missing classes.
4977 * java/io/DataInputStream.java (readLine): Added a special case
4978 for handling BufferedInputStream data to reduce the likelihood
4979 of a pushback error.
4980 (skipBytes): Added code to handle negative number of skip bytes.
4982 * java/io/StreamTokenizer.java: Rewritten.
4984 1998-10-28 Tom Tromey <tromey@cygnus.com>
4986 * java/util/natGregorianCalendar.cc (computeFields): Call
4987 getRawOffset as a method.
4989 * include/javaprims.h (java::io): Added FilterOutputStream.
4990 * Makefile.in: Rebuilt.
4991 * Makefile.am (nat_headers): Added PrintStream.h,
4992 FilterOutputStream.h.
4993 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4995 (die): New function.
4996 (run): Die if `main' not found, is not public, or is not static.
4998 * boehm.cc (_Jv_MarkObj): Use new field names.
4999 * include/java-field.h (JvGetFirstInstanceField): Use new field
5001 (JvNumInstanceFields): Likewise.
5002 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5003 (getInterfaces): Likewise.
5004 * prims.cc (CLASS_CONSTANTS): Removed.
5005 (CLASS_CONST_SIZE): Likewise.
5006 (CLASS_CONST_TAG): Likewise.
5007 (CLASS_CONST_DATA): Likewise.
5008 (CLASS_CONST_UTF8): Likewise.
5009 (WORD2UTF): Likewise.
5010 (CLASS_CLASS): Likewise.
5011 (CLASS_PRIM_SIG): Likewise.
5012 (CLASS_ARRAY_CACHE): Likewise.
5013 (HASH_CHARS): Likewise.
5014 (hashClassName): Likewise.
5015 Many changes to use new field names.
5016 * java/lang/Class.h (Class): Renamed fields to track compiler.
5018 1998-10-27 Tom Tromey <tromey@cygnus.com>
5020 * java/lang/natClass.cc: Use #pragma implementation.
5021 (getComponentType): Moved into header.
5022 (getModifiers): Likewise.
5023 (getName): Likewise.
5024 (getSuperclass): Likewise.
5025 (isArray): Likewise.
5026 (isPrimitive): Likewise.
5027 * include/jvm.h (_Jv_FindClass): Declare.
5028 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5029 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5030 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5031 * java/lang/Class.h: Rewrote from scratch.
5032 * prims.cc: Many changes to work with new Class.h.
5033 * include/java-field.h (CLASS_FIELDS): Removed.
5034 (CLASS_SFIELDS): Likewise.
5035 (CLASS_IFIELDS): Likewise.
5036 (CLASS_NFIELDS): Likewise.
5037 (CLASS_NIFIELDS): Likewise.
5038 (CLASS_NSFIELDS): Likewise.
5039 (CLASS_FSIZE): Likewise.
5040 (JvGetFirstInstanceField): Rewrote.
5041 (JvNumInstanceFields): Likewise.
5043 * java/lang/Object.h: Added copyright comment.
5045 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5047 * java/text: New package directory.
5048 * java/text/FieldPosition.java: New class.
5049 * java/text/ParsePosition.java: New class.
5050 * java/text/ParseException.java: New Exception class.
5051 * java/text/Format.java: New class.
5052 * java/text/NumberFormat.java: New (empty placeholder) class.
5053 * java/text/DateFormatSymbols.java: New class (no Locales support).
5054 * java/text/DateFormat.java: New Format class (incomplete).
5055 * java/text/SimpleDateFormat.java: New DateFormat class.
5057 * include/javaprims.h (java::test): Added new package and classes.
5058 * java/util/Calendar.java (clone): New method.
5059 * java/util/Date.java (toString): Added non-native implementation.
5060 (parse): Made public instead of synchronized.
5061 * java/util/natDate.cc (toString): Removed.
5062 * java/util/natGregorianCalendar.cc (computeFields):
5063 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5065 1998-10-27 Tom Tromey <tromey@cygnus.com>
5067 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5069 * prims.cc (lookupArray): Added explanatory comment.
5070 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5071 class. Mark the class of each object.
5072 (_Jv_MarkArray): Mark the object's class.
5074 * configure: Rebuilt.
5075 * configure.in: Create java-gc.h.
5076 * include/boehm-gc.h: New file.
5077 * include/no-gc.h: New file.
5078 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5080 * java/lang/Object.h: Include java-gc.h.
5081 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5082 friends, if defined.
5083 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5085 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5087 1998-10-26 Tom Tromey <tromey@cygnus.com>
5089 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5090 paragraph separators, not numbers.
5092 * java/io/Writer.java (write): Removed write(char) to avoid
5094 * java/util/Properties.java: Rewrote from scratch.
5095 * include/javaprims.h (java::io): Added PrintWriter,
5096 BufferedWriter, PushbackReader.
5098 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5100 * java/lang/System.java: exit() is a static method.
5102 1998-10-26 Tom Tromey <tromey@cygnus.com>
5104 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5106 (_Jv_NewStringUtf8Const): Likewise.
5107 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5108 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5110 * java/lang/Object.h (Object): Add mark_array as friend function.
5111 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5112 _Jv_AllocBytes, to ensure that header is marked.
5113 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5115 (mark_array): Push sync_info field for array.
5117 1998-10-24 Tom Tromey <tromey@cygnus.com>
5119 * java/lang/String.java (String): Updated for StringBuffer
5121 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5123 * java/lang/StringBuffer.java: Renamed fields to conform to
5124 serialization spec: buffer->value, next->count, copy->shared.
5126 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5128 * java/util/TimeZone.java: New class.
5129 * java/util/SimpleTimeZone.java: New class.
5130 * java/util/Locale.java: New file.
5131 * java/util/Calendar.java: Make almost complete.
5132 * java/util/GregorianCalendar.java
5133 * java/util/natGregorianCalendar.cc: New file.
5134 * java/util/Date.java: Re-written from scratch.
5135 * java/util/natDate.cc (setTime): Removed - no longer native.
5136 * include/javaprims.h (java::util): Add new classes.
5137 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5138 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5140 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5142 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5143 returning it as a jint.
5145 1998-10-23 Tom Tromey <tromey@cygnus.com>
5147 * prims.cc (arg_vec, main_group, main_thread): New globals.
5148 (JvRunMain): Use them.
5150 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5152 * java/io/DataInputStream.java: Rewritten.
5154 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5155 tertiary bytes with 0x80 per spec.
5157 1998-10-23 Tom Tromey <tromey@cygnus.com>
5159 * java/lang/String.java (init): Changed name of `copy' argument.
5160 * java/lang/natString.cc (init): Inverted sense of `copy'
5163 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5164 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5165 * boehm.cc (ObjectClass): New define.
5166 (ClassClass): Likewise.
5167 (mark_obj): Special-case Object and Class.
5169 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5171 * java/util/BitSet.java: Rewrote from scratch.
5173 * prims.cc (lookupArray): Removed useless cast.
5175 * java/lang/natObject.cc: Use `#pragma implementation'.
5177 * java/lang/String.java (init): Added `copy' argument.
5178 (String): Look in StringBuffer to find char array.
5179 * java/lang/natString.cc (init): Added `copy' argument.
5180 * java/lang/StringBuffer.java: Rewrote from scratch.
5182 * java/lang/Compiler.java: Rewrote from scratch.
5183 * java/lang/Throwable.java: Don't use NativeLang.
5184 * include/javaprims.h (java::lang): Don't mention NativeLang.
5185 * java/lang/Process.java: Rewrote from scratch.
5186 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5188 (currentClassLoader): Likewise.
5189 (currentLoadedClass): Likewise.
5190 * java/lang/natClass.cc (getClassLoader): Commented out.
5191 * java/lang/Class.java (getClassLoader): Commented out.
5192 * java/lang/Compiler.java: Removed.
5193 * java/lang/NativeLang.java: Removed.
5195 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5196 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5197 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5198 (_Jv_hashUtf8String): Now static.
5199 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5200 name of return type.
5202 * java/lang/Class.h (Class): Declare checkMemberAccess.
5203 * Makefile.in: Rebuilt.
5204 * Makefile.am (nat_headers): Added Member.h.
5205 * java/lang/natClass.cc: Include Member.h.
5206 (getDeclaredClasses): Call checkMemberAccess.
5207 * java/lang/Class.java (checkMemberAccess): Call
5208 SecurityManager.checkMemberAccess.
5210 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5212 * java/lang/SecurityManager.java: Rewritten.
5214 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5216 * java/applet/Applet.java, java/applet/AppletContext.java,
5217 java/applet/AppletStub.java, java/applet/AudioClip.java,
5218 java/awt/AWTError.java, java/awt/AWTException.java,
5219 java/awt/BorderLayout.java, java/awt/Button.java,
5220 java/awt/Canvas.java, java/awt/CardLayout.java,
5221 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5222 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5223 java/awt/Color.java, java/awt/Component.java,
5224 java/awt/Container.java, java/awt/Dialog.java,
5225 java/awt/Dimension.java, java/awt/Event.java,
5226 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5227 java/awt/Font.java, java/awt/FontMetrics.java,
5228 java/awt/Frame.java, java/awt/Graphics.java,
5229 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5230 java/awt/GridLayout.java, java/awt/Image.java,
5231 java/awt/Insets.java, java/awt/Label.java,
5232 java/awt/LayoutManager.java, java/awt/List.java,
5233 java/awt/MediaTracker.java, java/awt/Menu.java,
5234 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5235 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5236 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5237 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5238 java/awt/TextArea.java, java/awt/TextComponent.java,
5239 java/awt/TextField.java, java/awt/Toolkit.java,
5240 java/awt/Window.java, java/awt/image/ColorModel.java,
5241 java/awt/image/CropImageFilter.java,
5242 java/awt/image/DirectColorModel.java,
5243 java/awt/image/FilteredImageSource.java,
5244 java/awt/image/ImageConsumer.java,
5245 java/awt/image/ImageFilter.java,
5246 java/awt/image/ImageObserver.java,
5247 java/awt/image/ImageProducer.java,
5248 java/awt/image/IndexColorModel.java,
5249 java/awt/image/MemoryImageSource.java,
5250 java/awt/image/PixelGrabber.java,
5251 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5252 java/awt/peer/CanvasPeer.java,
5253 java/awt/peer/CheckboxMenuItemPeer.java,
5254 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5255 java/awt/peer/ComponentPeer.java,
5256 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5257 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5258 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5259 java/awt/peer/MenuBarPeer.java,
5260 java/awt/peer/MenuComponentPeer.java,
5261 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5262 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5263 java/awt/peer/TextAreaPeer.java,
5264 java/awt/peer/TextComponentPeer.java,
5265 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5266 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5267 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5268 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5269 java/net/MalformedURLException.java, java/net/NativeNet.java,
5270 java/net/ProtocolException.java, java/net/ServerSocket.java,
5271 java/net/Socket.java, java/net/SocketException.java,
5272 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5273 java/net/URL.java, java/net/URLConnection.java,
5274 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5275 java/net/URLStreamHandlerFactory.java,
5276 java/net/UnknownHostException.java,
5277 java/net/UnknownServiceException.java: Removed.
5279 1998-10-22 Tom Tromey <tromey@cygnus.com>
5281 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5282 finalizer is not Object.finalize.
5283 (internalAddClass): Don't set `final' member of class.
5284 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5285 other places that know about finalize() location.
5286 * java/lang/Class.h (Class): Removed `final' field.
5288 * aclocal.m4, configure: Rebuilt.
5289 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5290 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5292 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5293 * Makefile.in: Rebuilt.
5294 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5296 1998-10-21 Tom Tromey <tromey@cygnus.com>
5298 * java/lang/Object.java (finalize): Move to be first method in
5301 * configure: Rebuilt.
5302 * configure.in (GCINCS): Include contents of boehm-cflags file.
5304 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5306 * java/lang/ArrayIndexOutOfBoundsException.java
5307 (ArrayIndexOutOfBoundsException): Fixed string literal.
5308 * java/lang/StringIndexOutOfBoundsException.java
5309 (StringIndexOutOfBoundsException): Fixed string literal.
5311 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5313 * natFileDescriptorEcos.cc added.
5314 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5316 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5318 * acconfig.h: test for __int32_t and __uint32_t added.
5319 * include/config.h.in: test for __int32_t and __uint32_t added.
5320 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5321 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5322 * configure.in: test for __int32_t and __uint32_t added.
5323 * configure: test for __int32_t and __uint32_t added.
5325 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5327 * configure.in: Test for --enable ecos and link
5328 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5329 natFileDescriptorPosix.cc
5331 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5333 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5335 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5338 * java/io/CharArrayReader.java (close): Synchronize on lock
5339 object per Reader contract.
5340 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5341 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5342 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5343 Ensure that arg passed in isn't negative.
5345 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5346 constructing the superclass.
5348 * java/io/PushbackReader.java (close): Synchronize on lock
5349 object per Reader contract.
5350 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5351 (ready): Synchronize on lock obj. Throw IOException if reader
5353 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5354 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5355 Ensure that arg passed in isn't negative.
5356 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5358 * java/io/StringReader.java: Created.
5360 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5362 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5364 (read): Removed synchronized modifier to match JCL.
5365 (reset): Removed synchronized modifier to match JCL.
5366 (skip): Removed synchronized modifier to match JCL.
5368 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5370 * java/io/PushbackReader.java (PushbackReader): Made
5371 constructors public.
5373 1998-10-17 Tom Tromey <tromey@cygnus.com>
5375 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5376 constructors public.
5378 1998-10-16 Anthony Green <green@cygnus.com>
5380 * aclocal.m4, configure: Rebuilt.
5381 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5383 * configure.host: Rewrote.
5384 * Makefile.in: Rebuilt.
5385 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5386 (AM_CFLAGS): New macro.
5387 ($(c_files)): Use COMPILE macro.
5388 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5389 automake problem(s).
5391 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5393 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5395 * java/io/CharArrayReader.java: Created.
5397 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5399 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5400 size check to allow 0 per JCL.
5402 * java/io/PushbackReader.java: Created.
5404 1998-10-16 Tom Tromey <tromey@cygnus.com>
5406 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5407 <sys/time.h> includes.
5408 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5409 * include/no-threads.h: Conditionalize <unistd.h> include on
5412 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5414 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5417 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5419 * java/io/FilterReader.java: Created.
5421 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5423 * java/io/PushbackInputStream.java: Rewritten.
5425 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5426 that size passed to constructor is legal.
5427 (read): Check that args passed in are legal.
5428 (skip): Rewritten to get rid of the temporary buffer.
5429 (refill): Added marklimit check to grow the buffer.
5431 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5433 (bytesAvail): Removed.
5434 (read): Changed bytesAvail to Math.min.
5435 (skip): Changed bytesAvail to Math.min.
5437 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5438 from the throws clause.
5439 (skip): Rewritten to use a temporary buffer.
5441 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5443 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5446 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5448 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5449 to write the double one word at a time.
5451 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5453 * java/io/BufferedInputStream.java: Rewritten.
5455 1998-10-12 Tom Tromey <tromey@cygnus.com>
5457 * jni.cc: Include config.h and stddef.h.
5459 * java/lang/Class.h (_dispatchTable): Removed again.
5460 Removed all ACC_* defines again.
5462 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5464 * Makefile.am (nat_files): Add netField.o.
5465 (libjava_a_SOURCES): Add jni.cc.
5466 (java/lang/reflect/Field.h): New rule.
5467 * Makefile.in: Re-generated.
5468 * include/javaprims.h: Add some extra class and typedefs.
5469 * include/jni.h: New file.
5472 * include/java-field.h: New file.
5473 * include/jvm.h: #include <java-field.h>.
5474 * boehm.cc: #include <java-field.h>.
5475 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5476 * java/lang/reflect/Member.java: New class.
5477 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5478 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5480 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5482 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5483 testsuite/Makefile.in: Rebuilt.
5484 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5485 * configure.host: Created.
5487 1998-10-10 Tom Tromey <tromey@cygnus.com>
5489 * java/lang/natObject.cc (sync_init): Always allocate a new
5492 1998-10-09 Tom Tromey <tromey@cygnus.com>
5494 * java/io/ByteArrayInputStream.java (mark): Renamed from
5497 * java/io/FileOutputStream.java (finalize): Removed.
5498 * java/io/FileDescriptor.java (finalize): New method.
5500 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5502 * ByteArrayInputStream.java: Corrected status comment.
5504 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5506 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5508 1998-10-08 Tom Tromey <tromey@cygnus.com>
5510 * prims.cc (lookupArray): Use static array to initialize list of
5513 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5515 * prims.cc (lookupArray): Initialize the msize for new
5518 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5520 * configure: Rebuilt.
5521 * configure.in: Check for fsync and sleep.
5522 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5524 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5525 HAVE_SLEEP. Include config.h.
5527 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5528 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5531 1998-10-08 Tom Tromey <tromey@cygnus.com>
5533 * java/io/natFile.cc: Don't include SecurityManager.h.
5534 (performList): Renamed.
5535 (performMkdir): Likewise.
5536 (performRenameTo): Likewise.
5537 (performDelete): Likewise.
5539 * java/io/File.java (performDelete): Renamed from natDelete.
5540 (list): Now written in Java.
5541 (performList): New method.
5542 (performMkdir): New method.
5543 (mkdir): Now written in Java.
5544 (performRenameTo): New method.
5545 (renameTo): Now written in Java.
5547 1998-10-06 Tom Tromey <tromey@cygnus.com>
5549 * Makefile.in: Rebuilt.
5550 * Makefile.am (ETAGS_ARGS): New macro.
5551 (TAGS_DEPENDENCIES): Likewise.
5553 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5555 * Makefile.in: Rebuilt.
5556 * Makefile.am: Use -classpath option with javac.
5558 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5560 * java/io/FileOutputStream.java (finalize): Call
5563 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5565 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5567 * java/lang/mprec.c: Ditto.
5569 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5572 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5574 * java/io/InputStream.java (skip): Make local var i a long.
5576 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5578 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5579 * prims.cc (lookupArray): Use memcpy, not memmove.
5580 * include/config.h.in: Rebuilt.
5581 * acconfig.h (HAVE_MEMCPY): Added.
5582 * configure: Rebuilt.
5583 * configure.in: Check for memcpy again.
5585 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5586 String.compareTo, not ==.
5588 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5589 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5590 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5591 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5592 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5593 into new array's dtable.
5594 (_Jv_AllocObject): Use _Jv_DispatchTable.
5595 (_Jv_NewPrimArray): Likewise.
5596 (_Jv_NewObjectArray): Likewise.
5598 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5600 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5601 offending index value.
5602 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5604 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5605 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5607 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5609 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5611 * java/io/OutputStream.java (write): Use off and len parameters to
5612 output partial byte array.
5614 * java/io/BufferedReader.java, java/io/FileReader.java,
5615 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5616 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5617 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5618 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5620 * include/javaprims.h (java::lang): Added
5621 ExceptionInInitializerError, IllegalStateException,
5622 NoSuchFieldException, and UnsupportedOperationException.
5624 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5626 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5629 * include/java-array.h (__JArray): Added clone method.
5630 * prims.cc (CloneableClass): New define.
5631 (lookupArray): Initialize array class to indicate that it
5632 implements Cloneable.
5634 * java/lang/Class.h: Removed all ACC_* defines.
5635 * prims.cc: Include Modifier.h.
5636 (_Jv_LookupInterfaceMethod): Use methods in
5637 java.lang.reflect.Modifier, not ACC_ defines.
5639 * java/lang/Class.h (Class): Declare getClasses,
5640 getDeclaredClasses, getDeclaringClass, getModifiers,
5641 * java/lang/Class.java: Rewrote from scratch.
5643 * include/javaprims.h (java::lang): Added reflect and
5645 * Makefile.in: Rebuilt.
5646 * Makefile.am (nat_headers): Added Modifier.h.
5648 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5651 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5653 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5654 instead of test and abort.
5656 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5657 remove compiler warning.
5659 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5661 * java/lang/natDouble.cc: zero terminate string.
5662 * strtod.c: Set errno if no digits are found in fraction.
5664 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5666 * java/lang/reflect/Modifier.java: New file.
5668 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5669 * java/lang/VerifyError.java: Rewrote from scratch.
5670 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5671 * java/lang/UnknownError.java: Rewrote from scratch.
5672 * java/lang/StackOverflowError.java: Rewrote from scratch.
5673 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5674 * java/lang/InternalError.java: Rewrote from scratch.
5675 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5676 * java/lang/ExceptionInInitializerError.java: New file.
5677 * java/lang/Error.java: Rewrote from scratch.
5678 * java/lang/ClassFormatError.java: Rewrote from scratch.
5679 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5680 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5681 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5682 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5683 * java/lang/LinkageError.java: Rewrote from scratch.
5684 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5686 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5688 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5689 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5691 * include/cni.h (JvAllocObject): Moved from prims.cc.
5693 * prims.cc (JvAllocObject): Moved to cni.h.
5694 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5695 (finalize_name): Removed.
5697 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5699 * java/lang/Class.h (Class): Added size() method.
5700 * prims.cc (_Jv_MonitorEnter): Removed.
5701 (_Jv_MonitorExit): Removed.
5702 * java/lang/Object.h (JvSyncInfo): Removed.
5703 * Makefile.in: Rebuilt.
5704 * Makefile.am (nat_headers): Added Cloneable.h,
5705 CloneNotSupportedException.h.
5706 * java/lang/Object.h: Rewrote.
5707 * java/lang/natObject.cc: Rewrote from scratch.
5708 * java/lang/Object.java: Rewrote from scratch.
5710 * java/io/natFile.cc: Conditionally include <dirent.h>.
5711 (list): If no <dirent.h>, always return NULL.
5712 * configure: Rebuilt.
5713 * configure.in: Check for dirent.h.
5715 * prims.cc (lookupArray): Don't use sprintf.
5717 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5724 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5725 name conflict with method.
5727 * include/javaprims.h (java::util): Added HashtableEntry.
5729 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5731 * java/util/Hashtable.java: Rewritten.
5733 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5735 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5739 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5742 * posix-threads.cc (_Jv_CondWait): Now returns int.
5743 * include/javaprims.h (java::lang): Added
5744 IllegalMonitorStateException.
5745 * Makefile.in: Rebuilt.
5746 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5747 * include/no-threads.h (_Jv_CondDestroy): Removed.
5748 (_Jv_MutexDestroy): Removed.
5749 (_Jv_CondWait): Now returns int.
5750 (_Jv_CondNotify): Likewise. Added mutex argument.
5751 (_Jv_CondNotifyAll): Likewise.
5752 (_Jv_MutexLock): Always succeed.
5753 (_Jv_MutexUnlock): Likewise.
5754 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5755 (_Jv_HaveMutexDestroy): Define.
5756 (_Jv_CondNotify): Now returns int. Added mutex argument.
5757 (_Jv_CondNotifyAll): Likewise.
5758 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5759 (_Jv_MutexDestroy): Removed.
5760 (_Jv_CondWait): Now returns int.
5761 (_Jv_CondNotify): Likewise. Added mutex argument.
5762 (_Jv_CondNotifyAll): Likewise.
5763 * java/lang/natObject.cc (finalize_sync_info): New function.
5764 (init_mutex): Initialize `init' and register finalizer if
5767 (init_mutex): Use it.
5769 (notifyAll): Use it.
5771 (notify): Throw IllegalMonitorStateException on failure.
5772 (notifyAll): Likewise.
5773 (wait): Likewise. Also, throw InterruptedException if
5775 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5776 InterruptedException.h, IllegalArgumentException.h.
5777 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5779 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5780 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5781 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5782 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5783 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5784 * quick-threads.cc: Renamed all `JvPriv' functions.
5785 * prims.cc: Renamed all `JvPriv' functions.
5786 * posix-threads.cc: Renamed all `JvPriv' functions.
5787 * nogc.cc: Renamed all `JvPriv' functions.
5788 * no-threads.cc: Renamed all `JvPriv' functions.
5789 * boehm.cc: Renamed all `JvPriv' functions.
5790 * include/quick-threads.h: Renamed all `JvPriv' functions.
5791 * include/posix-threads.h: Renamed all `JvPriv' functions.
5792 * include/no-threads.h: Renamed all `JvPriv' functions.
5793 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5795 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5797 (JvPrivCondNotify): Do nothing.
5798 (JvPrivCondNotifyAll): Do nothing.
5800 * prims.cc (processClass): Handle case where state is
5803 * java/lang/natFirstThread.cc: Include <stdlib.h>
5805 * configure: Rebuilt.
5806 * configure.in: Fixed sense of --enable-libjava-debug.
5808 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5809 it can be used afterward by the assertion.
5811 * configure: Rebuilt.
5812 * configure.in: When cross-compiling, assume alloca.
5814 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5815 __builtin_alloca (autoconf docs are wrong here).
5817 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5819 (available): Use `FD_ZERO' (typo fix).
5821 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5823 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5824 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5826 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5827 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5830 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5832 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5834 * java/lang/natDouble.cc: Declare alloca safely.
5836 * configure, include/config.h.in: Rebuilt.
5837 * configure.in: Add alloca check.
5839 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5841 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5842 condition while calling notify.
5843 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5844 (interrupt): Hold mutex for interrupt condition while calling
5847 * java/lang/natString.cc (init): Allocate and try to read `count'
5848 characters, not `count - offset' characters.
5850 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5851 Correctly compute `count'.
5853 * java/lang/Boolean.java (getBoolean): Return false if property
5856 * java/lang/System.java (setProperties): Set prop_init.
5858 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5860 * java/io/PrintStream.java (println): Use line.separator, not
5862 * java/lang/System.java (out, err): Make both autoflush streams.
5863 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5865 * include/config.h.in: Rebuilt.
5866 * acconfig.h (HAVE_MEMCPY): Removed.
5867 * configure: Rebuilt.
5868 * configure.in: Never define HAVE_MEMCPY.
5870 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5872 (_Jv_AllocString): Use JvAllocObject again.
5873 * java/lang/Class.h (thread): New field.
5874 (_Jv_AllocString): No longer a friend.
5875 * prims.cc (processClass): Removed dead code. Changed to more
5876 closely follow the Java Language Specification.
5877 (processClass): Return early if already at the right state.
5879 * prims.cc (JvNewStringUTF): Removed.
5880 * include/cni.h (JvNewStringUTF): New function.
5881 (_Jv_NewStringUTF): Declare as `extern "C"'.
5882 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5884 * java/lang/natDouble.cc: Added copyright info and header
5885 comment. Include <stdlib.h>.
5886 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5887 bytes as are chars in string.
5889 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5891 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5895 * java/lang/System.java (init_properties): Now native.
5896 * java/lang/natSystem.cc (init_properties): New method.
5897 Include java/util/Properties.h.
5899 * Makefile.in: Rebuilt.
5900 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5901 OutputStreamWriter.h, ByteArrayInputStream.h,
5902 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5903 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5904 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5905 Properties.h, Hashtable.h, Dictionary.h.
5908 * include/javaprims.h (java::io): Added Reader, Writer,
5909 InputStreamReader, OutputStreamWriter,
5910 UnsupportedEncodingException, ByteArrayInputStream,
5911 ByteArrayOutputStream, EOFException, SyncFailedException,
5912 PushbackInputStream.
5913 (java::lang): Added Cloneable.
5914 (java::util): Added NoSuchElementException, VectorEnumeration,
5915 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5917 * java/io/PipedReader.java: New file.
5919 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5921 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5924 * java/io/io-defs.h: Removed.
5926 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5927 (FileInputStream): Use new constructor. Can throw IOException.
5929 * java/lang/System.java (getProperty): Don't throw
5930 NullPointerException.
5932 * java/io/RandomAccessFile.java: Rewrote from scratch.
5934 * java/io/natFileDescriptor.cc: Include EOFException.h.
5936 (length): New method.
5937 (getFilePointer): New method.
5939 (available): New method.
5940 * java/io/FileDescriptor.java (SET, CUR): New constants.
5941 (seek, length, getFilePointer, read, available): New decls.
5943 * java/io/PipedWriter.java: New file.
5944 * java/io/StringWriter.java: New file.
5945 * java/io/CharArrayWriter.java: New file.
5946 * java/io/CharConversionException.java: New file.
5947 * java/io/BufferedWriter.java: New file.
5948 * java/io/FilterWriter.java: New file.
5949 * java/io/FileWriter.java: New file.
5951 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5952 OutputStreamWriter.h, NullPointerException.h,
5953 ByteArrayInputStream.h, InputStreamReader.h.
5954 (getBytes): New method.
5955 (init): Throw NullPointerException.
5956 (init): New function.
5957 * java/lang/String.java (getBytes): Added missing decl.
5958 (getBytes): New method.
5959 (String): Added byte[]-based constructors.
5960 (copyValueOf): Wrote.
5961 (init): Declare variant which takes byte array and encoding.
5962 Import java.io.UnsupportedEncodingException.
5964 * java/io/File.java: Rewrote from scratch.
5965 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5966 * java/io/FileDescriptor.java: Rewrote from scratch.
5967 * java/io/FilenameFilter.java: Rewrote from scratch.
5969 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5971 * java/io/SyncFailedException.java: New file.
5972 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5973 * java/io/InterruptedIOException.java: Rewrote from scratch.
5974 * java/io/FileNotFoundException.java: Rewrote from scratch.
5975 * java/io/EOFException.java: Rewrote from scratch.
5976 * java/io/IOException.java: Rewrote from scratch.
5977 * java/io/PrintStream.java: Rewrote from scratch.
5978 * java/io/DataOutputStream.java: Rewrote from scratch.
5979 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5980 * java/io/FilterOutputStream.java: Rewrote from scratch.
5981 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5982 * java/io/PipedOutputStream.java: Rewrote from scratch.
5983 * java/io/FileOutputStream.java: Rewrote from scratch.
5984 * java/io/OutputStream.java: Rewrote from scratch.
5985 * java/io/DataOutput.java: Rewrote from scratch.
5987 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5989 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5991 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5993 * configure.in: Add --enable-libjava-debug
5995 * Makefile.am (nat_headers): Add java/lang/Float.h and
5998 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6000 * Makefile.in, configure, include/config.h.in: Rebuilt.
6002 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6004 * java/lang/Float.java: Rewritten
6005 * java/lang/Double.java: Rewritten
6006 * java/lang/natFloat.cc: toString() added.
6007 * java/lang/natDouble.cc: toString() added.
6008 * java/lang/natDouble.cc: doubleValueOf() added.
6009 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6010 java/lang/strtod.c: added.
6011 * ieeefp.h: __sparc added.
6012 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6014 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6016 * include/javaprims.h (java::lang): Added
6017 CloneNotSupportedException.
6019 * java/lang/Object.java (clone): No longer native. Implemented.
6020 * java/lang/natObject.cc (clone): Removed.
6022 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6024 * prims.cc: Don't make definitions `extern "C"'.
6025 (_Jv_RegisterClass): Renamed from registerClass.
6026 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6027 (_Jv_NewArray): Likewise.
6028 (_Jv_NewMultiArray): Likewise.
6029 (_Jv_CheckCast): Likewise.
6030 (_Jv_LookupInterfaceMethod): Likewise.
6031 (_Jv_CheckArrayStore): Likewise.
6032 (_Jv_RegisterClass): Likewise.
6034 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6035 * configure: Rebuilt.
6036 * configure.in: Don't check for fmod; it is provided by the fdlibm
6038 * prims.cc (fmod): Removed.
6040 * java/lang/natString.cc (charAt): Use _Jv_uint.
6041 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6042 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6043 (equalUtf8Consts): Likewise.
6044 (internalAddClass): Use _Jv_uint.
6045 (processClass): Likewise.
6046 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6047 (_Jv_uint): Renamed from uint32.
6048 (struct _Jv_Utf8Const): Changed members to use new type names.
6050 * configure: Rebuilt.
6051 * configure.in: Don't check for memcpy. Require memmove and a way
6053 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6055 (currentTimeMillis): Don't use #error.
6057 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6059 * java/lang/Math.java: static member random renamed to random_ to
6060 avoid conflict with member function of the same name.
6061 * include/javaprims.h: java.util.Random added.
6063 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6065 * include/java-chartables.h: Regenerated.
6066 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6069 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6071 * java/lang/Math.java: Rewritten.
6072 * java/lang/natMath.cc: New file.
6073 * Files added from fdlibm:
6074 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6075 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6076 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6077 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6078 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6079 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6080 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6081 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6082 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6083 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6084 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6085 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6086 java/lang/k_cos.c, java/lang/sf_ceil.c,
6087 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6088 java/lang/ieeefp.h, java/lang/fdlibm.h
6089 * Makefile.am: rules added for compiling C files from fdlibm.
6091 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6093 * chartables.pl: Minor documentation fixes.
6095 * configure: Rebuilt.
6096 * configure.in: Fixed --help output for --enable-fast-character.
6098 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6100 * configure: Rebuilt.
6101 * configure.in: Recognize --enable-fast-character.
6102 * acconfig.h (COMPACT_CHARACTER): New define.
6103 * include/config.h.in: Rebuilt.
6104 * include/java-chartables.h: New file.
6105 * Makefile.in: Rebuilt.
6106 * Makefile.am (nat_files): Added natCharacter.o.
6107 * java/lang/natCharacter.cc: New file.
6108 * chartables.pl (set_attribute): New function.
6109 (@attributes, @second_attributes): New globals.
6110 ($ROMAN_START, $ROMAN_END): Likewise.
6111 (process_char): Call set_attribute when required.
6112 (print_char): Just print hex value.
6113 (print_block): Generate C++ syntax.
6114 (print_numerics): Likewise.
6115 (print_single_map): Likewise.
6116 (print_all_block): Likewise.
6117 (print_case_table): Likewise.
6118 (print_fast_tables): New function.
6119 Generate C++ code suitable for a header file.
6120 * java/lang/Character.java (table_search): Removed.
6121 (digit_value): Now native.
6122 (getNumericValue): Likewise.
6123 (getType): Likewise.
6124 Removed all automatically-generated tables.
6125 (Tamil_Digit_One): Removed.
6126 (isSpaceChar): Now native.
6127 (isTitleCase): Likewise.
6128 (isLowerCase): Likewise.
6129 (isUpperCase): Likewise.
6130 (toLowerCase): Likewise.
6131 (toTitleCase): Likewise.
6132 (toUpperCase): Likewise.
6133 (isDefined): Fixed sense of test.
6135 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6137 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6139 (regionMatches): Likewise.
6141 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6143 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6145 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6147 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6150 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6153 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6155 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6157 * prims.cc (instanceof_class): Removed.
6158 (instanceof_array): Likewise.
6159 (instanceof): Likewise.
6160 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6161 (_Jv_CheckCast): Likewise.
6162 * java/lang/natClass.cc (isAssignableFrom): New method.
6163 * java/lang/Class.java (isAssignableFrom): Now native.
6165 * include/cni.h (JvThrow): Use `extern inline'.
6166 (JvAllocObject): Likewise.
6167 (JvInitClass): Likewise.
6169 * java/lang/natSystem.cc (arraycopy): Only check class of source
6172 * prims.cc (_Jv_CheckArrayStore): Wrote.
6173 (_Jv_MonitorEnter): Prefer `JvThrow'.
6174 Include ArrayStoreException.h.
6175 (_Jv_CheckCast): Indentation cleanup.
6177 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6179 * chartables.pl: New file.
6180 * java/lang/Character.java: Rewrote from scratch.
6182 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6184 * java/lang/ArithmeticException.java,
6185 java/lang/ArrayIndexOutOfBoundsException.java,
6186 java/lang/ArrayStoreException.java,
6187 java/lang/ClassCastException.java,
6188 java/lang/ClassNotFoundException.java,
6189 java/lang/CloneNotSupportedException.java,
6190 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6191 java/lang/IllegalArgumentException.java,
6192 java/lang/IllegalMonitorStateException.java,
6193 java/lang/IllegalThreadStateException.java,
6194 java/lang/IndexOutOfBoundsException.java,
6195 java/lang/InstantiationException.java,
6196 java/lang/InterruptedException.java,
6197 java/lang/NegativeArraySizeException.java,
6198 java/lang/NoSuchMethodException.java,
6199 java/lang/NullPointerException.java,
6200 java/lang/NumberFormatException.java,
6201 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6202 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6204 * java/lang/IllegalStateException.java,
6205 java/lang/NoSuchFieldException.java,
6206 java/lang/UnsupportedOperationException.java: Created.
6208 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6210 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6211 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6213 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6215 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6217 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6219 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6221 * Makefile.in: Rebuilt.
6223 * include/javaprims.h (java::lang): Added
6224 StringIndexOutOfBoundsException.
6226 * java/lang/String.java: Added header comment and FIXME comment for
6227 missing constructors/methods.
6228 (endsWith): Adjusted offset into string to look at just the last chars.
6229 Commented out undocumented method.
6231 * java/lang/natString.cc: Added includes for
6232 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6233 (String::init): Throw StringIndexOutOfBoundsException.
6234 (String::charAt): Throw StringIndexOutOfBoundsException.
6235 (String::substring): Throw StringIndexOutOfBoundsException.
6236 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6237 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6238 (String::compareTo): Return difference/offset between chars/strings.
6240 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6242 * java/lang/Boolean.java (TYPE): Added comment.
6244 * java/lang/Byte.java (decode): Added - commented out until dependent
6245 code for Integer is written.
6246 (compareTo): JDK 1.2 methods written.
6247 (hashCode): Added comment to note that values have been verified.
6249 * java/lang/Short.java (decode): Added - commented out until dependent
6250 code for Integer is written.
6251 (compareTo): JDK 1.2 methods written.
6252 (hashCode): Added comment to note that values have been verified.
6254 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6256 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6258 * include/javaprims.h (java::lang): Added VirtualMachineError,
6260 * Makefile.in: Rebuilt.
6261 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6262 VirtualMachineError.h.
6263 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6264 (lookupArray): Likewise.
6265 (makeUtf8Const): Likewise.
6266 (_Jv_AllocObject): Likewise.
6267 (_Jv_NewObjectArray): Likewise.
6268 Include OutOfMemoryError.h.
6270 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6271 to use JvNewStringLatin1.
6273 * java/io/io-defs.h: Include java/lang/IOException.h.
6274 * Makefile.in: Rebuilt.
6275 * Makefile.am (nat_headers): Added
6276 ArrayIndexOutOfBoundsException.h,
6277 ClassFormatError.h,ClassNotFoundException.h,
6278 ClassCircularityError.h, ClassCastException.h,
6279 IncompatibleClassChangeError.h, AbstractMethodError.h,
6280 IllegalAccessError.h, LinkageError.h, Error.h,
6281 NegativeArraySizeException.h, IOException.h.
6282 * include/cni.h (SignalError): Removed declaration.
6283 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6284 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6285 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6286 (newInstance): Likewise.
6287 (forName): Likewise.
6288 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6290 (read): Use JvThrow, not SignalError.
6295 (open_read): Likewise.
6296 (open_write): Likewise.
6299 (newstr): New function.
6300 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6302 (lastModifiedUnchecked): Likewise.
6303 (lengthUnchecked): Likewise.
6304 * include/javaprims.h (sorry): Removed declaration.
6305 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6306 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6307 ClassCastException, IncompatibleClassChangeError,
6308 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6309 * prims.cc (instanceof_array): Use JvFail, not sorry.
6311 Include ArrayIndexOutOfBoundsException.h,
6312 ClassFormatError.h,ClassNotFoundException.h,
6313 ClassCircularityError.h, ClassCastException.h,
6314 IncompatibleClassChangeError.h, AbstractMethodError.h,
6315 IllegalAccessError.h, NegativeArraySizeException.h.
6316 (_Jv_ThrowBadArrayIndex): Implemented.
6317 (JvNewStringUTF): Use JvFail, not sorry.
6318 (_Jv_FindClass): Likewise.
6319 (_Jv_NewArray): Likewise.
6320 (throwException): Removed.
6321 (getClass): Use JvThrow.
6322 (processClass): Likewise.
6323 (_Jv_NewObjectArray): Likewise.
6324 (_Jv_NewMultiArray): Likewise.
6325 (_Jv_CheckCast): Likewise.
6326 (_Jv_LookupInterfaceMethod): Likewise.
6327 (SignalError): Removed.
6328 (getClass): Use _Jv_NewStringUtf8Const to create String.
6330 * java/lang/natSystem.cc (arraycopy): Throw
6331 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6333 * Makefile.in: Rebuilt.
6334 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6336 * include/java-array.h: Mention gcjh, not gjavah.
6338 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6339 (canReadUnchecked): Likewise.
6340 (canWriteUnchecked): Likewise.
6341 (isFileUnchecked): Likewise.
6342 * java/io/natFileDescriptor.cc: Don't include cni.h.
6344 * java/lang/Thread.java (run__): Declare.
6345 * java/lang/natThread.cc (run__): New method, to avoid compiler
6347 (start): Use run__, not run_.
6349 * java/io/io-defs.h: Include cni.h and jvm.h.
6351 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6353 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6354 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6355 to natString.cc (with suitable renaming, inlines etc).
6356 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6357 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6358 * java/lang/String.h: Removed - now generated using gjavah.
6359 * java/lang/String.java: Re-written from scratch. Many native methods.
6360 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6361 * java/lang/natString.cc: Many functions re-written for "compact
6362 strings" representation, or native java.lang.String methods added.
6363 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6364 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6365 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6366 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6367 * include/cni.h: Add inline method.
6368 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6369 * include/javaprims.h: Moved some stuff frm String.h.
6370 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6371 * Makefile.am (nat_header): Added Character.h and String.h.
6372 (String.h): Add new rule.
6374 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6376 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6378 * posix-threads.cc: Include cni.h, jvm.h.
6379 * quick-threads.cc: Include cni.h, jvm.h.
6380 * nogc.cc: Include cni.h, not javaprims.h.
6381 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6382 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6383 include java-assert.h.
6384 * java/lang/natSystem.cc: Include cni.h. Don't include
6386 * java/lang/natRuntime.cc: Include cni.h. Don't include
6388 * prims.cc: Rearranged #include ordering. Don't include
6389 java-array.h or java-assert.h.
6390 * boehm.cc: Include config.h, cni.h.
6391 * exception.cc: Include config.h, cni.h.
6392 * include/jvm.h: Include java-assert.h.
6393 * include/cni.h: Include java/lang/Object.h. Don't include
6394 java-threads.h or java-array.h.
6396 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6398 * java/lang/Boolean.java: Rewritten.
6400 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6402 * java/lang/natFirstThread.cc (main_func): New typedef.
6403 (run): Use main_func, not JvPrivThreadStartFunc.
6404 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6406 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6408 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6411 Can't throw Java exceptions with C++ `throw':
6412 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6413 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6414 (setPriority): Likewise.
6418 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6419 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6421 Can't catch Java exceptions from C++:
6422 * java/lang/natThread.cc (finish_): New method.
6424 * java/lang/Thread.java (run_): Rewrote in Java.
6425 (finish_): New native method.
6427 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6429 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6431 * include/javaprims.h (java::io): Added Serializable.
6433 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6435 * java/util/EmptyStackException.java,
6436 java/util/NoSuchElementException.java: Rewritten.
6438 * java/util/ConcurrentModificationException.java,
6439 java/util/MissingResourceException.java,
6440 java/util/TooManyListenersException.java: Created.
6442 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6444 * include/cni.h (JvThrow): New function.
6445 * include/javaprims.h (_Jv_Throw): Declare.
6447 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6449 * java/util/Observable.java: Rewritten.
6451 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6453 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6454 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6455 Include NullPointerException.h.
6457 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6459 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6460 assignability checks. Don't bother using memcpy.
6462 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6464 * include/quick-threads.h (JvPrivThreadWait): New function.
6465 * include/no-threads.h (JvPrivThreadWait): New function.
6466 * include/posix-threads.h (JvPrivThreadWait): New function.
6467 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6469 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6471 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6472 offsets by size of type that is being copied.
6474 * java/lang/natThread.cc (start): Don't pass `object' argument to
6476 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6477 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6479 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6480 always pass thread as object.
6481 * include/quick-threads.h, include/posix-threads.h,
6482 include/no-threads.h (JvPrivThreadStart): Removed `object'
6485 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6487 * java/util/Dictionary.java: Rewritten.
6489 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6491 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6492 (JvPrivThreadDestroy): Likewise.
6494 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6496 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6498 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6500 * java/lang/natSystem.cc: Rewrote from scratch.
6501 * java/lang/System.java: Rewrote from scratch.
6502 * java/lang/Class.h (Class): Declare isAssignableFrom.
6503 * include/javaprims.h (java::lang): Added ArrayStoreException,
6504 IndexOutOfBoundsException.
6505 * Makefile.in: Rebuilt.
6506 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6507 IndexOutOfBoundsException.h.
6508 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6509 * include/jvm.h (_Jv_HashCode): New function.
6511 * java/lang/natThread.cc (suspend): Call checkAccess.
6513 * java/lang/Thread.java (setDaemon): Call checkAccess.
6515 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6517 * java/lang/Runtime.java: Rewrote from scratch.
6518 * java/lang/natRuntime.cc: Rewrote from scratch.
6520 * nogc.cc (JvPrivGCTotalMemory): New function.
6521 (JvPrivGCFreeMemory): Likewise.
6522 (total): New global.
6523 (JvPrivAllocObj): Increment total.
6524 (JvPrivAllocArray): Likewise.
6525 (JvPrivAllocBytes): Likewise.
6526 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6527 * boehm.cc (JvPrivGCTotalMemory): New function.
6528 (sum_blocks): Likewise.
6529 (JvPrivGCFreeMemory): Likewise.
6531 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6533 * include/javaprims.h (java::lang): Added FirstThread.
6534 * java/lang/natFirstThread.cc: New file.
6535 * java/lang/FirstThread.java: New file.
6536 * prims.cc (main_signature): Removed.
6537 (main_name): Removed.
6538 #include FirstThread.h.
6539 * Makefile.in: Rebuilt.
6540 * Makefile.am (TFRIEND): Removed.
6541 (java/lang/Thread.h): Likewise.
6542 (FTFRIEND): New macro.
6543 (java/lang/FirstThread.h): New target.
6544 (nat_files): Added natFirstThread.o.
6545 (nat_headers): Added FirstThread.h.
6546 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6547 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6549 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6553 * java/lang/natThread.cc (start): Synchronize the thread.
6554 (stop): Synchronize the thread.
6556 * java/lang/ThreadDeath.java: Rewrote from scratch.
6558 * Makefile.in: Rebuilt.
6559 * Makefile.am (TGFRIEND): New macro.
6560 (java/lang/ThreadGroup.h): New target.
6561 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6563 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6565 * nogc.cc: Include config.h.
6567 * java/lang/ThreadGroup.java: Rewrote from scratch.
6569 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6571 * java/lang/Thread.java (checkAccess): Only call in to security
6572 manager if it exists.
6573 (Thread): Don't check access when creating the first thread. Add
6574 this thread to the appropriate ThreadGroup.
6576 * java/lang/natThread.cc (run_): Call uncaughtException method on
6579 * java/lang/Runnable.java: Rewrote from scratch.
6580 * java/lang/Thread.java: Updated copyright comment to correct
6583 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6585 * java/util/Random.java: Rewritten.
6587 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6589 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6590 trailing 0 in array[].
6592 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6594 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6595 and RUNTESTFLAGS from AM_MAKEFLAGS.
6596 (SUBDIRS): Conditionally include testsuite.
6597 * Makefile.in: Rebuilt.
6599 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6601 * java/lang/Object.h: Include java-assert.h.
6603 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6605 * Makefile.am: Add testsuite directory.
6606 * configure.in: Build testsuite/Makefile.
6607 * Makefile.in, configure: Rebuilt.
6609 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6611 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6612 * include/jvm.h (_Jv_StartFirstThread): Declare.
6614 * include/javaprims.h (java::lang): Added Exception,
6617 * Makefile.in: Rebuilt.
6618 * Makefile.am (nat_headers): Added NullPointerException.h,
6619 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6620 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6621 (java/lang/Thread.h): New target.
6622 (TFRIEND): New macro
6624 * include/java-assert.h (JvFail): Use 0 and not NULL.
6626 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6627 instead of assuming we are a friend of Thread.
6628 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6629 instead of assuming we are a friend of Thread.
6631 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6633 * java/lang/natThread.cc: Rewrote from scratch.
6634 * java/lang/Thread.java: Rewrote from scratch.
6635 * prims.cc (JvRunMain): Use new Thread constructor.
6636 * include/javaprims.h (java::lang): Added InterruptedException.
6637 * Makefile.in: Rebuilt.
6638 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6639 * java/lang/Thread.h: Removed.
6640 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6641 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6643 * posix-threads.cc (JvPrivThreadJoin): Removed.
6644 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6645 (really_start): Don't notify join_cond.
6646 (JvPrivThreadStart): Added `data' argument.
6647 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6648 (JvPrivThreadJoin): Likewise.
6649 Use JvFail instead of sorry.
6650 (JvPrivThreadSuspend): Removed.
6651 (JvPrivThreadResume): Removed.
6652 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6653 (JvPrivThreadJoin): Likewise.
6654 (JvPrivThreadSuspend): Use JvFail.
6655 (JvPrivThreadResume): Likewise.
6656 (JvPrivThreadSuspend): Removed.
6657 (JvPrivThreadResume): Likewise.
6658 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6659 (JvPrivThread_t): Removed join_mutex, join_cond.
6660 Use JvFail instead of sorry.
6661 (JvPrivThreadSuspend): Removed.
6662 (JvPrivThreadResume): Likewise.
6664 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6666 * java/util/Observer.java: Rewritten
6667 * java/util/Enumeration.java: Rewritten
6669 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6671 * java/util/StringTokenizer.java: Rewritten
6672 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6673 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6674 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6676 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6678 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6681 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6682 Include java-assert.h.
6683 * include/java-assert.h: New file.
6684 * prims.cc (_Jv_Abort): New function.
6685 Include java-assert.h, not assert.h.
6686 (_Jv_MonitorExit): Use JvAssert.
6687 (resolveConstants): Likewise.
6688 (processClass): Likewise.
6689 (JvRunMain): Assert that method is found.
6691 * configure: Rebuilt.
6692 * configure.in: Check for test subdir.
6693 * Makefile.in: Rebuilt.
6694 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6696 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6697 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6699 * prims.cc (resolveConstants): Removed unused variables.
6700 (processClass): Likewise.
6702 * include/quick-threads.h (JvPrivThreadCurrent): Use
6704 * quick-threads.cc (destroy_data): New function.
6705 (JvPrivInitThreads): Create key.
6706 (JvPrivThreadKey): New global.
6707 (JvPrivThreadStart): Use coop_setspecific.
6709 * include/quick-threads.h, include/posix-threads.h,
6710 include/no-threads.h, no-threads.cc, quick-threads.cc,
6711 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6713 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6715 * include/no-threads.h (JvPrivThreadInitData): Don't set
6718 * include/quick-threads.h (JvPrivCondWait): coop function now
6720 (JvPrivThreadJoin): Likewise.
6722 * java/lang/Thread.h (Thread): Updated declaration of
6724 * include/quick-threads.h, include/posix-threads.h: Updated
6725 declaration of JvPrivThreadStart.
6726 * include/no-threads.h (JvPrivThreadStart): Changed definition
6728 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6729 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6730 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6732 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6734 * quick-threads.cc (qthrow): New function.
6735 (JvPrivInitThreads): New function.
6736 (started): New global.
6737 (JvPrivThreadStart): Call coop_start if required.
6738 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6739 (JvPrivThreadDestroy): Likewise.
6740 (JvPrivInitThreads): Removed.
6741 * include/posix-threads.h (JvPrivThreadCancel): Added error
6743 * java/lang/natThread.cc (stop_): Pass exception to
6746 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6748 * include/javaprims.h (java::lang): Added
6749 IllegalArgumentException, IllegalThreadStateException, Math,
6750 NullPointerException, ThreadDeath.
6751 (java::util): Added Enumeration.
6753 * Makefile.in: Rebuilt.
6754 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6756 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6758 (threadsv): Renamed from threads to avoid clash in C++ header.
6759 (groupsv): Likewise.
6760 * include/no-threads.h (JvPrivThreadStart): Removed.
6761 * no-threads.cc (JvPrivThreadStart): New function.
6762 * java/lang/Thread.java (Thread): New constructor for internal use.
6763 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6764 (Thread): Declare constructor.
6765 * prims.cc (JvRunMain): Create the initial Thread and
6767 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6768 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6769 Removed `daemon' argument.
6771 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6772 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6774 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6776 * Makefile.in: Rebuilt.
6777 * Makefile.am (INCLUDES): Include THREADINCS.
6779 * configure: Rebuilt.
6780 * configure.in: Recognize `qt' as a threads package.
6782 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6784 * java/util/Stack.java (pop): Null out topmost node for robustness.
6786 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6788 * java/util/Stack.java: Rewritten.
6789 * java/util/Vector.java (isEmpty): Simplified expression.
6791 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6793 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6794 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6796 * include/java-array.h (JvNewObjectArray): Created inline to
6799 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6802 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6804 * java/util/Vector.java: Rewritten.
6805 * java/io/Serializable.java: Created.
6807 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6809 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6810 Infinity is 1/0, not 1/1.
6812 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6814 * configure: Rebuilt.
6815 * configure.in: Removed duplicate AC_ARG_WITH.
6817 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6819 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6821 (_Jv_InitClass): Renamed from soft_initialise_class.
6822 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6823 (_Jv_CheckCast): Renamed from soft_checkcast.
6824 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6825 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6826 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6827 * include/cni.h (JvInitClass): New function.
6828 (_Jv_InitClass): Renamed from soft_initialise_class.
6830 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6832 * configure: Rebuilt.
6833 * configure.in (CXX): Don't set.
6834 * Makefile.in: Rebuilt.
6835 * Makefile.am (AM_CXXFLAGS): New macro.
6837 * Makefile.in: Rebuilt.
6838 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6839 nogc.o): New target.
6841 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6843 (mark_array): Likewise.
6845 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6847 * java/lang/Class.h (JvMethod): Removed some unused fields.
6848 (JvField.info): Removed unused idx union variant.
6850 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6852 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6855 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6857 * configure.in, configure (CXX): Add -fvtable-thunks.
6859 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6861 * java/lang/Object.java (finalize): Move first.
6862 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6863 (Object): Re-arrange order to match Object.java.
6865 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6867 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6868 * java/lang/natString.cc (hashChars): Likewise.
6870 * prims.cc (RuntimeClass): New macro.
6871 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6873 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6875 * Makefile.in: Rebuilt.
6876 * Makefile.am (AM_MAKEFLAGS): New macro.
6878 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6880 * nogc.cc: Include <javaprims.h>.
6882 * Makefile.in: Rebuilt.
6883 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6885 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6887 * exception.cc (terminate): Removed.
6888 (unexpected): Removed.
6890 * configure: Rebuilt.
6891 * configure.in: Handle case where target subdir is ".".
6893 * configure: Rebuilt.
6894 * configure.in: Compute COMPPATH based on --with-target-subdir
6895 option. Added --with-target-subdir and --with-cross-host. Use
6896 --with-cross-host to determine when a cross compiler is in use.
6898 * Makefile.in: Rebuilt.
6899 * Makefile.am (GJAVAH): Include COMPPATH.
6900 * configure: Rebuilt.
6901 * configure.in: Subst COMPPATH.
6903 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6905 * prims.cc (lockMutex): Removed.
6906 (unlockMutex): Likewise.
6907 (processClass): Lock the class using a JvSynchronize object.
6909 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6911 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6912 (gc_free_fixed): Removed.
6913 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6914 freeing old value of strhash.
6916 * exception.cc (_Jv_type_matcher): Cast first argument to
6919 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6921 * include/java-array.h (jstringArray): New type.
6922 * java/lang/natSystem.cc (setProperty): Removed.
6923 (initProperties): Directly call JvNewStringLatin1 for arguments.
6924 * java/util/natDate.cc: Include java/util/Date.h, not
6927 * java/io/FileDescriptor.java (available): No longer static.
6928 * java/lang/natDouble.cc (Double): Removed class definition.
6929 * include/javaprims.h (java::lang::Number): Declare.
6930 (java::lang::NumberFormatException): Likewise.
6931 (java::io::FilenameFilter): Likewise.
6932 (java::lang::Character): Likewise.
6933 (java::lang::Error): Likewise.
6934 (java::lang::SecurityManager): Likewise.
6935 (java::util::Vector): Likewise.
6936 (java::io::FileNotFoundException): Likewise.
6937 (java::io::IOException): Likewise.
6938 (java::lang::NativeLang): Likewise.
6939 (java::lang::UnsatisfiedLinkError): Likewise.
6940 (java::util::StringTokenizer): Likewise.
6941 (java::io::InputStream, java::io::OutputStream): Likewise.
6942 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6943 (java::util::Hashtable): Likewise.
6944 * Makefile.in: Rebuilt.
6945 * Makefile.am (nat_headers): Added java/lang/Double.h,
6946 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6947 (MOSTLYCLEANFILES): Added nat_headers.
6948 * include/jvm.h: Moved many defines, declarations, and functions
6949 to java/lang/Class.h.
6950 (struct JvSyncInfo): Moved to java/lang/Object.h.
6951 (UTF8_GET): Moved to java/lang/String.h.
6953 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6955 * java/io/io-defs.h: Don't include java-io.h.
6956 * include/java-io.h: Removed.
6957 * include/javaprims.h: Include java::io.
6959 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6961 * include/java-io.h (File): Removed
6962 (FileDescriptor): Likewise.
6964 * java/io/io-defs.h: Include java/io/File.h and
6965 java/io/FileDescriptor.h.
6967 * Makefile.in: Rebuilt.
6968 * Makefile.am (GJAVAH): New macro.
6969 (.class.h): New rule.
6970 (SUFFIXES): Added .h.
6971 (nat_headers): New macro.
6972 ($(nat_headers)): New target.
6973 (BUILT_SOURCES): Added nat_headers.
6975 * include/java-util.h: Removed.
6977 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6979 * include/java-io.h: Changed to avoid java-lang.h.
6980 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6982 * java/lang/natSystem.cc: Include java/lang/System.h, not
6984 * java/lang/natString.cc: Include java/lang/String.h, not
6986 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6988 * java/lang/natClass.cc: Include java/lang/Class.h, not
6990 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6992 * java/lang/natObject.cc: Include java/lang/Object.h, not
6994 * exception.cc: Don't include java-lang.h.
6995 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6996 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6997 * nogc.cc: Don't include java-lang.h.
6998 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6999 * prims.cc (processClass): Don't use `init_type'; just cast to
7001 Include java/lang/Class.h and jvm.h, not java-lang.h.
7002 (JvAllocObject): Wrote single-argument version.
7003 (PrimClass): Inherit from Class.
7004 (initPrimClass): Removed.
7005 * include/java-lang.h: Removed.
7006 * include/jvm.h: Declare struct _dispatchTable.
7007 * include/cni.h: Don't declare _Jv_MonitorEnter,
7008 _Jv_MonitorExit, struct _dispatchTable.
7009 * include/javaprims.h: Moved all typedefs here, from cni.h.
7010 * java/lang/Class.h: New file.
7011 * include/java-array.h: New file.
7012 * java/lang/Object.h: New file.
7014 * prims.cc (classFromSig): Now static.
7016 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7018 * include/cni.h: Don't mention soft_new.
7019 * include/java-lang.h (Object): Don't mention soft_new. Mention
7020 _Jv_NewPrimArray, not newPrimArray.
7021 * prims.cc (soft_new): Removed.
7022 (_Jv_NewArray): Renamed from soft_newarray.
7023 (soft_anewarray): Use JvNewObjectArray.
7024 (newArray): Likewise.
7025 (newRefArray): Removed.
7026 (_Jv_NewPrimArray): Renamed from newPrimArray.
7027 (equalUtf8Consts): Now static.
7028 (soft_instanceof): Removed.
7029 * java/lang/natDouble.cc (doubleToString): Now static.
7031 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7032 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7035 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7037 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7039 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7041 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7042 (JvPrivMutexUnlock): Likewise.
7043 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7044 Return value now jint.
7045 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7048 * Makefile.in: Rebuilt.
7049 * Makefile.am: Don't allow `jV' names.
7050 (maintainer-check): Depend on libjava.a.
7051 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7053 * Makefile.in: Rebuilt.
7054 * Makefile.am (NM): New macro.
7055 (maintainer-check): New target.
7057 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7059 * configure: Rebuilt.
7060 * configure.in: Use --enable-threads, not --enable-gc. Fix
7061 documentation for --enable-threads. Changed option to work like
7062 identical option in gcc/configure.
7064 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7066 * boehm.cc (mark_array): Use JvGetArrayLength.
7068 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7070 * exception.cc: New file (mostly written by Andrew MacLeod),
7071 exception handling support.
7072 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7073 Remove -fexceptions - it is now the default.
7075 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7076 (JvAllocObject): Renamed to _Jv_AllocObject.
7077 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7078 (loadClass): Renamed to _Jv_FindClass.
7079 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7080 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7081 * include/java-lang.h (JvGetArrayLength): New CNI function.
7082 * include/jvm.h (_Jv_FindClass): Added declaration.
7084 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7086 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7088 * java/lang/natClass.cc (getName): Add implementation.
7089 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7091 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7093 * Makefile.in: Rebuilt.
7094 * Makefile.am (.class.o): Added -fexceptions.
7096 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7098 * configure: Rebuilt.
7099 * configure.in: Don't check for __nanosleep.
7100 * posix-threads.cc (nanosleep): Never define.
7102 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7104 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7107 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7109 * java/lang/natThread.cc (enumerate): Uncommented.
7110 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7111 (interrupt): Call it.
7113 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7115 * configure: Rebuilt.
7116 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7118 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7120 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7121 * include/java-lang.h (Thread): Added `interrupted_' method.
7122 * java/lang/Thread.java (interrupted_): New method.
7123 * java/lang/natThread.cc (join): Possibly throw interrupted
7124 exception after join finishes.
7125 (interrupted_): New method.
7126 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7128 (JvPrivThreadJoin): New function.
7129 (really_start): Notify all threads waiting for this thread.
7130 (struct starter): Added `data' member.
7131 (JvPrivThreadStart): Set it.
7132 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7134 (JvPrivThreadJoin): No longer inline.
7135 (JvPrivThreadInterrupt): New function.
7137 * include/no-threads.h (JvPrivThreadSleep): Removed.
7138 * posix-threads.cc (JvPrivThreadSleep): Removed.
7140 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7142 * configure: Rebuilt.
7143 * configure.in (THREADOBJS): Initialize to no-threads.o in
7145 * posix-threads.cc (key): New global.
7146 (JvPrivInitThreads): New function.
7147 (really_start): Set thread-specific data to point to object.
7148 (JvPrivThreadStart): Added `daemon' argument.
7149 (JvPrivThreadSleep): Added `data' argument.
7150 * include/posix-threads.h (JvPrivInitThreads): Removed
7152 (JvPrivThreadCurrent): New function.
7153 * include/no-threads.h (JvPrivThreadInitData): Initialize
7154 JvPrivOnlyThread. Added `thread' argument.
7155 (JvPrivThreadCurrent): New function.
7156 (JvPrivThreadStart): Added `daemon' argument.
7157 * no-threads.cc: New file.
7158 * java/lang/natThread.cc (init_data): New function.
7160 (start): Set `alive' member.
7161 (stop_): Clear `alive' member.
7162 (destroy): Likewise.
7163 (currentThread): Implemented.
7164 (start): Pass `daemon' argument to JvPrivThreadStart.
7166 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7167 (Thread): Added `init_data' method.
7168 * java/lang/Thread.java (alive, data): New instance variables.
7169 (init_data): New private method.
7170 (isAlive): No longer native.
7172 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7174 * include/java-lang.h (JvRunMain): Declare.
7175 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7176 * prims.cc (JvRunMain): New function.
7177 (main_signature, main_name): New globals.
7179 * boehm.cc (mark_array): Use `elements' function and not
7180 operator[] on jarray.
7182 * posix-threads.cc: Include <config.h>. Define nanosleep if
7185 * configure: Rebuilt.
7186 * configure.in: Check for _nanosleep.
7188 * configure: Rebuilt.
7189 * configure.in: Check for pthread_mutexattr_settype.
7191 * include/cni.h (class JvSynchronize): New class.
7192 * java/lang/Thread.java (sleep): Throws InterruptedException.
7193 (join): Throws InterruptedException.
7194 (resume): Not native.
7195 (resume_): New method.
7196 (start): Now synchronized.
7197 (stop_): New method.
7198 (Thread): Synchronize when accessing threadNumber.
7200 * java/lang/natThread.cc (throwException): New macro.
7201 (sleep): Throw InterruptedException.
7204 * include/java-lang.h (Runtime): Added interrupted().
7206 * boehm.cc (call_finalizer): Correctly initialize jobj.
7207 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7209 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7212 * configure: Rebuilt.
7213 * configure.in: Added support for --disable-threads.
7214 * include/no-threads.h: New file.
7216 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7218 * Makefile.in: Rebuilt.
7219 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7220 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7221 (libjava_a_LIBADD): Added THREADOBJS.
7222 * configure: Rebuilt.
7223 * configure.in: Added --with-threads option.
7224 * posix-threads.cc: New file.
7225 * include/posix-threads.h: New file.
7226 * include/java-lang.h (Object): Added static member sync_mutex,
7227 member sync_info, method init_mutex.
7228 (struct JvSyncInfo): New struct.
7229 Include "java-threads.h".
7230 * prims.cc (soft_monitorenter): Wrote.
7231 (soft_monitorexit): Likewise.
7232 * java/lang/natObject.cc (init_mutex): New method.
7236 (sync_mutex): Define.
7237 Include "java-threads.h".
7239 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7241 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7242 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7244 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7246 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7247 Added extern "Java" in places to tell G++ Object is a "Java" type.
7248 Other minor renaming and fixes.
7249 * include/java-io.h (FileDescriptor): Add friend class declarations.
7250 G++ no longer allows non-Java types in method parameters and results
7251 of Java classes. Converted most offending methods to friends.
7252 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7253 * java/lang/natSystem.cc (setProperty): Make friend.
7254 * java/lang/natString.cc, include/java-lang.h (String): Rename
7255 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7256 * include/java-lang.h (JArray): Remove getData and eoprator[].
7257 Add elements friend function instead.
7258 * java/lang/natSystem.cc (arraycopy): Use elements function.
7259 * java/io/natFileDescriptor.cc (read, write): Likewise.
7260 * include/java-lang.h (Object): Remove unused make method.
7261 (System::setProperty(char*,char*)): Turn into friend function.
7262 (Class): Rename newObject by JvAllocObject.
7263 * prims.cc: Update to use JvAllocObject, and elements.
7265 * java/lang/natDouble.cc: Fix double -> jdouble.
7267 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7269 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7271 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7273 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7274 * include/java-lang.h (Runtime): finalize_on_exit and
7275 runFinalizersOnExit now static.
7276 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7278 (finalize_on_exit): Now static.
7280 * boehm.cc (mark_obj): Get class using getClass() method on
7282 (_dispatchTable): Removed.
7284 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7286 * java/io/natFileDescriptor.cc (open_read): Only call open if
7288 (open_write): Likewise.
7290 * Makefile.in: Rebuilt.
7291 * Makefile.am ($(nat_files)): Depend on config.h.
7293 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7295 * prims.cc (ObjectClass): Now a macro; updated for new class name
7297 (StringClass): Likewise.
7298 (ClassClass): Likewise.
7300 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7302 * java/io/natFileDescriptor.cc (available): Do nothing unless
7303 HAVE_SELECT defined.
7304 * java/util/natDate.cc (setTime): Conditional on
7306 (toString): Conditional on HAVE_TIME.
7307 * aclocal.m4, configure: Rebuilt.
7308 * acinclude.m4: New file.
7309 * configure.in: Don't actually call AM_EXEEXT. Call
7310 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7311 --with-target-subdir option. Check for select and open
7314 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7316 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7317 (call_finalizer): Likewise.
7318 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7319 * prims.cc (newObject): Pass actual method pointer to
7320 JvPrivRegisterFinalizer.
7321 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7322 (JvPrivRegisterFinalizer): Changed interface.
7324 * Makefile.in: Rebuilt.
7325 * Makefile.am (MOSTLYCLEANFILES): New macro.
7326 (CLEANFILES): Removed javao_files.
7328 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7330 * nogc.cc: New file.
7331 * Makefile.in: Rebuilt.
7332 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7333 (EXTRA_libjava_a_SOURCES): New macro.
7334 (libjava_a_SOURCES): Removed boehm.cc.
7335 (libjava_a_DEPENDENCIES): Added GCOBJS.
7336 (libjava_a_LIBADD): Likewise.
7337 * configure: Rebuilt.
7338 * configure.in: Added code for --enable-gc=TYPE.
7340 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7342 * boehm.cc (mark_array): Don't further dereference pointer from
7345 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7346 * Makefile.in: Rebuilt.
7347 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7348 one for boehm-gc build directory.
7350 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7352 * include/java-lang.h (finalize_on_exit): New instance variable in
7353 java::lang::Runtime.
7354 (runFinalizersOnExit): New method.
7355 * java/lang/Runtime.java (finalize_on_exit): New instance
7357 (runAllFinalizers_): New private method.
7358 (runFinalizersOnExit): New method.
7359 * boehm.cc (JvPrivRunFinalizers): New function.
7360 (JvPrivRunAllFinalizers): Likewise.
7361 (JvPrivRunGC): Likewise.
7362 * java/lang/natRuntime.cc: Include "jvm.h".
7363 (gc): Call JvPrivRunGC.
7364 (runFinalization): Call JvPrivRunFinalizers.
7365 (runFinalizersOnExit): New method.
7366 (exit_): Call JvPrivRunAllFinalizers if required.
7367 * include/jvm.h: Declare JvPrivRunFinalizers,
7368 JvPrivRunAllFinalizers, JvPrivRunGC.
7370 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7372 * boehm.cc (JvPrivRegisterFinalizer): New function.
7373 (call_finalizer): Likewise.
7374 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7375 * prims.cc (finalize_name): New global.
7376 (newObject): Just call other newObject.
7377 (newObject): Register finalizer if it exists.
7379 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7381 * prims.cc (gc_malloc): Removed.
7382 (makeUtf8Const): Use JvPrivAllocBytes.
7383 (lookupArray): Likewise.
7384 (newPrimArray): Likewise.
7385 (JvNewObjectArray): Use JvPrivAllocArray.
7386 (newObject): Use JvPrivAllocObj.
7387 (newObject): Likewise.
7388 Changed Method -> JvMethod everywhere.
7389 Changed Field -> JvField everywhere.
7390 * include/java-lang.h (Object): Changed type of `fields' to
7392 (jmethodID, jfieldID): New typedefs.
7393 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7395 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7397 (METHOD_NATIVECODE): Moved from java-lang.h.
7398 (class JvField): New class.
7399 (JvGetFirstInstanceField): New function.
7400 (JvFieldIsRef): Likewise.
7401 (JvGetObjectField): Likewise.
7402 (JvNumInstanceFields): Likewise.
7404 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7406 * boehm.cc: New file.
7407 * Makefile.in: Rebuilt.
7408 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7409 (INCLUDES): Added -I options to find boehm-gc files.
7411 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7413 * configure: Rebuilt.
7414 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7416 * Makefile.in: Rebuilt.
7417 * Makefile.am (nat_files): New macro.
7418 (libjava_a_DEPENDENCIES): Use it.
7419 (libjava_a_LIBADD): Likewise.
7420 ($(nat_files)): New static pattern rule.
7421 (class_files): Run separate find to find .class files.
7422 (javao_files): Compute based on class_files.
7423 (BUILT_SOURCES): New macro.
7425 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7427 * Makefile.am (java_files): New macro.
7428 (class_files): Likewise.
7429 (javao_files): Likewise.
7430 (libjava_a_DEPENDENCIES): Include $(javao_files).
7431 (libjava_a_LIBADD): Likewise.
7432 (classes.stamp): Depend on $(java_files); only recompile changed
7435 (CLEANFILES): Don't run find; use macros. Don't mention
7437 (.class.o): New target.
7438 (compiled.stamp): Removed.
7440 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7442 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7443 LineNumberReader}>java: Newly-implemented standard classes.
7445 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7447 * Makefile.in: Rebuilt.
7448 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7450 * Makefile.in: Rebuilt.
7451 * Makefile.am (hack): New macro.
7452 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7454 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7456 * include/config.h.in: New file.
7457 * include/config.h: Removed.
7458 * acconfig.h: New file.
7459 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7460 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7461 libjava_a_LIBADD): New macros.
7462 (INCLUDES): New macro.
7465 (SUFFIXES): Removed.
7467 (libjava.a): Removed.
7469 * configure: Rebuilt.
7470 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7471 Look for headers and functions we require. Create
7474 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7476 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7477 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7478 soft_lookupinterfacemethod): New functions.
7479 (PrimClass): Actually initialize the primitive classes.
7480 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7482 * include/java-util.h: Removed java::util definition.
7483 * include/cni.h: Moved java::util here and added Properties.
7484 Added more function prototypes.
7485 * include/java-lang.h: Added mroe methods and friend declarations.
7486 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7487 * include/jvm.h (strLengthUtf8): Add declaration.
7489 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7491 * java/lang/{Byte,Short,Void}.java: New classes.
7492 * java/lang/Character.java (isJavaIdentifierStart,
7493 JavaIdentifierPart): New static methods.
7494 * java/lang/Number.java (byteValue, shortValue): New methods.
7496 * java/lang/String.java (intern, hashCode): Make native.
7497 * java/lang/natString.cc: New file. Handle the string pool.
7498 * Makefile.am: Build natString.o. Use CXXFLAGS.
7500 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7501 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7502 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7503 * java/lang/System.java (setProperty): New private method.
7504 (initProperties): Take argument, and make native.
7505 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7506 (currentTimeMillis): Make more robust.
7508 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7509 * java/io/UnsupportedEncodingException.java: New exception class.
7511 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7512 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7514 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7516 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7517 * prims.cc: Added bunch of stuff.
7518 * include/cni.h: Added various definitions.
7519 * include/java-lang.h: Added Method, various friends, some macros.
7521 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7522 * java/lang/System.java (arraycopy): Make native.
7524 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7526 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7527 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7528 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7529 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7531 * java/lang/Runtime.java: Declare methods as native instead of
7533 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7534 * java/lang/System.java: Comment out some stuff, for now.
7535 * java/lang/Thread.java: Re-write. Use native methods.
7536 * java/lang/NativeLang.java: Remove most of it.
7538 * java/util/natDate.cc: Native (C++) methods for Date.
7539 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7540 * java/util/Date.java: Complete re-write.
7542 * java/io/io-defs.h: New header file.
7543 * java/io/FileDescriptor.java: Add a bunch of private methods,
7544 mostly moved from NativeIO.java and natNativeIO.cc.
7545 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7546 * java/io/File.java: Use new code.
7547 * java/io/{FileInputStream.java.FileOutputStream.java,
7548 RandomAccessFile.java}: Use new private FileDescriptor methods.
7549 * java/io/NativeIO.java: Removed, no longer used.
7551 * java/io/StreamTokenizer.java (numericChars): Make char array.
7553 * include/*.h: Various header files used by the C++ native code.
7555 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7556 New autoconf+automake-based setup.
7557 * prims.cc: New file for Java "primitives".