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