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