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