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