1 2000-02-01 Tom Tromey <tromey@cygnus.com>
3 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
8 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
10 (wrap_value): New function.
11 (_Jv_JNI_CallAnyMethodV): Use it.
12 (_Jv_JNI_CallAnyMethodA): Likewise.
13 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
14 (_Jv_JNI_GetStaticField): Likewise.
16 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
17 (_Jv_JNI_GetStaticField): Likewise.
19 2000-01-31 Tom Tromey <tromey@cygnus.com>
21 * prims.cc (_Jv_MallocUnchecked): New function.
22 (main_init): Call _Jv_JNI_Init.
23 * include/jvm.h (_Jv_MallocUnchecked): Declare.
24 (_Jv_JNI_Init): Declare.
25 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
27 (_Jv_JNI_NewGlobalRef): New function.
28 (_Jv_JNI_DeleteGlobalRef): New function.
29 (_Jv_JNI_DeleteLocalRef): New function.
30 (_Jv_JNI_conversion_call): Initialize and clear local reference
32 (_Jv_JNI_NewLocalRef): New function.
33 (struct _Jv_JNI_LocalFrame): New structure.
34 (_Jv_JNI_PushLocalFrame): New function.
35 (_Jv_JNI_EnsureLocalCapacity): New function.
36 (FRAME_SIZE): New define.
37 (_Jv_JNI_GetStringChars): Mark string, not characters.
38 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
39 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
40 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
42 (_Jv_JNI_DefineClass): Make return value a local ref.
43 (_Jv_JNI_FindClass): Likewise.
44 (_Jv_JNI_GetSuperclass): Likewise.
45 (_Jv_JNI_ExceptionOccurred): Likewise.
46 (_Jv_JNI_AllocObject): Likewise.
47 (_Jv_JNI_GetObjectClass): Likewise.
48 (_Jv_JNI_CallAnyMethodV): Likewise.
49 (_Jv_JNI_NewString): Likewise.
50 (_Jv_JNI_NewStringUTF): Likewise.
51 (_Jv_JNI_NewObjectArray): Likewise.
52 (_Jv_JNI_GetObjectArrayElement): Likewise.
53 (_Jv_JNI_ToReflectedField): Likewise.
54 (_Jv_JNI_ToReflectedMethod): Likewise.
55 (_Jv_JNIFunctions): Updated table for new functions.
56 (_Jv_JNI_Init): New function.
58 (unmark_for_gc): Wrote.
59 * include/jni.h (struct JNINativeInterface): Removed name from
60 PopLocalFrame parameter.
61 (class _Jv_JNIEnv): Added `locals' field.
63 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
65 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
68 2000-01-30 Tom Tromey <tromey@cygnus.com>
70 * include/config.h.in: Rebuilt.
71 * acconfig.h (HAVE_ICONV): Define.
73 * configure.in: Check for `iconv' function.
74 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
75 no specific encoder exists.
76 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
77 no specific encoder exists.
78 * Makefile.in: Rebuilt.
79 * Makefile.am (convert_source_files): Mention Input_iconv.java and
81 (nat_source_files): Added natIconv.cc.
82 * gnu/gcj/convert/natIconv.cc: New file.
83 * gnu/gcj/convert/Input_iconv.java: New file.
84 * gnu/gcj/convert/Output_iconv.java: New file.
86 2000-01-28 Tom Tromey <tromey@cygnus.com>
88 * Makefile.in: Rebuilt.
89 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
91 2000-01-26 Tom Tromey <tromey@cygnus.com>
93 * gcj/method.h (JvNumMethods): Moved from Class.h.
94 (JvGetFirstMethod): Likewise.
95 * java/lang/Class.h (Object): Updated decl of
96 _Jv_JNI_ToReflectedField.
97 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
98 * Makefile.in: Rebuilt.
99 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
100 argument of _Jv_JNI_ToReflectedField.
101 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
103 (java/lang/reflect/Method.h): Likewise.
104 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
106 (jweak): New typedef.
107 (struct JNINativeInterface): Correctly declare remaining entries.
108 * jni.cc: Include Class.h, ClassLoader.h.
109 (_Jv_JNI_FindClass): New function.
110 (_Jv_JNI_DefineClass): New function.
111 (_Jv_JNI_conversion_call): New function.
112 (_Jv_JNI_FindClass): Use current class loader to find class.
113 (_Jv_JNI_ExceptionCheck): New function.
114 (_Jv_JNI_FromReflectedField): Now static.
115 (MethodClass): New define.
116 (_Jv_JNI_FromReflectedMethod): New function.
117 (_Jv_JNI_ToReflectedMethod): Likewise.
119 (_Jv_JNI_IsAssignableFrom): Renamed.
120 (_Jv_JNI_GetStringRegion): New function.
121 Include StringIndexOutOfBoundsException.h.
122 (_Jv_JNI_GetStringUTFRegion): New function.
123 (_Jv_JNIFunctions): Updated for new functions.
124 (_Jv_JNI_GetPrimitiveArrayCritical): New function
125 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
126 (_Jv_JNI_GetStringCritical): New function.
127 (_Jv_JNI_ReleaseStringCritical): Likewise.
128 (get_throwable): Removed.
129 (GCJ_JV_JNIENV_FRIEND): Removed.
130 (__GCJ_JNI_IMPL__): Define.
133 * resolve.cc (get_ffi_type_from_signature): Handle case where
136 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
138 * interpret.cc (run): Don't call println.
139 Don't include PrintStream.h.
141 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
142 nameIndex. Use "jint" as type for boffset.
143 * java/lang/Class.h (struct _Jv_Method): Made accflags a
145 (Class): Likewise. Also changed type of method_count,
146 vtable_method_count, size_in_bytes, field_count,
147 static_field_count, interface_count.
148 * gcj/array.h (__JArray): Made `length' a const jsize, not an
151 2000-01-21 Tom Tromey <tromey@cygnus.com>
153 * java/lang/reflect/natConstructor.cc (newInstance): Use
155 * include/jvm.h: Declare _Jv_CallAnyMethodA.
156 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
157 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
160 (invoke): Use _Jv_CallAnyMethodA.
162 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
163 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
165 (struct _Jv_Method): Added getNextMethod method.
166 (JvNumMethods): New function.
167 (JvGetFirstMethod): Likewise.
168 * gcj/field.h (JvGetFirstStaticField): New function.
169 (JvNumStaticFields): Likewise.
170 (getNextField): Renamed from getNextInstanceField.
171 (struct _Jv_Field): New method getClass.
172 * jni.cc: Wrote many new functions.
173 * include/jni.h (JNI_TRUE): Define.
174 (JNI_FALSE): Likewise.
175 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
176 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
177 jcharArray, jfloatArray, jdoubleArray): New typedefs.
178 (jfieldID, jmethodID): Likewise.
179 (JNI_COMMIT, JNI_ABORT): New defines.
180 (JNINativeMethod): New struct.
181 (struct JNINativeInterface): Correctly declared more entries.
182 (class _Jv_JNIEnv): Added `ex' member.
183 (JNI_VERSION_1_1): New define.
184 (JNI_VERSION_1_2): Likewise.
186 * boehm.cc (_Jv_MarkObj): Use getNextField, not
187 getNextInstanceField.
189 2000-01-20 Tom Tromey <tromey@cygnus.com>
191 * resolve.cc (StringClass): Removed.
192 * defineclass.cc (StringClass): Removed.
194 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
198 2000-01-19 Tom Tromey <tromey@cygnus.com>
200 * interpret.cc (PC_REGISTER_ASM): Removed.
202 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
205 * All files: Updated copyright to reflect Cygnus purchase.
207 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
209 * configure: Rebuilt.
210 * configure.in: Recognize --disable-interpreter.
212 2000-01-18 Andrew Haley <aph@cygnus.com>
214 * name-finder.cc (lookup): Check for dladdr function.
215 acconfig.h (HAVE_DLADDR): Add.
216 configure.in: Check for HAVE_DLADDR
218 include/config.h.in: Rebuilt.
220 2000-01-17 Andrew Haley <aph@cygnus.com>
222 * prims.cc (_Jv_RunMain): Set the name of this executable.
224 2000-01-17 Tom Tromey <tromey@cygnus.com>
226 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
227 when backtrace can't be computed.
229 * configure: Rebuilt.
230 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
232 * java/lang/Runtime.java (loadLibraryInternal): Declare.
233 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
234 (_Jv_FindClassInCache): Likewise.
235 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
236 (findSystemClass): Try to load class from compiled module.
238 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
239 (loadLibrary): Likewise.
240 (lt_preloaded_symbols): Define.
241 (loadLibraryInternal): New method.
242 * include/config.h.in: Rebuilt.
243 * acconfig.h (USE_LTDL): Added.
244 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
245 (INCLUDES): Added $(INCLTDL).
246 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
247 (libgcj_la_LIBADD): Likewise.
248 * aclocal.m4, configure: Rebuilt.
249 * configure.in: Added libltdl support.
251 2000-01-15 Tom Tromey <tromey@cygnus.com>
253 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
255 2000-01-14 Andrew Haley <aph@cygnus.com>
257 * java/lang/natThrowable.cc: New file.
259 * java/lang/Throwable.java (fillInStackTrace): Make native.
260 (printStackTrace): Call native method to do this.
261 (Throwable): Call fillInStackTrace.
262 (stackTrace): New variable.
264 * include/jvm.h: Add _Jv_ThisExecutable functions.
266 * prims.cc: (_Jv_execName): New variable.
267 (catch_segv): Call fillInStackTrace.
269 (_Jv_ThisExecutable): New functions.
270 (JvRunMain): Set the name of this executable.
272 * Makefile.am: Add java/lang/natThrowable.cc.
274 * Makefile.in: Rebuilt.
276 * acconfig.h: Add HAVE_PROC_SELF_EXE.
278 * configure.in: Force link with __frame_state_for in
279 FORCELIBGCCSPEC. Add new checks for backtrace.
280 * include/config.h.in: Rebuilt.
282 * name-finder.cc: New file.
283 * include/name-finder.h: New file.
285 2000-01-16 Anthony Green <green@cygnus.com>
287 * java/lang/StringBuffer.java (StringBuffer): Don't special case
290 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
292 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
294 2000-01-13 Tom Tromey <tromey@cygnus.com>
296 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
297 not system loader, as initiating loader.
299 2000-01-11 Tom Tromey <tromey@cygnus.com>
301 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
302 HP/UX. From David Scott Urban.
304 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
306 * java/lang/natMath.cc (pow): Cast args to `double', not
309 (IEEEremainder): Likewise.
310 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
311 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
313 2000-01-09 Anthony Green <green@cygnus.com>
315 * java/lang/natString.cc (init): Test for overflow condition
316 during out of bounds check.
317 (getChars): Throw StringIndexOutOfBoundsException, not
318 ArrayIndexOutOfBoundsException.
320 (regionMatches): Obey case option during string comparison.
322 * configure.host (ligcj_interpreter): New variable. Enable
323 interpreter by default on IA-32.
324 * configure.in: Examine libgcj_interpreter.
325 * configure: Rebuilt.
327 2000-01-07 Tom Tromey <tromey@cygnus.com>
329 * mauve-libgcj: Don't disable ClassTest.
331 * java/lang/natClass.cc (getClasses): Wrote.
333 2000-01-06 Tom Tromey <tromey@cygnus.com>
335 * java/lang/natClass.cc (_getConstructors): Correctly check
336 whether method name is the init name.
337 (getMethod): Look at accflags on method in `klass', not `this'.
339 2000-01-05 Tom Tromey <tromey@cygnus.com>
341 * java/lang/natClass.cc (getMethod): Compute offset relative to
342 `klass's methods table, not `this's table.
344 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
345 In unwrapping/widening case, check whether `k' is null, not
346 whether it is primitive. Initialize `num' from `argelts', not
347 `paramelts'. Correct create and pass arguments to ffi_call.
348 Don't let presence of `this' argument affect index used to look in
350 (COPY): Set appropriate element in `values' vector.
352 * java/lang/natClass.cc: Include <gcj/method.h>.
354 * java/lang/Class.h (_getMethods): Correctly declare as private,
357 * java/lang/Class.h (_getMethods): Declare.
358 * java/lang/Class.java (_getMethods): Declare.
359 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
360 (getDeclaredClasses): Always return empty array.
361 (_getMethods): New method.
363 (getDeclaredMethod): Return `rmethod'.
364 (finit_name): New global.
365 (getDeclaredMethods): Check for finit_name.
366 (_getMethods): Likewise.
367 (getMethod): Only return public methods.
369 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
370 jboolean and select correct ffi type on that basis.
371 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
372 Constructor call always has `void' return type.
374 2000-01-04 Tom Tromey <tromey@cygnus.com>
376 * java/lang/Class.h (getSignature): Updated.
377 * java/lang/Class.java (getSignature): Updated.
378 * java/lang/natClass.cc (getSignature): Added `is_constructor'
380 (getConstructor): Ensure constructor is public.
381 (_getConstructors): Check for public-ness of constructor when
382 `declared' is false, not when it is true.
384 2000-01-04 Warren Levy <warrenl@cygnus.com>
386 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
388 (receive): Set the sender's address in the DatagramPacket.
390 2000-01-04 Tom Tromey <tromey@cygnus.com>
392 * java/lang/reflect/natConstructor.cc (newInstance): Pass
393 declaring class as return_type argument to
394 _Jv_CallNonvirtualMethodA.
395 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
396 constructor case, create object and use it as `this' argument.
397 * java/lang/Class.h (_getConstructors): Declare.
398 (_getFields): Declare.
399 * java/lang/Class.java (getConstructors): Wrote.
400 (_getConstructors): New native method.
401 (getDeclaredConstructors): Wrote.
402 (_getFields): Declare new native method.
403 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
405 (getMethod): Work correctly when class is primitive.
406 (getDeclaredMethods): Likewise. Compute offset using `method',
408 (getDeclaredMethod): Likewise.
409 (getConstructor): Wrote.
410 (ConstructorClass): New define.
411 (getDeclaredConstructor): Wrote.
412 (_getConstructors): New method.
413 (_getFields): New method.
416 * Makefile.in: Rebuilt.
417 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
419 * prims.cc: Remove `#pragma implementation'.
420 * gcj/array.h: Remove `#pragma interface'.
422 * prims.cc (_Jv_equaln): New function.
423 * java/lang/Class.java (getSignature): Declare.
424 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
425 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
427 (getSignature): New method.
428 (getDeclaredMethod): Wrote.
430 Include StringBuffer.h.
431 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
432 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
434 (getSignature): Declare.
435 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
436 (_Jv_equaln): Declare.
437 (_Jv_CallNonvirtualMethodA): Declare.
438 * Makefile.in: Rebuilt.
439 * Makefile.am (nat_source_files): Added natConstructor.cc.
440 (java/lang/reflect/Constructor.h): New target.
441 * java/lang/reflect/natConstructor.cc: New file.
442 * java/lang/reflect/Constructor.java (newInstance): Now native.
443 (declaringClass): Renamed from decl_class.
444 (offset): Renamed from index.
445 (getType): New native method.
446 (getModifiers): Now native.
447 (getParameterTypes): Call getType if required.
448 (hashCode): Include hash code from declaring class.
449 (modifiers): Removed.
450 (toString): Call getType if required.
451 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
452 * java/lang/reflect/natMethod.cc (hack_call): New method.
453 Removed `#if 0' around FFI code.
454 Include <gnu/gcj/RawData.h>.
455 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
456 IllegalArgumentException when argument object and class disagree.
457 (_Jv_GetTypesFromSignature): New function.
459 (ObjectClass): New define.
460 (_Jv_CallNonvirtualMethodA): New function.
461 * java/lang/reflect/Method.java (hack_trampoline): New method.
462 (hack_call): New native method.
464 1999-12-21 Per Bothner <per@bothner.com>
466 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
467 offset in new Method.
469 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
471 * java/lang/natObject.cc (notify): Throw message with
472 IllegalMonitorStateException.
475 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
476 (isInterrupted_): New function, which does clear interrupt_flag.
477 (interrupt): Use `isInterrupted_'.
478 * java/lang/natThread.cc (interrupt): Add comment.
479 (join): Set `prev' in joiner loop.
480 Change various calls to `isInterrupted' to use `isInterrupted_'.
481 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
482 on linux. Set result to 0 on an interrupt. Test interrupted status
483 of java Thread object directly.
484 FLAG_INTERRUPTED: removed.
485 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
486 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
487 (_Jv_InitThreads): Don't block SIGINT.
488 (_Jv_ThreadWait): Don't configure SIGINT handler.
490 1999-12-21 Tom Tromey <tromey@cygnus.com>
492 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
494 1999-12-20 Tom Tromey <tromey@cygnus.com>
496 * java/lang/reflect/Modifier.java (STRICT): New constant.
497 (isStrict): New method.
498 (toString): Added `strict'.
500 1999-12-23 Anthony Green <green@cygnus.com>
502 * configure: Rebuilt.
503 * configure.in (LIBDATASTARTSPEC): Force data_start in with
506 1999-12-19 Anthony Green <green@cygnus.com>
508 * libgcjdata.c: New file.
509 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
510 * configure: Rebuilt.
511 * configure.in (LIBDATASTARTSPEC): Force data with a known name
513 * Makefile.in: Rebuilt.
514 * Makefile.am: Build libgcjdata.a.
516 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
517 * configure: Rebuilt.
518 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
521 1999-12-17 Tom Tromey <tromey@cygnus.com>
523 * java/lang/reflect/Method.java (toString): Call getType if
524 required. Partial fix for PR libgcj/111. From Per Bothner.
526 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
528 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
530 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
531 null String constructor parameter.
532 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
533 for exception messages.
534 BooleanClass: declare.
535 (setOption): Use BooleanClass instead of Class.forName() for
537 (bind): Cast 4th parameter of setsockopt to `char *' for
538 compatibility with older Solaris headers.
539 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
540 sprintf calls for exception messages.
541 BooleanClass, IntegerClass: declare.
542 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
545 1999-12-15 Tom Tromey <tromey@cygnus.com>
547 * java/lang/natSystem.cc (init_properties): Don't set user.name or
548 user.home if NO_GETUID defined. Only set user.dir if getcwd
551 * include/config.h.in: Rebuilt.
552 * acconfig.h (NO_GETUID): New define.
553 * configure.in: Rebuilt.
554 * configure.in: Define NO_GETUID in cross case. Check for getcwd
557 1999-12-08 Tom Tromey <tromey@cygnus.com>
559 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
560 where no recursive mutexes exist. Fixes PR libgcj/117.
562 1999-12-05 Anthony Green <green@cygnus.com>
564 * include/jvm.h: Declare many functions with
565 __attribute__((__malloc__)).
566 * gcj/javaprims.h: Ditto.
568 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
570 * THANKS: Giving credit where credit is due.
572 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
574 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
576 * java/lang/natString.cc (equalsIgnoreCase): return false if
577 anotherString is null.
578 * java/lang/Boolean.java (valueOf): return FALSE if argument is
581 1999-11-30 Tom Tromey <tromey@cygnus.com>
583 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
584 mutex to initialize. Initialize `count' if required.
587 1999-11-27 Per Bothner <per@bothner.com>
589 * exception.cc: Remove prototype declarations for malloc and free.
590 These clash with recent versions of glibc, which specifies `throws ()'
591 when __cplusplus is defined. Instead, #include <stdlib.h>.
593 1999-11-24 Tom Tromey <tromey@cygnus.com>
595 * prims.cc (_Jv_NewObjectArray): Use
596 _Jv_GetArrayElementFromElementType.
597 (_Jv_NewPrimArray): Likewise.
598 * java/lang/natObject.cc (clone): Use
599 _Jv_GetArrayElementFromElementType instead of sizeof.
600 * java/lang/natSystem.cc (arraycopy): Use
601 _Jv_GetArrayElementFromElementType.
602 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
605 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
607 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
608 Exception messages. PR java.net/57.
609 (bind): set SO_REUSEADDR before bind.
610 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
611 overruns. PR java.net/57.
613 1999-11-19 Tom Tromey <tromey@cygnus.com>
615 * Makefile.am (DIVIDESPEC): Removed.
616 (EXCEPTIONSPEC): Removed.
618 1999-11-19 Andrew Haley <aph@cygnus.com>
620 * Makefile.am (JCFLAGS): Add -L$(here)
622 * Makefile.in: Rebuild.
624 1999-11-18 Tom Tromey <tromey@cygnus.com>
626 * java/lang/natDouble.cc: Include <config.h>.
628 * include/config.h.in: Rebuilt.
629 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
630 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
632 * configure: Rebuilt.
633 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
634 requested by configure.host. Don't put `-D' option into
635 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
637 * configure: Rebuilt.
638 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
641 1999-11-18 Andrew Haley <aph@cygnus.com>
643 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
644 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
646 * Makefile.in: Rebuild
647 * acconfig.h: remove SJLJ_EXCEPTIONS
648 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
649 Do not AC_DEFINE SJLJ_EXCEPTIONS.
650 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
651 * gcj/Makefile.in, include/Makefile.in: rebuild.
652 * include/config.h.in: remove SJLJ_EXCEPTIONS.
654 1999-11-18 Andrew Haley <aph@cygnus.com>
656 * gij.cc (main): Rename label to prevent conflict.
658 * exception.cc (_Jv_type_matcher): Don't check the table if we're
659 using setjmp/longjmp exceptions: there isn't one.
661 1999-11-17 Andrew Haley <aph@cygnus.com>
663 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
664 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
665 (__sjthrow): Add declaration.
666 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
670 * Makefile.in: Rebuild
671 * acconfig.h: Add SJLJ_EXCEPTIONS
672 * configure.in: Add SJLJ_EXCEPTIONS
673 * configure: Rebuild.
674 * gcj/Makefile.in: Rebuild.
675 * gcj/cni.h: Add support for sjlj-exceptions.
676 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
677 * include/Makefile.in: Rebuild.
678 * include/default-signal.h: Add support for sjlj-exceptions.
680 1999-11-18 Tom Tromey <tromey@cygnus.com>
682 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
684 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
686 (method_cache): Made larger.
688 1999-11-11 Tom Tromey <tromey@cygnus.com>
690 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
691 initializing mutex. Initialize `count' when required.
693 1999-11-07 Anthony Green <green@trip.cygnus.com>
695 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
698 1999-11-05 Tom Tromey <tromey@cygnus.com>
700 * java/lang/natThread.cc (destroy): Removed incorrect comment.
702 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
704 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
705 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
708 1999-11-05 Tom Tromey <tromey@cygnus.com>
710 * java/lang/natThread.cc (stop): Removed argument name.
712 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
713 `private'; now has default access.
714 * Makefile.in: Rebuilt.
715 * Makefile.am (java/lang/ThreadGroup.h): Removed.
717 1999-11-04 Tom Tromey <tromey@cygnus.com>
719 * java/lang/natClass.cc (method_cache_count): Removed.
720 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
721 (_Jv_AddMethodToCache): Don't loop.
723 * configure.in: Removed `qt' threads case.
724 * include/quick-threads.h: Removed.
725 * quick-threads.cc: Removed.
727 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
728 (_Jv_ThreadDestroy): Likewise.
729 * include/no-threads.h (_Jv_ThreadCancel): Removed.
730 (_Jv_ThreadDestroy): Likewise.
731 * include/posix-threads.h (struct _Jv_Thread_t): Removed
733 (_Jv_ThreadCancel): Removed decl.
734 (_Jv_ThreadDestroy): Removed.
735 * posix-threads.cc (_Jv_ThreadCancel): Removed.
736 (throw_cleanup): Removed.
737 (really_start): Don't push or pop cleanup.
738 (_Jv_ThreadInitData): Don't initialize `exception' field.
739 * java/lang/Thread.java (stop): Officially unimplemented.
740 * java/lang/natThread.cc (stop): Officially unimplemented.
742 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
744 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
747 1999-11-02 Tom Tromey <tromey@cygnus.com>
749 * boehm.cc: Don't include boehm-config.h.
751 1999-11-01 Tom Tromey <tromey@cygnus.com>
753 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
754 (sum_blocks): Removed.
755 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
757 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
759 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
761 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
762 * java/io/InputStreamReader (InputStreamReader): ditto.
764 1999-10-22 Tom Tromey <tromey@cygnus.com>
766 * Makefile.in: Rebuilt.
767 * Makefile.am (java/lang/ClassLoader.h): New target.
768 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
771 * include/java-props.h (_Jv_Compiler_Properties): Changed
773 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
774 * include/jvm.h (_Jv_GCSetInitialHeapSize,
775 _Jv_GCSetMaximumHeapSize): Declare.
776 (JvRunMain, _Jv_RunMain): Declare.
777 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
778 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
779 (_Jv_GCSetMaximumHeapSize): Likewise.
780 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
781 (_Jv_GCSetMaximumHeapSize): Likewise.
782 * prims.cc (parse_heap_size): New function.
783 (_Jv_SetInitialHeapSize): Likewise.
784 (_Jv_SetMaximumHeapSize): Likewise.
785 (_Jv_Compiler_Properties): New global.
786 * gij.cc (help): New function.
788 (heap_size): Likewise.
789 (heap_max_size): Likewise.
790 (main): Parse arguments. Set _Jv_Compiler_Properties.
791 Include <config.h>, <java-props.h>.
792 (_Jv_Compiler_Properties): Removed.
794 1999-10-18 Tom Tromey <tromey@cygnus.com>
796 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
798 (redirect): New static field.
799 * java/lang/ClassLoader.java (getSystemClassLoader): Now
801 (getVMClassLoader0): Removed.
802 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
804 (getSystemClassLoader): Implemented.
806 1999-10-16 Anthony Green <green@cygnus.com>
808 * java/lang/ClassLoader.java (getSystemResource): Use
809 getSystemClassLoader instead of ClassLoader.system.
810 (getSystemResourceAsStream): Ditto.
812 * java/lang/natClassLoader.cc (redirect): Make static and
813 remove #ifdef INTERPRETER so it is always defined.
814 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
815 returns a VMClassLoader.
817 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
818 PropertyResourceBundle if a properties file is found before a
819 ResourceBundle class.
821 1999-10-15 Tom Tromey <tromey@cygnus.com>
823 * gij.cc (main): Formatting fixes.
824 (_Jv_Compiler_Properties): Define.
825 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
827 (init_properties): Set properites from _Jv_Compiler_Properties.
828 * include/java-props.h (_Jv_Compiler_Properties,
829 _Jv_Environment_Properties): Declare.
831 * include/java-props.h: Added copyright.
833 1999-10-13 Anthony Green <green@cygnus.com>
835 * libtool-version: Catch up by incrementing current.
837 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
838 * configure, include/config.h.in: Rebuilt.
839 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
840 * configure.in: Added --disable-getenv-properties and new define
841 `DISABLE_GETENV_PROPERTIES'.
843 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
844 (next_property_key): New function.
845 (next_property_value): New function.
846 (process_gcj_properties): New function.
847 (JvRunMain): Call process_gcj_properties.
850 * java/lang/natSystem.cc (init_properties): Set properties defined
853 * include/java-props.h: New file.
855 * java/lang/natSystem.cc (init_properties): Add new properties to
856 conform with Java Product Versioning Specification.
858 1999-10-12 Tom Tromey <tromey@cygnus.com>
860 * configure: Rebuilt.
861 * configure.in: Fixed test for --disable-java-net.
863 1999-10-06 Tom Tromey <tromey@cygnus.com>
865 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
866 when building Canadian cross.
867 (NATIVE): Don't define when cross-compiling.
869 1999-10-04 Tom Tromey <tromey@cygnus.com>
871 * java/net/natPlainSocketImpl.cc: Don't include headers if
872 java.net is disabled.
874 * Makefile.in: Rebuilt.
875 * Makefile.am (ZINCS): Removed. This is defined in configure.in
876 when needed, and must be left empty when not needed.
878 1999-10-01 Anthony Green <green@cygnus.com>
880 * THANKS: Refreshed from htdocs version.
882 1999-10-01 Steve Chamberlain <sac@pobox.com>
884 * Makefile.in: Rebuilt.
885 * Makefile.am (ZINCS): Define
887 * configure: Rebuilt.
888 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
890 * java/lang/ieeefp.h: Add definitions for picoJava.
892 1999-10-01 Tom Tromey <tromey@cygnus.com>
894 * configure: Rebuilt.
895 * configure.in: Set classpath when invoking gcj. Use changequote
896 around sed invocation.
898 * java/net/natPlainSocketImpl.cc: Stub native functions if
899 DISABLE_JAVA_NET is defined.
900 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
901 typo in exception string.
902 (getTimeToLive): Likewise.
903 Stub native functions if DISABLE_JAVA_NET is defined.
904 * java/net/natInetAddress.cc: Stub native functions if
905 DISABLE_JAVA_NET is defined.
906 * configure.host: Disable java.net for mips-tx39.
907 * configure, include/config.h.in: Rebuilt.
908 * acconfig.h (DISABLE_JAVA_NET): Undefine.
909 * configure.in: Added --disable-java-net and new define
912 1999-09-30 Tom Tromey <tromey@cygnus.com>
914 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
916 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
920 1999-09-28 Tom Tromey <tromey@cygnus.com>
922 * configure: Rebuilt.
923 * configure.in (PROCESS): In POSIX case, only set if not already
925 * configure.host (PROCESS): Set in mips-tx39 case.
927 * aclocal.m4, configure: Rebuilt.
928 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
929 appropriate AC_PROG_ symbol.
931 1999-09-24 Tom Tromey <tromey@cygnus.com>
933 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
935 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
937 Fix for PR java.util/47:
938 * configure, include/config.h: Rebuilt.
939 * configure.in: Don't look for ctime or ctime_r.
940 * Makefile.in: Rebuilt.
941 * Makefile.am (nat_source_files): Don't mention natDate.cc.
942 * java/util/natDate.cc: Removed.
943 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
945 (getAvailableIDs): Rewrote.
946 (getTimeZone): Rewrote.
947 * java/util/Date.java (toGMTString): New method.
948 (toLocaleString): New method.
951 1999-09-23 Tom Tromey <tromey@cygnus.com>
953 * configure: Rebuilt.
954 * configure.in: Print message when checking to see if gcj can
955 handle -fuse-divide-subroutine.
957 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
959 * java/lang/FirstThread.java (run0): Renamed to `run'.
962 * prims.cc (main_init): New function.
963 (JvRunMain): Call it.
964 (_Jv_RunMain): Likewise.
966 (main_init): Ignore SIGPIPE. Fixes PR 51.
968 1999-09-22 Tom Tromey <tromey@cygnus.com>
970 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
972 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
974 * java/text/MessageFormat.java (MessageFormat(String)): Set the
976 * java/text/NumberFormat.java: Check that object is a Number. If
977 not, throw IllegialArgumentException.
979 1999-09-21 Tom Tromey <tromey@cygnus.com>
981 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
982 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
984 * include/posix-threads.h (_Jv_MutexDestroy): Use
986 (_Jv_MutexLock): Likewise.
987 (_Jv_MutexUnlock): Likewise.
989 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
990 previous patch; it too was incorrect.
991 * java/io/PrintStream.java (PrintStream): Likewise.
993 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
994 refer to `this' before calling superclass constructor.
995 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
996 before calling superclass constructor.
998 1999-09-20 Tom Tromey <tromey@cygnus.com>
1000 * configure: Rebuilt.
1001 * configure.in: Send output of `-fuse-divide-subroutine' test
1002 compilation to /dev/null.
1004 1999-09-14 Tom Tromey <tromey@cygnus.com>
1006 * include/java-insns.h: Turned constants into an enum. Added
1007 multiple-inclusion protection.
1009 1999-09-10 Tom Tromey <tromey@cygnus.com>
1011 * configure: Rebuilt.
1012 * configure.in: Build include/Makefile.
1013 * Makefile.in: Rebuilt.
1014 * Makefile.am (SUBDIRS): Added gcj and include.
1015 (install-data-local): New target.
1016 (extra_headers): New macro.
1017 * include/Makefile.in: New file.
1018 * include/Makefile.am: New file.
1020 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1021 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1023 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1024 * resolve.cc: Include config.h.
1025 * defineclass.cc: Include config.h.
1026 * include/java-interp.h: Don't include config.h.
1027 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1030 * gcj/javaprims.h: Regenerated namespace decls.
1031 * classes.pl (scan): Don't put `;' after closing brace.
1033 * Makefile.in: Rebuilt.
1034 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1035 * configure.in: Create gcj/Makefile.
1036 * gcj/Makefile.in: New file.
1037 * gcj/Makefile.am: New file.
1038 * java/lang/Object.h: Don't include any other headers.
1039 * gcj/array.h: Renamed from include/java-array.h.
1040 * gcj/field.h: Renamed from include/java-field.h.
1041 * gcj/method.h: Renamed from include/java-method.h.
1042 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1043 Updated all files to reflect new include structure.
1045 1999-09-09 Tom Tromey <tromey@cygnus.com>
1047 * configure: Rebuilt.
1048 * configure.in: Fixed typo; variable is THREADSPEC and not
1051 1999-09-08 Tom Tromey <tromey@cygnus.com>
1053 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1054 previous change and implemented a correct test in the __m_count
1057 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1060 1999-09-07 Tom Tromey <tromey@cygnus.com>
1062 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1063 code and don't set errno.
1065 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1066 not `r'. Changed `done_sleeping' to a `bool'.
1068 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1070 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1071 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1072 by another thread, rather than by the GC.
1073 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1074 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1075 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1078 1999-09-03 Tom Tromey <tromey@cygnus.com>
1080 * configure: Rebuilt.
1081 * configure.in: Check for fstat function.
1082 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1085 1999-09-02 Tom Tromey <tromey@cygnus.com>
1087 * include/java-array.h (jobjectArrayjchar): Removed unused
1090 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1091 _Jv_PrepareCompiledClass while holding class mutex.
1093 1999-09-01 Tom Tromey <tromey@cygnus.com>
1095 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1096 (_Jv_PthreadGetMutex): Use it.
1097 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1098 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1099 (_Jv_MutexLock): Likewise.
1100 (_Jv_MutexUnlock): Likewise.
1101 * include/config.h.in: Rebuilt.
1102 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1103 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1104 * configure: Rebuilt.
1105 * libgcj.spec.in: Don't mention INTERPSPEC.
1106 * configure.in (INTERPSPEC): Removed.
1107 Only run pthreads-related checks when using POSIX threads. Check
1108 for m_count and __m_count in mutex structure.
1110 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1112 * java/lang/natClass.cc: Fixed notification of threads
1113 when class initialization is complete.
1115 1999-09-01 Tom Tromey <tromey@cygnus.com>
1117 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1118 * resolve.cc: Removed constants defined by
1119 java.lang.reflect.Modifier.
1120 Include <java/lang/reflect/Modifier.h>.
1121 (_Jv_ResolvePoolEntry): Use values from Modifier.
1122 (_Jv_DetermineVTableIndex): Likewise.
1123 (_Jv_PrepareClass): Likewise.
1125 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1126 java.lang.reflect.Modifier.
1127 Include <java/lang/reflect/Modifier.h>.
1128 (checkExtends): Use values from Modifier.
1129 (checkImplements): Likewise.
1130 (handleField): Likewise.
1131 (handleConstantValueAttribute): Likewise.
1132 (handleFieldsEnd): Likewise.
1133 (handleMethod ): Likewise.
1134 (handleMethodsEnd): Likewise.
1135 (handleClassBegin): Likewise.
1136 * interpret.cc: Removed constants defined by
1137 java.lang.reflect.Modifier.
1138 (continue1): Use values from Modifier.
1139 * java/lang/natClassLoader.cc: Removed constants defined by
1140 java.lang.reflect.Modifier.
1142 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1143 JV_STATE_NOTHING, not `0'.
1144 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1146 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1147 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1149 (_Jv_PthreadGetMutex): New function.
1150 (_Jv_PthreadCheckMonitor): Use it.
1151 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1152 (_Jv_MutexLock): Update `count'.
1153 (_Jv_MutexUnlock): Likewise.
1154 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1157 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1159 * Makefile.am (.java.lo): Add rule.
1161 * Makefile.in: Rebuilt.
1163 1999-09-01 Tom Tromey <tromey@cygnus.com>
1165 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1166 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1168 (_Jv_CondNotify): Use it.
1169 (_Jv_CondNotifyAll): Likewise.
1171 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1173 1999-08-31 Tom Tromey <tromey@cygnus.com>
1175 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1178 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1180 * posix-threads.cc: Include <errno.h>.
1182 1999-08-23 Tom Tromey <tromey@cygnus.com>
1184 * boehm.cc: Undefine TRUE and FALSE.
1186 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1188 1999-08-21 Tom Tromey <tromey@cygnus.com>
1190 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1193 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1195 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1197 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1198 (HAVE_STRUCT_IP_MREQ): Added.
1199 * configure, include/config.h.in: Rebuilt.
1200 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1202 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1203 Disable if ip_mreq is not available.
1205 * configure.in: Check types ssize_t and in_addr_t.
1206 * acconfig.h: Undefine them.
1207 * configure, include/config.h.in: Rebuilt.
1209 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1210 function that detects the signature of getpwuid_r.
1211 (init_properties): Use it.
1212 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1215 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1217 * interpret.cc (continue1): Implement explicit dispatch table.
1218 insn_target: Explicit interpreter switch table.
1219 SAVE_PC: New macro, moves pc saving code into instructions that
1221 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1222 PC_REGISTER_ASM: New macro.
1223 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1224 opcode: Remove local variable.
1225 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1226 (POKEI): Use _Jv_word.
1227 (iinc): Use _Jv_word.
1228 (dupx): Change reference argument (sp) to pointer.
1231 * interpret.cc: Remove instruction timing instrumentation.
1233 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1234 comment. Don't use _Jv_ClassNameSamePackage.
1236 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1237 URLPathEntry, CacheEntry}: Removed.
1239 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1241 (.java.lo): Rule removed.
1243 * Makefile.in: Rebuilt.
1245 1999-08-19 Tom Tromey <tromey@cygnus.com>
1247 * java/lang/natThread.cc (class locker): New class.
1248 (join): Use a locker around _Jv_CondWait.
1251 1999-08-18 Tom Tromey <tromey@cygnus.com>
1253 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1254 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1256 1999-08-18 Tom Tromey <tromey@cygnus.com>
1258 * include/javaprims.h ("Java"): Regenerated namespace decls.
1260 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1262 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1263 from _Jv_InternClassStrings.
1265 * prims.cc (_Jv_RunMain): New function.
1266 (JvRunMain): Remove gij-support.
1268 * gij.cc (main): Use _Jv_RunMain.
1270 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1272 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1273 argument in temp variable.
1274 (continue1): For all op_x2y insns, use temp variable for
1275 intermediate value. Also remove some comments.
1277 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1278 (forName): Don't call _Jv_InitClass.
1280 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1282 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1284 * java/util/jar/JarInputStream.java: New file.
1286 * java/util/jar/JarEntry.java: New file.
1288 * java/util/jar/JarFile.java: New file.
1290 * java/net/URLClassLoader.java: New file.
1292 * java/net/JarURLConnection.java: New file.
1294 * gnu/gcj/protocol/jar/Handler.java: New file.
1296 * gnu/gcj/protocol/jar/Connection.java: New file.
1298 * java/security/SecureClassLoader.java: New file.
1300 * java/lang/ClassLoader.java (parent): New variable.
1301 (ClassLoader (ClassLoader)): new constructor.
1302 (findClass): New method.
1303 (loadClass): Add default 1.2 implementation.
1304 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1305 (readfully): Removed.
1307 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1308 (findSystemClass): New method.
1309 (VMClassLoader): Constructor rewritten.
1311 All other methods removed.
1313 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1314 to gnu::gcj::runtime::VMClassLoader.
1315 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1317 (VMClassLoader::findSystemClass): renamed from findBootClass.
1319 * Makefile.am: Add new files.
1320 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1322 * Makefile.in: Rebuilt.
1324 1999-08-17 Tom Tromey <tromey@cygnus.com>
1326 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1328 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1331 1999-08-16 Tom Tromey <tromey@cygnus.com>
1333 * configure: Rebuilt.
1334 * configure.in: Set DIVIDESPEC to empty string if compiler does
1335 not support -fuse-divide-subroutine.
1337 1999-08-14 Per Bothner <per@bothner.com>
1339 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1340 * java/lang/natClass.cc (initializeClass): Likewise.
1341 * java/lang/ClassLoader.java (resolveClass0): New static method.
1342 (resolveClass): Call resolveClass0.
1343 (findSystemClass): No longer static.
1345 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1347 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1349 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1351 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1354 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1356 * Makefile: Rebuilt.
1357 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1360 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1363 * configure: Rebuilt.
1364 * configure.in: Properly align --help output, fix capitalization
1366 * acinclude.m4: Likewise.
1368 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1370 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1372 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1373 (_Jv_callInterpretedMethod): Unused. Remove.
1374 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1376 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1377 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1378 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1379 * interpret.cc: use _Jv_word.
1380 * defineclass.cc: use_Jv_word.
1381 * resolve.cc: Use _Jv_word.
1382 (_Jv_ResolvePoolEntry): Return _Jv_word.
1383 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1384 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1386 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1389 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1391 * configure: Rebuilt.
1392 * configure.in (sched_yield): Try librt first, then libposix4.
1393 Add -lrt, -lposix4 to THREADSPEC.
1395 1999-08-08 Anthony Green <green@cygnus.com>
1397 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1399 1999-08-08 Anthony Green <green@cygnus.com>
1401 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1404 1999-08-08 Anthony Green <green@cygnus.com>
1408 * include/config.h.in: Rebuilt.
1409 * acconfig.h: Add INTERPRETER.
1411 * Makefile.in: Rebuilt.
1412 * Makefile.am (libffi_files): Identify the libffi object files for
1413 inclusion in libgcj.
1414 (LIBFFIINCS): Define.
1416 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1417 Dummy definition for configurations without an interpreter.
1419 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1420 java::lang::Boolean constructor.
1422 * include/java-interp.h: Always include java-cpool.h.
1424 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1425 when INTERPRETER not defined.
1427 * java/lang/Class.h (finalize): Define.
1429 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1430 IOException from File.getCanonicalPath.
1431 (getStream): Likewise.
1434 * THANKS: More thanks.
1436 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1438 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1440 (_Jv_PrepareClass): Allow non-abstract classes to
1441 have abstract subclasses.
1442 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1444 * interpret.cc (continue1/perform_invoke): Don't sign extend
1446 (continue1/lshl,lshr): Push long, not int.
1447 (continue1/ulshr): Use UINT64, not long long.
1448 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1450 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1451 * java/lang/FirstThread.java (run): Add top-level exception
1453 (run0): Renamed from run.
1455 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1457 * configure.in (--with-interpreter): Added.
1458 * include/config.h.in (INTERPRETER): Added.
1460 * java/lang/ClassLoader.java: File replaced.
1461 * java/lang/VMClassLoader.java: New file.
1462 * java/lang/natClassLoader.cc: New file.
1463 * gnu/gcj/runtime/MethodInvocation.java: New file.
1464 * gnu/gcj/util/path/SearchPath.java: New file.
1465 * gnu/gcj/util/path/PathEntry.java: New file.
1466 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1467 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1468 * gnu/gcj/util/path/URLPathEntry.java: New file.
1469 * gnu/gcj/util/path/CacheEntry.java: New file.
1470 * include/java-interp.h: New file.
1471 * include/java-cpool.h: New file.
1472 * include/java-insns.h: New file.
1473 * defineclass.cc: New file.
1474 * interpret.cc: New file.
1475 * resolve.cc: New file.
1477 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1478 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1479 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1481 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1482 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1484 (initializeClass): Use new JV_ prefixed names. Also, call
1485 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1487 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1488 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1489 JV_STATE_LINKED): New.
1490 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1491 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1492 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1493 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1494 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1495 _Jv_InterpMethodInvocation): New friends for interpreter.
1497 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1498 include/java-cpool.h and renamed with JV_ prefix.
1500 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1502 (_Jv_UnregisterClass): New decl.
1504 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1505 class loader argument.
1506 (_Jv_FindClass): Use class loader.
1508 * prims.cc (_Jv_makeUtf8Const): New function.
1509 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1510 (_Jv_NewPrimArray): Ditto.
1511 (_Jv_FindClassFromSignature): Ditto.
1512 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1513 * java/lang/reflect/natMethod.cc (getType): Ditto.
1515 * include/java-field.h (_Jv_Field::isRef): Make robust for
1516 non-resolved contexts.
1518 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1519 Also, don't mark class->next field.
1521 * java/lang/VirtualMachineError.java: Added FIXME note.
1523 * configure.in (INTERPSPEC): New spec.
1524 * libgcj.spec.in: Added INTERPSPEC.
1525 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1526 gnu/gcj/runtime/MethodInvocation.
1527 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1528 (ordinary_java_source_files): Added above mentioned java classes.
1530 * configure: Rebuilt.
1531 * Makefile.in: Rebuilt.
1533 1999-08-06 Tom Tromey <tromey@cygnus.com>
1535 * configure: Rebuilt.
1536 * configure.in: Look for sched_yield in -lrt.
1538 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1540 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1541 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1542 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1544 (toString): Print correctly when `country' is empty.
1546 1999-08-04 Per Bothner <per@bothner.com>
1548 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1550 1999-08-02 Tom Tromey <tromey@cygnus.com>
1552 * aclocal.m4, configure: Rebuilt for new libtool.
1554 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1556 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1557 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1558 * java/net/ServerSocket.java: Define ANY_IF.
1559 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1560 all network interfaces.
1561 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1562 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1564 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1566 * java/io/natFile.cc (performMkdir): Remove FIXME.
1567 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1569 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1571 * configure.in: Check for bstring.h.
1572 * configure, include/config.h.in: Rebuilt.
1573 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1574 * java/net/natPlainSocketImpl.cc: Likewise.
1576 1999-07-31 Tom Tromey <tromey@cygnus.com>
1581 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1583 * configure.in: Check for struct hostent_data and need for
1584 -D_REENTRANT for gethostbyname_r declaration.
1585 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1586 (lookup): Use hostent_data for fixed_buffer.
1587 * configure, include/config.h.in: Rebuilt.
1589 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1591 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1592 available. Don't cast memmove args to (void*).
1593 * configure.in: Do not abort if memmove is not available.
1595 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1597 * java/lang/natString.cc (substring): optimize where substring is
1599 * java/io/File.java (getName): don't return separator with file name.
1600 * java/io/natFile.cc (attr): fix overflow.
1602 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1604 * mauve-libgcj: Disable Object Serialization tests.
1606 1999-07-20 Warren Levy <warrenl@cygnus.com>
1608 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1609 Default to using PlainDatagramSocketImpl.
1610 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1612 1999-07-19 Tom Tromey <tromey@cygnus.com>
1614 * include/stamp-h.in: New file.
1616 1999-07-12 Tom Tromey <tromey@cygnus.com>
1618 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1621 1999-07-07 Andrew Haley <aph@cygnus.com>
1623 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1624 bytes to make it point after the instruction where the trap
1626 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1628 1999-07-07 Tom Tromey <tromey@cygnus.com>
1630 * mauve-libgcj: Explicitly enable formerly disabled java.text
1633 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1636 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1638 * java/net/URL.java (equals): Compare strings using String.equals.
1639 * java/net/URL.java (sameFile): Ditto.
1641 1999-07-02 Warren Levy <warrenl@cygnus.com>
1643 * configure: Rebuilt.
1644 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1645 * include/config.h.in: Rebuilt.
1646 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1647 (mcastGrp): Updated FIXME comments.
1648 (setOption): Fixed typo.
1649 (getOption):Implemented IP_MULTICAST_IF.
1651 1999-07-02 Warren Levy <warrenl@cygnus.com>
1653 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1654 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1655 (getTimeToLive): Implemented.
1656 (setOption): Implemented IP_MULTICAST_IF.
1658 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1660 * java/lang/String.java (toString): Check for this == null and throw
1661 NullPointerException.
1663 1999-07-01 Warren Levy <warrenl@cygnus.com>
1665 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1666 to count and revised comments to match.
1667 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1668 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1669 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1670 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1671 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1672 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1674 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1676 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1677 properly as count rather than outlength.
1678 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1679 output on overflow rather than buffer fill.
1680 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1681 if markPos is 0 and there is still room in the buffer.
1683 1999-07-01 Andrew Haley <aph@cygnus.com>
1685 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1686 This is a workaround for a bug in glibc's pthreads package which
1687 doesn't deliver any sigcontext information to a signal handler.
1689 1999-06-24 Tom Tromey <tromey@cygnus.com>
1691 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1692 * java/lang/fdlibm.h (HUGE): Conditionally define.
1694 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1696 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1697 * java/lang/e_log.c: Don't use __uint32_t.
1699 1999-05-27 Eric Christopher <echristo@cygnus.com>
1701 * configure: Rebuilt
1702 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1703 * acconfig.h: Rebuilt
1704 * include/config.h.in: Rebuilt
1706 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1707 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1708 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1709 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1710 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1711 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1712 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1713 and namespace collision with __uint32_t
1715 1999-06-23 Tom Tromey <tromey@cygnus.com>
1717 * java/util/zip/InflaterInputStream.java (read): Throw
1718 ZipException if inflater throws a DataFormatException.
1720 1999-06-23 Warren Levy <warrenl@cygnus.com>
1722 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1723 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1724 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1725 is not final per JDK.
1726 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1728 * java/util/zip/DataFormatException.java: Class extends Exception.
1729 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1730 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1731 * java/util/zip/ZipInputStream.java: ditto.
1732 (closeEntry): Changed method name to match JDK spec.
1734 1999-06-21 Tom Tromey <tromey@cygnus.com>
1736 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1739 * Makefile.in: Rebuilt.
1740 * Makefile.am (toolexeclibdir): Define as libdir when
1742 * configure: Rebuilt.
1743 * configure.in (USE_LIBDIR): New conditional.
1745 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1747 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1748 hostname in returned InetAddress objects.
1749 (getLocalHostname): Fix typo.
1750 * java/net/InetAddress.java (getByName): Set hostname on return
1752 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1755 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1757 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1758 interfaces if host==NULL.
1759 (accept): Throw message with InterruptedIOException.
1760 (getOption): Cache localAddress.
1761 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1762 'address' for DatagramSocket.
1763 (setTimeToLive): Fix compiler warnings.
1764 (getOption): Cache localAddress.
1765 * java/net/Socket.java (getLocalAddress): Don't need local
1766 InetAddress object. Add FIXME comment about calling checkConnect().
1767 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1768 connection queue to 50 as per JDK 1.2 docs.
1769 (ServerSocket(int,int)): Listen on all network interfaces by
1770 default, per JDK 1.2 docs.
1771 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1772 Add localAddress caching.
1774 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1776 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1778 (write(byte[],int,int)): ditto.
1780 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1782 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1784 1999-06-11 Warren Levy <warrenl@cygnus.com>
1786 * mauve-libgcj: Activated java.net Mauve tests.
1788 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1790 * java/net/natInetAddress.cc (aton): Fix typos.
1791 (lookup): Use a bigger buffer size for gethostbyname_r on all
1792 versions of glibc. Updated FIXME comment explaining this.
1793 Modified while loops to not set herr = ERANGE to work around glibc
1794 problems. Use user specified hostname in InetAddress result when
1795 available (consistent with JDK).
1797 1999-06-10 Warren Levy <warrenl@cygnus.com>
1799 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1800 Throw FileNotFoundException instead of IOException.
1802 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1804 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1805 in static field name.
1806 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1807 throughout rather than ParseException.
1809 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1811 * java/lang/Runtime.java (exec): Convert prog name and arguments
1813 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1814 environment array conversion. Preserve current environment if envp
1815 not passed. Preserve PATH unless explicitly specified.
1816 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1817 followed by EOF. Set a flag when a line is terminated by '\r' and
1818 ignore following '\n' if set.
1820 1999-06-02 Warren Levy <warrenl@cygnus.com>
1822 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1823 Ignore context if spec is an absolute URL. Fix braindead
1825 (hashCode): Use JDK 1.2 style algorithm.
1826 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1827 context URL properly.
1829 1999-05-30 Anthony Green <green@cygnus.com>
1831 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1832 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1834 1999-05-28 Warren Levy <warrenl@cygnus.com>
1836 * java/net/DatagramSocket.java (laddr): Removed.
1837 (DatagramSocket): Removed attempts to get or set laddr if null.
1838 (getLocalAddress): Reimplemented per spec.
1839 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1841 (joinGroup): Throw NullPointerException if any argument is null.
1842 (leaveGroup): ditto.
1843 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1844 * java/net/PlainSocketImpl.java (timeout): Added.
1845 (getInputStream): Added FIXME comment on how to support timeouts
1847 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1848 * java/net/Socket.java: Added FIXME comments to identify
1849 conflicting specs between the JCL and JDK 1.2 documents.
1850 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1851 if host is null. Get localport value resolved by kernel if bind
1853 (receive): Implemented support for timeouts in UDP.
1854 (setOption): Implemented based on natPlainSocketImpl version.
1856 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1857 resolved by kernel if bind lport is 0.
1858 (connect): Get localport value resolved by kernel if bind wasn't
1859 done to set localport.
1860 (accept): Implemented support for timeouts for ServerSocket.
1861 (setOption): Save value for SO_TIMEOUT.
1862 (getOption): Return timeout for SO_TIMEOUT.
1864 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1866 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1867 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1868 (setOption): Made abstract.
1869 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1870 to avoid cpp conflicts in native code.
1871 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1872 cpp conflicts in native code.
1873 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1874 * java/net/Socket.java (getLocalAddress): Implemented.
1875 (setTcpNoDelay): Implemented.
1876 (getTcpNoDelay): Implemented.
1877 (setSoLinger): Implemented.
1878 (getSoLinger): Implemented.
1879 (getSoTimeout): Verify class type.
1880 (setSendBufferSize): Implemented.
1881 (getSendBufferSize): Implemented.
1882 (setReceiveBufferSize): Implemented.
1883 (getReceiveBufferSize): Implemented.
1884 (toString): Prepended "Socket".
1885 * java/net/SocketImpl.java (toString): Rewritten.
1886 (getOption): Made abstract.
1887 (setOption): Made abstract.
1888 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1889 (setOption): Implemented.
1890 (getOption): Implemented.
1892 1999-05-26 Warren Levy <warrenl@cygnus.com>
1894 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1895 address when null. Set SO_REUSEADDR for multicasts.
1896 (getSoTimeout): Implemented.
1897 (setSoTimeout): Implemented.
1898 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1899 * java/net/MulticastSocket.java (getInterface): Implemented.
1900 (setInterface): Implemented.
1901 (setTimeToLive): Check for invalid ttl.
1902 (joinGroup): Verify multicast address and security.
1903 (leaveGroup): Verify multicast address and security.
1904 (send): Implemented.
1905 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1911 (getTTL): Implemented as non-native.
1915 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1916 (getSoTimeout): Implemented.
1917 (setSocketFactory): Made synchronized.
1918 * java/net/Socket.java (setSoTimeout): Implemented.
1919 (getSoTimeout): Implemented.
1920 (close): Made synchronized.
1921 (setSocketImplFactory): Made synchronized.
1922 * java/net/SocketImpl.java: Implement SocketOptions interface.
1923 * java/net/natInetAddress.cc: Corrected module name at top of file.
1924 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1925 (bind): Added FIXME.
1926 (peek): Implemented.
1932 (setOption): Implemented for SO_REUSEADDR.
1933 (getOption): Implemented for SO_REUSEADDR.
1935 1999-05-24 Tom Tromey <tromey@cygnus.com>
1937 * java/util/ResourceBundle.java (getBundle): Throw
1938 NullPointerException if baseName is null.
1940 1999-05-22 Tom Tromey <tromey@cygnus.com>
1942 * java/util/zip/ZipInputStream.java (fill): New method.
1943 (compressed_len): New instance variable.
1944 (getNextStream): Set it.
1945 (read): Reset inflater on EOF. Only read via `super' if entry is
1947 (skip): Only skip via `super' if entry is deflated.
1948 * java/util/zip/Deflater.java (last_input_count): Removed.
1949 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1951 (needsInput): Don't use last_input_count.
1952 (setInput): Don't set last_input_count.
1953 * java/util/zip/natInflater.cc (getRemaining): Return correct
1955 (inflate): Return 0 if input array is length 0.
1956 (setInput): Don't set last_input_count.
1957 * java/util/zip/Inflater.java (last_input_count): Removed.
1959 1999-05-21 Tom Tromey <tromey@cygnus.com>
1961 * Makefile.in: Rebuilt.
1962 * Makefile.am (INCLUDES): Added $(ZINCS).
1963 * configure: Rebuilt.
1964 * configure.in (ZINCS): New subst.
1966 1999-05-21 Andrew Haley <aph@cygnus.com>
1968 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1969 to signal options to allow the same exceptions to be rethrown
1972 1999-05-20 Andrew Haley <aph@cygnus.com>
1974 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1976 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1977 (INIT_FPE): Exception string made more informative.
1978 * include/sparc-signal.h (INIT_FPE): Exception string made more
1980 * testsuite/libjava.lang/Divide_1.java: New file.
1981 * testsuite/libjava.lang/Divide_1.out: New file.
1983 1999-05-19 Tom Tromey <tromey@cygnus.com>
1985 * aclocal.m4, configure: Rebuilt.
1986 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1988 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1991 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1993 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1995 (update): Fail in default case. Always initialize `strat'.
1997 * mauve-libgcj: Enable java.util.zip.
1999 1999-05-18 Warren Levy <warrenl@cygnus.com>
2001 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2002 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2003 PlainDatagramSocketImpl.java, and SocketOptions.java.
2004 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2005 * Makefile.in: Rebuilt.
2007 * java/net/DatagramPacket.java: New file.
2008 * java/net/DatagramSocket.java: New file.
2009 * java/net/DatagramSocketImpl.java: New file.
2010 * java/net/MulticastSocket.java: New file.
2011 * java/net/PlainDatagramSocketImpl.java: New file.
2012 * java/net/SocketOptions.java: New file.
2013 * java/net/natPlainDatagramSocketImpl.cc: New file.
2015 1999-05-18 Tom Tromey <tromey@cygnus.com>
2017 * java/util/zip/ZipOutputStream.java (level): Initial value is
2018 Deflater.DEFAULT_COMPRESSION.
2019 (close): New method.
2020 (closeEntry): Likewise.
2022 (put_version): Likewise.
2023 (write_entry): Likewise.
2024 (put2, put4): Now return `int'.
2025 (comment): Default to empty string.
2026 (bytes_written): New instance variable.
2028 * java/util/zip/ZipEntry.java (setComment): Limit length of
2030 (setCrc): Check CRC validity.
2031 (setExtra): Check argument validity.
2032 (setMethod): Likewise.
2033 (setSize): Likewise.
2034 (ZipEntry): Likewise.
2035 * include/javaprims.h: Updated namespace declarations.
2036 * Makefile.in: Rebuilt.
2037 * Makefile.am (ordinary_java_source_files): Mention new files.
2038 (nat_source_files): Likewise.
2039 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2042 (getInputStream): Handle compressed entries.
2043 * java/util/zip/GZIPOutputStream.java: New file.
2044 * java/util/zip/GZIPInputStream.java: New file.
2045 * java/util/zip/DataFormatException.java: New file.
2046 * java/util/zip/CheckedInputStream.java: New file.
2047 * java/util/zip/CheckedOutputStream.java: New file.
2048 * java/util/zip/InflaterInputStream.java: Implemented.
2049 * java/util/zip/natInflater.cc: New file.
2050 * java/util/zip/Deflater.java: Implemented.
2051 * java/util/zip/natDeflater.cc: New file.
2052 * java/util/zip/DeflaterOutputStream.java: Implemented.
2054 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2055 ZipException, not IOException.
2056 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2059 1999-05-17 Tom Tromey <tromey@cygnus.com>
2061 * java/lang/natSystem.cc (init_properties): URL now points to
2064 1999-05-12 Per Bothner <bothner@cygnus.com>
2066 * java/util/Calendar.java (set): First call computeFields if needed.
2067 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2069 1999-05-12 Tom Tromey <tromey@cygnus.com>
2071 * configure: Rebuilt.
2072 * configure.in: Look for -ldl when using the Boehm collector.
2073 Look for sched_yield in -lposix4.
2075 1999-05-12 Per Bothner <bothner@cygnus.com>
2077 * java/io/File.java (mkdirs): Handle a null parent directory.
2079 1999-05-12 Tom Tromey <tromey@cygnus.com>
2081 * include/javaprims.h: Updated namespace declarations.
2082 * classes.pl (scan): Uniquify class list.
2083 * Makefile.in, configure: Rebuilt.
2084 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2085 (built_java_source_files): New macro.
2086 (nat_headers): Added built_java_source_files.
2087 (javao_files): Likewise.
2088 (EXTRA_libgcj_la_SOURCES): Likewise.
2089 (libgcj.zip): Create built class files.
2090 ($(built_java_source_files:.java=.class)): New target.
2091 (jv_convert_LDADD): Added -L$(here)/.libs.
2092 * configure.in: Create links for ConcreteProcess.java and
2093 natConcreteProcess.cc.
2094 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2095 * java/lang/natEcosProcess.cc: New file.
2096 * java/lang/EcosProcess.java: New file.
2097 * java/lang/PosixProcess.java: New file.
2098 * java/lang/natPosixProcess.cc: New file.
2100 1999-05-12 Warren Levy <warrenl@cygnus.com>
2102 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2103 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2104 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2105 (connect): Throw ConnectException.
2107 1999-05-11 Tom Tromey <tromey@cygnus.com>
2109 * Makefile.in: Rebuilt.
2110 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2111 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2114 * Makefile.in: Rebuilt.
2115 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2116 and it causes problems with libtool.
2118 * Makefile.in, configure: Rebuilt.
2119 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2120 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2121 (jv_convert_DEPENDENCIES): Added ZDEPS.
2122 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2124 (THREADSPEC): Added `-L' to point to qthreads build directory.
2128 * configure, Makefile.in: Rebuilt.
2129 * Makefile.am (toolexeclib_DATA): New macro.
2130 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2131 Recognize --with-system-zlib.
2132 (GCSPEC): New subst.
2133 (THREADSPEC): New subst.
2134 (SYSTEMSPEC): New subst.
2135 (ZLIBSPEC): New subst.
2136 * libgcj.spec.in: New file.
2138 1999-05-10 Tom Tromey <tromey@cygnus.com>
2140 * java/io/InputStreamReader.java (read): If length is 0, return
2141 0. Reset `wpos' and `wcount' when buffer has been filled and
2144 * java/util/Properties.java (save): Removed `FIXME' comment.
2145 (load): Invalid characters in \u now treated as terminators.
2146 Make sure to append character resulting from `\' handling.
2147 Cast to `char' when appending to key or value.
2148 (skip_ws): Inverted test for whitespace.
2150 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2152 (readLine): Likewise.
2153 (readFully): Implemented.
2155 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2157 * java/awt/natToolkit.cc: Added copyright header.
2158 * java/util/zip/InflaterInputStream.java: Added copyright header.
2160 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2162 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2164 (getNextStream): Likewise.
2166 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2168 (getBundle): Don't explicitly throw null pointer exception.
2170 * gnu/gcj/RawData.java: Added copyright header.
2172 * include/jni.h (_Jv_va_list): Always define as va_list.
2174 1999-05-9 Anthony Green <green@cygnus.com>
2176 * java/text/DateFormat.java (computeInstance): Separate time
2178 (getDateTimeInstance): Ditto.
2179 (getDateTimeInstance(int,int)): New method.
2181 * Makefile.in: Rebuilt.
2182 * Makefile.am (ordinary_java_source_files): Add new classes.
2184 * java/util/PropertyResourceBundle.java: New file.
2185 * gnu/gcj/util/EnumerationChain.java: New file.
2187 1999-05-07 Tom Tromey <tromey@cygnus.com>
2189 * acconfig.h (GCJVERSION): New undef.
2190 * java/lang/natSystem.cc (init_properties): Define java.version,
2191 java.class.version, os.name, os.arch, os.version.
2192 Include <sys/utsname.h> if required.
2193 * configure: Rebuilt.
2194 * configure.in: Compute and define GCJVERSION.
2196 * java/lang/natSystem.cc (default_file_encoding): Now static.
2198 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2200 * libtool-version: New file.
2201 * Makefile.in: Rebuilt.
2202 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2205 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2206 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2209 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2210 (we pick those up already).
2212 1999-05-05 Per Bothner <bothner@cygnus.com>
2214 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2215 stub classes. (This is enough to get Kawa to compile against libgcj.)
2217 * gnu/gcj/RawData.java: New class.
2218 * doc/cni.sgml: Document RawData.
2220 * java/util/zip/InflaterInputStream.java: New stub class.
2221 * java/util/zip/ZipInputStream.java: New class. Partly works.
2222 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2223 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2224 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2225 * java/util/zip/ZipOutputStream.java: Start implementation.
2227 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2228 (default_file_encoding): New global, initial value is above macro.
2229 (init_properties): Default file.encoding to default_file_encoding.
2231 * Makefile.am: Add new classes.
2233 1999-05-05 Tom Tromey <tromey@cygnus.com>
2235 * Makefile.in: Rebuilt.
2236 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2237 (clean-local): New target
2239 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2240 (load, loadLibrary): Now native.
2242 * java/lang/Runtime.java (load, loadLibrary): Now native.
2243 (init): New native method.
2244 (Runtime): Use init.
2245 * prims.cc: Include <ltdl.h> if required.
2246 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2248 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2250 * configure.in: Switch from irix threads to posix threads
2251 * configure: Regenerate.
2253 1999-04-30 Tom Tromey <tromey@cygnus.com>
2255 * Makefile.in: Rebuilt.
2256 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2258 1999-04-29 Tom Tromey <tromey@cygnus.com>
2260 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2263 * java/util/Locale.java (Locale(String,String)): Implement in
2264 terms of 3-argument version; variant now defaults to empty
2266 (toString): Assume variant is not null.
2267 (equals): Assume all strings are not null.
2268 (Locale): Throw NullPointerException if any argument is null.
2270 * java/util/ResourceBundle.java (getBundle): Don't try the base
2271 name; now implicit in partialGetBundle call.
2272 (trySomeGetBundle): Search for parent bundles and call setParent
2274 (partialGetBundle): Added `langStop' argument. Use
2275 `Locale.toString' to compute bundleName.
2276 (resource_cache): New static field.
2277 (partialGetBundle): Cache the returned resource bundle. Now
2280 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2283 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2284 * java/text/natCollator.cc (decomposeCharacter): `base' now
2286 * Makefile.in: Rebuilt.
2287 * Makefile.am (ordinary_java_source_files): Added
2288 CollationElementIterator, CollationKey, Collator,
2290 (nat_source_files): Added natCollator.cc.
2291 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2292 (compare): Pass `this' to CollationElementIterator constructor.
2293 (getCollationElementIterator): Likewise.
2294 (ceiNext): Fix off-by-one error when finding initial substring.
2295 (next): Correctly mask off bits when computing return value.
2296 Fixed return values when one string is shorter than the other.
2297 * java/text/CollationElementIterator.java (collator): New field.
2298 (CollationElementIterator): Added collator argument.
2299 (next): Call ceiNext on collator object.
2301 1999-04-26 Tom Tromey <tromey@cygnus.com>
2303 * natCollator.cc: New file.
2305 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2306 (GregorianCalendar): Use it in all constructors.
2307 * java/util/Calendar.java (Calendar): Changed argument name to
2308 `zone' to match code.
2310 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2311 * java/text/CollationKey.java: New file.
2312 * java/text/CollationElementIterator.java: New file.
2313 * java/text/Collator.java: New file.
2314 * java/text/RuleBasedCollator.java: New file.
2316 * Makefile.in: Rebuilt.
2317 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2318 (jv_convert_LDADD): Explicltly add -lm -lc.
2320 1999-04-26 Tom Tromey <tromey@cygnus.com>
2322 * configure, Makefile.in: Rebuilt.
2323 * configure.in: Added AM_PROG_LIBTOOL.
2324 (GCOBJS): Use `.lo' form of files.
2325 (THREADOBJS): Likewise.
2326 (GCDEPS): Use `.la' form of library.
2327 (GCLIBS): Set to be the same as GCDEPS.
2328 (THREADDEPS): Use `.la' form of library.
2329 (THREADLIBS): Set to be the same as THREADDEPS.
2330 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2331 toolexeclib_LIBRARIES.
2332 (libgcj_la_SOURCES): Renamed for libtoolization.
2333 (EXTRA_libgcj_la_SOURCES): Likewise.
2334 (libgcj_la_DEPENDENCIES): Likewise.
2335 (libgcj_la_LIBADD): Likewise.
2336 ($(nat_files)): Use LTCXXCOMPILE.
2337 ($(c_files)): Use LTCOMPILE.
2338 (GCJCOMPILE): New macro.
2340 (.java.o): Likewise.
2341 ($(javao_files)): Likewise.
2342 (jv_convert_LINK): Use LIBTOOL.
2343 (nat_files): Use `.lo' files.
2344 (c_files): Likewise.
2345 (javao_files): Likewise.
2346 (.class.lo): Renamed.
2347 (.java.lo): Likewise.
2348 ($(nat_files)): Depend on %.lo.
2349 ($(c_files)): Likewise.
2350 ($(javao_files)): Likewise.
2351 (jv_convert_LDADD): Link against .lo files.
2352 (jv_convert_DEPENDENCIES): Depend on .lo files.
2353 (maintainer-check): Depend on libgcj.la, but examine .a file.
2354 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2355 (libgcj_la_LDFLAGS): New macro.
2357 1999-04-23 Warren Levy <warrenl@cygnus.com>
2359 * Makefile.am: Added URLDecoder and URLEncoder.
2360 * Makefile.in: Rebuilt.
2362 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2363 setSocketImplFactory to match spec.
2364 * java/net/Socket.java (getSoLinger): Changed return type to
2367 * java/net/URLDecoder.java: New file.
2368 * java/net/URLEncoder.java: New file.
2370 1999-04-21 Tom Tromey <tromey@cygnus.com>
2372 * java/lang/natString.cc (getBytes): Reverted earlier change and
2373 applied correct fix from Per Bothner.
2375 * java/lang/String.java: Don't throw
2376 UnsupportedEncodingException.
2378 * java/lang/natString.cc (getBytes): Correctly size result
2379 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2381 1999-04-20 Andrew Haley <aph@cygnus.com>
2383 * include/sparc-signal.h: new file.
2384 * configure.in: include/sparc-signal.h added.
2385 * configure: regenerated.
2386 * prims.cc (JvRunMain): signal handling code rewritten to be more
2388 (catch_segv): ditto.
2390 * include/i386-signal.h: reorganized.
2391 * include/default-signal.h: reorganized.
2393 1999-04-19 Tom Tromey <tromey@cygnus.com>
2395 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2396 once. From Anthony Green.
2398 1999-04-19 Andrew Haley <aph@cygnus.com>
2400 * Makefile.in: Processed with new automake.
2402 1999-04-19 Tom Tromey <tromey@cygnus.com>
2404 * include/javaprims.h: Removed security namespace.
2406 1999-04-20 Anthony Green <green@cygnus.com>
2408 * java/io/PrintStream.java (println): Remove extra println.
2410 1999-04-19 Anthony Green <green@cygnus.com>
2412 * Makefile.in: Rebuilt.
2413 * Makefile.am (ordinary_java_source_files): Add new security files.
2415 * java/security/NoSuchAlgorithmException.java,
2416 java/security/MessageDigest.java: New files.
2418 * include/javaprims.h: Add security namespace.
2420 1999-04-16 Per Bothner <bothner@cygnus.com>
2422 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2423 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2424 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2425 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2426 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2427 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2428 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2429 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2430 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2431 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2432 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2433 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2434 * Makefile.am: Various changes for new files and conversions.
2436 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2437 New overloading, allows greater efficiency.
2438 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2439 New overloading (for efficiency - avoids copying).
2441 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2442 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2444 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2445 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2446 (writeChars): Don't be quite so eager to flush.
2447 * java/io/PrintStream.java: Rewrite. Now more similar to
2448 OutputStreamWriter, using explicit UnicodeToBytes converter.
2449 Also, autoflush does not need to flush so often.
2450 * java/lang/natString.cc (getBytes): More efficient algorithm.
2451 (init(jbyteArray,jint,jint,jstring)): More efficient.
2453 1999-04-15 Warren Levy <warrenl@cygnus.com>
2455 * Makefile.am (ordinary_java_source_files): Added new Connection
2456 and Handler classes in gnu.gcj.protocol.file package.
2457 * Makefile.in: Rebuilt.
2459 * gnu/gcj/protocol/file/Connection.java: New file.
2460 * gnu/gcj/protocol/file/Handler.java: New file.
2461 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2462 if doInput allows input.
2463 (getOutputStream): Check if doOutput allows output.
2464 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2466 1999-04-14 Tom Tromey <tromey@cygnus.com>
2468 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2469 buffer larger to work around bug.
2470 From Bryce McKinlay <bryce@albatross.co.nz>.
2472 1999-04-14 Andrew Haley <aph@cygnus.com>
2474 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2475 NaNs are always converted to the same long value.
2476 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2479 1999-04-13 Tom Tromey <tromey@cygnus.com>
2481 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2482 instead switch on actual element type.
2484 * Makefile.in: Rebuilt.
2485 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2487 1999-04-13 Andrew Haley <aph@cygnus.com>
2489 * include/i386-signal.h, include/default-signal.h: New files.
2490 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2492 (catch_fpe): New function.
2493 * configure.in: Make link to appropriate include/java-signal.h.
2494 * configure: Rebuilt.
2495 * Makefile.am: include/java-signal.h added to dependency list.
2496 * Makefile.in: Rebuilt.
2498 1999-04-12 Urban Widmark <urban@svenskatest.se>
2500 * java/io/DataInputStream.java (readLine): Corrected handling of
2501 empty lines, from null to "".
2503 1999-04-12 Tom Tromey <tromey@cygnus.com>
2505 * Makefile.in: Rebuilt.
2506 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2508 * java/lang/natSystem.cc (SystemClass): New define.
2509 (init_properties): Synchronize.
2511 1999-04-08 Geoff Berry <gcb@gnu.org>
2513 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2514 * natPlainSocketImpl.cc (accept): Add missing else if check
2517 1999-04-08 Tom Tromey <tromey@cygnus.com>
2519 * java/lang/Long.java (parseLong): Corrected overflow detection
2521 * java/lang/Integer.java (parseInt): Corrected overflow detection
2524 * java/io/PrintStream.java (print): Handle null string argument.
2525 (println): Likewise.
2527 1999-04-07 Warren Levy <warrenl@cygnus.com>
2529 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2530 Set count to 0 when InputStreamReader returns -1 for EOF.
2532 1999-04-07 Tom Tromey <tromey@cygnus.com>
2534 * mauve-libgcj: Omit java.text.Collator,
2535 java.text.RuleBasedCollator.
2537 1999-04-06 Tom Tromey <tromey@cygnus.com>
2539 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2540 IOException from getHttpHeaders().
2541 (getHeaderFieldKey): Likewise.
2543 * include/javaprims.h: Regenerated declarations.
2545 * Makefile.in: Rebuilt.
2546 * Makefile.am (ordinary_java_source_files): Updated for removed
2549 1999-04-06 Per Bothner <bothner@cygnus.com>
2551 * java/util/zip/Adler32.java: New class.
2552 * java/util/zip/CRC32.java: Add working method bodies.
2553 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2554 * Makefile.in: Re-generate.
2556 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2558 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2559 from version in removed www hierarchy.
2560 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2561 version in removed www hierarchy.
2563 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2564 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2565 * gnu/gcj/www/protocol/http: Removed dir.
2566 * gnu/gcj/www/protocol: Removed dir.
2567 * gnu/gcj/www: Removed dir.
2569 * java/net/HttpURLConnection.java: Revised comments to indicate
2570 missing JDK 1.2 methods.
2572 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2573 hierarchy rather than the gnu/gcj/www/protocol one.
2574 * java/net/URLConnection.java: Updated status comments.
2575 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2576 the gnu/gcj/www/content one.
2578 1999-04-06 Per Bothner <bothner@cygnus.com>
2580 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2581 The gen-from-JIS program is in $(CONVERT_DIR).
2583 1999-04-06 Tom Tromey <tromey@cygnus.com>
2585 * mauve-libgcj: Renamed from mauve-libjava.
2587 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2589 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2590 (getResponseMessage): Implemented.
2591 (getResponseVals): New private method.
2593 * java/net/URLConnection.java (getContent): Implemented.
2594 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2596 1999-04-05 Tom Tromey <tromey@cygnus.com>
2598 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2599 (jv_convert_SOURCES): Renamed.
2600 (EXTRA_jv_convert_SOURCES): Likewise.
2601 (jv_convert_LDFLAGS): Likewise.
2602 (jv_convert_LINK): Likewise.
2603 (jv_convert_LDADD): Likewise.
2604 (jv_convert_DEPENDENCIES): Likewise.
2606 * Makefile.in: Rebuilt.
2607 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2610 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2612 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2613 method for comparison.
2615 * java/net/URLConnection.java (getContentLength): Implemented.
2616 (getContentType): Implemented.
2617 (getContentEncoding): Implemented.
2618 (getExpiration): Implemented.
2619 (getDate): Implemented.
2620 (getLastModified): Implemented.
2621 (getHeaderFieldInt): Implemented.
2622 (getHeaderFieldDate): Implemented.
2624 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2626 * java/net/URLConnection.java (toString): Implemented.
2627 (setContentHandlerFactory): Implemented.
2628 (setContentHandler): Wrote new private helper method.
2630 1999-04-01 Tom Tromey <tromey@cygnus.com>
2632 * Makefile.in: Rebuilt.
2633 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2634 of 1999-03-31; we always want to build all the .class files.
2635 Depend on java_source_files, not libgcj.zip.
2636 (nat_headers): Define in terms of ordinary_java_source_files.
2638 1999-03-31 Tom Tromey <tromey@cygnus.com>
2640 * Makefile.in: Rebuilt.
2641 * Makefile.am (special_java_source_files): New macro.
2642 (java_source_files): Use it.
2643 (ordinary_java_source_files): New macro.
2644 (java_source_files): Use it.
2645 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2646 creating headers for those files with hand-maintained headers.
2648 * include/javaprims.h: Regenerated namespace declarations.
2649 * classes.pl (scan): Include [0-9] in regexp for matching class
2650 names; for java.util.zip.CRC32.
2652 * Makefile.in: Rebuilt.
2653 * Makefile.am (nat_headers): Redefined to generate all possible
2656 * java/util/zip/ZipException.java: In package java.util.zip, not
2659 1999-03-30 Tom Tromey <tromey@cygnus.com>
2661 * configure: Rebuilt.
2662 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2663 eh-common.h when not building in tree with gcc.
2665 * Makefile.in: Rebuilt.
2666 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2667 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2669 ($(java_source_files:.java=.class)): New target.
2671 * Makefile.in: Rebuilt.
2672 * Makefile.am (java_source_files): Added
2673 java/net/HttpURLConnection.java and
2674 gnu/gcj/www/protocol/http/Connection.java.
2676 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2678 * gnu/gcj/www/protocol/http/Connection.java: New file.
2679 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2680 * java/net/HttpURLConnection.java: New file.
2681 * java/net/URLConnection.java (getHeaderField): Implemented default.
2682 (getHeaderFieldKey): Implemented default method.
2684 1999-03-30 Tom Tromey <tromey@cygnus.com>
2686 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2688 * java/util/zip/Deflater.java: Added copyright header.
2689 * java/util/zip/CRC32.java: Added copyright header.
2691 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2692 that it is automatically generated.
2693 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2695 * gnu/gcj/convert/BytesToUnicode.java,
2696 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2697 gnu/gcj/convert/Input_EUCJIS.java,
2698 gnu/gcj/convert/Input_UTF8.java,
2699 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2700 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2701 gnu/gcj/convert/Output_8859_1.java,
2702 gnu/gcj/convert/Output_JavaSrc.java,
2703 gnu/gcj/convert/Output_UTF8.java,
2704 gnu/gcj/convert/UnicodeToBytes.java,
2705 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2707 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2709 * Makefile.in, configure: Rebuilt.
2710 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2711 not if test subdir exists.
2712 (--enable-gcj-classes): Removed; gcj always used to generate
2714 (JAVA, JAVAC): Removed.
2715 (--enable-single-compilation, --enable-source-compilation):
2718 (NATIVE): New conditional.
2719 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2720 `install-exec' to work.
2721 (toolexeclibdir): Likewise.
2722 (toollib_LIBRARIES): Likewise.
2723 (AM_MAKEFLAGS): Don't pass tooldir.
2725 (javao_files): Redefined.
2726 (java_source_files): New macro.
2727 (c_source_files): New macro.
2728 (c_files): Redefined in terms of c_source_files.
2729 (java_io_files, java_lang_files, java_net_files, java_text_files,
2730 java_util_files, gnu_files, java_files): Removed.
2731 (class_io_files, class_lang_files, class_net_files,
2732 class_text_files, class_util_files, class_gnu_files, class_files):
2734 (nat_source_files): New macro.
2735 (nat_files): Redefined in terms of nat_source_files.
2736 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2737 java_source_files. Removed no-such-file.c.
2739 (ETAGS_ARGS): Removed.
2740 (TAGS_DEPENDENCIES): Likewise.
2741 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2743 (src_io_files, src_lang_files, src_text_files, src_util_files,
2744 src_gnu_files): Removed.
2745 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2746 (BUILT_SOURCES): Removed.
2747 (header-check): New target.
2749 (noinst_PROGRAMS): New macro.
2750 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2752 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2753 (gen-from-JIS): Build in top directory.
2754 (convert_source_files): New macro.
2755 (convert_SOURCES): New macro.
2756 (convert_LDFLAGS): Likewise.
2757 (convert_LINK): Likewise.
2758 (convert_LDADD): Likewise.
2759 (convert_DEPENDENCIES): Likewise.
2761 (gen-from-JIS): Removed.
2762 (gen_from_JIS_SOURCES): New macro.
2763 (gen_from_JIS_LDADD): Likewise.
2764 (gen_from_JIS_DEPENDENCIES): Likewise.
2766 * configure: Rebuilt.
2767 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2768 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2769 when defining conditional.
2771 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2773 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2774 The Unicode Consortium does not permit their re-distribution.
2775 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2776 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2778 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2780 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2782 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2784 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2785 from Unicode Consortium.
2786 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2787 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2788 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2789 New tables, generated using gen-from-JIS.
2790 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2791 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2792 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2793 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2795 * gnu/gcj/convert/Convert.java: New application.
2796 * Makefile.am, Makefile.in (convert): New program, using Convert.
2797 Build the various JIS conversion tables (in maintainer mode).
2799 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2801 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2803 * java/net/URL.java (URL): Deal with null property value. Use "."
2804 as separator in building class name.
2805 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2806 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2807 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2808 beginning of the substring rather than 'start'.
2810 1999-03-26 Tom Tromey <tromey@cygnus.com>
2812 * include/java-chartables.h: Rebuilt.
2813 * include/java-chardecomp.h: New file.
2814 * chartables.pl: Generate output files directly. Added support
2815 for generating decomposition header.
2816 (canonical_decomposition, full_decomposition): New globals.
2817 (DECOMPOSITION): New constant.
2818 (process_char): Call add_decomposition.
2819 (add_decomposition): New sub.
2820 (write_decompositions): New sub.
2822 1999-03-25 Tom Tromey <tromey@cygnus.com>
2824 * java/text/CollationElementIterator.java: New file.
2826 * mauve-libjava: Omit StringTest.
2828 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2830 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2831 without a '/' when parsing protocol. Handle ref outside of parseURL.
2832 (hashCode): Implemented.
2833 (set): Don't expand -1 to default port.
2834 (getDefaultPort): Removed.
2836 * java/net/URLStreamHandler.java (parseURL): Implemented.
2837 (toExternalForm): Implemented.
2839 1999-03-23 Tom Tromey <tromey@cygnus.com>
2841 * java/text/BreakIterator.java (getSentenceInstance):
2843 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2845 * Makefile.in: Rebuilt.
2846 * Makefile.am (nat_headers): Added IllegalAccessException.
2847 * java/lang/natClass.cc (newInstance): Throw
2848 IllegalAccessException, not IllegalAccessError.
2849 Include IllegalAccessException.h.
2851 1999-03-22 Tom Tromey <tromey@cygnus.com>
2853 * gnu/gcj/text/LineBreakIterator.java: New file.
2854 * java/text/BreakIterator.java (getLineInstance): Implemented.
2856 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2857 copy constructor private.
2858 (previous, next): Removed erroneous comment about line
2860 (previous): Correctly recognize break between non-letter on the
2861 left and letter on the right. Handle apostrophes correctly.
2863 * java/text/BreakIterator.java (getWordInstance): Implemented.
2864 * gnu/gcj/text/WordBreakIterator.java: New file.
2865 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2867 * gnu/gcj/text/BaseBreakIterator.java: New file.
2869 1999-03-19 Tom Tromey <tromey@cygnus.com>
2871 * java/text/BreakIterator.java: New file (partially stubbed out).
2872 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2874 * include/config.h.in: Rebuilt.
2875 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2876 (HAVE_TIMEZONE): Likewise.
2877 * configure: Rebuilt.
2878 * configure.in: Added timezone checks.
2879 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2882 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2884 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2885 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2886 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2887 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2888 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2889 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2890 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2891 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2893 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2894 (BSD_COMP): Kludge needed for Solaris2.
2896 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2898 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2899 URL(java.net.URL, string, URLStreamHandler) and call it with a
2900 null handler. In latter constructor, added SecurityManager check.
2901 (set): Expect null handler on bad protocol rather than an exception.
2902 (setURLStreamHandler): Simplified exception handling; return null
2903 on invalid protocol.
2905 1999-03-18 Tom Tromey <tromey@cygnus.com>
2907 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2909 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2911 Include PrintStream.h, InputStream.h.
2912 * java/lang/System.java (ForwardingInputStream,
2913 ForwardingOutputStream): Removed.
2914 (setErr, setIn, setOut): Now native.
2916 Reverted patch from 1999-02-12 to work around problem in
2918 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2919 (_Jv_eh_free): Use free.
2921 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2922 for path name. Minor formatting fixes.
2924 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2926 * prims.cc (fail_on_finalization): New function.
2927 (_Jv_GCWatch): Likewise.
2929 * prims.cc (JvRunMain): Initialize `nullp'.
2930 (nullp): New global.
2931 (catch_segv): Throw nullp.
2933 * Makefile.in: Rebuilt.
2934 * Makefile.am (ZIP): In "null target" case, zip is found in the
2937 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2941 * java/lang/StringBuffer.java (StringBuffer): Don't use
2942 ensureCapacity to set initial capacity.
2943 (capacity): Subtract `length' from return result.
2945 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2947 * java/io/natFileDescriptorPosix.cc (open): Throw
2948 FileNotFoundException, but with filename and errno in msg.
2950 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2952 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2953 functionality folded into java/net/URL.java per spec.
2955 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2956 than EEXIST for throwing FileNotFoundException.
2958 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2959 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2961 * java/net/URLStreamHandler.java (parseURL): Added stub.
2963 1999-03-15 Andrew Haley <aph@cygnus.com>
2965 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2968 1999-03-15 Andrew Haley <aph@cygnus.com>
2970 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2973 1999-03-12 Tom Tromey <tromey@cygnus.com>
2975 * prims.cc (catch_segv): New function.
2976 Include <signal.h> if HANDLE_SEGV defined. Include
2977 NullPointerException.h.
2978 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2981 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2982 a SimpleDateFormat, not just a DateFormat.
2983 (defaultCenturyStart, formatData, pattern): Now private.
2984 (append): Now `final'. Use `NumberFormat.format'.
2986 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2988 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2991 * java/text/MessageFormat.java (format): Use default MessageFormat
2993 (parse, parseObject): Wrote.
2995 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2998 1999-03-12 Andrew Haley <aph@cygnus.com>
3000 * java/lang/String.java (indexOf): Replace with native method for
3002 * java/lang/natString.cc (IndexOf): As above.
3004 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3005 Argument check corrected.
3006 (init(jbyteArray,jint,jint,jstring)): Likewise.
3008 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3009 1.2 compliant method.
3011 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3013 * java/lang/Float.java (byteValue, shortValue): Likewise.
3015 1999-03-11 Tom Tromey <tromey@cygnus.com>
3017 * java/text/DecimalFormat.java (parse): Wrote.
3019 * java/text/ChoiceFormat.java (parse): Set error index on
3020 ParsePosition object.
3022 * java/lang/Integer.java (parseInt): Throw exception on overflow
3023 when intermediate result is most negative number. Changed
3024 overflow detection as well.
3025 * java/lang/Long.java (parseLong): Likewise.
3027 * configure, Makefile.in: Rebuilt.
3028 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3029 CANADIAN when building in source tree that doesn't include gcc.
3030 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3033 * java/text/ChoiceFormat.java (nextDouble): Correct some
3034 off-by-one errors when masking or adding.
3036 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3037 parameter, if given. Use `%', not IEEEremainder.
3038 (scanFix): Throw error if multiplier already set.
3039 (computePattern): Wrote.
3041 1999-03-11 Andrew Haley <aph@cygnus.com>
3043 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3045 (nextDouble): Corrected masking logic. Handle interaction between
3046 `next' and negative numbers.
3048 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3050 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3051 * java/net/URL.java: Added general comments.
3053 1999-03-10 Tom Tromey <tromey@cygnus.com>
3055 * java/text/ChoiceFormat.java (parse): Wrote.
3057 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3059 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3060 Create ChoiceFormat objects.
3061 (format): Special-case ChoiceFormat.
3062 (scanFormatElement): Include { and } in generated style string.
3064 1999-03-09 Tom Tromey <tromey@cygnus.com>
3066 * java/text/ChoiceFormat.java: New file.
3068 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3070 * java/net/BindException.java: Created.
3071 * java/net/ConnectException.java: Created.
3072 * java/net/ContentHandler.java: Created.
3073 * java/net/ContentHandlerFactory.java: Created.
3074 * java/net/FileNameMap.java: Created.
3075 * java/net/MalformedURLException.java: Created.
3076 * java/net/NoRouteToHostException.java: Created.
3077 * java/net/ProtocolException.java: Created.
3078 * java/net/ServerSocket.java (@author): Fixed typo.
3079 * java/net/Socket.java (@author): Fixed typo.
3080 * java/net/SocketImpl.java (@author): Fixed typo.
3081 * java/net/SocketImplFactory.java (@author): Fixed typo.
3082 * java/net/URL.java: Created - nearly complete.
3083 * java/net/URLConnection.java: Created - near-empty stub.
3084 * java/net/URLStreamHandler.java: Created - incomplete stub.
3085 * java/net/URLStreamHandlerFactory.java: Created.
3086 * java/net/UnknownServiceException.java: Created.
3088 1999-03-09 Tom Tromey <tromey@cygnus.com>
3090 * java/lang/System.java (ForwardingInputStream): New class.
3091 (ForwardingOutputStream): Likewise.
3092 (in, out, err): Now `final' forwarding streams.
3093 (setIn, setOut, setErr): Use appropriate method on forwarding
3096 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3099 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3101 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3102 * java/util/zip/Checksum.java: New interface (complete).
3103 * java/util/zip/Deflater.java: New class (near-empty stub).
3104 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3105 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3106 * java/util/zip/ZipEntry.java: New class (complete).
3107 * java/util/zip/ZipException.java: New class (complete).
3108 * java/util/zip/ZipFile.java: New class (incomplete stub).
3109 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3111 1999-03-09 Tom Tromey <tromey@cygnus.com>
3113 * java/text/MessageFormat.java (MessageFormatElement): Removed
3114 `public' specifiers.
3116 * java/text/DecimalFormat.java (scanFormat): Increment index
3117 before processing exponential format. Fixed a couple typos in
3119 (format): Correct normalization of exponent.
3121 1999-03-08 Tom Tromey <tromey@cygnus.com>
3123 * java/text/SimpleDateFormat.java (parse): Throw
3124 IllegalArgumentException, not ParseException.
3126 1999-03-05 Tom Tromey <tromey@cygnus.com>
3128 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3129 when constructing DateFormatSymbols. Initialize numberFormat
3130 field of superclass.
3132 * java/text/DateFormat.java (equals): Rewrote.
3133 (getAvailableLocales): New method.
3134 (getDateInstance): New methods.
3135 (getDateTimeInstance): Likewise.
3136 (getTimeInstance): Likewise.
3137 (getInstance): New method.
3138 (computeInstance): New method.
3140 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3142 (safeGetResource): New method.
3143 (DateFormatSymbols): Use Locale paramater.
3144 (equals): Now protected.
3145 Made instance variables private.
3147 1999-03-04 Tom Tromey <tromey@cygnus.com>
3149 * java/text/DecimalFormat.java: New file.
3151 * java/text/NumberFormat.java (groupingUsed,
3152 maximumFractionDigits, maximumIntegerDigits,
3153 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3155 (setDecimalSeparatorAlwaysShown, setMultiplier,
3156 setPositivePrefix): Removed.
3157 (setMinimumFractionDigits, setMaximumFractionDigits):
3159 (format): Now final.
3160 Added many new methods.
3162 * Makefile.in: Rebuilt.
3163 * Makefile.am (gnu_files): New macro.
3164 (java_files): Added gnu_files.
3165 (class_gnu_files): New macro.
3166 (class_files): Use it.
3167 (src_gnu_files): New macro.
3168 (gnu.o): New target.
3169 (javao_files): Added gnu.o.
3171 * gnu/gcj/text/LocaleData_en_US.java: New file.
3172 * gnu/gcj/text/LocaleData_en.java: New file.
3173 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3174 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3175 (safeGetString): New method.
3176 (safeGetChar): Likewise.
3178 1999-03-03 Tom Tromey <tromey@cygnus.com>
3180 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3183 * java/text/FieldPosition.java (equals): Don't check for null
3184 object; instanceof does this.
3186 * java/util/Locale.java (clone): New method.
3189 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3191 * doc/cni.sgml: New file.
3193 1999-03-03 Tom Tromey <tromey@cygnus.com>
3195 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3197 * java/text/DecimalFormatSymbols.java: New file.
3199 1999-03-02 Tom Tromey <tromey@cygnus.com>
3201 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3203 * configure: Rebuilt.
3204 * configure.in: Check for sys/filio.h.
3206 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3208 (load): Always throw UnsatisfiedLinkError.
3209 (loadLibrary): Likewise.
3211 1999-03-02 Anthony Green <green@cygnus.com>
3213 * LIBGCJ_LICENSE: New file.
3214 * LIBJAVA_LICENSE: Removed.
3215 * Many files: libjava now libgcj.
3217 1999-03-02 Tom Tromey <tromey@cygnus.com>
3219 * include/java-chartables.h: Rebuilt.
3220 * chartables.pl (print_block): Make table `const'.
3221 (print_numerics): Likewise.
3222 (print_single_map): Likewise.
3223 (print_all_block): Likewise.
3224 (print_case_table): Likewise.
3225 (print_fast_tables): Likewise.
3226 * java/lang/natCharacter.cc (table_search): `table' argument now
3229 1999-03-01 Tom Tromey <tromey@cygnus.com>
3231 * java/util/Date.java (before, after): Inverted logic.
3233 * java/util/Date.java (parse): Handle case where first character
3234 in string is open parenthesis.
3235 (skipParens): Rewrote.
3237 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3238 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3240 * java/util/Date.java (parse): Correctly compute beginning of
3243 * java/util/Hashtable.java (get): Throw NullPointerException if
3245 (containsKey): Likewise.
3247 * java/util/Properties.java (list): Truncate value to 37
3248 characters and add `...'.
3250 * java/lang/Byte.java (parseByte): Pass `radix' to
3253 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3255 Include System.h, PrintStream.h.
3257 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3260 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3262 * configure: Rebuilt.
3263 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3266 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3268 * java/lang/SecurityManager.java: Import java.net.*.
3269 (checkMulticast): New methods.
3271 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3273 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3274 (nat_files): Add java/lang/reflect/natArray.o.
3275 (nat_headers): Add Field.h and NoSuchFieldException.h.
3277 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3278 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3279 (_Jv_FromReflectedField): Fix buglet.
3280 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3281 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3282 * prims.cc (_Jv_Abort): Include message in print-out.
3284 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3285 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3286 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3288 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3289 * include/config.h.in (HAVE_PWD_H): New feature macro.
3290 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3291 user.name, user.home, user.dir.
3293 * java/lang/reflect/Array.java: New class.
3294 * java/lang/reflect/natArray.cc: New native methods.
3295 * include/javaprims.h: Declare java::lang::reflect::Array.
3297 * java/lang/Class.h (getField): New private method. Add friends.
3298 * java/lang/Class.java (getField): Add private overload.
3299 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3300 getDeclaredMethods): Add working implementations.
3301 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3302 Finish implementation, except for access control.
3304 * java/lang/reflect/Modifier.java (toString): New overload.
3305 * include/java-method.h: New file.
3306 * java/lang/reflect/Method.java (index): Replaced by offset field.
3307 Remove various private fields - get them from _Jv_Field instead.
3308 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3309 New method implementations.
3311 * java/text/NumberFormat.java: Add a bunch of methods.
3313 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3315 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3317 1999-02-26 Tom Tromey <tromey@cygnus.com>
3319 * include/config.h.in: Rebuilt.
3320 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3321 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3322 HAVE_GETHOSTBYADDR_R): New defines.
3323 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3324 gethostbyaddr_r if available.
3326 * configure: Rebuilt.
3327 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3329 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3333 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3334 * prims.cc (_Jv_AllocBytesChecked): New function.
3336 * Makefile.in: Rebuilt.
3337 * Makefile.am (SUBDIRS): Removed `test'.
3338 * configure: Rebuilt.
3339 * configure.in: Don't build test/Makefile.
3340 * test/*: Removed all files.
3342 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3344 * java/lang/reflect/Constructor.java: Make class final to match spec.
3345 * java/lang/reflect/Method.java: Ditto.
3347 1999-02-25 Tom Tromey <tromey@cygnus.com>
3349 * java/net/natInetAddress.cc: Include <sys/types.h> before
3351 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3354 * java/net/natInetAddress.cc: Declare gethostname if required.
3355 * include/config.h.in: Rebuilt.
3356 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3357 * configure: Rebuilt.
3358 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3359 declared in unistd.h.
3361 1999-02-24 Tom Tromey <tromey@cygnus.com>
3363 * Makefile.in: Rebuilt.
3364 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3365 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3366 from private to "none".
3368 * include/javaprims.h: Regenerated class declarations with new
3370 * classes.pl (scan): Only generate decls for java.lang, java.io,
3373 1999-02-24 Tom Tromey <tromey@cygnus.com>
3375 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3376 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3378 1999-02-23 Tom Tromey <tromey@cygnus.com>
3380 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3381 not already defined.
3382 * java/io/natFile.cc (_REENTRANT): Only define if not already
3384 * include/config.h.in: Rebuilt.
3385 * acconfig.h (HAVE_BOEHM_GC): New define.
3386 * configure: Rebuilt.
3387 * configure.in: Define HAVE_BOEHM_GC if using it.
3388 * posix-threads.cc: Include boehm-config.h and gc.h if
3390 * include/posix-threads.h: Added explanatory note about Boehm GC.
3392 * java/io/BufferedReader.java (readLine): Only return null when
3393 EOF seen before any characters read. (In particular, an empty
3394 line should not return null.)
3396 * java/io/BufferedInputStream.java (read): Only refill once per
3399 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3400 java.lang.Character.classify12, java.lang.String.hash,
3401 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3402 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3404 * java/text/StringCharacterIterator.java (setIndex): No error if
3406 (next): Check for `pos == end', not `end - 1'.
3407 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3408 for null text in each constructor.
3409 (clone): Fixed order of arguments to constructor.
3411 1999-02-22 Tom Tromey <tromey@cygnus.com>
3413 * include/config.h.in: Rebuilt.
3414 * acconfig.h (HAVE_INET6): New define.
3415 (HAVE_SOCKLEN_T): Likewise.
3416 * java/net/PlainSocketImpl.java: Added copyright header.
3417 * java/net/natPlainSocketImpl.cc: Added copyright header.
3418 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3420 (connect): Likewise.
3422 (socklen_t): New typedef.
3423 (accept): Use socklen_t.
3424 * java/net/natInetAddress.cc: Added copyright header.
3425 (HAVE_GETHOSTNAME): Don't define.
3426 (HAVE_INET_ADDR): Likewise.
3427 (lookup): Fixed typo.
3428 (aton): Don't use `address' as name of local variable.
3429 (lookup): Use HAVE_INET6, not AF_INET6.
3431 * configure: Rebuilt.
3432 * configure.in: Look for functions inet_aton, inet_addr,
3433 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3434 Check for socklen_t typedef.
3436 * exception.cc (__throw): Declare as __noreturn__.
3438 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3440 * Makefile.am, Makefile.in: Also build java/net.
3441 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3443 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3444 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3446 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3447 * include/cni.h (JvMalloc, JvFree): New inline functions.
3448 (JvThrow): Add __noreturn__ attribute.
3449 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3450 (_Jv_Throw): Add __noreturn__ attribute.
3452 * java/net/PlainSocketImpl.java: Init fnum to -1.
3453 * java/net/ServerSocket.java: Add missing throws clauses.
3454 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3455 don't call create on the latter. Instead, other constructors
3456 have to explicitly call SocketImpl.create.
3457 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3458 from size_t to int, to match ::accept prototype.
3459 * java/net/natInetAddress.cc: Use JvFree rather than free.
3462 1999-02-22 Tom Tromey <tromey@cygnus.com>
3464 * include/javaprims.h: Added new classes.
3465 * java/text/StringCharacterIterator.java: New file.
3466 * java/text/CharacterIterator.java: New file.
3468 * java/text/ParseException.java (errorOffset): Now private.
3470 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3472 * java/net: New package.
3473 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3474 Socket.java,SocketException.java,SocketImpl.java,
3475 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3476 natPlainSocketImpl.cc}: New classes.
3478 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3479 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3480 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3481 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3483 * classes.pl: Translate package into "namespace", not "class".
3484 * include/javaprims.h: Update class list, using "namespace".
3486 1999-02-21 Tom Tromey <tromey@cygnus.com>
3488 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3489 Define when appropriate.
3491 1999-02-20 Tom Tromey <tromey@cygnus.com>
3493 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3494 as a single byte and \u07ff as two bytes.
3495 (_Jv_GetStringUTFLength): Likewise.
3496 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3497 with 0x0f, not 0x1f.
3499 1999-02-19 Tom Tromey <tromey@cygnus.com>
3501 * java/io/DataOutputStream.java (writeUTF): When encoding
3502 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3503 * java/io/DataInputStream.java (readUTF): Mask second byte of
3504 3-byte character with 0x3f, not 0x1f.
3506 * java/io/DataInputStream.java (readLong): Cast result of
3507 readUnsignedByte to long before using.
3509 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3512 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3513 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3514 argument to avoid warning.
3515 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3516 argument to avoid warning.
3518 1999-02-18 Tom Tromey <tromey@cygnus.com>
3520 * mauve-libjava: Omit java.io.DataInputOutput and
3521 java.io.Utf8Encoding.
3523 1999-02-17 Tom Tromey <tromey@cygnus.com>
3525 * Makefile.in: Rebuilt.
3526 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3527 * java/io/natFileDescriptorPosix.cc: Include
3528 InterruptedIOException.h, Thread.h.
3529 (write): Throw InterruptedIOException when required.
3531 * posix-threads.cc: Include <signal.h>.
3532 (_Jv_ThreadInterrupt): New function.
3534 (handle_intr): New function.
3535 (_Jv_InitThreads): Register handle_intr via sigaction.
3536 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3537 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3538 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3539 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3541 1999-02-19 Andrew Haley <aph@cygnus.com>
3543 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3545 (ThreadGroup (int)): Set the maximum priority of the initial
3548 1999-02-18 Andrew Haley <aph@cygnus.com>
3550 * java/lang/natClass.cc (forName): Check for the case where a
3551 classname is the name of an array and call FindClassFromSignature
3554 1999-02-18 Andrew Haley <aph@cygnus.com>
3556 * java/lang/StringBuffer (insert (int, String)): Move up any
3557 characters above the insert position and increase the length of
3558 the string buffer by the length of the argument.
3559 (insert (int, char[])): Likewise.
3560 (insert (int, char)): Likewise.
3561 (StringBuffer (String)): The initial capacity of the string buffer
3562 is 16 plus the length of the argument.
3563 (getChars): Add a JDK 1.2 FIXME.
3565 1999-02-18 Andrew Haley <aph@cygnus.com>
3567 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3570 1999-02-18 Andrew Haley <aph@cygnus.com>
3572 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3573 instead of floating-point equality. This is necessary for
3574 correct floating-point Hashtables.
3575 * java/lang/Float.java (equals): Ditto.
3577 1999-02-16 Tom Tromey <tromey@cygnus.com>
3579 * java/util/Properties.java (list): Truncate value to 37
3580 characters and add "...".
3582 1999-02-16 Tom Tromey <tromey@cygnus.com>
3584 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3585 if initCap is negative.
3586 (contains): Implement JDK1.2-style handling of null argument.
3587 (removeElement): Likewise.
3588 (indexOf): Likewise. Also, correctly handle case where idx is
3590 (lastIndexOf): Likewise.
3592 1999-02-16 Tom Tromey <tromey@cygnus.com>
3594 * java/lang/natString.cc (init): Increment source pointer in
3597 1999-02-16 Tom Tromey <tromey@cygnus.com>
3599 * exception.cc: Include NullPointerException.h.
3600 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3602 1999-02-16 Tom Tromey <tromey@cygnus.com>
3604 * Makefile.in: Rebuilt.
3605 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3607 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3609 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3610 we're compiling canadian.
3611 * configure: Regenerated.
3613 1999-02-12 Andrew Haley <aph@cygnus.com>
3615 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3616 deleted from libgcj.
3618 1999-02-12 Tom Tromey <tromey@cygnus.com>
3620 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3621 (_Jv_eh_free): Don't call free.
3622 Don't declare malloc or free.
3624 1999-02-11 Tom Tromey <tromey@cygnus.com>
3626 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3628 1999-02-11 Andrew Haley <aph@cygnus.com>
3630 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3631 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3632 needed by java.lang.*.
3633 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3634 wf_fmod.o: Removed from libjava.a.
3636 1999-02-11 Tom Tromey <tromey@cygnus.com>
3638 * include/javaprims.h: Reverted previous change; with it
3639 exception.cc can't compile.
3641 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3643 * include/config.h.in: Rebuilt.
3644 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3646 * configure: Rebuilt.
3647 * configure.in: Check for sched_yield. Look in thread library for
3648 all thread functions.
3650 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3651 no recursive mutexes.
3652 (_Jv_MutexDestroy): Define when required.
3653 (_Jv_MutexLock): Likewise.
3654 (_Jv_MutexUnlock): Likewise.
3655 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3656 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3657 (_Jv_Mutex_t): New structure.
3658 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3659 (_Jv_MutexLock): Likewise.
3660 (_Jv_MutexUnlock): Likewise.
3662 1999-02-10 Tom Tromey <tromey@cygnus.com>
3664 * aclocal.m4, configure, Makefile.in: Rebuilt.
3665 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3667 * configure.in: Changed to track library changes.
3668 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3669 (AM_CXXFLAGS): Likewise.
3670 (data_DATA): Likewise.
3671 (AM_CFLAGS): Likewise.
3672 (JC1FLAGS): Likewise.
3673 (libgcj_a_SOURCES): Likewise.
3674 (EXTRA_libgcj_a_SOURCES): Likewise.
3675 (libgcj_a_DEPENDENCIES): Likewise.
3676 (libgcj_a_LIBADD): Likewise.
3677 (libgcj.zip): Likewise.
3678 (CLEANFILES): Likewise.
3679 ($(nat_headers)): Likewise.
3680 (java/lang/FirstThread.h): Likewise.
3681 (java/lang/ThreadGroup.h): Likewise.
3682 (java/lang/String.h): Likewise.
3683 (java/lang/reflect/Field.h): Likewise.
3684 (BUILT_SOURCES): Likewise.
3685 (maintainer-check): Likewise.
3686 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3687 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3689 * java/util/natGregorianCalendar.cc (computeFields): Only use
3690 gmtime_r and localtime_r when configured for posix threads.
3692 * java/io/natFile.cc (get_entry): Only use readdir_r when
3693 configured for posix threads.
3695 * java/util/natGregorianCalendar.cc: Update copyright notice.
3696 * java/util/TimeZone.java: Ditto.
3697 * java/util/SimpleTimeZone.java: Ditto.
3699 1999-02-08 Tom Tromey <tromey@cygnus.com>
3701 * java/io/PrintStream.java (line_separator): New constant.
3702 (print): Use line_separator, not `file.separator' property.
3703 (println): Use line_separator.
3705 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3706 when trying to instantiate Class.
3708 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3709 NullPointerException if argument is null.
3711 * java/lang/Thread.java (setName): Throw NullPointerException, not
3712 IllegalArgumentException.
3715 1999-02-08 Andrew Haley <aph@cygnus.com>
3717 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3718 create new Classes with Class.newInstance().
3720 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3721 semiciolon to end of an array Class's signature if the elements of
3722 the array aren't themselves arrays.
3724 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3725 array of objects is always sizeof(jobject), not the size of the
3726 object to which the reference points.
3728 1999-02-08 Tom Tromey <tromey@cygnus.com>
3730 * java/util/BitSet.java (and): Throw NullPointerException when
3735 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3736 if argument is negative.
3737 (clear): Correctly compute `offset'. Throw
3738 IndexOutOfBoundsException when required.
3740 (get): Likewise. Also, return correct value.
3741 (ensure): Changed meaning of argument.
3742 (toString): Wrap contents in `{}'; put spaces after commas.
3743 (hashCode): Don't try to examine elements off the end of array.
3744 (or): Correctly include bits past the end of this bit set.
3747 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3749 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3750 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3752 1999-02-04 Andrew Haley <aph@cygnus.com>
3754 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3755 '/' in signatures to '.'
3756 (Class::getName): Likewise,
3757 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3759 * java/lang/natFirstThread.cc (run): Change '/' in main's
3762 1999-02-03 Andrew Haley <aph@cygnus.com>
3764 * configure.host: -ffloat-store added when compiling libjava on
3765 x86. fdlibm apparently relies on this.
3767 * java/lang/ThreadGroup.java (add): throw an exception if the
3768 ThreadGroup has been destroyed.
3770 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3773 1999-01-27 Tom Tromey <tromey@cygnus.com>
3775 * java/lang/StringBuffer.java (StringBuffer): Handle null
3778 1999-01-21 Tom Tromey <tromey@cygnus.com>
3780 * java/lang/natFirstThread.cc (run): Don't require main to be
3783 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3785 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3787 1999-01-20 Tom Tromey <tromey@cygnus.com>
3789 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3793 (unintern): Likewise.
3794 (_Jv_NewStringUtf8Const): Likewise.
3796 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3797 Character.isLetter, to see if character is self-quoting. Also,
3798 correctly handle quoted characters.
3799 (parse): Fixed typo. Also now throws ParseException.
3801 1999-01-15 Tom Tromey <tromey@cygnus.com>
3803 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3805 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3806 _Jv_SyncInfo has `init' member.
3808 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3811 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3812 IllegalMonitorStateException if unlock fails.
3814 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3816 (_Jv_NewObjectArray): Likewise.
3818 1999-01-14 Tom Tromey <tromey@cygnus.com>
3820 * java/lang/Character.java (isJavaIdentifierPart): Allow
3821 LETTER_NUMBER characters.
3823 * chartables.pl (process_char): Fixed error messages.
3825 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3826 * chartables.pl: Updated comments. Changed detection of non-digit
3827 numeric values (no longer miss \u00b2 and friends).
3829 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3830 currency symbols and connector punctuation.
3831 (isIdentifierIgnorable): Make 7f-9f ignorable.
3833 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3834 (_Jv_NewPrimArray): Likewise.
3835 (SIZE_T_MAX): New define.
3837 * java/lang/ClassLoader.java (system): Now private and final.
3839 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3842 * configure: Rebuilt.
3843 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3845 * exception.cc: Include gansidecl.h.
3847 1999-01-14 Andrew Haley <aph@cygnus.com>
3849 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3850 corrected: they didn't treat -0.0 and NaNs correctly.
3852 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3854 * nogc.cc: Use calloc to zero out memory.
3856 1999-01-11 Tom Tromey <tromey@cygnus.com>
3858 * java/lang/natClass.cc (isInstance): Return false if this class
3859 is primitive, not if class of `obj' is primitive.
3860 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3862 * java/io/SequenceInputStream.java (close): Handle case where `in'
3865 * java/text/DateFormat.java (format): New method.
3867 * mauve-libjava: Omit java.text.DateFormat.
3869 1999-01-08 Tom Tromey <tromey@cygnus.com>
3871 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3873 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3875 (_Jv_CondNotifyAll): Likewise.
3877 * configure: Rebuilt.
3878 * configure.in: Change --enable-source-compilation logic to work
3881 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3883 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3884 and RUNTESTFLAGS from AM_MAKEFLAGS.
3885 * configure.in: AM_RUNTESTFLAGS added.
3886 * configure.host: AM_RUNTESTFLAGS added.
3887 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3888 * configure: rebuilt.
3889 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3891 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3892 argv[] made conditional because embedded targets may not have
3894 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3895 explanatory comments added in call to super.
3897 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3898 exception thrown in the test harness itself added.
3899 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3901 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3903 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3905 1999-01-06 Tom Tromey <tromey@cygnus.com>
3907 * java/io/natFile.cc (get_entry): New function.
3908 (performList): Use get_entry.
3909 * include/config.h.in: Rebuilt.
3910 * acconfig.h (HAVE_READDIR_R): New define.
3911 * configure: Rebuilt.
3912 * configure.in: Look for readdir_r.
3914 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3916 * java/util/natDate.cc: Added copyright header.
3918 1999-01-05 Tom Tromey <tromey@cygnus.com>
3920 * include/config.h.in: Rebuilt.
3921 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3922 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3923 * configure: Rebuilt.
3924 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3925 unlink, and realpath.
3926 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3927 (stat): Conditionalize on HAVE_STAT.
3929 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3930 (performMkdir): Conditionalize on HAVE_MKDIR.
3931 (performRenameTo): Conditionalize on HAVE_RENAME.
3932 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3934 * include/config.h.in: Rebuilt.
3935 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3936 * configure: Rebuilt.
3937 * configure.in: Check for gmtime_r and localtime_r. For cross
3938 builds, assume they exist.
3940 * mauve-libjava: Include java.text.DateFormatSymbols again.
3941 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3942 from setAmPmStrings.
3944 * mauve-libjava: Omit java.text.DateFormatSymbols.
3946 1999-01-04 Tom Tromey <tromey@cygnus.com>
3948 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3950 * java/io/LineNumberReader.java (read): Decrement `count' in
3953 * java/io/BufferedWriter.java (write): Correctly determine when
3954 incoming data would overrun buffer. Flush buffer if write causes
3957 * java/io/BufferedOutputStream.java (write): Increment `count'
3958 after copying data into buffer.
3960 * java/io/FilterOutputStream.java (close): Call flush first.
3962 * java/io/PipedReader.java (read): If read causes `out' to catch
3963 up with `in', then set `in' to -1.
3965 * java/io/LineNumberInputStream.java (read): If no bytes read,
3966 return -1. If no bytes requested, return 0.
3968 * java/lang/StringBuffer.java (insert): If `str' is null, use
3971 1998-12-30 Anthony Green <green@cygnus.com>
3974 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3976 1998-12-23 Tom Tromey <tromey@cygnus.com>
3978 * java/io/PushbackInputStream.java (read): `off' already includes
3981 1998-12-17 Tom Tromey <tromey@cygnus.com>
3983 * Makefile.in: Rebuilt.
3984 * Makefile.am (GCJ_canadian): Include target_alias.
3986 * java/lang/natFirstThread.cc (run): Require main's class to be
3989 1998-12-16 Tom Tromey <tromey@cygnus.com>
3991 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3993 * java/util/ResourceBundle.java (getBundle): Throw
3994 NullPointerException if locale argument is null.
3996 * java/lang/natClass.cc (forName): Throw NullPointerException if
3998 Include NullPointerException.h.
4000 1998-12-14 Tom Tromey <tromey@cygnus.com>
4002 * java/lang/Character.java (Character): Implement Comparable.
4003 (compareTo): New methods.
4005 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4006 correct country and language codes.
4007 (UK, US): New constants.
4008 (setDefault): Language codes are lower-case.
4010 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4011 (getDeclaredConstructors): Likewise.
4012 (getDeclaredField): Likewise.
4013 (getDeclaredFields): Likewise.
4014 (getDeclaredMethod): Likewise.
4015 (getDeclaredMethods): Likewise.
4016 (getField): Likewise.
4017 (getFields): Likewise.
4018 (getMethod): Likewise.
4019 (getMethods): Likewise.
4020 * java/lang/Class.java: Declare new methods.
4021 * java/lang/Class.h: Declare new methods.
4023 * java/lang/natString.cc: Removed `#pragma implementation'.
4024 * include/cni.h (_Jv_GetStringChars): New function.
4025 * Makefile.in: Rebuilt.
4026 * Makefile.am (java/lang/String.h): Don't generate definition for
4029 * java/lang/natString.cc: Added `#pragma implementation'.
4031 * Makefile.in: Rebuilt.
4032 * Makefile.am (libjava.zip): Put build directory first in class
4033 path to avoid bug in compiler.
4035 1998-12-14 Anthony Green <green@cygnus.com>
4037 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4039 * include/javaprims.h: Add EventObject, ListResourceBundle and
4042 1998-12-13 Anthony Green <green@cygnus.com>
4044 * mauve-libjava: Run the ResourceBundle tests.
4046 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4049 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4051 * configure.in, configure: Make --enable-gcj-classes and
4052 --enable-source-compilation the default. (Nervously...) Yeah!
4053 Based on a patch from Tom Tromey.
4055 1998-12-13 Tom Tromey <tromey@cygnus.com>
4057 * java/util/EventObject.java: New file.
4058 * java/util/EventListener.java: New file.
4060 * include/javaprims.h: Updated class declarations.
4061 * Makefile.in: Rebuilt.
4062 * Makefile.am (nat_headers): Added Constructor.h.
4063 (java/lang/String.h): Don't inline String::length().
4064 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4065 * java/lang/Class.java (initializeClass, hackRunInitializers,
4066 hackTrampoline): No need to mark `final'.
4067 (getConstructor, getConstructors): Declare.
4068 * java/lang/reflect/Field.java (equals): New method.
4069 * java/lang/natClass.cc (getConstructor): New method.
4070 (getConstructors): Likewise.
4071 Include Method.h, Field.h, Constructor.h.
4072 * java/lang/reflect/Constructor.java: New file.
4073 * java/lang/reflect/Method.java (toString): No space before open
4075 (equals): Simplified.
4077 1998-12-13 Anthony Green <green@cygnus.com>
4079 * java/util/ResourceBundle.java: New file.
4080 * java/util/ListResourceBundle.java: New file.
4082 1998-12-12 Tom Tromey <tromey@cygnus.com>
4084 * java/lang/System.java (in, out, err): Now buffered streams by
4087 * include/javaprims.h: Updated class declarations.
4088 * Makefile.in: Rebuilt.
4089 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4090 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4092 (nat_files): Added natMethod.o.
4093 * java/lang/reflect/natMethod.cc: New file.
4094 * java/lang/reflect/Field.java (Field): Now extends
4096 * java/lang/reflect/AccessibleObject.java: New file.
4097 * java/lang/reflect/InvocationTargetException.java: New file.
4099 1998-12-11 Tom Tromey <tromey@cygnus.com>
4101 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4102 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4103 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4105 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4107 1998-12-09 Tom Tromey <tromey@cygnus.com>
4109 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4112 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4113 character is already titlecase.
4115 * java/lang/Character.java (isJavaLetter): Follow spec.
4116 (isJavaLetterOrDigit): Likewise.
4118 * java/util/GregorianCalendar.java (gregorianCutover): Append
4121 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4123 1998-12-08 Tom Tromey <tromey@cygnus.com>
4125 * java/lang/reflect/Modifier.java (toString): Replace second
4126 `static' with `synchronized'.
4128 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4129 * java/lang/Object.h (Object::hack12_6): Declare.
4130 * java/lang/Object.java (hack12_6): New function.
4132 1998-12-07 Tom Tromey <tromey@cygnus.com>
4134 * include/java-array.h (__JArray::clone): Removed decl.
4135 * prims.cc (__JArray::clone): Removed.
4136 * java/lang/natObject.cc (clone): Incorporate code to clone an
4139 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4140 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4141 Correctly use dtable_method_count.
4143 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4145 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4148 1998-12-06 Anthony Green <green@cygnus.com>
4150 * mauve-libjava: Don't test ResourceBundle.
4152 1998-12-04 Tom Tromey <tromey@cygnus.com>
4154 More JDK 1.2 spec fixes:
4155 * java/util/Date.java (millis): Now private.
4156 * java/text/DateFormat.java (DateFormat): Constructor now
4158 * java/lang/Void.java (Void): New private constructor.
4159 * java/lang/System.java (System): New private constructor.
4160 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4162 (currentClassLoader): New method.
4163 (currentLoadedClass): New method.
4164 * java/lang/Math.java (Math): New private constructor.
4165 * java/lang/Compiler.java (Compiler): New private constructor.
4166 * java/lang/Class.java (Class): New private constructor.
4167 * java/lang/Double.java (toString): Removed access specifier from
4168 two-argument `toString' method.
4170 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4172 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4173 causes it to be flushed from an fp register (where it may be
4174 longer than double precision) to a double in memory. This is
4175 essential to ensure correct rounding behaviour.
4177 1998-12-04 Tom Tromey <tromey@cygnus.com>
4179 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4182 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4183 explaining apparent divergence from JDK 1.2.
4185 1998-12-04 Per Bothner <bothner@cygnus.com>
4187 * include/no-threads.h: Remove unused parameter names.
4188 This silences a bunch of warnings.
4190 1998-12-04 Tom Tromey <tromey@cygnus.com>
4192 * include/config.h.in: Rebuilt.
4193 * acconfig.h (HAVE_CTIME_R): New symbol.
4195 1998-12-03 Tom Tromey <tromey@cygnus.com>
4197 * mauve-libjava: Added many more categories to reject.
4199 Changes to follow JDK1.2 spec:
4200 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4201 setErr, setIn, setOut): No need to be `final'.
4202 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4203 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4204 * java/lang/Object.java (wait): `nanos' argument is an int.
4205 * java/lang/VirtualMachineError.java: Class is abstract.
4206 * java/lang/ThreadDeath.java: Made constructors public.
4207 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4210 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4212 * java/text/DateFormatSymbols.java (getAmPmStrings,
4213 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4215 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4217 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4218 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4219 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4222 * java/lang/IllegalThreadStateException.java
4223 (IllegalThreadStateException): Changed extending class to match spec.
4225 * java/lang/NumberFormatException.java
4226 (java/lang/NumberFormatException): Changed extending class to match
4229 * java/util/Observer.java (Observer): Changed sig to match JCL.
4231 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4233 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4234 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4235 signature to match JDK 1.1 and 1.2.
4237 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4239 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4240 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4241 * Makefile.in, configure: Rebuilt.
4243 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4246 1998-12-02 Tom Tromey <tromey@cygnus.com>
4248 * mauve-libjava: New file.
4250 The remaining `-W -Wall' fixes:
4251 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4253 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4255 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4257 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4259 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4261 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4263 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4265 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4267 * java/lang/mprec.c (Balloc): Removed unused variable.
4268 (mult): Added parentheses per gcc suggestion.
4269 (pow5mult): Likewise.
4274 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4275 suggestion. Added cast to `int' to avoid signed/unsigned
4277 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4279 (IsAssignableFrom): Likewise.
4280 (_Jv_JNI_GetObjectField): Likewise.
4281 (_Jv_JNI_GetByteField): Likewise.
4282 (_Jv_JNI_GetShortField): Likewise.
4283 (_Jv_JNI_GetIntField): Likewise.
4284 (_Jv_JNI_GetLongField): Likewise.
4285 (_Jv_JNI_GetStringLength): Likewise.
4286 (_Jv_JNI_ToReflectedField): Likewise.
4287 (_Jv_JNI_FromReflectedField): Likewise.
4288 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4290 * Makefile.in: Rebuilt.
4291 * Makefile.am (AM_CFLAGS): Define conditionally.
4292 (WARNINGS): New macro.
4293 (AM_CXXFLAGS): Include WARNINGS.
4294 * configure: Rebuilt.
4295 * configure.in (USING_GCC): New conditional.
4297 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4299 * java/lang/Character.java: Changed classification constants to
4300 type `byte' to match JDK 1.2 docs.
4302 1998-12-01 Tom Tromey <tromey@cygnus.com>
4304 Some fixes to be `-W -Wall' clean:
4305 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4306 (_Jv_MarkArray): Likewise.
4307 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4308 (to_upper_title): Likewise.
4309 (isTitleCase): Likewise.
4310 (toTitleCase): Likewise.
4311 (getNumericValue): Likewise.
4312 (isLowerCase): Likewise.
4313 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4314 (avoids compiler warning).
4315 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4317 (getDeclaringClass): Likewise.
4318 (_Jv_LookupInterfaceMethod): Likewise.
4319 (_Jv_NewClass): Removed name of unused parameter.
4320 * exception.cc (_Jv_type_matcher): Removed unused variable.
4321 (_Jv_setup_eh_info): Removed name of unused parameter.
4322 * prims.cc (_Jv_NewArray): Always return a value.
4323 (_Jv_FindClassFromSignature): Likewise.
4324 * include/java-field.h (getNameUtf8Const): Removed name of unused
4326 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4328 (_Jv_ThreadSetPriority): Likewise.
4330 * java/lang/natString.cc (hashChars): Now static.
4332 * java/lang/FirstThread.java (FirstThread): Now final.
4334 * java/io/File.java (performMkdir, performRenameTo): Now private.
4336 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4337 if no time function defined.
4339 * configure: Rebuilt.
4340 * configure.in: Look for ctime_r, ctime.
4341 * java/util/Date.java (toString): Now native.
4342 * java/util/natDate.cc (toString): Rewrote.
4344 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4346 * Add LDFLAGS line to allow TX39 test cases to link when cross
4349 1998-11-23 Anthony Green <green@cygnus.com>
4351 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4352 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4353 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4354 include/java-array.h, include/java-assert.h, include/java-field.h,
4355 include/javaprims.h, include/jni.h, include/jvm.h,
4356 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4357 include/quick-threads.h, java/io/BufferedInputStream.java,
4358 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4359 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4360 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4361 java/io/CharArrayWriter.java,
4362 java/io/CharConversionException.java, java/io/DataInput.java,
4363 java/io/DataInputStream.java, java/io/DataOutput.java,
4364 java/io/DataOutputStream.java, java/io/EOFException.java,
4365 java/io/File.java, java/io/FileDescriptor.java,
4366 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4367 java/io/FileOutputStream.java, java/io/FileReader.java,
4368 java/io/FileWriter.java, java/io/FilenameFilter.java,
4369 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4370 java/io/FilterReader.java, java/io/FilterWriter.java,
4371 java/io/IOException.java, java/io/InputStream.java,
4372 java/io/InputStreamReader.java,
4373 java/io/InterruptedIOException.java,
4374 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4375 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4376 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4377 java/io/PipedReader.java, java/io/PipedWriter.java,
4378 java/io/PrintStream.java, java/io/PrintWriter.java,
4379 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4380 java/io/RandomAccessFile.java, java/io/Reader.java,
4381 java/io/SequenceInputStream.java, java/io/Serializable.java,
4382 java/io/StreamTokenizer.java,
4383 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4384 java/io/StringWriter.java, java/io/SyncFailedException.java,
4385 java/io/UTFDataFormatException.java,
4386 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4387 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4388 java/io/natFileDescriptorPosix.cc,
4389 java/lang/AbstractMethodError.java,
4390 java/lang/ArithmeticException.java,
4391 java/lang/ArrayIndexOutOfBoundsException.java,
4392 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4393 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4394 java/lang/Class.java, java/lang/ClassCastException.java,
4395 java/lang/ClassCircularityError.java,
4396 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4397 java/lang/ClassNotFoundException.java,
4398 java/lang/CloneNotSupportedException.java,
4399 java/lang/Cloneable.java, java/lang/Comparable.java,
4400 java/lang/Compiler.java, java/lang/Double.java,
4401 java/lang/Error.java, java/lang/Exception.java,
4402 java/lang/ExceptionInInitializerError.java,
4403 java/lang/FirstThread.java, java/lang/Float.java,
4404 java/lang/IllegalAccessError.java,
4405 java/lang/IllegalAccessException.java,
4406 java/lang/IllegalArgumentException.java,
4407 java/lang/IllegalMonitorStateException.java,
4408 java/lang/IllegalStateException.java,
4409 java/lang/IllegalThreadStateException.java,
4410 java/lang/IncompatibleClassChangeError.java,
4411 java/lang/IndexOutOfBoundsException.java,
4412 java/lang/InstantiationError.java,
4413 java/lang/InstantiationException.java, java/lang/Integer.java,
4414 java/lang/InternalError.java, java/lang/InterruptedException.java,
4415 java/lang/LinkageError.java, java/lang/Long.java,
4416 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4417 java/lang/NoClassDefFoundError.java,
4418 java/lang/NoSuchFieldError.java,
4419 java/lang/NoSuchFieldException.java,
4420 java/lang/NoSuchMethodError.java,
4421 java/lang/NoSuchMethodException.java,
4422 java/lang/NullPointerException.java, java/lang/Number.java,
4423 java/lang/NumberFormatException.java, java/lang/Object.h,
4424 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4425 java/lang/Process.java, java/lang/Runnable.java,
4426 java/lang/Runtime.java, java/lang/RuntimeException.java,
4427 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4428 java/lang/Short.java, java/lang/StackOverflowError.java,
4429 java/lang/String.java, java/lang/StringBuffer.java,
4430 java/lang/StringIndexOutOfBoundsException.java,
4431 java/lang/System.java, java/lang/Thread.java,
4432 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4433 java/lang/Throwable.java, java/lang/UnknownError.java,
4434 java/lang/UnsatisfiedLinkError.java,
4435 java/lang/UnsupportedOperationException.java,
4436 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4437 java/lang/Void.java, java/lang/natCharacter.cc,
4438 java/lang/natClass.cc, java/lang/natDouble.cc,
4439 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4440 java/lang/natMath.cc, java/lang/natObject.cc,
4441 java/lang/natRuntime.cc, java/lang/natString.cc,
4442 java/lang/natSystem.cc, java/lang/natThread.cc,
4443 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4444 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4445 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4446 java/text/FieldPosition.java, java/text/Format.java,
4447 java/text/NumberFormat.java, java/text/ParseException.java,
4448 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4449 java/util/BitSet.java, java/util/Calendar.java,
4450 java/util/ConcurrentModificationException.java,
4451 java/util/Date.java, java/util/Dictionary.java,
4452 java/util/EmptyStackException.java, java/util/Enumeration.java,
4453 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4454 java/util/Locale.java, java/util/MissingResourceException.java,
4455 java/util/NoSuchElementException.java, java/util/Observable.java,
4456 java/util/Observer.java, java/util/Properties.java,
4457 java/util/Random.java, java/util/SimpleTimeZone.java,
4458 java/util/Stack.java, java/util/StringTokenizer.java,
4459 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4460 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4463 * exception.cc: Include eh-common.h instead of duplicating
4466 1998-11-23 Tom Tromey <tromey@cygnus.com>
4468 * configure.host: Don't add `-O2' to libjava_flags. Only add
4469 `-Os' to libjava_flags once.
4471 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4473 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4474 * Makefile.in: likewise
4475 * acconfig.h: add ECOS conditional for configure.h
4476 * config.h.in: likewise
4477 * configure: add test for --with-ecos
4478 * configure.in: likewise
4479 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4480 rename call to avoid name clash.
4481 * java/lang/natSystem.cc: add eCos clock support.
4482 * java/util/natGregorianCalendar.cc: add eCos support.
4484 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4486 * Makefile.am, Makefile.in, configure.host: tx39 build option
4489 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4491 * java/io/BufferedReader.java: Added more comments for clarity.
4492 (mark): Used more mnemonic name for local var extraBuffSpace.
4494 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4495 confusion with private method of same name in superclass.
4496 (skipRedundantLF): Set fields in special case to avoid infinite
4497 recursion. Check if markPos has been invalidated in special case.
4498 (readLine): Rewritten to use readLine method of superclass.
4499 (skip): Incorporated code from lineEnd.
4501 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4503 * java/io/BufferedReader.java (readLine): New method.
4504 (lineEnd): new private method.
4505 (mark): Track special case for readLine of getting '\r' at the
4512 * java/io/InputStreamReader.java (read): Return number chars skipped
4513 rather than requested.
4515 * java/lang/StringBuffer.java (append): Update count and differentiate
4516 between field and local variable.
4518 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4519 seconds. Deal with military style time.
4520 (parse): Consistently treat all timezones in minutes until final
4521 calculation. Flag as non-local timezone. Return value in milliseconds.
4522 (setTime): Adjust for year offset from 1900.
4523 (UTC): Adjust for year offset from 1900.
4525 1998-11-17 Tom Tromey <tromey@cygnus.com>
4527 * configure: Rebuilt.
4528 * configure.in: Switch on host, not target.
4530 * Makefile.in: Rebuilt.
4531 * Makefile.am (GCJ_no): New macro.
4532 (GCJ): Use @CANADIAN@.
4533 (GCJH_no): New macro
4534 (GCJH_canadian): New macro.
4535 (GCJH): Use @CANADIAN@.
4536 (ZIP_no): New macro.
4537 (ZIP_canadian): New macro.
4538 (ZIP): Use @CANADIAN@.
4539 * aclocal.m4, configure: Rebuilt.
4540 * configure.in (CANADIAN): Compute and subst.
4542 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4544 * java/io/FileDescriptor.java (finalize): Only close file
4545 descriptor if valid.
4547 1998-11-17 Tom Tromey <tromey@cygnus.com>
4549 * prims.cc (_Jv_InitRuntime): Removed.
4551 1998-11-16 Tom Tromey <tromey@cygnus.com>
4553 * java/io/FileOutputStream.java (close): Only close file
4554 descriptor if valid.
4555 (finalize): New method.
4557 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4558 (_Jv_NewPrimArray): Likewise.
4559 * boehm.cc (_Jv_RegisterFinalizer): Use
4560 GC_REGISTER_FINALIZER_NO_ORDER.
4561 (GC_GENERIC_MALLOC): New define.
4562 (_Jv_AllocObj): Use it.
4563 (_Jv_AllocArray): Likewise.
4564 (_Jv_AllocBytes): Likewise.
4565 (_Jv_MarkObj): Just return if vtbl not set.
4566 (_Jv_MarkArray): Likewise.
4567 (MAYBE_MARK): New macro; use everywhere.
4568 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4570 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4572 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4573 to a jlong before calculation to prevent overflow.
4575 1998-11-16 Tom Tromey <tromey@cygnus.com>
4577 * Makefile.in: Rebuilt.
4578 * Makefile.am (nat_headers): Fixed typo.
4580 1998-11-15 Tom Tromey <tromey@cygnus.com>
4582 * java/lang/Class.h (Class::getName): Removed definition.
4583 * Makefile.in: Rebuilt.
4584 * Makefile.am (nat_headers): Added InstantiationException.h,
4585 NoSuchMethodException.h.
4586 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4587 (init_name): New global.
4588 (hackRunInitializers): Use clinit_name.
4589 Include InstantiationException.h, NoSuchMethodException.h.
4590 (newInstance): Do some error checking (but not all). Call
4592 (forName): Throw exception if class not found.
4593 (getName): New method.
4594 (forName): Transform class name from external format to internal
4595 format before lookup.
4597 1998-11-15 Anthony Green <green@cygnus.com>
4599 * java/lang/Class.h (Class::forName): Method is static.
4601 * java/lang/natClass.cc (newInstance): Add simple implementation.
4604 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4606 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4607 int), for compatibility with jc1.
4609 1998-11-14 Tom Tromey <tromey@cygnus.com>
4611 * include/config.h.in: Rebuilt.
4612 * acconfig.h (LINUX_THREADS): New define.
4613 * configure: Rebuilt.
4614 * configure.in: Define LINUX_THREADS if using POSIX threads on
4615 Linux. Look for pthread_mutexattr_setkind_np function.
4616 * posix-threads.cc (throw_cleanup): New function.
4617 (really_start): Push cleanup function.
4618 (_Jv_ThreadCancel): New function.
4619 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4620 (_Jv_ThreadInitData): Set `exception' field in new structure.
4621 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4623 (_Jv_ThreadWait): New function.
4624 (_Jv_InitThreads): Initialize daemon globals.
4625 (FLAG_DAEMON): New macro.
4626 (really_start): Notify daemon_cond when non-daemon thread exits.
4627 Include <java/lang/System.h>.
4628 (struct starter): `object' field now a thread.
4629 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4630 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4631 (_Jv_ThreadWait): Removed definition.
4632 (_Jv_Thread_t): Added `exception' field.
4633 (_Jv_ThreadCancel): Removed definition.
4635 1998-11-13 Tom Tromey <tromey@cygnus.com>
4637 * Makefile.in: Rebuilt.
4638 * Makefile.am (libjava.zip): Compute javac before changing
4641 * Makefile.in: Rebuilt.
4642 * Makefile.am (libjava.zip): Include directory entries.
4644 * Makefile.in: Rebuilt.
4645 * Makefile.am (expanded): New macro.
4648 1998-11-12 Tom Tromey <tromey@cygnus.com>
4650 * prims.cc (clone): New function.
4651 * include/java-array.h (__JArray::clone): Removed definition.
4653 * java/lang/natObject.cc (clone): Don't assert that class is not
4654 an array; array's `clone' method just calls this one.
4656 * Makefile.in: Rebuilt.
4657 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4658 Now creates zip file. Changed all users.
4660 (data_DATA): New macro.
4662 1998-11-11 Tom Tromey <tromey@cygnus.com>
4664 * configure: Rebuilt.
4665 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4667 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4669 * java/io/InputStream.java (reset): Add msg to thrown exception.
4671 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4673 * java/io/LineNumberInputStream.java: Rewritten.
4675 * java/io/StringBufferInputStream.java: Removed extraneous import.
4677 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4679 * java/io/StringBufferInputStream.java: Rewritten.
4681 * java/util/Date.java (parseMonth): Optimize.
4682 (parseDayOfWeek): Created.
4683 (parse): Optimize to use parseDayOfWeek.
4685 1998-11-11 Tom Tromey <tromey@cygnus.com>
4687 * java/lang/StringBuffer.java (append): Handle case where STR is
4690 * include/javaprims.h: Regenerated class declarations.
4692 * configure: Rebuilt.
4693 * configure.in: Added --enable-gcj-classes,
4694 --enable-single-compilation, --enable-source-compilation flags.
4695 * Makefile.in: Rebuilt.
4696 * Makefile.am (java_io_files): New macro.
4697 (java_lang_files): Likewise.
4698 (java_text_files): Likewise.
4699 (java_util_files): Likewise.
4700 (java_files): Use new macros.
4701 (java-io.o): New target.
4702 (java-lang.o): Likewise.
4703 (java-text.o): Likewise.
4704 (java-util.o): Likewise.
4705 (src_io_files): New macro.
4706 (src_lang_files): Likewise.
4707 (src_text_files): Likewise.
4708 (src_util_files): Likewise.
4709 (class_io_files): New macro.
4710 (class_lang_files): Likewise.
4711 (class_text_files): Likewise.
4712 (class_util_files): Likewise.
4713 (class_files): Use new macros.
4714 (javao_files): Define conditionally.
4715 (.java.o): New target.
4716 ($(javao_files)): New target.
4718 (GCJH): Added $(EXEEXT).
4719 (CLASSPATH_ENV): Removed.
4720 (GCJCOMPILE): New macro.
4722 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4724 * java/util/Date.java (parse): Written from scratch.
4726 1998-11-11 Tom Tromey <tromey@cygnus.com>
4728 * java/lang/Throwable.java (toString): Correct sense of test for
4729 determining when to include detail message in result.
4731 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4734 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4736 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4738 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4739 (_Jv_RegisterClass): Use it.
4740 * include/jvm.h (_Jv_RegisterClasses): Declare.
4741 * java/lang/natObject.cc (init): Removed.
4742 (sync_init): Never call _Jv_InitializeSyncMutex.
4743 (_Jv_InitializeSyncMutex): Don't set `init'.
4744 * prims.cc (JvRunMain): Don't run init functions.
4746 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4748 * java/lang/natClass.cc (initializeClass): Set state before
4749 resolving constants.
4751 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4752 (STATE_RESOLVED): New macro.
4753 (initializeClass): Call resolveConstants.
4754 (hackRunInitializers): Don't call resolveConstants.
4755 (_Jv_FindArrayClass): Move short-circuit return for primitive
4756 element types earlier in function.
4758 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4760 * prims.cc (no_memory): New global.
4761 (_Jv_makeUtf8Const): Throw no_memory.
4762 (_Jv_AllocObject): Likewise.
4763 (_Jv_NewObjectArray): Likewise.
4764 (_Jv_NewPrimArray): Likewise.
4765 (JvRunMain): Initialize no_memory.
4767 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4769 * java/io/FileInputStream.java: Corrected date comment.
4770 * java/io/SequenceInputStream.java: Rewritten.
4772 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4774 * java/lang/FirstThread.java (die): New method.
4775 * java/lang/natFirstThread.cc (die): Removed.
4777 (run): Use `DIE', not `die'.
4779 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4781 * java/io/CharArrayReader.java (read): Move check into synchronized
4782 block to prevent a close while in progress.
4785 * java/io/PushbackReader.java (read): Ditto.
4788 * java/io/StringReader.java (mark): Ditto.
4793 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4795 * java/io/PipedInputStream.java: Updated status.
4796 (connect): Added code to prevent infinite recursion and to
4797 differentiate exception causes.
4798 (read): Added code to differentiate exception causes.
4799 (receive): Made exception pass string with the cause.
4801 * java/io/PipedOutputStream.java: Updated status.
4802 (connect): Added code to call connect at the other end of the pipe.
4804 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4806 * java/io/PipedInputStream.java (connect): Throw exception if
4807 already connected to the same output stream.
4808 (read): Do bounds checking first.
4810 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4812 * java/io/PipedInputStream.java: Added private boolean outClosed.
4813 (available): Removed check if output stream is open.
4814 (close): Mark the buffer as empty so available returns 0.
4815 (read): Check if the output stream was closed and then return EOF
4816 when the buffer is empty.
4817 (receive): Mark the output stream as closed when passed a -1.
4819 * java/io/PipedOutputStream.java (close): Notify the input stream
4820 that there's no more data coming.
4821 (connect): Added a FIXME comment to note more coordination needed
4822 with PipedInputStream.
4823 (flush): Added a FIXME comment to mark what this method might do
4826 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4828 * java/io/PipedInputStream.java: Rewritten.
4830 1998-10-30 Tom Tromey <tromey@cygnus.com>
4832 * java/lang/Throwable.java: Rewrote from scratch.
4834 * java/lang/Class.h (Class): Don't mention newMultiArray.
4835 * prims.cc (newMultiArray): Removed.
4836 (_Jv_NewMultiArray): Removed.
4837 (newArray): Removed.
4838 (new_multi_array): New function.
4839 (_Jv_NewMultiArray): Rewrote from scratch.
4841 * include/javaprims.h: Regenerated class declarations.
4842 * classes.pl (scan): Don't declare PrimClass.
4843 * include/cni.h (JvPrimClass): Use new names for classes.
4844 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4845 added _Jv_PrimClass.
4846 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4847 (_Jv_initPrimClass): Removed.
4848 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4849 (_Jv_AllocObject): Added comment.
4850 (_Jv_NewObjectArray): Likewise.
4851 (_Jv_NewPrimArray): Likewise.
4853 1998-10-29 Tom Tromey <tromey@cygnus.com>
4855 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4856 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4858 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4860 * java/lang/natObject.cc (init): New global.
4861 (sync_init): Call _Jv_InitializeSyncMutex if required.
4863 * Makefile.in: Rebuilt.
4864 * Makefile.am (nat_headers): Added ClassLoader.h.
4865 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4866 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4867 internalAddClass, lookupArray no longer friends.
4868 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4869 _Jv_FindArrayClass now friends.
4870 * java/lang/natClass.cc (HASH_LEN): New macro.
4871 (HASH_UTF): Likewise.
4872 (loaded_classes): New global.
4873 (_Jv_FindClass): New function.
4874 (ClassClass): New define.
4875 (_Jv_FindClassInCache): New function.
4876 (_Jv_RegisterClass): Likewise.
4877 (_Jv_NewClass): Likewise.
4879 (ObjectClass): New define.
4880 (CloneableClass): New define.
4881 * prims.cc (_Jv_FindClass): Removed.
4882 (simpleLookupClass): Removed.
4883 (insertClass): Removed.
4884 (CLASSHASHSZ): Removed.
4885 (classPool): Removed.
4886 (_Jv_RegisterClass): Removed.
4887 (internalAddClass): Removed.
4888 (ClassClass): Removed.
4889 (RuntimeClass): Removed.
4890 (lookupArray): Removed.
4891 (CloneableClass): Removed.
4892 (CLASSMAXSIG): Removed.
4893 Rearranged file to group related functions together.
4894 (_Jv_IsInstanceOf): Moved to natClass.cc.
4895 (abort_final): Removed.
4896 Removed some unused includes.
4897 (classFromSig): Removed.
4898 (_Jv_FindClassFromSignature): New function.
4899 (_Jv_initPrimClass): Renamed.
4900 (getClass): Removed.
4902 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4904 * java/io/FileDescriptor.java (finalize): Throws IOException
4905 instead of Throwable.
4907 * java/io/FileInputStream.java: Rewritten.
4909 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4910 at the end of a comment.
4912 1998-10-29 Tom Tromey <tromey@cygnus.com>
4914 * include/javaprims.h: Regenerated class declarations.
4915 * classes.pl (scan): Don't special-case ClassLoader.
4917 * prims.cc (processClass): Removed.
4918 (_Jv_InitClass): Removed.
4919 Removed all CSTATE_ macros.
4920 (resolveConstants): Removed.
4922 (_Jv_NewMultiArray): Cleaned up.
4923 * Makefile.in: Rebuilt.
4924 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4925 * java/lang/Class.h (Class): Declare new methods. processClass no
4927 * java/lang/Class.java (hackTrampoline): New method.
4928 (initializeClass): Declare.
4929 (hackRunInitializers): Declare.
4930 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4931 (initializeClass): New method.
4932 (hackRunInitializers): New method.
4933 (init_name, void_signature): Moved from prims.cc.
4934 (_Jv_InitClass): New function.
4935 (isAssignableFrom): Don't call processClass.
4936 (STATE_NOTHING): New macro.
4937 (resolveConstants): New function.
4939 (ErrorClass): New define.
4941 * java/lang/Class.java (getClassLoader): Declare.
4942 * java/lang/ClassLoader.java: Rewrote from scratch.
4944 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4945 AbstractMethodError.h, IllegalAccessError.h,
4946 NoClassDefFoundError.h.
4947 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4948 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4949 longer static. Changed return type.
4950 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4951 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4952 * prims.cc (findMethodLocal): Removed.
4953 (processClass): Use _Jv_GetMethodLocal.
4955 1998-10-28 Tom Tromey <tromey@cygnus.com>
4957 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4958 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4960 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4961 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4963 * include/jni.h: Added copyright header.
4964 * include/javaprims.h: Added copyright header.
4965 * include/java-field.h: Added copyright header.
4966 * include/java-array.h: Added copyright header.
4967 * include/cni.h: Added copyright header.
4969 * include/javaprims.h: Regenerated class declarations using
4970 classes.pl; now they are complete.
4971 * classes.pl: New file.
4973 * java/lang/natMath.cc: Include <config.h>.
4974 * java/lang/reflect/natField.cc: Include <config.h>.
4975 * java/util/NativeUtil.java: Removed.
4976 * Makefile.in: Rebuilt.
4977 * Makefile.am (nat_headers): Added Math.h.
4978 * java/lang/Math.h: Removed.
4979 * java/util/natGregorianCalendar.cc: Added copyright header.
4981 * java/lang/natFloat.cc: Added copyright header.
4982 * java/lang/Byte.java: Added copyright header.
4983 * java/lang/Void.java: Added copyright header.
4984 * java/lang/Short.java: Added copyright header.
4986 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4988 * include/javaprims.h (java::io): Added bunch of missing classes.
4990 * java/io/DataInputStream.java (readLine): Added a special case
4991 for handling BufferedInputStream data to reduce the likelihood
4992 of a pushback error.
4993 (skipBytes): Added code to handle negative number of skip bytes.
4995 * java/io/StreamTokenizer.java: Rewritten.
4997 1998-10-28 Tom Tromey <tromey@cygnus.com>
4999 * java/util/natGregorianCalendar.cc (computeFields): Call
5000 getRawOffset as a method.
5002 * include/javaprims.h (java::io): Added FilterOutputStream.
5003 * Makefile.in: Rebuilt.
5004 * Makefile.am (nat_headers): Added PrintStream.h,
5005 FilterOutputStream.h.
5006 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5008 (die): New function.
5009 (run): Die if `main' not found, is not public, or is not static.
5011 * boehm.cc (_Jv_MarkObj): Use new field names.
5012 * include/java-field.h (JvGetFirstInstanceField): Use new field
5014 (JvNumInstanceFields): Likewise.
5015 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5016 (getInterfaces): Likewise.
5017 * prims.cc (CLASS_CONSTANTS): Removed.
5018 (CLASS_CONST_SIZE): Likewise.
5019 (CLASS_CONST_TAG): Likewise.
5020 (CLASS_CONST_DATA): Likewise.
5021 (CLASS_CONST_UTF8): Likewise.
5022 (WORD2UTF): Likewise.
5023 (CLASS_CLASS): Likewise.
5024 (CLASS_PRIM_SIG): Likewise.
5025 (CLASS_ARRAY_CACHE): Likewise.
5026 (HASH_CHARS): Likewise.
5027 (hashClassName): Likewise.
5028 Many changes to use new field names.
5029 * java/lang/Class.h (Class): Renamed fields to track compiler.
5031 1998-10-27 Tom Tromey <tromey@cygnus.com>
5033 * java/lang/natClass.cc: Use #pragma implementation.
5034 (getComponentType): Moved into header.
5035 (getModifiers): Likewise.
5036 (getName): Likewise.
5037 (getSuperclass): Likewise.
5038 (isArray): Likewise.
5039 (isPrimitive): Likewise.
5040 * include/jvm.h (_Jv_FindClass): Declare.
5041 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5042 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5043 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5044 * java/lang/Class.h: Rewrote from scratch.
5045 * prims.cc: Many changes to work with new Class.h.
5046 * include/java-field.h (CLASS_FIELDS): Removed.
5047 (CLASS_SFIELDS): Likewise.
5048 (CLASS_IFIELDS): Likewise.
5049 (CLASS_NFIELDS): Likewise.
5050 (CLASS_NIFIELDS): Likewise.
5051 (CLASS_NSFIELDS): Likewise.
5052 (CLASS_FSIZE): Likewise.
5053 (JvGetFirstInstanceField): Rewrote.
5054 (JvNumInstanceFields): Likewise.
5056 * java/lang/Object.h: Added copyright comment.
5058 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5060 * java/text: New package directory.
5061 * java/text/FieldPosition.java: New class.
5062 * java/text/ParsePosition.java: New class.
5063 * java/text/ParseException.java: New Exception class.
5064 * java/text/Format.java: New class.
5065 * java/text/NumberFormat.java: New (empty placeholder) class.
5066 * java/text/DateFormatSymbols.java: New class (no Locales support).
5067 * java/text/DateFormat.java: New Format class (incomplete).
5068 * java/text/SimpleDateFormat.java: New DateFormat class.
5070 * include/javaprims.h (java::test): Added new package and classes.
5071 * java/util/Calendar.java (clone): New method.
5072 * java/util/Date.java (toString): Added non-native implementation.
5073 (parse): Made public instead of synchronized.
5074 * java/util/natDate.cc (toString): Removed.
5075 * java/util/natGregorianCalendar.cc (computeFields):
5076 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5078 1998-10-27 Tom Tromey <tromey@cygnus.com>
5080 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5082 * prims.cc (lookupArray): Added explanatory comment.
5083 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5084 class. Mark the class of each object.
5085 (_Jv_MarkArray): Mark the object's class.
5087 * configure: Rebuilt.
5088 * configure.in: Create java-gc.h.
5089 * include/boehm-gc.h: New file.
5090 * include/no-gc.h: New file.
5091 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5093 * java/lang/Object.h: Include java-gc.h.
5094 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5095 friends, if defined.
5096 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5098 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5100 1998-10-26 Tom Tromey <tromey@cygnus.com>
5102 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5103 paragraph separators, not numbers.
5105 * java/io/Writer.java (write): Removed write(char) to avoid
5107 * java/util/Properties.java: Rewrote from scratch.
5108 * include/javaprims.h (java::io): Added PrintWriter,
5109 BufferedWriter, PushbackReader.
5111 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5113 * java/lang/System.java: exit() is a static method.
5115 1998-10-26 Tom Tromey <tromey@cygnus.com>
5117 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5119 (_Jv_NewStringUtf8Const): Likewise.
5120 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5121 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5123 * java/lang/Object.h (Object): Add mark_array as friend function.
5124 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5125 _Jv_AllocBytes, to ensure that header is marked.
5126 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5128 (mark_array): Push sync_info field for array.
5130 1998-10-24 Tom Tromey <tromey@cygnus.com>
5132 * java/lang/String.java (String): Updated for StringBuffer
5134 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5136 * java/lang/StringBuffer.java: Renamed fields to conform to
5137 serialization spec: buffer->value, next->count, copy->shared.
5139 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5141 * java/util/TimeZone.java: New class.
5142 * java/util/SimpleTimeZone.java: New class.
5143 * java/util/Locale.java: New file.
5144 * java/util/Calendar.java: Make almost complete.
5145 * java/util/GregorianCalendar.java
5146 * java/util/natGregorianCalendar.cc: New file.
5147 * java/util/Date.java: Re-written from scratch.
5148 * java/util/natDate.cc (setTime): Removed - no longer native.
5149 * include/javaprims.h (java::util): Add new classes.
5150 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5151 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5153 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5155 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5156 returning it as a jint.
5158 1998-10-23 Tom Tromey <tromey@cygnus.com>
5160 * prims.cc (arg_vec, main_group, main_thread): New globals.
5161 (JvRunMain): Use them.
5163 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5165 * java/io/DataInputStream.java: Rewritten.
5167 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5168 tertiary bytes with 0x80 per spec.
5170 1998-10-23 Tom Tromey <tromey@cygnus.com>
5172 * java/lang/String.java (init): Changed name of `copy' argument.
5173 * java/lang/natString.cc (init): Inverted sense of `copy'
5176 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5177 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5178 * boehm.cc (ObjectClass): New define.
5179 (ClassClass): Likewise.
5180 (mark_obj): Special-case Object and Class.
5182 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5184 * java/util/BitSet.java: Rewrote from scratch.
5186 * prims.cc (lookupArray): Removed useless cast.
5188 * java/lang/natObject.cc: Use `#pragma implementation'.
5190 * java/lang/String.java (init): Added `copy' argument.
5191 (String): Look in StringBuffer to find char array.
5192 * java/lang/natString.cc (init): Added `copy' argument.
5193 * java/lang/StringBuffer.java: Rewrote from scratch.
5195 * java/lang/Compiler.java: Rewrote from scratch.
5196 * java/lang/Throwable.java: Don't use NativeLang.
5197 * include/javaprims.h (java::lang): Don't mention NativeLang.
5198 * java/lang/Process.java: Rewrote from scratch.
5199 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5201 (currentClassLoader): Likewise.
5202 (currentLoadedClass): Likewise.
5203 * java/lang/natClass.cc (getClassLoader): Commented out.
5204 * java/lang/Class.java (getClassLoader): Commented out.
5205 * java/lang/Compiler.java: Removed.
5206 * java/lang/NativeLang.java: Removed.
5208 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5209 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5210 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5211 (_Jv_hashUtf8String): Now static.
5212 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5213 name of return type.
5215 * java/lang/Class.h (Class): Declare checkMemberAccess.
5216 * Makefile.in: Rebuilt.
5217 * Makefile.am (nat_headers): Added Member.h.
5218 * java/lang/natClass.cc: Include Member.h.
5219 (getDeclaredClasses): Call checkMemberAccess.
5220 * java/lang/Class.java (checkMemberAccess): Call
5221 SecurityManager.checkMemberAccess.
5223 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5225 * java/lang/SecurityManager.java: Rewritten.
5227 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5229 * java/applet/Applet.java, java/applet/AppletContext.java,
5230 java/applet/AppletStub.java, java/applet/AudioClip.java,
5231 java/awt/AWTError.java, java/awt/AWTException.java,
5232 java/awt/BorderLayout.java, java/awt/Button.java,
5233 java/awt/Canvas.java, java/awt/CardLayout.java,
5234 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5235 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5236 java/awt/Color.java, java/awt/Component.java,
5237 java/awt/Container.java, java/awt/Dialog.java,
5238 java/awt/Dimension.java, java/awt/Event.java,
5239 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5240 java/awt/Font.java, java/awt/FontMetrics.java,
5241 java/awt/Frame.java, java/awt/Graphics.java,
5242 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5243 java/awt/GridLayout.java, java/awt/Image.java,
5244 java/awt/Insets.java, java/awt/Label.java,
5245 java/awt/LayoutManager.java, java/awt/List.java,
5246 java/awt/MediaTracker.java, java/awt/Menu.java,
5247 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5248 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5249 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5250 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5251 java/awt/TextArea.java, java/awt/TextComponent.java,
5252 java/awt/TextField.java, java/awt/Toolkit.java,
5253 java/awt/Window.java, java/awt/image/ColorModel.java,
5254 java/awt/image/CropImageFilter.java,
5255 java/awt/image/DirectColorModel.java,
5256 java/awt/image/FilteredImageSource.java,
5257 java/awt/image/ImageConsumer.java,
5258 java/awt/image/ImageFilter.java,
5259 java/awt/image/ImageObserver.java,
5260 java/awt/image/ImageProducer.java,
5261 java/awt/image/IndexColorModel.java,
5262 java/awt/image/MemoryImageSource.java,
5263 java/awt/image/PixelGrabber.java,
5264 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5265 java/awt/peer/CanvasPeer.java,
5266 java/awt/peer/CheckboxMenuItemPeer.java,
5267 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5268 java/awt/peer/ComponentPeer.java,
5269 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5270 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5271 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5272 java/awt/peer/MenuBarPeer.java,
5273 java/awt/peer/MenuComponentPeer.java,
5274 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5275 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5276 java/awt/peer/TextAreaPeer.java,
5277 java/awt/peer/TextComponentPeer.java,
5278 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5279 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5280 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5281 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5282 java/net/MalformedURLException.java, java/net/NativeNet.java,
5283 java/net/ProtocolException.java, java/net/ServerSocket.java,
5284 java/net/Socket.java, java/net/SocketException.java,
5285 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5286 java/net/URL.java, java/net/URLConnection.java,
5287 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5288 java/net/URLStreamHandlerFactory.java,
5289 java/net/UnknownHostException.java,
5290 java/net/UnknownServiceException.java: Removed.
5292 1998-10-22 Tom Tromey <tromey@cygnus.com>
5294 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5295 finalizer is not Object.finalize.
5296 (internalAddClass): Don't set `final' member of class.
5297 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5298 other places that know about finalize() location.
5299 * java/lang/Class.h (Class): Removed `final' field.
5301 * aclocal.m4, configure: Rebuilt.
5302 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5303 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5305 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5306 * Makefile.in: Rebuilt.
5307 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5309 1998-10-21 Tom Tromey <tromey@cygnus.com>
5311 * java/lang/Object.java (finalize): Move to be first method in
5314 * configure: Rebuilt.
5315 * configure.in (GCINCS): Include contents of boehm-cflags file.
5317 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5319 * java/lang/ArrayIndexOutOfBoundsException.java
5320 (ArrayIndexOutOfBoundsException): Fixed string literal.
5321 * java/lang/StringIndexOutOfBoundsException.java
5322 (StringIndexOutOfBoundsException): Fixed string literal.
5324 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5326 * natFileDescriptorEcos.cc added.
5327 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5329 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5331 * acconfig.h: test for __int32_t and __uint32_t added.
5332 * include/config.h.in: test for __int32_t and __uint32_t added.
5333 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5334 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5335 * configure.in: test for __int32_t and __uint32_t added.
5336 * configure: test for __int32_t and __uint32_t added.
5338 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5340 * configure.in: Test for --enable ecos and link
5341 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5342 natFileDescriptorPosix.cc
5344 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5346 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5348 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5351 * java/io/CharArrayReader.java (close): Synchronize on lock
5352 object per Reader contract.
5353 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5354 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5355 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5356 Ensure that arg passed in isn't negative.
5358 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5359 constructing the superclass.
5361 * java/io/PushbackReader.java (close): Synchronize on lock
5362 object per Reader contract.
5363 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5364 (ready): Synchronize on lock obj. Throw IOException if reader
5366 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5367 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5368 Ensure that arg passed in isn't negative.
5369 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5371 * java/io/StringReader.java: Created.
5373 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5375 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5377 (read): Removed synchronized modifier to match JCL.
5378 (reset): Removed synchronized modifier to match JCL.
5379 (skip): Removed synchronized modifier to match JCL.
5381 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5383 * java/io/PushbackReader.java (PushbackReader): Made
5384 constructors public.
5386 1998-10-17 Tom Tromey <tromey@cygnus.com>
5388 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5389 constructors public.
5391 1998-10-16 Anthony Green <green@cygnus.com>
5393 * aclocal.m4, configure: Rebuilt.
5394 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5396 * configure.host: Rewrote.
5397 * Makefile.in: Rebuilt.
5398 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5399 (AM_CFLAGS): New macro.
5400 ($(c_files)): Use COMPILE macro.
5401 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5402 automake problem(s).
5404 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5406 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5408 * java/io/CharArrayReader.java: Created.
5410 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5412 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5413 size check to allow 0 per JCL.
5415 * java/io/PushbackReader.java: Created.
5417 1998-10-16 Tom Tromey <tromey@cygnus.com>
5419 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5420 <sys/time.h> includes.
5421 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5422 * include/no-threads.h: Conditionalize <unistd.h> include on
5425 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5427 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5430 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5432 * java/io/FilterReader.java: Created.
5434 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5436 * java/io/PushbackInputStream.java: Rewritten.
5438 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5439 that size passed to constructor is legal.
5440 (read): Check that args passed in are legal.
5441 (skip): Rewritten to get rid of the temporary buffer.
5442 (refill): Added marklimit check to grow the buffer.
5444 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5446 (bytesAvail): Removed.
5447 (read): Changed bytesAvail to Math.min.
5448 (skip): Changed bytesAvail to Math.min.
5450 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5451 from the throws clause.
5452 (skip): Rewritten to use a temporary buffer.
5454 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5456 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5459 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5461 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5462 to write the double one word at a time.
5464 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5466 * java/io/BufferedInputStream.java: Rewritten.
5468 1998-10-12 Tom Tromey <tromey@cygnus.com>
5470 * jni.cc: Include config.h and stddef.h.
5472 * java/lang/Class.h (_dispatchTable): Removed again.
5473 Removed all ACC_* defines again.
5475 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5477 * Makefile.am (nat_files): Add netField.o.
5478 (libjava_a_SOURCES): Add jni.cc.
5479 (java/lang/reflect/Field.h): New rule.
5480 * Makefile.in: Re-generated.
5481 * include/javaprims.h: Add some extra class and typedefs.
5482 * include/jni.h: New file.
5485 * include/java-field.h: New file.
5486 * include/jvm.h: #include <java-field.h>.
5487 * boehm.cc: #include <java-field.h>.
5488 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5489 * java/lang/reflect/Member.java: New class.
5490 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5491 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5493 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5495 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5496 testsuite/Makefile.in: Rebuilt.
5497 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5498 * configure.host: Created.
5500 1998-10-10 Tom Tromey <tromey@cygnus.com>
5502 * java/lang/natObject.cc (sync_init): Always allocate a new
5505 1998-10-09 Tom Tromey <tromey@cygnus.com>
5507 * java/io/ByteArrayInputStream.java (mark): Renamed from
5510 * java/io/FileOutputStream.java (finalize): Removed.
5511 * java/io/FileDescriptor.java (finalize): New method.
5513 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5515 * ByteArrayInputStream.java: Corrected status comment.
5517 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5519 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5521 1998-10-08 Tom Tromey <tromey@cygnus.com>
5523 * prims.cc (lookupArray): Use static array to initialize list of
5526 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5528 * prims.cc (lookupArray): Initialize the msize for new
5531 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5533 * configure: Rebuilt.
5534 * configure.in: Check for fsync and sleep.
5535 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5537 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5538 HAVE_SLEEP. Include config.h.
5540 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5541 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5544 1998-10-08 Tom Tromey <tromey@cygnus.com>
5546 * java/io/natFile.cc: Don't include SecurityManager.h.
5547 (performList): Renamed.
5548 (performMkdir): Likewise.
5549 (performRenameTo): Likewise.
5550 (performDelete): Likewise.
5552 * java/io/File.java (performDelete): Renamed from natDelete.
5553 (list): Now written in Java.
5554 (performList): New method.
5555 (performMkdir): New method.
5556 (mkdir): Now written in Java.
5557 (performRenameTo): New method.
5558 (renameTo): Now written in Java.
5560 1998-10-06 Tom Tromey <tromey@cygnus.com>
5562 * Makefile.in: Rebuilt.
5563 * Makefile.am (ETAGS_ARGS): New macro.
5564 (TAGS_DEPENDENCIES): Likewise.
5566 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5568 * Makefile.in: Rebuilt.
5569 * Makefile.am: Use -classpath option with javac.
5571 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5573 * java/io/FileOutputStream.java (finalize): Call
5576 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5578 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5580 * java/lang/mprec.c: Ditto.
5582 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5585 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5587 * java/io/InputStream.java (skip): Make local var i a long.
5589 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5591 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5592 * prims.cc (lookupArray): Use memcpy, not memmove.
5593 * include/config.h.in: Rebuilt.
5594 * acconfig.h (HAVE_MEMCPY): Added.
5595 * configure: Rebuilt.
5596 * configure.in: Check for memcpy again.
5598 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5599 String.compareTo, not ==.
5601 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5602 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5603 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5604 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5605 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5606 into new array's dtable.
5607 (_Jv_AllocObject): Use _Jv_DispatchTable.
5608 (_Jv_NewPrimArray): Likewise.
5609 (_Jv_NewObjectArray): Likewise.
5611 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5613 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5614 offending index value.
5615 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5617 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5618 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5620 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5622 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5624 * java/io/OutputStream.java (write): Use off and len parameters to
5625 output partial byte array.
5627 * java/io/BufferedReader.java, java/io/FileReader.java,
5628 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5629 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5630 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5631 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5633 * include/javaprims.h (java::lang): Added
5634 ExceptionInInitializerError, IllegalStateException,
5635 NoSuchFieldException, and UnsupportedOperationException.
5637 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5639 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5642 * include/java-array.h (__JArray): Added clone method.
5643 * prims.cc (CloneableClass): New define.
5644 (lookupArray): Initialize array class to indicate that it
5645 implements Cloneable.
5647 * java/lang/Class.h: Removed all ACC_* defines.
5648 * prims.cc: Include Modifier.h.
5649 (_Jv_LookupInterfaceMethod): Use methods in
5650 java.lang.reflect.Modifier, not ACC_ defines.
5652 * java/lang/Class.h (Class): Declare getClasses,
5653 getDeclaredClasses, getDeclaringClass, getModifiers,
5654 * java/lang/Class.java: Rewrote from scratch.
5656 * include/javaprims.h (java::lang): Added reflect and
5658 * Makefile.in: Rebuilt.
5659 * Makefile.am (nat_headers): Added Modifier.h.
5661 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5664 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5666 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5667 instead of test and abort.
5669 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5670 remove compiler warning.
5672 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5674 * java/lang/natDouble.cc: zero terminate string.
5675 * strtod.c: Set errno if no digits are found in fraction.
5677 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5679 * java/lang/reflect/Modifier.java: New file.
5681 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5682 * java/lang/VerifyError.java: Rewrote from scratch.
5683 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5684 * java/lang/UnknownError.java: Rewrote from scratch.
5685 * java/lang/StackOverflowError.java: Rewrote from scratch.
5686 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5687 * java/lang/InternalError.java: Rewrote from scratch.
5688 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5689 * java/lang/ExceptionInInitializerError.java: New file.
5690 * java/lang/Error.java: Rewrote from scratch.
5691 * java/lang/ClassFormatError.java: Rewrote from scratch.
5692 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5693 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5694 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5695 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5696 * java/lang/LinkageError.java: Rewrote from scratch.
5697 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5699 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5701 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5702 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5704 * include/cni.h (JvAllocObject): Moved from prims.cc.
5706 * prims.cc (JvAllocObject): Moved to cni.h.
5707 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5708 (finalize_name): Removed.
5710 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5712 * java/lang/Class.h (Class): Added size() method.
5713 * prims.cc (_Jv_MonitorEnter): Removed.
5714 (_Jv_MonitorExit): Removed.
5715 * java/lang/Object.h (JvSyncInfo): Removed.
5716 * Makefile.in: Rebuilt.
5717 * Makefile.am (nat_headers): Added Cloneable.h,
5718 CloneNotSupportedException.h.
5719 * java/lang/Object.h: Rewrote.
5720 * java/lang/natObject.cc: Rewrote from scratch.
5721 * java/lang/Object.java: Rewrote from scratch.
5723 * java/io/natFile.cc: Conditionally include <dirent.h>.
5724 (list): If no <dirent.h>, always return NULL.
5725 * configure: Rebuilt.
5726 * configure.in: Check for dirent.h.
5728 * prims.cc (lookupArray): Don't use sprintf.
5730 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5737 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5738 name conflict with method.
5740 * include/javaprims.h (java::util): Added HashtableEntry.
5742 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5744 * java/util/Hashtable.java: Rewritten.
5746 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5748 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5752 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5755 * posix-threads.cc (_Jv_CondWait): Now returns int.
5756 * include/javaprims.h (java::lang): Added
5757 IllegalMonitorStateException.
5758 * Makefile.in: Rebuilt.
5759 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5760 * include/no-threads.h (_Jv_CondDestroy): Removed.
5761 (_Jv_MutexDestroy): Removed.
5762 (_Jv_CondWait): Now returns int.
5763 (_Jv_CondNotify): Likewise. Added mutex argument.
5764 (_Jv_CondNotifyAll): Likewise.
5765 (_Jv_MutexLock): Always succeed.
5766 (_Jv_MutexUnlock): Likewise.
5767 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5768 (_Jv_HaveMutexDestroy): Define.
5769 (_Jv_CondNotify): Now returns int. Added mutex argument.
5770 (_Jv_CondNotifyAll): Likewise.
5771 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5772 (_Jv_MutexDestroy): Removed.
5773 (_Jv_CondWait): Now returns int.
5774 (_Jv_CondNotify): Likewise. Added mutex argument.
5775 (_Jv_CondNotifyAll): Likewise.
5776 * java/lang/natObject.cc (finalize_sync_info): New function.
5777 (init_mutex): Initialize `init' and register finalizer if
5780 (init_mutex): Use it.
5782 (notifyAll): Use it.
5784 (notify): Throw IllegalMonitorStateException on failure.
5785 (notifyAll): Likewise.
5786 (wait): Likewise. Also, throw InterruptedException if
5788 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5789 InterruptedException.h, IllegalArgumentException.h.
5790 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5792 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5793 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5794 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5795 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5796 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5797 * quick-threads.cc: Renamed all `JvPriv' functions.
5798 * prims.cc: Renamed all `JvPriv' functions.
5799 * posix-threads.cc: Renamed all `JvPriv' functions.
5800 * nogc.cc: Renamed all `JvPriv' functions.
5801 * no-threads.cc: Renamed all `JvPriv' functions.
5802 * boehm.cc: Renamed all `JvPriv' functions.
5803 * include/quick-threads.h: Renamed all `JvPriv' functions.
5804 * include/posix-threads.h: Renamed all `JvPriv' functions.
5805 * include/no-threads.h: Renamed all `JvPriv' functions.
5806 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5808 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5810 (JvPrivCondNotify): Do nothing.
5811 (JvPrivCondNotifyAll): Do nothing.
5813 * prims.cc (processClass): Handle case where state is
5816 * java/lang/natFirstThread.cc: Include <stdlib.h>
5818 * configure: Rebuilt.
5819 * configure.in: Fixed sense of --enable-libjava-debug.
5821 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5822 it can be used afterward by the assertion.
5824 * configure: Rebuilt.
5825 * configure.in: When cross-compiling, assume alloca.
5827 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5828 __builtin_alloca (autoconf docs are wrong here).
5830 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5832 (available): Use `FD_ZERO' (typo fix).
5834 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5836 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5837 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5839 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5840 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5843 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5845 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5847 * java/lang/natDouble.cc: Declare alloca safely.
5849 * configure, include/config.h.in: Rebuilt.
5850 * configure.in: Add alloca check.
5852 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5854 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5855 condition while calling notify.
5856 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5857 (interrupt): Hold mutex for interrupt condition while calling
5860 * java/lang/natString.cc (init): Allocate and try to read `count'
5861 characters, not `count - offset' characters.
5863 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5864 Correctly compute `count'.
5866 * java/lang/Boolean.java (getBoolean): Return false if property
5869 * java/lang/System.java (setProperties): Set prop_init.
5871 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5873 * java/io/PrintStream.java (println): Use line.separator, not
5875 * java/lang/System.java (out, err): Make both autoflush streams.
5876 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5878 * include/config.h.in: Rebuilt.
5879 * acconfig.h (HAVE_MEMCPY): Removed.
5880 * configure: Rebuilt.
5881 * configure.in: Never define HAVE_MEMCPY.
5883 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5885 (_Jv_AllocString): Use JvAllocObject again.
5886 * java/lang/Class.h (thread): New field.
5887 (_Jv_AllocString): No longer a friend.
5888 * prims.cc (processClass): Removed dead code. Changed to more
5889 closely follow the Java Language Specification.
5890 (processClass): Return early if already at the right state.
5892 * prims.cc (JvNewStringUTF): Removed.
5893 * include/cni.h (JvNewStringUTF): New function.
5894 (_Jv_NewStringUTF): Declare as `extern "C"'.
5895 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5897 * java/lang/natDouble.cc: Added copyright info and header
5898 comment. Include <stdlib.h>.
5899 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5900 bytes as are chars in string.
5902 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5904 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5908 * java/lang/System.java (init_properties): Now native.
5909 * java/lang/natSystem.cc (init_properties): New method.
5910 Include java/util/Properties.h.
5912 * Makefile.in: Rebuilt.
5913 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5914 OutputStreamWriter.h, ByteArrayInputStream.h,
5915 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5916 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5917 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5918 Properties.h, Hashtable.h, Dictionary.h.
5921 * include/javaprims.h (java::io): Added Reader, Writer,
5922 InputStreamReader, OutputStreamWriter,
5923 UnsupportedEncodingException, ByteArrayInputStream,
5924 ByteArrayOutputStream, EOFException, SyncFailedException,
5925 PushbackInputStream.
5926 (java::lang): Added Cloneable.
5927 (java::util): Added NoSuchElementException, VectorEnumeration,
5928 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5930 * java/io/PipedReader.java: New file.
5932 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5934 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5937 * java/io/io-defs.h: Removed.
5939 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5940 (FileInputStream): Use new constructor. Can throw IOException.
5942 * java/lang/System.java (getProperty): Don't throw
5943 NullPointerException.
5945 * java/io/RandomAccessFile.java: Rewrote from scratch.
5947 * java/io/natFileDescriptor.cc: Include EOFException.h.
5949 (length): New method.
5950 (getFilePointer): New method.
5952 (available): New method.
5953 * java/io/FileDescriptor.java (SET, CUR): New constants.
5954 (seek, length, getFilePointer, read, available): New decls.
5956 * java/io/PipedWriter.java: New file.
5957 * java/io/StringWriter.java: New file.
5958 * java/io/CharArrayWriter.java: New file.
5959 * java/io/CharConversionException.java: New file.
5960 * java/io/BufferedWriter.java: New file.
5961 * java/io/FilterWriter.java: New file.
5962 * java/io/FileWriter.java: New file.
5964 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5965 OutputStreamWriter.h, NullPointerException.h,
5966 ByteArrayInputStream.h, InputStreamReader.h.
5967 (getBytes): New method.
5968 (init): Throw NullPointerException.
5969 (init): New function.
5970 * java/lang/String.java (getBytes): Added missing decl.
5971 (getBytes): New method.
5972 (String): Added byte[]-based constructors.
5973 (copyValueOf): Wrote.
5974 (init): Declare variant which takes byte array and encoding.
5975 Import java.io.UnsupportedEncodingException.
5977 * java/io/File.java: Rewrote from scratch.
5978 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5979 * java/io/FileDescriptor.java: Rewrote from scratch.
5980 * java/io/FilenameFilter.java: Rewrote from scratch.
5982 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5984 * java/io/SyncFailedException.java: New file.
5985 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5986 * java/io/InterruptedIOException.java: Rewrote from scratch.
5987 * java/io/FileNotFoundException.java: Rewrote from scratch.
5988 * java/io/EOFException.java: Rewrote from scratch.
5989 * java/io/IOException.java: Rewrote from scratch.
5990 * java/io/PrintStream.java: Rewrote from scratch.
5991 * java/io/DataOutputStream.java: Rewrote from scratch.
5992 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5993 * java/io/FilterOutputStream.java: Rewrote from scratch.
5994 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5995 * java/io/PipedOutputStream.java: Rewrote from scratch.
5996 * java/io/FileOutputStream.java: Rewrote from scratch.
5997 * java/io/OutputStream.java: Rewrote from scratch.
5998 * java/io/DataOutput.java: Rewrote from scratch.
6000 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6002 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6004 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6006 * configure.in: Add --enable-libjava-debug
6008 * Makefile.am (nat_headers): Add java/lang/Float.h and
6011 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6013 * Makefile.in, configure, include/config.h.in: Rebuilt.
6015 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6017 * java/lang/Float.java: Rewritten
6018 * java/lang/Double.java: Rewritten
6019 * java/lang/natFloat.cc: toString() added.
6020 * java/lang/natDouble.cc: toString() added.
6021 * java/lang/natDouble.cc: doubleValueOf() added.
6022 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6023 java/lang/strtod.c: added.
6024 * ieeefp.h: __sparc added.
6025 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6027 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6029 * include/javaprims.h (java::lang): Added
6030 CloneNotSupportedException.
6032 * java/lang/Object.java (clone): No longer native. Implemented.
6033 * java/lang/natObject.cc (clone): Removed.
6035 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6037 * prims.cc: Don't make definitions `extern "C"'.
6038 (_Jv_RegisterClass): Renamed from registerClass.
6039 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6040 (_Jv_NewArray): Likewise.
6041 (_Jv_NewMultiArray): Likewise.
6042 (_Jv_CheckCast): Likewise.
6043 (_Jv_LookupInterfaceMethod): Likewise.
6044 (_Jv_CheckArrayStore): Likewise.
6045 (_Jv_RegisterClass): Likewise.
6047 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6048 * configure: Rebuilt.
6049 * configure.in: Don't check for fmod; it is provided by the fdlibm
6051 * prims.cc (fmod): Removed.
6053 * java/lang/natString.cc (charAt): Use _Jv_uint.
6054 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6055 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6056 (equalUtf8Consts): Likewise.
6057 (internalAddClass): Use _Jv_uint.
6058 (processClass): Likewise.
6059 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6060 (_Jv_uint): Renamed from uint32.
6061 (struct _Jv_Utf8Const): Changed members to use new type names.
6063 * configure: Rebuilt.
6064 * configure.in: Don't check for memcpy. Require memmove and a way
6066 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6068 (currentTimeMillis): Don't use #error.
6070 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6072 * java/lang/Math.java: static member random renamed to random_ to
6073 avoid conflict with member function of the same name.
6074 * include/javaprims.h: java.util.Random added.
6076 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6078 * include/java-chartables.h: Regenerated.
6079 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6082 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6084 * java/lang/Math.java: Rewritten.
6085 * java/lang/natMath.cc: New file.
6086 * Files added from fdlibm:
6087 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6088 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6089 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6090 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6091 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6092 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6093 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6094 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6095 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6096 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6097 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6098 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6099 java/lang/k_cos.c, java/lang/sf_ceil.c,
6100 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6101 java/lang/ieeefp.h, java/lang/fdlibm.h
6102 * Makefile.am: rules added for compiling C files from fdlibm.
6104 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6106 * chartables.pl: Minor documentation fixes.
6108 * configure: Rebuilt.
6109 * configure.in: Fixed --help output for --enable-fast-character.
6111 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6113 * configure: Rebuilt.
6114 * configure.in: Recognize --enable-fast-character.
6115 * acconfig.h (COMPACT_CHARACTER): New define.
6116 * include/config.h.in: Rebuilt.
6117 * include/java-chartables.h: New file.
6118 * Makefile.in: Rebuilt.
6119 * Makefile.am (nat_files): Added natCharacter.o.
6120 * java/lang/natCharacter.cc: New file.
6121 * chartables.pl (set_attribute): New function.
6122 (@attributes, @second_attributes): New globals.
6123 ($ROMAN_START, $ROMAN_END): Likewise.
6124 (process_char): Call set_attribute when required.
6125 (print_char): Just print hex value.
6126 (print_block): Generate C++ syntax.
6127 (print_numerics): Likewise.
6128 (print_single_map): Likewise.
6129 (print_all_block): Likewise.
6130 (print_case_table): Likewise.
6131 (print_fast_tables): New function.
6132 Generate C++ code suitable for a header file.
6133 * java/lang/Character.java (table_search): Removed.
6134 (digit_value): Now native.
6135 (getNumericValue): Likewise.
6136 (getType): Likewise.
6137 Removed all automatically-generated tables.
6138 (Tamil_Digit_One): Removed.
6139 (isSpaceChar): Now native.
6140 (isTitleCase): Likewise.
6141 (isLowerCase): Likewise.
6142 (isUpperCase): Likewise.
6143 (toLowerCase): Likewise.
6144 (toTitleCase): Likewise.
6145 (toUpperCase): Likewise.
6146 (isDefined): Fixed sense of test.
6148 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6150 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6152 (regionMatches): Likewise.
6154 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6156 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6158 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6160 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6163 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6166 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6168 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6170 * prims.cc (instanceof_class): Removed.
6171 (instanceof_array): Likewise.
6172 (instanceof): Likewise.
6173 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6174 (_Jv_CheckCast): Likewise.
6175 * java/lang/natClass.cc (isAssignableFrom): New method.
6176 * java/lang/Class.java (isAssignableFrom): Now native.
6178 * include/cni.h (JvThrow): Use `extern inline'.
6179 (JvAllocObject): Likewise.
6180 (JvInitClass): Likewise.
6182 * java/lang/natSystem.cc (arraycopy): Only check class of source
6185 * prims.cc (_Jv_CheckArrayStore): Wrote.
6186 (_Jv_MonitorEnter): Prefer `JvThrow'.
6187 Include ArrayStoreException.h.
6188 (_Jv_CheckCast): Indentation cleanup.
6190 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6192 * chartables.pl: New file.
6193 * java/lang/Character.java: Rewrote from scratch.
6195 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6197 * java/lang/ArithmeticException.java,
6198 java/lang/ArrayIndexOutOfBoundsException.java,
6199 java/lang/ArrayStoreException.java,
6200 java/lang/ClassCastException.java,
6201 java/lang/ClassNotFoundException.java,
6202 java/lang/CloneNotSupportedException.java,
6203 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6204 java/lang/IllegalArgumentException.java,
6205 java/lang/IllegalMonitorStateException.java,
6206 java/lang/IllegalThreadStateException.java,
6207 java/lang/IndexOutOfBoundsException.java,
6208 java/lang/InstantiationException.java,
6209 java/lang/InterruptedException.java,
6210 java/lang/NegativeArraySizeException.java,
6211 java/lang/NoSuchMethodException.java,
6212 java/lang/NullPointerException.java,
6213 java/lang/NumberFormatException.java,
6214 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6215 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6217 * java/lang/IllegalStateException.java,
6218 java/lang/NoSuchFieldException.java,
6219 java/lang/UnsupportedOperationException.java: Created.
6221 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6223 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6224 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6226 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6228 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6230 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6232 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6234 * Makefile.in: Rebuilt.
6236 * include/javaprims.h (java::lang): Added
6237 StringIndexOutOfBoundsException.
6239 * java/lang/String.java: Added header comment and FIXME comment for
6240 missing constructors/methods.
6241 (endsWith): Adjusted offset into string to look at just the last chars.
6242 Commented out undocumented method.
6244 * java/lang/natString.cc: Added includes for
6245 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6246 (String::init): Throw StringIndexOutOfBoundsException.
6247 (String::charAt): Throw StringIndexOutOfBoundsException.
6248 (String::substring): Throw StringIndexOutOfBoundsException.
6249 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6250 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6251 (String::compareTo): Return difference/offset between chars/strings.
6253 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6255 * java/lang/Boolean.java (TYPE): Added comment.
6257 * java/lang/Byte.java (decode): Added - commented out until dependent
6258 code for Integer is written.
6259 (compareTo): JDK 1.2 methods written.
6260 (hashCode): Added comment to note that values have been verified.
6262 * java/lang/Short.java (decode): Added - commented out until dependent
6263 code for Integer is written.
6264 (compareTo): JDK 1.2 methods written.
6265 (hashCode): Added comment to note that values have been verified.
6267 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6269 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6271 * include/javaprims.h (java::lang): Added VirtualMachineError,
6273 * Makefile.in: Rebuilt.
6274 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6275 VirtualMachineError.h.
6276 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6277 (lookupArray): Likewise.
6278 (makeUtf8Const): Likewise.
6279 (_Jv_AllocObject): Likewise.
6280 (_Jv_NewObjectArray): Likewise.
6281 Include OutOfMemoryError.h.
6283 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6284 to use JvNewStringLatin1.
6286 * java/io/io-defs.h: Include java/lang/IOException.h.
6287 * Makefile.in: Rebuilt.
6288 * Makefile.am (nat_headers): Added
6289 ArrayIndexOutOfBoundsException.h,
6290 ClassFormatError.h,ClassNotFoundException.h,
6291 ClassCircularityError.h, ClassCastException.h,
6292 IncompatibleClassChangeError.h, AbstractMethodError.h,
6293 IllegalAccessError.h, LinkageError.h, Error.h,
6294 NegativeArraySizeException.h, IOException.h.
6295 * include/cni.h (SignalError): Removed declaration.
6296 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6297 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6298 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6299 (newInstance): Likewise.
6300 (forName): Likewise.
6301 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6303 (read): Use JvThrow, not SignalError.
6308 (open_read): Likewise.
6309 (open_write): Likewise.
6312 (newstr): New function.
6313 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6315 (lastModifiedUnchecked): Likewise.
6316 (lengthUnchecked): Likewise.
6317 * include/javaprims.h (sorry): Removed declaration.
6318 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6319 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6320 ClassCastException, IncompatibleClassChangeError,
6321 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6322 * prims.cc (instanceof_array): Use JvFail, not sorry.
6324 Include ArrayIndexOutOfBoundsException.h,
6325 ClassFormatError.h,ClassNotFoundException.h,
6326 ClassCircularityError.h, ClassCastException.h,
6327 IncompatibleClassChangeError.h, AbstractMethodError.h,
6328 IllegalAccessError.h, NegativeArraySizeException.h.
6329 (_Jv_ThrowBadArrayIndex): Implemented.
6330 (JvNewStringUTF): Use JvFail, not sorry.
6331 (_Jv_FindClass): Likewise.
6332 (_Jv_NewArray): Likewise.
6333 (throwException): Removed.
6334 (getClass): Use JvThrow.
6335 (processClass): Likewise.
6336 (_Jv_NewObjectArray): Likewise.
6337 (_Jv_NewMultiArray): Likewise.
6338 (_Jv_CheckCast): Likewise.
6339 (_Jv_LookupInterfaceMethod): Likewise.
6340 (SignalError): Removed.
6341 (getClass): Use _Jv_NewStringUtf8Const to create String.
6343 * java/lang/natSystem.cc (arraycopy): Throw
6344 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6346 * Makefile.in: Rebuilt.
6347 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6349 * include/java-array.h: Mention gcjh, not gjavah.
6351 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6352 (canReadUnchecked): Likewise.
6353 (canWriteUnchecked): Likewise.
6354 (isFileUnchecked): Likewise.
6355 * java/io/natFileDescriptor.cc: Don't include cni.h.
6357 * java/lang/Thread.java (run__): Declare.
6358 * java/lang/natThread.cc (run__): New method, to avoid compiler
6360 (start): Use run__, not run_.
6362 * java/io/io-defs.h: Include cni.h and jvm.h.
6364 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6366 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6367 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6368 to natString.cc (with suitable renaming, inlines etc).
6369 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6370 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6371 * java/lang/String.h: Removed - now generated using gjavah.
6372 * java/lang/String.java: Re-written from scratch. Many native methods.
6373 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6374 * java/lang/natString.cc: Many functions re-written for "compact
6375 strings" representation, or native java.lang.String methods added.
6376 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6377 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6378 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6379 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6380 * include/cni.h: Add inline method.
6381 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6382 * include/javaprims.h: Moved some stuff frm String.h.
6383 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6384 * Makefile.am (nat_header): Added Character.h and String.h.
6385 (String.h): Add new rule.
6387 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6389 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6391 * posix-threads.cc: Include cni.h, jvm.h.
6392 * quick-threads.cc: Include cni.h, jvm.h.
6393 * nogc.cc: Include cni.h, not javaprims.h.
6394 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6395 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6396 include java-assert.h.
6397 * java/lang/natSystem.cc: Include cni.h. Don't include
6399 * java/lang/natRuntime.cc: Include cni.h. Don't include
6401 * prims.cc: Rearranged #include ordering. Don't include
6402 java-array.h or java-assert.h.
6403 * boehm.cc: Include config.h, cni.h.
6404 * exception.cc: Include config.h, cni.h.
6405 * include/jvm.h: Include java-assert.h.
6406 * include/cni.h: Include java/lang/Object.h. Don't include
6407 java-threads.h or java-array.h.
6409 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6411 * java/lang/Boolean.java: Rewritten.
6413 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6415 * java/lang/natFirstThread.cc (main_func): New typedef.
6416 (run): Use main_func, not JvPrivThreadStartFunc.
6417 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6419 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6421 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6424 Can't throw Java exceptions with C++ `throw':
6425 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6426 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6427 (setPriority): Likewise.
6431 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6432 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6434 Can't catch Java exceptions from C++:
6435 * java/lang/natThread.cc (finish_): New method.
6437 * java/lang/Thread.java (run_): Rewrote in Java.
6438 (finish_): New native method.
6440 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6442 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6444 * include/javaprims.h (java::io): Added Serializable.
6446 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6448 * java/util/EmptyStackException.java,
6449 java/util/NoSuchElementException.java: Rewritten.
6451 * java/util/ConcurrentModificationException.java,
6452 java/util/MissingResourceException.java,
6453 java/util/TooManyListenersException.java: Created.
6455 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6457 * include/cni.h (JvThrow): New function.
6458 * include/javaprims.h (_Jv_Throw): Declare.
6460 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6462 * java/util/Observable.java: Rewritten.
6464 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6466 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6467 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6468 Include NullPointerException.h.
6470 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6472 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6473 assignability checks. Don't bother using memcpy.
6475 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6477 * include/quick-threads.h (JvPrivThreadWait): New function.
6478 * include/no-threads.h (JvPrivThreadWait): New function.
6479 * include/posix-threads.h (JvPrivThreadWait): New function.
6480 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6482 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6484 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6485 offsets by size of type that is being copied.
6487 * java/lang/natThread.cc (start): Don't pass `object' argument to
6489 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6490 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6492 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6493 always pass thread as object.
6494 * include/quick-threads.h, include/posix-threads.h,
6495 include/no-threads.h (JvPrivThreadStart): Removed `object'
6498 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6500 * java/util/Dictionary.java: Rewritten.
6502 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6504 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6505 (JvPrivThreadDestroy): Likewise.
6507 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6509 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6511 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6513 * java/lang/natSystem.cc: Rewrote from scratch.
6514 * java/lang/System.java: Rewrote from scratch.
6515 * java/lang/Class.h (Class): Declare isAssignableFrom.
6516 * include/javaprims.h (java::lang): Added ArrayStoreException,
6517 IndexOutOfBoundsException.
6518 * Makefile.in: Rebuilt.
6519 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6520 IndexOutOfBoundsException.h.
6521 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6522 * include/jvm.h (_Jv_HashCode): New function.
6524 * java/lang/natThread.cc (suspend): Call checkAccess.
6526 * java/lang/Thread.java (setDaemon): Call checkAccess.
6528 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6530 * java/lang/Runtime.java: Rewrote from scratch.
6531 * java/lang/natRuntime.cc: Rewrote from scratch.
6533 * nogc.cc (JvPrivGCTotalMemory): New function.
6534 (JvPrivGCFreeMemory): Likewise.
6535 (total): New global.
6536 (JvPrivAllocObj): Increment total.
6537 (JvPrivAllocArray): Likewise.
6538 (JvPrivAllocBytes): Likewise.
6539 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6540 * boehm.cc (JvPrivGCTotalMemory): New function.
6541 (sum_blocks): Likewise.
6542 (JvPrivGCFreeMemory): Likewise.
6544 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6546 * include/javaprims.h (java::lang): Added FirstThread.
6547 * java/lang/natFirstThread.cc: New file.
6548 * java/lang/FirstThread.java: New file.
6549 * prims.cc (main_signature): Removed.
6550 (main_name): Removed.
6551 #include FirstThread.h.
6552 * Makefile.in: Rebuilt.
6553 * Makefile.am (TFRIEND): Removed.
6554 (java/lang/Thread.h): Likewise.
6555 (FTFRIEND): New macro.
6556 (java/lang/FirstThread.h): New target.
6557 (nat_files): Added natFirstThread.o.
6558 (nat_headers): Added FirstThread.h.
6559 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6560 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6562 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6566 * java/lang/natThread.cc (start): Synchronize the thread.
6567 (stop): Synchronize the thread.
6569 * java/lang/ThreadDeath.java: Rewrote from scratch.
6571 * Makefile.in: Rebuilt.
6572 * Makefile.am (TGFRIEND): New macro.
6573 (java/lang/ThreadGroup.h): New target.
6574 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6576 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6578 * nogc.cc: Include config.h.
6580 * java/lang/ThreadGroup.java: Rewrote from scratch.
6582 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6584 * java/lang/Thread.java (checkAccess): Only call in to security
6585 manager if it exists.
6586 (Thread): Don't check access when creating the first thread. Add
6587 this thread to the appropriate ThreadGroup.
6589 * java/lang/natThread.cc (run_): Call uncaughtException method on
6592 * java/lang/Runnable.java: Rewrote from scratch.
6593 * java/lang/Thread.java: Updated copyright comment to correct
6596 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6598 * java/util/Random.java: Rewritten.
6600 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6602 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6603 trailing 0 in array[].
6605 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6607 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6608 and RUNTESTFLAGS from AM_MAKEFLAGS.
6609 (SUBDIRS): Conditionally include testsuite.
6610 * Makefile.in: Rebuilt.
6612 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6614 * java/lang/Object.h: Include java-assert.h.
6616 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6618 * Makefile.am: Add testsuite directory.
6619 * configure.in: Build testsuite/Makefile.
6620 * Makefile.in, configure: Rebuilt.
6622 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6624 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6625 * include/jvm.h (_Jv_StartFirstThread): Declare.
6627 * include/javaprims.h (java::lang): Added Exception,
6630 * Makefile.in: Rebuilt.
6631 * Makefile.am (nat_headers): Added NullPointerException.h,
6632 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6633 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6634 (java/lang/Thread.h): New target.
6635 (TFRIEND): New macro
6637 * include/java-assert.h (JvFail): Use 0 and not NULL.
6639 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6640 instead of assuming we are a friend of Thread.
6641 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6642 instead of assuming we are a friend of Thread.
6644 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6646 * java/lang/natThread.cc: Rewrote from scratch.
6647 * java/lang/Thread.java: Rewrote from scratch.
6648 * prims.cc (JvRunMain): Use new Thread constructor.
6649 * include/javaprims.h (java::lang): Added InterruptedException.
6650 * Makefile.in: Rebuilt.
6651 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6652 * java/lang/Thread.h: Removed.
6653 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6654 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6656 * posix-threads.cc (JvPrivThreadJoin): Removed.
6657 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6658 (really_start): Don't notify join_cond.
6659 (JvPrivThreadStart): Added `data' argument.
6660 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6661 (JvPrivThreadJoin): Likewise.
6662 Use JvFail instead of sorry.
6663 (JvPrivThreadSuspend): Removed.
6664 (JvPrivThreadResume): Removed.
6665 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6666 (JvPrivThreadJoin): Likewise.
6667 (JvPrivThreadSuspend): Use JvFail.
6668 (JvPrivThreadResume): Likewise.
6669 (JvPrivThreadSuspend): Removed.
6670 (JvPrivThreadResume): Likewise.
6671 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6672 (JvPrivThread_t): Removed join_mutex, join_cond.
6673 Use JvFail instead of sorry.
6674 (JvPrivThreadSuspend): Removed.
6675 (JvPrivThreadResume): Likewise.
6677 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6679 * java/util/Observer.java: Rewritten
6680 * java/util/Enumeration.java: Rewritten
6682 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6684 * java/util/StringTokenizer.java: Rewritten
6685 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6686 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6687 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6689 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6691 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6694 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6695 Include java-assert.h.
6696 * include/java-assert.h: New file.
6697 * prims.cc (_Jv_Abort): New function.
6698 Include java-assert.h, not assert.h.
6699 (_Jv_MonitorExit): Use JvAssert.
6700 (resolveConstants): Likewise.
6701 (processClass): Likewise.
6702 (JvRunMain): Assert that method is found.
6704 * configure: Rebuilt.
6705 * configure.in: Check for test subdir.
6706 * Makefile.in: Rebuilt.
6707 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6709 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6710 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6712 * prims.cc (resolveConstants): Removed unused variables.
6713 (processClass): Likewise.
6715 * include/quick-threads.h (JvPrivThreadCurrent): Use
6717 * quick-threads.cc (destroy_data): New function.
6718 (JvPrivInitThreads): Create key.
6719 (JvPrivThreadKey): New global.
6720 (JvPrivThreadStart): Use coop_setspecific.
6722 * include/quick-threads.h, include/posix-threads.h,
6723 include/no-threads.h, no-threads.cc, quick-threads.cc,
6724 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6726 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6728 * include/no-threads.h (JvPrivThreadInitData): Don't set
6731 * include/quick-threads.h (JvPrivCondWait): coop function now
6733 (JvPrivThreadJoin): Likewise.
6735 * java/lang/Thread.h (Thread): Updated declaration of
6737 * include/quick-threads.h, include/posix-threads.h: Updated
6738 declaration of JvPrivThreadStart.
6739 * include/no-threads.h (JvPrivThreadStart): Changed definition
6741 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6742 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6743 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6745 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6747 * quick-threads.cc (qthrow): New function.
6748 (JvPrivInitThreads): New function.
6749 (started): New global.
6750 (JvPrivThreadStart): Call coop_start if required.
6751 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6752 (JvPrivThreadDestroy): Likewise.
6753 (JvPrivInitThreads): Removed.
6754 * include/posix-threads.h (JvPrivThreadCancel): Added error
6756 * java/lang/natThread.cc (stop_): Pass exception to
6759 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6761 * include/javaprims.h (java::lang): Added
6762 IllegalArgumentException, IllegalThreadStateException, Math,
6763 NullPointerException, ThreadDeath.
6764 (java::util): Added Enumeration.
6766 * Makefile.in: Rebuilt.
6767 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6769 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6771 (threadsv): Renamed from threads to avoid clash in C++ header.
6772 (groupsv): Likewise.
6773 * include/no-threads.h (JvPrivThreadStart): Removed.
6774 * no-threads.cc (JvPrivThreadStart): New function.
6775 * java/lang/Thread.java (Thread): New constructor for internal use.
6776 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6777 (Thread): Declare constructor.
6778 * prims.cc (JvRunMain): Create the initial Thread and
6780 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6781 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6782 Removed `daemon' argument.
6784 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6785 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6787 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6789 * Makefile.in: Rebuilt.
6790 * Makefile.am (INCLUDES): Include THREADINCS.
6792 * configure: Rebuilt.
6793 * configure.in: Recognize `qt' as a threads package.
6795 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6797 * java/util/Stack.java (pop): Null out topmost node for robustness.
6799 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6801 * java/util/Stack.java: Rewritten.
6802 * java/util/Vector.java (isEmpty): Simplified expression.
6804 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6806 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6807 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6809 * include/java-array.h (JvNewObjectArray): Created inline to
6812 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6815 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6817 * java/util/Vector.java: Rewritten.
6818 * java/io/Serializable.java: Created.
6820 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6822 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6823 Infinity is 1/0, not 1/1.
6825 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6827 * configure: Rebuilt.
6828 * configure.in: Removed duplicate AC_ARG_WITH.
6830 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6832 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6834 (_Jv_InitClass): Renamed from soft_initialise_class.
6835 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6836 (_Jv_CheckCast): Renamed from soft_checkcast.
6837 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6838 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6839 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6840 * include/cni.h (JvInitClass): New function.
6841 (_Jv_InitClass): Renamed from soft_initialise_class.
6843 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6845 * configure: Rebuilt.
6846 * configure.in (CXX): Don't set.
6847 * Makefile.in: Rebuilt.
6848 * Makefile.am (AM_CXXFLAGS): New macro.
6850 * Makefile.in: Rebuilt.
6851 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6852 nogc.o): New target.
6854 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6856 (mark_array): Likewise.
6858 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6860 * java/lang/Class.h (JvMethod): Removed some unused fields.
6861 (JvField.info): Removed unused idx union variant.
6863 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6865 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6868 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6870 * configure.in, configure (CXX): Add -fvtable-thunks.
6872 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6874 * java/lang/Object.java (finalize): Move first.
6875 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6876 (Object): Re-arrange order to match Object.java.
6878 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6880 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6881 * java/lang/natString.cc (hashChars): Likewise.
6883 * prims.cc (RuntimeClass): New macro.
6884 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6886 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6888 * Makefile.in: Rebuilt.
6889 * Makefile.am (AM_MAKEFLAGS): New macro.
6891 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6893 * nogc.cc: Include <javaprims.h>.
6895 * Makefile.in: Rebuilt.
6896 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6898 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6900 * exception.cc (terminate): Removed.
6901 (unexpected): Removed.
6903 * configure: Rebuilt.
6904 * configure.in: Handle case where target subdir is ".".
6906 * configure: Rebuilt.
6907 * configure.in: Compute COMPPATH based on --with-target-subdir
6908 option. Added --with-target-subdir and --with-cross-host. Use
6909 --with-cross-host to determine when a cross compiler is in use.
6911 * Makefile.in: Rebuilt.
6912 * Makefile.am (GJAVAH): Include COMPPATH.
6913 * configure: Rebuilt.
6914 * configure.in: Subst COMPPATH.
6916 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6918 * prims.cc (lockMutex): Removed.
6919 (unlockMutex): Likewise.
6920 (processClass): Lock the class using a JvSynchronize object.
6922 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6924 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6925 (gc_free_fixed): Removed.
6926 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6927 freeing old value of strhash.
6929 * exception.cc (_Jv_type_matcher): Cast first argument to
6932 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6934 * include/java-array.h (jstringArray): New type.
6935 * java/lang/natSystem.cc (setProperty): Removed.
6936 (initProperties): Directly call JvNewStringLatin1 for arguments.
6937 * java/util/natDate.cc: Include java/util/Date.h, not
6940 * java/io/FileDescriptor.java (available): No longer static.
6941 * java/lang/natDouble.cc (Double): Removed class definition.
6942 * include/javaprims.h (java::lang::Number): Declare.
6943 (java::lang::NumberFormatException): Likewise.
6944 (java::io::FilenameFilter): Likewise.
6945 (java::lang::Character): Likewise.
6946 (java::lang::Error): Likewise.
6947 (java::lang::SecurityManager): Likewise.
6948 (java::util::Vector): Likewise.
6949 (java::io::FileNotFoundException): Likewise.
6950 (java::io::IOException): Likewise.
6951 (java::lang::NativeLang): Likewise.
6952 (java::lang::UnsatisfiedLinkError): Likewise.
6953 (java::util::StringTokenizer): Likewise.
6954 (java::io::InputStream, java::io::OutputStream): Likewise.
6955 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6956 (java::util::Hashtable): Likewise.
6957 * Makefile.in: Rebuilt.
6958 * Makefile.am (nat_headers): Added java/lang/Double.h,
6959 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6960 (MOSTLYCLEANFILES): Added nat_headers.
6961 * include/jvm.h: Moved many defines, declarations, and functions
6962 to java/lang/Class.h.
6963 (struct JvSyncInfo): Moved to java/lang/Object.h.
6964 (UTF8_GET): Moved to java/lang/String.h.
6966 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6968 * java/io/io-defs.h: Don't include java-io.h.
6969 * include/java-io.h: Removed.
6970 * include/javaprims.h: Include java::io.
6972 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6974 * include/java-io.h (File): Removed
6975 (FileDescriptor): Likewise.
6977 * java/io/io-defs.h: Include java/io/File.h and
6978 java/io/FileDescriptor.h.
6980 * Makefile.in: Rebuilt.
6981 * Makefile.am (GJAVAH): New macro.
6982 (.class.h): New rule.
6983 (SUFFIXES): Added .h.
6984 (nat_headers): New macro.
6985 ($(nat_headers)): New target.
6986 (BUILT_SOURCES): Added nat_headers.
6988 * include/java-util.h: Removed.
6990 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6992 * include/java-io.h: Changed to avoid java-lang.h.
6993 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6995 * java/lang/natSystem.cc: Include java/lang/System.h, not
6997 * java/lang/natString.cc: Include java/lang/String.h, not
6999 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7001 * java/lang/natClass.cc: Include java/lang/Class.h, not
7003 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7005 * java/lang/natObject.cc: Include java/lang/Object.h, not
7007 * exception.cc: Don't include java-lang.h.
7008 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7009 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7010 * nogc.cc: Don't include java-lang.h.
7011 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7012 * prims.cc (processClass): Don't use `init_type'; just cast to
7014 Include java/lang/Class.h and jvm.h, not java-lang.h.
7015 (JvAllocObject): Wrote single-argument version.
7016 (PrimClass): Inherit from Class.
7017 (initPrimClass): Removed.
7018 * include/java-lang.h: Removed.
7019 * include/jvm.h: Declare struct _dispatchTable.
7020 * include/cni.h: Don't declare _Jv_MonitorEnter,
7021 _Jv_MonitorExit, struct _dispatchTable.
7022 * include/javaprims.h: Moved all typedefs here, from cni.h.
7023 * java/lang/Class.h: New file.
7024 * include/java-array.h: New file.
7025 * java/lang/Object.h: New file.
7027 * prims.cc (classFromSig): Now static.
7029 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7031 * include/cni.h: Don't mention soft_new.
7032 * include/java-lang.h (Object): Don't mention soft_new. Mention
7033 _Jv_NewPrimArray, not newPrimArray.
7034 * prims.cc (soft_new): Removed.
7035 (_Jv_NewArray): Renamed from soft_newarray.
7036 (soft_anewarray): Use JvNewObjectArray.
7037 (newArray): Likewise.
7038 (newRefArray): Removed.
7039 (_Jv_NewPrimArray): Renamed from newPrimArray.
7040 (equalUtf8Consts): Now static.
7041 (soft_instanceof): Removed.
7042 * java/lang/natDouble.cc (doubleToString): Now static.
7044 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7045 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7048 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7050 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7052 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7054 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7055 (JvPrivMutexUnlock): Likewise.
7056 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7057 Return value now jint.
7058 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7061 * Makefile.in: Rebuilt.
7062 * Makefile.am: Don't allow `jV' names.
7063 (maintainer-check): Depend on libjava.a.
7064 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7066 * Makefile.in: Rebuilt.
7067 * Makefile.am (NM): New macro.
7068 (maintainer-check): New target.
7070 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7072 * configure: Rebuilt.
7073 * configure.in: Use --enable-threads, not --enable-gc. Fix
7074 documentation for --enable-threads. Changed option to work like
7075 identical option in gcc/configure.
7077 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7079 * boehm.cc (mark_array): Use JvGetArrayLength.
7081 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7083 * exception.cc: New file (mostly written by Andrew MacLeod),
7084 exception handling support.
7085 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7086 Remove -fexceptions - it is now the default.
7088 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7089 (JvAllocObject): Renamed to _Jv_AllocObject.
7090 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7091 (loadClass): Renamed to _Jv_FindClass.
7092 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7093 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7094 * include/java-lang.h (JvGetArrayLength): New CNI function.
7095 * include/jvm.h (_Jv_FindClass): Added declaration.
7097 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7099 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7101 * java/lang/natClass.cc (getName): Add implementation.
7102 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7104 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7106 * Makefile.in: Rebuilt.
7107 * Makefile.am (.class.o): Added -fexceptions.
7109 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7111 * configure: Rebuilt.
7112 * configure.in: Don't check for __nanosleep.
7113 * posix-threads.cc (nanosleep): Never define.
7115 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7117 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7120 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7122 * java/lang/natThread.cc (enumerate): Uncommented.
7123 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7124 (interrupt): Call it.
7126 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7128 * configure: Rebuilt.
7129 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7131 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7133 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7134 * include/java-lang.h (Thread): Added `interrupted_' method.
7135 * java/lang/Thread.java (interrupted_): New method.
7136 * java/lang/natThread.cc (join): Possibly throw interrupted
7137 exception after join finishes.
7138 (interrupted_): New method.
7139 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7141 (JvPrivThreadJoin): New function.
7142 (really_start): Notify all threads waiting for this thread.
7143 (struct starter): Added `data' member.
7144 (JvPrivThreadStart): Set it.
7145 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7147 (JvPrivThreadJoin): No longer inline.
7148 (JvPrivThreadInterrupt): New function.
7150 * include/no-threads.h (JvPrivThreadSleep): Removed.
7151 * posix-threads.cc (JvPrivThreadSleep): Removed.
7153 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7155 * configure: Rebuilt.
7156 * configure.in (THREADOBJS): Initialize to no-threads.o in
7158 * posix-threads.cc (key): New global.
7159 (JvPrivInitThreads): New function.
7160 (really_start): Set thread-specific data to point to object.
7161 (JvPrivThreadStart): Added `daemon' argument.
7162 (JvPrivThreadSleep): Added `data' argument.
7163 * include/posix-threads.h (JvPrivInitThreads): Removed
7165 (JvPrivThreadCurrent): New function.
7166 * include/no-threads.h (JvPrivThreadInitData): Initialize
7167 JvPrivOnlyThread. Added `thread' argument.
7168 (JvPrivThreadCurrent): New function.
7169 (JvPrivThreadStart): Added `daemon' argument.
7170 * no-threads.cc: New file.
7171 * java/lang/natThread.cc (init_data): New function.
7173 (start): Set `alive' member.
7174 (stop_): Clear `alive' member.
7175 (destroy): Likewise.
7176 (currentThread): Implemented.
7177 (start): Pass `daemon' argument to JvPrivThreadStart.
7179 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7180 (Thread): Added `init_data' method.
7181 * java/lang/Thread.java (alive, data): New instance variables.
7182 (init_data): New private method.
7183 (isAlive): No longer native.
7185 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7187 * include/java-lang.h (JvRunMain): Declare.
7188 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7189 * prims.cc (JvRunMain): New function.
7190 (main_signature, main_name): New globals.
7192 * boehm.cc (mark_array): Use `elements' function and not
7193 operator[] on jarray.
7195 * posix-threads.cc: Include <config.h>. Define nanosleep if
7198 * configure: Rebuilt.
7199 * configure.in: Check for _nanosleep.
7201 * configure: Rebuilt.
7202 * configure.in: Check for pthread_mutexattr_settype.
7204 * include/cni.h (class JvSynchronize): New class.
7205 * java/lang/Thread.java (sleep): Throws InterruptedException.
7206 (join): Throws InterruptedException.
7207 (resume): Not native.
7208 (resume_): New method.
7209 (start): Now synchronized.
7210 (stop_): New method.
7211 (Thread): Synchronize when accessing threadNumber.
7213 * java/lang/natThread.cc (throwException): New macro.
7214 (sleep): Throw InterruptedException.
7217 * include/java-lang.h (Runtime): Added interrupted().
7219 * boehm.cc (call_finalizer): Correctly initialize jobj.
7220 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7222 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7225 * configure: Rebuilt.
7226 * configure.in: Added support for --disable-threads.
7227 * include/no-threads.h: New file.
7229 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7231 * Makefile.in: Rebuilt.
7232 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7233 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7234 (libjava_a_LIBADD): Added THREADOBJS.
7235 * configure: Rebuilt.
7236 * configure.in: Added --with-threads option.
7237 * posix-threads.cc: New file.
7238 * include/posix-threads.h: New file.
7239 * include/java-lang.h (Object): Added static member sync_mutex,
7240 member sync_info, method init_mutex.
7241 (struct JvSyncInfo): New struct.
7242 Include "java-threads.h".
7243 * prims.cc (soft_monitorenter): Wrote.
7244 (soft_monitorexit): Likewise.
7245 * java/lang/natObject.cc (init_mutex): New method.
7249 (sync_mutex): Define.
7250 Include "java-threads.h".
7252 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7254 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7255 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7257 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7259 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7260 Added extern "Java" in places to tell G++ Object is a "Java" type.
7261 Other minor renaming and fixes.
7262 * include/java-io.h (FileDescriptor): Add friend class declarations.
7263 G++ no longer allows non-Java types in method parameters and results
7264 of Java classes. Converted most offending methods to friends.
7265 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7266 * java/lang/natSystem.cc (setProperty): Make friend.
7267 * java/lang/natString.cc, include/java-lang.h (String): Rename
7268 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7269 * include/java-lang.h (JArray): Remove getData and eoprator[].
7270 Add elements friend function instead.
7271 * java/lang/natSystem.cc (arraycopy): Use elements function.
7272 * java/io/natFileDescriptor.cc (read, write): Likewise.
7273 * include/java-lang.h (Object): Remove unused make method.
7274 (System::setProperty(char*,char*)): Turn into friend function.
7275 (Class): Rename newObject by JvAllocObject.
7276 * prims.cc: Update to use JvAllocObject, and elements.
7278 * java/lang/natDouble.cc: Fix double -> jdouble.
7280 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7282 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7284 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7286 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7287 * include/java-lang.h (Runtime): finalize_on_exit and
7288 runFinalizersOnExit now static.
7289 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7291 (finalize_on_exit): Now static.
7293 * boehm.cc (mark_obj): Get class using getClass() method on
7295 (_dispatchTable): Removed.
7297 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7299 * java/io/natFileDescriptor.cc (open_read): Only call open if
7301 (open_write): Likewise.
7303 * Makefile.in: Rebuilt.
7304 * Makefile.am ($(nat_files)): Depend on config.h.
7306 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7308 * prims.cc (ObjectClass): Now a macro; updated for new class name
7310 (StringClass): Likewise.
7311 (ClassClass): Likewise.
7313 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7315 * java/io/natFileDescriptor.cc (available): Do nothing unless
7316 HAVE_SELECT defined.
7317 * java/util/natDate.cc (setTime): Conditional on
7319 (toString): Conditional on HAVE_TIME.
7320 * aclocal.m4, configure: Rebuilt.
7321 * acinclude.m4: New file.
7322 * configure.in: Don't actually call AM_EXEEXT. Call
7323 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7324 --with-target-subdir option. Check for select and open
7327 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7329 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7330 (call_finalizer): Likewise.
7331 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7332 * prims.cc (newObject): Pass actual method pointer to
7333 JvPrivRegisterFinalizer.
7334 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7335 (JvPrivRegisterFinalizer): Changed interface.
7337 * Makefile.in: Rebuilt.
7338 * Makefile.am (MOSTLYCLEANFILES): New macro.
7339 (CLEANFILES): Removed javao_files.
7341 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7343 * nogc.cc: New file.
7344 * Makefile.in: Rebuilt.
7345 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7346 (EXTRA_libjava_a_SOURCES): New macro.
7347 (libjava_a_SOURCES): Removed boehm.cc.
7348 (libjava_a_DEPENDENCIES): Added GCOBJS.
7349 (libjava_a_LIBADD): Likewise.
7350 * configure: Rebuilt.
7351 * configure.in: Added code for --enable-gc=TYPE.
7353 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7355 * boehm.cc (mark_array): Don't further dereference pointer from
7358 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7359 * Makefile.in: Rebuilt.
7360 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7361 one for boehm-gc build directory.
7363 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7365 * include/java-lang.h (finalize_on_exit): New instance variable in
7366 java::lang::Runtime.
7367 (runFinalizersOnExit): New method.
7368 * java/lang/Runtime.java (finalize_on_exit): New instance
7370 (runAllFinalizers_): New private method.
7371 (runFinalizersOnExit): New method.
7372 * boehm.cc (JvPrivRunFinalizers): New function.
7373 (JvPrivRunAllFinalizers): Likewise.
7374 (JvPrivRunGC): Likewise.
7375 * java/lang/natRuntime.cc: Include "jvm.h".
7376 (gc): Call JvPrivRunGC.
7377 (runFinalization): Call JvPrivRunFinalizers.
7378 (runFinalizersOnExit): New method.
7379 (exit_): Call JvPrivRunAllFinalizers if required.
7380 * include/jvm.h: Declare JvPrivRunFinalizers,
7381 JvPrivRunAllFinalizers, JvPrivRunGC.
7383 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7385 * boehm.cc (JvPrivRegisterFinalizer): New function.
7386 (call_finalizer): Likewise.
7387 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7388 * prims.cc (finalize_name): New global.
7389 (newObject): Just call other newObject.
7390 (newObject): Register finalizer if it exists.
7392 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7394 * prims.cc (gc_malloc): Removed.
7395 (makeUtf8Const): Use JvPrivAllocBytes.
7396 (lookupArray): Likewise.
7397 (newPrimArray): Likewise.
7398 (JvNewObjectArray): Use JvPrivAllocArray.
7399 (newObject): Use JvPrivAllocObj.
7400 (newObject): Likewise.
7401 Changed Method -> JvMethod everywhere.
7402 Changed Field -> JvField everywhere.
7403 * include/java-lang.h (Object): Changed type of `fields' to
7405 (jmethodID, jfieldID): New typedefs.
7406 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7408 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7410 (METHOD_NATIVECODE): Moved from java-lang.h.
7411 (class JvField): New class.
7412 (JvGetFirstInstanceField): New function.
7413 (JvFieldIsRef): Likewise.
7414 (JvGetObjectField): Likewise.
7415 (JvNumInstanceFields): Likewise.
7417 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7419 * boehm.cc: New file.
7420 * Makefile.in: Rebuilt.
7421 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7422 (INCLUDES): Added -I options to find boehm-gc files.
7424 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7426 * configure: Rebuilt.
7427 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7429 * Makefile.in: Rebuilt.
7430 * Makefile.am (nat_files): New macro.
7431 (libjava_a_DEPENDENCIES): Use it.
7432 (libjava_a_LIBADD): Likewise.
7433 ($(nat_files)): New static pattern rule.
7434 (class_files): Run separate find to find .class files.
7435 (javao_files): Compute based on class_files.
7436 (BUILT_SOURCES): New macro.
7438 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7440 * Makefile.am (java_files): New macro.
7441 (class_files): Likewise.
7442 (javao_files): Likewise.
7443 (libjava_a_DEPENDENCIES): Include $(javao_files).
7444 (libjava_a_LIBADD): Likewise.
7445 (classes.stamp): Depend on $(java_files); only recompile changed
7448 (CLEANFILES): Don't run find; use macros. Don't mention
7450 (.class.o): New target.
7451 (compiled.stamp): Removed.
7453 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7455 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7456 LineNumberReader}>java: Newly-implemented standard classes.
7458 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7460 * Makefile.in: Rebuilt.
7461 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7463 * Makefile.in: Rebuilt.
7464 * Makefile.am (hack): New macro.
7465 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7467 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7469 * include/config.h.in: New file.
7470 * include/config.h: Removed.
7471 * acconfig.h: New file.
7472 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7473 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7474 libjava_a_LIBADD): New macros.
7475 (INCLUDES): New macro.
7478 (SUFFIXES): Removed.
7480 (libjava.a): Removed.
7482 * configure: Rebuilt.
7483 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7484 Look for headers and functions we require. Create
7487 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7489 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7490 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7491 soft_lookupinterfacemethod): New functions.
7492 (PrimClass): Actually initialize the primitive classes.
7493 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7495 * include/java-util.h: Removed java::util definition.
7496 * include/cni.h: Moved java::util here and added Properties.
7497 Added more function prototypes.
7498 * include/java-lang.h: Added mroe methods and friend declarations.
7499 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7500 * include/jvm.h (strLengthUtf8): Add declaration.
7502 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7504 * java/lang/{Byte,Short,Void}.java: New classes.
7505 * java/lang/Character.java (isJavaIdentifierStart,
7506 JavaIdentifierPart): New static methods.
7507 * java/lang/Number.java (byteValue, shortValue): New methods.
7509 * java/lang/String.java (intern, hashCode): Make native.
7510 * java/lang/natString.cc: New file. Handle the string pool.
7511 * Makefile.am: Build natString.o. Use CXXFLAGS.
7513 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7514 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7515 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7516 * java/lang/System.java (setProperty): New private method.
7517 (initProperties): Take argument, and make native.
7518 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7519 (currentTimeMillis): Make more robust.
7521 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7522 * java/io/UnsupportedEncodingException.java: New exception class.
7524 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7525 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7527 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7529 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7530 * prims.cc: Added bunch of stuff.
7531 * include/cni.h: Added various definitions.
7532 * include/java-lang.h: Added Method, various friends, some macros.
7534 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7535 * java/lang/System.java (arraycopy): Make native.
7537 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7539 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7540 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7541 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7542 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7544 * java/lang/Runtime.java: Declare methods as native instead of
7546 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7547 * java/lang/System.java: Comment out some stuff, for now.
7548 * java/lang/Thread.java: Re-write. Use native methods.
7549 * java/lang/NativeLang.java: Remove most of it.
7551 * java/util/natDate.cc: Native (C++) methods for Date.
7552 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7553 * java/util/Date.java: Complete re-write.
7555 * java/io/io-defs.h: New header file.
7556 * java/io/FileDescriptor.java: Add a bunch of private methods,
7557 mostly moved from NativeIO.java and natNativeIO.cc.
7558 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7559 * java/io/File.java: Use new code.
7560 * java/io/{FileInputStream.java.FileOutputStream.java,
7561 RandomAccessFile.java}: Use new private FileDescriptor methods.
7562 * java/io/NativeIO.java: Removed, no longer used.
7564 * java/io/StreamTokenizer.java (numericChars): Make char array.
7566 * include/*.h: Various header files used by the C++ native code.
7568 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7569 New autoconf+automake-based setup.
7570 * prims.cc: New file for Java "primitives".