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