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