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