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