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