OSDN Git Service

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