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