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