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