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