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