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