OSDN Git Service

* include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2000-02-10  Tom Tromey  <tromey@cygnus.com>
2
3         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
4         (jboolean): Declare as an attributed int, not a bool.
5         (_Jv_func): Declare differently for C.
6
7         * gnu/gcj/jni/natNativeThread.cc: New file.
8         * gnu/gcj/jni/NativeThread.java: New file.
9         * java/lang/Thread.java (data): Now a RawData.
10         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
11         Declare.
12         * Makefile.in: Rebuilt.
13         * Makefile.am (java/lang/Thread.h): New target.
14         (ordinary_java_source_files): Added NativeThread.java.
15         (nat_source_files): Added natNativeThread.cc.
16         * java/lang/natThread.cc: Include <jni.h>
17         (struct natThread): Added `jni_env' field.
18         (_Jv_GetCurrentJNIEnv): New function.
19         (_Jv_SetCurrentJNIEnv): Likewise.
20         (initialize_native): Initialize jni_env.
21         Include RawData.h.
22         * jni.cc (ThreadGroupClass): New define.
23         (_Jv_JNI_InvokeFunctions): New structure.
24         (JNI_GetCreatedJavaVMs): New function.
25         (the_vm): New global.
26         (JNI_GetDefaultJavaVMInitArgs): New function.
27         Include NativeThread.h.
28         (NativeThreadClass): New define.
29         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
30         (_Jv_JNI_DestroyJavaVM): New function.
31         (_Jv_JNI_AttachCurrentThread): New function.
32         (_Jv_JNI_DetachCurrentThread): New function.
33         (_Jv_JNI_GetEnv): New function.
34         (JNI_CreateJavaVM): New function.
35         (_Jv_JNI_GetJavaVM): New function.
36         (_Jv_JNIFunctions): Added entry for GetJavaVM.
37         * include/jni.h (JavaVMAttachArgs): New structure.
38         (JNI_EDETACHED): New define.
39         (JNI_EVERSION): Likewise.
40         (JavaVM): Define properly.
41         (struct JNIInvokeInterface): New structure.
42         (class _Jv_JavaVM): New class.
43         (JNI_OnLoad, JNI_OnUnload): Declare.
44         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
45         JNI_GetCreatedJavaVMs): Declare.
46         (JavaVMInitArgs): New typedef.
47         (JavaVMOption): Likewise.
48         (JNI_ERR): New define.
49         (JNI_OK): Likewise.
50
51 2000-02-10  Andrew Haley  <aph@cygnus.com>
52
53         * interpret.cc: Don't include fdlibm.h.
54         Replace #if with #ifdef throughout.
55         Declare extern __ieee754_fmod.
56         (continue1): Remove op_getfield, op_getstatic, op_putfield,
57         op_putstatic insns.
58         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
59         Search class hierarchy for superclass vtable.
60
61         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
62         off the end of a pointer list.
63
64         * java/lang/natThread.cc (stop): Don't abort, throw an exception
65         instead.
66         (suspend): Ditto.
67         
68 2000-02-09  Tom Tromey  <tromey@cygnus.com>
69
70         * java/lang/natRuntime.cc (_load): Call add_library.
71         (loadLibraryInternal): Likewise.
72
73         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
74         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
75         (Output_iconv::finalize): Likewise.
76
77 2000-02-08  Tom Tromey  <tromey@cygnus.com>
78
79         * java/util/Properties.java (setProperty): New method.
80         (store): New method.
81
82 2000-02-07  Tom Tromey  <tromey@cygnus.com>
83
84         * java/lang/Runtime.java (_load): Declare.
85         (load, loadLibrary): Wrote in terms of _load.
86         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
87         library.
88         (loadLibrary): Likewise.
89         Include <jni.h>.
90         (_load): New method.
91         (loadLibrary, load): Removed.
92
93         * jni.cc (ThrowableClass): New define.
94         (_Jv_JNI_Throw): Check argument.
95         (_Jv_JNI_ThrowNew): Likewise.
96         (wrap_value): Don't wrap object if it is NULL.
97         (_Jv_JNI_DefineClass): Use wrap_value.
98         (_Jv_JNI_FindClass): Likewise.
99         (_Jv_JNI_GetSuperclass): Likewise.
100         (_Jv_JNI_ExceptionOccurred): Likewise.
101         (_Jv_JNI_AllocObject): Likewise.
102         (_Jv_JNI_GetObjectClass): Likewise.
103         (_Jv_JNI_NewString): Likewise.
104         (_Jv_JNI_NewStringUTF): Likewise.
105         (_Jv_JNI_NewObjectArray): Likewise.
106         (_Jv_JNI_GetObjectArrayElement): Likewise.
107         (_Jv_JNI_NewPrimitiveArray): Likewise.
108         (_Jv_JNI_ToReflectedField): Likewise.
109         (_Jv_JNI_ToReflectedMethod): Likewise.
110         (_Jv_JNI_AllocObject): Check argument.
111         (_Jv_JNI_NewObjectV): Likewise.
112         (_Jv_JNI_NewObject): Likewise.
113         (_Jv_JNI_NewObjectA): Likewise.
114         (_Jv_JNI_GetObjectClass): Likewise.
115         (_Jv_JNI_GetField): Likewise.
116         (_Jv_JNI_SetField): Likewise.
117
118         * interpret.cc (PUSHL): Don't use expression statement.
119         (PUSHD): Likewise.
120         (LOADL): Likewise.
121         (STOREL): Likewise.
122
123         * jni.cc (add_char): Conditional on INTERPRETER.
124         (mangled_name): Likewise.
125         (call): Likewise.
126         * include/java-interp.h (class _Jv_MethodBase): Conditional on
127         INTERPRETER.
128         (class _Jv_JNIMethod): Likewise.
129
130 2000-02-04  Warren Levy  <warrenl@cygnus.com>
131
132         * Makefile.am: Added MPN.java and BigInteger.java.
133         * Makefile.in: Rebuilt.
134         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
135         <per@bothner.com>.
136         * java/math/BigInteger.java: New file.  Based primarily on
137         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
138
139 2000-02-04  Tom Tromey  <tromey@cygnus.com>
140
141         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
142         pointers.
143         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
144         if the method is native.
145         * resolve.cc (ncode): Don't handle native methods.
146         (_Jv_JNIMethod::ncode): New method.
147         (_Jv_PrepareClass): Handle native methods.
148         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
149         Include AbstractMethodError.h.
150         (add_char): New function.
151         (mangled_name): Likewise.
152         * include/java-interp.h (class _Jv_JNIMethod): New class.
153         (class _Jv_MethodBase): New class.
154         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
155         (_Jv_InterpClass): Changed `interpreted_methods' field to type
156         `_Jv_MethodBase'.
157
158         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
159         * java/lang/natRuntime.cc (libraries_size, libraries_count,
160         libraries): New globals.
161         (add_library): New function.
162         (_Jv_FindSymbolInExecutable): New function.
163
164         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
165         Now static.
166
167 2000-02-04  Andrew Haley  <aph@cygnus.com>
168
169         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
170         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
171         * java/lang/natThrowable.cc (printRawStackTrace): Rename
172         printStackTrace to printRawStackTrace.
173
174 2000-02-03  Tom Tromey  <tromey@cygnus.com>
175
176         * java/util/Calendar.java (toString): New method.
177         * java/util/SimpleTimeZone.java (clone): New method.
178         (toString): New method.
179         * java/util/TimeZone.java (clone): New method.
180         * java/text/SimpleDateFormat.java (clone): New method.
181         * java/text/NumberFormat.java (clone): New method.
182         (equals): New method.
183         * java/text/Format.java (clone): New method.
184         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
185         constructor.
186         (clone): New method.
187         * java/text/DateFormat.java (clone): New method.
188         * java/text/Collator.java (clone): New method.
189
190 2000-02-03  Tom Tromey  <tromey@cygnus.com>
191
192         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
193         method.
194
195 2000-02-01  Tom Tromey  <tromey@cygnus.com>
196
197         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
198         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
199         constructing the closure if the function is native.
200         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
201         a template function, #if'd out, or static.
202         Include <java-interp.h>.
203
204         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
205
206         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
207
208         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
209         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
210         `locals == NULL'.
211         (wrap_value): New function.
212         (_Jv_JNI_CallAnyMethodV): Use it.
213         (_Jv_JNI_CallAnyMethodA): Likewise.
214         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
215         (_Jv_JNI_GetStaticField): Likewise.
216
217         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
218         (_Jv_JNI_GetStaticField): Likewise.
219
220 2000-01-31  Tom Tromey  <tromey@cygnus.com>
221
222         * prims.cc (_Jv_MallocUnchecked): New function.
223         (main_init): Call _Jv_JNI_Init.
224         * include/jvm.h (_Jv_MallocUnchecked): Declare.
225         (_Jv_JNI_Init): Declare.
226         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
227         <string.h>.
228         (_Jv_JNI_NewGlobalRef): New function.
229         (_Jv_JNI_DeleteGlobalRef): New function.
230         (_Jv_JNI_DeleteLocalRef): New function.
231         (_Jv_JNI_conversion_call): Initialize and clear local reference
232         frame.
233         (_Jv_JNI_NewLocalRef): New function.
234         (struct _Jv_JNI_LocalFrame): New structure.
235         (_Jv_JNI_PushLocalFrame): New function.
236         (_Jv_JNI_EnsureLocalCapacity): New function.
237         (FRAME_SIZE): New define.
238         (_Jv_JNI_GetStringChars): Mark string, not characters.
239         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
240         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
241         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
242         elements.
243         (_Jv_JNI_DefineClass): Make return value a local ref.
244         (_Jv_JNI_FindClass): Likewise.
245         (_Jv_JNI_GetSuperclass): Likewise.
246         (_Jv_JNI_ExceptionOccurred): Likewise.
247         (_Jv_JNI_AllocObject): Likewise.
248         (_Jv_JNI_GetObjectClass): Likewise.
249         (_Jv_JNI_CallAnyMethodV): Likewise.
250         (_Jv_JNI_NewString): Likewise.
251         (_Jv_JNI_NewStringUTF): Likewise.
252         (_Jv_JNI_NewObjectArray): Likewise.
253         (_Jv_JNI_GetObjectArrayElement): Likewise.
254         (_Jv_JNI_ToReflectedField): Likewise.
255         (_Jv_JNI_ToReflectedMethod): Likewise.
256         (_Jv_JNIFunctions): Updated table for new functions.
257         (_Jv_JNI_Init): New function.
258         (mark_for_gc): Wrote.
259         (unmark_for_gc): Wrote.
260         * include/jni.h (struct JNINativeInterface): Removed name from
261         PopLocalFrame parameter.
262         (class _Jv_JNIEnv): Added `locals' field.
263
264 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
265
266         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
267         (write): Ditto.
268
269 2000-01-30  Tom Tromey  <tromey@cygnus.com>
270
271         * include/config.h.in: Rebuilt.
272         * acconfig.h (HAVE_ICONV): Define.
273         * configure: Rebuilt.
274         * configure.in: Check for `iconv' function.
275         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
276         no specific encoder exists.
277         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
278         no specific encoder exists.
279         * Makefile.in: Rebuilt.
280         * Makefile.am (convert_source_files): Mention Input_iconv.java and
281         Output_iconv.java.
282         (nat_source_files): Added natIconv.cc.
283         * gnu/gcj/convert/natIconv.cc: New file.
284         * gnu/gcj/convert/Input_iconv.java: New file.
285         * gnu/gcj/convert/Output_iconv.java: New file.
286
287 2000-01-28  Tom Tromey  <tromey@cygnus.com>
288
289         * Makefile.in: Rebuilt.
290         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
291
292 2000-01-26  Tom Tromey  <tromey@cygnus.com>
293
294         * gcj/method.h (JvNumMethods): Moved from Class.h.
295         (JvGetFirstMethod): Likewise.
296         * java/lang/Class.h (Object): Updated decl of
297         _Jv_JNI_ToReflectedField.
298         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
299         * Makefile.in: Rebuilt.
300         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
301         argument of _Jv_JNI_ToReflectedField.
302         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
303         as a friend.
304         (java/lang/reflect/Method.h): Likewise.
305         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
306         __GCJ_JNI_IMPL__.
307         (jweak): New typedef.
308         (struct JNINativeInterface): Correctly declare remaining entries.
309         * jni.cc: Include Class.h, ClassLoader.h.
310         (_Jv_JNI_FindClass): New function.
311         (_Jv_JNI_DefineClass): New function.
312         (_Jv_JNI_conversion_call): New function.
313         (_Jv_JNI_FindClass): Use current class loader to find class.
314         (_Jv_JNI_ExceptionCheck): New function.
315         (_Jv_JNI_FromReflectedField): Now static.
316         (MethodClass): New define.
317         (_Jv_JNI_FromReflectedMethod): New function.
318         (_Jv_JNI_ToReflectedMethod): Likewise.
319         Include Method.h.
320         (_Jv_JNI_IsAssignableFrom): Renamed.
321         (_Jv_JNI_GetStringRegion): New function.
322         Include StringIndexOutOfBoundsException.h.
323         (_Jv_JNI_GetStringUTFRegion): New function.
324         (_Jv_JNIFunctions): Updated for new functions.
325         (_Jv_JNI_GetPrimitiveArrayCritical): New function
326         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
327         (_Jv_JNI_GetStringCritical): New function.
328         (_Jv_JNI_ReleaseStringCritical): Likewise.
329         (get_throwable): Removed.
330         (GCJ_JV_JNIENV_FRIEND): Removed.
331         (__GCJ_JNI_IMPL__): Define.
332         Include method.h.
333
334         * resolve.cc (get_ffi_type_from_signature): Handle case where
335         boolean is an int.
336
337 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
338
339         * interpret.cc (run): Don't call println.
340         Don't include PrintStream.h.
341
342         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
343         nameIndex.  Use "jint" as type for boffset.
344         * java/lang/Class.h (struct _Jv_Method): Made accflags a
345         _Jv_ushort.
346         (Class): Likewise.  Also changed type of method_count,
347         vtable_method_count, size_in_bytes, field_count,
348         static_field_count, interface_count.
349         * gcj/array.h (__JArray): Made `length' a const jsize, not an
350         int.
351
352 2000-01-21  Tom Tromey  <tromey@cygnus.com>
353
354         * java/lang/reflect/natConstructor.cc (newInstance): Use
355         _Jv_CallAnyMethodA.
356         * include/jvm.h: Declare _Jv_CallAnyMethodA.
357         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
358         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
359         Include <jni.h>.
360         (COPY): Removed.
361         (invoke): Use _Jv_CallAnyMethodA.
362         (VAL): Redefined.
363         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
364         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
365         functions.
366         (struct _Jv_Method): Added getNextMethod method.
367         (JvNumMethods): New function.
368         (JvGetFirstMethod): Likewise.
369         * gcj/field.h (JvGetFirstStaticField): New function.
370         (JvNumStaticFields): Likewise.
371         (getNextField): Renamed from getNextInstanceField.
372         (struct _Jv_Field): New method getClass.
373         * jni.cc: Wrote many new functions.
374         * include/jni.h (JNI_TRUE): Define.
375         (JNI_FALSE): Likewise.
376         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
377         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
378         jcharArray, jfloatArray, jdoubleArray): New typedefs.
379         (jfieldID, jmethodID): Likewise.
380         (JNI_COMMIT, JNI_ABORT): New defines.
381         (JNINativeMethod): New struct.
382         (struct JNINativeInterface): Correctly declared more entries.
383         (class _Jv_JNIEnv): Added `ex' member.
384         (JNI_VERSION_1_1): New define.
385         (JNI_VERSION_1_2): Likewise.
386
387         * boehm.cc (_Jv_MarkObj): Use getNextField, not
388         getNextInstanceField.
389
390 2000-01-20  Tom Tromey  <tromey@cygnus.com>
391
392         * resolve.cc (StringClass): Removed.
393         * defineclass.cc (StringClass): Removed.
394
395 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
396
397         * NEWS: updated.
398
399 2000-01-19  Tom Tromey  <tromey@cygnus.com>
400
401         * interpret.cc (PC_REGISTER_ASM): Removed.
402
403         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
404         From Bryce McKinlay.
405
406         * All files: Updated copyright to reflect Cygnus purchase.
407
408 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
409
410         * configure: Rebuilt.
411         * configure.in: Recognize --disable-interpreter.
412
413 2000-01-18  Andrew Haley  <aph@cygnus.com>
414
415         * name-finder.cc (lookup): Check for dladdr function.
416         acconfig.h (HAVE_DLADDR): Add.
417         configure.in: Check for HAVE_DLADDR
418         configure: Rebuilt.
419         include/config.h.in:  Rebuilt.
420
421 2000-01-17  Andrew Haley  <aph@cygnus.com>
422
423         * prims.cc (_Jv_RunMain): Set the name of this executable.
424
425 2000-01-17  Tom Tromey  <tromey@cygnus.com>
426
427         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
428         when backtrace can't be computed.
429
430         * configure: Rebuilt.
431         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
432
433         * java/lang/Runtime.java (loadLibraryInternal): Declare.
434         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
435         (_Jv_FindClassInCache): Likewise.
436         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
437         (findSystemClass): Try to load class from compiled module.
438         Include Runtime.h.
439         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
440         (loadLibrary): Likewise.
441         (lt_preloaded_symbols): Define.
442         (loadLibraryInternal): New method.
443         * include/config.h.in: Rebuilt.
444         * acconfig.h (USE_LTDL): Added.
445         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
446         (INCLUDES): Added $(INCLTDL).
447         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
448         (libgcj_la_LIBADD): Likewise.
449         * aclocal.m4, configure: Rebuilt.
450         * configure.in: Added libltdl support.
451
452 2000-01-15  Tom Tromey  <tromey@cygnus.com>
453
454         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
455
456 2000-01-14  Andrew Haley  <aph@cygnus.com>
457
458         * java/lang/natThrowable.cc: New file.
459
460         * java/lang/Throwable.java (fillInStackTrace): Make native.
461         (printStackTrace): Call native method to do this.
462         (Throwable): Call fillInStackTrace.
463         (stackTrace): New variable.
464         
465         * include/jvm.h: Add _Jv_ThisExecutable functions.
466         
467         * prims.cc: (_Jv_execName): New variable.
468         (catch_segv): Call fillInStackTrace.
469         (catch_fpe): Ditto.
470         (_Jv_ThisExecutable): New functions.
471         (JvRunMain): Set the name of this executable.
472
473         * Makefile.am: Add java/lang/natThrowable.cc.
474         Add name-finder.cc.
475         * Makefile.in: Rebuilt.
476
477         * acconfig.h: Add HAVE_PROC_SELF_EXE.
478
479         * configure.in: Force link with __frame_state_for in
480         FORCELIBGCCSPEC.  Add new checks for backtrace.
481         * include/config.h.in: Rebuilt.
482
483         * name-finder.cc: New file.
484         * include/name-finder.h: New file.
485
486 2000-01-16  Anthony Green  <green@cygnus.com>
487
488         * java/lang/StringBuffer.java (StringBuffer): Don't special case
489         null argument.
490
491 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
492
493         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
494
495 2000-01-13  Tom Tromey  <tromey@cygnus.com>
496
497         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
498         not system loader, as initiating loader.
499
500 2000-01-11  Tom Tromey  <tromey@cygnus.com>
501
502         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
503         HP/UX.  From David Scott Urban.
504
505 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
506
507         * java/lang/natMath.cc (pow): Cast args to `double', not
508         `jdouble'.
509         (atan2): Likewise.
510         (IEEEremainder): Likewise.
511         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
512         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
513
514 2000-01-09  Anthony Green  <green@cygnus.com>
515
516         * java/lang/natString.cc (init): Test for overflow condition
517         during out of bounds check.
518         (getChars): Throw StringIndexOutOfBoundsException, not
519         ArrayIndexOutOfBoundsException.
520         (getBytes): Ditto.
521         (regionMatches): Obey case option during string comparison.
522
523         * configure.host (ligcj_interpreter): New variable.  Enable
524         interpreter by default on IA-32.
525         * configure.in:  Examine libgcj_interpreter.
526         * configure: Rebuilt.
527
528 2000-01-07  Tom Tromey  <tromey@cygnus.com>
529
530         * mauve-libgcj: Don't disable ClassTest.
531
532         * java/lang/natClass.cc (getClasses): Wrote.
533
534 2000-01-06  Tom Tromey  <tromey@cygnus.com>
535
536         * java/lang/natClass.cc (_getConstructors): Correctly check
537         whether method name is the init name.
538         (getMethod): Look at accflags on method in `klass', not `this'.
539
540 2000-01-05  Tom Tromey  <tromey@cygnus.com>
541
542         * java/lang/natClass.cc (getMethod): Compute offset relative to
543         `klass's methods table, not `this's table.
544
545         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
546         In unwrapping/widening case, check whether `k' is null, not
547         whether it is primitive.  Initialize `num' from `argelts', not
548         `paramelts'.  Correct create and pass arguments to ffi_call.
549         Don't let presence of `this' argument affect index used to look in
550         argument arrays.
551         (COPY): Set appropriate element in `values' vector.
552
553         * java/lang/natClass.cc: Include <gcj/method.h>.
554
555         * java/lang/Class.h (_getMethods): Correctly declare as private,
556         not public.
557
558         * java/lang/Class.h (_getMethods): Declare.
559         * java/lang/Class.java (_getMethods): Declare.
560         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
561         (getDeclaredClasses): Always return empty array.
562         (_getMethods): New method.
563         (getMethods): Wrote.
564         (getDeclaredMethod): Return `rmethod'.
565         (finit_name): New global.
566         (getDeclaredMethods): Check for finit_name.
567         (_getMethods): Likewise.
568         (getMethod): Only return public methods.
569
570         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
571         jboolean and select correct ffi type on that basis.
572         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
573         Constructor call always has `void' return type.
574
575 2000-01-04  Tom Tromey  <tromey@cygnus.com>
576
577         * java/lang/Class.h (getSignature): Updated.
578         * java/lang/Class.java (getSignature): Updated.
579         * java/lang/natClass.cc (getSignature): Added `is_constructor'
580         argument.
581         (getConstructor): Ensure constructor is public.
582         (_getConstructors): Check for public-ness of constructor when
583         `declared' is false, not when it is true.
584
585 2000-01-04  Warren Levy  <warrenl@cygnus.com>
586
587         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
588         comment.
589         (receive): Set the sender's address in the DatagramPacket.
590
591 2000-01-04  Tom Tromey  <tromey@cygnus.com>
592
593         * java/lang/reflect/natConstructor.cc (newInstance): Pass
594         declaring class as return_type argument to
595         _Jv_CallNonvirtualMethodA.
596         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
597         constructor case, create object and use it as `this' argument.
598         * java/lang/Class.h (_getConstructors): Declare.
599         (_getFields): Declare.
600         * java/lang/Class.java (getConstructors): Wrote.
601         (_getConstructors): New native method.
602         (getDeclaredConstructors): Wrote.
603         (_getFields): Declare new native method.
604         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
605         incorrect comment.
606         (getMethod): Work correctly when class is primitive.
607         (getDeclaredMethods): Likewise.  Compute offset using `method',
608         not `mptr'.
609         (getDeclaredMethod): Likewise.
610         (getConstructor): Wrote.
611         (ConstructorClass): New define.
612         (getDeclaredConstructor): Wrote.
613         (_getConstructors): New method.
614         (_getFields): New method.
615         (getFields): Wrote.
616
617         * Makefile.in: Rebuilt.
618         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
619
620         * prims.cc: Remove `#pragma implementation'.
621         * gcj/array.h: Remove `#pragma interface'.
622
623         * prims.cc (_Jv_equaln): New function.
624         * java/lang/Class.java (getSignature): Declare.
625         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
626         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
627         resolve.cc.
628         (getSignature): New method.
629         (getDeclaredMethod): Wrote.
630         (getMethod): Wrote.
631         Include StringBuffer.h.
632         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
633         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
634         a friend.
635         (getSignature): Declare.
636         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
637         (_Jv_equaln): Declare.
638         (_Jv_CallNonvirtualMethodA): Declare.
639         * Makefile.in: Rebuilt.
640         * Makefile.am (nat_source_files): Added natConstructor.cc.
641         (java/lang/reflect/Constructor.h): New target.
642         * java/lang/reflect/natConstructor.cc: New file.
643         * java/lang/reflect/Constructor.java (newInstance): Now native.
644         (declaringClass): Renamed from decl_class.
645         (offset): Renamed from index.
646         (getType): New native method.
647         (getModifiers): Now native.
648         (getParameterTypes): Call getType if required.
649         (hashCode): Include hash code from declaring class.
650         (modifiers): Removed.
651         (toString): Call getType if required.
652         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
653         * java/lang/reflect/natMethod.cc (hack_call): New method.
654         Removed `#if 0' around FFI code.
655         Include <gnu/gcj/RawData.h>.
656         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
657         IllegalArgumentException when argument object and class disagree.
658         (_Jv_GetTypesFromSignature): New function.
659         (getType): Use it.
660         (ObjectClass): New define.
661         (_Jv_CallNonvirtualMethodA): New function.
662         * java/lang/reflect/Method.java (hack_trampoline): New method.
663         (hack_call): New native method.
664
665 1999-12-21  Per Bothner  <per@bothner.com>
666
667         * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
668         offset in new Method.
669
670 1999-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
671
672         * java/lang/natObject.cc (notify): Throw message with
673         IllegalMonitorStateException.
674         (notifyAll): Ditto.
675         (wait): Ditto.
676         * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
677         (isInterrupted_): New function, which does clear interrupt_flag.
678         (interrupt): Use `isInterrupted_'.
679         * java/lang/natThread.cc (interrupt): Add comment.
680         (join): Set `prev' in joiner loop.
681         Change various calls to `isInterrupted' to use `isInterrupted_'.
682         * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
683         on linux. Set result to 0 on an interrupt. Test interrupted status
684         of java Thread object directly. 
685         FLAG_INTERRUPTED: removed.
686         (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
687         (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
688         (_Jv_InitThreads): Don't block SIGINT.
689         (_Jv_ThreadWait): Don't configure SIGINT handler.
690
691 1999-12-21  Tom Tromey  <tromey@cygnus.com>
692
693         * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
694
695 1999-12-20  Tom Tromey  <tromey@cygnus.com>
696
697         * java/lang/reflect/Modifier.java (STRICT): New constant.
698         (isStrict): New method.
699         (toString): Added `strict'.
700
701 1999-12-23  Anthony Green  <green@cygnus.com>
702
703         * configure: Rebuilt.
704         * configure.in (LIBDATASTARTSPEC): Force data_start in with
705         linker trick.
706
707 1999-12-19  Anthony Green  <green@cygnus.com>
708
709         * libgcjdata.c: New file.
710         * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
711         * configure: Rebuilt.
712         * configure.in (LIBDATASTARTSPEC): Force data with a known name
713         into the program.
714         * Makefile.in: Rebuilt.
715         * Makefile.am: Build libgcjdata.a.
716
717         * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
718         * configure: Rebuilt.
719         * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
720         into every program.
721
722 1999-12-17  Tom Tromey  <tromey@cygnus.com>
723
724         * java/lang/reflect/Method.java (toString): Call getType if
725         required.  Partial fix for PR libgcj/111.  From Per Bothner.
726
727         * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
728
729 1999-12-16  Bryce McKinlay  <bryce@albatross.co.nz>
730
731         * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a 
732         null String constructor parameter.
733         * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
734         for exception messages.
735         BooleanClass: declare.
736         (setOption): Use BooleanClass instead of Class.forName() for
737         instanceof test.
738         (bind): Cast 4th parameter of setsockopt to `char *' for
739         compatibility with older Solaris headers.
740         * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
741         sprintf calls for exception messages.
742         BooleanClass, IntegerClass: declare.
743         (setOption): Use BooleanClass and IntegerClass, not Class.forName()
744         for instanceof test.
745
746 1999-12-15  Tom Tromey  <tromey@cygnus.com>
747
748         * java/lang/natSystem.cc (init_properties): Don't set user.name or
749         user.home if NO_GETUID defined.  Only set user.dir if getcwd
750         exists.
751
752         * include/config.h.in: Rebuilt.
753         * acconfig.h (NO_GETUID): New define.
754         * configure.in: Rebuilt.
755         * configure.in: Define NO_GETUID in cross case.  Check for getcwd
756         in native case.
757
758 1999-12-08  Tom Tromey  <tromey@cygnus.com>
759
760         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
761         where no recursive mutexes exist.  Fixes PR libgcj/117.
762
763 1999-12-05  Anthony Green  <green@cygnus.com>
764
765         * include/jvm.h: Declare many functions with
766         __attribute__((__malloc__)).
767         * gcj/javaprims.h: Ditto.
768
769 Thu Dec  2 17:26:47 1999  Anthony Green  <green@cygnus.com>
770
771         * THANKS: Giving credit where credit is due.
772
773 1999-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
774
775         * java/net/ServerSocket.java (ServerSocket): Bind to any interface 
776         if bindAddr is null.
777         * java/lang/natString.cc (equalsIgnoreCase): return false if
778         anotherString is null.
779         * java/lang/Boolean.java (valueOf): return FALSE if argument is
780         null.
781
782 1999-11-30  Tom Tromey  <tromey@cygnus.com>
783
784         * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
785         mutex to initialize.  Initialize `count' if required.
786         Fixes PR libgcj/98.
787
788 1999-11-27  Per Bothner  <per@bothner.com>
789
790         * exception.cc:  Remove prototype declarations for malloc and free.
791         These clash with recent versions of glibc, which specifies `throws ()'
792         when __cplusplus is defined.  Instead, #include <stdlib.h>.
793
794 1999-11-24  Tom Tromey  <tromey@cygnus.com>
795
796         * prims.cc (_Jv_NewObjectArray): Use
797         _Jv_GetArrayElementFromElementType.
798         (_Jv_NewPrimArray): Likewise.
799         * java/lang/natObject.cc (clone): Use
800         _Jv_GetArrayElementFromElementType instead of sizeof.
801         * java/lang/natSystem.cc (arraycopy): Use
802         _Jv_GetArrayElementFromElementType.
803         * include/jvm.h (_Jv_GetArrayElementFromElementType): New
804         function.
805
806 1999-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
807
808         * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
809         Exception messages. PR java.net/57.
810         (bind): set SO_REUSEADDR before bind.
811         * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
812         overruns. PR java.net/57.
813
814 1999-11-19  Tom Tromey  <tromey@cygnus.com>
815
816         * Makefile.am (DIVIDESPEC): Removed.
817         (EXCEPTIONSPEC): Removed.
818
819 1999-11-19  Andrew Haley  <aph@cygnus.com>
820
821         * Makefile.am (JCFLAGS): Add -L$(here)
822         (JC1FLAGS): Ditto.
823         * Makefile.in: Rebuild.
824
825 1999-11-18  Tom Tromey  <tromey@cygnus.com>
826
827         * java/lang/natDouble.cc: Include <config.h>.
828
829         * include/config.h.in: Rebuilt.
830         * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
831         * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
832         targets.
833         * configure: Rebuilt.
834         * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
835         requested by configure.host.  Don't put `-D' option into
836         libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
837
838         * configure: Rebuilt.
839         * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
840         sjlj-exceptions.
841
842 1999-11-18  Andrew Haley  <aph@cygnus.com>
843
844         * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
845         (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
846         (JC1FLAGS): Ditto.
847         * Makefile.in: Rebuild
848         * acconfig.h: remove SJLJ_EXCEPTIONS
849         * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
850         Do not AC_DEFINE SJLJ_EXCEPTIONS.
851         * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
852         * gcj/Makefile.in, include/Makefile.in: rebuild.
853         * include/config.h.in: remove SJLJ_EXCEPTIONS.
854                 
855 1999-11-18  Andrew Haley  <aph@cygnus.com>
856
857         * gij.cc (main): Rename label to prevent conflict.
858
859         * exception.cc (_Jv_type_matcher): Don't check the table if we're
860         using setjmp/longjmp exceptions: there isn't one.
861
862 1999-11-17  Andrew Haley  <aph@cygnus.com>
863
864         * exception.cc (_Jv_type_matcher): Ignore null exception tables.
865         (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
866         (__sjthrow): Add declaration.
867         * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
868         (JC1FLAGS): Ditto
869         (AM_CFLAGS): Ditto
870         (AM_CXXFLAGS): Ditto
871         * Makefile.in: Rebuild
872         * acconfig.h: Add SJLJ_EXCEPTIONS
873         * configure.in: Add SJLJ_EXCEPTIONS
874         * configure: Rebuild.
875         * gcj/Makefile.in: Rebuild.
876         * gcj/cni.h: Add support for sjlj-exceptions.
877         * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
878         * include/Makefile.in: Rebuild.
879         * include/default-signal.h: Add support for sjlj-exceptions.
880
881 1999-11-18  Tom Tromey  <tromey@cygnus.com>
882
883         * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
884
885         * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
886         minus 1.
887         (method_cache): Made larger.
888
889 1999-11-11  Tom Tromey  <tromey@cygnus.com>
890
891         * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
892         initializing mutex.  Initialize `count' when required.
893
894 1999-11-07  Anthony Green  <green@trip.cygnus.com>
895
896         * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
897         data correctly.
898
899 1999-11-05  Tom Tromey  <tromey@cygnus.com>
900
901         * java/lang/natThread.cc (destroy): Removed incorrect comment.
902
903 1999-11-05  Jeff Sturm  <jsturm@sigma6.com>
904
905         * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
906         * prims.cc (parse_heap_size): Use end, not spec.  Use 1024
907         multipler for `k'.
908
909 1999-11-05  Tom Tromey  <tromey@cygnus.com>
910
911         * java/lang/natThread.cc (stop): Removed argument name.
912
913         * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
914         `private'; now has default access.
915         * Makefile.in: Rebuilt.
916         * Makefile.am (java/lang/ThreadGroup.h): Removed.
917
918 1999-11-04  Tom Tromey  <tromey@cygnus.com>
919
920         * java/lang/natClass.cc (method_cache_count): Removed.
921         (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
922         (_Jv_AddMethodToCache): Don't loop.
923
924         * configure.in: Removed `qt' threads case.
925         * include/quick-threads.h: Removed.
926         * quick-threads.cc: Removed.
927
928         * include/quick-threads.h (_Jv_ThreadCancel): Removed.
929         (_Jv_ThreadDestroy): Likewise.
930         * include/no-threads.h (_Jv_ThreadCancel): Removed.
931         (_Jv_ThreadDestroy): Likewise.
932         * include/posix-threads.h (struct _Jv_Thread_t): Removed
933         `exception' field.
934         (_Jv_ThreadCancel): Removed decl.
935         (_Jv_ThreadDestroy): Removed.
936         * posix-threads.cc (_Jv_ThreadCancel): Removed.
937         (throw_cleanup): Removed.
938         (really_start): Don't push or pop cleanup.
939         (_Jv_ThreadInitData): Don't initialize `exception' field.
940         * java/lang/Thread.java (stop): Officially unimplemented.
941         * java/lang/natThread.cc (stop): Officially unimplemented.
942
943 1999-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
944
945         * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h 
946         instead.
947
948 1999-11-02  Tom Tromey  <tromey@cygnus.com>
949
950         * boehm.cc: Don't include boehm-config.h.
951
952 1999-11-01  Tom Tromey  <tromey@cygnus.com>
953
954         * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
955         (sum_blocks): Removed.
956         (_Jv_GCFreeMemory): Use GC_get_free_bytes.
957
958 1999-11-01  Bryce McKinlay  <bryce@albatross.co.nz>
959
960         * java/io/PrintStream (PrintStream): Fix illegal usage of "this" 
961           before "super".
962         * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
963         * java/io/InputStreamReader (InputStreamReader): ditto.
964
965 1999-10-22  Tom Tromey  <tromey@cygnus.com>
966
967         * Makefile.in: Rebuilt.
968         * Makefile.am (java/lang/ClassLoader.h): New target.
969         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
970         to `redirect'.
971
972         * include/java-props.h (_Jv_Compiler_Properties): Changed
973         declaration.
974         * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
975         * include/jvm.h (_Jv_GCSetInitialHeapSize,
976         _Jv_GCSetMaximumHeapSize): Declare.
977         (JvRunMain, _Jv_RunMain): Declare.
978         (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
979         * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
980         (_Jv_GCSetMaximumHeapSize): Likewise.
981         * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
982         (_Jv_GCSetMaximumHeapSize): Likewise.
983         * prims.cc (parse_heap_size): New function.
984         (_Jv_SetInitialHeapSize): Likewise.
985         (_Jv_SetMaximumHeapSize): Likewise.
986         (_Jv_Compiler_Properties): New global.
987         * gij.cc (help): New function.
988         (version): Likewise.
989         (heap_size): Likewise.
990         (heap_max_size): Likewise.
991         (main): Parse arguments.  Set _Jv_Compiler_Properties.
992         Include <config.h>, <java-props.h>.
993         (_Jv_Compiler_Properties): Removed.
994
995 1999-10-18  Tom Tromey  <tromey@cygnus.com>
996
997         * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
998         method.
999         (redirect): New static field.
1000         * java/lang/ClassLoader.java (getSystemClassLoader): Now
1001         native
1002         (getVMClassLoader0): Removed.
1003         * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
1004         (redirect): Removed.
1005         (getSystemClassLoader): Implemented.
1006
1007 1999-10-16  Anthony Green  <green@cygnus.com>
1008
1009         * java/lang/ClassLoader.java (getSystemResource): Use
1010         getSystemClassLoader instead of ClassLoader.system.
1011         (getSystemResourceAsStream): Ditto.
1012
1013         * java/lang/natClassLoader.cc (redirect): Make static and
1014         remove #ifdef INTERPRETER so it is always defined.
1015         (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
1016         returns a VMClassLoader.
1017
1018         * java/util/ResourceBundle.java (trySomeGetBundle): Create a
1019         PropertyResourceBundle if a properties file is found before a
1020         ResourceBundle class.
1021
1022 1999-10-15  Tom Tromey  <tromey@cygnus.com>
1023
1024         * gij.cc (main): Formatting fixes.
1025         (_Jv_Compiler_Properties): Define.
1026         * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
1027         declare.
1028         (init_properties): Set properites from _Jv_Compiler_Properties.
1029         * include/java-props.h (_Jv_Compiler_Properties,
1030         _Jv_Environment_Properties): Declare.
1031
1032         * include/java-props.h: Added copyright.
1033
1034 1999-10-13  Anthony Green  <green@cygnus.com>
1035
1036         * libtool-version: Catch up by incrementing current.
1037
1038         * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
1039         * configure, include/config.h.in: Rebuilt.
1040         * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
1041         * configure.in: Added --disable-getenv-properties and new define
1042         `DISABLE_GETENV_PROPERTIES'.
1043
1044         * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
1045         (next_property_key): New function.
1046         (next_property_value): New function.
1047         (process_gcj_properties): New function.
1048         (JvRunMain): Call process_gcj_properties.
1049         (_JvRunMain): Ditto.
1050
1051         * java/lang/natSystem.cc (init_properties): Set properties defined
1052         in GCJ_PROPERTIES.
1053
1054         * include/java-props.h: New file.
1055
1056         * java/lang/natSystem.cc (init_properties): Add new properties to
1057         conform with Java Product Versioning Specification.
1058
1059 1999-10-12  Tom Tromey  <tromey@cygnus.com>
1060
1061         * configure: Rebuilt.
1062         * configure.in: Fixed test for --disable-java-net.
1063
1064 1999-10-06  Tom Tromey  <tromey@cygnus.com>
1065
1066         * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
1067         when building Canadian cross.
1068         (NATIVE): Don't define when cross-compiling.
1069
1070 1999-10-04  Tom Tromey  <tromey@cygnus.com>
1071
1072         * java/net/natPlainSocketImpl.cc: Don't include headers if
1073         java.net is disabled.
1074
1075         * Makefile.in: Rebuilt.
1076         * Makefile.am (ZINCS): Removed.  This is defined in configure.in
1077         when needed, and must be left empty when not needed.
1078
1079 1999-10-01  Anthony Green  <green@cygnus.com>
1080
1081         * THANKS: Refreshed from htdocs version.
1082
1083 1999-10-01  Steve Chamberlain  <sac@pobox.com>
1084
1085         * Makefile.in: Rebuilt.
1086         * Makefile.am (ZINCS): Define
1087
1088         * configure: Rebuilt.
1089         * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
1090
1091         * java/lang/ieeefp.h: Add definitions for picoJava.
1092
1093 1999-10-01  Tom Tromey  <tromey@cygnus.com>
1094
1095         * configure: Rebuilt.
1096         * configure.in: Set classpath when invoking gcj.  Use changequote
1097         around sed invocation.
1098
1099         * java/net/natPlainSocketImpl.cc: Stub native functions if
1100         DISABLE_JAVA_NET is defined.
1101         * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
1102         typo in exception string.
1103         (getTimeToLive): Likewise.
1104         Stub native functions if DISABLE_JAVA_NET is defined.
1105         * java/net/natInetAddress.cc: Stub native functions if
1106         DISABLE_JAVA_NET is defined.
1107         * configure.host: Disable java.net for mips-tx39.
1108         * configure, include/config.h.in: Rebuilt.
1109         * acconfig.h (DISABLE_JAVA_NET): Undefine.
1110         * configure.in: Added --disable-java-net and new define
1111         `DISABLE_JAVA_NET'.
1112
1113 1999-09-30  Tom Tromey  <tromey@cygnus.com>
1114
1115         * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
1116
1117 1999-09-29  Bryce McKinlay  <bryce@albatross.co.nz>
1118
1119         * README: New file.
1120
1121 1999-09-28  Tom Tromey  <tromey@cygnus.com>
1122
1123         * configure: Rebuilt.
1124         * configure.in (PROCESS): In POSIX case, only set if not already
1125         set.
1126         * configure.host (PROCESS): Set in mips-tx39 case.
1127
1128         * aclocal.m4, configure: Rebuilt.
1129         * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
1130         appropriate AC_PROG_ symbol.
1131
1132 1999-09-24  Tom Tromey  <tromey@cygnus.com>
1133
1134         * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
1135         `void *'.
1136         (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
1137
1138         Fix for PR java.util/47:
1139         * configure, include/config.h: Rebuilt.
1140         * configure.in: Don't look for ctime or ctime_r.
1141         * Makefile.in: Rebuilt.
1142         * Makefile.am (nat_source_files): Don't mention natDate.cc.
1143         * java/util/natDate.cc: Removed.
1144         * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
1145         static fields.
1146         (getAvailableIDs): Rewrote.
1147         (getTimeZone): Rewrote.
1148         * java/util/Date.java (toGMTString): New method.
1149         (toLocaleString): New method.
1150         (toString): Rewrote.
1151
1152 1999-09-23  Tom Tromey  <tromey@cygnus.com>
1153
1154         * configure: Rebuilt.
1155         * configure.in: Print message when checking to see if gcj can
1156         handle -fuse-divide-subroutine.
1157
1158         * java/lang/natFirstThread.cc (run): Renamed from `run0'.  Removed
1159         dead code.
1160         * java/lang/FirstThread.java (run0): Renamed to `run'.
1161         (run): Removed.
1162
1163         * prims.cc (main_init): New function.
1164         (JvRunMain): Call it.
1165         (_Jv_RunMain): Likewise.
1166         Include <signal.h>.
1167         (main_init): Ignore SIGPIPE.  Fixes PR 51.
1168
1169 1999-09-22  Tom Tromey  <tromey@cygnus.com>
1170
1171         * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
1172
1173 1999-09-16  Bryce McKinlay  <bryce@albatross.co.nz>
1174
1175         * java/text/MessageFormat.java (MessageFormat(String)): Set the
1176         default locale.
1177         * java/text/NumberFormat.java: Check that object is a Number. If
1178         not, throw IllegialArgumentException.
1179
1180 1999-09-21  Tom Tromey  <tromey@cygnus.com>
1181
1182         * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
1183         both `inlength' and `bytes_todo' are 0.  Simplified 2-byte case.
1184
1185         * include/posix-threads.h (_Jv_MutexDestroy): Use
1186         _Jv_PthreadGetMutex.
1187         (_Jv_MutexLock): Likewise.
1188         (_Jv_MutexUnlock): Likewise.
1189
1190         * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1191         previous patch; it too was incorrect.
1192         * java/io/PrintStream.java (PrintStream): Likewise.
1193
1194         * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1195         refer to `this' before calling superclass constructor.
1196         * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1197         before calling superclass constructor.
1198
1199 1999-09-20  Tom Tromey  <tromey@cygnus.com>
1200
1201         * configure: Rebuilt.
1202         * configure.in: Send output of `-fuse-divide-subroutine' test
1203         compilation to /dev/null.
1204
1205 1999-09-14  Tom Tromey  <tromey@cygnus.com>
1206
1207         * include/java-insns.h: Turned constants into an enum.  Added
1208         multiple-inclusion protection.
1209
1210 1999-09-10  Tom Tromey  <tromey@cygnus.com>
1211
1212         * configure: Rebuilt.
1213         * configure.in: Build include/Makefile.
1214         * Makefile.in: Rebuilt.
1215         * Makefile.am (SUBDIRS): Added gcj and include.
1216         (install-data-local): New target.
1217         (extra_headers): New macro.
1218         * include/Makefile.in: New file.
1219         * include/Makefile.am: New file.
1220
1221         * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1222         * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1223         gcj/cni.h.
1224         * boehm.cc: Don't include java-threads.h or gcj/field.h.
1225         * resolve.cc: Include config.h.
1226         * defineclass.cc: Include config.h.
1227         * include/java-interp.h: Don't include config.h.
1228         * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1229         cni.h.
1230
1231         * gcj/javaprims.h: Regenerated namespace decls.
1232         * classes.pl (scan): Don't put `;' after closing brace.
1233
1234         * Makefile.in: Rebuilt.
1235         * Makefile.am (INCLUDES): Added -I for top_srcdir.
1236         * configure.in: Create gcj/Makefile.
1237         * gcj/Makefile.in: New file.
1238         * gcj/Makefile.am: New file.
1239         * java/lang/Object.h: Don't include any other headers.
1240         * gcj/array.h: Renamed from include/java-array.h.
1241         * gcj/field.h: Renamed from include/java-field.h.
1242         * gcj/method.h: Renamed from include/java-method.h.
1243         * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1244         Updated all files to reflect new include structure.
1245
1246 1999-09-09  Tom Tromey  <tromey@cygnus.com>
1247
1248         * configure: Rebuilt.
1249         * configure.in: Fixed typo; variable is THREADSPEC and not
1250         THREADSPECS.
1251
1252 1999-09-08  Tom Tromey  <tromey@cygnus.com>
1253
1254         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1255         previous change and implemented a correct test in the __m_count
1256         case.
1257
1258         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1259         in __m_count case.
1260
1261 1999-09-07  Tom Tromey  <tromey@cygnus.com>
1262
1263         * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1264         code and don't set errno.
1265
1266         * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1267         not `r'.  Changed `done_sleeping' to a `bool'.
1268
1269 1999-09-07  Matt Welsh <mdw@cs.berkeley.edu>
1270
1271         * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1272         Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1273         by another thread, rather than by the GC.
1274         (_Jv_CondWait): Prevent premature thread wakeup by GC.
1275         (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1276         * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New 
1277         function.
1278
1279 1999-09-03  Tom Tromey  <tromey@cygnus.com>
1280
1281         * configure: Rebuilt.
1282         * configure.in: Check for fstat function.
1283         * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1284         FIONREAD fails.
1285
1286 1999-09-02  Tom Tromey  <tromey@cygnus.com>
1287
1288         * include/java-array.h (jobjectArrayjchar): Removed unused
1289         declaration.
1290
1291         * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1292         _Jv_PrepareCompiledClass while holding class mutex.
1293
1294 1999-09-01  Tom Tromey  <tromey@cygnus.com>
1295
1296         * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1297         (_Jv_PthreadGetMutex): Use it.
1298         (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1299         (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1300         (_Jv_MutexLock): Likewise.
1301         (_Jv_MutexUnlock): Likewise.
1302         * include/config.h.in: Rebuilt.
1303         * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1304         PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1305         * configure: Rebuilt.
1306         * libgcj.spec.in: Don't mention INTERPSPEC.
1307         * configure.in (INTERPSPEC): Removed.
1308         Only run pthreads-related checks when using POSIX threads.  Check
1309         for m_count and __m_count in mutex structure.
1310
1311 1999-09-01  Matt Welsh <mdw@cs.berkeley.edu>
1312
1313         * java/lang/natClass.cc: Fixed notification of threads
1314         when class initialization is complete.
1315
1316 1999-09-01  Tom Tromey  <tromey@cygnus.com>
1317
1318         * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1319         * resolve.cc: Removed constants defined by
1320         java.lang.reflect.Modifier.
1321         Include <java/lang/reflect/Modifier.h>.
1322         (_Jv_ResolvePoolEntry): Use values from Modifier.
1323         (_Jv_DetermineVTableIndex): Likewise.
1324         (_Jv_PrepareClass): Likewise.
1325         (ncode): Likewise.
1326         * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1327         java.lang.reflect.Modifier.
1328         Include <java/lang/reflect/Modifier.h>.
1329         (checkExtends): Use values from Modifier.
1330         (checkImplements): Likewise.
1331         (handleField): Likewise.
1332         (handleConstantValueAttribute): Likewise.
1333         (handleFieldsEnd): Likewise.
1334         (handleMethod ): Likewise.
1335         (handleMethodsEnd): Likewise.
1336         (handleClassBegin): Likewise.
1337         * interpret.cc: Removed constants defined by
1338         java.lang.reflect.Modifier.
1339         (continue1): Use values from Modifier.
1340         * java/lang/natClassLoader.cc: Removed constants defined by
1341         java.lang.reflect.Modifier.
1342
1343         * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1344         JV_STATE_NOTHING, not `0'.
1345         * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1346
1347         * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1348         * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1349         except on Linux.
1350         (_Jv_PthreadGetMutex): New function.
1351         (_Jv_PthreadCheckMonitor): Use it.
1352         (_Jv_MutexInit): Likewise.  ALso, initialize `count'.
1353         (_Jv_MutexLock): Update `count'.
1354         (_Jv_MutexUnlock): Likewise.
1355         (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1356         appropriate.
1357
1358 1999-09-01  Kresten Krab Thorup  <krab@gnu.org>
1359
1360         * Makefile.am (.java.lo): Add rule.
1361
1362         * Makefile.in: Rebuilt.
1363
1364 1999-09-01  Tom Tromey  <tromey@cygnus.com>
1365
1366         * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1367         * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1368         function.
1369         (_Jv_CondNotify): Use it.
1370         (_Jv_CondNotifyAll): Likewise.
1371
1372         * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1373
1374 1999-08-31  Tom Tromey  <tromey@cygnus.com>
1375
1376         * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1377         declaration.
1378
1379 1999-08-24  Bryce McKinlay  <bryce@albatross.co.nz>
1380
1381         * posix-threads.cc: Include <errno.h>.
1382
1383 1999-08-23  Tom Tromey  <tromey@cygnus.com>
1384
1385         * boehm.cc: Undefine TRUE and FALSE.
1386
1387         * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1388
1389 1999-08-21  Tom Tromey  <tromey@cygnus.com>
1390
1391         * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1392         result.  PR 40.
1393
1394 1999-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
1395
1396         * configure.in: Check for in_addr_t in netinet/in.h too.  Check
1397         for ip_mreq too.
1398         * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1399         (HAVE_STRUCT_IP_MREQ): Added.
1400         * configure, include/config.h.in: Rebuilt.
1401         * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1402         if needed.
1403         * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1404         Disable if ip_mreq is not available.
1405         
1406         * configure.in: Check types ssize_t and in_addr_t.
1407         * acconfig.h: Undefine them.
1408         * configure, include/config.h.in: Rebuilt.
1409
1410         * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1411         function that detects the signature of getpwuid_r.
1412         (init_properties): Use it.
1413         * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1414         (toString): Use it.
1415
1416 1999-08-20  Kresten Krab Thorup  <krab@samam.daimi.au.dk>
1417
1418         * interpret.cc (continue1): Implement explicit dispatch table.
1419         insn_target: Explicit interpreter switch table.  
1420         SAVE_PC: New macro, moves pc saving code into instructions that
1421         require so.
1422         NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1423         PC_REGISTER_ASM: New macro.
1424         INLINE_SWITCH: New macro.  Constrols dispatching strategy.
1425         opcode: Remove local variable.
1426         {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1427         (POKEI): Use _Jv_word.
1428         (iinc): Use _Jv_word.
1429         (dupx): Change reference argument (sp) to pointer.  
1430         (jvdump): Remove
1431         
1432         * interpret.cc: Remove instruction timing instrumentation.  
1433
1434         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1435         comment.  Don't use _Jv_ClassNameSamePackage. 
1436
1437         * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1438         URLPathEntry, CacheEntry}: Removed.
1439         
1440         * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1441         package.
1442         (.java.lo): Rule removed.
1443
1444         * Makefile.in: Rebuilt.
1445
1446 1999-08-19  Tom Tromey  <tromey@cygnus.com>
1447
1448         * java/lang/natThread.cc (class locker): New class.
1449         (join): Use a locker around _Jv_CondWait.
1450         (sleep): Likewise.
1451
1452 1999-08-18  Tom Tromey  <tromey@cygnus.com>
1453
1454         * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1455         * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1456
1457 1999-08-18  Tom Tromey  <tromey@cygnus.com>
1458
1459         * include/javaprims.h ("Java"): Regenerated namespace decls.
1460
1461 1999-08-18  Kresten Krab Thorup  <krab@gnu.org>
1462
1463         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1464         from _Jv_InternClassStrings.   
1465
1466         * prims.cc (_Jv_RunMain): New function.
1467         (JvRunMain): Remove gij-support.
1468
1469         * gij.cc (main): Use _Jv_RunMain.
1470
1471         * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1472
1473         * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1474         argument in temp variable.
1475         (continue1): For all op_x2y insns, use temp variable for
1476         intermediate value.  Also remove some comments.
1477
1478         * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1479         (forName): Don't call _Jv_InitClass.
1480
1481         * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1482
1483         * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1484
1485         * java/util/jar/JarInputStream.java: New file.
1486
1487         * java/util/jar/JarEntry.java: New file.
1488
1489         * java/util/jar/JarFile.java: New file.
1490
1491         * java/net/URLClassLoader.java: New file.
1492
1493         * java/net/JarURLConnection.java: New file.
1494
1495         * gnu/gcj/protocol/jar/Handler.java: New file.
1496
1497         * gnu/gcj/protocol/jar/Connection.java: New file.
1498
1499         * java/security/SecureClassLoader.java: New file.
1500
1501         * java/lang/ClassLoader.java (parent): New variable.
1502         (ClassLoader (ClassLoader)): new constructor.  
1503         (findClass): New method.
1504         (loadClass): Add default 1.2 implementation.
1505         (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1506         (readfully): Removed.
1507
1508         * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang. 
1509         (findSystemClass): New method.
1510         (VMClassLoader): Constructor rewritten.
1511         (init): New method.
1512         All other methods removed.
1513         
1514         * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1515         to gnu::gcj::runtime::VMClassLoader. 
1516         (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry.  Also handle
1517         class entries.   
1518         (VMClassLoader::findSystemClass): renamed from findBootClass.
1519
1520         * Makefile.am: Add new files.
1521         (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1522
1523         * Makefile.in: Rebuilt.
1524
1525 1999-08-17  Tom Tromey  <tromey@cygnus.com>
1526
1527         * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1528         nano.
1529         * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1530         inappropriately.
1531
1532 1999-08-16  Tom Tromey  <tromey@cygnus.com>
1533
1534         * configure: Rebuilt.
1535         * configure.in: Set DIVIDESPEC to empty string if compiler does
1536         not support -fuse-divide-subroutine.
1537
1538 1999-08-14  Per Bothner  <per@bothner.com>
1539
1540         * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1541         * java/lang/natClass.cc (initializeClass): Likewise.
1542         * java/lang/ClassLoader.java (resolveClass0): New static method.
1543         (resolveClass): Call resolveClass0.
1544         (findSystemClass): No longer static.
1545
1546 1999-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
1547
1548         * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1549
1550 1999-08-11  Bryce McKinlay  <bryce@albatross.co.nz>
1551
1552         * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1553         as long.
1554
1555 Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1556
1557         * Makefile: Rebuilt.
1558         * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1559         builds.
1560
1561         * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1562         present.
1563
1564         * configure: Rebuilt.
1565         * configure.in: Properly align --help output, fix capitalization
1566         and punctuation.
1567         * acinclude.m4: Likewise.
1568
1569 1999-08-09  Kresten Krab Thorup  <krab@gnu.org>
1570
1571         * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1572
1573         * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1574         (_Jv_callInterpretedMethod): Unused. Remove.
1575         (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1576         Use ffi_raw.
1577         * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1578         (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1579         * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1580         * interpret.cc: use _Jv_word.
1581         * defineclass.cc: use_Jv_word.
1582         * resolve.cc: Use _Jv_word.
1583         (_Jv_ResolvePoolEntry): Return _Jv_word.
1584         * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1585         * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1586
1587         * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1): 
1588         Change comment.
1589
1590 Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1591
1592         * configure: Rebuilt.
1593         * configure.in (sched_yield): Try librt first, then libposix4.
1594         Add -lrt, -lposix4 to THREADSPEC.
1595
1596 1999-08-08  Anthony Green  <green@cygnus.com>
1597
1598         * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1599
1600 1999-08-08  Anthony Green  <green@cygnus.com>
1601
1602         * defineclass.cc (_Jv_VerifyClassName): Verify array names
1603         correctly.
1604
1605 1999-08-08  Anthony Green  <green@cygnus.com>
1606
1607         * gij.cc: New file.
1608
1609         * include/config.h.in: Rebuilt.
1610         * acconfig.h: Add INTERPRETER.
1611
1612         * Makefile.in: Rebuilt.
1613         * Makefile.am (libffi_files): Identify the libffi object files for
1614         inclusion in libgcj.
1615         (LIBFFIINCS): Define.
1616
1617         * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1618         Dummy definition for configurations without an interpreter.
1619         
1620         * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1621         java::lang::Boolean constructor.
1622
1623         * include/java-interp.h: Always include java-cpool.h.
1624
1625         * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1626         when INTERPRETER not defined.
1627
1628         * java/lang/Class.h (finalize): Define.
1629
1630         * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1631         IOException from File.getCanonicalPath.
1632         (getStream): Likewise.
1633
1634         * NEWS: More news.
1635         * THANKS: More thanks.
1636
1637 1999-08-08  Kresten Krab Thorup  <krab@gnu.org>
1638
1639         * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1640         jchar type.
1641         (_Jv_PrepareClass): Allow non-abstract classes to
1642         have abstract subclasses.
1643         (_Jv_ResolvePoolEntry): Revert subclass check for protected
1644         fields and methods.
1645         * interpret.cc (continue1/perform_invoke): Don't sign extend
1646         uint16 return val. 
1647         (continue1/lshl,lshr): Push long, not int.
1648         (continue1/ulshr): Use UINT64, not long long.
1649         * defineclass.cc (handleFieldsEnd): Handle case when all fields
1650         are static.
1651         * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1652         * java/lang/FirstThread.java (run): Add top-level exception
1653         handler. 
1654         (run0): Renamed from run.
1655
1656 1999-08-08  Kresten Krab Thorup  <krab@gnu.org>
1657  
1658         * configure.in (--with-interpreter): Added.
1659         * include/config.h.in (INTERPRETER): Added.
1660  
1661         * java/lang/ClassLoader.java: File replaced.
1662         * java/lang/VMClassLoader.java: New file.
1663         * java/lang/natClassLoader.cc: New file.
1664         * gnu/gcj/runtime/MethodInvocation.java: New file.
1665         * gnu/gcj/util/path/SearchPath.java: New file.
1666         * gnu/gcj/util/path/PathEntry.java: New file.
1667         * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1668         * gnu/gcj/util/path/ZipPathEntry.java: New file.
1669         * gnu/gcj/util/path/URLPathEntry.java: New file.
1670         * gnu/gcj/util/path/CacheEntry.java: New file. 
1671         * include/java-interp.h: New file.
1672         * include/java-cpool.h: New file.
1673         * include/java-insns.h: New file.
1674         * defineclass.cc: New file.
1675         * interpret.cc: New file.
1676         * resolve.cc: New file.
1677  
1678         * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1679         _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1680         _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1681         (finalize): New.
1682         (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1683         STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1684         prefix. 
1685         (initializeClass): Use new JV_ prefixed names.  Also, call
1686         ClassLoader::resolveClass instead of _Jv_ResolveClass.
1687                 
1688         * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1689         JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1690         JV_STATE_LINKED): New.
1691         (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1692         _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1693         (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1694         _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1695         _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1696         _Jv_InterpMethodInvocation): New friends for interpreter.
1697         (finalize): New.
1698         (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1699         include/java-cpool.h and renamed with JV_ prefix.
1700         
1701         * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1702         decls.
1703         (_Jv_UnregisterClass): New decl.
1704  
1705         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1706         class loader argument. 
1707         (_Jv_FindClass): Use class loader.
1708         
1709         * prims.cc (_Jv_makeUtf8Const): New function.
1710         (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1711         (_Jv_NewPrimArray): Ditto.
1712         (_Jv_FindClassFromSignature): Ditto.
1713         * java/lang/reflect/natArray.cc (newInstance): Ditto.
1714         * java/lang/reflect/natMethod.cc (getType): Ditto.
1715  
1716         * include/java-field.h (_Jv_Field::isRef): Make robust for
1717         non-resolved contexts. 
1718  
1719         * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields. 
1720         Also, don't mark class->next field.
1721  
1722         * java/lang/VirtualMachineError.java: Added FIXME note.
1723  
1724         * configure.in (INTERPSPEC): New spec.
1725         * libgcj.spec.in: Added INTERPSPEC.
1726         * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1727         gnu/gcj/runtime/MethodInvocation.
1728         (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1729         (ordinary_java_source_files): Added above mentioned java classes.
1730  
1731         * configure: Rebuilt.
1732         * Makefile.in: Rebuilt.
1733
1734 1999-08-06  Tom Tromey  <tromey@cygnus.com>
1735
1736         * configure: Rebuilt.
1737         * configure.in: Look for sched_yield in -lrt.
1738
1739 1999-08-06  Mojo Jojo <mojojojo@pacbell.net>
1740
1741         * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1742         ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1743         SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1744         locales.
1745         (toString): Print correctly when `country' is empty.
1746
1747 1999-08-04  Per Bothner <per@bothner.com>
1748
1749         * configure.in:  Also do AC_SUBST for DIVIDESPEC.
1750
1751 1999-08-02  Tom Tromey  <tromey@cygnus.com>
1752
1753         * aclocal.m4, configure: Rebuilt for new libtool.
1754
1755 1999-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
1756
1757         * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1758         * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1759         * java/net/ServerSocket.java: Define ANY_IF.
1760         (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1761         all network interfaces.
1762         * java/net/DatagramSocket.java (DatagramSocket): ditto.
1763         * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1764         null.
1765         * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1766         instead of null.
1767         * java/io/natFile.cc (performMkdir): Remove FIXME.
1768         * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1769
1770 1999-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
1771
1772         * configure.in: Check for bstring.h.
1773         * configure, include/config.h.in: Rebuilt.
1774         * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1775         * java/net/natPlainSocketImpl.cc: Likewise.
1776
1777 1999-07-31  Tom Tromey  <tromey@cygnus.com>
1778
1779         * NEWS: Likewise.
1780         * THANKS: New file.
1781
1782 1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
1783
1784         * configure.in: Check for struct hostent_data and need for
1785         -D_REENTRANT for gethostbyname_r declaration.
1786         * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1787         (lookup): Use hostent_data for fixed_buffer.
1788         * configure, include/config.h.in: Rebuilt.
1789
1790 1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
1791
1792         * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1793         available.  Don't cast memmove args to (void*).
1794         * configure.in: Do not abort if memmove is not available.
1795
1796 1999-07-22  Bryce McKinlay  <bryce@albatross.co.nz>
1797
1798         * java/lang/natString.cc (substring): optimize where substring is
1799         entire String.
1800         * java/io/File.java (getName): don't return separator with file name.
1801         * java/io/natFile.cc (attr): fix overflow.
1802
1803 Sun Jul 25 01:43:34 1999  Anthony Green  <green@cygnus.com>
1804
1805         * mauve-libgcj: Disable Object Serialization tests.
1806
1807 1999-07-20  Warren Levy  <warrenl@cygnus.com>
1808
1809         * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1810         Default to using PlainDatagramSocketImpl.
1811         * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1812
1813 1999-07-19  Tom Tromey  <tromey@cygnus.com>
1814
1815         * include/stamp-h.in: New file.
1816
1817 1999-07-12  Tom Tromey  <tromey@cygnus.com>
1818
1819         * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1820         _UINT32_T.
1821
1822 1999-07-07  Andrew Haley  <aph@cygnus.com>
1823
1824         * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1825         bytes to make it point after the instruction where the trap
1826         occurred.
1827         (HANDLE_DIVIDE_OVERFLOW): Ditto.
1828
1829 1999-07-07  Tom Tromey  <tromey@cygnus.com>
1830
1831         * mauve-libgcj: Explicitly enable formerly disabled java.text
1832         tests.
1833
1834         * mauve-libgcj: Turn off ClassTest test.  Enable java.text tests
1835         again.
1836
1837 Mon Jul  5 12:01:35 1999  Anthony Green  <green@cygnus.com>
1838
1839         * java/net/URL.java (equals): Compare strings using String.equals.
1840         * java/net/URL.java (sameFile): Ditto.
1841
1842 1999-07-02  Warren Levy  <warrenl@cygnus.com>
1843
1844         * configure: Rebuilt.
1845         * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1846         * include/config.h.in: Rebuilt.
1847         * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1848         (mcastGrp): Updated FIXME comments.
1849         (setOption): Fixed typo.
1850         (getOption):Implemented IP_MULTICAST_IF.
1851
1852 1999-07-02  Warren Levy  <warrenl@cygnus.com>
1853
1854         * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1855         * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1856         (getTimeToLive): Implemented.
1857         (setOption): Implemented IP_MULTICAST_IF.
1858
1859 1999-07-01  Bryce McKinlay  <bryce@albatross.co.nz>
1860
1861         * java/lang/String.java (toString): Check for this == null and throw
1862         NullPointerException.
1863
1864 1999-07-01  Warren Levy  <warrenl@cygnus.com>
1865
1866         * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1867         to count and revised comments to match.
1868         * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1869         * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1870         * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1871         * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1872         * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1873         * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1874
1875 1999-07-01  John-Marc Chandonia  <jmc@cmpharm.ucsf.edu>
1876
1877         * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1878         properly as count rather than outlength.
1879         * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1880         output on overflow rather than buffer fill.
1881         * java/io/BufferedReader.java (fill): Don't clear out the buffer
1882         if markPos is 0 and there is still room in the buffer.
1883
1884 1999-07-01  Andrew Haley  <aph@cygnus.com>
1885
1886         * include/i386-signal.h: Replace sigaction () with __sigaction ().
1887         This is a workaround for a bug in glibc's pthreads package which
1888         doesn't deliver any sigcontext information to a signal handler.
1889
1890 1999-06-24  Tom Tromey  <tromey@cygnus.com>
1891
1892         * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1893         * java/lang/fdlibm.h (HUGE): Conditionally define.
1894
1895 Fri May 28 22:20:03 1999  Anthony Green  <green@cygnus.com>
1896
1897         * java/lang/fdlibm.h: Don't use __uint32_t.  Include mprec.h.
1898         * java/lang/e_log.c: Don't use __uint32_t.
1899
1900 1999-05-27  Eric Christopher <echristo@cygnus.com>
1901
1902         * configure: Rebuilt
1903         * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1904         * acconfig.h: Rebuilt
1905         * include/config.h.in: Rebuilt
1906
1907         * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1908         java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1909         e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1910         java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1911         k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1912         java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1913         s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1914         and namespace collision with __uint32_t
1915
1916 1999-06-23  Tom Tromey  <tromey@cygnus.com>
1917
1918         * java/util/zip/InflaterInputStream.java (read): Throw
1919         ZipException if inflater throws a DataFormatException.
1920
1921 1999-06-23  Warren Levy  <warrenl@cygnus.com>
1922
1923         * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1924         * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1925         * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1926         is not final per JDK.
1927         * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1928         public per JDK.
1929         * java/util/zip/DataFormatException.java: Class extends Exception.
1930         * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1931         * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1932         * java/util/zip/ZipInputStream.java: ditto.
1933         (closeEntry): Changed method name to match JDK spec.
1934
1935 1999-06-21  Tom Tromey  <tromey@cygnus.com>
1936
1937         * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1938         From Jeff Sturm.
1939
1940         * Makefile.in: Rebuilt.
1941         * Makefile.am (toolexeclibdir): Define as libdir when
1942         appropriate.
1943         * configure: Rebuilt.
1944         * configure.in (USE_LIBDIR): New conditional.
1945
1946 1999-06-18  Bryce McKinlay  <bryce@albatross.co.nz>
1947
1948         * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1949         hostname in returned InetAddress objects.
1950         (getLocalHostname): Fix typo.
1951         * java/net/InetAddress.java (getByName): Set hostname on return
1952         object.
1953         (getLocalHost): Call lookup directly to ensure that a fully-qualified
1954         name is returned.
1955
1956 1999-06-17  Bryce McKinlay  <bryce@albatross.co.nz>
1957
1958         * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1959         interfaces if host==NULL. 
1960         (accept): Throw message with InterruptedIOException.
1961         (getOption): Cache localAddress.
1962         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1963         'address' for DatagramSocket.
1964         (setTimeToLive): Fix compiler warnings.
1965         (getOption): Cache localAddress.
1966         * java/net/Socket.java (getLocalAddress): Don't need local
1967         InetAddress object. Add FIXME comment about calling checkConnect().
1968         * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1969         connection queue to 50 as per JDK 1.2 docs.
1970         (ServerSocket(int,int)): Listen on all network interfaces by
1971         default, per JDK 1.2 docs.
1972         * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1973         Add localAddress caching. 
1974
1975 1999-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
1976
1977         * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1978         to JDK 1.2 docs.
1979         (write(byte[],int,int)): ditto.
1980
1981 1999-06-14  Bryce McKinlay  <bryce@albatross.co.nz>
1982
1983         * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1984
1985 1999-06-11  Warren Levy  <warrenl@cygnus.com>
1986
1987         * mauve-libgcj: Activated java.net Mauve tests.
1988
1989 1999-06-10  Bryce McKinlay  <bryce@albatross.co.nz>
1990
1991         * java/net/natInetAddress.cc (aton): Fix typos.
1992         (lookup): Use a bigger buffer size for gethostbyname_r on all
1993         versions of glibc. Updated FIXME comment explaining this.
1994         Modified while loops to not set herr = ERANGE to work around glibc 
1995         problems. Use user specified hostname in InetAddress result when
1996         available (consistent with JDK).
1997
1998 1999-06-10  Warren Levy  <warrenl@cygnus.com>
1999
2000         * java/io/FileDescriptor.java (FileDescriptor(String, int)):
2001         Throw FileNotFoundException instead of IOException.
2002         (open): ditto.
2003         * java/io/FileInputStream.java (FileInputStream): Doesn't throw
2004         IOException.
2005         * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
2006         in static field name.
2007         * java/text/DecimalFormat.java: Throw IllegalArgumentException
2008         throughout rather than ParseException.
2009
2010 1999-06-09  Bryce McKinlay  <bryce@albatross.co.nz>
2011
2012         * java/lang/Runtime.java (exec): Convert prog name and arguments
2013         to string array.
2014         * java/lang/natPosixProcess.cc (startProcess): Fix typo in
2015         environment array conversion. Preserve current environment if envp
2016         not passed. Preserve PATH unless explicitly specified.
2017         * java/io/DataInputStream.java (readLine): Fix case where '\r' is
2018         followed by EOF. Set a flag when a line is terminated by '\r' and
2019         ignore following '\n' if set.
2020
2021 1999-06-02  Warren Levy  <warrenl@cygnus.com>
2022
2023         * java/net/URL.java (URL(URL,String)): Initialize port to -1.
2024         Ignore context if spec is an absolute URL.  Fix braindead
2025         string comparison.
2026         (hashCode): Use JDK 1.2 style algorithm.
2027         * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
2028         context URL properly.
2029
2030 1999-05-30  Anthony Green  <green@cygnus.com>
2031
2032         * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
2033         correctly.  Clean up "/../" an\e[Bd "/./" path fragments.
2034
2035 1999-05-28  Warren Levy  <warrenl@cygnus.com>
2036
2037         * java/net/DatagramSocket.java (laddr): Removed.
2038         (DatagramSocket): Removed attempts to get or set laddr if null.
2039         (getLocalAddress): Reimplemented per spec.
2040         * java/net/MulticastSocket.java (setTimeToLive): Throw exception
2041         when ttl is 0.
2042         (joinGroup): Throw NullPointerException if any argument is null.
2043         (leaveGroup): ditto.
2044         * java/net/PlainDatagramSocketImpl.java: Updated comments.
2045         * java/net/PlainSocketImpl.java (timeout): Added.
2046         (getInputStream): Added FIXME comment on how to support timeouts
2047         for TCP.
2048         * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
2049         * java/net/Socket.java: Added FIXME comments to identify
2050         conflicting specs between the JCL and JDK 1.2 documents.
2051         * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
2052         if host is null.  Get localport value resolved by kernel if bind
2053         lport is 0.
2054         (receive): Implemented support for timeouts in UDP.
2055         (setOption): Implemented based on natPlainSocketImpl version.
2056         (getOption): ditto.
2057         * java/net/natPlainSocketImpl.cc (bind): Get localport value
2058         resolved by kernel if bind lport is 0.
2059         (connect): Get localport value resolved by kernel if bind wasn't
2060         done to set localport.
2061         (accept): Implemented support for timeouts for ServerSocket.
2062         (setOption): Save value for SO_TIMEOUT.
2063         (getOption): Return timeout for SO_TIMEOUT.
2064
2065 1999-05-26  Bryce McKinlay <bryce@albatross.co.nz>
2066
2067         * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
2068         * java/net/DatagramSocketImpl.java (getOption): Made abstract.
2069         (setOption): Made abstract.
2070         * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
2071         to avoid cpp conflicts in native code.
2072         * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
2073         cpp conflicts in native code.
2074         * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
2075         * java/net/Socket.java (getLocalAddress): Implemented.
2076         (setTcpNoDelay): Implemented.
2077         (getTcpNoDelay): Implemented.
2078         (setSoLinger): Implemented.
2079         (getSoLinger): Implemented.
2080         (getSoTimeout): Verify class type.
2081         (setSendBufferSize): Implemented.
2082         (getSendBufferSize): Implemented.
2083         (setReceiveBufferSize): Implemented.
2084         (getReceiveBufferSize): Implemented.
2085         (toString): Prepended "Socket".
2086         * java/net/SocketImpl.java (toString): Rewritten.
2087         (getOption): Made abstract.
2088         (setOption): Made abstract.
2089         * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
2090         (setOption): Implemented.
2091         (getOption): Implemented.
2092
2093 1999-05-26  Warren Levy  <warrenl@cygnus.com>
2094
2095         * java/net/DatagramSocket.java (DatagramSocket): Get local host
2096         address when null.  Set SO_REUSEADDR for multicasts.
2097         (getSoTimeout): Implemented.
2098         (setSoTimeout): Implemented.
2099         * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
2100         * java/net/MulticastSocket.java (getInterface): Implemented.
2101         (setInterface): Implemented.
2102         (setTimeToLive): Check for invalid ttl.
2103         (joinGroup): Verify multicast address and security.
2104         (leaveGroup): Verify multicast address and security.
2105         (send): Implemented.
2106         * java/net/PlainDatagramSocketImpl.java (timeout): Added.
2107         (iface): Added.
2108         (ttl): Added.
2109         (setOption): Added.
2110         (getOption): Added.
2111         (mcastGrp): Added.
2112         (getTTL): Implemented as non-native.
2113         (setTTL): ditto.
2114         (join): ditto.
2115         (leave): ditto.
2116         * java/net/ServerSocket.java (setSoTimeout): Implemented.
2117         (getSoTimeout): Implemented.
2118         (setSocketFactory): Made synchronized.
2119         * java/net/Socket.java (setSoTimeout): Implemented.
2120         (getSoTimeout): Implemented.
2121         (close): Made synchronized.
2122         (setSocketImplFactory): Made synchronized.
2123         * java/net/SocketImpl.java: Implement SocketOptions interface.
2124         * java/net/natInetAddress.cc: Corrected module name at top of file.
2125         * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
2126         (bind): Added FIXME.
2127         (peek): Implemented.
2128         (setTTL): Removed.
2129         (getTTL): Removed.
2130         (join): Removed.
2131         (leave): Removed.
2132         (mcastGrp): Added.
2133         (setOption): Implemented for SO_REUSEADDR.
2134         (getOption): Implemented for SO_REUSEADDR.
2135
2136 1999-05-24  Tom Tromey  <tromey@cygnus.com>
2137
2138         * java/util/ResourceBundle.java (getBundle): Throw
2139         NullPointerException if baseName is null.
2140
2141 1999-05-22  Tom Tromey  <tromey@cygnus.com>
2142
2143         * java/util/zip/ZipInputStream.java (fill): New method.
2144         (compressed_len): New instance variable.
2145         (getNextStream): Set it.
2146         (read): Reset inflater on EOF.  Only read via `super' if entry is
2147         deflated.
2148         (skip): Only skip via `super' if entry is deflated.
2149         * java/util/zip/Deflater.java (last_input_count): Removed.
2150         * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
2151         is length 0.
2152         (needsInput): Don't use last_input_count.
2153         (setInput): Don't set last_input_count.
2154         * java/util/zip/natInflater.cc (getRemaining): Return correct
2155         result.
2156         (inflate): Return 0 if input array is length 0.
2157         (setInput): Don't set last_input_count.
2158         * java/util/zip/Inflater.java (last_input_count): Removed.
2159
2160 1999-05-21  Tom Tromey  <tromey@cygnus.com>
2161
2162         * Makefile.in: Rebuilt.
2163         * Makefile.am (INCLUDES): Added $(ZINCS).
2164         * configure: Rebuilt.
2165         * configure.in (ZINCS): New subst.
2166
2167 1999-05-21  Andrew Haley  <aph@cygnus.com>
2168
2169         * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
2170         to signal options to allow the same exceptions to be rethrown
2171         later.
2172
2173 1999-05-20  Andrew Haley  <aph@cygnus.com>
2174
2175         * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
2176         added.
2177         * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
2178         (INIT_FPE): Exception string made more informative.
2179         * include/sparc-signal.h (INIT_FPE): Exception string made more
2180         informative.
2181         * testsuite/libjava.lang/Divide_1.java: New file.
2182         * testsuite/libjava.lang/Divide_1.out: New file.
2183
2184 1999-05-19  Tom Tromey  <tromey@cygnus.com>
2185
2186         * aclocal.m4, configure: Rebuilt.
2187         * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2188
2189         * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2190         method.
2191
2192         * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2193         Include <stdlib.h>.
2194         * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2195         Include <stdlib.h>.
2196         (update): Fail in default case.  Always initialize `strat'.
2197
2198         * mauve-libgcj: Enable java.util.zip.
2199
2200 1999-05-18  Warren Levy  <warrenl@cygnus.com>
2201
2202         * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2203         DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2204         PlainDatagramSocketImpl.java, and SocketOptions.java.
2205         (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2206         * Makefile.in: Rebuilt.
2207
2208         * java/net/DatagramPacket.java: New file.
2209         * java/net/DatagramSocket.java: New file.
2210         * java/net/DatagramSocketImpl.java: New file.
2211         * java/net/MulticastSocket.java: New file.
2212         * java/net/PlainDatagramSocketImpl.java: New file.
2213         * java/net/SocketOptions.java: New file.
2214         * java/net/natPlainDatagramSocketImpl.cc: New file.
2215
2216 1999-05-18  Tom Tromey  <tromey@cygnus.com>
2217
2218         * java/util/zip/ZipOutputStream.java (level): Initial value is
2219         Deflater.DEFAULT_COMPRESSION.
2220         (close): New method.
2221         (closeEntry): Likewise.
2222         (finish): Likewise.
2223         (put_version): Likewise.
2224         (write_entry): Likewise.
2225         (put2, put4): Now return `int'.
2226         (comment): Default to empty string.
2227         (bytes_written): New instance variable.
2228         (chain): Likewise.
2229         * java/util/zip/ZipEntry.java (setComment): Limit length of
2230         comment string.
2231         (setCrc): Check CRC validity.
2232         (setExtra): Check argument validity.
2233         (setMethod): Likewise.
2234         (setSize): Likewise.
2235         (ZipEntry): Likewise.
2236         * include/javaprims.h: Updated namespace declarations.
2237         * Makefile.in: Rebuilt.
2238         * Makefile.am (ordinary_java_source_files): Mention new files.
2239         (nat_source_files): Likewise.
2240         * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2241         EOFException.
2242         (read4): Likewise.
2243         (getInputStream): Handle compressed entries.
2244         * java/util/zip/GZIPOutputStream.java: New file.
2245         * java/util/zip/GZIPInputStream.java: New file.
2246         * java/util/zip/DataFormatException.java: New file.
2247         * java/util/zip/CheckedInputStream.java: New file.
2248         * java/util/zip/CheckedOutputStream.java: New file.
2249         * java/util/zip/InflaterInputStream.java: Implemented.
2250         * java/util/zip/natInflater.cc: New file.
2251         * java/util/zip/Deflater.java: Implemented.
2252         * java/util/zip/natDeflater.cc: New file.
2253         * java/util/zip/DeflaterOutputStream.java: Implemented.
2254
2255         * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2256         ZipException, not IOException.
2257         * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2258         not IOException.
2259
2260 1999-05-17  Tom Tromey  <tromey@cygnus.com>
2261
2262         * java/lang/natSystem.cc (init_properties): URL now points to
2263         sourceware.
2264
2265 1999-05-12  Per Bothner  <bothner@cygnus.com>
2266
2267         * java/util/Calendar.java (set):  First call computeFields if needed.
2268         * java/util/natGregorianCalendar.cc (computeTime):  Cast 1000 to jlong.
2269         
2270 1999-05-12  Tom Tromey  <tromey@cygnus.com>
2271
2272         * configure: Rebuilt.
2273         * configure.in: Look for -ldl when using the Boehm collector.
2274         Look for sched_yield in -lposix4.
2275
2276 1999-05-12  Per Bothner  <bothner@cygnus.com>
2277
2278         * java/io/File.java (mkdirs):  Handle a null parent directory.
2279
2280 1999-05-12  Tom Tromey  <tromey@cygnus.com>
2281
2282         * include/javaprims.h: Updated namespace declarations.
2283         * classes.pl (scan): Uniquify class list.
2284         * Makefile.in, configure: Rebuilt.
2285         * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2286         (built_java_source_files): New macro.
2287         (nat_headers): Added built_java_source_files.
2288         (javao_files): Likewise.
2289         (EXTRA_libgcj_la_SOURCES): Likewise.
2290         (libgcj.zip): Create built class files.
2291         ($(built_java_source_files:.java=.class)): New target.
2292         (jv_convert_LDADD): Added -L$(here)/.libs.
2293         * configure.in: Create links for ConcreteProcess.java and
2294         natConcreteProcess.cc.
2295         * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2296         * java/lang/natEcosProcess.cc: New file.
2297         * java/lang/EcosProcess.java: New file.
2298         * java/lang/PosixProcess.java: New file.
2299         * java/lang/natPosixProcess.cc: New file.
2300
2301 1999-05-12  Warren Levy  <warrenl@cygnus.com>
2302
2303         * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2304         * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2305         * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2306         (connect): Throw ConnectException.
2307
2308 1999-05-11  Tom Tromey  <tromey@cygnus.com>
2309
2310         * Makefile.in: Rebuilt.
2311         * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2312         * libgcj.spec.in: Don't use `+'.  Instead, put old lib spec after
2313         our libraries.
2314
2315         * Makefile.in: Rebuilt.
2316         * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2317         and it causes problems with libtool.
2318
2319         * Makefile.in, configure: Rebuilt.
2320         * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2321         (jv_convert_LDADD): Added ZLIBS.  Removed -lm, -lc, -lgcc.
2322         (jv_convert_DEPENDENCIES): Added ZDEPS.
2323         * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2324         directory.
2325         (THREADSPEC): Added `-L' to point to qthreads build directory.
2326         (ZLIBS): New subst.
2327         (ZDEPS): New subst.
2328
2329         * configure, Makefile.in: Rebuilt.
2330         * Makefile.am (toolexeclib_DATA): New macro.
2331         * configure.in: Create libgcj.spec.  Look for -lsocket and -lnsl.
2332         Recognize --with-system-zlib.
2333         (GCSPEC): New subst.
2334         (THREADSPEC): New subst.
2335         (SYSTEMSPEC): New subst.
2336         (ZLIBSPEC): New subst.
2337         * libgcj.spec.in: New file.
2338
2339 1999-05-10  Tom Tromey  <tromey@cygnus.com>
2340
2341         * java/io/InputStreamReader.java (read): If length is 0, return
2342         0.  Reset `wpos' and `wcount' when buffer has been filled and
2343         emptied.
2344
2345         * java/util/Properties.java (save): Removed `FIXME' comment.
2346         (load): Invalid characters in \u now treated as terminators.
2347         Make sure to append character resulting from `\' handling.
2348         Cast to `char' when appending to key or value.
2349         (skip_ws): Inverted test for whitespace.
2350
2351         * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2352         `FIXME' comment.
2353         (readLine): Likewise.
2354         (readFully): Implemented.
2355
2356         * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2357
2358         * java/awt/natToolkit.cc: Added copyright header.
2359         * java/util/zip/InflaterInputStream.java: Added copyright header.
2360
2361         * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2362         comment.
2363         * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2364         `FIXME' comment.
2365         (getNextStream): Likewise.
2366
2367         * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2368         locale.toString().
2369         (getBundle): Don't explicitly throw null pointer exception.
2370
2371         * gnu/gcj/RawData.java: Added copyright header.
2372
2373         * include/jni.h (_Jv_va_list): Always define as va_list.
2374
2375 1999-05-9  Anthony Green  <green@cygnus.com>
2376
2377         * java/text/DateFormat.java (computeInstance): Separate time
2378         and date styles.
2379         (getDateTimeInstance): Ditto.
2380         (getDateTimeInstance(int,int)): New method.
2381
2382         * Makefile.in: Rebuilt.
2383         * Makefile.am (ordinary_java_source_files): Add new classes.
2384
2385         * java/util/PropertyResourceBundle.java: New file.
2386         * gnu/gcj/util/EnumerationChain.java: New file.
2387
2388 1999-05-07  Tom Tromey  <tromey@cygnus.com>
2389
2390         * acconfig.h (GCJVERSION): New undef.
2391         * java/lang/natSystem.cc (init_properties): Define java.version,
2392         java.class.version, os.name, os.arch, os.version.
2393         Include <sys/utsname.h> if required.
2394         * configure: Rebuilt.
2395         * configure.in: Compute and define GCJVERSION.
2396
2397         * java/lang/natSystem.cc (default_file_encoding): Now static.
2398
2399         * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2400
2401         * libtool-version: New file.
2402         * Makefile.in: Rebuilt.
2403         * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2404         -release.
2405
2406         * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2407         Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2408         again (oops).
2409
2410         * mauve-libgcj: Test more from java.text.  Don't mention 1.1 tests
2411         (we pick those up already).
2412
2413 1999-05-05  Per Bothner  <bothner@cygnus.com>
2414
2415         * java/awt/*:  Check a bunch of classes, a few complete, but mostly
2416         stub classes.  (This is enough to get Kawa to compile against libgcj.)
2417
2418         * gnu/gcj/RawData.java:  New class.
2419         * doc/cni.sgml:  Document RawData.
2420
2421         * java/util/zip/InflaterInputStream.java:  New stub class.
2422         * java/util/zip/ZipInputStream.java:  New class.  Partly works.
2423         * java/util/zip/ZipConstants.java:  Add two (internal) constants.
2424         * java/util/zip/ZipEntry.java (timeFromDOS):  New static method.
2425         * java/util/zip/ZipFile.java:  Now mostly works (unless compressed).
2426         * java/util/zip/ZipOutputStream.java:  Start implementation.
2427         
2428         * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING):  New macro.
2429         (default_file_encoding):  New global, initial value is above macro.
2430         (init_properties):  Default file.encoding to default_file_encoding.
2431         
2432         * Makefile.am:  Add new classes.
2433
2434 1999-05-05  Tom Tromey  <tromey@cygnus.com>
2435
2436         * Makefile.in: Rebuilt.
2437         * Makefile.am (CLEANFILES): Don't mention $(class_files).
2438         (clean-local): New target
2439
2440         * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2441         (load, loadLibrary): Now native.
2442         (init): New method.
2443         * java/lang/Runtime.java (load, loadLibrary): Now native.
2444         (init): New native method.
2445         (Runtime): Use init.
2446         * prims.cc: Include <ltdl.h> if required.
2447         (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2448
2449 1999-05-05  Gilles Zunino  <Gilles.Zunino@hei.fr>
2450
2451         * configure.in: Switch from irix threads to posix threads
2452         * configure: Regenerate.
2453
2454 1999-04-30  Tom Tromey  <tromey@cygnus.com>
2455
2456         * Makefile.in: Rebuilt.
2457         * Makefile.am (jv_convert_LDADD): Added -lgcc.
2458
2459 1999-04-29  Tom Tromey  <tromey@cygnus.com>
2460
2461         * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2462         vector when shared.
2463
2464         * java/util/Locale.java (Locale(String,String)): Implement in
2465         terms of 3-argument version; variant now defaults to empty
2466         string.
2467         (toString): Assume variant is not null.
2468         (equals): Assume all strings are not null.
2469         (Locale): Throw NullPointerException if any argument is null.
2470
2471         * java/util/ResourceBundle.java (getBundle): Don't try the base
2472         name; now implicit in partialGetBundle call.
2473         (trySomeGetBundle): Search for parent bundles and call setParent
2474         as required.
2475         (partialGetBundle): Added `langStop' argument.  Use
2476         `Locale.toString' to compute bundleName.
2477         (resource_cache): New static field.
2478         (partialGetBundle): Cache the returned resource bundle.  Now
2479         synchronized.
2480
2481         * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2482         missing `<'.
2483
2484         * mauve-libgcj: Enable Collator and RuleBasedCollator.
2485         * java/text/natCollator.cc (decomposeCharacter): `base' now
2486         `const'.
2487         * Makefile.in: Rebuilt.
2488         * Makefile.am (ordinary_java_source_files): Added
2489         CollationElementIterator, CollationKey, Collator,
2490         RuleBasedCollator.
2491         (nat_source_files): Added natCollator.cc.
2492         * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2493         (compare): Pass `this' to CollationElementIterator constructor.
2494         (getCollationElementIterator): Likewise.
2495         (ceiNext): Fix off-by-one error when finding initial substring.
2496         (next): Correctly mask off bits when computing return value.
2497         Fixed return values when one string is shorter than the other.
2498         * java/text/CollationElementIterator.java (collator): New field.
2499         (CollationElementIterator): Added collator argument.
2500         (next): Call ceiNext on collator object.
2501
2502 1999-04-26  Tom Tromey  <tromey@cygnus.com>
2503
2504         * natCollator.cc: New file.
2505
2506         * java/util/GregorianCalendar.java (setDefaultTime): New method.
2507         (GregorianCalendar): Use it in all constructors.
2508         * java/util/Calendar.java (Calendar): Changed argument name to
2509         `zone' to match code.
2510
2511         * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2512         * java/text/CollationKey.java: New file.
2513         * java/text/CollationElementIterator.java: New file.
2514         * java/text/Collator.java: New file.
2515         * java/text/RuleBasedCollator.java: New file.
2516
2517         * Makefile.in: Rebuilt.
2518         * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2519         (jv_convert_LDADD): Explicltly add -lm -lc.
2520
2521 1999-04-26  Tom Tromey  <tromey@cygnus.com>
2522
2523         * configure, Makefile.in: Rebuilt.
2524         * configure.in: Added AM_PROG_LIBTOOL.
2525         (GCOBJS): Use `.lo' form of files.
2526         (THREADOBJS): Likewise.
2527         (GCDEPS): Use `.la' form of library.
2528         (GCLIBS): Set to be the same as GCDEPS.
2529         (THREADDEPS): Use `.la' form of library.
2530         (THREADLIBS): Set to be the same as THREADDEPS.
2531         * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2532         toolexeclib_LIBRARIES.
2533         (libgcj_la_SOURCES): Renamed for libtoolization.
2534         (EXTRA_libgcj_la_SOURCES): Likewise.
2535         (libgcj_la_DEPENDENCIES): Likewise.
2536         (libgcj_la_LIBADD): Likewise.
2537         ($(nat_files)): Use LTCXXCOMPILE.
2538         ($(c_files)): Use LTCOMPILE.
2539         (GCJCOMPILE): New macro.
2540         (.class.o): Use it.
2541         (.java.o): Likewise.
2542         ($(javao_files)): Likewise.
2543         (jv_convert_LINK): Use LIBTOOL.
2544         (nat_files): Use `.lo' files.
2545         (c_files): Likewise.
2546         (javao_files): Likewise.
2547         (.class.lo): Renamed.
2548         (.java.lo): Likewise.
2549         ($(nat_files)): Depend on %.lo.
2550         ($(c_files)): Likewise.
2551         ($(javao_files)): Likewise.
2552         (jv_convert_LDADD): Link against .lo files.
2553         (jv_convert_DEPENDENCIES): Depend on .lo files.
2554         (maintainer-check): Depend on libgcj.la, but examine .a file.
2555         (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2556         (libgcj_la_LDFLAGS): New macro.
2557
2558 1999-04-23  Warren Levy  <warrenl@cygnus.com>
2559
2560         * Makefile.am: Added URLDecoder and URLEncoder.
2561         * Makefile.in: Rebuilt.
2562
2563         * java/net/ServerSocket.java (setSocketFactory): Renamed from
2564         setSocketImplFactory to match spec.
2565         * java/net/Socket.java (getSoLinger): Changed return type to
2566         match spec.
2567
2568         * java/net/URLDecoder.java: New file.
2569         * java/net/URLEncoder.java: New file.
2570
2571 1999-04-21  Tom Tromey  <tromey@cygnus.com>
2572
2573         * java/lang/natString.cc (getBytes): Reverted earlier change and
2574         applied correct fix from Per Bothner.
2575
2576         * java/lang/String.java: Don't throw
2577         UnsupportedEncodingException.
2578
2579         * java/lang/natString.cc (getBytes): Correctly size result
2580         buffer.  From Bryce McKinlay <bryce@albatross.co.nz>.
2581
2582 1999-04-20  Andrew Haley  <aph@cygnus.com>
2583
2584         * include/sparc-signal.h: new file.
2585         * configure.in: include/sparc-signal.h added.
2586         * configure: regenerated.
2587         * prims.cc (JvRunMain): signal handling code rewritten to be more
2588         portable.
2589         (catch_segv): ditto.
2590         (catch_fpe): ditto.
2591         * include/i386-signal.h: reorganized.
2592         * include/default-signal.h: reorganized.
2593
2594 1999-04-19  Tom Tromey  <tromey@cygnus.com>
2595
2596         * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2597         once.  From Anthony Green.
2598
2599 1999-04-19  Andrew Haley  <aph@cygnus.com>
2600
2601         * Makefile.in: Processed with new automake.
2602
2603 1999-04-19  Tom Tromey  <tromey@cygnus.com>
2604
2605         * include/javaprims.h: Removed security namespace.
2606
2607 1999-04-20  Anthony Green  <green@cygnus.com>
2608
2609         * java/io/PrintStream.java (println): Remove extra println.
2610
2611 1999-04-19  Anthony Green  <green@cygnus.com>
2612
2613         * Makefile.in: Rebuilt.
2614         * Makefile.am (ordinary_java_source_files): Add new security files.
2615
2616         * java/security/NoSuchAlgorithmException.java,
2617         java/security/MessageDigest.java: New files.
2618
2619         * include/javaprims.h: Add security namespace.
2620
2621 1999-04-16  Per Bothner  <bothner@cygnus.com>
2622
2623         * gnu/gcj/convert/JIS0201.h:  New file, generated from Unicode table.
2624         * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2625         * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2626         * gnu/gcj/convert/Output_EUCJIS.java:  New UnicodeToBytes class.
2627         * gnu/gcj/convert/Output_SJIS.java:  New UnicodeToBytes class.
2628         * gnu/gcj/convert/natInput_EUCJIS.cc:  New file.
2629         * gnu/gcj/convert/natInput_SJIS.cc:  New file.
2630         * gnu/gcj/convert/natOutput_EUCJIS.cc:  New file.
2631         * gnu/gcj/convert/natOutput_SJIS.cc:  New file.
2632         * gnu/gcj/convert/make-trie.c:  New file: functions to make a trie.
2633         * gnu/gcj/convert/gen-from-JIS.c:  Invoke make-trie for output.
2634         * gnu/gcj/convert/Unicode_to_JIS.cc:  New generated trie table.
2635         * Makefile.am:  Various changes for new files and conversions.
2636
2637         * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2638         New overloading, allows greater efficiency.
2639         * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2640         New overloading (for efficiency - avoids copying).
2641
2642         * gnu/gcj/convert/Output_UTF8.java:  Fix typo: 0xC0 -> 0c3F.
2643         * gnu/gcj/convert/Input_UTF8.java:  Fix typos in bit masks.
2644
2645         * java/io/InputStreamReader.java (<init>):  Set super.in correctly.
2646         * java/io/OutputStreamWriter.java (<init>):  Set super.in correctly.
2647         (writeChars):  Don't be quite so eager to flush.
2648         * java/io/PrintStream.java:  Rewrite.  Now more similar to
2649         OutputStreamWriter, using explicit UnicodeToBytes converter.
2650         Also, autoflush does not need to flush so often.
2651         * java/lang/natString.cc (getBytes):  More efficient algorithm.
2652         (init(jbyteArray,jint,jint,jstring)):  More efficient.
2653         
2654 1999-04-15  Warren Levy  <warrenl@cygnus.com>
2655
2656         * Makefile.am (ordinary_java_source_files): Added new Connection 
2657         and Handler classes in gnu.gcj.protocol.file package.
2658         * Makefile.in: Rebuilt.
2659
2660         * gnu/gcj/protocol/file/Connection.java: New file.
2661         * gnu/gcj/protocol/file/Handler.java: New file.
2662         * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2663         if doInput allows input.
2664         (getOutputStream): Check if doOutput allows output.
2665         * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2666
2667 1999-04-14  Tom Tromey  <tromey@cygnus.com>
2668
2669         * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2670         buffer larger to work around bug.
2671         From Bryce McKinlay <bryce@albatross.co.nz>.
2672
2673 1999-04-14  Andrew Haley  <aph@cygnus.com>
2674
2675         * java/lang/natDouble.java (doubleToLongBits): ensure that all
2676         NaNs are always converted to the same long value.  
2677         * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2678         converted to int.
2679
2680 1999-04-13  Tom Tromey  <tromey@cygnus.com>
2681
2682         * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2683         instead switch on actual element type.
2684
2685         * Makefile.in: Rebuilt.
2686         * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2687
2688 1999-04-13  Andrew Haley  <aph@cygnus.com>
2689
2690         * include/i386-signal.h, include/default-signal.h: New files.   
2691         * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2692         handler.
2693         (catch_fpe): New function.      
2694         * configure.in: Make link to appropriate include/java-signal.h.
2695         * configure: Rebuilt.
2696         * Makefile.am: include/java-signal.h added to dependency list.
2697         * Makefile.in: Rebuilt.
2698
2699 1999-04-12  Urban Widmark <urban@svenskatest.se>
2700
2701         * java/io/DataInputStream.java (readLine): Corrected handling of
2702         empty lines, from null to "".
2703
2704 1999-04-12  Tom Tromey  <tromey@cygnus.com>
2705
2706         * Makefile.in: Rebuilt.
2707         * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2708
2709         * java/lang/natSystem.cc (SystemClass): New define.
2710         (init_properties): Synchronize.
2711
2712 1999-04-08  Geoff Berry  <gcb@gnu.org>
2713
2714         * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2715         * natPlainSocketImpl.cc (accept): Add missing else if check
2716         for AF_INET6.
2717
2718 1999-04-08  Tom Tromey  <tromey@cygnus.com>
2719
2720         * java/lang/Long.java (parseLong): Corrected overflow detection
2721         code.
2722         * java/lang/Integer.java (parseInt): Corrected overflow detection
2723         code.
2724
2725         * java/io/PrintStream.java (print): Handle null string argument.
2726         (println): Likewise.
2727
2728 1999-04-07  Warren Levy  <warrenl@cygnus.com>
2729
2730         * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2731         Set count to 0 when InputStreamReader returns -1 for EOF.
2732
2733 1999-04-07  Tom Tromey  <tromey@cygnus.com>
2734
2735         * mauve-libgcj: Omit java.text.Collator,
2736         java.text.RuleBasedCollator.
2737
2738 1999-04-06  Tom Tromey  <tromey@cygnus.com>
2739
2740         * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2741         IOException from getHttpHeaders().
2742         (getHeaderFieldKey): Likewise.
2743
2744         * include/javaprims.h: Regenerated declarations.
2745
2746         * Makefile.in: Rebuilt.
2747         * Makefile.am (ordinary_java_source_files): Updated for removed
2748         files.
2749
2750 1999-04-06  Per Bothner  <bothner@cygnus.com>
2751
2752         * java/util/zip/Adler32.java:  New class.
2753         * java/util/zip/CRC32.java:  Add working method bodies.
2754         * Makefile.am (ordinary_java_source_files):  Add new Adler32 class.
2755         * Makefile.in:  Re-generate.
2756
2757 Tue Apr  6 18:28:42 1999  Warren Levy  <warrenl@cygnus.com>
2758
2759         * gnu/gcj/protocol/http/Connection.java: New file.  Rewritten
2760         from version in removed www hierarchy.
2761         * gnu/gcj/protocol/http/Handler.java: New file.  Copied from
2762         version in removed www hierarchy.
2763
2764         * gnu/gcj/www/protocol/http/Connection.java: Removed.
2765         * gnu/gcj/www/protocol/http/Handler.java: Removed.
2766         * gnu/gcj/www/protocol/http: Removed dir.
2767         * gnu/gcj/www/protocol: Removed dir.
2768         * gnu/gcj/www: Removed dir.
2769
2770         * java/net/HttpURLConnection.java: Revised comments to indicate
2771         missing JDK 1.2 methods.
2772
2773         * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2774         hierarchy rather than the gnu/gcj/www/protocol one.
2775         * java/net/URLConnection.java: Updated status comments.
2776         (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2777         the gnu/gcj/www/content one.
2778
2779 1999-04-06  Per Bothner  <bothner@cygnus.com>
2780
2781         * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2782         The gen-from-JIS program is in $(CONVERT_DIR).
2783
2784 1999-04-06  Tom Tromey  <tromey@cygnus.com>
2785
2786         * mauve-libgcj: Renamed from mauve-libjava.
2787
2788 Tue Apr  6 03:18:38 1999  Warren Levy  <warrenl@cygnus.com>
2789
2790         * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2791         (getResponseMessage): Implemented.
2792         (getResponseVals): New private method.
2793
2794         * java/net/URLConnection.java (getContent): Implemented.
2795         (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2796
2797 1999-04-05  Tom Tromey  <tromey@cygnus.com>
2798
2799         * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2800         (jv_convert_SOURCES): Renamed.
2801         (EXTRA_jv_convert_SOURCES): Likewise.
2802         (jv_convert_LDFLAGS): Likewise.
2803         (jv_convert_LINK): Likewise.
2804         (jv_convert_LDADD): Likewise.
2805         (jv_convert_DEPENDENCIES): Likewise.
2806
2807         * Makefile.in: Rebuilt.
2808         * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2809         tooldir.
2810
2811 Mon Apr  5 02:14:35 1999  Warren Levy  <warrenl@cygnus.com>
2812
2813         * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2814         method for comparison.
2815
2816         * java/net/URLConnection.java (getContentLength): Implemented.
2817         (getContentType): Implemented.
2818         (getContentEncoding): Implemented.
2819         (getExpiration): Implemented.
2820         (getDate): Implemented.
2821         (getLastModified): Implemented.
2822         (getHeaderFieldInt): Implemented.
2823         (getHeaderFieldDate): Implemented.
2824
2825 Fri Apr  2 18:04:52 1999  Warren Levy  <warrenl@cygnus.com>
2826
2827         * java/net/URLConnection.java (toString): Implemented.
2828         (setContentHandlerFactory): Implemented.
2829         (setContentHandler): Wrote new private helper method.
2830
2831 1999-04-01  Tom Tromey  <tromey@cygnus.com>
2832
2833         * Makefile.in: Rebuilt.
2834         * Makefile.am ($(java_source_files:.java=.class): Reverted change
2835         of 1999-03-31; we always want to build all the .class files.
2836         Depend on java_source_files, not libgcj.zip.
2837         (nat_headers): Define in terms of ordinary_java_source_files.
2838
2839 1999-03-31  Tom Tromey  <tromey@cygnus.com>
2840
2841         * Makefile.in: Rebuilt.
2842         * Makefile.am (special_java_source_files): New macro.
2843         (java_source_files): Use it.
2844         (ordinary_java_source_files): New macro.
2845         (java_source_files): Use it.
2846         ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2847         creating headers for those files with hand-maintained headers.
2848
2849         * include/javaprims.h: Regenerated namespace declarations.
2850         * classes.pl (scan): Include [0-9] in regexp for matching class
2851         names; for java.util.zip.CRC32.
2852
2853         * Makefile.in: Rebuilt.
2854         * Makefile.am (nat_headers): Redefined to generate all possible
2855         header files.
2856
2857         * java/util/zip/ZipException.java: In package java.util.zip, not
2858         java.net.
2859
2860 1999-03-30  Tom Tromey  <tromey@cygnus.com>
2861
2862         * configure: Rebuilt.
2863         * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2864         eh-common.h when not building in tree with gcc.
2865
2866         * Makefile.in: Rebuilt.
2867         * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2868         $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2869         nat_headers.
2870         ($(java_source_files:.java=.class)): New target.
2871
2872         * Makefile.in: Rebuilt.
2873         * Makefile.am (java_source_files): Added
2874         java/net/HttpURLConnection.java and
2875         gnu/gcj/www/protocol/http/Connection.java.
2876
2877 Tue Mar 30 15:20:45 1999  Warren Levy  <warrenl@cygnus.com>
2878
2879         * gnu/gcj/www/protocol/http/Connection.java: New file.
2880         * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2881         * java/net/HttpURLConnection.java: New file.
2882         * java/net/URLConnection.java (getHeaderField): Implemented default.
2883         (getHeaderFieldKey): Implemented default method.
2884
2885 1999-03-30  Tom Tromey  <tromey@cygnus.com>
2886
2887         * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2888
2889         * java/util/zip/Deflater.java: Added copyright header.
2890         * java/util/zip/CRC32.java: Added copyright header.
2891
2892         * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2893         that it is automatically generated.
2894         ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2895
2896         * gnu/gcj/convert/BytesToUnicode.java,
2897         gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2898         gnu/gcj/convert/Input_EUCJIS.java,
2899         gnu/gcj/convert/Input_UTF8.java,
2900         gnu/gcj/convert/JIS0208_to_Unicode.cc,
2901         gnu/gcj/convert/JIS0212_to_Unicode.cc,
2902         gnu/gcj/convert/Output_8859_1.java,
2903         gnu/gcj/convert/Output_JavaSrc.java,
2904         gnu/gcj/convert/Output_UTF8.java,
2905         gnu/gcj/convert/UnicodeToBytes.java,
2906         gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2907
2908         * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2909
2910         * Makefile.in, configure: Rebuilt.
2911         * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2912         not if test subdir exists.
2913         (--enable-gcj-classes): Removed; gcj always used to generate
2914         .class files.
2915         (JAVA, JAVAC): Removed.
2916         (--enable-single-compilation, --enable-source-compilation):
2917         Removed.
2918         (here): New subst.
2919         (NATIVE): New conditional.
2920         * Makefile.am (toolexecdir): Renamed from tooldir to allow
2921         `install-exec' to work.
2922         (toolexeclibdir): Likewise.
2923         (toollib_LIBRARIES): Likewise.
2924         (AM_MAKEFLAGS): Don't pass tooldir.
2925         (JAVAC): New macro.
2926         (javao_files): Redefined.
2927         (java_source_files): New macro.
2928         (c_source_files): New macro.
2929         (c_files): Redefined in terms of c_source_files.
2930         (java_io_files, java_lang_files, java_net_files, java_text_files,
2931         java_util_files, gnu_files, java_files): Removed.
2932         (class_io_files, class_lang_files, class_net_files,
2933         class_text_files, class_util_files, class_gnu_files, class_files):
2934         Removed.
2935         (nat_source_files): New macro.
2936         (nat_files): Redefined in terms of nat_source_files.
2937         (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2938         java_source_files.  Removed no-such-file.c.
2939         (here): Removed.
2940         (ETAGS_ARGS): Removed.
2941         (TAGS_DEPENDENCIES): Likewise.
2942         (libgcj.zip): Depend on java_source_files.  Use $(here) and not
2943         pwd in rule.
2944         (src_io_files, src_lang_files, src_text_files, src_util_files,
2945         src_gnu_files): Removed.
2946         Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2947         (BUILT_SOURCES): Removed.
2948         (header-check): New target.
2949         (javadir): Removed.
2950         (noinst_PROGRAMS): New macro.
2951         ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2952         on MAINTAINER_MODE.
2953         ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2954         (gen-from-JIS): Build in top directory.
2955         (convert_source_files): New macro.
2956         (convert_SOURCES): New macro.
2957         (convert_LDFLAGS): Likewise.
2958         (convert_LINK): Likewise.
2959         (convert_LDADD): Likewise.
2960         (convert_DEPENDENCIES): Likewise.
2961         (convert): Removed.
2962         (gen-from-JIS): Removed.
2963         (gen_from_JIS_SOURCES): New macro.
2964         (gen_from_JIS_LDADD): Likewise.
2965         (gen_from_JIS_DEPENDENCIES): Likewise.
2966
2967         * configure: Rebuilt.
2968         * configure.in (CANADIAN): Set to `yes', not `canadian'.
2969         (NULL_TARGET): Initialize to `no'.  Correctly examine $NULL_TARGET
2970         when defining conditional.
2971
2972 Tue Mar 30 10:36:27 1999  Per Bothner  <bothner@cygnus.com>
2973
2974         * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  Remove these files.
2975         The Unicode Consortium does not permit their re-distribution.
2976         * Makefile.am, Makefile.in:  Add comments with URLs for removed files.
2977         (JIS0208.h, JIS0212.h):  Do not depend on removed files.
2978
2979 Mon Mar 29 18:58:13 1999  Per Bothner  <bothner@cygnus.com>
2980
2981         * natSystem.c (init_properties):  Use malloc, realloc, free after all.
2982
2983 Mon Mar 29 13:41:02 1999  Per Bothner  <bothner@cygnus.com>
2984
2985         * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  New mapping tables
2986         from Unicode Consortium.
2987         * gnu/gcj/convert/{JIS0208.h,JIS0212.h}:  New generated headers.
2988         * gnu/gcj/convert/gen-from-JIS.c:  New utility for maintainers only.
2989         * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2990         New tables, generated using gen-from-JIS.
2991         * gnu/gcj/convert/Output_JavaSrc.java:  New UnicodeToBytes class.
2992         * gnu/gcj/convert/Output_UTF8.java:  Fix bug.
2993         * gnu/gcj/convert/Input_EUCJIS.java:  New BytesToUnicode class.
2994         * gnu/gcj/convert/natInput_EUCJIS.cc:  Native methods for new class.
2995
2996         * gnu/gcj/convert/Convert.java:  New application.
2997         * Makefile.am, Makefile.in (convert):  New program, using Convert.
2998         Build the various JIS conversion tables (in maintainer mode).
2999
3000 Fri Mar 26 16:51:30 1999  Warren Levy  <warrenl@cygnus.com>
3001
3002         * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
3003
3004         * java/net/URL.java (URL): Deal with null property value.  Use "."
3005         as separator in building class name.
3006         * java/net/URLConnection.java: Implemented majority of stubbed methods.
3007         * java/net/URLStreamHandler.java (parseURL): Use "" in string
3008         manipulations instead of 'null'.  Comment cleanup.  Use 0 for the
3009         beginning of the substring rather than 'start'.
3010
3011 1999-03-26  Tom Tromey  <tromey@cygnus.com>
3012
3013         * include/java-chartables.h: Rebuilt.
3014         * include/java-chardecomp.h: New file.
3015         * chartables.pl: Generate output files directly.  Added support
3016         for generating decomposition header.
3017         (canonical_decomposition, full_decomposition): New globals.
3018         (DECOMPOSITION): New constant.
3019         (process_char): Call add_decomposition.
3020         (add_decomposition): New sub.
3021         (write_decompositions): New sub.
3022
3023 1999-03-25  Tom Tromey  <tromey@cygnus.com>
3024
3025         * java/text/CollationElementIterator.java: New file.
3026
3027         * mauve-libjava: Omit StringTest.
3028
3029 Wed Mar 24 15:17:49 1999  Warren Levy  <warrenl@cygnus.com>
3030
3031         * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
3032         without a '/' when parsing protocol.  Handle ref outside of parseURL.
3033         (hashCode): Implemented.
3034         (set): Don't expand -1 to default port.
3035         (getDefaultPort): Removed.
3036
3037         * java/net/URLStreamHandler.java (parseURL): Implemented.
3038         (toExternalForm): Implemented.
3039
3040 1999-03-23  Tom Tromey  <tromey@cygnus.com>
3041
3042         * java/text/BreakIterator.java (getSentenceInstance):
3043         Implemented.
3044         * gnu/gcj/text/SentenceBreakIterator.java: New file.
3045
3046         * Makefile.in: Rebuilt.
3047         * Makefile.am (nat_headers): Added IllegalAccessException.
3048         * java/lang/natClass.cc (newInstance): Throw
3049         IllegalAccessException, not IllegalAccessError.
3050         Include IllegalAccessException.h.
3051
3052 1999-03-22  Tom Tromey  <tromey@cygnus.com>
3053
3054         * gnu/gcj/text/LineBreakIterator.java: New file.
3055         * java/text/BreakIterator.java (getLineInstance): Implemented.
3056
3057         * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
3058         copy constructor private.
3059         (previous, next): Removed erroneous comment about line
3060         separators.
3061         (previous): Correctly recognize break between non-letter on the
3062         left and letter on the right.  Handle apostrophes correctly.
3063
3064         * java/text/BreakIterator.java (getWordInstance): Implemented.
3065         * gnu/gcj/text/WordBreakIterator.java: New file.
3066         * gnu/gcj/text/CharacterBreakIterator.java: Extend
3067         BaseBreakIterator.
3068         * gnu/gcj/text/BaseBreakIterator.java: New file.
3069
3070 1999-03-19  Tom Tromey  <tromey@cygnus.com>
3071
3072         * java/text/BreakIterator.java: New file (partially stubbed out).
3073         * gnu/gcj/text/CharacterBreakIterator.java: New file.
3074
3075         * include/config.h.in: Rebuilt.
3076         * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
3077         (HAVE_TIMEZONE): Likewise.
3078         * configure: Rebuilt.
3079         * configure.in: Added timezone checks.
3080         * java/util/natGregorianCalendar.cc (computeTime): Adjust for
3081         timezone.
3082
3083 Fri Mar 19 15:26:35 1999  Per Bothner  <bothner@cygnus.com>
3084
3085         * gnu/gcj/convert/BytesToUnicode.java:  New abstract class.
3086         * gnu/gcj/convert/UnicodeToBytes.java:  New abstract class.
3087         * gnu/gcj/convert/Input_8859_1.java:  New BytesToUnicode sub-class.
3088         * gnu/gcj/convert/Input_UTF8.java:  New BytesToUnicode sub-class.
3089         * gnu/gcj/convert/Output_8859_1.java:  New UnicodeToBytes sub-class.
3090         * gnu/gcj/convert/Output_UTF8.java:  New UnicodeToBytes sub-class.
3091         * java/io/InputStreamReader.java:  Rewrite to use BytesToUnicode.
3092         * java/io/OutputStreamWriter.java:  Rewrite to use UnicodeToBytes.
3093
3094         * java/io/natFileDescriptorPosix.cc (open):  Use O_BINARY flag.
3095         (BSD_COMP):  Kludge needed for Solaris2.
3096
3097 Fri Mar 19 01:49:46 1999  Warren Levy  <warrenl@cygnus.com>
3098
3099         * java/net/URL.java (URL(java.net.URL, string): Moved code to
3100         URL(java.net.URL, string, URLStreamHandler) and call it with a
3101         null handler.  In latter constructor, added SecurityManager check.
3102         (set): Expect null handler on bad protocol rather than an exception.
3103         (setURLStreamHandler): Simplified exception handling; return null
3104         on invalid protocol.
3105
3106 1999-03-18  Tom Tromey  <tromey@cygnus.com>
3107
3108         * java/text/DecimalFormat.java (format(long,...)): Rewrote.
3109
3110         * java/lang/natSystem.cc (setOut, setIn, setErr): New native
3111         methods.
3112         Include PrintStream.h, InputStream.h.
3113         * java/lang/System.java (ForwardingInputStream,
3114         ForwardingOutputStream): Removed.
3115         (setErr, setIn, setOut): Now native.
3116
3117         Reverted patch from 1999-02-12 to work around problem in
3118         libgcc2.c.
3119         * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
3120         (_Jv_eh_free): Use free.
3121
3122         * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
3123         for path name.  Minor formatting fixes.
3124
3125         * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
3126
3127         * prims.cc (fail_on_finalization): New function.
3128         (_Jv_GCWatch): Likewise.
3129
3130         * prims.cc (JvRunMain): Initialize `nullp'.
3131         (nullp): New global.
3132         (catch_segv): Throw nullp.
3133
3134         * Makefile.in: Rebuilt.
3135         * Makefile.am (ZIP): In "null target" case, zip is found in the
3136         build tree.
3137
3138         * prims.cc (_Jv_PrimClass): Initialize all elements of class
3139         object.
3140         Include Modifier.h.
3141
3142         * java/lang/StringBuffer.java (StringBuffer): Don't use
3143         ensureCapacity to set initial capacity.
3144         (capacity): Subtract `length' from return result.
3145
3146 Thu Mar 18 01:53:35 1999  Warren Levy  <warrenl@cygnus.com>
3147
3148         * java/io/natFileDescriptorPosix.cc (open): Throw
3149         FileNotFoundException, but with filename and errno in msg.
3150
3151 Wed Mar 17 11:09:30 1999  Warren Levy  <warrenl@cygnus.com>
3152
3153         * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
3154         functionality folded into java/net/URL.java per spec.
3155         
3156         * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
3157         than EEXIST for throwing FileNotFoundException.
3158         
3159         * java/net/URL.java: Folded in default URLStreamHandlerFactory 
3160         algorithm per JDK 1.2 doc.  Added SecurityManager checks.
3161         
3162         * java/net/URLStreamHandler.java (parseURL): Added stub.
3163
3164 1999-03-15  Andrew Haley  <aph@cygnus.com>
3165
3166         * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
3167         by one errors.
3168
3169 1999-03-15  Andrew Haley  <aph@cygnus.com>
3170
3171         * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
3172         support.
3173
3174 1999-03-12  Tom Tromey  <tromey@cygnus.com>
3175
3176         * prims.cc (catch_segv): New function.
3177         Include <signal.h> if HANDLE_SEGV defined.  Include
3178         NullPointerException.h.
3179         (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
3180         handler.
3181
3182         * java/text/SimpleDateFormat.java (equals): Ensure that object is
3183         a SimpleDateFormat, not just a DateFormat.
3184         (defaultCenturyStart, formatData, pattern): Now private.
3185         (append): Now `final'.  Use `NumberFormat.format'.
3186         (parse): Wrote.
3187         (SimpleDateFormat): Turn off groupin in NumberFormat object.
3188
3189         * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3190         result.
3191
3192         * java/text/MessageFormat.java (format): Use default MessageFormat
3193         constructor.
3194         (parse, parseObject): Wrote.
3195
3196         * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3197         constructor.
3198
3199 1999-03-12  Andrew Haley  <aph@cygnus.com>
3200
3201         * java/lang/String.java (indexOf): Replace with native method for
3202         better performance.
3203         * java/lang/natString.cc (IndexOf): As above.
3204
3205         * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3206         Argument check corrected.
3207         (init(jbyteArray,jint,jint,jstring)): Likewise.
3208         
3209         * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3210         1.2 compliant method.
3211  
3212         * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3213         added.
3214         * java/lang/Float.java (byteValue, shortValue): Likewise.
3215
3216 1999-03-11  Tom Tromey  <tromey@cygnus.com>
3217
3218         * java/text/DecimalFormat.java (parse): Wrote.
3219
3220         * java/text/ChoiceFormat.java (parse): Set error index on
3221         ParsePosition object.
3222
3223         * java/lang/Integer.java (parseInt): Throw exception on overflow
3224         when intermediate result is most negative number.  Changed
3225         overflow detection as well.
3226         * java/lang/Long.java (parseLong): Likewise.
3227
3228         * configure, Makefile.in: Rebuilt.
3229         * configure.in (NULL_TARGET, CANADIAN): New conditionals.  Set
3230         CANADIAN when building in source tree that doesn't include gcc.
3231         * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3232         define.
3233
3234         * java/text/ChoiceFormat.java (nextDouble): Correct some
3235         off-by-one errors when masking or adding.
3236
3237         * java/text/DecimalFormat.java (format): Fill in FieldPosition
3238         parameter, if given.  Use `%', not IEEEremainder.
3239         (scanFix): Throw error if multiplier already set.
3240         (computePattern): Wrote.
3241
3242 1999-03-11  Andrew Haley  <aph@cygnus.com>
3243
3244         * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3245         52.
3246         (nextDouble): Corrected masking logic.  Handle interaction between
3247         `next' and negative numbers.
3248
3249 Wed Mar 10 18:58:37 1999  Warren Levy  <warrenl@cygnus.com>
3250
3251         * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3252         * java/net/URL.java: Added general comments.
3253
3254 1999-03-10  Tom Tromey  <tromey@cygnus.com>
3255
3256         * java/text/ChoiceFormat.java (parse): Wrote.
3257
3258         * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3259
3260         * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3261         Create ChoiceFormat objects.
3262         (format): Special-case ChoiceFormat.
3263         (scanFormatElement): Include { and } in generated style string.
3264
3265 1999-03-09  Tom Tromey  <tromey@cygnus.com>
3266
3267         * java/text/ChoiceFormat.java: New file.
3268
3269 Tue Mar  9 17:09:18 1999  Warren Levy  <warrenl@cygnus.com>
3270
3271         * java/net/BindException.java: Created.
3272         * java/net/ConnectException.java: Created.
3273         * java/net/ContentHandler.java: Created.
3274         * java/net/ContentHandlerFactory.java: Created.
3275         * java/net/FileNameMap.java: Created.
3276         * java/net/MalformedURLException.java: Created.
3277         * java/net/NoRouteToHostException.java: Created.
3278         * java/net/ProtocolException.java: Created.
3279         * java/net/ServerSocket.java (@author): Fixed typo.
3280         * java/net/Socket.java (@author): Fixed typo.
3281         * java/net/SocketImpl.java (@author): Fixed typo.
3282         * java/net/SocketImplFactory.java (@author): Fixed typo.
3283         * java/net/URL.java: Created - nearly complete.
3284         * java/net/URLConnection.java: Created - near-empty stub.
3285         * java/net/URLStreamHandler.java: Created - incomplete stub.
3286         * java/net/URLStreamHandlerFactory.java: Created.
3287         * java/net/UnknownServiceException.java: Created.
3288
3289 1999-03-09  Tom Tromey  <tromey@cygnus.com>
3290
3291         * java/lang/System.java (ForwardingInputStream): New class.
3292         (ForwardingOutputStream): Likewise.
3293         (in, out, err): Now `final' forwarding streams.
3294         (setIn, setOut, setErr): Use appropriate method on forwarding
3295         streams.
3296
3297         * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3298         class.
3299
3300 Tue Mar  9 12:16:53 1999  Per Bothner  <bothner@cygnus.com>
3301
3302         * java/util/zip/CRC32.java:  New class (just an incomplete stub).
3303         * java/util/zip/Checksum.java:  New interface (complete).
3304         * java/util/zip/Deflater.java:  New class (near-empty stub).
3305         * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3306         * java/util/zip/ZipConstants.java:  New interface (near-empty stub).
3307         * java/util/zip/ZipEntry.java:  New class (complete).
3308         * java/util/zip/ZipException.java:  New class (complete).
3309         * java/util/zip/ZipFile.java:  New class (incomplete stub).
3310         * java/util/zip/ZipOutputStream.java:  New class (incomplete stub).
3311
3312 1999-03-09  Tom Tromey  <tromey@cygnus.com>
3313
3314         * java/text/MessageFormat.java (MessageFormatElement): Removed
3315         `public' specifiers.
3316
3317         * java/text/DecimalFormat.java (scanFormat): Increment index
3318         before processing exponential format.  Fixed a couple typos in
3319         exception messages.
3320         (format): Correct normalization of exponent.
3321
3322 1999-03-08  Tom Tromey  <tromey@cygnus.com>
3323
3324         * java/text/SimpleDateFormat.java (parse): Throw
3325         IllegalArgumentException, not ParseException.
3326
3327 1999-03-05  Tom Tromey  <tromey@cygnus.com>
3328
3329         * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3330         when constructing DateFormatSymbols.  Initialize numberFormat
3331         field of superclass.
3332
3333         * java/text/DateFormat.java (equals): Rewrote.
3334         (getAvailableLocales): New method.
3335         (getDateInstance): New methods.
3336         (getDateTimeInstance): Likewise.
3337         (getTimeInstance): Likewise.
3338         (getInstance): New method.
3339         (computeInstance): New method.
3340
3341         * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3342         for US.
3343         (safeGetResource): New method.
3344         (DateFormatSymbols): Use Locale paramater.
3345         (equals): Now protected.
3346         Made instance variables private.
3347
3348 1999-03-04  Tom Tromey  <tromey@cygnus.com>
3349
3350         * java/text/DecimalFormat.java: New file.
3351
3352         * java/text/NumberFormat.java (groupingUsed,
3353         maximumFractionDigits, maximumIntegerDigits,
3354         minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3355         New fields.
3356         (setDecimalSeparatorAlwaysShown, setMultiplier,
3357         setPositivePrefix): Removed.
3358         (setMinimumFractionDigits, setMaximumFractionDigits):
3359         Implemented.
3360         (format): Now final.
3361         Added many new methods.
3362
3363         * Makefile.in: Rebuilt.
3364         * Makefile.am (gnu_files): New macro.
3365         (java_files): Added gnu_files.
3366         (class_gnu_files): New macro.
3367         (class_files): Use it.
3368         (src_gnu_files): New macro.
3369         (gnu.o): New target.
3370         (javao_files): Added gnu.o.
3371
3372         * gnu/gcj/text/LocaleData_en_US.java: New file.
3373         * gnu/gcj/text/LocaleData_en.java: New file.
3374         * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3375         (DecimalFormatSymbols): Use ResourceBundle to find resources.
3376         (safeGetString): New method.
3377         (safeGetChar): Likewise.
3378
3379 1999-03-03  Tom Tromey  <tromey@cygnus.com>
3380
3381         * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3382         constants.
3383
3384         * java/text/FieldPosition.java (equals): Don't check for null
3385         object; instanceof does this.
3386
3387         * java/util/Locale.java (clone): New method.
3388         (equals): Likewise.
3389
3390 Wed Mar  3 17:20:15 1999  Anthony Green  <green@cygnus.com>
3391
3392         * doc/cni.sgml: New file.
3393
3394 1999-03-03  Tom Tromey  <tromey@cygnus.com>
3395
3396         * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3397
3398         * java/text/DecimalFormatSymbols.java: New file.
3399
3400 1999-03-02  Tom Tromey  <tromey@cygnus.com>
3401
3402         * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3403         exists.
3404         * configure: Rebuilt.
3405         * configure.in: Check for sys/filio.h.
3406
3407         * java/lang/Runtime.java (checkLink): Throw NullPointerException
3408         if required.
3409         (load): Always throw UnsatisfiedLinkError.
3410         (loadLibrary): Likewise.
3411
3412 1999-03-02  Anthony Green  <green@cygnus.com>
3413
3414         * LIBGCJ_LICENSE: New file.
3415         * LIBJAVA_LICENSE: Removed.
3416         * Many files: libjava now libgcj.
3417         
3418 1999-03-02  Tom Tromey  <tromey@cygnus.com>
3419
3420         * include/java-chartables.h: Rebuilt.
3421         * chartables.pl (print_block): Make table `const'.
3422         (print_numerics): Likewise.
3423         (print_single_map): Likewise.
3424         (print_all_block): Likewise.
3425         (print_case_table): Likewise.
3426         (print_fast_tables): Likewise.
3427         * java/lang/natCharacter.cc (table_search): `table' argument now
3428         const.
3429
3430 1999-03-01  Tom Tromey  <tromey@cygnus.com>
3431
3432         * java/util/Date.java (before, after): Inverted logic.
3433
3434         * java/util/Date.java (parse): Handle case where first character
3435         in string is open parenthesis.
3436         (skipParens): Rewrote.
3437
3438         * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3439         * java/lang/reflect/natField.cc: Include <stdlib.h>.
3440
3441         * java/util/Date.java (parse): Correctly compute beginning of
3442         punctuation.
3443
3444         * java/util/Hashtable.java (get): Throw NullPointerException if
3445         key is null.
3446         (containsKey): Likewise.
3447
3448         * java/util/Properties.java (list): Truncate value to 37
3449         characters and add `...'.
3450
3451         * java/lang/Byte.java (parseByte): Pass `radix' to
3452         Integer.parseInt.
3453
3454         * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3455         fprintf.
3456         Include System.h, PrintStream.h.
3457
3458         * java/lang/natSystem.cc (init_properties): Don't use malloc,
3459         realloc, or free.
3460
3461         * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3462         exists.
3463         * configure: Rebuilt.
3464         * configure.in: Check for getpwuid_r.  Look for `pwd.h', not
3465         `pwd.d'.
3466
3467         * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3468
3469         * java/lang/SecurityManager.java: Import java.net.*.
3470         (checkMulticast): New methods.
3471
3472 Fri Feb 26 14:54:52 1999  Per Bothner  <bothner@cygnus.com>
3473
3474         * Makefile.am, Makefile.in (java/lang/reflect/Method.h):  New rule.
3475         (nat_files):  Add java/lang/reflect/natArray.o.
3476         (nat_headers):  Add Field.h and NoSuchFieldException.h.
3477         
3478         * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3479         _Jv_GetStaticShortField, _Jv_GetStaticByteField):  New inline methods.
3480         (_Jv_FromReflectedField):  Fix buglet.
3481         * include/jvm.h (_Jv_NewMultiArray):  New declaration.
3482         * include/java-assert.h (JvFail):  Pass message string to _Jv_Abort.
3483         * prims.cc (_Jv_Abort):  Include message in print-out.
3484
3485         * prims.cc (_Jv_equal):  New method (compare Utf8Const and jstring).
3486         (new_multi_array):  Rename to _Jv_NewMultiArray.  Make non-static.
3487         * include/jvm.h (_Jv_NewMultiArray, _Jv_equal):  New declarations.
3488
3489         * configure.in (AC_CHECK_HEADERS), configure:  Add pwd.h.
3490         * include/config.h.in (HAVE_PWD_H):  New feature macro.
3491         * java/lang/natSystem.cc (init_properties):  Set file.encoding,
3492         user.name, user.home, user.dir.
3493
3494         * java/lang/reflect/Array.java:  New class.
3495         * java/lang/reflect/natArray.cc:  New native methods.
3496         * include/javaprims.h:  Declare java::lang::reflect::Array.
3497
3498         * java/lang/Class.h (getField):  New private method.  Add friends.
3499         * java/lang/Class.java (getField):  Add private overload.
3500         * java/lang/natClass.cc (getField, getField, getDeclaredField,
3501         getDeclaredMethods):  Add working implementations.
3502         * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3503         Finish implementation, except for access control.
3504
3505         * java/lang/reflect/Modifier.java (toString):  New overload.
3506         * include/java-method.h:  New file.
3507         * java/lang/reflect/Method.java (index):  Replaced by offset field.
3508         Remove various private fields - get them from _Jv_Field instead.
3509         * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3510         New method implementations.
3511
3512         * java/text/NumberFormat.java:  Add a bunch of methods.
3513
3514 Mon Feb 22 17:52:34 1999  Per Bothner  <bothner@cygnus.com>
3515
3516         * java/lang/StringBuffer.java (getChars):  Fix bounds checks.
3517
3518 1999-02-26  Tom Tromey  <tromey@cygnus.com>
3519
3520         * include/config.h.in: Rebuilt.
3521         * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3522         GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3523         HAVE_GETHOSTBYADDR_R): New defines.
3524         * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3525         gethostbyaddr_r if available.
3526         Include <errno.h>.
3527         * configure: Rebuilt.
3528         * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3529
3530         * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3531         Don't use JvFree.
3532         (lookup): Likewise.
3533         Include <jvm.h>.
3534         * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3535         * prims.cc (_Jv_AllocBytesChecked): New function.
3536
3537         * Makefile.in: Rebuilt.
3538         * Makefile.am (SUBDIRS): Removed `test'.
3539         * configure: Rebuilt.
3540         * configure.in: Don't build test/Makefile.
3541         * test/*: Removed all files.
3542
3543 Thu Feb 25 17:27:37 1999  Warren Levy  <warrenl@cygnus.com>
3544
3545         * java/lang/reflect/Constructor.java: Make class final to match spec.
3546         * java/lang/reflect/Method.java: Ditto.
3547
3548 1999-02-25  Tom Tromey  <tromey@cygnus.com>
3549
3550         * java/net/natInetAddress.cc: Include <sys/types.h> before
3551         <sys/socket.h>.
3552         * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3553         <sys/socket.h>.
3554
3555         * java/net/natInetAddress.cc: Declare gethostname if required.
3556         * include/config.h.in: Rebuilt.
3557         * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3558         * configure: Rebuilt.
3559         * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3560         declared in unistd.h.
3561
3562 1999-02-24  Tom Tromey  <tromey@cygnus.com>
3563
3564         * Makefile.in: Rebuilt.
3565         * Makefile.am (java/io/FileDescriptor.h): Removed target.
3566         * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3567         from private to "none".
3568
3569         * include/javaprims.h: Regenerated class declarations with new
3570         classes.pl.
3571         * classes.pl (scan): Only generate decls for java.lang, java.io,
3572         and java.util.
3573
3574 1999-02-24  Tom Tromey  <tromey@cygnus.com>
3575
3576         * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3577         (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3578
3579 1999-02-23  Tom Tromey  <tromey@cygnus.com>
3580
3581         * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3582         not already defined.
3583         * java/io/natFile.cc (_REENTRANT): Only define if not already
3584         defined.
3585         * include/config.h.in: Rebuilt.
3586         * acconfig.h (HAVE_BOEHM_GC): New define.
3587         * configure: Rebuilt.
3588         * configure.in: Define HAVE_BOEHM_GC if using it.
3589         * posix-threads.cc: Include boehm-config.h and gc.h if
3590         HAVE_BOEHM_GC.
3591         * include/posix-threads.h: Added explanatory note about Boehm GC.
3592
3593         * java/io/BufferedReader.java (readLine): Only return null when
3594         EOF seen before any characters read.  (In particular, an empty
3595         line should not return null.)
3596
3597         * java/io/BufferedInputStream.java (read): Only refill once per
3598         invocation.
3599
3600         * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3601         java.lang.Character.classify12, java.lang.String.hash,
3602         java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3603         java.text.SimpleDateFormat.getAndSet2DigitYearStart
3604
3605         * java/text/StringCharacterIterator.java (setIndex): No error if
3606         index == end.
3607         (next): Check for `pos == end', not `end - 1'.
3608         (StringCharacterIterator): Allow `pos == end'.  Explicitly check
3609         for null text in each constructor.
3610         (clone): Fixed order of arguments to constructor.
3611
3612 1999-02-22  Tom Tromey  <tromey@cygnus.com>
3613
3614         * include/config.h.in: Rebuilt.
3615         * acconfig.h (HAVE_INET6): New define.
3616         (HAVE_SOCKLEN_T): Likewise.
3617         * java/net/PlainSocketImpl.java: Added copyright header.
3618         * java/net/natPlainSocketImpl.cc: Added copyright header.
3619         (union SockAddr): Use HAVE_INET6, not AF_INET6.
3620         (bind): Likewise.
3621         (connect): Likewise.
3622         (accept): Likewise.
3623         (socklen_t): New typedef.
3624         (accept): Use socklen_t.
3625         * java/net/natInetAddress.cc: Added copyright header.
3626         (HAVE_GETHOSTNAME): Don't define.
3627         (HAVE_INET_ADDR): Likewise.
3628         (lookup): Fixed typo.
3629         (aton): Don't use `address' as name of local variable.
3630         (lookup): Use HAVE_INET6, not AF_INET6.
3631
3632         * configure: Rebuilt.
3633         * configure.in: Look for functions inet_aton, inet_addr,
3634         gethostname, inet_pton, uname.  Check for sockaddr_in6 structure.
3635         Check for socklen_t typedef.
3636
3637         * exception.cc (__throw): Declare as __noreturn__.
3638
3639 Mon Feb 22 15:27:35 1999  Per Bothner  <bothner@cygnus.com>
3640
3641         * Makefile.am, Makefile.in:  Also build java/net.
3642         (java/io/FileDescriptor.h):  Add friend java::net::PlainSocketImpl.
3643
3644         * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3645         * java/util/natGregorianCalendar.cc:  #define _REENTRANT.
3646
3647         * prims.cc (_Jv_malloc, _Jv_Free):  New functions.
3648         * include/cni.h (JvMalloc, JvFree):  New inline functions.
3649         (JvThrow):  Add __noreturn__ attribute.
3650         * include/javaprims.h (_Jv_Malloc, _Jv_Free):  New declarations.
3651         (_Jv_Throw):  Add __noreturn__ attribute.
3652
3653         * java/net/PlainSocketImpl.java:  Init fnum to -1.
3654         * java/net/ServerSocket.java:  Add missing throws clauses.
3655         * java/lang/Socket.java:  For the constructor taking a SocketImpl,
3656         don't call create on the latter.  Instead, other constructors
3657         have to explicitly call SocketImpl.create.
3658         * java/net/natPlainSocketImpl.cc (accept):  Change variable addrlen
3659         from size_t to int, to match ::accept prototype.
3660         * java/net/natInetAddress.cc:  Use JvFree rather than free.
3661
3662
3663 1999-02-22  Tom Tromey  <tromey@cygnus.com>
3664
3665         * include/javaprims.h: Added new classes.
3666         * java/text/StringCharacterIterator.java: New file.
3667         * java/text/CharacterIterator.java: New file.
3668
3669         * java/text/ParseException.java (errorOffset): Now private.
3670
3671 Mon Feb 22 12:54:53 1999  Per Bothner  <bothner@cygnus.com>
3672
3673         * java/net:  New package.
3674         * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3675         Socket.java,SocketException.java,SocketImpl.java,
3676         SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3677         natPlainSocketImpl.cc}:  New classes.
3678
3679         * configure.in (AC_CHECK_HEADERS):  Also check for <sys/socket.h>,
3680         <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3681         * include/config.h.in:  Add place-holders for HAVE_ARPA_INET_H,
3682         HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3683
3684         * classes.pl:  Translate package into "namespace", not "class".
3685         * include/javaprims.h:  Update class list, using "namespace".
3686
3687 1999-02-21  Tom Tromey  <tromey@cygnus.com>
3688
3689         * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3690         Define when appropriate.
3691
3692 1999-02-20  Tom Tromey  <tromey@cygnus.com>
3693
3694         * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3695         as a single byte and \u07ff as two bytes.
3696         (_Jv_GetStringUTFLength): Likewise.
3697         * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3698         with 0x0f, not 0x1f.
3699
3700 1999-02-19  Tom Tromey  <tromey@cygnus.com>
3701
3702         * java/io/DataOutputStream.java (writeUTF): When encoding
3703         character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3704         * java/io/DataInputStream.java (readUTF): Mask second byte of
3705         3-byte character with 0x3f, not 0x1f.
3706
3707         * java/io/DataInputStream.java (readLong): Cast result of
3708         readUnsignedByte to long before using.
3709
3710         * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3711         it is not null.
3712
3713         * mauve-libjava: Re-enabled java.io.DataInputOutput.
3714         * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3715         argument to avoid warning.
3716         * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3717         argument to avoid warning.
3718
3719 1999-02-18  Tom Tromey  <tromey@cygnus.com>
3720
3721         * mauve-libjava: Omit java.io.DataInputOutput and
3722         java.io.Utf8Encoding.
3723
3724 1999-02-17  Tom Tromey  <tromey@cygnus.com>
3725
3726         * Makefile.in: Rebuilt.
3727         * Makefile.am (nat_headers): Added InterruptedIOException.h.
3728         * java/io/natFileDescriptorPosix.cc: Include
3729         InterruptedIOException.h, Thread.h.
3730         (write): Throw InterruptedIOException when required.
3731         (read): Likewise.
3732         * posix-threads.cc: Include <signal.h>.
3733         (_Jv_ThreadInterrupt): New function.
3734         (INTR): New define.
3735         (handle_intr): New function.
3736         (_Jv_InitThreads): Register handle_intr via sigaction.
3737         * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3738         * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3739         * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3740         * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3741
3742 1999-02-19  Andrew Haley  <aph@cygnus.com>
3743
3744         * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3745         of subgroups.
3746         (ThreadGroup (int)): Set the maximum priority of the initial
3747         ThreadGroup.
3748
3749 1999-02-18  Andrew Haley  <aph@cygnus.com>
3750
3751         * java/lang/natClass.cc (forName): Check for the case where a
3752         classname is the name of an array and call FindClassFromSignature
3753         to find the Class.
3754
3755 1999-02-18  Andrew Haley  <aph@cygnus.com>
3756
3757         * java/lang/StringBuffer (insert (int, String)): Move up any
3758         characters above the insert position and increase the length of
3759         the string buffer by the length of the argument.
3760         (insert (int, char[])): Likewise.
3761         (insert (int, char)): Likewise.
3762         (StringBuffer (String)): The initial capacity of the string buffer
3763         is 16 plus the length of the argument.
3764         (getChars): Add a JDK 1.2 FIXME.
3765
3766 1999-02-18  Andrew Haley  <aph@cygnus.com>
3767
3768         * java/lang/Short.java (parseShort(String, int)): Pass radix to
3769         Integer.parseInt.
3770
3771 1999-02-18  Andrew Haley  <aph@cygnus.com>
3772
3773         * java/lang/Double.java (equals): Use a bit-by-bit comparision
3774         instead of floating-point equality.  This is necessary for
3775         correct floating-point Hashtables.
3776         * java/lang/Float.java (equals): Ditto.
3777
3778 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3779
3780         * java/util/Properties.java (list): Truncate value to 37
3781         characters and add "...".
3782
3783 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3784
3785         * java/util/Vector.java (Vector): Throw IllegalArgumentException
3786         if initCap is negative.
3787         (contains): Implement JDK1.2-style handling of null argument.
3788         (removeElement): Likewise.
3789         (indexOf): Likewise.  Also, correctly handle case where idx is
3790         negative.
3791         (lastIndexOf): Likewise.
3792
3793 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3794
3795         * java/lang/natString.cc (init): Increment source pointer in
3796         loop.
3797
3798 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3799
3800         * exception.cc: Include NullPointerException.h.
3801         (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3802
3803 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3804
3805         * Makefile.in: Rebuilt.
3806         * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3807
3808 Sat Feb 13 20:25:09 1999  Bonzo Armstrong  <bonzo@cygnus.com>
3809
3810         * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3811         we're compiling canadian.
3812         * configure: Regenerated.
3813
3814 1999-02-12  Andrew Haley  <aph@cygnus.com>
3815  
3816         * java/lang/sf_rint.c: Resurrected.  This file shouldn't have been
3817         deleted from libgcj.
3818
3819 1999-02-12  Tom Tromey  <tromey@cygnus.com>
3820
3821         * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3822         (_Jv_eh_free): Don't call free.
3823         Don't declare malloc or free.
3824
3825 1999-02-11  Tom Tromey  <tromey@cygnus.com>
3826
3827         * configure.host: Use `libgcj', not `libjava'.  Removed `echo'.
3828
3829 1999-02-11  Andrew Haley  <aph@cygnus.com>
3830
3831         * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3832         wf_fmod.c: Deleted.  These are all files from fdlibm which aren't
3833         needed by java.lang.*.
3834         * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3835         wf_fmod.o: Removed from libjava.a.
3836
3837 1999-02-11  Tom Tromey  <tromey@cygnus.com>
3838
3839         * include/javaprims.h: Reverted previous change; with it
3840         exception.cc can't compile.
3841
3842         * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3843
3844         * include/config.h.in: Rebuilt.
3845         * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3846         HAVE_SCHED_YIELD.
3847         * configure: Rebuilt.
3848         * configure.in: Check for sched_yield.  Look in thread library for
3849         all thread functions.
3850
3851         * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3852         no recursive mutexes.
3853         (_Jv_MutexDestroy): Define when required.
3854         (_Jv_MutexLock): Likewise.
3855         (_Jv_MutexUnlock): Likewise.
3856         (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3857         * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3858         (_Jv_Mutex_t): New structure.
3859         (_Jv_MutexDestroy): Only define if recursive mutexes available.
3860         (_Jv_MutexLock): Likewise.
3861         (_Jv_MutexUnlock): Likewise.
3862
3863 1999-02-10  Tom Tromey  <tromey@cygnus.com>
3864
3865         * aclocal.m4, configure, Makefile.in: Rebuilt.
3866         * acinclude.m4: Renamed libjava to libgcj.  Updated to use
3867         automake 1.4.
3868         * configure.in: Changed to track library changes.
3869         * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3870         (AM_CXXFLAGS): Likewise.
3871         (data_DATA): Likewise.
3872         (AM_CFLAGS): Likewise.
3873         (JC1FLAGS): Likewise.
3874         (libgcj_a_SOURCES): Likewise.
3875         (EXTRA_libgcj_a_SOURCES): Likewise.
3876         (libgcj_a_DEPENDENCIES): Likewise.
3877         (libgcj_a_LIBADD): Likewise.
3878         (libgcj.zip): Likewise.
3879         (CLEANFILES): Likewise.
3880         ($(nat_headers)): Likewise.
3881         (java/lang/FirstThread.h): Likewise.
3882         (java/lang/ThreadGroup.h): Likewise.
3883         (java/lang/String.h): Likewise.
3884         (java/lang/reflect/Field.h): Likewise.
3885         (BUILT_SOURCES): Likewise.
3886         (maintainer-check): Likewise.
3887         (CONFIG_STATUS_DEPENDENCIES): Likewise.
3888 Tue Feb  9 11:06:38 1999  Anthony Green  <green@cygnus.com>
3889
3890         * java/util/natGregorianCalendar.cc (computeFields): Only use
3891         gmtime_r and localtime_r when configured for posix threads.
3892
3893         * java/io/natFile.cc (get_entry): Only use readdir_r when
3894         configured for posix threads.
3895
3896         * java/util/natGregorianCalendar.cc: Update copyright notice.
3897         * java/util/TimeZone.java: Ditto.
3898         * java/util/SimpleTimeZone.java: Ditto.
3899
3900 1999-02-08  Tom Tromey  <tromey@cygnus.com>
3901
3902         * java/io/PrintStream.java (line_separator): New constant.
3903         (print): Use line_separator, not `file.separator' property.
3904         (println): Use line_separator.
3905
3906         * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3907         when trying to instantiate Class.
3908
3909         * java/lang/ThreadGroup.java (ThreadGroup): Throw
3910         NullPointerException if argument is null.
3911
3912         * java/lang/Thread.java (setName): Throw NullPointerException, not
3913         IllegalArgumentException.
3914         (Thread): Likewise.
3915
3916 1999-02-08  Andrew Haley  <aph@cygnus.com>
3917
3918         * java/lang/natClass.cc (newInstance): Don't allow anyone to
3919         create new Classes with Class.newInstance().
3920
3921         * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3922         semiciolon to end of an array Class's signature if the elements of
3923         the array aren't themselves arrays.
3924
3925         * java/lang/natSystem.cc (arraycopy): The size of an element of an
3926         array of objects is always sizeof(jobject), not the size of the
3927         object to which the reference points.
3928
3929 1999-02-08  Tom Tromey  <tromey@cygnus.com>
3930
3931         * java/util/BitSet.java (and): Throw NullPointerException when
3932         required.
3933         (or): Likewise.
3934         (xor): Likewise.
3935
3936         * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3937         if argument is negative.
3938         (clear): Correctly compute `offset'.  Throw
3939         IndexOutOfBoundsException when required.
3940         (set): Likewise.
3941         (get): Likewise.  Also, return correct value.
3942         (ensure): Changed meaning of argument.
3943         (toString): Wrap contents in `{}'; put spaces after commas.
3944         (hashCode): Don't try to examine elements off the end of array.
3945         (or): Correctly include bits past the end of this bit set.
3946         (xor): Likewise.
3947
3948 Thu Feb  4 12:48:03 1999  Warren Levy  <warrenl@cygnus.com>
3949
3950         * configure.host (mips-tx39-*): Use jmr3904dram.ld link script 
3951         instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3952
3953 1999-02-04  Andrew Haley  <aph@cygnus.com>
3954
3955         * java/lang/natClass.cc (Class::forName): Remove code which mapped
3956         '/' in signatures to '.'
3957         (Class::getName): Likewise,
3958         (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3959         signature.
3960         * java/lang/natFirstThread.cc (run): Change '/' in main's
3961         signature to '.'.
3962
3963 1999-02-03  Andrew Haley  <aph@cygnus.com>
3964
3965         * configure.host: -ffloat-store added when compiling libjava on
3966         x86.  fdlibm apparently relies on this.
3967
3968         * java/lang/ThreadGroup.java (add): throw an exception if the
3969         ThreadGroup has been destroyed.
3970
3971         * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3972         behaviour.
3973
3974 1999-01-27  Tom Tromey  <tromey@cygnus.com>
3975
3976         * java/lang/StringBuffer.java (StringBuffer): Handle null
3977         argument.
3978
3979 1999-01-21  Tom Tromey  <tromey@cygnus.com>
3980
3981         * java/lang/natFirstThread.cc (run): Don't require main to be
3982         public.
3983
3984 Wed Jan 20 15:44:56 1999  Anthony Green  <green@cygnus.com>
3985
3986         * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3987
3988 1999-01-20  Tom Tromey  <tromey@cygnus.com>
3989
3990         * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3991         StringClass.
3992         (rehash): Likewise.
3993         (intern): Likewise.
3994         (unintern): Likewise.
3995         (_Jv_NewStringUtf8Const): Likewise.
3996
3997         * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3998         Character.isLetter, to see if character is self-quoting.  Also,
3999         correctly handle quoted characters.
4000         (parse): Fixed typo.  Also now throws ParseException.
4001
4002 1999-01-15  Tom Tromey  <tromey@cygnus.com>
4003
4004         * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
4005
4006         * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
4007         _Jv_SyncInfo has `init' member.
4008
4009         * include/quick-threads.h (_Jv_MutexUnlock): Return result of
4010         coop_mutex_unlock.
4011
4012         * java/lang/natObject.cc (_Jv_MonitorExit): Throw
4013         IllegalMonitorStateException if unlock fails.
4014
4015         * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
4016         zero.
4017         (_Jv_NewObjectArray): Likewise.
4018
4019 1999-01-14  Tom Tromey  <tromey@cygnus.com>
4020
4021         * java/lang/Character.java (isJavaIdentifierPart): Allow
4022         LETTER_NUMBER characters.
4023
4024         * chartables.pl (process_char): Fixed error messages.
4025
4026         * include/java-chartables.h: Rebuilt with UniData 2.1.8.
4027         * chartables.pl: Updated comments.  Changed detection of non-digit
4028         numeric values (no longer miss \u00b2 and friends).
4029
4030         * java/lang/Character.java (isJavaIdentifierPart): Recognize
4031         currency symbols and connector punctuation.
4032         (isIdentifierIgnorable): Make 7f-9f ignorable.
4033
4034         * prims.cc (_Jv_NewObjectArray): Check for overflow.
4035         (_Jv_NewPrimArray): Likewise.
4036         (SIZE_T_MAX): New define.
4037
4038         * java/lang/ClassLoader.java (system): Now private and final.
4039
4040         * boehm.cc (_Jv_MarkObj): Handle case where object's class is
4041         null.
4042
4043         * configure: Rebuilt.
4044         * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
4045         well.
4046         * exception.cc: Include gansidecl.h.
4047
4048 1999-01-14  Andrew Haley  <aph@cygnus.com>
4049
4050         * java/lang/Math.java, java/lang/natMath.cc: min and max routines
4051         corrected: they didn't treat -0.0 and NaNs correctly.
4052
4053 Wed Jan 13 13:32:22 1999  Anthony Green  <green@cygnus.com>
4054
4055         * nogc.cc: Use calloc to zero out memory.
4056
4057 1999-01-11  Tom Tromey  <tromey@cygnus.com>
4058
4059         * java/lang/natClass.cc (isInstance): Return false if this class
4060         is primitive, not if class of `obj' is primitive.
4061         (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
4062
4063         * java/io/SequenceInputStream.java (close): Handle case where `in'
4064         is already null.
4065
4066         * java/text/DateFormat.java (format): New method.
4067
4068         * mauve-libjava: Omit java.text.DateFormat.
4069
4070 1999-01-08  Tom Tromey  <tromey@cygnus.com>
4071
4072         * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
4073         argument.
4074         * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
4075         argument.
4076         (_Jv_CondNotifyAll): Likewise.
4077
4078         * configure: Rebuilt.
4079         * configure.in: Change --enable-source-compilation logic to work
4080         correctly.
4081
4082 1999-01-07  Andrew Haley  <aph@cygnus.co.uk>
4083
4084         * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, 
4085         and RUNTESTFLAGS from AM_MAKEFLAGS.
4086         * configure.in: AM_RUNTESTFLAGS added.
4087         * configure.host: AM_RUNTESTFLAGS added.
4088         * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
4089         * configure: rebuilt.
4090         * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
4091
4092         * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
4093         argv[] made conditional because embedded targets may not have
4094         argv[].
4095         * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
4096         explanatory comments added in call to super.
4097
4098         * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
4099         exception thrown in the test harness itself added.
4100         * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
4101
4102 Wed Jan  6 17:27:39 1999  Per Bothner  <bothner@cygnus.com>
4103
4104         * java/text/DateFormatSymbols.java (zoneStringsDefault):  Make static.
4105
4106 1999-01-06  Tom Tromey  <tromey@cygnus.com>
4107
4108         * java/io/natFile.cc (get_entry): New function.
4109         (performList): Use get_entry.
4110         * include/config.h.in: Rebuilt.
4111         * acconfig.h (HAVE_READDIR_R): New define.
4112         * configure: Rebuilt.
4113         * configure.in: Look for readdir_r.
4114
4115         * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
4116
4117         * java/util/natDate.cc: Added copyright header.
4118
4119 1999-01-05  Tom Tromey  <tromey@cygnus.com>
4120
4121         * include/config.h.in: Rebuilt.
4122         * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
4123         HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
4124         * configure: Rebuilt.
4125         * configure.in: Check for access, stat, mkdir, rename, rmdir,
4126         unlink, and realpath.
4127         * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
4128         (stat): Conditionalize on HAVE_STAT.
4129         (attr): Likewise.
4130         (getCanonicalPath): Conditionalize on HAVE_REALPATH.
4131         (performMkdir): Conditionalize on HAVE_MKDIR.
4132         (performRenameTo): Conditionalize on HAVE_RENAME.
4133         (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
4134
4135         * include/config.h.in: Rebuilt.
4136         * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
4137         * configure: Rebuilt.
4138         * configure.in: Check for gmtime_r and localtime_r.  For cross
4139         builds, assume they exist.
4140
4141         * mauve-libjava: Include java.text.DateFormatSymbols again.
4142         * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
4143         from setAmPmStrings.
4144
4145         * mauve-libjava: Omit java.text.DateFormatSymbols.
4146
4147 1999-01-04  Tom Tromey  <tromey@cygnus.com>
4148
4149         * java/io/PushbackReader.java: `off' already includes `numBytes'.
4150
4151         * java/io/LineNumberReader.java (read): Decrement `count' in
4152         loop.
4153
4154         * java/io/BufferedWriter.java (write): Correctly determine when
4155         incoming data would overrun buffer.  Flush buffer if write causes
4156         it to become full.
4157
4158         * java/io/BufferedOutputStream.java (write): Increment `count'
4159         after copying data into buffer.
4160
4161         * java/io/FilterOutputStream.java (close): Call flush first.
4162
4163         * java/io/PipedReader.java (read): If read causes `out' to catch
4164         up with `in', then set `in' to -1.
4165
4166         * java/io/LineNumberInputStream.java (read): If no bytes read,
4167         return -1.  If no bytes requested, return 0.
4168
4169         * java/lang/StringBuffer.java (insert): If `str' is null, use
4170         string "null".
4171
4172 1998-12-30  Anthony Green  <green@cygnus.com>
4173
4174         * README: Removed.
4175         * LIBJAVA_LICENSE, COPYING.LIB: Created.
4176
4177 1998-12-23  Tom Tromey  <tromey@cygnus.com>
4178
4179         * java/io/PushbackInputStream.java (read): `off' already includes
4180         `numBytes'.
4181
4182 1998-12-17  Tom Tromey  <tromey@cygnus.com>
4183
4184         * Makefile.in: Rebuilt.
4185         * Makefile.am (GCJ_canadian): Include target_alias.
4186
4187         * java/lang/natFirstThread.cc (run): Require main's class to be
4188         public.
4189
4190 1998-12-16  Tom Tromey  <tromey@cygnus.com>
4191
4192         * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4193
4194         * java/util/ResourceBundle.java (getBundle): Throw
4195         NullPointerException if locale argument is null.
4196
4197         * java/lang/natClass.cc (forName): Throw NullPointerException if
4198         argument is null.
4199         Include NullPointerException.h.
4200
4201 1998-12-14  Tom Tromey  <tromey@cygnus.com>
4202
4203         * java/lang/Character.java (Character): Implement Comparable.
4204         (compareTo): New methods.
4205
4206         * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'.  Use
4207         correct country and language codes.
4208         (UK, US): New constants.
4209         (setDefault): Language codes are lower-case.
4210
4211         * java/lang/natClass.cc (getDeclaredConstructor): New method.
4212         (getDeclaredConstructors): Likewise.
4213         (getDeclaredField): Likewise.
4214         (getDeclaredFields): Likewise.
4215         (getDeclaredMethod): Likewise.
4216         (getDeclaredMethods): Likewise.
4217         (getField): Likewise.
4218         (getFields): Likewise.
4219         (getMethod): Likewise.
4220         (getMethods): Likewise.
4221         * java/lang/Class.java: Declare new methods.
4222         * java/lang/Class.h: Declare new methods.
4223
4224         * java/lang/natString.cc: Removed `#pragma implementation'.
4225         * include/cni.h (_Jv_GetStringChars): New function.
4226         * Makefile.in: Rebuilt.
4227         * Makefile.am (java/lang/String.h): Don't generate definition for
4228         _Jv_GetStringChars.
4229
4230         * java/lang/natString.cc: Added `#pragma implementation'.
4231
4232         * Makefile.in: Rebuilt.
4233         * Makefile.am (libjava.zip): Put build directory first in class
4234         path to avoid bug in compiler.
4235
4236 1998-12-14  Anthony Green  <green@cygnus.com>
4237
4238         * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4239
4240         * include/javaprims.h: Add EventObject, ListResourceBundle and
4241         ResourceBundle.
4242
4243 1998-12-13  Anthony Green  <green@cygnus.com>
4244
4245         * mauve-libjava: Run the ResourceBundle tests.
4246
4247         * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4248         NULL.
4249
4250 Sun Dec 13 18:11:21 1998  Per Bothner  <bothner@cygnus.com>
4251
4252         * configure.in, configure:  Make --enable-gcj-classes and
4253         --enable-source-compilation the default.  (Nervously...)  Yeah!
4254         Based on a patch from Tom Tromey.
4255
4256 1998-12-13  Tom Tromey  <tromey@cygnus.com>
4257
4258         * java/util/EventObject.java: New file.
4259         * java/util/EventListener.java: New file.
4260
4261         * include/javaprims.h: Updated class declarations.
4262         * Makefile.in: Rebuilt.
4263         * Makefile.am (nat_headers): Added Constructor.h.
4264         (java/lang/String.h): Don't inline String::length().
4265         * java/lang/Class.h (getConstructor, getConstructors): Declare.
4266         * java/lang/Class.java (initializeClass, hackRunInitializers,
4267         hackTrampoline): No need to mark `final'.
4268         (getConstructor, getConstructors): Declare.
4269         * java/lang/reflect/Field.java (equals): New method.
4270         * java/lang/natClass.cc (getConstructor): New method.
4271         (getConstructors): Likewise.
4272         Include Method.h, Field.h, Constructor.h.
4273         * java/lang/reflect/Constructor.java: New file.
4274         * java/lang/reflect/Method.java (toString): No space before open
4275         paren.
4276         (equals): Simplified.
4277
4278 1998-12-13  Anthony Green  <green@cygnus.com>
4279
4280         * java/util/ResourceBundle.java: New file.
4281         * java/util/ListResourceBundle.java: New file.
4282
4283 1998-12-12  Tom Tromey  <tromey@cygnus.com>
4284
4285         * java/lang/System.java (in, out, err): Now buffered streams by
4286         default.
4287
4288         * include/javaprims.h: Updated class declarations.
4289         * Makefile.in: Rebuilt.
4290         * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4291         InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4292         Long.h, Boolean.h.
4293         (nat_files): Added natMethod.o.
4294         * java/lang/reflect/natMethod.cc: New file.
4295         * java/lang/reflect/Field.java (Field): Now extends
4296         AccessibleObject.
4297         * java/lang/reflect/AccessibleObject.java: New file.
4298         * java/lang/reflect/InvocationTargetException.java: New file.
4299
4300 1998-12-11  Tom Tromey  <tromey@cygnus.com>
4301
4302         * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4303         java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4304         Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4305
4306         * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4307
4308 1998-12-09  Tom Tromey  <tromey@cygnus.com>
4309
4310         * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4311         HAVE_CTIME_R.
4312
4313         * java/lang/natCharacter.cc (toTitleCase): Handle case where
4314         character is already titlecase.
4315
4316         * java/lang/Character.java (isJavaLetter): Follow spec.
4317         (isJavaLetterOrDigit): Likewise.
4318
4319         * java/util/GregorianCalendar.java (gregorianCutover): Append
4320         `L'.
4321
4322         * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4323
4324 1998-12-08  Tom Tromey  <tromey@cygnus.com>
4325
4326         * java/lang/reflect/Modifier.java (toString): Replace second
4327         `static' with `synchronized'.
4328
4329         * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4330         * java/lang/Object.h (Object::hack12_6): Declare.
4331         * java/lang/Object.java (hack12_6): New function.
4332
4333 1998-12-07  Tom Tromey  <tromey@cygnus.com>
4334
4335         * include/java-array.h (__JArray::clone): Removed decl.
4336         * prims.cc (__JArray::clone): Removed.
4337         * java/lang/natObject.cc (clone): Incorporate code to clone an
4338         array.
4339
4340         * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4341         (_Jv_FindArrayClass): Set dtable_method_count on new class.
4342         Correctly use dtable_method_count.
4343
4344 1998-12-07  Andrew Haley  <aph@cygnus.co.uk>
4345
4346         * java/lang/Double.java (isInfinite, isNaN): Handle correct
4347         IEEE754 values.
4348
4349 1998-12-06  Anthony Green  <green@cygnus.com>
4350
4351         * mauve-libjava: Don't test ResourceBundle.
4352
4353 1998-12-04  Tom Tromey  <tromey@cygnus.com>
4354
4355         More JDK 1.2 spec fixes:
4356         * java/util/Date.java (millis): Now private.
4357         * java/text/DateFormat.java (DateFormat): Constructor now
4358         protected.
4359         * java/lang/Void.java (Void): New private constructor.
4360         * java/lang/System.java (System): New private constructor.
4361         * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4362         body.
4363         (currentClassLoader): New method.
4364         (currentLoadedClass): New method.
4365         * java/lang/Math.java (Math): New private constructor.
4366         * java/lang/Compiler.java (Compiler): New private constructor.
4367         * java/lang/Class.java (Class): New private constructor.
4368         * java/lang/Double.java (toString): Removed access specifier from
4369         two-argument `toString' method.
4370
4371 1998-12-04  Andrew Haley  <aph@cygnus.co.uk>
4372
4373         * java/lang/s_rint.c (rint): Make the variable w volatile; this
4374         causes it to be flushed from an fp register (where it may be
4375         longer than double precision) to a double in memory.  This is
4376         essential to ensure correct rounding behaviour.
4377  
4378 1998-12-04  Tom Tromey  <tromey@cygnus.com>
4379
4380         * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4381         function.
4382
4383         * java/lang/Character.java (isIdentifierIgnorable): Added comment
4384         explaining apparent divergence from JDK 1.2.
4385
4386 1998-12-04  Per Bothner  <bothner@cygnus.com>
4387
4388         * include/no-threads.h:  Remove unused parameter names.
4389         This silences a bunch of warnings.
4390
4391 1998-12-04  Tom Tromey  <tromey@cygnus.com>
4392
4393         * include/config.h.in: Rebuilt.
4394         * acconfig.h (HAVE_CTIME_R): New symbol.
4395
4396 1998-12-03  Tom Tromey  <tromey@cygnus.com>
4397
4398         * mauve-libjava: Added many more categories to reject.
4399
4400         Changes to follow JDK1.2 spec:
4401         * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4402         setErr, setIn, setOut): No need to be `final'.
4403         * java/lang/natObject.cc (wait): `nanos' argument is an int.
4404         * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4405         * java/lang/Object.java (wait): `nanos' argument is an int.
4406         * java/lang/VirtualMachineError.java: Class is abstract.
4407         * java/lang/ThreadDeath.java: Made constructors public.
4408         * java/io/FileDescriptor.java (FileDescriptor): Added missing
4409         constructor.
4410
4411 Thu Dec  3 20:29:38 1998  Warren Levy  <warrenl@cygnus.com>
4412
4413         * java/text/DateFormatSymbols.java (getAmPmStrings,
4414         getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4415
4416 Thu Dec  3 19:21:53 1998  Warren Levy  <warrenl@cygnus.com>
4417
4418         * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4419         writeDouble, writeByte, writeBytes, writeChar, writeChars,
4420         writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4421         and 1.2.
4422
4423         * java/lang/IllegalThreadStateException.java
4424         (IllegalThreadStateException): Changed extending class to match spec.
4425
4426         * java/lang/NumberFormatException.java
4427         (java/lang/NumberFormatException): Changed extending class to match
4428         spec.
4429
4430         * java/util/Observer.java (Observer): Changed sig to match JCL.
4431
4432 Thu Dec  3 19:05:26 1998  Warren Levy  <warrenl@cygnus.com>
4433
4434         * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4435         writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4436         signature to match JDK 1.1 and 1.2.
4437
4438 Thu Dec  3 16:47:42 1998  Warren Levy  <warrenl@cygnus.com>
4439
4440         * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4441         * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4442         * Makefile.in, configure: Rebuilt.
4443
4444         * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4445         name.
4446
4447 1998-12-02  Tom Tromey  <tromey@cygnus.com>
4448
4449         * mauve-libjava: New file.
4450
4451         The remaining `-W -Wall' fixes:
4452         * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4453         avoid warning.
4454         * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4455         `else'.
4456         * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4457         warning.
4458         * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4459         avoid warning.
4460         * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4461         ambiguous `else'.
4462         * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4463         warning.
4464         * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4465         suggestion.
4466         * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4467         suggestion.
4468         * java/lang/mprec.c (Balloc): Removed unused variable.
4469         (mult): Added parentheses per gcc suggestion.
4470         (pow5mult): Likewise.
4471         (lshift): Likewise.
4472         (ulp): Likewise.
4473         (b2d): Likewise.
4474         (d2b): Likewise.
4475         * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4476         suggestion.  Added cast to `int' to avoid signed/unsigned
4477         comparison.
4478         * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4479         parameter.
4480         (IsAssignableFrom): Likewise.
4481         (_Jv_JNI_GetObjectField): Likewise.
4482         (_Jv_JNI_GetByteField): Likewise.
4483         (_Jv_JNI_GetShortField): Likewise.
4484         (_Jv_JNI_GetIntField): Likewise.
4485         (_Jv_JNI_GetLongField): Likewise.
4486         (_Jv_JNI_GetStringLength): Likewise.
4487         (_Jv_JNI_ToReflectedField): Likewise.
4488         (_Jv_JNI_FromReflectedField): Likewise.
4489         (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4490
4491         * Makefile.in: Rebuilt.
4492         * Makefile.am (AM_CFLAGS): Define conditionally.
4493         (WARNINGS): New macro.
4494         (AM_CXXFLAGS): Include WARNINGS.
4495         * configure: Rebuilt.
4496         * configure.in (USING_GCC): New conditional.
4497
4498         * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4499
4500         * java/lang/Character.java: Changed classification constants to
4501         type `byte' to match JDK 1.2 docs.
4502
4503 1998-12-01  Tom Tromey  <tromey@cygnus.com>
4504
4505         Some fixes to be `-W -Wall' clean:
4506         * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4507         (_Jv_MarkArray): Likewise.
4508         * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4509         (to_upper_title): Likewise.
4510         (isTitleCase): Likewise.
4511         (toTitleCase): Likewise.
4512         (getNumericValue): Likewise.
4513         (isLowerCase): Likewise.
4514         * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4515         (avoids compiler warning).
4516         * java/lang/natClass.cc (getDeclaredClasses): Always return a
4517         value.
4518         (getDeclaringClass): Likewise.
4519         (_Jv_LookupInterfaceMethod): Likewise.
4520         (_Jv_NewClass): Removed name of unused parameter.
4521         * exception.cc (_Jv_type_matcher): Removed unused variable.
4522         (_Jv_setup_eh_info): Removed name of unused parameter.
4523         * prims.cc (_Jv_NewArray): Always return a value.
4524         (_Jv_FindClassFromSignature): Likewise.
4525         * include/java-field.h (getNameUtf8Const): Removed name of unused
4526         parameter.
4527         * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4528         unused parameter.
4529         (_Jv_ThreadSetPriority): Likewise.
4530
4531         * java/lang/natString.cc (hashChars): Now static.
4532
4533         * java/lang/FirstThread.java (FirstThread): Now final.
4534
4535         * java/io/File.java (performMkdir, performRenameTo): Now private.
4536
4537         * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4538         if no time function defined.
4539
4540         * configure: Rebuilt.
4541         * configure.in: Look for ctime_r, ctime.
4542         * java/util/Date.java (toString): Now native.
4543         * java/util/natDate.cc (toString): Rewrote.
4544
4545 1998-11-27  Andrew Haley  <aph@viagra.cygnus.co.uk>
4546
4547         * Add LDFLAGS line to allow TX39 test cases to link when cross
4548         compiling.
4549
4550 1998-11-23  Anthony Green  <green@cygnus.com>
4551
4552         * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4553         no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4554         quick-threads.cc, include/boehm-gc.h, include/cni.h,
4555         include/java-array.h, include/java-assert.h, include/java-field.h,
4556         include/javaprims.h, include/jni.h, include/jvm.h,
4557         include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4558         include/quick-threads.h, java/io/BufferedInputStream.java,
4559         java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4560         java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4561         java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4562         java/io/CharArrayWriter.java,
4563         java/io/CharConversionException.java, java/io/DataInput.java,
4564         java/io/DataInputStream.java, java/io/DataOutput.java,
4565         java/io/DataOutputStream.java, java/io/EOFException.java,
4566         java/io/File.java, java/io/FileDescriptor.java,
4567         java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4568         java/io/FileOutputStream.java, java/io/FileReader.java,
4569         java/io/FileWriter.java, java/io/FilenameFilter.java,
4570         java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4571         java/io/FilterReader.java, java/io/FilterWriter.java,
4572         java/io/IOException.java, java/io/InputStream.java,
4573         java/io/InputStreamReader.java,
4574         java/io/InterruptedIOException.java,
4575         java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4576         java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4577         java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4578         java/io/PipedReader.java, java/io/PipedWriter.java,
4579         java/io/PrintStream.java, java/io/PrintWriter.java,
4580         java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4581         java/io/RandomAccessFile.java, java/io/Reader.java,
4582         java/io/SequenceInputStream.java, java/io/Serializable.java,
4583         java/io/StreamTokenizer.java,
4584         java/io/StringBufferInputStream.java, java/io/StringReader.java,
4585         java/io/StringWriter.java, java/io/SyncFailedException.java,
4586         java/io/UTFDataFormatException.java,
4587         java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4588         java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4589         java/io/natFileDescriptorPosix.cc,
4590         java/lang/AbstractMethodError.java,
4591         java/lang/ArithmeticException.java,
4592         java/lang/ArrayIndexOutOfBoundsException.java,
4593         java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4594         java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4595         java/lang/Class.java, java/lang/ClassCastException.java,
4596         java/lang/ClassCircularityError.java,
4597         java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4598         java/lang/ClassNotFoundException.java,
4599         java/lang/CloneNotSupportedException.java,
4600         java/lang/Cloneable.java, java/lang/Comparable.java,
4601         java/lang/Compiler.java, java/lang/Double.java,
4602         java/lang/Error.java, java/lang/Exception.java,
4603         java/lang/ExceptionInInitializerError.java,
4604         java/lang/FirstThread.java, java/lang/Float.java,
4605         java/lang/IllegalAccessError.java,
4606         java/lang/IllegalAccessException.java,
4607         java/lang/IllegalArgumentException.java,
4608         java/lang/IllegalMonitorStateException.java,
4609         java/lang/IllegalStateException.java,
4610         java/lang/IllegalThreadStateException.java,
4611         java/lang/IncompatibleClassChangeError.java,
4612         java/lang/IndexOutOfBoundsException.java,
4613         java/lang/InstantiationError.java,
4614         java/lang/InstantiationException.java, java/lang/Integer.java,
4615         java/lang/InternalError.java, java/lang/InterruptedException.java,
4616         java/lang/LinkageError.java, java/lang/Long.java,
4617         java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4618         java/lang/NoClassDefFoundError.java,
4619         java/lang/NoSuchFieldError.java,
4620         java/lang/NoSuchFieldException.java,
4621         java/lang/NoSuchMethodError.java,
4622         java/lang/NoSuchMethodException.java,
4623         java/lang/NullPointerException.java, java/lang/Number.java,
4624         java/lang/NumberFormatException.java, java/lang/Object.h,
4625         java/lang/Object.java, java/lang/OutOfMemoryError.java,
4626         java/lang/Process.java, java/lang/Runnable.java,
4627         java/lang/Runtime.java, java/lang/RuntimeException.java,
4628         java/lang/SecurityException.java, java/lang/SecurityManager.java,
4629         java/lang/Short.java, java/lang/StackOverflowError.java,
4630         java/lang/String.java, java/lang/StringBuffer.java,
4631         java/lang/StringIndexOutOfBoundsException.java,
4632         java/lang/System.java, java/lang/Thread.java,
4633         java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4634         java/lang/Throwable.java, java/lang/UnknownError.java,
4635         java/lang/UnsatisfiedLinkError.java,
4636         java/lang/UnsupportedOperationException.java,
4637         java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4638         java/lang/Void.java, java/lang/natCharacter.cc,
4639         java/lang/natClass.cc, java/lang/natDouble.cc,
4640         java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4641         java/lang/natMath.cc, java/lang/natObject.cc,
4642         java/lang/natRuntime.cc, java/lang/natString.cc,
4643         java/lang/natSystem.cc, java/lang/natThread.cc,
4644         java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4645         java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4646         java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4647         java/text/FieldPosition.java, java/text/Format.java,
4648         java/text/NumberFormat.java, java/text/ParseException.java,
4649         java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4650         java/util/BitSet.java, java/util/Calendar.java,
4651         java/util/ConcurrentModificationException.java,
4652         java/util/Date.java, java/util/Dictionary.java,
4653         java/util/EmptyStackException.java, java/util/Enumeration.java,
4654         java/util/GregorianCalendar.java, java/util/Hashtable.java,
4655         java/util/Locale.java, java/util/MissingResourceException.java,
4656         java/util/NoSuchElementException.java, java/util/Observable.java,
4657         java/util/Observer.java, java/util/Properties.java,
4658         java/util/Random.java, java/util/SimpleTimeZone.java,
4659         java/util/Stack.java, java/util/StringTokenizer.java,
4660         java/util/TimeZone.java, java/util/TooManyListenersException.java,
4661         java/util/Vector.java, java/util/natGregorianCalendar.cc:  Updated
4662         copyright notices.
4663
4664         * exception.cc: Include eh-common.h instead of duplicating 
4665         code.
4666
4667 1998-11-23  Tom Tromey  <tromey@cygnus.com>
4668
4669         * configure.host: Don't add `-O2' to libjava_flags.  Only add
4670         `-Os' to libjava_flags once.
4671
4672 1998-11-17  Andrew Haley  <aph@viagra.cygnus.co.uk>
4673
4674         * Makefile.am: add LIBJAVA_JAVAFLAGS.
4675         * Makefile.in: likewise
4676         * acconfig.h: add ECOS conditional for configure.h
4677         * config.h.in: likewise
4678         * configure: add test for --with-ecos
4679         * configure.in: likewise
4680         * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4681         rename call to avoid name clash.
4682         * java/lang/natSystem.cc: add eCos clock support.
4683         * java/util/natGregorianCalendar.cc: add eCos support.
4684         
4685 1998-11-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
4686
4687         * Makefile.am, Makefile.in, configure.host: tx39 build option 
4688         "-G 0" added.
4689
4690 Wed Nov 18 18:55:25 1998  Warren Levy  <warrenl@cygnus.com>
4691
4692         * java/io/BufferedReader.java: Added more comments for clarity.
4693         (mark): Used more mnemonic name for local var extraBuffSpace.
4694
4695         * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4696         confusion with private method of same name in superclass.
4697         (skipRedundantLF): Set fields in special case to avoid infinite
4698         recursion.  Check if markPos has been invalidated in special case.
4699         (readLine): Rewritten to use readLine method of superclass.
4700         (skip): Incorporated code from lineEnd.
4701
4702 Wed Nov 18 02:46:03 1998  Warren Levy  <warrenl@cygnus.com>
4703
4704         * java/io/BufferedReader.java (readLine): New method.
4705         (lineEnd): new private method.
4706         (mark): Track special case for readLine of getting '\r' at the
4707         end of the buffer.
4708         (reset): Ditto.
4709         (read): Ditto.
4710         (fill): Ditto.
4711         (skip): Ditto.
4712
4713         * java/io/InputStreamReader.java (read): Return number chars skipped
4714         rather than requested.
4715
4716         * java/lang/StringBuffer.java (append): Update count and differentiate
4717         between field and local variable.
4718
4719         * java/util/Date.java (parseTz): Evaluate in minutes rather than
4720         seconds.  Deal with military style time.
4721         (parse): Consistently treat all timezones in minutes until final
4722         calculation.  Flag as non-local timezone.  Return value in milliseconds.
4723         (setTime): Adjust for year offset from 1900.
4724         (UTC): Adjust for year offset from 1900.
4725
4726 1998-11-17  Tom Tromey  <tromey@cygnus.com>
4727
4728         * configure: Rebuilt.
4729         * configure.in: Switch on host, not target.
4730
4731         * Makefile.in: Rebuilt.
4732         * Makefile.am (GCJ_no): New macro.
4733         (GCJ): Use @CANADIAN@.
4734         (GCJH_no): New macro
4735         (GCJH_canadian): New macro.
4736         (GCJH): Use @CANADIAN@.
4737         (ZIP_no): New macro.
4738         (ZIP_canadian): New macro.
4739         (ZIP): Use @CANADIAN@.
4740         * aclocal.m4, configure: Rebuilt.
4741         * configure.in (CANADIAN): Compute and subst.
4742
4743 Tue Nov 17 12:44:37 1998  Anthony Green  <green@cygnus.com>
4744
4745         * java/io/FileDescriptor.java (finalize): Only close file
4746         descriptor if valid.
4747
4748 1998-11-17  Tom Tromey  <tromey@cygnus.com>
4749
4750         * prims.cc (_Jv_InitRuntime): Removed.
4751
4752 1998-11-16  Tom Tromey  <tromey@cygnus.com>
4753
4754         * java/io/FileOutputStream.java (close): Only close file
4755         descriptor if valid.
4756         (finalize): New method.
4757
4758         * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4759         (_Jv_NewPrimArray): Likewise.
4760         * boehm.cc (_Jv_RegisterFinalizer): Use
4761         GC_REGISTER_FINALIZER_NO_ORDER.
4762         (GC_GENERIC_MALLOC): New define.
4763         (_Jv_AllocObj): Use it.
4764         (_Jv_AllocArray): Likewise.
4765         (_Jv_AllocBytes): Likewise.
4766         (_Jv_MarkObj): Just return if vtbl not set.
4767         (_Jv_MarkArray): Likewise.
4768         (MAYBE_MARK): New macro; use everywhere.
4769         (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4770
4771 Mon Nov 16 14:57:53 1998  Warren Levy  <warrenl@cygnus.com>
4772
4773         * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4774         to a jlong before calculation to prevent overflow.
4775
4776 1998-11-16  Tom Tromey  <tromey@cygnus.com>
4777
4778         * Makefile.in: Rebuilt.
4779         * Makefile.am (nat_headers): Fixed typo.
4780
4781 1998-11-15  Tom Tromey  <tromey@cygnus.com>
4782
4783         * java/lang/Class.h (Class::getName): Removed definition.
4784         * Makefile.in: Rebuilt.
4785         * Makefile.am (nat_headers): Added InstantiationException.h,
4786         NoSuchMethodException.h.
4787         * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4788         (init_name): New global.
4789         (hackRunInitializers): Use clinit_name.
4790         Include InstantiationException.h, NoSuchMethodException.h.
4791         (newInstance): Do some error checking (but not all).  Call
4792         constructor.
4793         (forName): Throw exception if class not found.
4794         (getName): New method.
4795         (forName): Transform class name from external format to internal
4796         format before lookup.
4797
4798 1998-11-15  Anthony Green  <green@cygnus.com>
4799
4800         * java/lang/Class.h (Class::forName): Method is static.
4801
4802         * java/lang/natClass.cc (newInstance): Add simple implementation.
4803         (forName): Ditto.
4804
4805 Sat Nov 14 18:25:13 1998  Per Bothner  <bothner@cygnus.com>
4806
4807         * java/lang/Class.h (Class::accflags):  Must be unsigned short (not
4808         int), for compatibility with jc1.
4809
4810 1998-11-14  Tom Tromey  <tromey@cygnus.com>
4811
4812         * include/config.h.in: Rebuilt.
4813         * acconfig.h (LINUX_THREADS): New define.
4814         * configure: Rebuilt.
4815         * configure.in: Define LINUX_THREADS if using POSIX threads on
4816         Linux.  Look for pthread_mutexattr_setkind_np function.
4817         * posix-threads.cc (throw_cleanup): New function.
4818         (really_start): Push cleanup function.
4819         (_Jv_ThreadCancel): New function.
4820         (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4821         (_Jv_ThreadInitData): Set `exception' field in new structure.
4822         (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4823         thread.
4824         (_Jv_ThreadWait): New function.
4825         (_Jv_InitThreads): Initialize daemon globals.
4826         (FLAG_DAEMON): New macro.
4827         (really_start): Notify daemon_cond when non-daemon thread exits.
4828         Include <java/lang/System.h>.
4829         (struct starter): `object' field now a thread.
4830         (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4831         * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4832         (_Jv_ThreadWait): Removed definition.
4833         (_Jv_Thread_t): Added `exception' field.
4834         (_Jv_ThreadCancel): Removed definition.
4835
4836 1998-11-13  Tom Tromey  <tromey@cygnus.com>
4837
4838         * Makefile.in: Rebuilt.
4839         * Makefile.am (libjava.zip): Compute javac before changing
4840         directory.
4841
4842         * Makefile.in: Rebuilt.
4843         * Makefile.am (libjava.zip): Include directory entries.
4844
4845         * Makefile.in: Rebuilt.
4846         * Makefile.am (expanded): New macro.
4847         (GCJ): Use it.
4848
4849 1998-11-12  Tom Tromey  <tromey@cygnus.com>
4850
4851         * prims.cc (clone): New function.
4852         * include/java-array.h (__JArray::clone): Removed definition.
4853
4854         * java/lang/natObject.cc (clone): Don't assert that class is not
4855         an array; array's `clone' method just calls this one.
4856
4857         * Makefile.in: Rebuilt.
4858         * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4859         Now creates zip file.  Changed all users.
4860         (ZIP): New macro.
4861         (data_DATA): New macro.
4862
4863 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4864
4865         * configure: Rebuilt.
4866         * configure.in: Recognize --enable-java-gc, not --enable-gc.
4867
4868 Wed Nov 11 18:13:46 1998  Warren Levy  <warrenl@cygnus.com>
4869
4870         * java/io/InputStream.java (reset): Add msg to thrown exception.
4871
4872 Wed Nov 11 17:57:02 1998  Warren Levy  <warrenl@cygnus.com>
4873
4874         * java/io/LineNumberInputStream.java: Rewritten.
4875
4876         * java/io/StringBufferInputStream.java: Removed extraneous import.
4877
4878 Wed Nov 11 15:19:33 1998  Warren Levy  <warrenl@cygnus.com>
4879
4880         * java/io/StringBufferInputStream.java: Rewritten.
4881
4882         * java/util/Date.java (parseMonth): Optimize.
4883         (parseDayOfWeek): Created.
4884         (parse): Optimize to use parseDayOfWeek.
4885
4886 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4887
4888         * java/lang/StringBuffer.java (append): Handle case where STR is
4889         `null'.
4890
4891         * include/javaprims.h: Regenerated class declarations.
4892
4893         * configure: Rebuilt.
4894         * configure.in: Added --enable-gcj-classes,
4895         --enable-single-compilation, --enable-source-compilation flags.
4896         * Makefile.in: Rebuilt.
4897         * Makefile.am (java_io_files): New macro.
4898         (java_lang_files): Likewise.
4899         (java_text_files): Likewise.
4900         (java_util_files): Likewise.
4901         (java_files): Use new macros.
4902         (java-io.o): New target.
4903         (java-lang.o): Likewise.
4904         (java-text.o): Likewise.
4905         (java-util.o): Likewise.
4906         (src_io_files): New macro.
4907         (src_lang_files): Likewise.
4908         (src_text_files): Likewise.
4909         (src_util_files): Likewise.
4910         (class_io_files): New macro.
4911         (class_lang_files): Likewise.
4912         (class_text_files): Likewise.
4913         (class_util_files): Likewise.
4914         (class_files): Use new macros.
4915         (javao_files): Define conditionally.
4916         (.java.o): New target.
4917         ($(javao_files)): New target.
4918         (GCJ): new macro.
4919         (GCJH): Added $(EXEEXT).
4920         (CLASSPATH_ENV): Removed.
4921         (GCJCOMPILE): New macro.
4922
4923 Wed Nov 11 12:03:15 1998  Warren Levy  <warrenl@cygnus.com>
4924
4925         * java/util/Date.java (parse): Written from scratch.
4926
4927 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4928
4929         * java/lang/Throwable.java (toString): Correct sense of test for
4930         determining when to include detail message in result.
4931
4932         * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4933         constructor.
4934
4935 Fri Nov  6 16:30:20 1998  Tom Tromey  <tromey@ferrule.cygnus.com>
4936
4937         * java/lang/Class.h: Use _Jv_RegisterClasses, not
4938         _Jv_RegisterClass.
4939         * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4940         (_Jv_RegisterClass): Use it.
4941         * include/jvm.h (_Jv_RegisterClasses): Declare.
4942         * java/lang/natObject.cc (init): Removed.
4943         (sync_init): Never call _Jv_InitializeSyncMutex.
4944         (_Jv_InitializeSyncMutex): Don't set `init'.
4945         * prims.cc (JvRunMain): Don't run init functions.
4946
4947 Thu Nov  5 17:14:37 1998  Tom Tromey  <tromey@sanguine.cygnus.com>
4948
4949         * java/lang/natClass.cc (initializeClass): Set state before
4950         resolving constants.
4951
4952         * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4953         (STATE_RESOLVED): New macro.
4954         (initializeClass): Call resolveConstants.
4955         (hackRunInitializers): Don't call resolveConstants.
4956         (_Jv_FindArrayClass): Move short-circuit return for primitive
4957         element types earlier in function.
4958
4959 1998-11-03  Tom Tromey  <tromey@hoser.cygnus.com>
4960
4961         * prims.cc (no_memory): New global.
4962         (_Jv_makeUtf8Const): Throw no_memory.
4963         (_Jv_AllocObject): Likewise.
4964         (_Jv_NewObjectArray): Likewise.
4965         (_Jv_NewPrimArray): Likewise.
4966         (JvRunMain): Initialize no_memory.
4967
4968 Tue Nov  3 17:15:45 1998  Warren Levy  <warrenl@cygnus.com>
4969
4970         * java/io/FileInputStream.java: Corrected date comment.
4971         * java/io/SequenceInputStream.java: Rewritten.
4972
4973 Mon Nov  2 17:20:31 1998  Tom Tromey  (tromey@cygnus.com)
4974
4975         * java/lang/FirstThread.java (die): New method.
4976         * java/lang/natFirstThread.cc (die): Removed.
4977         (DIE): New macro.
4978         (run): Use `DIE', not `die'.
4979
4980 Mon Nov  2 16:23:41 1998  Warren Levy  <warrenl@cygnus.com>
4981
4982         * java/io/CharArrayReader.java (read): Move check into synchronized
4983         block to prevent a close while in progress.
4984         (reset): Ditto.
4985         (skip): Ditto.
4986         * java/io/PushbackReader.java (read): Ditto.
4987         (ready): Ditto.
4988         (unread): Ditto.
4989         * java/io/StringReader.java (mark): Ditto.
4990         (read): Ditto.
4991         (reset): Ditto.
4992         (skip): Ditto.
4993
4994 Mon Nov  2 15:56:20 1998  Warren Levy  <warrenl@cygnus.com>
4995
4996         * java/io/PipedInputStream.java: Updated status.
4997         (connect): Added code to prevent infinite recursion and to
4998         differentiate exception causes.
4999         (read): Added code to differentiate exception causes.
5000         (receive): Made exception pass string with the cause.
5001
5002         * java/io/PipedOutputStream.java: Updated status.
5003         (connect): Added code to call connect at the other end of the pipe.
5004
5005 Mon Nov  2 00:22:12 1998  Warren Levy  <warrenl@cygnus.com>
5006         
5007         * java/io/PipedInputStream.java (connect): Throw exception if
5008         already connected to the same output stream.
5009         (read): Do bounds checking first.
5010
5011 Sun Nov  1 22:48:55 1998  Warren Levy  <warrenl@cygnus.com>
5012
5013         * java/io/PipedInputStream.java: Added private boolean outClosed.
5014         (available): Removed check if output stream is open.
5015         (close): Mark the buffer as empty so available returns 0.
5016         (read): Check if the output stream was closed and then return EOF
5017         when the buffer is empty.
5018         (receive): Mark the output stream as closed when passed a -1.
5019
5020         * java/io/PipedOutputStream.java (close): Notify the input stream
5021         that there's no more data coming.
5022         (connect): Added a FIXME comment to note more coordination needed
5023         with PipedInputStream.
5024         (flush): Added a FIXME comment to mark what this method might do
5025         instead of nothing.
5026
5027 Fri Oct 30 14:27:21 1998  Warren Levy  <warrenl@cygnus.com>
5028
5029         * java/io/PipedInputStream.java: Rewritten.
5030
5031 1998-10-30  Tom Tromey  <tromey@cygnus.com>
5032
5033         * java/lang/Throwable.java: Rewrote from scratch.
5034
5035         * java/lang/Class.h (Class): Don't mention newMultiArray.
5036         * prims.cc (newMultiArray): Removed.
5037         (_Jv_NewMultiArray): Removed.
5038         (newArray): Removed.
5039         (new_multi_array): New function.
5040         (_Jv_NewMultiArray): Rewrote from scratch.
5041
5042         * include/javaprims.h: Regenerated class declarations.
5043         * classes.pl (scan): Don't declare PrimClass.
5044         * include/cni.h (JvPrimClass): Use new names for classes.
5045         * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
5046         added _Jv_PrimClass.
5047         * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
5048         (_Jv_initPrimClass): Removed.
5049         (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
5050         (_Jv_AllocObject): Added comment.
5051         (_Jv_NewObjectArray): Likewise.
5052         (_Jv_NewPrimArray): Likewise.
5053
5054 1998-10-29  Tom Tromey  <tromey@cygnus.com>
5055
5056         * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
5057         (_Jv_FindArrayClass): Use dtable_method_count to compute size of
5058         new dtable.
5059         * java/lang/Class.h (Class): Added `dtable_method_count' field.
5060
5061         * java/lang/natObject.cc (init): New global.
5062         (sync_init): Call _Jv_InitializeSyncMutex if required.
5063
5064         * Makefile.in: Rebuilt.
5065         * Makefile.am (nat_headers): Added ClassLoader.h.
5066         * include/jvm.h (_Jv_FindClassFromSignature): Declare.
5067         * java/lang/Class.h (Class): simpleLookupClass, insertClass,
5068         internalAddClass, lookupArray no longer friends.
5069         _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
5070         _Jv_FindArrayClass now friends.
5071         * java/lang/natClass.cc (HASH_LEN): New macro.
5072         (HASH_UTF): Likewise.
5073         (loaded_classes): New global.
5074         (_Jv_FindClass): New function.
5075         (ClassClass): New define.
5076         (_Jv_FindClassInCache): New function.
5077         (_Jv_RegisterClass): Likewise.
5078         (_Jv_NewClass): Likewise.
5079         Include <string.h>
5080         (ObjectClass): New define.
5081         (CloneableClass): New define.
5082         * prims.cc (_Jv_FindClass): Removed.
5083         (simpleLookupClass): Removed.
5084         (insertClass): Removed.
5085         (CLASSHASHSZ): Removed.
5086         (classPool): Removed.
5087         (_Jv_RegisterClass): Removed.
5088         (internalAddClass): Removed.
5089         (ClassClass): Removed.
5090         (RuntimeClass): Removed.
5091         (lookupArray): Removed.
5092         (CloneableClass): Removed.
5093         (CLASSMAXSIG): Removed.
5094         Rearranged file to group related functions together.
5095         (_Jv_IsInstanceOf): Moved to natClass.cc.
5096         (abort_final): Removed.
5097         Removed some unused includes.
5098         (classFromSig): Removed.
5099         (_Jv_FindClassFromSignature): New function.
5100         (_Jv_initPrimClass): Renamed.
5101         (getClass): Removed.
5102
5103 Thu Oct 29 23:17:17 1998  Warren Levy  <warrenl@cygnus.com>
5104
5105         * java/io/FileDescriptor.java (finalize): Throws IOException
5106         instead of Throwable.
5107
5108         * java/io/FileInputStream.java: Rewritten.
5109
5110         * java/io/StreamTokenizer.java (nextToken): Unread newline character
5111         at the end of a comment.
5112
5113 1998-10-29  Tom Tromey  <tromey@cygnus.com>
5114
5115         * include/javaprims.h: Regenerated class declarations.
5116         * classes.pl (scan): Don't special-case ClassLoader.
5117
5118         * prims.cc (processClass): Removed.
5119         (_Jv_InitClass): Removed.
5120         Removed all CSTATE_ macros.
5121         (resolveConstants): Removed.
5122         (MAXDIMS): Removed.
5123         (_Jv_NewMultiArray): Cleaned up.
5124         * Makefile.in: Rebuilt.
5125         * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
5126         * java/lang/Class.h (Class): Declare new methods.  processClass no
5127         longer a friend.
5128         * java/lang/Class.java (hackTrampoline): New method.
5129         (initializeClass): Declare.
5130         (hackRunInitializers): Declare.
5131         * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
5132         (initializeClass): New method.
5133         (hackRunInitializers): New method.
5134         (init_name, void_signature): Moved from prims.cc.
5135         (_Jv_InitClass): New function.
5136         (isAssignableFrom): Don't call processClass.
5137         (STATE_NOTHING): New macro.
5138         (resolveConstants): New function.
5139         Include Thread.h.
5140         (ErrorClass): New define.
5141
5142         * java/lang/Class.java (getClassLoader): Declare.
5143         * java/lang/ClassLoader.java: Rewrote from scratch.
5144
5145         * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
5146         AbstractMethodError.h, IllegalAccessError.h,
5147         NoClassDefFoundError.h.
5148         * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
5149         * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
5150         longer static.  Changed return type.
5151         * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
5152         * java/lang/Class.h (Class): findMethodLocal no longer a friend.
5153         * prims.cc (findMethodLocal): Removed.
5154         (processClass): Use _Jv_GetMethodLocal.
5155
5156 1998-10-28  Tom Tromey  <tromey@cygnus.com>
5157
5158         * prims.cc (_Jv_LookupInterfaceMethod): Removed.
5159         * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
5160         friend.
5161         * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
5162         (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
5163
5164         * include/jni.h: Added copyright header.
5165         * include/javaprims.h: Added copyright header.
5166         * include/java-field.h: Added copyright header.
5167         * include/java-array.h: Added copyright header.
5168         * include/cni.h: Added copyright header.
5169
5170         * include/javaprims.h: Regenerated class declarations using
5171         classes.pl; now they are complete.
5172         * classes.pl: New file.
5173
5174         * java/lang/natMath.cc: Include <config.h>.
5175         * java/lang/reflect/natField.cc: Include <config.h>.
5176         * java/util/NativeUtil.java: Removed.
5177         * Makefile.in: Rebuilt.
5178         * Makefile.am (nat_headers): Added Math.h.
5179         * java/lang/Math.h: Removed.
5180         * java/util/natGregorianCalendar.cc: Added copyright header.
5181         Include <config.h>.
5182         * java/lang/natFloat.cc: Added copyright header.
5183         * java/lang/Byte.java: Added copyright header.
5184         * java/lang/Void.java: Added copyright header.
5185         * java/lang/Short.java: Added copyright header.
5186
5187 Wed Oct 28 12:55:47 1998  Warren Levy  <warrenl@cygnus.com>
5188
5189         * include/javaprims.h (java::io): Added bunch of missing classes.
5190         
5191         * java/io/DataInputStream.java (readLine): Added a special case
5192         for handling BufferedInputStream data to reduce the likelihood
5193         of a pushback error.
5194         (skipBytes): Added code to handle negative number of skip bytes.
5195         
5196         * java/io/StreamTokenizer.java: Rewritten.
5197
5198 1998-10-28  Tom Tromey  <tromey@cygnus.com>
5199
5200         * java/util/natGregorianCalendar.cc (computeFields): Call
5201         getRawOffset as a method.
5202
5203         * include/javaprims.h (java::io): Added FilterOutputStream.
5204         * Makefile.in: Rebuilt.
5205         * Makefile.am (nat_headers): Added PrintStream.h,
5206         FilterOutputStream.h.
5207         * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5208         PrintStream.h.
5209         (die): New function.
5210         (run): Die if `main' not found, is not public, or is not static.
5211
5212         * boehm.cc (_Jv_MarkObj): Use new field names.
5213         * include/java-field.h (JvGetFirstInstanceField): Use new field
5214         names.
5215         (JvNumInstanceFields): Likewise.
5216         * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5217         (getInterfaces): Likewise.
5218         * prims.cc (CLASS_CONSTANTS): Removed.
5219         (CLASS_CONST_SIZE): Likewise.
5220         (CLASS_CONST_TAG): Likewise.
5221         (CLASS_CONST_DATA): Likewise.
5222         (CLASS_CONST_UTF8): Likewise.
5223         (WORD2UTF): Likewise.
5224         (CLASS_CLASS): Likewise.
5225         (CLASS_PRIM_SIG): Likewise.
5226         (CLASS_ARRAY_CACHE): Likewise.
5227         (HASH_CHARS): Likewise.
5228         (hashClassName): Likewise.
5229         Many changes to use new field names.
5230         * java/lang/Class.h (Class): Renamed fields to track compiler.
5231
5232 1998-10-27  Tom Tromey  <tromey@cygnus.com>
5233
5234         * java/lang/natClass.cc: Use #pragma implementation.
5235         (getComponentType): Moved into header.
5236         (getModifiers): Likewise.
5237         (getName): Likewise.
5238         (getSuperclass): Likewise.
5239         (isArray): Likewise.
5240         (isPrimitive): Likewise.
5241         * include/jvm.h (_Jv_FindClass): Declare.
5242         * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5243         * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5244         * include/javaprims.h: Use _Jv_Method, not JvMethod.
5245         * java/lang/Class.h: Rewrote from scratch.
5246         * prims.cc: Many changes to work with new Class.h.
5247         * include/java-field.h (CLASS_FIELDS): Removed.
5248         (CLASS_SFIELDS): Likewise.
5249         (CLASS_IFIELDS): Likewise.
5250         (CLASS_NFIELDS): Likewise.
5251         (CLASS_NIFIELDS): Likewise.
5252         (CLASS_NSFIELDS): Likewise.
5253         (CLASS_FSIZE): Likewise.
5254         (JvGetFirstInstanceField): Rewrote.
5255         (JvNumInstanceFields): Likewise.
5256
5257         * java/lang/Object.h: Added copyright comment.
5258
5259 Wed Oct 28 00:32:23 1998  Per Bothner  <bothner@cygnus.com>
5260
5261         * java/text:  New package directory.
5262         * java/text/FieldPosition.java:  New class.
5263         * java/text/ParsePosition.java:  New class. 
5264         * java/text/ParseException.java:  New Exception class.
5265         * java/text/Format.java:  New class.
5266         * java/text/NumberFormat.java:  New (empty placeholder) class.
5267         * java/text/DateFormatSymbols.java:  New class (no Locales support).
5268         * java/text/DateFormat.java:  New Format class (incomplete).
5269         * java/text/SimpleDateFormat.java:  New DateFormat class.
5270         
5271         * include/javaprims.h (java::test):  Added new package and classes.
5272         * java/util/Calendar.java (clone):  New method.
5273         * java/util/Date.java (toString):  Added non-native implementation.
5274         (parse):  Made public instead of synchronized.
5275         * java/util/natDate.cc (toString):  Removed.
5276         * java/util/natGregorianCalendar.cc (computeFields):
5277         Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5278
5279 1998-10-27  Tom Tromey  <tromey@cygnus.com>
5280
5281         * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5282
5283         * prims.cc (lookupArray): Added explanatory comment.
5284         * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5285         class.  Mark the class of each object.
5286         (_Jv_MarkArray): Mark the object's class.
5287
5288         * configure: Rebuilt.
5289         * configure.in: Create java-gc.h.
5290         * include/boehm-gc.h: New file.
5291         * include/no-gc.h: New file.
5292         * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5293         defined.
5294         * java/lang/Object.h: Include java-gc.h.
5295         (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5296         friends, if defined.
5297         * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5298         signature.
5299         (_Jv_MarkArray): Renamed from mark_array; changed signature.
5300
5301 1998-10-26  Tom Tromey  <tromey@cygnus.com>
5302
5303         * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5304         paragraph separators, not numbers.
5305
5306         * java/io/Writer.java (write): Removed write(char) to avoid
5307         ambiguity.
5308         * java/util/Properties.java: Rewrote from scratch.
5309         * include/javaprims.h (java::io): Added PrintWriter,
5310         BufferedWriter, PushbackReader.
5311
5312 Mon Oct 26 13:13:28 1998  Anthony Green  <green@cygnus.com>
5313
5314         * java/lang/System.java: exit() is a static method.
5315
5316 1998-10-26  Tom Tromey  <tromey@cygnus.com>
5317
5318         * java/lang/natString.cc (_Jv_NewStringUTF): Use
5319         _Jv_strLengthUtf8.
5320         (_Jv_NewStringUtf8Const): Likewise.
5321         * include/jvm.h (_Jv_strLengthUtf8): Declare.
5322         * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5323
5324         * java/lang/Object.h (Object): Add mark_array as friend function.
5325         * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5326         _Jv_AllocBytes, to ensure that header is marked.
5327         * boehm.cc (mark_obj): Push sync_info field for all objects, not
5328         just Objects.
5329         (mark_array): Push sync_info field for array.
5330
5331 1998-10-24  Tom Tromey  <tromey@cygnus.com>
5332
5333         * java/lang/String.java (String): Updated for StringBuffer
5334         change.
5335         * java/util/BitSet.java: Renamed field (data->bits) to conform to
5336         serialization spec.
5337         * java/lang/StringBuffer.java: Renamed fields to conform to
5338         serialization spec: buffer->value, next->count, copy->shared.
5339
5340 Wed Oct 21 18:24:57 1998  Per Bothner  <bothner@cygnus.com>
5341
5342         * java/util/TimeZone.java:  New class.
5343         * java/util/SimpleTimeZone.java:  New class.
5344         * java/util/Locale.java:  New file.
5345         * java/util/Calendar.java:  Make almost complete.
5346         * java/util/GregorianCalendar.java
5347         * java/util/natGregorianCalendar.cc:  New file.
5348         * java/util/Date.java:  Re-written from scratch.
5349         * java/util/natDate.cc (setTime):  Removed - no longer native.
5350         * include/javaprims.h (java::util):  Add new classes.
5351         * Makefile.am (nat_files):  Add java/util/natGregorianCalendar.o.
5352         (nat_headers);  Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5353
5354 Sat Oct 24 22:58:25 1998  Warren Levy  <warrenl@cygnus.com>
5355
5356         * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5357         returning it as a jint.
5358
5359 1998-10-23  Tom Tromey  <tromey@cygnus.com>
5360
5361         * prims.cc (arg_vec, main_group, main_thread): New globals.
5362         (JvRunMain): Use them.
5363
5364 Fri Oct 23 17:10:12 1998  Warren Levy  <warrenl@cygnus.com>
5365
5366         * java/io/DataInputStream.java: Rewritten.
5367
5368         * java/io/DataOutputStream.java (writeUTF): OR secondary and
5369         tertiary bytes with 0x80 per spec.
5370
5371 1998-10-23  Tom Tromey  <tromey@cygnus.com>
5372
5373         * java/lang/String.java (init): Changed name of `copy' argument.
5374         * java/lang/natString.cc (init): Inverted sense of `copy'
5375         argument.
5376
5377         * java/lang/Object.h (Object): Declare mark_obj as a friend.
5378         * java/lang/Class.h (Class): Declare mark_obj as a friend.
5379         * boehm.cc (ObjectClass): New define.
5380         (ClassClass): Likewise.
5381         (mark_obj): Special-case Object and Class.
5382
5383         * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5384
5385         * java/util/BitSet.java: Rewrote from scratch.
5386
5387         * prims.cc (lookupArray): Removed useless cast.
5388
5389         * java/lang/natObject.cc: Use `#pragma implementation'.
5390
5391         * java/lang/String.java (init): Added `copy' argument.
5392         (String): Look in StringBuffer to find char array.
5393         * java/lang/natString.cc (init): Added `copy' argument.
5394         * java/lang/StringBuffer.java: Rewrote from scratch.
5395
5396         * java/lang/Compiler.java: Rewrote from scratch.
5397         * java/lang/Throwable.java: Don't use NativeLang.
5398         * include/javaprims.h (java::lang): Don't mention NativeLang.
5399         * java/lang/Process.java: Rewrote from scratch.
5400         * java/lang/SecurityManager.java (classLoaderDepth): Commented
5401         out.
5402         (currentClassLoader): Likewise.
5403         (currentLoadedClass): Likewise.
5404         * java/lang/natClass.cc (getClassLoader): Commented out.
5405         * java/lang/Class.java (getClassLoader): Commented out.
5406         * java/lang/Compiler.java: Removed.
5407         * java/lang/NativeLang.java: Removed.
5408
5409         * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5410         * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5411         * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5412         (_Jv_hashUtf8String): Now static.
5413         * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5414         name of return type.
5415
5416         * java/lang/Class.h (Class): Declare checkMemberAccess.
5417         * Makefile.in: Rebuilt.
5418         * Makefile.am (nat_headers): Added Member.h.
5419         * java/lang/natClass.cc: Include Member.h.
5420         (getDeclaredClasses): Call checkMemberAccess.
5421         * java/lang/Class.java (checkMemberAccess): Call
5422         SecurityManager.checkMemberAccess.
5423
5424 Fri Oct 23 08:01:54 1998  Anthony Green  <green@cygnus.com>
5425
5426         * java/lang/SecurityManager.java: Rewritten.
5427
5428 Thu Oct 22 17:16:10 1998  Anthony Green  <green@cygnus.com>
5429
5430         * java/applet/Applet.java, java/applet/AppletContext.java,
5431         java/applet/AppletStub.java, java/applet/AudioClip.java,
5432         java/awt/AWTError.java, java/awt/AWTException.java,
5433         java/awt/BorderLayout.java, java/awt/Button.java,
5434         java/awt/Canvas.java, java/awt/CardLayout.java,
5435         java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5436         java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5437         java/awt/Color.java, java/awt/Component.java,
5438         java/awt/Container.java, java/awt/Dialog.java,
5439         java/awt/Dimension.java, java/awt/Event.java,
5440         java/awt/FileDialog.java, java/awt/FlowLayout.java,
5441         java/awt/Font.java, java/awt/FontMetrics.java,
5442         java/awt/Frame.java, java/awt/Graphics.java,
5443         java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5444         java/awt/GridLayout.java, java/awt/Image.java,
5445         java/awt/Insets.java, java/awt/Label.java,
5446         java/awt/LayoutManager.java, java/awt/List.java,
5447         java/awt/MediaTracker.java, java/awt/Menu.java,
5448         java/awt/MenuBar.java, java/awt/MenuComponent.java,
5449         java/awt/MenuContainer.java, java/awt/MenuItem.java,
5450         java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5451         java/awt/Rectangle.java, java/awt/Scrollbar.java,
5452         java/awt/TextArea.java, java/awt/TextComponent.java,
5453         java/awt/TextField.java, java/awt/Toolkit.java,
5454         java/awt/Window.java, java/awt/image/ColorModel.java,
5455         java/awt/image/CropImageFilter.java,
5456         java/awt/image/DirectColorModel.java,
5457         java/awt/image/FilteredImageSource.java,
5458         java/awt/image/ImageConsumer.java,
5459         java/awt/image/ImageFilter.java,
5460         java/awt/image/ImageObserver.java,
5461         java/awt/image/ImageProducer.java,
5462         java/awt/image/IndexColorModel.java,
5463         java/awt/image/MemoryImageSource.java,
5464         java/awt/image/PixelGrabber.java,
5465         java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5466         java/awt/peer/CanvasPeer.java,
5467         java/awt/peer/CheckboxMenuItemPeer.java,
5468         java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5469         java/awt/peer/ComponentPeer.java,
5470         java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5471         java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5472         java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5473         java/awt/peer/MenuBarPeer.java,
5474         java/awt/peer/MenuComponentPeer.java,
5475         java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5476         java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5477         java/awt/peer/TextAreaPeer.java,
5478         java/awt/peer/TextComponentPeer.java,
5479         java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5480         java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5481         java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5482         java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5483         java/net/MalformedURLException.java, java/net/NativeNet.java,
5484         java/net/ProtocolException.java, java/net/ServerSocket.java,
5485         java/net/Socket.java, java/net/SocketException.java,
5486         java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5487         java/net/URL.java, java/net/URLConnection.java,
5488         java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5489         java/net/URLStreamHandlerFactory.java,
5490         java/net/UnknownHostException.java,
5491         java/net/UnknownServiceException.java: Removed.
5492
5493 1998-10-22  Tom Tromey  <tromey@cygnus.com>
5494
5495         * prims.cc (_Jv_AllocObject): Register finalizer if class'
5496         finalizer is not Object.finalize.
5497         (internalAddClass): Don't set `final' member of class.
5498         * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5499         other places that know about finalize() location.
5500         * java/lang/Class.h (Class): Removed `final' field.
5501
5502         * aclocal.m4, configure: Rebuilt.
5503         * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5504         AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5505         set.
5506         * configure.in (AC_OUTPUT): Pass CXX to config.status.
5507         * Makefile.in: Rebuilt.
5508         * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5509
5510 1998-10-21  Tom Tromey  <tromey@cygnus.com>
5511
5512         * java/lang/Object.java (finalize): Move to be first method in
5513         class.
5514
5515         * configure: Rebuilt.
5516         * configure.in (GCINCS): Include contents of boehm-cflags file.
5517
5518 Tue Oct 20 13:11:04 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5519
5520         * java/lang/ArrayIndexOutOfBoundsException.java
5521         (ArrayIndexOutOfBoundsException): Fixed string literal.
5522         * java/lang/StringIndexOutOfBoundsException.java
5523         (StringIndexOutOfBoundsException): Fixed string literal.
5524
5525 1998-10-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
5526
5527         * natFileDescriptorEcos.cc added.
5528         * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.  
5529
5530 1998-10-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
5531
5532         * acconfig.h: test for __int32_t and __uint32_t added.
5533         * include/config.h.in: test for __int32_t and __uint32_t added.
5534         * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5535         * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5536         * configure.in: test for __int32_t and __uint32_t added.
5537         * configure: test for __int32_t and __uint32_t added.
5538         
5539         * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.  
5540
5541         * configure.in: Test for --enable ecos and link
5542         natFileDescriptor.cc to natFileDescriptorEcos.cc or
5543         natFileDescriptorPosix.cc
5544         
5545         * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5546         
5547 Mon Oct 19 18:13:58 1998  Warren Levy  <warrenl@cygnus.com>
5548
5549         * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5550         in isn't negative.
5551
5552         * java/io/CharArrayReader.java (close): Synchronize on lock
5553         object per Reader contract.
5554         (read): Synchronize on lock obj.  Verify that reader wasn't closed.
5555         (reset): Synchronize on lock obj.  Verify that reader wasn't closed.
5556         (skip): Synchronize on lock obj.  Verify that reader wasn't closed.
5557         Ensure that arg passed in isn't negative.
5558
5559         * java/io/FilterReader.java (FilterReader): Use the lock obj when
5560         constructing the superclass.
5561
5562         * java/io/PushbackReader.java (close): Synchronize on lock
5563         object per Reader contract.
5564         (read): Synchronize on lock obj.  Verify that reader wasn't closed.
5565         (ready): Synchronize on lock obj.  Throw IOException if reader
5566         wasn't closed.
5567         (reset): Synchronize on lock obj.  Verify that reader wasn't closed.
5568         (skip): Synchronize on lock obj.  Verify that reader wasn't closed.
5569         Ensure that arg passed in isn't negative.
5570         (unread): Synchronize on lock obj.  Verify that reader wasn't closed.
5571
5572         * java/io/StringReader.java: Created.
5573         
5574 Sun Oct 18 02:19:11 1998  Warren Levy  <warrenl@cygnus.com>
5575
5576         * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5577         to match JCL.
5578         (read): Removed synchronized modifier to match JCL.
5579         (reset): Removed synchronized modifier to match JCL.
5580         (skip): Removed synchronized modifier to match JCL.
5581
5582 Sun Oct 18 02:01:54 1998  Warren Levy  <warrenl@cygnus.com>
5583
5584         * java/io/PushbackReader.java (PushbackReader): Made
5585         constructors public.
5586
5587 1998-10-17  Tom Tromey  <tromey@cygnus.com>
5588
5589         * java/io/PushbackInputStream.java (PushbackInputStream): Made
5590         constructors public.
5591
5592 1998-10-16  Anthony Green  <green@cygnus.com>
5593
5594         * aclocal.m4, configure: Rebuilt.
5595         * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5596         configure.host.
5597         * configure.host: Rewrote.
5598         * Makefile.in: Rebuilt.
5599         * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5600         (AM_CFLAGS): New macro.
5601         ($(c_files)): Use COMPILE macro.
5602         (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5603         automake problem(s).
5604
5605 Fri Oct 16 16:36:28 1998  Warren Levy  <warrenl@cygnus.com>
5606
5607         * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5608
5609         * java/io/CharArrayReader.java: Created.
5610
5611 Fri Oct 16 15:17:01 1998  Warren Levy  <warrenl@cygnus.com>
5612
5613         * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5614         size check to allow 0 per JCL.
5615
5616         * java/io/PushbackReader.java: Created.
5617
5618 1998-10-16  Tom Tromey  <tromey@cygnus.com>
5619
5620         * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5621         <sys/time.h> includes. 
5622         * java/io/natFile.cc: Conditionalize <unistd.h> include.
5623         * include/no-threads.h: Conditionalize <unistd.h> include on
5624         HAVE_UNISTD_H.
5625
5626 Fri Oct 16 14:39:51 1998  Andrew Haley  <aph@madras.cygnus.co.uk>
5627
5628         * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5629         is defined.
5630
5631 Thu Oct 15 19:27:54 1998  Warren Levy  <warrenl@cygnus.com>
5632
5633         * java/io/FilterReader.java: Created.
5634
5635 Thu Oct 15 17:49:43 1998  Warren Levy  <warrenl@cygnus.com>
5636
5637         * java/io/PushbackInputStream.java: Rewritten.
5638
5639         * java/io/BufferedInputStream.java (BufferedInputStream): Check
5640         that size passed to constructor is legal.
5641         (read): Check that args passed in are legal.
5642         (skip): Rewritten to get rid of the temporary buffer.
5643         (refill): Added marklimit check to grow the buffer.
5644
5645         * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5646         check.
5647         (bytesAvail): Removed.
5648         (read): Changed bytesAvail to Math.min.
5649         (skip): Changed bytesAvail to Math.min.
5650
5651         * java/io/InputStream.java (read): Got rid of extraneous exceptions
5652         from the throws clause.
5653         (skip): Rewritten to use a temporary buffer.
5654
5655 Thu Oct 15 19:42:55 1998  Andrew Haley  <aph@madras.cygnus.co.uk>
5656
5657         * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5658         some target OSes
5659
5660         * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5661
5662         * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5663         to write the double one word at a time.
5664
5665 Tue Oct 13 14:41:47 1998  Warren Levy  <warrenl@cygnus.com>
5666
5667         * java/io/BufferedInputStream.java:  Rewritten.
5668
5669 1998-10-12  Tom Tromey  <tromey@cygnus.com>
5670
5671         * jni.cc: Include config.h and stddef.h.
5672
5673         * java/lang/Class.h (_dispatchTable): Removed again.
5674         Removed all ACC_* defines again.
5675
5676 Fri Oct  9 17:08:34 1998  Per Bothner  <bothner@cygnus.com>
5677
5678         * Makefile.am (nat_files):  Add netField.o.
5679         (libjava_a_SOURCES):  Add jni.cc.
5680         (java/lang/reflect/Field.h):  New rule.
5681         * Makefile.in:  Re-generated.
5682         * include/javaprims.h:  Add some extra class and typedefs.
5683         * include/jni.h:  New file.
5684         * jni.cc:  New file.
5685
5686         * include/java-field.h:  New file.
5687         * include/jvm.h:  #include <java-field.h>.
5688         * boehm.cc:  #include <java-field.h>.
5689         * java/lang/Class.h (JvField, inline numbers):  Moved to java-field.h.
5690         * java/lang/reflect/Member.java:  New class.
5691         * java/lang/reflect/Field.java:  New class.  (Very incomplete.)
5692         * java/lang/reflect/natField.cc:  New file.  (Very incomplete.)
5693
5694 Sun Oct 11 00:34:44 1998  Anthony Green  <green@cygnus.com>
5695
5696         * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5697         testsuite/Makefile.in: Rebuilt.
5698         * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5699         * configure.host: Created.
5700
5701 1998-10-10  Tom Tromey  <tromey@cygnus.com>
5702
5703         * java/lang/natObject.cc (sync_init): Always allocate a new
5704         sync_info.
5705
5706 1998-10-09  Tom Tromey  <tromey@cygnus.com>
5707
5708         * java/io/ByteArrayInputStream.java (mark): Renamed from
5709         `mark_FIXME'.
5710
5711         * java/io/FileOutputStream.java (finalize): Removed.
5712         * java/io/FileDescriptor.java (finalize): New method.
5713
5714 Thu Oct  8 17:59:43 1998  Warren Levy  <warrenl@cygnus.com>
5715
5716         * ByteArrayInputStream.java: Corrected status comment.
5717
5718 Thu Oct  8 17:22:49 1998  Warren Levy  <warrenl@cygnus.com>
5719
5720         * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5721
5722 1998-10-08  Tom Tromey  <tromey@cygnus.com>
5723
5724         * prims.cc (lookupArray): Use static array to initialize list of
5725         interfaces.
5726
5727 Thu Oct  8 12:45:03 1998  Anthony Green  <green@cygnus.com>
5728
5729         * prims.cc (lookupArray): Initialize the msize for new
5730         array classes.
5731
5732 Wed Oct  7 12:13:59 1998  Anthony Green  <green@cygnus.com>
5733
5734         * configure: Rebuilt.
5735         * configure.in: Check for fsync and sleep.
5736         * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5737
5738         * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5739         HAVE_SLEEP. Include config.h.
5740
5741         * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5742         * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5743         with HAVE_FSYNC.
5744
5745 1998-10-08  Tom Tromey  <tromey@cygnus.com>
5746
5747         * java/io/natFile.cc: Don't include SecurityManager.h.
5748         (performList): Renamed.
5749         (performMkdir): Likewise.
5750         (performRenameTo): Likewise.
5751         (performDelete): Likewise.
5752         Include <stdlib.h>.
5753         * java/io/File.java (performDelete): Renamed from natDelete.
5754         (list): Now written in Java.
5755         (performList): New method.
5756         (performMkdir): New method.
5757         (mkdir): Now written in Java.
5758         (performRenameTo): New method.
5759         (renameTo): Now written in Java.
5760
5761 1998-10-06  Tom Tromey  <tromey@cygnus.com>
5762
5763         * Makefile.in: Rebuilt.
5764         * Makefile.am (ETAGS_ARGS): New macro.
5765         (TAGS_DEPENDENCIES): Likewise.
5766
5767 Tue Oct  6 22:04:44 PDT 1998 Anthony Green  <green@cygnus.com>
5768
5769         * Makefile.in: Rebuilt.
5770         * Makefile.am: Use -classpath option with javac.
5771         
5772 Tue Oct  6 18:51:31 1998  Tom Tromey  <tromey@cygnus.com>
5773
5774         * java/io/FileOutputStream.java (finalize): Call
5775         super.finalize().
5776
5777 Tue Oct  6 16:02:45 1998  Anthony Green  <green@cygnus.com>
5778
5779         * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5780         with newlib's libm.
5781         * java/lang/mprec.c: Ditto.
5782
5783         * java/lang/mprec.h: Include math.h for HUGE_VAL when
5784         cross-compiling.
5785
5786 Tue Oct  6 14:27:00 1998  Warren Levy  <warrenl@cygnus.com>
5787
5788         * java/io/InputStream.java (skip): Make local var i a long.
5789
5790 Mon Oct  5 09:44:24 1998  Tom Tromey  <tromey@cygnus.com>
5791
5792         * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5793         * prims.cc (lookupArray): Use memcpy, not memmove.
5794         * include/config.h.in: Rebuilt.
5795         * acconfig.h (HAVE_MEMCPY): Added.
5796         * configure: Rebuilt.
5797         * configure.in: Check for memcpy again.
5798
5799         * java/io/RandomAccessFile.java (RandomAccessFile): Use
5800         String.compareTo, not ==.
5801
5802         * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5803         (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5804         * java/lang/natObject.cc (struct _dispatchTable): Removed.
5805         * include/jvm.h (struct _Jv_DispatchTable): New structure.
5806         * prims.cc (lookupArray): Removed dead code.  Copy Object's dtable
5807         into new array's dtable.
5808         (_Jv_AllocObject): Use _Jv_DispatchTable.
5809         (_Jv_NewPrimArray): Likewise.
5810         (_Jv_NewObjectArray): Likewise.
5811
5812 Fri Oct  2 18:57:14 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5813
5814         * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5815         offending index value.
5816         (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5817         appropriate.
5818         * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5819         * java/lang/Throwable.java: (Throwable): fixed argument to this().
5820
5821 Fri Oct  2 15:58:23 1998  Warren Levy  <warrenl@cygnus.com>
5822
5823         * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5824         
5825         * java/io/OutputStream.java (write): Use off and len parameters to
5826         output partial byte array.
5827         
5828         * java/io/BufferedReader.java, java/io/FileReader.java,
5829         java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5830         java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5831         java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5832         java/io/Writer.java: Added COPYRIGHT-TBD comment.
5833
5834         * include/javaprims.h (java::lang): Added
5835         ExceptionInInitializerError, IllegalStateException,
5836         NoSuchFieldException, and UnsupportedOperationException.
5837
5838 Fri Oct  2 01:05:38 1998  Tom Tromey  <tromey@cygnus.com>
5839
5840         * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5841         Class*.
5842
5843         * include/java-array.h (__JArray): Added clone method.
5844         * prims.cc (CloneableClass): New define.
5845         (lookupArray): Initialize array class to indicate that it
5846         implements Cloneable.
5847
5848         * java/lang/Class.h: Removed all ACC_* defines.
5849         * prims.cc: Include Modifier.h.
5850         (_Jv_LookupInterfaceMethod): Use methods in
5851         java.lang.reflect.Modifier, not ACC_ defines.
5852
5853         * java/lang/Class.h (Class): Declare getClasses,
5854         getDeclaredClasses, getDeclaringClass, getModifiers, 
5855         * java/lang/Class.java: Rewrote from scratch.
5856
5857         * include/javaprims.h (java::lang): Added reflect and
5858         reflect::Modifier.
5859         * Makefile.in: Rebuilt.
5860         * Makefile.am (nat_headers): Added Modifier.h.
5861
5862         * prims.cc (_Jv_IsInstanceOf): Return false if class is
5863         primitive.
5864
5865 Fri Oct 2 06:49:00 1998  Anthony Green  <green@cygnus.com>
5866
5867         * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5868         instead of test and abort.
5869
5870         * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5871         remove compiler warning.
5872
5873 Fri Oct  2 12:33:44 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5874
5875         * java/lang/natDouble.cc: zero terminate string.
5876         * strtod.c: Set errno if no digits are found in fraction.
5877
5878 Thu Oct  1 11:48:28 1998  Tom Tromey  <tromey@cygnus.com>
5879
5880         * java/lang/reflect/Modifier.java: New file.
5881
5882         * java/lang/VirtualMachineError.java: Rewrote from scratch.
5883         * java/lang/VerifyError.java: Rewrote from scratch.
5884         * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5885         * java/lang/UnknownError.java: Rewrote from scratch.
5886         * java/lang/StackOverflowError.java: Rewrote from scratch.
5887         * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5888         * java/lang/InternalError.java: Rewrote from scratch.
5889         * java/lang/IllegalAccessError.java: Rewrote from scratch.
5890         * java/lang/ExceptionInInitializerError.java: New file.
5891         * java/lang/Error.java: Rewrote from scratch.
5892         * java/lang/ClassFormatError.java: Rewrote from scratch.
5893         * java/lang/ClassCircularityError.java: Rewrote from scratch.
5894         * java/lang/AbstractMethodError.java: Rewrote from scratch.
5895         * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5896         * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5897         * java/lang/LinkageError.java: Rewrote from scratch.
5898         * java/lang/IncompatibleClassChangeError.java: Rewrote from
5899         scratch.
5900         * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5901
5902         * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5903         * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5904         friend.
5905         * include/cni.h (JvAllocObject): Moved from prims.cc.
5906         Include Class.h.
5907         * prims.cc (JvAllocObject): Moved to cni.h.
5908         (_Jv_AllocObject): Use _Jv_FinalizeObject.
5909         (finalize_name): Removed.
5910
5911 Wed Sep 30 12:09:34 1998  Tom Tromey  <tromey@cygnus.com>
5912
5913         * java/lang/Class.h (Class): Added size() method.
5914         * prims.cc (_Jv_MonitorEnter): Removed.
5915         (_Jv_MonitorExit): Removed.
5916         * java/lang/Object.h (JvSyncInfo): Removed.
5917         * Makefile.in: Rebuilt.
5918         * Makefile.am (nat_headers): Added Cloneable.h,
5919         CloneNotSupportedException.h.
5920         * java/lang/Object.h: Rewrote.
5921         * java/lang/natObject.cc: Rewrote from scratch.
5922         * java/lang/Object.java: Rewrote from scratch.
5923
5924         * java/io/natFile.cc: Conditionally include <dirent.h>.
5925         (list): If no <dirent.h>, always return NULL.
5926         * configure: Rebuilt.
5927         * configure.in: Check for dirent.h.
5928
5929         * prims.cc (lookupArray): Don't use sprintf.
5930
5931         * java/util/Hashtable.java (containsKey): Use `abs' to compute
5932         initial index.
5933         (get): Likewise.
5934         (put): Likewise.
5935         (rehash): Likewise.
5936         (remove): Likewise.
5937
5938         * java/util/Hashtable.java (hsize): Renamed from size to avoid
5939         name conflict with method.
5940
5941         * include/javaprims.h (java::util): Added HashtableEntry.
5942
5943 Tue Sep 29 16:48:01 1998  Warren Levy  <warrenl@cygnus.com>
5944
5945         * java/util/Hashtable.java: Rewritten.
5946
5947 Tue Sep 29 00:28:42 1998  Tom Tromey  <tromey@cygnus.com>
5948
5949         * java/io/natFileDescriptor.cc (write): Correctly test `write'
5950         return value.
5951         (write): Likewise.
5952
5953         * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5954         not `curr_nt'.
5955
5956         * posix-threads.cc (_Jv_CondWait): Now returns int.
5957         * include/javaprims.h (java::lang): Added
5958         IllegalMonitorStateException.
5959         * Makefile.in: Rebuilt.
5960         * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5961         * include/no-threads.h (_Jv_CondDestroy): Removed.
5962         (_Jv_MutexDestroy): Removed.
5963         (_Jv_CondWait): Now returns int.
5964         (_Jv_CondNotify): Likewise.  Added mutex argument.
5965         (_Jv_CondNotifyAll): Likewise.
5966         (_Jv_MutexLock): Always succeed.
5967         (_Jv_MutexUnlock): Likewise.
5968         * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5969         (_Jv_HaveMutexDestroy): Define.
5970         (_Jv_CondNotify): Now returns int.  Added mutex argument.
5971         (_Jv_CondNotifyAll): Likewise.
5972         * include/quick-threads.h (_Jv_CondDestroy): Removed.
5973         (_Jv_MutexDestroy): Removed.
5974         (_Jv_CondWait): Now returns int.
5975         (_Jv_CondNotify): Likewise.  Added mutex argument.
5976         (_Jv_CondNotifyAll): Likewise.
5977         * java/lang/natObject.cc (finalize_sync_info): New function.
5978         (init_mutex): Initialize `init' and register finalizer if
5979         required.
5980         (CHECK): New macro.
5981         (init_mutex): Use it.
5982         (notify): Use it.
5983         (notifyAll): Use it.
5984         (wait): Use it.
5985         (notify): Throw IllegalMonitorStateException on failure.
5986         (notifyAll): Likewise.
5987         (wait): Likewise.  Also, throw InterruptedException if
5988         appropriate.
5989         Include cni.h, Thread.h, IllegalMonitorStateException.h,
5990         InterruptedException.h, IllegalArgumentException.h.
5991         * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5992
5993         * java/lang/natString.cc: Renamed all `JvPriv' functions.
5994         * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5995         * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5996         * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5997         * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5998         * quick-threads.cc: Renamed all `JvPriv' functions.
5999         * prims.cc: Renamed all `JvPriv' functions.
6000         * posix-threads.cc: Renamed all `JvPriv' functions.
6001         * nogc.cc: Renamed all `JvPriv' functions.
6002         * no-threads.cc: Renamed all `JvPriv' functions.
6003         * boehm.cc: Renamed all `JvPriv' functions.
6004         * include/quick-threads.h: Renamed all `JvPriv' functions.
6005         * include/posix-threads.h: Renamed all `JvPriv' functions.
6006         * include/no-threads.h: Renamed all `JvPriv' functions.
6007         * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
6008
6009         * include/no-threads.h (JvPrivCondWait): Wrote minimal
6010         implementation.
6011         (JvPrivCondNotify): Do nothing.
6012         (JvPrivCondNotifyAll): Do nothing.
6013
6014         * prims.cc (processClass): Handle case where state is
6015         DOING_CONSTINIT.
6016
6017         * java/lang/natFirstThread.cc: Include <stdlib.h>
6018
6019         * configure: Rebuilt.
6020         * configure.in: Fixed sense of --enable-libjava-debug.
6021
6022         * java/lang/natThread.cc (join): Declare `t' outside the loop so
6023         it can be used afterward by the assertion.
6024
6025         * configure: Rebuilt.
6026         * configure.in: When cross-compiling, assume alloca.
6027
6028         * java/lang/natDouble.cc: Updated alloca magic to avoid use of
6029         __builtin_alloca (autoconf docs are wrong here).
6030
6031         * java/io/natFileDescriptor.cc (close): Set fd to -1 before
6032         closing.
6033         (available): Use `FD_ZERO' (typo fix).
6034
6035 Tue Sep 29 17:43:30 1998  Andrew Haley  <aph@tikka.cygnus.co.uk>
6036
6037         * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6038         java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
6039         struct _Jv_Bigint.
6040         * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
6041         java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
6042         struct _Jv_reent.
6043
6044         * java/lang/natDouble.cc: layout changed to match GNU coding standard.
6045         
6046 Tue Sep 29 07:57:13 1998  Anthony Green  <green@cygnus.com>
6047
6048         * java/lang/natDouble.cc: Declare alloca safely.
6049
6050         * configure, include/config.h.in: Rebuilt.
6051         * configure.in: Add alloca check.
6052
6053 Tue Sep 29 00:28:42 1998  Tom Tromey  <tromey@cygnus.com>
6054
6055         * java/lang/natThread.cc (finish_): Hold mutex for interrupt
6056         condition while calling notify.
6057         (join): Remove `curr_nt' from `nt's join list, not vice versa.
6058         (interrupt): Hold mutex for interrupt condition while calling
6059         notify.
6060
6061         * java/lang/natString.cc (init): Allocate and try to read `count'
6062         characters, not `count - offset' characters.
6063
6064         * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
6065         Correctly compute `count'.
6066
6067         * java/lang/Boolean.java (getBoolean): Return false if property
6068         not found.
6069
6070         * java/lang/System.java (setProperties): Set prop_init.
6071
6072 Mon Sep 28 12:39:25 1998  Tom Tromey  <tromey@cygnus.com>
6073
6074         * java/io/PrintStream.java (println): Use line.separator, not
6075         file.separator.
6076         * java/lang/System.java (out, err): Make both autoflush streams.
6077         * java/io/ByteArrayOutputStream.java (write): Increment `count'.
6078
6079         * include/config.h.in: Rebuilt.
6080         * acconfig.h (HAVE_MEMCPY): Removed.
6081         * configure: Rebuilt.
6082         * configure.in: Never define HAVE_MEMCPY.
6083
6084         * java/lang/natString.cc: Don't include OutOfMemoryError.h or
6085         Class.h.
6086         (_Jv_AllocString): Use JvAllocObject again.
6087         * java/lang/Class.h (thread): New field.
6088         (_Jv_AllocString): No longer a friend.
6089         * prims.cc (processClass): Removed dead code.  Changed to more
6090         closely follow the Java Language Specification.
6091         (processClass): Return early if already at the right state.
6092
6093         * prims.cc (JvNewStringUTF): Removed.
6094         * include/cni.h (JvNewStringUTF): New function.
6095         (_Jv_NewStringUTF): Declare as `extern "C"'.
6096         * java/lang/natString.cc (_Jv_NewStringUTF): New function.
6097
6098         * java/lang/natDouble.cc: Added copyright info and header
6099         comment.  Include <stdlib.h>.
6100         (doubleValueOf): Use alloca, not malloc.  Allocate 3 times as many
6101         bytes as are chars in string.
6102
6103 Sat Sep 26 00:19:27 1998  Tom Tromey  <tromey@cygnus.com>
6104
6105         * java/util/Hashtable.java (hkeys): Member renamed from to avoid
6106         clash with method.
6107         (hsize): Likewise.
6108
6109         * java/lang/System.java (init_properties): Now native.
6110         * java/lang/natSystem.cc (init_properties): New method.
6111         Include java/util/Properties.h.
6112
6113         * Makefile.in: Rebuilt.
6114         * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
6115         OutputStreamWriter.h, ByteArrayInputStream.h,
6116         InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
6117         Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
6118         SyncFailedException.h, EOFException.h, FileNotFoundException.h,
6119         Properties.h, Hashtable.h, Dictionary.h.
6120         (CFLAGS): Removed.
6121
6122         * include/javaprims.h (java::io): Added Reader, Writer,
6123         InputStreamReader, OutputStreamWriter,
6124         UnsupportedEncodingException, ByteArrayInputStream,
6125         ByteArrayOutputStream, EOFException, SyncFailedException,
6126         PushbackInputStream.
6127         (java::lang): Added Cloneable.
6128         (java::util): Added NoSuchElementException, VectorEnumeration,
6129         Dictionary, HashtableEnumeration, PropertiesEnumeration.
6130
6131         * java/io/PipedReader.java: New file.
6132
6133 Fri Sep 25 00:11:25 1998  Tom Tromey  <tromey@cygnus.com>
6134
6135         * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
6136         up A-Z.
6137
6138         * java/io/io-defs.h: Removed.
6139
6140         * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
6141         (FileInputStream): Use new constructor.  Can throw IOException.
6142
6143         * java/lang/System.java (getProperty): Don't throw
6144         NullPointerException.
6145
6146         * java/io/RandomAccessFile.java: Rewrote from scratch.
6147
6148         * java/io/natFileDescriptor.cc: Include EOFException.h.
6149         (seek): New method.
6150         (length): New method.
6151         (getFilePointer): New method.
6152         (read): New method.
6153         (available): New method.
6154         * java/io/FileDescriptor.java (SET, CUR): New constants.
6155         (seek, length, getFilePointer, read, available): New decls.
6156
6157         * java/io/PipedWriter.java: New file.
6158         * java/io/StringWriter.java: New file.
6159         * java/io/CharArrayWriter.java: New file.
6160         * java/io/CharConversionException.java: New file.
6161         * java/io/BufferedWriter.java: New file.
6162         * java/io/FilterWriter.java: New file.
6163         * java/io/FileWriter.java: New file.
6164
6165         * java/lang/natString.cc: Include ByteArrayOutputStream.h,
6166         OutputStreamWriter.h, NullPointerException.h,
6167         ByteArrayInputStream.h, InputStreamReader.h.
6168         (getBytes): New method.
6169         (init): Throw NullPointerException.
6170         (init): New function.
6171         * java/lang/String.java (getBytes): Added missing decl.
6172         (getBytes): New method.
6173         (String): Added byte[]-based constructors.
6174         (copyValueOf): Wrote.
6175         (init): Declare variant which takes byte array and encoding.
6176         Import java.io.UnsupportedEncodingException.
6177
6178         * java/io/File.java: Rewrote from scratch.
6179         * java/io/natFileDescriptor.cc: Rewrote from scratch.
6180         * java/io/FileDescriptor.java: Rewrote from scratch.
6181         * java/io/FilenameFilter.java: Rewrote from scratch.
6182
6183 Thu Sep 24 13:30:16 1998  Tom Tromey  <tromey@cygnus.com>
6184
6185         * java/io/SyncFailedException.java: New file.
6186         * java/io/UTFDataFormatException.java: Rewrote from scratch.
6187         * java/io/InterruptedIOException.java: Rewrote from scratch.
6188         * java/io/FileNotFoundException.java: Rewrote from scratch.
6189         * java/io/EOFException.java: Rewrote from scratch.
6190         * java/io/IOException.java: Rewrote from scratch.
6191         * java/io/PrintStream.java: Rewrote from scratch.
6192         * java/io/DataOutputStream.java: Rewrote from scratch.
6193         * java/io/BufferedOutputStream.java: Rewrote from scratch.
6194         * java/io/FilterOutputStream.java: Rewrote from scratch.
6195         * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6196         * java/io/PipedOutputStream.java: Rewrote from scratch.
6197         * java/io/FileOutputStream.java: Rewrote from scratch.
6198         * java/io/OutputStream.java: Rewrote from scratch.
6199         * java/io/DataOutput.java: Rewrote from scratch.
6200
6201 Mon Sep 28 22:59:54 1998  Per Bothner  <bothner@cygnus.com>
6202
6203         * prims.cc (_Jv_CheckCast):  Add missing ! operator.
6204
6205 Mon Sep 28 15:50:06 1998  Anthony Green  <green@cygnus.com>
6206
6207         * configure.in: Add --enable-libjava-debug
6208
6209         * Makefile.am (nat_headers): Add java/lang/Float.h and 
6210         java/lang/Double.h
6211
6212         * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6213
6214         * Makefile.in, configure, include/config.h.in: Rebuilt.
6215
6216 Mon Sep 28 17:05:58 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
6217
6218         * java/lang/Float.java: Rewritten
6219         * java/lang/Double.java: Rewritten
6220         * java/lang/natFloat.cc: toString() added.
6221         * java/lang/natDouble.cc: toString() added.
6222         * java/lang/natDouble.cc: doubleValueOf() added.
6223         * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h, 
6224         java/lang/strtod.c: added.
6225         * ieeefp.h: __sparc added.
6226         * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6227         
6228 Thu Sep 24 13:30:16 1998  Tom Tromey  <tromey@cygnus.com>
6229
6230         * include/javaprims.h (java::lang): Added
6231         CloneNotSupportedException.
6232
6233         * java/lang/Object.java (clone): No longer native.  Implemented.
6234         * java/lang/natObject.cc (clone): Removed.
6235
6236 Wed Sep 23 12:03:38 1998  Tom Tromey  <tromey@cygnus.com>
6237
6238         * prims.cc: Don't make definitions `extern "C"'.
6239         (_Jv_RegisterClass): Renamed from registerClass.
6240         * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6241         (_Jv_NewArray): Likewise.
6242         (_Jv_NewMultiArray): Likewise.
6243         (_Jv_CheckCast): Likewise.
6244         (_Jv_LookupInterfaceMethod): Likewise.
6245         (_Jv_CheckArrayStore): Likewise.
6246         (_Jv_RegisterClass): Likewise.
6247
6248         * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6249         * configure: Rebuilt.
6250         * configure.in: Don't check for fmod; it is provided by the fdlibm
6251         code.
6252         * prims.cc (fmod): Removed.
6253
6254         * java/lang/natString.cc (charAt): Use _Jv_uint.
6255         * java/lang/Class.h (class JvField): Use _Jv_ushort.
6256         * prims.cc (HASH_CHARS): Use _Jv_ushort.
6257         (equalUtf8Consts): Likewise.
6258         (internalAddClass): Use _Jv_uint.
6259         (processClass): Likewise.
6260         * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6261         (_Jv_uint): Renamed from uint32.
6262         (struct _Jv_Utf8Const): Changed members to use new type names.
6263
6264         * configure: Rebuilt.
6265         * configure.in: Don't check for memcpy.  Require memmove and a way
6266         to get the time.
6267         * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6268         #error.
6269         (currentTimeMillis): Don't use #error.
6270
6271 Tue Sep 22 18:00:16 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
6272
6273         * java/lang/Math.java: static member random renamed to random_ to
6274         avoid conflict with member function of the same name.
6275         * include/javaprims.h: java.util.Random added.
6276
6277 Tue Sep 22 13:53:14 1998  Tom Tromey  <tromey@cygnus.com>
6278
6279         * include/java-chartables.h: Regenerated.
6280         * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6281         printed.
6282
6283 Tue Sep 22 17:17:52 1998  Andrew Haley  <aph@tikka.cygnus.co.uk>
6284
6285         * java/lang/Math.java: Rewritten.
6286         * java/lang/natMath.cc: New file.
6287         * Files added from fdlibm:
6288           java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6289           java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6290           java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6291           java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6292           java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6293           java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6294           java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6295           java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6296           java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6297           java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6298           java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6299           java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6300           java/lang/k_cos.c, java/lang/sf_ceil.c,
6301           java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6302           java/lang/ieeefp.h, java/lang/fdlibm.h
6303         * Makefile.am: rules added for compiling C files from fdlibm.
6304         
6305 Mon Sep 21 15:40:58 1998  Tom Tromey  <tromey@cygnus.com>
6306
6307         * chartables.pl: Minor documentation fixes.
6308
6309         * configure: Rebuilt.
6310         * configure.in: Fixed --help output for --enable-fast-character.
6311
6312 Thu Sep 17 11:03:27 1998  Tom Tromey  <tromey@cygnus.com>
6313
6314         * configure: Rebuilt.
6315         * configure.in: Recognize --enable-fast-character.
6316         * acconfig.h (COMPACT_CHARACTER): New define.
6317         * include/config.h.in: Rebuilt.
6318         * include/java-chartables.h: New file.
6319         * Makefile.in: Rebuilt.
6320         * Makefile.am (nat_files): Added natCharacter.o.
6321         * java/lang/natCharacter.cc: New file.
6322         * chartables.pl (set_attribute): New function.
6323         (@attributes, @second_attributes): New globals.
6324         ($ROMAN_START, $ROMAN_END): Likewise.
6325         (process_char): Call set_attribute when required.
6326         (print_char): Just print hex value.
6327         (print_block): Generate C++ syntax.
6328         (print_numerics): Likewise.
6329         (print_single_map): Likewise.
6330         (print_all_block): Likewise.
6331         (print_case_table): Likewise.
6332         (print_fast_tables): New function.
6333         Generate C++ code suitable for a header file.
6334         * java/lang/Character.java (table_search): Removed.
6335         (digit_value): Now native.
6336         (getNumericValue): Likewise.
6337         (getType): Likewise.
6338         Removed all automatically-generated tables.
6339         (Tamil_Digit_One): Removed.
6340         (isSpaceChar): Now native.
6341         (isTitleCase): Likewise.
6342         (isLowerCase): Likewise.
6343         (isUpperCase): Likewise.
6344         (toLowerCase): Likewise.
6345         (toTitleCase): Likewise.
6346         (toUpperCase): Likewise.
6347         (isDefined): Fixed sense of test.
6348
6349 Wed Sep 16 12:00:19 1998  Tom Tromey  <tromey@cygnus.com>
6350
6351         * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6352         FIXME comment.
6353         (regionMatches): Likewise.
6354
6355 Tue Sep 15 14:35:12 1998  Tom Tromey  <tromey@cygnus.com>
6356
6357         * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6358
6359         * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6360         a friend.
6361         * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6362         _Jv_AllocObject.
6363
6364         * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6365         not a char.
6366
6367         * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6368
6369 Fri Sep 11 14:01:08 1998  Tom Tromey  <tromey@cygnus.com>
6370
6371         * prims.cc (instanceof_class): Removed.
6372         (instanceof_array): Likewise.
6373         (instanceof): Likewise.
6374         (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6375         (_Jv_CheckCast): Likewise.
6376         * java/lang/natClass.cc (isAssignableFrom): New method.
6377         * java/lang/Class.java (isAssignableFrom): Now native.
6378
6379         * include/cni.h (JvThrow): Use `extern inline'.
6380         (JvAllocObject): Likewise.
6381         (JvInitClass): Likewise.
6382
6383         * java/lang/natSystem.cc (arraycopy): Only check class of source
6384         object if not null.
6385
6386         * prims.cc (_Jv_CheckArrayStore): Wrote.
6387         (_Jv_MonitorEnter): Prefer `JvThrow'.
6388         Include ArrayStoreException.h.
6389         (_Jv_CheckCast): Indentation cleanup.
6390
6391 Thu Sep 10 18:59:29 1998  Tom Tromey  <tromey@cygnus.com>
6392
6393         * chartables.pl: New file.
6394         * java/lang/Character.java: Rewrote from scratch.
6395
6396 Fri Sep 18 18:15:58 1998  Warren Levy  <warrenl@cygnus.com>
6397
6398         * java/lang/ArithmeticException.java,
6399         java/lang/ArrayIndexOutOfBoundsException.java,
6400         java/lang/ArrayStoreException.java,
6401         java/lang/ClassCastException.java,
6402         java/lang/ClassNotFoundException.java,
6403         java/lang/CloneNotSupportedException.java,
6404         java/lang/Exception.java, java/lang/IllegalAccessException.java,
6405         java/lang/IllegalArgumentException.java,
6406         java/lang/IllegalMonitorStateException.java,
6407         java/lang/IllegalThreadStateException.java,
6408         java/lang/IndexOutOfBoundsException.java,
6409         java/lang/InstantiationException.java,
6410         java/lang/InterruptedException.java,
6411         java/lang/NegativeArraySizeException.java,
6412         java/lang/NoSuchMethodException.java,
6413         java/lang/NullPointerException.java,
6414         java/lang/NumberFormatException.java,
6415         java/lang/RuntimeException.java, java/lang/SecurityException.java,
6416         java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6417
6418         * java/lang/IllegalStateException.java,
6419         java/lang/NoSuchFieldException.java,
6420         java/lang/UnsupportedOperationException.java: Created.
6421
6422 Fri Sep 18 15:01:42 1998  Warren Levy  <warrenl@cygnus.com>
6423
6424         * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6425         * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6426
6427 Fri Sep 11 16:49:19 1998  Per Bothner  <bothner@cygnus.com>
6428
6429         * prims.cc (JvRunMain):  No longer need to call _Jv_InitClass.
6430
6431 Thu Sep 10 12:23:55 1998  Warren Levy  <warrenl@cygnus.com>
6432
6433         * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6434
6435         * Makefile.in: Rebuilt.
6436
6437         * include/javaprims.h (java::lang): Added
6438         StringIndexOutOfBoundsException.
6439
6440         * java/lang/String.java: Added header comment and FIXME comment for 
6441         missing constructors/methods.
6442         (endsWith): Adjusted offset into string to look at just the last chars.
6443         Commented out undocumented method.
6444
6445         * java/lang/natString.cc: Added includes for
6446         ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6447         (String::init): Throw StringIndexOutOfBoundsException.
6448         (String::charAt): Throw StringIndexOutOfBoundsException.
6449         (String::substring): Throw StringIndexOutOfBoundsException.
6450         (String::getChars): Throw ArrayIndexOutOfBoundsException.
6451         (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6452         (String::compareTo): Return difference/offset between chars/strings.
6453
6454 Tue Sep  8 13:22:33 1998  Warren Levy  <warrenl@cygnus.com>
6455
6456         * java/lang/Boolean.java (TYPE): Added comment.
6457         
6458         * java/lang/Byte.java (decode): Added - commented out until dependent
6459         code for Integer is written.
6460         (compareTo): JDK 1.2 methods written.
6461         (hashCode): Added comment to note that values have been verified.
6462         
6463         * java/lang/Short.java (decode): Added - commented out until dependent
6464         code for Integer is written.
6465         (compareTo): JDK 1.2 methods written.
6466         (hashCode): Added comment to note that values have been verified.
6467
6468         * java/lang/Comparable.java: Created - JDK 1.2 interface.
6469
6470 Fri Sep  4 10:36:35 1998  Tom Tromey  <tromey@cygnus.com>
6471
6472         * include/javaprims.h (java::lang): Added VirtualMachineError,
6473         OutOfMemoryError.
6474         * Makefile.in: Rebuilt.
6475         * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6476         VirtualMachineError.h.
6477         * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6478         (lookupArray): Likewise.
6479         (makeUtf8Const): Likewise.
6480         (_Jv_AllocObject): Likewise.
6481         (_Jv_NewObjectArray): Likewise.
6482         Include OutOfMemoryError.h.
6483
6484         * java/io/natFileDescriptor.cc (newstr): Removed.  Changed callers
6485         to use JvNewStringLatin1.
6486
6487         * java/io/io-defs.h: Include java/lang/IOException.h.
6488         * Makefile.in: Rebuilt.
6489         * Makefile.am (nat_headers): Added
6490         ArrayIndexOutOfBoundsException.h,
6491         ClassFormatError.h,ClassNotFoundException.h,
6492         ClassCircularityError.h, ClassCastException.h,
6493         IncompatibleClassChangeError.h, AbstractMethodError.h,
6494         IllegalAccessError.h, LinkageError.h, Error.h,
6495         NegativeArraySizeException.h, IOException.h.
6496         * include/cni.h (SignalError): Removed declaration.
6497         * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6498         * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6499         * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6500         (newInstance): Likewise.
6501         (forName): Likewise.
6502         * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6503         sorry.
6504         (read): Use JvThrow, not SignalError.
6505         (read): Likewise.
6506         (write): Likewise.
6507         (skip): Likewise.
6508         (close): Likewise.
6509         (open_read): Likewise.
6510         (open_write): Likewise.
6511         (ftell): Likewise.
6512         (fseek): Likewise.
6513         (newstr): New function.
6514         * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6515         sorry.
6516         (lastModifiedUnchecked): Likewise.
6517         (lengthUnchecked): Likewise.
6518         * include/javaprims.h (sorry): Removed declaration.
6519         (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6520         ClassFormatError, ClassNotFoundException, ClassCircularityError,
6521         ClassCastException, IncompatibleClassChangeError,
6522         AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6523         * prims.cc (instanceof_array): Use JvFail, not sorry.
6524         (sorry): Removed.
6525         Include ArrayIndexOutOfBoundsException.h,
6526         ClassFormatError.h,ClassNotFoundException.h,
6527         ClassCircularityError.h, ClassCastException.h,
6528         IncompatibleClassChangeError.h, AbstractMethodError.h,
6529         IllegalAccessError.h, NegativeArraySizeException.h.
6530         (_Jv_ThrowBadArrayIndex): Implemented.
6531         (JvNewStringUTF): Use JvFail, not sorry.
6532         (_Jv_FindClass): Likewise.
6533         (_Jv_NewArray): Likewise.
6534         (throwException): Removed.
6535         (getClass): Use JvThrow.
6536         (processClass): Likewise.
6537         (_Jv_NewObjectArray): Likewise.
6538         (_Jv_NewMultiArray): Likewise.
6539         (_Jv_CheckCast): Likewise.
6540         (_Jv_LookupInterfaceMethod): Likewise.
6541         (SignalError): Removed.
6542         (getClass): Use _Jv_NewStringUtf8Const to create String.
6543
6544         * java/lang/natSystem.cc (arraycopy): Throw
6545         ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6546
6547         * Makefile.in: Rebuilt.
6548         * Makefile.am (GCJH): Renamed.  Now use `gcjh'.  Changed all
6549         users.
6550         * include/java-array.h: Mention gcjh, not gjavah.
6551
6552         * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6553         (canReadUnchecked): Likewise.
6554         (canWriteUnchecked): Likewise.
6555         (isFileUnchecked): Likewise.
6556         * java/io/natFileDescriptor.cc: Don't include cni.h.
6557
6558         * java/lang/Thread.java (run__): Declare.
6559         * java/lang/natThread.cc (run__): New method, to avoid compiler
6560         warning.
6561         (start): Use run__, not run_.
6562
6563         * java/io/io-defs.h: Include cni.h and jvm.h.
6564
6565 Thu Sep  3 18:20:08 1998  Per Bothner  <bothner@cygnus.com>
6566
6567         Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6568         * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1):  Moved
6569         to natString.cc (with suitable renaming, inlines etc).
6570         (javaString2CString):  Removed.  Subsumed by _Jv_GetStringUTFRegion.
6571         * java/lang/Class.h:  Renamed Utf8Const to _Jv_Utf8Const.
6572         * java/lang/String.h:  Removed - now generated using gjavah.
6573         * java/lang/String.java:  Re-written from scratch. Many native methods.
6574         * java/lang/natDouble.cc, java/util/natDate.cc:  #include <cni.h>.
6575         * java/lang/natString.cc:  Many functions re-written for "compact
6576         strings" representation, or native java.lang.String methods added.
6577         (Utf8Const2JavaString):  Renamed to _Jv_NewStringUtf8Const.
6578         (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion):  New methods.
6579         * java/lang/natClass.cc (getName):  Use new _Jv_NewStringUtf8Const.
6580         * java/io/natFileDescriptor.cc:  Use new JvGetStringUTFRegion.
6581         * include/cni.h:  Add inline method.
6582         * include/java-array.h (jobjectArrayjchar):  gjavah bug work-around.
6583         * include/javaprims.h:  Moved some stuff frm String.h.
6584         * include/jvm.h (UTF8_GET, Utf8Const, StringClass):  Moved here.
6585         * Makefile.am (nat_header):  Added Character.h and String.h.
6586         (String.h):  Add new rule.
6587
6588 Thu Sep  3 10:28:16 1998  Tom Tromey  <tromey@cygnus.com>
6589
6590         * no-threads.cc: Include config.h, cni.h, jvm.h.  Don't include
6591         java-assert.h.
6592         * posix-threads.cc: Include cni.h, jvm.h.
6593         * quick-threads.cc: Include cni.h, jvm.h.
6594         * nogc.cc: Include cni.h, not javaprims.h.
6595         * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6596         * java/lang/natThread.cc: Rearranged #include ordering.  Don't
6597         include java-assert.h.
6598         * java/lang/natSystem.cc: Include cni.h.  Don't include
6599         java-assert.h.
6600         * java/lang/natRuntime.cc: Include cni.h.  Don't include
6601         java-assert.h.
6602         * prims.cc: Rearranged #include ordering.  Don't include
6603         java-array.h or java-assert.h.
6604         * boehm.cc: Include config.h, cni.h.
6605         * exception.cc: Include config.h, cni.h.
6606         * include/jvm.h: Include java-assert.h.
6607         * include/cni.h: Include java/lang/Object.h.  Don't include
6608         java-threads.h or java-array.h.
6609
6610 Thu Sep  3 16:03:08 1998  Warren Levy  <warrenl@cygnus.com>
6611
6612         * java/lang/Boolean.java: Rewritten.
6613
6614 Thu Sep  3 10:28:16 1998  Tom Tromey  <tromey@cygnus.com>
6615
6616         * java/lang/natFirstThread.cc (main_func): New typedef.
6617         (run): Use main_func, not JvPrivThreadStartFunc.
6618         * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6619         argument type.
6620         * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6621         argument type.
6622         * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6623         argument type.
6624
6625         Can't throw Java exceptions with C++ `throw':
6626         * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6627         * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6628         (setPriority): Likewise.
6629         (sleep): Likewise.
6630         (start): Likewise.
6631         (stop): Likewise.
6632         * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6633         * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6634
6635         Can't catch Java exceptions from C++:
6636         * java/lang/natThread.cc (finish_): New method.
6637         (run_): Removed.
6638         * java/lang/Thread.java (run_): Rewrote in Java.
6639         (finish_): New native method.
6640
6641 Wed Sep  2 17:30:39 1998  Warren Levy  <warrenl@cygnus.com>
6642
6643         * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6644
6645         * include/javaprims.h (java::io): Added Serializable.
6646
6647 Wed Sep  2 15:22:00 1998  Warren Levy  <warrenl@cygnus.com>
6648
6649         * java/util/EmptyStackException.java,
6650         java/util/NoSuchElementException.java: Rewritten.
6651         
6652         * java/util/ConcurrentModificationException.java,
6653         java/util/MissingResourceException.java,
6654         java/util/TooManyListenersException.java: Created.
6655
6656 Wed Sep  2 13:36:57 1998  Tom Tromey  <tromey@cygnus.com>
6657
6658         * include/cni.h (JvThrow): New function.
6659         * include/javaprims.h (_Jv_Throw): Declare.
6660
6661 Wed Sep  2 14:07:48 1998  Warren Levy  <warrenl@cygnus.com>
6662
6663         * java/util/Observable.java: Rewritten.
6664
6665 Wed Sep  2 13:36:57 1998  Tom Tromey  <tromey@cygnus.com>
6666
6667         * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6668         (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6669         Include NullPointerException.h.
6670
6671 Tue Sep  1 12:07:35 1998  Tom Tromey  <tromey@cygnus.com>
6672
6673         * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6674         assignability checks.  Don't bother using memcpy.
6675
6676         * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6677         (started): Removed.
6678         * include/quick-threads.h (JvPrivThreadWait): New function.
6679         * include/no-threads.h (JvPrivThreadWait): New function.
6680         * include/posix-threads.h (JvPrivThreadWait): New function.
6681         * prims.cc (JvRunMain): Call JvPrivThreadWait.
6682
6683         * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6684
6685         * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6686         offsets by size of type that is being copied.
6687
6688         * java/lang/natThread.cc (start): Don't pass `object' argument to
6689         JvPrivThreadStart.
6690         * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6691         * posix-threads.cc (JvPrivThreadStart): Removed `object'
6692         argument.
6693         * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6694         always pass thread as object.
6695         * include/quick-threads.h, include/posix-threads.h,
6696         include/no-threads.h (JvPrivThreadStart): Removed `object'
6697         argument.
6698
6699 Mon Aug 31 19:11:53 1998  Warren Levy  <warrenl@cygnus.com>
6700
6701         * java/util/Dictionary.java: Rewritten.
6702
6703 Mon Aug 31 14:35:55 1998  Tom Tromey  <tromey@cygnus.com>
6704
6705         * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6706         (JvPrivThreadDestroy): Likewise.
6707         
6708 Mon Aug 31 12:56:01 1998  Warren Levy  <warrenl@cygnus.com>
6709
6710         * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6711
6712 Thu Aug 27 12:24:40 1998  Tom Tromey  <tromey@cygnus.com>
6713
6714         * java/lang/natSystem.cc: Rewrote from scratch.
6715         * java/lang/System.java: Rewrote from scratch.
6716         * java/lang/Class.h (Class): Declare isAssignableFrom.
6717         * include/javaprims.h (java::lang): Added ArrayStoreException,
6718         IndexOutOfBoundsException.
6719         * Makefile.in: Rebuilt.
6720         * Makefile.am (nat_headers): Added ArrayStoreException.h,
6721         IndexOutOfBoundsException.h.
6722         * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6723         * include/jvm.h (_Jv_HashCode): New function.
6724
6725         * java/lang/natThread.cc (suspend): Call checkAccess.
6726         (resume): Likewise.
6727         * java/lang/Thread.java (setDaemon): Call checkAccess.
6728
6729 Thu Aug 27 12:24:40 1998  Tom Tromey  <tromey@cygnus.com>
6730
6731         * java/lang/Runtime.java: Rewrote from scratch.
6732         * java/lang/natRuntime.cc: Rewrote from scratch.
6733
6734         * nogc.cc (JvPrivGCTotalMemory): New function.
6735         (JvPrivGCFreeMemory): Likewise.
6736         (total): New global.
6737         (JvPrivAllocObj): Increment total.
6738         (JvPrivAllocArray): Likewise.
6739         (JvPrivAllocBytes): Likewise.
6740         * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6741         * boehm.cc (JvPrivGCTotalMemory): New function.
6742         (sum_blocks): Likewise.
6743         (JvPrivGCFreeMemory): Likewise.
6744
6745 Wed Aug 26 12:30:32 1998  Tom Tromey  <tromey@cygnus.com>
6746
6747         * include/javaprims.h (java::lang): Added FirstThread.
6748         * java/lang/natFirstThread.cc: New file.
6749         * java/lang/FirstThread.java: New file.
6750         * prims.cc (main_signature): Removed.
6751         (main_name): Removed.
6752         #include FirstThread.h.
6753         * Makefile.in: Rebuilt.
6754         * Makefile.am (TFRIEND): Removed.
6755         (java/lang/Thread.h): Likewise.
6756         (FTFRIEND): New macro.
6757         (java/lang/FirstThread.h): New target.
6758         (nat_files): Added natFirstThread.o.
6759         (nat_headers): Added FirstThread.h.
6760         * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6761         * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6762
6763         * java/lang/Thread.java (setName): Throw IllegalArgumentException
6764         if name is null.
6765         (Thread): Likewise.
6766
6767         * java/lang/natThread.cc (start): Synchronize the thread.
6768         (stop): Synchronize the thread.
6769
6770         * java/lang/ThreadDeath.java: Rewrote from scratch.
6771
6772         * Makefile.in: Rebuilt.
6773         * Makefile.am (TGFRIEND): New macro.
6774         (java/lang/ThreadGroup.h): New target.
6775         ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6776         native headers.
6777         ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6778
6779         * nogc.cc: Include config.h.
6780
6781         * java/lang/ThreadGroup.java: Rewrote from scratch.
6782
6783 Tue Aug 25 00:12:54 1998  Tom Tromey  <tromey@cygnus.com>
6784
6785         * java/lang/Thread.java (checkAccess): Only call in to security
6786         manager if it exists.
6787         (Thread): Don't check access when creating the first thread.  Add
6788         this thread to the appropriate ThreadGroup.
6789
6790         * java/lang/natThread.cc (run_): Call uncaughtException method on
6791         the ThreadGroup.
6792
6793         * java/lang/Runnable.java: Rewrote from scratch.
6794         * java/lang/Thread.java: Updated copyright comment to correct
6795         form.
6796
6797 Wed Aug 26 15:16:18 1998  Warren Levy  <warrenl@cygnus.com>
6798
6799         * java/util/Random.java: Rewritten.
6800
6801 Wed Aug 26 14:25:39 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
6802
6803         * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6804         trailing 0 in array[].
6805
6806 Wed Aug 26 12:21:06 1998  Anthony Green  <green@cygnus.com>
6807
6808         * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, 
6809         and RUNTESTFLAGS from AM_MAKEFLAGS.
6810         (SUBDIRS): Conditionally include testsuite.
6811         * Makefile.in: Rebuilt.
6812
6813 Tue Aug 25 18:14:53 1998  Anthony Green  <green@cygnus.com>
6814
6815         * java/lang/Object.h: Include java-assert.h.
6816
6817 Tue Aug 25 17:33:57 1998  Anthony Green  <green@cygnus.com>
6818
6819         * Makefile.am: Add testsuite directory.
6820         * configure.in: Build testsuite/Makefile.
6821         * Makefile.in, configure: Rebuilt.
6822         
6823 Tue Aug 25 00:12:54 1998  Tom Tromey  <tromey@cygnus.com>
6824
6825         * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6826         * include/jvm.h (_Jv_StartFirstThread): Declare.
6827
6828         * include/javaprims.h (java::lang): Added Exception,
6829         RuntimeException.
6830
6831         * Makefile.in: Rebuilt.
6832         * Makefile.am (nat_headers): Added NullPointerException.h,
6833         InterruptedException.h, IllegalArgumentException.h, Exception.h,
6834         Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6835         (java/lang/Thread.h): New target.
6836         (TFRIEND): New macro
6837
6838         * include/java-assert.h (JvFail): Use 0 and not NULL.
6839
6840         * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6841         instead of assuming we are a friend of Thread.
6842         * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6843         instead of assuming we are a friend of Thread.
6844
6845 Mon Aug 24 15:58:36 1998  Tom Tromey  <tromey@cygnus.com>
6846
6847         * java/lang/natThread.cc: Rewrote from scratch.
6848         * java/lang/Thread.java: Rewrote from scratch.
6849         * prims.cc (JvRunMain): Use new Thread constructor.
6850         * include/javaprims.h (java::lang): Added InterruptedException.
6851         * Makefile.in: Rebuilt.
6852         * Makefile.am (nat_headers): Added java/lang/Thread.h.
6853         * java/lang/Thread.h: Removed.
6854         * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6855         * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6856         argument.
6857         * posix-threads.cc (JvPrivThreadJoin): Removed.
6858         (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6859         (really_start): Don't notify join_cond.
6860         (JvPrivThreadStart): Added `data' argument.
6861         * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6862         (JvPrivThreadJoin): Likewise.
6863         Use JvFail instead of sorry.
6864         (JvPrivThreadSuspend): Removed.
6865         (JvPrivThreadResume): Removed.
6866         * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6867         (JvPrivThreadJoin): Likewise.
6868         (JvPrivThreadSuspend): Use JvFail.
6869         (JvPrivThreadResume): Likewise.
6870         (JvPrivThreadSuspend): Removed.
6871         (JvPrivThreadResume): Likewise.
6872         * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6873         (JvPrivThread_t): Removed join_mutex, join_cond.
6874         Use JvFail instead of sorry.
6875         (JvPrivThreadSuspend): Removed.
6876         (JvPrivThreadResume): Likewise.
6877
6878 Tue Aug 25 12:50:13 1998  Warren Levy  <warrenl@cygnus.com>
6879
6880         * java/util/Observer.java: Rewritten
6881         * java/util/Enumeration.java: Rewritten
6882
6883 Tue Aug 25 11:33:54 1998  Warren Levy  <warrenl@cygnus.com>
6884
6885         * java/util/StringTokenizer.java: Rewritten
6886         * java/util/Stack.java: Added COPYRIGHT-TBD comment
6887         * java/util/Vector.java: Added COPYRIGHT-TBD comment
6888         * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6889         
6890 Fri Aug 21 10:14:22 1998  Tom Tromey  <tromey@cygnus.com>
6891
6892         * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6893         not defined.
6894
6895         * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6896         Include java-assert.h.
6897         * include/java-assert.h: New file.
6898         * prims.cc (_Jv_Abort): New function.
6899         Include java-assert.h, not assert.h.
6900         (_Jv_MonitorExit): Use JvAssert.
6901         (resolveConstants): Likewise.
6902         (processClass): Likewise.
6903         (JvRunMain): Assert that method is found.
6904
6905         * configure: Rebuilt.
6906         * configure.in: Check for test subdir.
6907         * Makefile.in: Rebuilt.
6908         * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6909
6910         * prims.cc (JvRunMain): Use NORM_PRIORITY.
6911         * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6912
6913         * prims.cc (resolveConstants): Removed unused variables.
6914         (processClass): Likewise.
6915
6916         * include/quick-threads.h (JvPrivThreadCurrent): Use
6917         coop_getspecific.
6918         * quick-threads.cc (destroy_data): New function.
6919         (JvPrivInitThreads): Create key.
6920         (JvPrivThreadKey): New global.
6921         (JvPrivThreadStart): Use coop_setspecific.
6922
6923         * include/quick-threads.h, include/posix-threads.h,
6924         include/no-threads.h, no-threads.cc, quick-threads.cc,
6925         posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6926
6927 Thu Aug 20 10:57:30 1998  Tom Tromey  <tromey@cygnus.com>
6928
6929         * include/no-threads.h (JvPrivThreadInitData): Don't set
6930         JvPrivOnlyThread.
6931
6932         * include/quick-threads.h (JvPrivCondWait): coop function now
6933         takes microseconds.
6934         (JvPrivThreadJoin): Likewise.
6935
6936         * java/lang/Thread.h (Thread): Updated declaration of
6937         JvPrivThreadStart.
6938         * include/quick-threads.h, include/posix-threads.h: Updated
6939         declaration of JvPrivThreadStart.
6940         * include/no-threads.h (JvPrivThreadStart): Changed definition
6941         into declaration.
6942         * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6943         * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6944         * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6945
6946 Wed Aug 19 14:53:59 1998  Tom Tromey  <tromey@cygnus.com>
6947
6948         * quick-threads.cc (qthrow): New function.
6949         (JvPrivInitThreads): New function.
6950         (started): New global.
6951         (JvPrivThreadStart): Call coop_start if required.
6952         * include/quick-threads.h (JvPrivThreadCancel): Implement.
6953         (JvPrivThreadDestroy): Likewise.
6954         (JvPrivInitThreads): Removed.
6955         * include/posix-threads.h (JvPrivThreadCancel): Added error
6956         argument.
6957         * java/lang/natThread.cc (stop_): Pass exception to
6958         JvPrivThreadCancel.
6959
6960 Tue Aug 18 12:58:22 1998  Tom Tromey  <tromey@cygnus.com>
6961
6962         * include/javaprims.h (java::lang): Added
6963         IllegalArgumentException, IllegalThreadStateException, Math,
6964         NullPointerException, ThreadDeath.
6965         (java::util): Added Enumeration.
6966
6967         * Makefile.in: Rebuilt.
6968         * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6969
6970         * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6971         now public.
6972         (threadsv): Renamed from threads to avoid clash in C++ header.
6973         (groupsv): Likewise.
6974         * include/no-threads.h (JvPrivThreadStart): Removed.
6975         * no-threads.cc (JvPrivThreadStart): New function.
6976         * java/lang/Thread.java (Thread): New constructor for internal use.
6977         * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6978         (Thread): Declare constructor.
6979         * prims.cc (JvRunMain): Create the initial Thread and
6980         ThreadGroup.
6981         Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6982         * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6983         Removed `daemon' argument.
6984
6985         * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6986         * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6987         a friend.
6988         * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6989
6990         * Makefile.in: Rebuilt.
6991         * Makefile.am (INCLUDES): Include THREADINCS.
6992
6993         * configure: Rebuilt.
6994         * configure.in: Recognize `qt' as a threads package.
6995
6996 Thu Aug 20 12:42:32 1998  Warren Levy  <warrenl@cygnus.com>
6997
6998         * java/util/Stack.java (pop): Null out topmost node for robustness.
6999
7000 Thu Aug 20 12:30:30 1998  Warren Levy  <warrenl@cygnus.com>
7001
7002         * java/util/Stack.java: Rewritten.
7003         * java/util/Vector.java (isEmpty): Simplified expression.
7004
7005 Wed Aug 19 18:02:19 1998  Warren Levy  <warrenl@cygnus.com>
7006
7007         * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
7008         (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
7009
7010         * include/java-array.h (JvNewObjectArray): Created inline to
7011         _Jv_NewObjectArray.
7012
7013         * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
7014         JvNewObjectArray.
7015         
7016 Wed Aug 19 14:12:02 1998  Warren Levy  <warrenl@cygnus.com>
7017
7018         * java/util/Vector.java: Rewritten.
7019         * java/io/Serializable.java: Created.
7020
7021 Fri Aug 14 10:31:54 1998  Tom Tromey  <tromey@cygnus.com>
7022
7023         * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
7024         Infinity is 1/0, not 1/1.
7025
7026         * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
7027
7028         * configure: Rebuilt.
7029         * configure.in: Removed duplicate AC_ARG_WITH.
7030
7031 Thu Aug 13 14:51:47 1998  Warren Levy  <warrenl@cygnus.com>
7032
7033         * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
7034         soft_badarrayindex.
7035         (_Jv_InitClass): Renamed from soft_initialise_class.
7036         (_Jv_NewMultiArray): Renamed from soft_multianewarray.
7037         (_Jv_CheckCast): Renamed from soft_checkcast.
7038         (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
7039         (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
7040         (JvRunMain): Call JvInitClass instead of soft_initialise_class.
7041         * include/cni.h (JvInitClass): New function.
7042         (_Jv_InitClass): Renamed from soft_initialise_class.
7043
7044 Wed Aug 12 10:07:04 1998  Tom Tromey  <tromey@cygnus.com>
7045
7046         * configure: Rebuilt.
7047         * configure.in (CXX): Don't set.
7048         * Makefile.in: Rebuilt.
7049         * Makefile.am (AM_CXXFLAGS): New macro.
7050
7051         * Makefile.in: Rebuilt.
7052         * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
7053         nogc.o): New target.
7054
7055         * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
7056         GC.
7057         (mark_array): Likewise.
7058
7059 Tue Aug 11 11:44:53 1998  Per Bothner  <bothner@cygnus.com>
7060
7061         * java/lang/Class.h (JvMethod):  Removed some unused fields.
7062         (JvField.info):  Removed unused idx union variant.
7063
7064 Mon Aug 10 15:00:14 1998  Tom Tromey  <tromey@cygnus.com>
7065
7066         * prims.cc (makeUtf8Const): Mask off high bits of hash value to
7067         match compiler.
7068
7069 Mon Aug  3 16:13:54 1998  Per Bothner  <bothner@cygnus.com>
7070
7071         * configure.in, configure (CXX):  Add -fvtable-thunks.
7072
7073 Thu Jul 30 14:34:47 1998  Per Bothner  <bothner@cygnus.com>
7074
7075         * java/lang/Object.java (finalize):  Move first.
7076         * java/lang/Object.h (_JvObjectPrefix):  New dummy base class.
7077         (Object):  Re-arrange order to match Object.java.
7078
7079 Tue Jul 28 21:42:16 1998  Per Bothner  <bothner@cygnus.com>
7080
7081         * prims.cc (hashUtf8String):  Fix - use new JavaSoft specification.
7082         * java/lang/natString.cc (hashChars):  Likewise.
7083
7084         * prims.cc (RuntimeClass):  New macro.
7085         (JvRunMain):  Do soft_initialise_class of RuntimeClass before exit.
7086
7087 Mon Jul 27 22:20:10 1998  Tom Tromey  <tromey@cygnus.com>
7088
7089         * Makefile.in: Rebuilt.
7090         * Makefile.am (AM_MAKEFLAGS): New macro.
7091
7092 Fri Jul 24 11:21:24 1998  Tom Tromey  <tromey@cygnus.com>
7093
7094         * nogc.cc: Include <javaprims.h>.
7095
7096         * Makefile.in: Rebuilt.
7097         * Makefile.am (GJAVAH): gjavah no longer in java subdir.
7098
7099 Thu Jul 23 11:38:40 1998  Tom Tromey  <tromey@cygnus.com>
7100
7101         * exception.cc (terminate): Removed.
7102         (unexpected): Removed.
7103
7104         * configure: Rebuilt.
7105         * configure.in: Handle case where target subdir is ".".
7106
7107         * configure: Rebuilt.
7108         * configure.in: Compute COMPPATH based on --with-target-subdir
7109         option.  Added --with-target-subdir and --with-cross-host.  Use
7110         --with-cross-host to determine when a cross compiler is in use.
7111
7112         * Makefile.in: Rebuilt.
7113         * Makefile.am (GJAVAH): Include COMPPATH.
7114         * configure: Rebuilt.
7115         * configure.in: Subst COMPPATH.
7116
7117 Mon Jul 20 16:13:43 1998  Tom Tromey  <tromey@cygnus.com>
7118
7119         * prims.cc (lockMutex): Removed.
7120         (unlockMutex): Likewise.
7121         (processClass): Lock the class using a JvSynchronize object.
7122
7123 Fri Jul 17 11:27:48 1998  Tom Tromey  <tromey@cygnus.com>
7124
7125         * java/lang/natString.cc (gc_calloc_fixed): Removed.
7126         (gc_free_fixed): Removed.
7127         (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
7128         freeing old value of strhash.
7129
7130         * exception.cc (_Jv_type_matcher): Cast first argument to
7131         _Jv_IsInstanceOf.
7132
7133 Thu Jul 16 14:51:44 1998  Tom Tromey  <tromey@cygnus.com>
7134
7135         * include/java-array.h (jstringArray): New type.
7136         * java/lang/natSystem.cc (setProperty): Removed.
7137         (initProperties): Directly call JvNewStringLatin1 for arguments.
7138         * java/util/natDate.cc: Include java/util/Date.h, not
7139         java-util.h.
7140         (setTime): Removed.
7141         * java/io/FileDescriptor.java (available): No longer static.
7142         * java/lang/natDouble.cc (Double): Removed class definition.
7143         * include/javaprims.h (java::lang::Number): Declare.
7144         (java::lang::NumberFormatException): Likewise.
7145         (java::io::FilenameFilter): Likewise.
7146         (java::lang::Character): Likewise.
7147         (java::lang::Error): Likewise.
7148         (java::lang::SecurityManager): Likewise.
7149         (java::util::Vector): Likewise.
7150         (java::io::FileNotFoundException): Likewise.
7151         (java::io::IOException): Likewise.
7152         (java::lang::NativeLang): Likewise.
7153         (java::lang::UnsatisfiedLinkError): Likewise.
7154         (java::util::StringTokenizer): Likewise.
7155         (java::io::InputStream, java::io::OutputStream): Likewise.
7156         (java::io::PrintStream, java::lang::SecurityException): Likewise.
7157         (java::util::Hashtable): Likewise.
7158         * Makefile.in: Rebuilt.
7159         * Makefile.am (nat_headers): Added java/lang/Double.h,
7160         java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
7161         (MOSTLYCLEANFILES): Added nat_headers.
7162         * include/jvm.h: Moved many defines, declarations, and functions
7163         to java/lang/Class.h.
7164         (struct JvSyncInfo): Moved to java/lang/Object.h.
7165         (UTF8_GET): Moved to java/lang/String.h.
7166
7167 Wed Jul 15 09:02:31 1998  Tom Tromey  <tromey@cygnus.com>
7168
7169         * java/io/io-defs.h: Don't include java-io.h.
7170         * include/java-io.h: Removed.
7171         * include/javaprims.h: Include java::io.
7172
7173 Tue Jul 14 17:04:26 1998  Tom Tromey  <tromey@cygnus.com>
7174
7175         * include/java-io.h (File): Removed
7176         (FileDescriptor): Likewise.
7177
7178         * java/io/io-defs.h: Include java/io/File.h and
7179         java/io/FileDescriptor.h.
7180
7181         * Makefile.in: Rebuilt.
7182         * Makefile.am (GJAVAH): New macro.
7183         (.class.h): New rule.
7184         (SUFFIXES): Added .h.
7185         (nat_headers): New macro.
7186         ($(nat_headers)): New target.
7187         (BUILT_SOURCES): Added nat_headers.
7188
7189         * include/java-util.h: Removed.
7190
7191 Fri Jul  3 10:17:14 1998  Tom Tromey  <tromey@cygnus.com>
7192
7193         * include/java-io.h: Changed to avoid java-lang.h.
7194         * java/lang/natThread.cc: Include java/lang/Thread.h, not
7195         java-lang.h.
7196         * java/lang/natSystem.cc: Include java/lang/System.h, not
7197         java-lang.h.
7198         * java/lang/natString.cc: Include java/lang/String.h, not
7199         java-lang.h.
7200         * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7201         java-lang.h.
7202         * java/lang/natClass.cc: Include java/lang/Class.h, not
7203         java-lang.h.
7204         * java/lang/natDouble.cc: Include java/lang/Object.h, not
7205         java-lang.h.
7206         * java/lang/natObject.cc: Include java/lang/Object.h, not
7207         java-lang.h.
7208         * exception.cc: Don't include java-lang.h.
7209         * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7210         * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7211         * nogc.cc: Don't include java-lang.h.
7212         * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7213         * prims.cc (processClass): Don't use `init_type'; just cast to
7214         type directly.
7215         Include java/lang/Class.h and jvm.h, not java-lang.h.
7216         (JvAllocObject): Wrote single-argument version.
7217         (PrimClass): Inherit from Class.
7218         (initPrimClass): Removed.
7219         * include/java-lang.h: Removed.
7220         * include/jvm.h: Declare struct _dispatchTable.
7221         * include/cni.h: Don't declare _Jv_MonitorEnter,
7222         _Jv_MonitorExit, struct _dispatchTable.
7223         * include/javaprims.h: Moved all typedefs here, from cni.h.
7224         * java/lang/Class.h: New file.
7225         * include/java-array.h: New file.
7226         * java/lang/Object.h: New file.
7227
7228         * prims.cc (classFromSig): Now static.
7229
7230 Wed Jul  1 12:28:48 1998  Tom Tromey  <tromey@cygnus.com>
7231
7232         * include/cni.h: Don't mention soft_new.
7233         * include/java-lang.h (Object): Don't mention soft_new.  Mention
7234         _Jv_NewPrimArray, not newPrimArray.
7235         * prims.cc (soft_new): Removed.
7236         (_Jv_NewArray): Renamed from soft_newarray.
7237         (soft_anewarray): Use JvNewObjectArray.
7238         (newArray): Likewise.
7239         (newRefArray): Removed.
7240         (_Jv_NewPrimArray): Renamed from newPrimArray.
7241         (equalUtf8Consts): Now static.
7242         (soft_instanceof): Removed.
7243         * java/lang/natDouble.cc (doubleToString): Now static.
7244
7245         * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7246         java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7247         Removed.
7248
7249 Tue Jun 30 10:54:57 1998  Tom Tromey  <tromey@cygnus.com>
7250
7251         * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7252         _Jv_MonitorExit.
7253         * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7254         _Jv_MonitorExit.
7255         * include/no-threads.h (JvPrivMutexLock): Always return -1.
7256         (JvPrivMutexUnlock): Likewise.
7257         * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7258         Return value now jint.
7259         (_Jv_MonitorExit): Renamed from soft_monitorexit.  Return value
7260         now jint.
7261
7262         * Makefile.in: Rebuilt.
7263         * Makefile.am: Don't allow `jV' names.
7264         (maintainer-check): Depend on libjava.a.
7265         * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7266
7267         * Makefile.in: Rebuilt.
7268         * Makefile.am (NM): New macro.
7269         (maintainer-check): New target.
7270
7271         * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7272
7273         * configure: Rebuilt.
7274         * configure.in: Use --enable-threads, not --enable-gc.  Fix
7275         documentation for --enable-threads.  Changed option to work like
7276         identical option in gcc/configure.
7277
7278 Mon Jun 29 10:44:29 1998  Tom Tromey  <tromey@cygnus.com>
7279
7280         * boehm.cc (mark_array): Use JvGetArrayLength.
7281
7282 Thu Jun 25 11:56:21 1998  Per Bothner  <bothner@cygnus.com>
7283
7284         * exception.cc:  New file (mostly written by Andrew MacLeod),
7285         exception handling support.
7286         * Makefile.am (libjava_a_SOURCES), Makefile.in:  Add exception.cc.
7287         Remove -fexceptions - it is now the default.
7288
7289         * prims.cc (JvIsInstanceOf):  Renamed to _Jv_IsInstanceOf.
7290         (JvAllocObject):  Renamed to _Jv_AllocObject.
7291         (soft_athrow):  Removed.  Replaced by _Jv_Throw in exception.cc.
7292         (loadClass):  Renamed to _Jv_FindClass.
7293         * include/cni.h (JvIsInstanceOf, JvAllocObject).  Make into
7294         inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7295         * include/java-lang.h (JvGetArrayLength):  New CNI function.
7296         * include/jvm.h (_Jv_FindClass):  Added declaration.
7297
7298         * java/lang/natString.cc:  More implementation if COMPACT_STRINGS.
7299
7300 Wed Jun 24 16:41:30 1998  Per Bothner  <bothner@cygnus.com>
7301
7302         * java/lang/natClass.cc (getName):  Add implementation.
7303         * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7304
7305 Tue Jun 23 15:56:24 1998  Tom Tromey  <tromey@cygnus.com>
7306
7307         * Makefile.in: Rebuilt.
7308         * Makefile.am (.class.o): Added -fexceptions.
7309
7310 Mon Jun 15 14:54:06 1998  Tom Tromey  <tromey@cygnus.com>
7311
7312         * configure: Rebuilt.
7313         * configure.in: Don't check for __nanosleep.
7314         * posix-threads.cc (nanosleep): Never define.
7315
7316 Sun Jun 14 22:37:23 1998  Tom Tromey  <tromey@cygnus.com>
7317
7318         * posix-threads.cc (JvPrivCondWait): Fixed computation of
7319         timespec.
7320
7321 Thu Jun 11 10:51:44 1998  Tom Tromey  <tromey@cygnus.com>
7322
7323         * java/lang/natThread.cc (enumerate): Uncommented.
7324         * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7325         (interrupt): Call it.
7326
7327 Wed Jun 10 15:57:16 1998  Tom Tromey  <tromey@cygnus.com>
7328
7329         * configure: Rebuilt.
7330         * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7331
7332 Mon Jun  8 12:04:11 1998  Tom Tromey  <tromey@cygnus.com>
7333
7334         * include/no-threads.h (JvPrivThreadInterrupt): New method.
7335         * include/java-lang.h (Thread): Added `interrupted_' method.
7336         * java/lang/Thread.java (interrupted_): New method.
7337         * java/lang/natThread.cc (join): Possibly throw interrupted
7338         exception after join finishes.
7339         (interrupted_): New method.
7340         * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7341         join_cond.
7342         (JvPrivThreadJoin): New function.
7343         (really_start): Notify all threads waiting for this thread.
7344         (struct starter): Added `data' member.
7345         (JvPrivThreadStart): Set it.
7346         * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7347         join_cond.
7348         (JvPrivThreadJoin): No longer inline.
7349         (JvPrivThreadInterrupt): New function.
7350
7351         * include/no-threads.h (JvPrivThreadSleep): Removed.
7352         * posix-threads.cc (JvPrivThreadSleep): Removed.
7353
7354 Fri Jun  5 13:51:25 1998  Tom Tromey  <tromey@cygnus.com>
7355
7356         * configure: Rebuilt.
7357         * configure.in (THREADOBJS): Initialize to no-threads.o in
7358         no-threads case.
7359         * posix-threads.cc (key): New global.
7360         (JvPrivInitThreads): New function.
7361         (really_start): Set thread-specific data to point to object.
7362         (JvPrivThreadStart): Added `daemon' argument.
7363         (JvPrivThreadSleep): Added `data' argument.
7364         * include/posix-threads.h (JvPrivInitThreads): Removed
7365         implementation.
7366         (JvPrivThreadCurrent): New function.
7367         * include/no-threads.h (JvPrivThreadInitData): Initialize
7368         JvPrivOnlyThread.  Added `thread' argument.
7369         (JvPrivThreadCurrent): New function.
7370         (JvPrivThreadStart): Added `daemon' argument.
7371         * no-threads.cc: New file.
7372         * java/lang/natThread.cc (init_data): New function.
7373         (isAlive): Removed.
7374         (start): Set `alive' member.
7375         (stop_): Clear `alive' member.
7376         (destroy): Likewise.
7377         (currentThread): Implemented.
7378         (start): Pass `daemon' argument to JvPrivThreadStart.
7379         (sleep): Rewrote.
7380         * include/java-lang.h (Thread): Added `alive', `tsync' members.
7381         (Thread): Added `init_data' method.
7382         * java/lang/Thread.java (alive, data): New instance variables.
7383         (init_data): New private method.
7384         (isAlive): No longer native.
7385
7386 Thu Jun  4 14:09:32 1998  Tom Tromey  <tromey@cygnus.com>
7387
7388         * include/java-lang.h (JvRunMain): Declare.
7389         * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7390         * prims.cc (JvRunMain): New function.
7391         (main_signature, main_name): New globals.
7392
7393         * boehm.cc (mark_array): Use `elements' function and not
7394         operator[] on jarray.
7395
7396         * posix-threads.cc: Include <config.h>.  Define nanosleep if
7397         required.
7398
7399         * configure: Rebuilt.
7400         * configure.in: Check for _nanosleep.
7401
7402         * configure: Rebuilt.
7403         * configure.in: Check for pthread_mutexattr_settype.
7404
7405         * include/cni.h (class JvSynchronize): New class.
7406         * java/lang/Thread.java (sleep): Throws InterruptedException.
7407         (join): Throws InterruptedException.
7408         (resume): Not native.
7409         (resume_): New method.
7410         (start): Now synchronized.
7411         (stop_): New method.
7412         (Thread): Synchronize when accessing threadNumber.
7413         (misc): Removed.
7414         * java/lang/natThread.cc (throwException): New macro.
7415         (sleep): Throw InterruptedException.
7416         (resume_): Renamed.
7417         (stop_): Renamed.
7418         * include/java-lang.h (Runtime): Added interrupted().
7419
7420         * boehm.cc (call_finalizer): Correctly initialize jobj.
7421         * include/java-lang.h (Runtime): Added getRuntime() and exit().
7422
7423         * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7424         `#elseif'.
7425
7426         * configure: Rebuilt.
7427         * configure.in: Added support for --disable-threads.
7428         * include/no-threads.h: New file.
7429
7430         * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7431
7432         * Makefile.in: Rebuilt.
7433         * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7434         (libjava_a_DEPENDENCIES): Added THREADOBJS.
7435         (libjava_a_LIBADD): Added THREADOBJS.
7436         * configure: Rebuilt.
7437         * configure.in: Added --with-threads option.
7438         * posix-threads.cc: New file.
7439         * include/posix-threads.h: New file.
7440         * include/java-lang.h (Object): Added static member sync_mutex,
7441         member sync_info, method init_mutex.
7442         (struct JvSyncInfo): New struct.
7443         Include "java-threads.h".
7444         * prims.cc (soft_monitorenter): Wrote.
7445         (soft_monitorexit): Likewise.
7446         * java/lang/natObject.cc (init_mutex): New method.
7447         (notify): Wrote.
7448         (notifyAll): Wrote.
7449         (wait): Wrote.
7450         (sync_mutex): Define.
7451         Include "java-threads.h".
7452
7453 Tue Jun  2 15:24:33 1998  Per Bothner  <bothner@cygnus.com>
7454
7455         * include/java-lang.h (JvPrivInitGC):  Make extern "C".
7456         * include/jvm.h (JvConvertArgv, JvNewObjectArray):  Likewise.
7457
7458 Mon Jun  1 11:21:34 1998  Per Bothner  <bothner@cygnus.com>
7459
7460         * include/cni.h (jbyte etc):  Re-define using __java_byte etc.
7461         Added extern "Java" in places to tell G++ Object is a "Java" type.
7462         Other minor renaming and fixes.
7463         * include/java-io.h (FileDescriptor):  Add friend class declarations.
7464         G++ no longer allows non-Java types in method parameters and results
7465         of Java classes.  Converted most offending methods to friends.
7466         * java/lang/natDouble.cc (Double::toString):  Rename to doubleToString.
7467         * java/lang/natSystem.cc (setProperty):  Make friend.
7468         * java/lang/natString.cc, include/java-lang.h (String):  Rename
7469         methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7470         * include/java-lang.h (JArray):  Remove getData and eoprator[].
7471         Add elements friend function instead.
7472         * java/lang/natSystem.cc (arraycopy):  Use elements function.
7473         * java/io/natFileDescriptor.cc (read, write):  Likewise.
7474         * include/java-lang.h (Object):  Remove unused make method.
7475         (System::setProperty(char*,char*)): Turn into friend function.
7476         (Class):  Rename newObject by JvAllocObject.
7477         * prims.cc:  Update to use JvAllocObject, and elements.
7478
7479         * java/lang/natDouble.cc:  Fix double -> jdouble.
7480
7481 Wed May 20 16:50:06 1998  Per Bothner  <bothner@cygnus.com>
7482
7483         * Makefile.am (INCLUDES):  Add -Iinclude (to get config.h).
7484
7485 Mon May 18 13:46:02 1998  Tom Tromey  <tromey@cygnus.com>
7486
7487         * java/lang/natRuntime.cc (finalize_on_exit): Define.
7488         * include/java-lang.h (Runtime): finalize_on_exit and
7489         runFinalizersOnExit now static.
7490         * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7491         match JDK 1.2b3.
7492         (finalize_on_exit): Now static.
7493
7494         * boehm.cc (mark_obj): Get class using getClass() method on
7495         object.
7496         (_dispatchTable): Removed.
7497
7498 Mon May 11 15:26:52 1998  Tom Tromey  <tromey@cygnus.com>
7499
7500         * java/io/natFileDescriptor.cc (open_read): Only call open if
7501         HAVE_OPEN defined.
7502         (open_write): Likewise.
7503
7504         * Makefile.in: Rebuilt.
7505         * Makefile.am ($(nat_files)): Depend on config.h.
7506
7507 Thu May  7 16:22:00 1998  Tom Tromey  <tromey@cygnus.com>
7508
7509         * prims.cc (ObjectClass): Now a macro; updated for new class name
7510         mangling scheme.
7511         (StringClass): Likewise.
7512         (ClassClass): Likewise.
7513
7514 Wed May  6 00:26:44 1998  Tom Tromey  <tromey@cygnus.com>
7515
7516         * java/io/natFileDescriptor.cc (available): Do nothing unless
7517         HAVE_SELECT defined.
7518         * java/util/natDate.cc (setTime): Conditional on
7519         HAVE_GETTIMEOFDAY.
7520         (toString): Conditional on HAVE_TIME.
7521         * aclocal.m4, configure: Rebuilt.
7522         * acinclude.m4: New file.
7523         * configure.in: Don't actually call AM_EXEEXT.  Call
7524         AC_CANONICAL_HOST.  Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX.  Added
7525         --with-target-subdir option.  Check for select and open
7526         functions.
7527
7528 Tue May  5 00:10:45 1998  Tom Tromey  <tromey@cygnus.com>
7529
7530         * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7531         (call_finalizer): Likewise.
7532         * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7533         * prims.cc (newObject): Pass actual method pointer to
7534         JvPrivRegisterFinalizer.
7535         * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7536         (JvPrivRegisterFinalizer): Changed interface.
7537
7538         * Makefile.in: Rebuilt.
7539         * Makefile.am (MOSTLYCLEANFILES): New macro.
7540         (CLEANFILES): Removed javao_files.
7541
7542 Fri May  1 22:52:24 1998  Tom Tromey  <tromey@cygnus.com>
7543
7544         * nogc.cc: New file.
7545         * Makefile.in: Rebuilt.
7546         * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7547         (EXTRA_libjava_a_SOURCES): New macro.
7548         (libjava_a_SOURCES): Removed boehm.cc.
7549         (libjava_a_DEPENDENCIES): Added GCOBJS.
7550         (libjava_a_LIBADD): Likewise.
7551         * configure: Rebuilt.
7552         * configure.in: Added code for --enable-gc=TYPE.
7553
7554 Thu Apr 30 14:54:00 1998  Tom Tromey  <tromey@cygnus.com>
7555
7556         * boehm.cc (mark_array): Don't further dereference pointer from
7557         array.
7558
7559         * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7560         * Makefile.in: Rebuilt.
7561         * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7562         one for boehm-gc build directory.
7563
7564 Wed Apr 29 09:45:19 1998  Tom Tromey  <tromey@cygnus.com>
7565
7566         * include/java-lang.h (finalize_on_exit): New instance variable in
7567         java::lang::Runtime.
7568         (runFinalizersOnExit): New method.
7569         * java/lang/Runtime.java (finalize_on_exit): New instance
7570         variable.
7571         (runAllFinalizers_): New private method.
7572         (runFinalizersOnExit): New method.
7573         * boehm.cc (JvPrivRunFinalizers): New function.
7574         (JvPrivRunAllFinalizers): Likewise.
7575         (JvPrivRunGC): Likewise.
7576         * java/lang/natRuntime.cc: Include "jvm.h".
7577         (gc): Call JvPrivRunGC.
7578         (runFinalization): Call JvPrivRunFinalizers.
7579         (runFinalizersOnExit): New method.
7580         (exit_): Call JvPrivRunAllFinalizers if required.
7581         * include/jvm.h: Declare JvPrivRunFinalizers,
7582         JvPrivRunAllFinalizers, JvPrivRunGC.
7583
7584 Tue Apr 28 15:06:50 1998  Tom Tromey  <tromey@cygnus.com>
7585
7586         * boehm.cc (JvPrivRegisterFinalizer): New function.
7587         (call_finalizer): Likewise.
7588         * include/jvm.h: Declare JvPrivRegisterFinalizer.
7589         * prims.cc (finalize_name): New global.
7590         (newObject): Just call other newObject.
7591         (newObject): Register finalizer if it exists.
7592
7593 Mon Apr 27 12:47:03 1998  Tom Tromey  <tromey@cygnus.com>
7594
7595         * prims.cc (gc_malloc): Removed.
7596         (makeUtf8Const): Use JvPrivAllocBytes.
7597         (lookupArray): Likewise.
7598         (newPrimArray): Likewise.
7599         (JvNewObjectArray): Use JvPrivAllocArray.
7600         (newObject): Use JvPrivAllocObj.
7601         (newObject): Likewise.
7602         Changed Method -> JvMethod everywhere.
7603         Changed Field -> JvField everywhere.
7604         * include/java-lang.h (Object): Changed type of `fields' to
7605         JvField*.
7606         (jmethodID, jfieldID): New typedefs.
7607         (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7608         friends.
7609         * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7610         from java-lang.h.
7611         (METHOD_NATIVECODE): Moved from java-lang.h.
7612         (class JvField): New class.
7613         (JvGetFirstInstanceField): New function.
7614         (JvFieldIsRef): Likewise.
7615         (JvGetObjectField): Likewise.
7616         (JvNumInstanceFields): Likewise.
7617
7618 Thu Apr 23 16:42:11 1998  Tom Tromey  <tromey@cygnus.com>
7619
7620         * boehm.cc: New file.
7621         * Makefile.in: Rebuilt.
7622         * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7623         (INCLUDES): Added -I options to find boehm-gc files.
7624
7625 Wed Apr 29 15:11:37 1998  Tom Tromey  <tromey@cygnus.com>
7626
7627         * configure: Rebuilt.
7628         * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7629
7630         * Makefile.in: Rebuilt.
7631         * Makefile.am (nat_files): New macro.
7632         (libjava_a_DEPENDENCIES): Use it.
7633         (libjava_a_LIBADD): Likewise.
7634         ($(nat_files)): New static pattern rule.
7635         (class_files): Run separate find to find .class files.
7636         (javao_files): Compute based on class_files.
7637         (BUILT_SOURCES): New macro.
7638
7639 Thu Apr 23 16:42:11 1998  Tom Tromey  <tromey@cygnus.com>
7640
7641         * Makefile.am (java_files): New macro.
7642         (class_files): Likewise.
7643         (javao_files): Likewise.
7644         (libjava_a_DEPENDENCIES): Include $(javao_files).
7645         (libjava_a_LIBADD): Likewise.
7646         (classes.stamp): Depend on $(java_files); only recompile changed
7647         files.
7648         (here): New macro.
7649         (CLEANFILES): Don't run find; use macros.  Don't mention
7650         libjava.a.
7651         (.class.o): New target.
7652         (compiled.stamp): Removed.
7653
7654 Thu Apr 23 14:17:43 1998  Per Bothner  <bothner@cygnus.com>
7655
7656         * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7657         LineNumberReader}>java:  Newly-implemented standard classes.
7658
7659 Thu Apr 23 14:02:04 1998  Tom Tromey  <tromey@cygnus.com>
7660
7661         * Makefile.in: Rebuilt.
7662         * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7663
7664         * Makefile.in: Rebuilt.
7665         * Makefile.am (hack): New macro.
7666         (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7667
7668 Wed Apr 22 16:49:57 1998  Tom Tromey  <tromey@cygnus.com>
7669
7670         * include/config.h.in: New file.
7671         * include/config.h: Removed.
7672         * acconfig.h: New file.
7673         * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7674         (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7675         libjava_a_LIBADD): New macros.
7676         (INCLUDES): New macro.
7677         (prims.o): Removed.
7678         (.cc.o): Removed.
7679         (SUFFIXES): Removed.
7680         (all): Removed.
7681         (libjava.a): Removed.
7682
7683         * configure: Rebuilt.
7684         * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7685         Look for headers and functions we require.  Create
7686         include/config.h.
7687
7688 Mon Apr 20 22:25:00 1998  Per Bothner  <bothner@cygnus.com>
7689
7690         * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7691         soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7692         soft_lookupinterfacemethod):  New functions.
7693         (PrimClass):  Actually initialize the primitive classes.
7694         (Utf8Const2JavaString):  Moved to java/lang/natString.cc.
7695
7696         * include/java-util.h:  Removed java::util definition.
7697         * include/cni.h:  Moved java::util here and added Properties.
7698         Added more function prototypes.
7699         * include/java-lang.h:  Added mroe methods and friend declarations.
7700         * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME):  Added.
7701         * include/jvm.h (strLengthUtf8):  Add declaration.
7702         
7703         * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7704         New static field.
7705         * java/lang/{Byte,Short,Void}.java:  New classes.
7706         * java/lang/Character.java (isJavaIdentifierStart,
7707         JavaIdentifierPart):  New static methods.
7708         * java/lang/Number.java (byteValue, shortValue):  New methods.
7709
7710         * java/lang/String.java (intern, hashCode):  Make native.
7711         * java/lang/natString.cc:  New file.  Handle the string pool.
7712         * Makefile.am:  Build natString.o.  Use CXXFLAGS.
7713
7714         * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7715         isInstance, isAssignableFrom), java/lang/natClass.cc:  New methods.
7716         * java/lang/Throwable.java (<init>):  Don't fillInStackTrace yet.
7717         * java/lang/System.java (setProperty):  New private method.
7718         (initProperties):  Take argument, and make native.
7719         * java/lang/natSystem.cc:  Implement (preliminary) initProperties.
7720         (currentTimeMillis):  Make more robust.
7721
7722         * java/io/{Writer,PrintWriter,OutputStreamWriter}.java:  New classes.
7723         * java/io/UnsupportedEncodingException.java:  New exception class.
7724
7725         * java/io/DataInputStream.java:  Don't use a PushbackInputStream.
7726         * java/io/FilterOutputStream.java:  Add missing 'extends OutputStream'.
7727         
7728 Fri Apr 10 11:52:10 1998  Per Bothner  <bothner@cygnus.com>
7729
7730         * Makefile.am (CXXFLAGS, JC1FLAGS):  New macro.
7731         * prims.cc:  Added bunch of stuff.
7732         * include/cni.h:  Added various definitions.
7733         * include/java-lang.h:  Added Method, various friends, some macros.
7734
7735         * include/config.h:  Added HAVA_MEMMOVE and HAVE_MEMCPY.
7736         * java/lang/System.java (arraycopy):  Make native.
7737
7738 Sun Apr  5 23:58:51 1998  Per Bothner  <bothner@cygnus.com>
7739
7740         * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7741         natSystem.cc,natThread.cc}:  Native (C++) methods for various classes.
7742         * java/lang/ClassLoader.java (defineClass):  Now takes extra argument.
7743         * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7744         Make native.
7745         * java/lang/Runtime.java:  Declare methods as native instead of
7746         using NativeLang.
7747         * java/lang/SecurityManager.java (getClassContext):  Just throw Error.
7748         * java/lang/System.java:  Comment out some stuff, for now.
7749         * java/lang/Thread.java:  Re-write.  Use native methods.
7750         * java/lang/NativeLang.java:  Remove most of it.
7751         
7752         * java/util/natDate.cc:  Native (C++) methods for Date.
7753         * java/util/{Calendar.java,GregorianCalendar.java}:  New classes.
7754         * java/util/Date.java:  Complete re-write.
7755
7756         * java/io/io-defs.h:  New header file.
7757         * java/io/FileDescriptor.java:  Add a bunch of private methods,
7758         mostly moved from NativeIO.java and natNativeIO.cc.
7759         * java/io/{natFile.cc,java/io/natFileDescriptor.cc}:  New native code.
7760         * java/io/File.java:  Use new code.
7761         * java/io/{FileInputStream.java.FileOutputStream.java,
7762         RandomAccessFile.java}:  Use new private FileDescriptor methods.
7763         * java/io/NativeIO.java:  Removed, no longer used.
7764
7765         * java/io/StreamTokenizer.java (numericChars):  Make char array.
7766
7767         * include/*.h:  Various header files used by the C++ native code.
7768
7769         * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7770         New autoconf+automake-based setup.
7771         * prims.cc:  New file for Java "primitives".
7772