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