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