OSDN Git Service

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