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