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