1 2000-02-03 Tom Tromey <tromey@cygnus.com>
3 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
6 2000-02-01 Tom Tromey <tromey@cygnus.com>
8 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
9 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
10 constructing the closure if the function is native.
11 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
12 a template function, #if'd out, or static.
13 Include <java-interp.h>.
15 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
17 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
19 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
20 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
22 (wrap_value): New function.
23 (_Jv_JNI_CallAnyMethodV): Use it.
24 (_Jv_JNI_CallAnyMethodA): Likewise.
25 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
26 (_Jv_JNI_GetStaticField): Likewise.
28 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
29 (_Jv_JNI_GetStaticField): Likewise.
31 2000-01-31 Tom Tromey <tromey@cygnus.com>
33 * prims.cc (_Jv_MallocUnchecked): New function.
34 (main_init): Call _Jv_JNI_Init.
35 * include/jvm.h (_Jv_MallocUnchecked): Declare.
36 (_Jv_JNI_Init): Declare.
37 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
39 (_Jv_JNI_NewGlobalRef): New function.
40 (_Jv_JNI_DeleteGlobalRef): New function.
41 (_Jv_JNI_DeleteLocalRef): New function.
42 (_Jv_JNI_conversion_call): Initialize and clear local reference
44 (_Jv_JNI_NewLocalRef): New function.
45 (struct _Jv_JNI_LocalFrame): New structure.
46 (_Jv_JNI_PushLocalFrame): New function.
47 (_Jv_JNI_EnsureLocalCapacity): New function.
48 (FRAME_SIZE): New define.
49 (_Jv_JNI_GetStringChars): Mark string, not characters.
50 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
51 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
52 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
54 (_Jv_JNI_DefineClass): Make return value a local ref.
55 (_Jv_JNI_FindClass): Likewise.
56 (_Jv_JNI_GetSuperclass): Likewise.
57 (_Jv_JNI_ExceptionOccurred): Likewise.
58 (_Jv_JNI_AllocObject): Likewise.
59 (_Jv_JNI_GetObjectClass): Likewise.
60 (_Jv_JNI_CallAnyMethodV): Likewise.
61 (_Jv_JNI_NewString): Likewise.
62 (_Jv_JNI_NewStringUTF): Likewise.
63 (_Jv_JNI_NewObjectArray): Likewise.
64 (_Jv_JNI_GetObjectArrayElement): Likewise.
65 (_Jv_JNI_ToReflectedField): Likewise.
66 (_Jv_JNI_ToReflectedMethod): Likewise.
67 (_Jv_JNIFunctions): Updated table for new functions.
68 (_Jv_JNI_Init): New function.
70 (unmark_for_gc): Wrote.
71 * include/jni.h (struct JNINativeInterface): Removed name from
72 PopLocalFrame parameter.
73 (class _Jv_JNIEnv): Added `locals' field.
75 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
77 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
80 2000-01-30 Tom Tromey <tromey@cygnus.com>
82 * include/config.h.in: Rebuilt.
83 * acconfig.h (HAVE_ICONV): Define.
85 * configure.in: Check for `iconv' function.
86 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
87 no specific encoder exists.
88 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
89 no specific encoder exists.
90 * Makefile.in: Rebuilt.
91 * Makefile.am (convert_source_files): Mention Input_iconv.java and
93 (nat_source_files): Added natIconv.cc.
94 * gnu/gcj/convert/natIconv.cc: New file.
95 * gnu/gcj/convert/Input_iconv.java: New file.
96 * gnu/gcj/convert/Output_iconv.java: New file.
98 2000-01-28 Tom Tromey <tromey@cygnus.com>
100 * Makefile.in: Rebuilt.
101 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
103 2000-01-26 Tom Tromey <tromey@cygnus.com>
105 * gcj/method.h (JvNumMethods): Moved from Class.h.
106 (JvGetFirstMethod): Likewise.
107 * java/lang/Class.h (Object): Updated decl of
108 _Jv_JNI_ToReflectedField.
109 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
110 * Makefile.in: Rebuilt.
111 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
112 argument of _Jv_JNI_ToReflectedField.
113 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
115 (java/lang/reflect/Method.h): Likewise.
116 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
118 (jweak): New typedef.
119 (struct JNINativeInterface): Correctly declare remaining entries.
120 * jni.cc: Include Class.h, ClassLoader.h.
121 (_Jv_JNI_FindClass): New function.
122 (_Jv_JNI_DefineClass): New function.
123 (_Jv_JNI_conversion_call): New function.
124 (_Jv_JNI_FindClass): Use current class loader to find class.
125 (_Jv_JNI_ExceptionCheck): New function.
126 (_Jv_JNI_FromReflectedField): Now static.
127 (MethodClass): New define.
128 (_Jv_JNI_FromReflectedMethod): New function.
129 (_Jv_JNI_ToReflectedMethod): Likewise.
131 (_Jv_JNI_IsAssignableFrom): Renamed.
132 (_Jv_JNI_GetStringRegion): New function.
133 Include StringIndexOutOfBoundsException.h.
134 (_Jv_JNI_GetStringUTFRegion): New function.
135 (_Jv_JNIFunctions): Updated for new functions.
136 (_Jv_JNI_GetPrimitiveArrayCritical): New function
137 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
138 (_Jv_JNI_GetStringCritical): New function.
139 (_Jv_JNI_ReleaseStringCritical): Likewise.
140 (get_throwable): Removed.
141 (GCJ_JV_JNIENV_FRIEND): Removed.
142 (__GCJ_JNI_IMPL__): Define.
145 * resolve.cc (get_ffi_type_from_signature): Handle case where
148 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
150 * interpret.cc (run): Don't call println.
151 Don't include PrintStream.h.
153 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
154 nameIndex. Use "jint" as type for boffset.
155 * java/lang/Class.h (struct _Jv_Method): Made accflags a
157 (Class): Likewise. Also changed type of method_count,
158 vtable_method_count, size_in_bytes, field_count,
159 static_field_count, interface_count.
160 * gcj/array.h (__JArray): Made `length' a const jsize, not an
163 2000-01-21 Tom Tromey <tromey@cygnus.com>
165 * java/lang/reflect/natConstructor.cc (newInstance): Use
167 * include/jvm.h: Declare _Jv_CallAnyMethodA.
168 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
169 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
172 (invoke): Use _Jv_CallAnyMethodA.
174 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
175 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
177 (struct _Jv_Method): Added getNextMethod method.
178 (JvNumMethods): New function.
179 (JvGetFirstMethod): Likewise.
180 * gcj/field.h (JvGetFirstStaticField): New function.
181 (JvNumStaticFields): Likewise.
182 (getNextField): Renamed from getNextInstanceField.
183 (struct _Jv_Field): New method getClass.
184 * jni.cc: Wrote many new functions.
185 * include/jni.h (JNI_TRUE): Define.
186 (JNI_FALSE): Likewise.
187 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
188 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
189 jcharArray, jfloatArray, jdoubleArray): New typedefs.
190 (jfieldID, jmethodID): Likewise.
191 (JNI_COMMIT, JNI_ABORT): New defines.
192 (JNINativeMethod): New struct.
193 (struct JNINativeInterface): Correctly declared more entries.
194 (class _Jv_JNIEnv): Added `ex' member.
195 (JNI_VERSION_1_1): New define.
196 (JNI_VERSION_1_2): Likewise.
198 * boehm.cc (_Jv_MarkObj): Use getNextField, not
199 getNextInstanceField.
201 2000-01-20 Tom Tromey <tromey@cygnus.com>
203 * resolve.cc (StringClass): Removed.
204 * defineclass.cc (StringClass): Removed.
206 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
210 2000-01-19 Tom Tromey <tromey@cygnus.com>
212 * interpret.cc (PC_REGISTER_ASM): Removed.
214 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
217 * All files: Updated copyright to reflect Cygnus purchase.
219 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
221 * configure: Rebuilt.
222 * configure.in: Recognize --disable-interpreter.
224 2000-01-18 Andrew Haley <aph@cygnus.com>
226 * name-finder.cc (lookup): Check for dladdr function.
227 acconfig.h (HAVE_DLADDR): Add.
228 configure.in: Check for HAVE_DLADDR
230 include/config.h.in: Rebuilt.
232 2000-01-17 Andrew Haley <aph@cygnus.com>
234 * prims.cc (_Jv_RunMain): Set the name of this executable.
236 2000-01-17 Tom Tromey <tromey@cygnus.com>
238 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
239 when backtrace can't be computed.
241 * configure: Rebuilt.
242 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
244 * java/lang/Runtime.java (loadLibraryInternal): Declare.
245 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
246 (_Jv_FindClassInCache): Likewise.
247 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
248 (findSystemClass): Try to load class from compiled module.
250 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
251 (loadLibrary): Likewise.
252 (lt_preloaded_symbols): Define.
253 (loadLibraryInternal): New method.
254 * include/config.h.in: Rebuilt.
255 * acconfig.h (USE_LTDL): Added.
256 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
257 (INCLUDES): Added $(INCLTDL).
258 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
259 (libgcj_la_LIBADD): Likewise.
260 * aclocal.m4, configure: Rebuilt.
261 * configure.in: Added libltdl support.
263 2000-01-15 Tom Tromey <tromey@cygnus.com>
265 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
267 2000-01-14 Andrew Haley <aph@cygnus.com>
269 * java/lang/natThrowable.cc: New file.
271 * java/lang/Throwable.java (fillInStackTrace): Make native.
272 (printStackTrace): Call native method to do this.
273 (Throwable): Call fillInStackTrace.
274 (stackTrace): New variable.
276 * include/jvm.h: Add _Jv_ThisExecutable functions.
278 * prims.cc: (_Jv_execName): New variable.
279 (catch_segv): Call fillInStackTrace.
281 (_Jv_ThisExecutable): New functions.
282 (JvRunMain): Set the name of this executable.
284 * Makefile.am: Add java/lang/natThrowable.cc.
286 * Makefile.in: Rebuilt.
288 * acconfig.h: Add HAVE_PROC_SELF_EXE.
290 * configure.in: Force link with __frame_state_for in
291 FORCELIBGCCSPEC. Add new checks for backtrace.
292 * include/config.h.in: Rebuilt.
294 * name-finder.cc: New file.
295 * include/name-finder.h: New file.
297 2000-01-16 Anthony Green <green@cygnus.com>
299 * java/lang/StringBuffer.java (StringBuffer): Don't special case
302 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
304 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
306 2000-01-13 Tom Tromey <tromey@cygnus.com>
308 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
309 not system loader, as initiating loader.
311 2000-01-11 Tom Tromey <tromey@cygnus.com>
313 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
314 HP/UX. From David Scott Urban.
316 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
318 * java/lang/natMath.cc (pow): Cast args to `double', not
321 (IEEEremainder): Likewise.
322 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
323 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
325 2000-01-09 Anthony Green <green@cygnus.com>
327 * java/lang/natString.cc (init): Test for overflow condition
328 during out of bounds check.
329 (getChars): Throw StringIndexOutOfBoundsException, not
330 ArrayIndexOutOfBoundsException.
332 (regionMatches): Obey case option during string comparison.
334 * configure.host (ligcj_interpreter): New variable. Enable
335 interpreter by default on IA-32.
336 * configure.in: Examine libgcj_interpreter.
337 * configure: Rebuilt.
339 2000-01-07 Tom Tromey <tromey@cygnus.com>
341 * mauve-libgcj: Don't disable ClassTest.
343 * java/lang/natClass.cc (getClasses): Wrote.
345 2000-01-06 Tom Tromey <tromey@cygnus.com>
347 * java/lang/natClass.cc (_getConstructors): Correctly check
348 whether method name is the init name.
349 (getMethod): Look at accflags on method in `klass', not `this'.
351 2000-01-05 Tom Tromey <tromey@cygnus.com>
353 * java/lang/natClass.cc (getMethod): Compute offset relative to
354 `klass's methods table, not `this's table.
356 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
357 In unwrapping/widening case, check whether `k' is null, not
358 whether it is primitive. Initialize `num' from `argelts', not
359 `paramelts'. Correct create and pass arguments to ffi_call.
360 Don't let presence of `this' argument affect index used to look in
362 (COPY): Set appropriate element in `values' vector.
364 * java/lang/natClass.cc: Include <gcj/method.h>.
366 * java/lang/Class.h (_getMethods): Correctly declare as private,
369 * java/lang/Class.h (_getMethods): Declare.
370 * java/lang/Class.java (_getMethods): Declare.
371 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
372 (getDeclaredClasses): Always return empty array.
373 (_getMethods): New method.
375 (getDeclaredMethod): Return `rmethod'.
376 (finit_name): New global.
377 (getDeclaredMethods): Check for finit_name.
378 (_getMethods): Likewise.
379 (getMethod): Only return public methods.
381 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
382 jboolean and select correct ffi type on that basis.
383 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
384 Constructor call always has `void' return type.
386 2000-01-04 Tom Tromey <tromey@cygnus.com>
388 * java/lang/Class.h (getSignature): Updated.
389 * java/lang/Class.java (getSignature): Updated.
390 * java/lang/natClass.cc (getSignature): Added `is_constructor'
392 (getConstructor): Ensure constructor is public.
393 (_getConstructors): Check for public-ness of constructor when
394 `declared' is false, not when it is true.
396 2000-01-04 Warren Levy <warrenl@cygnus.com>
398 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
400 (receive): Set the sender's address in the DatagramPacket.
402 2000-01-04 Tom Tromey <tromey@cygnus.com>
404 * java/lang/reflect/natConstructor.cc (newInstance): Pass
405 declaring class as return_type argument to
406 _Jv_CallNonvirtualMethodA.
407 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
408 constructor case, create object and use it as `this' argument.
409 * java/lang/Class.h (_getConstructors): Declare.
410 (_getFields): Declare.
411 * java/lang/Class.java (getConstructors): Wrote.
412 (_getConstructors): New native method.
413 (getDeclaredConstructors): Wrote.
414 (_getFields): Declare new native method.
415 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
417 (getMethod): Work correctly when class is primitive.
418 (getDeclaredMethods): Likewise. Compute offset using `method',
420 (getDeclaredMethod): Likewise.
421 (getConstructor): Wrote.
422 (ConstructorClass): New define.
423 (getDeclaredConstructor): Wrote.
424 (_getConstructors): New method.
425 (_getFields): New method.
428 * Makefile.in: Rebuilt.
429 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
431 * prims.cc: Remove `#pragma implementation'.
432 * gcj/array.h: Remove `#pragma interface'.
434 * prims.cc (_Jv_equaln): New function.
435 * java/lang/Class.java (getSignature): Declare.
436 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
437 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
439 (getSignature): New method.
440 (getDeclaredMethod): Wrote.
442 Include StringBuffer.h.
443 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
444 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
446 (getSignature): Declare.
447 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
448 (_Jv_equaln): Declare.
449 (_Jv_CallNonvirtualMethodA): Declare.
450 * Makefile.in: Rebuilt.
451 * Makefile.am (nat_source_files): Added natConstructor.cc.
452 (java/lang/reflect/Constructor.h): New target.
453 * java/lang/reflect/natConstructor.cc: New file.
454 * java/lang/reflect/Constructor.java (newInstance): Now native.
455 (declaringClass): Renamed from decl_class.
456 (offset): Renamed from index.
457 (getType): New native method.
458 (getModifiers): Now native.
459 (getParameterTypes): Call getType if required.
460 (hashCode): Include hash code from declaring class.
461 (modifiers): Removed.
462 (toString): Call getType if required.
463 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
464 * java/lang/reflect/natMethod.cc (hack_call): New method.
465 Removed `#if 0' around FFI code.
466 Include <gnu/gcj/RawData.h>.
467 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
468 IllegalArgumentException when argument object and class disagree.
469 (_Jv_GetTypesFromSignature): New function.
471 (ObjectClass): New define.
472 (_Jv_CallNonvirtualMethodA): New function.
473 * java/lang/reflect/Method.java (hack_trampoline): New method.
474 (hack_call): New native method.
476 1999-12-21 Per Bothner <per@bothner.com>
478 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
479 offset in new Method.
481 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
483 * java/lang/natObject.cc (notify): Throw message with
484 IllegalMonitorStateException.
487 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
488 (isInterrupted_): New function, which does clear interrupt_flag.
489 (interrupt): Use `isInterrupted_'.
490 * java/lang/natThread.cc (interrupt): Add comment.
491 (join): Set `prev' in joiner loop.
492 Change various calls to `isInterrupted' to use `isInterrupted_'.
493 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
494 on linux. Set result to 0 on an interrupt. Test interrupted status
495 of java Thread object directly.
496 FLAG_INTERRUPTED: removed.
497 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
498 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
499 (_Jv_InitThreads): Don't block SIGINT.
500 (_Jv_ThreadWait): Don't configure SIGINT handler.
502 1999-12-21 Tom Tromey <tromey@cygnus.com>
504 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
506 1999-12-20 Tom Tromey <tromey@cygnus.com>
508 * java/lang/reflect/Modifier.java (STRICT): New constant.
509 (isStrict): New method.
510 (toString): Added `strict'.
512 1999-12-23 Anthony Green <green@cygnus.com>
514 * configure: Rebuilt.
515 * configure.in (LIBDATASTARTSPEC): Force data_start in with
518 1999-12-19 Anthony Green <green@cygnus.com>
520 * libgcjdata.c: New file.
521 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
522 * configure: Rebuilt.
523 * configure.in (LIBDATASTARTSPEC): Force data with a known name
525 * Makefile.in: Rebuilt.
526 * Makefile.am: Build libgcjdata.a.
528 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
529 * configure: Rebuilt.
530 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
533 1999-12-17 Tom Tromey <tromey@cygnus.com>
535 * java/lang/reflect/Method.java (toString): Call getType if
536 required. Partial fix for PR libgcj/111. From Per Bothner.
538 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
540 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
542 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
543 null String constructor parameter.
544 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
545 for exception messages.
546 BooleanClass: declare.
547 (setOption): Use BooleanClass instead of Class.forName() for
549 (bind): Cast 4th parameter of setsockopt to `char *' for
550 compatibility with older Solaris headers.
551 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
552 sprintf calls for exception messages.
553 BooleanClass, IntegerClass: declare.
554 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
557 1999-12-15 Tom Tromey <tromey@cygnus.com>
559 * java/lang/natSystem.cc (init_properties): Don't set user.name or
560 user.home if NO_GETUID defined. Only set user.dir if getcwd
563 * include/config.h.in: Rebuilt.
564 * acconfig.h (NO_GETUID): New define.
565 * configure.in: Rebuilt.
566 * configure.in: Define NO_GETUID in cross case. Check for getcwd
569 1999-12-08 Tom Tromey <tromey@cygnus.com>
571 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
572 where no recursive mutexes exist. Fixes PR libgcj/117.
574 1999-12-05 Anthony Green <green@cygnus.com>
576 * include/jvm.h: Declare many functions with
577 __attribute__((__malloc__)).
578 * gcj/javaprims.h: Ditto.
580 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
582 * THANKS: Giving credit where credit is due.
584 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
586 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
588 * java/lang/natString.cc (equalsIgnoreCase): return false if
589 anotherString is null.
590 * java/lang/Boolean.java (valueOf): return FALSE if argument is
593 1999-11-30 Tom Tromey <tromey@cygnus.com>
595 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
596 mutex to initialize. Initialize `count' if required.
599 1999-11-27 Per Bothner <per@bothner.com>
601 * exception.cc: Remove prototype declarations for malloc and free.
602 These clash with recent versions of glibc, which specifies `throws ()'
603 when __cplusplus is defined. Instead, #include <stdlib.h>.
605 1999-11-24 Tom Tromey <tromey@cygnus.com>
607 * prims.cc (_Jv_NewObjectArray): Use
608 _Jv_GetArrayElementFromElementType.
609 (_Jv_NewPrimArray): Likewise.
610 * java/lang/natObject.cc (clone): Use
611 _Jv_GetArrayElementFromElementType instead of sizeof.
612 * java/lang/natSystem.cc (arraycopy): Use
613 _Jv_GetArrayElementFromElementType.
614 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
617 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
619 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
620 Exception messages. PR java.net/57.
621 (bind): set SO_REUSEADDR before bind.
622 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
623 overruns. PR java.net/57.
625 1999-11-19 Tom Tromey <tromey@cygnus.com>
627 * Makefile.am (DIVIDESPEC): Removed.
628 (EXCEPTIONSPEC): Removed.
630 1999-11-19 Andrew Haley <aph@cygnus.com>
632 * Makefile.am (JCFLAGS): Add -L$(here)
634 * Makefile.in: Rebuild.
636 1999-11-18 Tom Tromey <tromey@cygnus.com>
638 * java/lang/natDouble.cc: Include <config.h>.
640 * include/config.h.in: Rebuilt.
641 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
642 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
644 * configure: Rebuilt.
645 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
646 requested by configure.host. Don't put `-D' option into
647 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
649 * configure: Rebuilt.
650 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
653 1999-11-18 Andrew Haley <aph@cygnus.com>
655 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
656 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
658 * Makefile.in: Rebuild
659 * acconfig.h: remove SJLJ_EXCEPTIONS
660 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
661 Do not AC_DEFINE SJLJ_EXCEPTIONS.
662 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
663 * gcj/Makefile.in, include/Makefile.in: rebuild.
664 * include/config.h.in: remove SJLJ_EXCEPTIONS.
666 1999-11-18 Andrew Haley <aph@cygnus.com>
668 * gij.cc (main): Rename label to prevent conflict.
670 * exception.cc (_Jv_type_matcher): Don't check the table if we're
671 using setjmp/longjmp exceptions: there isn't one.
673 1999-11-17 Andrew Haley <aph@cygnus.com>
675 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
676 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
677 (__sjthrow): Add declaration.
678 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
682 * Makefile.in: Rebuild
683 * acconfig.h: Add SJLJ_EXCEPTIONS
684 * configure.in: Add SJLJ_EXCEPTIONS
685 * configure: Rebuild.
686 * gcj/Makefile.in: Rebuild.
687 * gcj/cni.h: Add support for sjlj-exceptions.
688 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
689 * include/Makefile.in: Rebuild.
690 * include/default-signal.h: Add support for sjlj-exceptions.
692 1999-11-18 Tom Tromey <tromey@cygnus.com>
694 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
696 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
698 (method_cache): Made larger.
700 1999-11-11 Tom Tromey <tromey@cygnus.com>
702 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
703 initializing mutex. Initialize `count' when required.
705 1999-11-07 Anthony Green <green@trip.cygnus.com>
707 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
710 1999-11-05 Tom Tromey <tromey@cygnus.com>
712 * java/lang/natThread.cc (destroy): Removed incorrect comment.
714 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
716 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
717 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
720 1999-11-05 Tom Tromey <tromey@cygnus.com>
722 * java/lang/natThread.cc (stop): Removed argument name.
724 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
725 `private'; now has default access.
726 * Makefile.in: Rebuilt.
727 * Makefile.am (java/lang/ThreadGroup.h): Removed.
729 1999-11-04 Tom Tromey <tromey@cygnus.com>
731 * java/lang/natClass.cc (method_cache_count): Removed.
732 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
733 (_Jv_AddMethodToCache): Don't loop.
735 * configure.in: Removed `qt' threads case.
736 * include/quick-threads.h: Removed.
737 * quick-threads.cc: Removed.
739 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
740 (_Jv_ThreadDestroy): Likewise.
741 * include/no-threads.h (_Jv_ThreadCancel): Removed.
742 (_Jv_ThreadDestroy): Likewise.
743 * include/posix-threads.h (struct _Jv_Thread_t): Removed
745 (_Jv_ThreadCancel): Removed decl.
746 (_Jv_ThreadDestroy): Removed.
747 * posix-threads.cc (_Jv_ThreadCancel): Removed.
748 (throw_cleanup): Removed.
749 (really_start): Don't push or pop cleanup.
750 (_Jv_ThreadInitData): Don't initialize `exception' field.
751 * java/lang/Thread.java (stop): Officially unimplemented.
752 * java/lang/natThread.cc (stop): Officially unimplemented.
754 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
756 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
759 1999-11-02 Tom Tromey <tromey@cygnus.com>
761 * boehm.cc: Don't include boehm-config.h.
763 1999-11-01 Tom Tromey <tromey@cygnus.com>
765 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
766 (sum_blocks): Removed.
767 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
769 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
771 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
773 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
774 * java/io/InputStreamReader (InputStreamReader): ditto.
776 1999-10-22 Tom Tromey <tromey@cygnus.com>
778 * Makefile.in: Rebuilt.
779 * Makefile.am (java/lang/ClassLoader.h): New target.
780 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
783 * include/java-props.h (_Jv_Compiler_Properties): Changed
785 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
786 * include/jvm.h (_Jv_GCSetInitialHeapSize,
787 _Jv_GCSetMaximumHeapSize): Declare.
788 (JvRunMain, _Jv_RunMain): Declare.
789 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
790 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
791 (_Jv_GCSetMaximumHeapSize): Likewise.
792 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
793 (_Jv_GCSetMaximumHeapSize): Likewise.
794 * prims.cc (parse_heap_size): New function.
795 (_Jv_SetInitialHeapSize): Likewise.
796 (_Jv_SetMaximumHeapSize): Likewise.
797 (_Jv_Compiler_Properties): New global.
798 * gij.cc (help): New function.
800 (heap_size): Likewise.
801 (heap_max_size): Likewise.
802 (main): Parse arguments. Set _Jv_Compiler_Properties.
803 Include <config.h>, <java-props.h>.
804 (_Jv_Compiler_Properties): Removed.
806 1999-10-18 Tom Tromey <tromey@cygnus.com>
808 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
810 (redirect): New static field.
811 * java/lang/ClassLoader.java (getSystemClassLoader): Now
813 (getVMClassLoader0): Removed.
814 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
816 (getSystemClassLoader): Implemented.
818 1999-10-16 Anthony Green <green@cygnus.com>
820 * java/lang/ClassLoader.java (getSystemResource): Use
821 getSystemClassLoader instead of ClassLoader.system.
822 (getSystemResourceAsStream): Ditto.
824 * java/lang/natClassLoader.cc (redirect): Make static and
825 remove #ifdef INTERPRETER so it is always defined.
826 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
827 returns a VMClassLoader.
829 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
830 PropertyResourceBundle if a properties file is found before a
831 ResourceBundle class.
833 1999-10-15 Tom Tromey <tromey@cygnus.com>
835 * gij.cc (main): Formatting fixes.
836 (_Jv_Compiler_Properties): Define.
837 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
839 (init_properties): Set properites from _Jv_Compiler_Properties.
840 * include/java-props.h (_Jv_Compiler_Properties,
841 _Jv_Environment_Properties): Declare.
843 * include/java-props.h: Added copyright.
845 1999-10-13 Anthony Green <green@cygnus.com>
847 * libtool-version: Catch up by incrementing current.
849 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
850 * configure, include/config.h.in: Rebuilt.
851 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
852 * configure.in: Added --disable-getenv-properties and new define
853 `DISABLE_GETENV_PROPERTIES'.
855 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
856 (next_property_key): New function.
857 (next_property_value): New function.
858 (process_gcj_properties): New function.
859 (JvRunMain): Call process_gcj_properties.
862 * java/lang/natSystem.cc (init_properties): Set properties defined
865 * include/java-props.h: New file.
867 * java/lang/natSystem.cc (init_properties): Add new properties to
868 conform with Java Product Versioning Specification.
870 1999-10-12 Tom Tromey <tromey@cygnus.com>
872 * configure: Rebuilt.
873 * configure.in: Fixed test for --disable-java-net.
875 1999-10-06 Tom Tromey <tromey@cygnus.com>
877 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
878 when building Canadian cross.
879 (NATIVE): Don't define when cross-compiling.
881 1999-10-04 Tom Tromey <tromey@cygnus.com>
883 * java/net/natPlainSocketImpl.cc: Don't include headers if
884 java.net is disabled.
886 * Makefile.in: Rebuilt.
887 * Makefile.am (ZINCS): Removed. This is defined in configure.in
888 when needed, and must be left empty when not needed.
890 1999-10-01 Anthony Green <green@cygnus.com>
892 * THANKS: Refreshed from htdocs version.
894 1999-10-01 Steve Chamberlain <sac@pobox.com>
896 * Makefile.in: Rebuilt.
897 * Makefile.am (ZINCS): Define
899 * configure: Rebuilt.
900 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
902 * java/lang/ieeefp.h: Add definitions for picoJava.
904 1999-10-01 Tom Tromey <tromey@cygnus.com>
906 * configure: Rebuilt.
907 * configure.in: Set classpath when invoking gcj. Use changequote
908 around sed invocation.
910 * java/net/natPlainSocketImpl.cc: Stub native functions if
911 DISABLE_JAVA_NET is defined.
912 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
913 typo in exception string.
914 (getTimeToLive): Likewise.
915 Stub native functions if DISABLE_JAVA_NET is defined.
916 * java/net/natInetAddress.cc: Stub native functions if
917 DISABLE_JAVA_NET is defined.
918 * configure.host: Disable java.net for mips-tx39.
919 * configure, include/config.h.in: Rebuilt.
920 * acconfig.h (DISABLE_JAVA_NET): Undefine.
921 * configure.in: Added --disable-java-net and new define
924 1999-09-30 Tom Tromey <tromey@cygnus.com>
926 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
928 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
932 1999-09-28 Tom Tromey <tromey@cygnus.com>
934 * configure: Rebuilt.
935 * configure.in (PROCESS): In POSIX case, only set if not already
937 * configure.host (PROCESS): Set in mips-tx39 case.
939 * aclocal.m4, configure: Rebuilt.
940 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
941 appropriate AC_PROG_ symbol.
943 1999-09-24 Tom Tromey <tromey@cygnus.com>
945 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
947 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
949 Fix for PR java.util/47:
950 * configure, include/config.h: Rebuilt.
951 * configure.in: Don't look for ctime or ctime_r.
952 * Makefile.in: Rebuilt.
953 * Makefile.am (nat_source_files): Don't mention natDate.cc.
954 * java/util/natDate.cc: Removed.
955 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
957 (getAvailableIDs): Rewrote.
958 (getTimeZone): Rewrote.
959 * java/util/Date.java (toGMTString): New method.
960 (toLocaleString): New method.
963 1999-09-23 Tom Tromey <tromey@cygnus.com>
965 * configure: Rebuilt.
966 * configure.in: Print message when checking to see if gcj can
967 handle -fuse-divide-subroutine.
969 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
971 * java/lang/FirstThread.java (run0): Renamed to `run'.
974 * prims.cc (main_init): New function.
975 (JvRunMain): Call it.
976 (_Jv_RunMain): Likewise.
978 (main_init): Ignore SIGPIPE. Fixes PR 51.
980 1999-09-22 Tom Tromey <tromey@cygnus.com>
982 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
984 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
986 * java/text/MessageFormat.java (MessageFormat(String)): Set the
988 * java/text/NumberFormat.java: Check that object is a Number. If
989 not, throw IllegialArgumentException.
991 1999-09-21 Tom Tromey <tromey@cygnus.com>
993 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
994 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
996 * include/posix-threads.h (_Jv_MutexDestroy): Use
998 (_Jv_MutexLock): Likewise.
999 (_Jv_MutexUnlock): Likewise.
1001 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
1002 previous patch; it too was incorrect.
1003 * java/io/PrintStream.java (PrintStream): Likewise.
1005 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1006 refer to `this' before calling superclass constructor.
1007 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1008 before calling superclass constructor.
1010 1999-09-20 Tom Tromey <tromey@cygnus.com>
1012 * configure: Rebuilt.
1013 * configure.in: Send output of `-fuse-divide-subroutine' test
1014 compilation to /dev/null.
1016 1999-09-14 Tom Tromey <tromey@cygnus.com>
1018 * include/java-insns.h: Turned constants into an enum. Added
1019 multiple-inclusion protection.
1021 1999-09-10 Tom Tromey <tromey@cygnus.com>
1023 * configure: Rebuilt.
1024 * configure.in: Build include/Makefile.
1025 * Makefile.in: Rebuilt.
1026 * Makefile.am (SUBDIRS): Added gcj and include.
1027 (install-data-local): New target.
1028 (extra_headers): New macro.
1029 * include/Makefile.in: New file.
1030 * include/Makefile.am: New file.
1032 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1033 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1035 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1036 * resolve.cc: Include config.h.
1037 * defineclass.cc: Include config.h.
1038 * include/java-interp.h: Don't include config.h.
1039 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1042 * gcj/javaprims.h: Regenerated namespace decls.
1043 * classes.pl (scan): Don't put `;' after closing brace.
1045 * Makefile.in: Rebuilt.
1046 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1047 * configure.in: Create gcj/Makefile.
1048 * gcj/Makefile.in: New file.
1049 * gcj/Makefile.am: New file.
1050 * java/lang/Object.h: Don't include any other headers.
1051 * gcj/array.h: Renamed from include/java-array.h.
1052 * gcj/field.h: Renamed from include/java-field.h.
1053 * gcj/method.h: Renamed from include/java-method.h.
1054 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1055 Updated all files to reflect new include structure.
1057 1999-09-09 Tom Tromey <tromey@cygnus.com>
1059 * configure: Rebuilt.
1060 * configure.in: Fixed typo; variable is THREADSPEC and not
1063 1999-09-08 Tom Tromey <tromey@cygnus.com>
1065 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1066 previous change and implemented a correct test in the __m_count
1069 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1072 1999-09-07 Tom Tromey <tromey@cygnus.com>
1074 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1075 code and don't set errno.
1077 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1078 not `r'. Changed `done_sleeping' to a `bool'.
1080 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1082 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1083 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1084 by another thread, rather than by the GC.
1085 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1086 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1087 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1090 1999-09-03 Tom Tromey <tromey@cygnus.com>
1092 * configure: Rebuilt.
1093 * configure.in: Check for fstat function.
1094 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1097 1999-09-02 Tom Tromey <tromey@cygnus.com>
1099 * include/java-array.h (jobjectArrayjchar): Removed unused
1102 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1103 _Jv_PrepareCompiledClass while holding class mutex.
1105 1999-09-01 Tom Tromey <tromey@cygnus.com>
1107 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1108 (_Jv_PthreadGetMutex): Use it.
1109 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1110 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1111 (_Jv_MutexLock): Likewise.
1112 (_Jv_MutexUnlock): Likewise.
1113 * include/config.h.in: Rebuilt.
1114 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1115 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1116 * configure: Rebuilt.
1117 * libgcj.spec.in: Don't mention INTERPSPEC.
1118 * configure.in (INTERPSPEC): Removed.
1119 Only run pthreads-related checks when using POSIX threads. Check
1120 for m_count and __m_count in mutex structure.
1122 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1124 * java/lang/natClass.cc: Fixed notification of threads
1125 when class initialization is complete.
1127 1999-09-01 Tom Tromey <tromey@cygnus.com>
1129 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1130 * resolve.cc: Removed constants defined by
1131 java.lang.reflect.Modifier.
1132 Include <java/lang/reflect/Modifier.h>.
1133 (_Jv_ResolvePoolEntry): Use values from Modifier.
1134 (_Jv_DetermineVTableIndex): Likewise.
1135 (_Jv_PrepareClass): Likewise.
1137 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1138 java.lang.reflect.Modifier.
1139 Include <java/lang/reflect/Modifier.h>.
1140 (checkExtends): Use values from Modifier.
1141 (checkImplements): Likewise.
1142 (handleField): Likewise.
1143 (handleConstantValueAttribute): Likewise.
1144 (handleFieldsEnd): Likewise.
1145 (handleMethod ): Likewise.
1146 (handleMethodsEnd): Likewise.
1147 (handleClassBegin): Likewise.
1148 * interpret.cc: Removed constants defined by
1149 java.lang.reflect.Modifier.
1150 (continue1): Use values from Modifier.
1151 * java/lang/natClassLoader.cc: Removed constants defined by
1152 java.lang.reflect.Modifier.
1154 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1155 JV_STATE_NOTHING, not `0'.
1156 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1158 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1159 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1161 (_Jv_PthreadGetMutex): New function.
1162 (_Jv_PthreadCheckMonitor): Use it.
1163 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1164 (_Jv_MutexLock): Update `count'.
1165 (_Jv_MutexUnlock): Likewise.
1166 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1169 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1171 * Makefile.am (.java.lo): Add rule.
1173 * Makefile.in: Rebuilt.
1175 1999-09-01 Tom Tromey <tromey@cygnus.com>
1177 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1178 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1180 (_Jv_CondNotify): Use it.
1181 (_Jv_CondNotifyAll): Likewise.
1183 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1185 1999-08-31 Tom Tromey <tromey@cygnus.com>
1187 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1190 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1192 * posix-threads.cc: Include <errno.h>.
1194 1999-08-23 Tom Tromey <tromey@cygnus.com>
1196 * boehm.cc: Undefine TRUE and FALSE.
1198 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1200 1999-08-21 Tom Tromey <tromey@cygnus.com>
1202 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1205 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1207 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1209 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1210 (HAVE_STRUCT_IP_MREQ): Added.
1211 * configure, include/config.h.in: Rebuilt.
1212 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1214 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1215 Disable if ip_mreq is not available.
1217 * configure.in: Check types ssize_t and in_addr_t.
1218 * acconfig.h: Undefine them.
1219 * configure, include/config.h.in: Rebuilt.
1221 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1222 function that detects the signature of getpwuid_r.
1223 (init_properties): Use it.
1224 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1227 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1229 * interpret.cc (continue1): Implement explicit dispatch table.
1230 insn_target: Explicit interpreter switch table.
1231 SAVE_PC: New macro, moves pc saving code into instructions that
1233 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1234 PC_REGISTER_ASM: New macro.
1235 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1236 opcode: Remove local variable.
1237 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1238 (POKEI): Use _Jv_word.
1239 (iinc): Use _Jv_word.
1240 (dupx): Change reference argument (sp) to pointer.
1243 * interpret.cc: Remove instruction timing instrumentation.
1245 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1246 comment. Don't use _Jv_ClassNameSamePackage.
1248 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1249 URLPathEntry, CacheEntry}: Removed.
1251 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1253 (.java.lo): Rule removed.
1255 * Makefile.in: Rebuilt.
1257 1999-08-19 Tom Tromey <tromey@cygnus.com>
1259 * java/lang/natThread.cc (class locker): New class.
1260 (join): Use a locker around _Jv_CondWait.
1263 1999-08-18 Tom Tromey <tromey@cygnus.com>
1265 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1266 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1268 1999-08-18 Tom Tromey <tromey@cygnus.com>
1270 * include/javaprims.h ("Java"): Regenerated namespace decls.
1272 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1274 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1275 from _Jv_InternClassStrings.
1277 * prims.cc (_Jv_RunMain): New function.
1278 (JvRunMain): Remove gij-support.
1280 * gij.cc (main): Use _Jv_RunMain.
1282 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1284 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1285 argument in temp variable.
1286 (continue1): For all op_x2y insns, use temp variable for
1287 intermediate value. Also remove some comments.
1289 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1290 (forName): Don't call _Jv_InitClass.
1292 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1294 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1296 * java/util/jar/JarInputStream.java: New file.
1298 * java/util/jar/JarEntry.java: New file.
1300 * java/util/jar/JarFile.java: New file.
1302 * java/net/URLClassLoader.java: New file.
1304 * java/net/JarURLConnection.java: New file.
1306 * gnu/gcj/protocol/jar/Handler.java: New file.
1308 * gnu/gcj/protocol/jar/Connection.java: New file.
1310 * java/security/SecureClassLoader.java: New file.
1312 * java/lang/ClassLoader.java (parent): New variable.
1313 (ClassLoader (ClassLoader)): new constructor.
1314 (findClass): New method.
1315 (loadClass): Add default 1.2 implementation.
1316 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1317 (readfully): Removed.
1319 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1320 (findSystemClass): New method.
1321 (VMClassLoader): Constructor rewritten.
1323 All other methods removed.
1325 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1326 to gnu::gcj::runtime::VMClassLoader.
1327 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1329 (VMClassLoader::findSystemClass): renamed from findBootClass.
1331 * Makefile.am: Add new files.
1332 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1334 * Makefile.in: Rebuilt.
1336 1999-08-17 Tom Tromey <tromey@cygnus.com>
1338 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1340 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1343 1999-08-16 Tom Tromey <tromey@cygnus.com>
1345 * configure: Rebuilt.
1346 * configure.in: Set DIVIDESPEC to empty string if compiler does
1347 not support -fuse-divide-subroutine.
1349 1999-08-14 Per Bothner <per@bothner.com>
1351 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1352 * java/lang/natClass.cc (initializeClass): Likewise.
1353 * java/lang/ClassLoader.java (resolveClass0): New static method.
1354 (resolveClass): Call resolveClass0.
1355 (findSystemClass): No longer static.
1357 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1359 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1361 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1363 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1366 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1368 * Makefile: Rebuilt.
1369 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1372 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1375 * configure: Rebuilt.
1376 * configure.in: Properly align --help output, fix capitalization
1378 * acinclude.m4: Likewise.
1380 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1382 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1384 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1385 (_Jv_callInterpretedMethod): Unused. Remove.
1386 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1388 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1389 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1390 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1391 * interpret.cc: use _Jv_word.
1392 * defineclass.cc: use_Jv_word.
1393 * resolve.cc: Use _Jv_word.
1394 (_Jv_ResolvePoolEntry): Return _Jv_word.
1395 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1396 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1398 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1401 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1403 * configure: Rebuilt.
1404 * configure.in (sched_yield): Try librt first, then libposix4.
1405 Add -lrt, -lposix4 to THREADSPEC.
1407 1999-08-08 Anthony Green <green@cygnus.com>
1409 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1411 1999-08-08 Anthony Green <green@cygnus.com>
1413 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1416 1999-08-08 Anthony Green <green@cygnus.com>
1420 * include/config.h.in: Rebuilt.
1421 * acconfig.h: Add INTERPRETER.
1423 * Makefile.in: Rebuilt.
1424 * Makefile.am (libffi_files): Identify the libffi object files for
1425 inclusion in libgcj.
1426 (LIBFFIINCS): Define.
1428 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1429 Dummy definition for configurations without an interpreter.
1431 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1432 java::lang::Boolean constructor.
1434 * include/java-interp.h: Always include java-cpool.h.
1436 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1437 when INTERPRETER not defined.
1439 * java/lang/Class.h (finalize): Define.
1441 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1442 IOException from File.getCanonicalPath.
1443 (getStream): Likewise.
1446 * THANKS: More thanks.
1448 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1450 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1452 (_Jv_PrepareClass): Allow non-abstract classes to
1453 have abstract subclasses.
1454 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1456 * interpret.cc (continue1/perform_invoke): Don't sign extend
1458 (continue1/lshl,lshr): Push long, not int.
1459 (continue1/ulshr): Use UINT64, not long long.
1460 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1462 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1463 * java/lang/FirstThread.java (run): Add top-level exception
1465 (run0): Renamed from run.
1467 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1469 * configure.in (--with-interpreter): Added.
1470 * include/config.h.in (INTERPRETER): Added.
1472 * java/lang/ClassLoader.java: File replaced.
1473 * java/lang/VMClassLoader.java: New file.
1474 * java/lang/natClassLoader.cc: New file.
1475 * gnu/gcj/runtime/MethodInvocation.java: New file.
1476 * gnu/gcj/util/path/SearchPath.java: New file.
1477 * gnu/gcj/util/path/PathEntry.java: New file.
1478 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1479 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1480 * gnu/gcj/util/path/URLPathEntry.java: New file.
1481 * gnu/gcj/util/path/CacheEntry.java: New file.
1482 * include/java-interp.h: New file.
1483 * include/java-cpool.h: New file.
1484 * include/java-insns.h: New file.
1485 * defineclass.cc: New file.
1486 * interpret.cc: New file.
1487 * resolve.cc: New file.
1489 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1490 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1491 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1493 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1494 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1496 (initializeClass): Use new JV_ prefixed names. Also, call
1497 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1499 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1500 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1501 JV_STATE_LINKED): New.
1502 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1503 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1504 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1505 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1506 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1507 _Jv_InterpMethodInvocation): New friends for interpreter.
1509 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1510 include/java-cpool.h and renamed with JV_ prefix.
1512 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1514 (_Jv_UnregisterClass): New decl.
1516 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1517 class loader argument.
1518 (_Jv_FindClass): Use class loader.
1520 * prims.cc (_Jv_makeUtf8Const): New function.
1521 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1522 (_Jv_NewPrimArray): Ditto.
1523 (_Jv_FindClassFromSignature): Ditto.
1524 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1525 * java/lang/reflect/natMethod.cc (getType): Ditto.
1527 * include/java-field.h (_Jv_Field::isRef): Make robust for
1528 non-resolved contexts.
1530 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1531 Also, don't mark class->next field.
1533 * java/lang/VirtualMachineError.java: Added FIXME note.
1535 * configure.in (INTERPSPEC): New spec.
1536 * libgcj.spec.in: Added INTERPSPEC.
1537 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1538 gnu/gcj/runtime/MethodInvocation.
1539 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1540 (ordinary_java_source_files): Added above mentioned java classes.
1542 * configure: Rebuilt.
1543 * Makefile.in: Rebuilt.
1545 1999-08-06 Tom Tromey <tromey@cygnus.com>
1547 * configure: Rebuilt.
1548 * configure.in: Look for sched_yield in -lrt.
1550 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1552 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1553 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1554 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1556 (toString): Print correctly when `country' is empty.
1558 1999-08-04 Per Bothner <per@bothner.com>
1560 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1562 1999-08-02 Tom Tromey <tromey@cygnus.com>
1564 * aclocal.m4, configure: Rebuilt for new libtool.
1566 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1568 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1569 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1570 * java/net/ServerSocket.java: Define ANY_IF.
1571 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1572 all network interfaces.
1573 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1574 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1576 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1578 * java/io/natFile.cc (performMkdir): Remove FIXME.
1579 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1581 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1583 * configure.in: Check for bstring.h.
1584 * configure, include/config.h.in: Rebuilt.
1585 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1586 * java/net/natPlainSocketImpl.cc: Likewise.
1588 1999-07-31 Tom Tromey <tromey@cygnus.com>
1593 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1595 * configure.in: Check for struct hostent_data and need for
1596 -D_REENTRANT for gethostbyname_r declaration.
1597 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1598 (lookup): Use hostent_data for fixed_buffer.
1599 * configure, include/config.h.in: Rebuilt.
1601 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1603 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1604 available. Don't cast memmove args to (void*).
1605 * configure.in: Do not abort if memmove is not available.
1607 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1609 * java/lang/natString.cc (substring): optimize where substring is
1611 * java/io/File.java (getName): don't return separator with file name.
1612 * java/io/natFile.cc (attr): fix overflow.
1614 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1616 * mauve-libgcj: Disable Object Serialization tests.
1618 1999-07-20 Warren Levy <warrenl@cygnus.com>
1620 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1621 Default to using PlainDatagramSocketImpl.
1622 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1624 1999-07-19 Tom Tromey <tromey@cygnus.com>
1626 * include/stamp-h.in: New file.
1628 1999-07-12 Tom Tromey <tromey@cygnus.com>
1630 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1633 1999-07-07 Andrew Haley <aph@cygnus.com>
1635 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1636 bytes to make it point after the instruction where the trap
1638 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1640 1999-07-07 Tom Tromey <tromey@cygnus.com>
1642 * mauve-libgcj: Explicitly enable formerly disabled java.text
1645 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1648 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1650 * java/net/URL.java (equals): Compare strings using String.equals.
1651 * java/net/URL.java (sameFile): Ditto.
1653 1999-07-02 Warren Levy <warrenl@cygnus.com>
1655 * configure: Rebuilt.
1656 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1657 * include/config.h.in: Rebuilt.
1658 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1659 (mcastGrp): Updated FIXME comments.
1660 (setOption): Fixed typo.
1661 (getOption):Implemented IP_MULTICAST_IF.
1663 1999-07-02 Warren Levy <warrenl@cygnus.com>
1665 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1666 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1667 (getTimeToLive): Implemented.
1668 (setOption): Implemented IP_MULTICAST_IF.
1670 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1672 * java/lang/String.java (toString): Check for this == null and throw
1673 NullPointerException.
1675 1999-07-01 Warren Levy <warrenl@cygnus.com>
1677 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1678 to count and revised comments to match.
1679 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1680 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1681 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1682 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1683 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1684 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1686 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1688 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1689 properly as count rather than outlength.
1690 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1691 output on overflow rather than buffer fill.
1692 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1693 if markPos is 0 and there is still room in the buffer.
1695 1999-07-01 Andrew Haley <aph@cygnus.com>
1697 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1698 This is a workaround for a bug in glibc's pthreads package which
1699 doesn't deliver any sigcontext information to a signal handler.
1701 1999-06-24 Tom Tromey <tromey@cygnus.com>
1703 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1704 * java/lang/fdlibm.h (HUGE): Conditionally define.
1706 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1708 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1709 * java/lang/e_log.c: Don't use __uint32_t.
1711 1999-05-27 Eric Christopher <echristo@cygnus.com>
1713 * configure: Rebuilt
1714 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1715 * acconfig.h: Rebuilt
1716 * include/config.h.in: Rebuilt
1718 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1719 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1720 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1721 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1722 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1723 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1724 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1725 and namespace collision with __uint32_t
1727 1999-06-23 Tom Tromey <tromey@cygnus.com>
1729 * java/util/zip/InflaterInputStream.java (read): Throw
1730 ZipException if inflater throws a DataFormatException.
1732 1999-06-23 Warren Levy <warrenl@cygnus.com>
1734 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1735 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1736 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1737 is not final per JDK.
1738 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1740 * java/util/zip/DataFormatException.java: Class extends Exception.
1741 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1742 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1743 * java/util/zip/ZipInputStream.java: ditto.
1744 (closeEntry): Changed method name to match JDK spec.
1746 1999-06-21 Tom Tromey <tromey@cygnus.com>
1748 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1751 * Makefile.in: Rebuilt.
1752 * Makefile.am (toolexeclibdir): Define as libdir when
1754 * configure: Rebuilt.
1755 * configure.in (USE_LIBDIR): New conditional.
1757 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1759 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1760 hostname in returned InetAddress objects.
1761 (getLocalHostname): Fix typo.
1762 * java/net/InetAddress.java (getByName): Set hostname on return
1764 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1767 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1769 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1770 interfaces if host==NULL.
1771 (accept): Throw message with InterruptedIOException.
1772 (getOption): Cache localAddress.
1773 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1774 'address' for DatagramSocket.
1775 (setTimeToLive): Fix compiler warnings.
1776 (getOption): Cache localAddress.
1777 * java/net/Socket.java (getLocalAddress): Don't need local
1778 InetAddress object. Add FIXME comment about calling checkConnect().
1779 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1780 connection queue to 50 as per JDK 1.2 docs.
1781 (ServerSocket(int,int)): Listen on all network interfaces by
1782 default, per JDK 1.2 docs.
1783 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1784 Add localAddress caching.
1786 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1788 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1790 (write(byte[],int,int)): ditto.
1792 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1794 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1796 1999-06-11 Warren Levy <warrenl@cygnus.com>
1798 * mauve-libgcj: Activated java.net Mauve tests.
1800 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1802 * java/net/natInetAddress.cc (aton): Fix typos.
1803 (lookup): Use a bigger buffer size for gethostbyname_r on all
1804 versions of glibc. Updated FIXME comment explaining this.
1805 Modified while loops to not set herr = ERANGE to work around glibc
1806 problems. Use user specified hostname in InetAddress result when
1807 available (consistent with JDK).
1809 1999-06-10 Warren Levy <warrenl@cygnus.com>
1811 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1812 Throw FileNotFoundException instead of IOException.
1814 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1816 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1817 in static field name.
1818 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1819 throughout rather than ParseException.
1821 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1823 * java/lang/Runtime.java (exec): Convert prog name and arguments
1825 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1826 environment array conversion. Preserve current environment if envp
1827 not passed. Preserve PATH unless explicitly specified.
1828 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1829 followed by EOF. Set a flag when a line is terminated by '\r' and
1830 ignore following '\n' if set.
1832 1999-06-02 Warren Levy <warrenl@cygnus.com>
1834 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1835 Ignore context if spec is an absolute URL. Fix braindead
1837 (hashCode): Use JDK 1.2 style algorithm.
1838 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1839 context URL properly.
1841 1999-05-30 Anthony Green <green@cygnus.com>
1843 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1844 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1846 1999-05-28 Warren Levy <warrenl@cygnus.com>
1848 * java/net/DatagramSocket.java (laddr): Removed.
1849 (DatagramSocket): Removed attempts to get or set laddr if null.
1850 (getLocalAddress): Reimplemented per spec.
1851 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1853 (joinGroup): Throw NullPointerException if any argument is null.
1854 (leaveGroup): ditto.
1855 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1856 * java/net/PlainSocketImpl.java (timeout): Added.
1857 (getInputStream): Added FIXME comment on how to support timeouts
1859 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1860 * java/net/Socket.java: Added FIXME comments to identify
1861 conflicting specs between the JCL and JDK 1.2 documents.
1862 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1863 if host is null. Get localport value resolved by kernel if bind
1865 (receive): Implemented support for timeouts in UDP.
1866 (setOption): Implemented based on natPlainSocketImpl version.
1868 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1869 resolved by kernel if bind lport is 0.
1870 (connect): Get localport value resolved by kernel if bind wasn't
1871 done to set localport.
1872 (accept): Implemented support for timeouts for ServerSocket.
1873 (setOption): Save value for SO_TIMEOUT.
1874 (getOption): Return timeout for SO_TIMEOUT.
1876 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1878 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1879 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1880 (setOption): Made abstract.
1881 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1882 to avoid cpp conflicts in native code.
1883 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1884 cpp conflicts in native code.
1885 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1886 * java/net/Socket.java (getLocalAddress): Implemented.
1887 (setTcpNoDelay): Implemented.
1888 (getTcpNoDelay): Implemented.
1889 (setSoLinger): Implemented.
1890 (getSoLinger): Implemented.
1891 (getSoTimeout): Verify class type.
1892 (setSendBufferSize): Implemented.
1893 (getSendBufferSize): Implemented.
1894 (setReceiveBufferSize): Implemented.
1895 (getReceiveBufferSize): Implemented.
1896 (toString): Prepended "Socket".
1897 * java/net/SocketImpl.java (toString): Rewritten.
1898 (getOption): Made abstract.
1899 (setOption): Made abstract.
1900 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1901 (setOption): Implemented.
1902 (getOption): Implemented.
1904 1999-05-26 Warren Levy <warrenl@cygnus.com>
1906 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1907 address when null. Set SO_REUSEADDR for multicasts.
1908 (getSoTimeout): Implemented.
1909 (setSoTimeout): Implemented.
1910 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1911 * java/net/MulticastSocket.java (getInterface): Implemented.
1912 (setInterface): Implemented.
1913 (setTimeToLive): Check for invalid ttl.
1914 (joinGroup): Verify multicast address and security.
1915 (leaveGroup): Verify multicast address and security.
1916 (send): Implemented.
1917 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1923 (getTTL): Implemented as non-native.
1927 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1928 (getSoTimeout): Implemented.
1929 (setSocketFactory): Made synchronized.
1930 * java/net/Socket.java (setSoTimeout): Implemented.
1931 (getSoTimeout): Implemented.
1932 (close): Made synchronized.
1933 (setSocketImplFactory): Made synchronized.
1934 * java/net/SocketImpl.java: Implement SocketOptions interface.
1935 * java/net/natInetAddress.cc: Corrected module name at top of file.
1936 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1937 (bind): Added FIXME.
1938 (peek): Implemented.
1944 (setOption): Implemented for SO_REUSEADDR.
1945 (getOption): Implemented for SO_REUSEADDR.
1947 1999-05-24 Tom Tromey <tromey@cygnus.com>
1949 * java/util/ResourceBundle.java (getBundle): Throw
1950 NullPointerException if baseName is null.
1952 1999-05-22 Tom Tromey <tromey@cygnus.com>
1954 * java/util/zip/ZipInputStream.java (fill): New method.
1955 (compressed_len): New instance variable.
1956 (getNextStream): Set it.
1957 (read): Reset inflater on EOF. Only read via `super' if entry is
1959 (skip): Only skip via `super' if entry is deflated.
1960 * java/util/zip/Deflater.java (last_input_count): Removed.
1961 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1963 (needsInput): Don't use last_input_count.
1964 (setInput): Don't set last_input_count.
1965 * java/util/zip/natInflater.cc (getRemaining): Return correct
1967 (inflate): Return 0 if input array is length 0.
1968 (setInput): Don't set last_input_count.
1969 * java/util/zip/Inflater.java (last_input_count): Removed.
1971 1999-05-21 Tom Tromey <tromey@cygnus.com>
1973 * Makefile.in: Rebuilt.
1974 * Makefile.am (INCLUDES): Added $(ZINCS).
1975 * configure: Rebuilt.
1976 * configure.in (ZINCS): New subst.
1978 1999-05-21 Andrew Haley <aph@cygnus.com>
1980 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1981 to signal options to allow the same exceptions to be rethrown
1984 1999-05-20 Andrew Haley <aph@cygnus.com>
1986 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1988 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1989 (INIT_FPE): Exception string made more informative.
1990 * include/sparc-signal.h (INIT_FPE): Exception string made more
1992 * testsuite/libjava.lang/Divide_1.java: New file.
1993 * testsuite/libjava.lang/Divide_1.out: New file.
1995 1999-05-19 Tom Tromey <tromey@cygnus.com>
1997 * aclocal.m4, configure: Rebuilt.
1998 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
2000 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
2003 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2005 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2007 (update): Fail in default case. Always initialize `strat'.
2009 * mauve-libgcj: Enable java.util.zip.
2011 1999-05-18 Warren Levy <warrenl@cygnus.com>
2013 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2014 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2015 PlainDatagramSocketImpl.java, and SocketOptions.java.
2016 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2017 * Makefile.in: Rebuilt.
2019 * java/net/DatagramPacket.java: New file.
2020 * java/net/DatagramSocket.java: New file.
2021 * java/net/DatagramSocketImpl.java: New file.
2022 * java/net/MulticastSocket.java: New file.
2023 * java/net/PlainDatagramSocketImpl.java: New file.
2024 * java/net/SocketOptions.java: New file.
2025 * java/net/natPlainDatagramSocketImpl.cc: New file.
2027 1999-05-18 Tom Tromey <tromey@cygnus.com>
2029 * java/util/zip/ZipOutputStream.java (level): Initial value is
2030 Deflater.DEFAULT_COMPRESSION.
2031 (close): New method.
2032 (closeEntry): Likewise.
2034 (put_version): Likewise.
2035 (write_entry): Likewise.
2036 (put2, put4): Now return `int'.
2037 (comment): Default to empty string.
2038 (bytes_written): New instance variable.
2040 * java/util/zip/ZipEntry.java (setComment): Limit length of
2042 (setCrc): Check CRC validity.
2043 (setExtra): Check argument validity.
2044 (setMethod): Likewise.
2045 (setSize): Likewise.
2046 (ZipEntry): Likewise.
2047 * include/javaprims.h: Updated namespace declarations.
2048 * Makefile.in: Rebuilt.
2049 * Makefile.am (ordinary_java_source_files): Mention new files.
2050 (nat_source_files): Likewise.
2051 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2054 (getInputStream): Handle compressed entries.
2055 * java/util/zip/GZIPOutputStream.java: New file.
2056 * java/util/zip/GZIPInputStream.java: New file.
2057 * java/util/zip/DataFormatException.java: New file.
2058 * java/util/zip/CheckedInputStream.java: New file.
2059 * java/util/zip/CheckedOutputStream.java: New file.
2060 * java/util/zip/InflaterInputStream.java: Implemented.
2061 * java/util/zip/natInflater.cc: New file.
2062 * java/util/zip/Deflater.java: Implemented.
2063 * java/util/zip/natDeflater.cc: New file.
2064 * java/util/zip/DeflaterOutputStream.java: Implemented.
2066 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2067 ZipException, not IOException.
2068 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2071 1999-05-17 Tom Tromey <tromey@cygnus.com>
2073 * java/lang/natSystem.cc (init_properties): URL now points to
2076 1999-05-12 Per Bothner <bothner@cygnus.com>
2078 * java/util/Calendar.java (set): First call computeFields if needed.
2079 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2081 1999-05-12 Tom Tromey <tromey@cygnus.com>
2083 * configure: Rebuilt.
2084 * configure.in: Look for -ldl when using the Boehm collector.
2085 Look for sched_yield in -lposix4.
2087 1999-05-12 Per Bothner <bothner@cygnus.com>
2089 * java/io/File.java (mkdirs): Handle a null parent directory.
2091 1999-05-12 Tom Tromey <tromey@cygnus.com>
2093 * include/javaprims.h: Updated namespace declarations.
2094 * classes.pl (scan): Uniquify class list.
2095 * Makefile.in, configure: Rebuilt.
2096 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2097 (built_java_source_files): New macro.
2098 (nat_headers): Added built_java_source_files.
2099 (javao_files): Likewise.
2100 (EXTRA_libgcj_la_SOURCES): Likewise.
2101 (libgcj.zip): Create built class files.
2102 ($(built_java_source_files:.java=.class)): New target.
2103 (jv_convert_LDADD): Added -L$(here)/.libs.
2104 * configure.in: Create links for ConcreteProcess.java and
2105 natConcreteProcess.cc.
2106 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2107 * java/lang/natEcosProcess.cc: New file.
2108 * java/lang/EcosProcess.java: New file.
2109 * java/lang/PosixProcess.java: New file.
2110 * java/lang/natPosixProcess.cc: New file.
2112 1999-05-12 Warren Levy <warrenl@cygnus.com>
2114 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2115 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2116 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2117 (connect): Throw ConnectException.
2119 1999-05-11 Tom Tromey <tromey@cygnus.com>
2121 * Makefile.in: Rebuilt.
2122 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2123 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2126 * Makefile.in: Rebuilt.
2127 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2128 and it causes problems with libtool.
2130 * Makefile.in, configure: Rebuilt.
2131 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2132 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2133 (jv_convert_DEPENDENCIES): Added ZDEPS.
2134 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2136 (THREADSPEC): Added `-L' to point to qthreads build directory.
2140 * configure, Makefile.in: Rebuilt.
2141 * Makefile.am (toolexeclib_DATA): New macro.
2142 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2143 Recognize --with-system-zlib.
2144 (GCSPEC): New subst.
2145 (THREADSPEC): New subst.
2146 (SYSTEMSPEC): New subst.
2147 (ZLIBSPEC): New subst.
2148 * libgcj.spec.in: New file.
2150 1999-05-10 Tom Tromey <tromey@cygnus.com>
2152 * java/io/InputStreamReader.java (read): If length is 0, return
2153 0. Reset `wpos' and `wcount' when buffer has been filled and
2156 * java/util/Properties.java (save): Removed `FIXME' comment.
2157 (load): Invalid characters in \u now treated as terminators.
2158 Make sure to append character resulting from `\' handling.
2159 Cast to `char' when appending to key or value.
2160 (skip_ws): Inverted test for whitespace.
2162 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2164 (readLine): Likewise.
2165 (readFully): Implemented.
2167 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2169 * java/awt/natToolkit.cc: Added copyright header.
2170 * java/util/zip/InflaterInputStream.java: Added copyright header.
2172 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2174 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2176 (getNextStream): Likewise.
2178 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2180 (getBundle): Don't explicitly throw null pointer exception.
2182 * gnu/gcj/RawData.java: Added copyright header.
2184 * include/jni.h (_Jv_va_list): Always define as va_list.
2186 1999-05-9 Anthony Green <green@cygnus.com>
2188 * java/text/DateFormat.java (computeInstance): Separate time
2190 (getDateTimeInstance): Ditto.
2191 (getDateTimeInstance(int,int)): New method.
2193 * Makefile.in: Rebuilt.
2194 * Makefile.am (ordinary_java_source_files): Add new classes.
2196 * java/util/PropertyResourceBundle.java: New file.
2197 * gnu/gcj/util/EnumerationChain.java: New file.
2199 1999-05-07 Tom Tromey <tromey@cygnus.com>
2201 * acconfig.h (GCJVERSION): New undef.
2202 * java/lang/natSystem.cc (init_properties): Define java.version,
2203 java.class.version, os.name, os.arch, os.version.
2204 Include <sys/utsname.h> if required.
2205 * configure: Rebuilt.
2206 * configure.in: Compute and define GCJVERSION.
2208 * java/lang/natSystem.cc (default_file_encoding): Now static.
2210 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2212 * libtool-version: New file.
2213 * Makefile.in: Rebuilt.
2214 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2217 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2218 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2221 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2222 (we pick those up already).
2224 1999-05-05 Per Bothner <bothner@cygnus.com>
2226 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2227 stub classes. (This is enough to get Kawa to compile against libgcj.)
2229 * gnu/gcj/RawData.java: New class.
2230 * doc/cni.sgml: Document RawData.
2232 * java/util/zip/InflaterInputStream.java: New stub class.
2233 * java/util/zip/ZipInputStream.java: New class. Partly works.
2234 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2235 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2236 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2237 * java/util/zip/ZipOutputStream.java: Start implementation.
2239 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2240 (default_file_encoding): New global, initial value is above macro.
2241 (init_properties): Default file.encoding to default_file_encoding.
2243 * Makefile.am: Add new classes.
2245 1999-05-05 Tom Tromey <tromey@cygnus.com>
2247 * Makefile.in: Rebuilt.
2248 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2249 (clean-local): New target
2251 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2252 (load, loadLibrary): Now native.
2254 * java/lang/Runtime.java (load, loadLibrary): Now native.
2255 (init): New native method.
2256 (Runtime): Use init.
2257 * prims.cc: Include <ltdl.h> if required.
2258 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2260 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2262 * configure.in: Switch from irix threads to posix threads
2263 * configure: Regenerate.
2265 1999-04-30 Tom Tromey <tromey@cygnus.com>
2267 * Makefile.in: Rebuilt.
2268 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2270 1999-04-29 Tom Tromey <tromey@cygnus.com>
2272 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2275 * java/util/Locale.java (Locale(String,String)): Implement in
2276 terms of 3-argument version; variant now defaults to empty
2278 (toString): Assume variant is not null.
2279 (equals): Assume all strings are not null.
2280 (Locale): Throw NullPointerException if any argument is null.
2282 * java/util/ResourceBundle.java (getBundle): Don't try the base
2283 name; now implicit in partialGetBundle call.
2284 (trySomeGetBundle): Search for parent bundles and call setParent
2286 (partialGetBundle): Added `langStop' argument. Use
2287 `Locale.toString' to compute bundleName.
2288 (resource_cache): New static field.
2289 (partialGetBundle): Cache the returned resource bundle. Now
2292 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2295 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2296 * java/text/natCollator.cc (decomposeCharacter): `base' now
2298 * Makefile.in: Rebuilt.
2299 * Makefile.am (ordinary_java_source_files): Added
2300 CollationElementIterator, CollationKey, Collator,
2302 (nat_source_files): Added natCollator.cc.
2303 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2304 (compare): Pass `this' to CollationElementIterator constructor.
2305 (getCollationElementIterator): Likewise.
2306 (ceiNext): Fix off-by-one error when finding initial substring.
2307 (next): Correctly mask off bits when computing return value.
2308 Fixed return values when one string is shorter than the other.
2309 * java/text/CollationElementIterator.java (collator): New field.
2310 (CollationElementIterator): Added collator argument.
2311 (next): Call ceiNext on collator object.
2313 1999-04-26 Tom Tromey <tromey@cygnus.com>
2315 * natCollator.cc: New file.
2317 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2318 (GregorianCalendar): Use it in all constructors.
2319 * java/util/Calendar.java (Calendar): Changed argument name to
2320 `zone' to match code.
2322 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2323 * java/text/CollationKey.java: New file.
2324 * java/text/CollationElementIterator.java: New file.
2325 * java/text/Collator.java: New file.
2326 * java/text/RuleBasedCollator.java: New file.
2328 * Makefile.in: Rebuilt.
2329 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2330 (jv_convert_LDADD): Explicltly add -lm -lc.
2332 1999-04-26 Tom Tromey <tromey@cygnus.com>
2334 * configure, Makefile.in: Rebuilt.
2335 * configure.in: Added AM_PROG_LIBTOOL.
2336 (GCOBJS): Use `.lo' form of files.
2337 (THREADOBJS): Likewise.
2338 (GCDEPS): Use `.la' form of library.
2339 (GCLIBS): Set to be the same as GCDEPS.
2340 (THREADDEPS): Use `.la' form of library.
2341 (THREADLIBS): Set to be the same as THREADDEPS.
2342 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2343 toolexeclib_LIBRARIES.
2344 (libgcj_la_SOURCES): Renamed for libtoolization.
2345 (EXTRA_libgcj_la_SOURCES): Likewise.
2346 (libgcj_la_DEPENDENCIES): Likewise.
2347 (libgcj_la_LIBADD): Likewise.
2348 ($(nat_files)): Use LTCXXCOMPILE.
2349 ($(c_files)): Use LTCOMPILE.
2350 (GCJCOMPILE): New macro.
2352 (.java.o): Likewise.
2353 ($(javao_files)): Likewise.
2354 (jv_convert_LINK): Use LIBTOOL.
2355 (nat_files): Use `.lo' files.
2356 (c_files): Likewise.
2357 (javao_files): Likewise.
2358 (.class.lo): Renamed.
2359 (.java.lo): Likewise.
2360 ($(nat_files)): Depend on %.lo.
2361 ($(c_files)): Likewise.
2362 ($(javao_files)): Likewise.
2363 (jv_convert_LDADD): Link against .lo files.
2364 (jv_convert_DEPENDENCIES): Depend on .lo files.
2365 (maintainer-check): Depend on libgcj.la, but examine .a file.
2366 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2367 (libgcj_la_LDFLAGS): New macro.
2369 1999-04-23 Warren Levy <warrenl@cygnus.com>
2371 * Makefile.am: Added URLDecoder and URLEncoder.
2372 * Makefile.in: Rebuilt.
2374 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2375 setSocketImplFactory to match spec.
2376 * java/net/Socket.java (getSoLinger): Changed return type to
2379 * java/net/URLDecoder.java: New file.
2380 * java/net/URLEncoder.java: New file.
2382 1999-04-21 Tom Tromey <tromey@cygnus.com>
2384 * java/lang/natString.cc (getBytes): Reverted earlier change and
2385 applied correct fix from Per Bothner.
2387 * java/lang/String.java: Don't throw
2388 UnsupportedEncodingException.
2390 * java/lang/natString.cc (getBytes): Correctly size result
2391 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2393 1999-04-20 Andrew Haley <aph@cygnus.com>
2395 * include/sparc-signal.h: new file.
2396 * configure.in: include/sparc-signal.h added.
2397 * configure: regenerated.
2398 * prims.cc (JvRunMain): signal handling code rewritten to be more
2400 (catch_segv): ditto.
2402 * include/i386-signal.h: reorganized.
2403 * include/default-signal.h: reorganized.
2405 1999-04-19 Tom Tromey <tromey@cygnus.com>
2407 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2408 once. From Anthony Green.
2410 1999-04-19 Andrew Haley <aph@cygnus.com>
2412 * Makefile.in: Processed with new automake.
2414 1999-04-19 Tom Tromey <tromey@cygnus.com>
2416 * include/javaprims.h: Removed security namespace.
2418 1999-04-20 Anthony Green <green@cygnus.com>
2420 * java/io/PrintStream.java (println): Remove extra println.
2422 1999-04-19 Anthony Green <green@cygnus.com>
2424 * Makefile.in: Rebuilt.
2425 * Makefile.am (ordinary_java_source_files): Add new security files.
2427 * java/security/NoSuchAlgorithmException.java,
2428 java/security/MessageDigest.java: New files.
2430 * include/javaprims.h: Add security namespace.
2432 1999-04-16 Per Bothner <bothner@cygnus.com>
2434 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2435 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2436 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2437 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2438 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2439 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2440 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2441 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2442 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2443 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2444 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2445 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2446 * Makefile.am: Various changes for new files and conversions.
2448 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2449 New overloading, allows greater efficiency.
2450 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2451 New overloading (for efficiency - avoids copying).
2453 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2454 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2456 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2457 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2458 (writeChars): Don't be quite so eager to flush.
2459 * java/io/PrintStream.java: Rewrite. Now more similar to
2460 OutputStreamWriter, using explicit UnicodeToBytes converter.
2461 Also, autoflush does not need to flush so often.
2462 * java/lang/natString.cc (getBytes): More efficient algorithm.
2463 (init(jbyteArray,jint,jint,jstring)): More efficient.
2465 1999-04-15 Warren Levy <warrenl@cygnus.com>
2467 * Makefile.am (ordinary_java_source_files): Added new Connection
2468 and Handler classes in gnu.gcj.protocol.file package.
2469 * Makefile.in: Rebuilt.
2471 * gnu/gcj/protocol/file/Connection.java: New file.
2472 * gnu/gcj/protocol/file/Handler.java: New file.
2473 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2474 if doInput allows input.
2475 (getOutputStream): Check if doOutput allows output.
2476 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2478 1999-04-14 Tom Tromey <tromey@cygnus.com>
2480 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2481 buffer larger to work around bug.
2482 From Bryce McKinlay <bryce@albatross.co.nz>.
2484 1999-04-14 Andrew Haley <aph@cygnus.com>
2486 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2487 NaNs are always converted to the same long value.
2488 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2491 1999-04-13 Tom Tromey <tromey@cygnus.com>
2493 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2494 instead switch on actual element type.
2496 * Makefile.in: Rebuilt.
2497 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2499 1999-04-13 Andrew Haley <aph@cygnus.com>
2501 * include/i386-signal.h, include/default-signal.h: New files.
2502 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2504 (catch_fpe): New function.
2505 * configure.in: Make link to appropriate include/java-signal.h.
2506 * configure: Rebuilt.
2507 * Makefile.am: include/java-signal.h added to dependency list.
2508 * Makefile.in: Rebuilt.
2510 1999-04-12 Urban Widmark <urban@svenskatest.se>
2512 * java/io/DataInputStream.java (readLine): Corrected handling of
2513 empty lines, from null to "".
2515 1999-04-12 Tom Tromey <tromey@cygnus.com>
2517 * Makefile.in: Rebuilt.
2518 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2520 * java/lang/natSystem.cc (SystemClass): New define.
2521 (init_properties): Synchronize.
2523 1999-04-08 Geoff Berry <gcb@gnu.org>
2525 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2526 * natPlainSocketImpl.cc (accept): Add missing else if check
2529 1999-04-08 Tom Tromey <tromey@cygnus.com>
2531 * java/lang/Long.java (parseLong): Corrected overflow detection
2533 * java/lang/Integer.java (parseInt): Corrected overflow detection
2536 * java/io/PrintStream.java (print): Handle null string argument.
2537 (println): Likewise.
2539 1999-04-07 Warren Levy <warrenl@cygnus.com>
2541 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2542 Set count to 0 when InputStreamReader returns -1 for EOF.
2544 1999-04-07 Tom Tromey <tromey@cygnus.com>
2546 * mauve-libgcj: Omit java.text.Collator,
2547 java.text.RuleBasedCollator.
2549 1999-04-06 Tom Tromey <tromey@cygnus.com>
2551 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2552 IOException from getHttpHeaders().
2553 (getHeaderFieldKey): Likewise.
2555 * include/javaprims.h: Regenerated declarations.
2557 * Makefile.in: Rebuilt.
2558 * Makefile.am (ordinary_java_source_files): Updated for removed
2561 1999-04-06 Per Bothner <bothner@cygnus.com>
2563 * java/util/zip/Adler32.java: New class.
2564 * java/util/zip/CRC32.java: Add working method bodies.
2565 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2566 * Makefile.in: Re-generate.
2568 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2570 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2571 from version in removed www hierarchy.
2572 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2573 version in removed www hierarchy.
2575 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2576 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2577 * gnu/gcj/www/protocol/http: Removed dir.
2578 * gnu/gcj/www/protocol: Removed dir.
2579 * gnu/gcj/www: Removed dir.
2581 * java/net/HttpURLConnection.java: Revised comments to indicate
2582 missing JDK 1.2 methods.
2584 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2585 hierarchy rather than the gnu/gcj/www/protocol one.
2586 * java/net/URLConnection.java: Updated status comments.
2587 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2588 the gnu/gcj/www/content one.
2590 1999-04-06 Per Bothner <bothner@cygnus.com>
2592 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2593 The gen-from-JIS program is in $(CONVERT_DIR).
2595 1999-04-06 Tom Tromey <tromey@cygnus.com>
2597 * mauve-libgcj: Renamed from mauve-libjava.
2599 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2601 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2602 (getResponseMessage): Implemented.
2603 (getResponseVals): New private method.
2605 * java/net/URLConnection.java (getContent): Implemented.
2606 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2608 1999-04-05 Tom Tromey <tromey@cygnus.com>
2610 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2611 (jv_convert_SOURCES): Renamed.
2612 (EXTRA_jv_convert_SOURCES): Likewise.
2613 (jv_convert_LDFLAGS): Likewise.
2614 (jv_convert_LINK): Likewise.
2615 (jv_convert_LDADD): Likewise.
2616 (jv_convert_DEPENDENCIES): Likewise.
2618 * Makefile.in: Rebuilt.
2619 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2622 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2624 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2625 method for comparison.
2627 * java/net/URLConnection.java (getContentLength): Implemented.
2628 (getContentType): Implemented.
2629 (getContentEncoding): Implemented.
2630 (getExpiration): Implemented.
2631 (getDate): Implemented.
2632 (getLastModified): Implemented.
2633 (getHeaderFieldInt): Implemented.
2634 (getHeaderFieldDate): Implemented.
2636 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2638 * java/net/URLConnection.java (toString): Implemented.
2639 (setContentHandlerFactory): Implemented.
2640 (setContentHandler): Wrote new private helper method.
2642 1999-04-01 Tom Tromey <tromey@cygnus.com>
2644 * Makefile.in: Rebuilt.
2645 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2646 of 1999-03-31; we always want to build all the .class files.
2647 Depend on java_source_files, not libgcj.zip.
2648 (nat_headers): Define in terms of ordinary_java_source_files.
2650 1999-03-31 Tom Tromey <tromey@cygnus.com>
2652 * Makefile.in: Rebuilt.
2653 * Makefile.am (special_java_source_files): New macro.
2654 (java_source_files): Use it.
2655 (ordinary_java_source_files): New macro.
2656 (java_source_files): Use it.
2657 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2658 creating headers for those files with hand-maintained headers.
2660 * include/javaprims.h: Regenerated namespace declarations.
2661 * classes.pl (scan): Include [0-9] in regexp for matching class
2662 names; for java.util.zip.CRC32.
2664 * Makefile.in: Rebuilt.
2665 * Makefile.am (nat_headers): Redefined to generate all possible
2668 * java/util/zip/ZipException.java: In package java.util.zip, not
2671 1999-03-30 Tom Tromey <tromey@cygnus.com>
2673 * configure: Rebuilt.
2674 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2675 eh-common.h when not building in tree with gcc.
2677 * Makefile.in: Rebuilt.
2678 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2679 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2681 ($(java_source_files:.java=.class)): New target.
2683 * Makefile.in: Rebuilt.
2684 * Makefile.am (java_source_files): Added
2685 java/net/HttpURLConnection.java and
2686 gnu/gcj/www/protocol/http/Connection.java.
2688 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2690 * gnu/gcj/www/protocol/http/Connection.java: New file.
2691 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2692 * java/net/HttpURLConnection.java: New file.
2693 * java/net/URLConnection.java (getHeaderField): Implemented default.
2694 (getHeaderFieldKey): Implemented default method.
2696 1999-03-30 Tom Tromey <tromey@cygnus.com>
2698 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2700 * java/util/zip/Deflater.java: Added copyright header.
2701 * java/util/zip/CRC32.java: Added copyright header.
2703 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2704 that it is automatically generated.
2705 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2707 * gnu/gcj/convert/BytesToUnicode.java,
2708 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2709 gnu/gcj/convert/Input_EUCJIS.java,
2710 gnu/gcj/convert/Input_UTF8.java,
2711 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2712 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2713 gnu/gcj/convert/Output_8859_1.java,
2714 gnu/gcj/convert/Output_JavaSrc.java,
2715 gnu/gcj/convert/Output_UTF8.java,
2716 gnu/gcj/convert/UnicodeToBytes.java,
2717 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2719 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2721 * Makefile.in, configure: Rebuilt.
2722 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2723 not if test subdir exists.
2724 (--enable-gcj-classes): Removed; gcj always used to generate
2726 (JAVA, JAVAC): Removed.
2727 (--enable-single-compilation, --enable-source-compilation):
2730 (NATIVE): New conditional.
2731 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2732 `install-exec' to work.
2733 (toolexeclibdir): Likewise.
2734 (toollib_LIBRARIES): Likewise.
2735 (AM_MAKEFLAGS): Don't pass tooldir.
2737 (javao_files): Redefined.
2738 (java_source_files): New macro.
2739 (c_source_files): New macro.
2740 (c_files): Redefined in terms of c_source_files.
2741 (java_io_files, java_lang_files, java_net_files, java_text_files,
2742 java_util_files, gnu_files, java_files): Removed.
2743 (class_io_files, class_lang_files, class_net_files,
2744 class_text_files, class_util_files, class_gnu_files, class_files):
2746 (nat_source_files): New macro.
2747 (nat_files): Redefined in terms of nat_source_files.
2748 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2749 java_source_files. Removed no-such-file.c.
2751 (ETAGS_ARGS): Removed.
2752 (TAGS_DEPENDENCIES): Likewise.
2753 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2755 (src_io_files, src_lang_files, src_text_files, src_util_files,
2756 src_gnu_files): Removed.
2757 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2758 (BUILT_SOURCES): Removed.
2759 (header-check): New target.
2761 (noinst_PROGRAMS): New macro.
2762 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2764 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2765 (gen-from-JIS): Build in top directory.
2766 (convert_source_files): New macro.
2767 (convert_SOURCES): New macro.
2768 (convert_LDFLAGS): Likewise.
2769 (convert_LINK): Likewise.
2770 (convert_LDADD): Likewise.
2771 (convert_DEPENDENCIES): Likewise.
2773 (gen-from-JIS): Removed.
2774 (gen_from_JIS_SOURCES): New macro.
2775 (gen_from_JIS_LDADD): Likewise.
2776 (gen_from_JIS_DEPENDENCIES): Likewise.
2778 * configure: Rebuilt.
2779 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2780 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2781 when defining conditional.
2783 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2785 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2786 The Unicode Consortium does not permit their re-distribution.
2787 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2788 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2790 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2792 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2794 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2796 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2797 from Unicode Consortium.
2798 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2799 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2800 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2801 New tables, generated using gen-from-JIS.
2802 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2803 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2804 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2805 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2807 * gnu/gcj/convert/Convert.java: New application.
2808 * Makefile.am, Makefile.in (convert): New program, using Convert.
2809 Build the various JIS conversion tables (in maintainer mode).
2811 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2813 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2815 * java/net/URL.java (URL): Deal with null property value. Use "."
2816 as separator in building class name.
2817 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2818 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2819 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2820 beginning of the substring rather than 'start'.
2822 1999-03-26 Tom Tromey <tromey@cygnus.com>
2824 * include/java-chartables.h: Rebuilt.
2825 * include/java-chardecomp.h: New file.
2826 * chartables.pl: Generate output files directly. Added support
2827 for generating decomposition header.
2828 (canonical_decomposition, full_decomposition): New globals.
2829 (DECOMPOSITION): New constant.
2830 (process_char): Call add_decomposition.
2831 (add_decomposition): New sub.
2832 (write_decompositions): New sub.
2834 1999-03-25 Tom Tromey <tromey@cygnus.com>
2836 * java/text/CollationElementIterator.java: New file.
2838 * mauve-libjava: Omit StringTest.
2840 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2842 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2843 without a '/' when parsing protocol. Handle ref outside of parseURL.
2844 (hashCode): Implemented.
2845 (set): Don't expand -1 to default port.
2846 (getDefaultPort): Removed.
2848 * java/net/URLStreamHandler.java (parseURL): Implemented.
2849 (toExternalForm): Implemented.
2851 1999-03-23 Tom Tromey <tromey@cygnus.com>
2853 * java/text/BreakIterator.java (getSentenceInstance):
2855 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2857 * Makefile.in: Rebuilt.
2858 * Makefile.am (nat_headers): Added IllegalAccessException.
2859 * java/lang/natClass.cc (newInstance): Throw
2860 IllegalAccessException, not IllegalAccessError.
2861 Include IllegalAccessException.h.
2863 1999-03-22 Tom Tromey <tromey@cygnus.com>
2865 * gnu/gcj/text/LineBreakIterator.java: New file.
2866 * java/text/BreakIterator.java (getLineInstance): Implemented.
2868 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2869 copy constructor private.
2870 (previous, next): Removed erroneous comment about line
2872 (previous): Correctly recognize break between non-letter on the
2873 left and letter on the right. Handle apostrophes correctly.
2875 * java/text/BreakIterator.java (getWordInstance): Implemented.
2876 * gnu/gcj/text/WordBreakIterator.java: New file.
2877 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2879 * gnu/gcj/text/BaseBreakIterator.java: New file.
2881 1999-03-19 Tom Tromey <tromey@cygnus.com>
2883 * java/text/BreakIterator.java: New file (partially stubbed out).
2884 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2886 * include/config.h.in: Rebuilt.
2887 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2888 (HAVE_TIMEZONE): Likewise.
2889 * configure: Rebuilt.
2890 * configure.in: Added timezone checks.
2891 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2894 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2896 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2897 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2898 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2899 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2900 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2901 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2902 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2903 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2905 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2906 (BSD_COMP): Kludge needed for Solaris2.
2908 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2910 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2911 URL(java.net.URL, string, URLStreamHandler) and call it with a
2912 null handler. In latter constructor, added SecurityManager check.
2913 (set): Expect null handler on bad protocol rather than an exception.
2914 (setURLStreamHandler): Simplified exception handling; return null
2915 on invalid protocol.
2917 1999-03-18 Tom Tromey <tromey@cygnus.com>
2919 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2921 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2923 Include PrintStream.h, InputStream.h.
2924 * java/lang/System.java (ForwardingInputStream,
2925 ForwardingOutputStream): Removed.
2926 (setErr, setIn, setOut): Now native.
2928 Reverted patch from 1999-02-12 to work around problem in
2930 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2931 (_Jv_eh_free): Use free.
2933 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2934 for path name. Minor formatting fixes.
2936 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2938 * prims.cc (fail_on_finalization): New function.
2939 (_Jv_GCWatch): Likewise.
2941 * prims.cc (JvRunMain): Initialize `nullp'.
2942 (nullp): New global.
2943 (catch_segv): Throw nullp.
2945 * Makefile.in: Rebuilt.
2946 * Makefile.am (ZIP): In "null target" case, zip is found in the
2949 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2953 * java/lang/StringBuffer.java (StringBuffer): Don't use
2954 ensureCapacity to set initial capacity.
2955 (capacity): Subtract `length' from return result.
2957 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2959 * java/io/natFileDescriptorPosix.cc (open): Throw
2960 FileNotFoundException, but with filename and errno in msg.
2962 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2964 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2965 functionality folded into java/net/URL.java per spec.
2967 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2968 than EEXIST for throwing FileNotFoundException.
2970 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2971 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2973 * java/net/URLStreamHandler.java (parseURL): Added stub.
2975 1999-03-15 Andrew Haley <aph@cygnus.com>
2977 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2980 1999-03-15 Andrew Haley <aph@cygnus.com>
2982 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2985 1999-03-12 Tom Tromey <tromey@cygnus.com>
2987 * prims.cc (catch_segv): New function.
2988 Include <signal.h> if HANDLE_SEGV defined. Include
2989 NullPointerException.h.
2990 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2993 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2994 a SimpleDateFormat, not just a DateFormat.
2995 (defaultCenturyStart, formatData, pattern): Now private.
2996 (append): Now `final'. Use `NumberFormat.format'.
2998 (SimpleDateFormat): Turn off groupin in NumberFormat object.
3000 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
3003 * java/text/MessageFormat.java (format): Use default MessageFormat
3005 (parse, parseObject): Wrote.
3007 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3010 1999-03-12 Andrew Haley <aph@cygnus.com>
3012 * java/lang/String.java (indexOf): Replace with native method for
3014 * java/lang/natString.cc (IndexOf): As above.
3016 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3017 Argument check corrected.
3018 (init(jbyteArray,jint,jint,jstring)): Likewise.
3020 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3021 1.2 compliant method.
3023 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3025 * java/lang/Float.java (byteValue, shortValue): Likewise.
3027 1999-03-11 Tom Tromey <tromey@cygnus.com>
3029 * java/text/DecimalFormat.java (parse): Wrote.
3031 * java/text/ChoiceFormat.java (parse): Set error index on
3032 ParsePosition object.
3034 * java/lang/Integer.java (parseInt): Throw exception on overflow
3035 when intermediate result is most negative number. Changed
3036 overflow detection as well.
3037 * java/lang/Long.java (parseLong): Likewise.
3039 * configure, Makefile.in: Rebuilt.
3040 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3041 CANADIAN when building in source tree that doesn't include gcc.
3042 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3045 * java/text/ChoiceFormat.java (nextDouble): Correct some
3046 off-by-one errors when masking or adding.
3048 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3049 parameter, if given. Use `%', not IEEEremainder.
3050 (scanFix): Throw error if multiplier already set.
3051 (computePattern): Wrote.
3053 1999-03-11 Andrew Haley <aph@cygnus.com>
3055 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3057 (nextDouble): Corrected masking logic. Handle interaction between
3058 `next' and negative numbers.
3060 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3062 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3063 * java/net/URL.java: Added general comments.
3065 1999-03-10 Tom Tromey <tromey@cygnus.com>
3067 * java/text/ChoiceFormat.java (parse): Wrote.
3069 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3071 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3072 Create ChoiceFormat objects.
3073 (format): Special-case ChoiceFormat.
3074 (scanFormatElement): Include { and } in generated style string.
3076 1999-03-09 Tom Tromey <tromey@cygnus.com>
3078 * java/text/ChoiceFormat.java: New file.
3080 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3082 * java/net/BindException.java: Created.
3083 * java/net/ConnectException.java: Created.
3084 * java/net/ContentHandler.java: Created.
3085 * java/net/ContentHandlerFactory.java: Created.
3086 * java/net/FileNameMap.java: Created.
3087 * java/net/MalformedURLException.java: Created.
3088 * java/net/NoRouteToHostException.java: Created.
3089 * java/net/ProtocolException.java: Created.
3090 * java/net/ServerSocket.java (@author): Fixed typo.
3091 * java/net/Socket.java (@author): Fixed typo.
3092 * java/net/SocketImpl.java (@author): Fixed typo.
3093 * java/net/SocketImplFactory.java (@author): Fixed typo.
3094 * java/net/URL.java: Created - nearly complete.
3095 * java/net/URLConnection.java: Created - near-empty stub.
3096 * java/net/URLStreamHandler.java: Created - incomplete stub.
3097 * java/net/URLStreamHandlerFactory.java: Created.
3098 * java/net/UnknownServiceException.java: Created.
3100 1999-03-09 Tom Tromey <tromey@cygnus.com>
3102 * java/lang/System.java (ForwardingInputStream): New class.
3103 (ForwardingOutputStream): Likewise.
3104 (in, out, err): Now `final' forwarding streams.
3105 (setIn, setOut, setErr): Use appropriate method on forwarding
3108 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3111 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3113 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3114 * java/util/zip/Checksum.java: New interface (complete).
3115 * java/util/zip/Deflater.java: New class (near-empty stub).
3116 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3117 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3118 * java/util/zip/ZipEntry.java: New class (complete).
3119 * java/util/zip/ZipException.java: New class (complete).
3120 * java/util/zip/ZipFile.java: New class (incomplete stub).
3121 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3123 1999-03-09 Tom Tromey <tromey@cygnus.com>
3125 * java/text/MessageFormat.java (MessageFormatElement): Removed
3126 `public' specifiers.
3128 * java/text/DecimalFormat.java (scanFormat): Increment index
3129 before processing exponential format. Fixed a couple typos in
3131 (format): Correct normalization of exponent.
3133 1999-03-08 Tom Tromey <tromey@cygnus.com>
3135 * java/text/SimpleDateFormat.java (parse): Throw
3136 IllegalArgumentException, not ParseException.
3138 1999-03-05 Tom Tromey <tromey@cygnus.com>
3140 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3141 when constructing DateFormatSymbols. Initialize numberFormat
3142 field of superclass.
3144 * java/text/DateFormat.java (equals): Rewrote.
3145 (getAvailableLocales): New method.
3146 (getDateInstance): New methods.
3147 (getDateTimeInstance): Likewise.
3148 (getTimeInstance): Likewise.
3149 (getInstance): New method.
3150 (computeInstance): New method.
3152 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3154 (safeGetResource): New method.
3155 (DateFormatSymbols): Use Locale paramater.
3156 (equals): Now protected.
3157 Made instance variables private.
3159 1999-03-04 Tom Tromey <tromey@cygnus.com>
3161 * java/text/DecimalFormat.java: New file.
3163 * java/text/NumberFormat.java (groupingUsed,
3164 maximumFractionDigits, maximumIntegerDigits,
3165 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3167 (setDecimalSeparatorAlwaysShown, setMultiplier,
3168 setPositivePrefix): Removed.
3169 (setMinimumFractionDigits, setMaximumFractionDigits):
3171 (format): Now final.
3172 Added many new methods.
3174 * Makefile.in: Rebuilt.
3175 * Makefile.am (gnu_files): New macro.
3176 (java_files): Added gnu_files.
3177 (class_gnu_files): New macro.
3178 (class_files): Use it.
3179 (src_gnu_files): New macro.
3180 (gnu.o): New target.
3181 (javao_files): Added gnu.o.
3183 * gnu/gcj/text/LocaleData_en_US.java: New file.
3184 * gnu/gcj/text/LocaleData_en.java: New file.
3185 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3186 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3187 (safeGetString): New method.
3188 (safeGetChar): Likewise.
3190 1999-03-03 Tom Tromey <tromey@cygnus.com>
3192 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3195 * java/text/FieldPosition.java (equals): Don't check for null
3196 object; instanceof does this.
3198 * java/util/Locale.java (clone): New method.
3201 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3203 * doc/cni.sgml: New file.
3205 1999-03-03 Tom Tromey <tromey@cygnus.com>
3207 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3209 * java/text/DecimalFormatSymbols.java: New file.
3211 1999-03-02 Tom Tromey <tromey@cygnus.com>
3213 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3215 * configure: Rebuilt.
3216 * configure.in: Check for sys/filio.h.
3218 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3220 (load): Always throw UnsatisfiedLinkError.
3221 (loadLibrary): Likewise.
3223 1999-03-02 Anthony Green <green@cygnus.com>
3225 * LIBGCJ_LICENSE: New file.
3226 * LIBJAVA_LICENSE: Removed.
3227 * Many files: libjava now libgcj.
3229 1999-03-02 Tom Tromey <tromey@cygnus.com>
3231 * include/java-chartables.h: Rebuilt.
3232 * chartables.pl (print_block): Make table `const'.
3233 (print_numerics): Likewise.
3234 (print_single_map): Likewise.
3235 (print_all_block): Likewise.
3236 (print_case_table): Likewise.
3237 (print_fast_tables): Likewise.
3238 * java/lang/natCharacter.cc (table_search): `table' argument now
3241 1999-03-01 Tom Tromey <tromey@cygnus.com>
3243 * java/util/Date.java (before, after): Inverted logic.
3245 * java/util/Date.java (parse): Handle case where first character
3246 in string is open parenthesis.
3247 (skipParens): Rewrote.
3249 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3250 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3252 * java/util/Date.java (parse): Correctly compute beginning of
3255 * java/util/Hashtable.java (get): Throw NullPointerException if
3257 (containsKey): Likewise.
3259 * java/util/Properties.java (list): Truncate value to 37
3260 characters and add `...'.
3262 * java/lang/Byte.java (parseByte): Pass `radix' to
3265 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3267 Include System.h, PrintStream.h.
3269 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3272 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3274 * configure: Rebuilt.
3275 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3278 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3280 * java/lang/SecurityManager.java: Import java.net.*.
3281 (checkMulticast): New methods.
3283 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3285 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3286 (nat_files): Add java/lang/reflect/natArray.o.
3287 (nat_headers): Add Field.h and NoSuchFieldException.h.
3289 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3290 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3291 (_Jv_FromReflectedField): Fix buglet.
3292 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3293 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3294 * prims.cc (_Jv_Abort): Include message in print-out.
3296 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3297 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3298 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3300 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3301 * include/config.h.in (HAVE_PWD_H): New feature macro.
3302 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3303 user.name, user.home, user.dir.
3305 * java/lang/reflect/Array.java: New class.
3306 * java/lang/reflect/natArray.cc: New native methods.
3307 * include/javaprims.h: Declare java::lang::reflect::Array.
3309 * java/lang/Class.h (getField): New private method. Add friends.
3310 * java/lang/Class.java (getField): Add private overload.
3311 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3312 getDeclaredMethods): Add working implementations.
3313 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3314 Finish implementation, except for access control.
3316 * java/lang/reflect/Modifier.java (toString): New overload.
3317 * include/java-method.h: New file.
3318 * java/lang/reflect/Method.java (index): Replaced by offset field.
3319 Remove various private fields - get them from _Jv_Field instead.
3320 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3321 New method implementations.
3323 * java/text/NumberFormat.java: Add a bunch of methods.
3325 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3327 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3329 1999-02-26 Tom Tromey <tromey@cygnus.com>
3331 * include/config.h.in: Rebuilt.
3332 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3333 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3334 HAVE_GETHOSTBYADDR_R): New defines.
3335 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3336 gethostbyaddr_r if available.
3338 * configure: Rebuilt.
3339 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3341 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3345 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3346 * prims.cc (_Jv_AllocBytesChecked): New function.
3348 * Makefile.in: Rebuilt.
3349 * Makefile.am (SUBDIRS): Removed `test'.
3350 * configure: Rebuilt.
3351 * configure.in: Don't build test/Makefile.
3352 * test/*: Removed all files.
3354 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3356 * java/lang/reflect/Constructor.java: Make class final to match spec.
3357 * java/lang/reflect/Method.java: Ditto.
3359 1999-02-25 Tom Tromey <tromey@cygnus.com>
3361 * java/net/natInetAddress.cc: Include <sys/types.h> before
3363 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3366 * java/net/natInetAddress.cc: Declare gethostname if required.
3367 * include/config.h.in: Rebuilt.
3368 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3369 * configure: Rebuilt.
3370 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3371 declared in unistd.h.
3373 1999-02-24 Tom Tromey <tromey@cygnus.com>
3375 * Makefile.in: Rebuilt.
3376 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3377 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3378 from private to "none".
3380 * include/javaprims.h: Regenerated class declarations with new
3382 * classes.pl (scan): Only generate decls for java.lang, java.io,
3385 1999-02-24 Tom Tromey <tromey@cygnus.com>
3387 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3388 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3390 1999-02-23 Tom Tromey <tromey@cygnus.com>
3392 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3393 not already defined.
3394 * java/io/natFile.cc (_REENTRANT): Only define if not already
3396 * include/config.h.in: Rebuilt.
3397 * acconfig.h (HAVE_BOEHM_GC): New define.
3398 * configure: Rebuilt.
3399 * configure.in: Define HAVE_BOEHM_GC if using it.
3400 * posix-threads.cc: Include boehm-config.h and gc.h if
3402 * include/posix-threads.h: Added explanatory note about Boehm GC.
3404 * java/io/BufferedReader.java (readLine): Only return null when
3405 EOF seen before any characters read. (In particular, an empty
3406 line should not return null.)
3408 * java/io/BufferedInputStream.java (read): Only refill once per
3411 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3412 java.lang.Character.classify12, java.lang.String.hash,
3413 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3414 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3416 * java/text/StringCharacterIterator.java (setIndex): No error if
3418 (next): Check for `pos == end', not `end - 1'.
3419 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3420 for null text in each constructor.
3421 (clone): Fixed order of arguments to constructor.
3423 1999-02-22 Tom Tromey <tromey@cygnus.com>
3425 * include/config.h.in: Rebuilt.
3426 * acconfig.h (HAVE_INET6): New define.
3427 (HAVE_SOCKLEN_T): Likewise.
3428 * java/net/PlainSocketImpl.java: Added copyright header.
3429 * java/net/natPlainSocketImpl.cc: Added copyright header.
3430 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3432 (connect): Likewise.
3434 (socklen_t): New typedef.
3435 (accept): Use socklen_t.
3436 * java/net/natInetAddress.cc: Added copyright header.
3437 (HAVE_GETHOSTNAME): Don't define.
3438 (HAVE_INET_ADDR): Likewise.
3439 (lookup): Fixed typo.
3440 (aton): Don't use `address' as name of local variable.
3441 (lookup): Use HAVE_INET6, not AF_INET6.
3443 * configure: Rebuilt.
3444 * configure.in: Look for functions inet_aton, inet_addr,
3445 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3446 Check for socklen_t typedef.
3448 * exception.cc (__throw): Declare as __noreturn__.
3450 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3452 * Makefile.am, Makefile.in: Also build java/net.
3453 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3455 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3456 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3458 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3459 * include/cni.h (JvMalloc, JvFree): New inline functions.
3460 (JvThrow): Add __noreturn__ attribute.
3461 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3462 (_Jv_Throw): Add __noreturn__ attribute.
3464 * java/net/PlainSocketImpl.java: Init fnum to -1.
3465 * java/net/ServerSocket.java: Add missing throws clauses.
3466 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3467 don't call create on the latter. Instead, other constructors
3468 have to explicitly call SocketImpl.create.
3469 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3470 from size_t to int, to match ::accept prototype.
3471 * java/net/natInetAddress.cc: Use JvFree rather than free.
3474 1999-02-22 Tom Tromey <tromey@cygnus.com>
3476 * include/javaprims.h: Added new classes.
3477 * java/text/StringCharacterIterator.java: New file.
3478 * java/text/CharacterIterator.java: New file.
3480 * java/text/ParseException.java (errorOffset): Now private.
3482 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3484 * java/net: New package.
3485 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3486 Socket.java,SocketException.java,SocketImpl.java,
3487 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3488 natPlainSocketImpl.cc}: New classes.
3490 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3491 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3492 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3493 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3495 * classes.pl: Translate package into "namespace", not "class".
3496 * include/javaprims.h: Update class list, using "namespace".
3498 1999-02-21 Tom Tromey <tromey@cygnus.com>
3500 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3501 Define when appropriate.
3503 1999-02-20 Tom Tromey <tromey@cygnus.com>
3505 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3506 as a single byte and \u07ff as two bytes.
3507 (_Jv_GetStringUTFLength): Likewise.
3508 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3509 with 0x0f, not 0x1f.
3511 1999-02-19 Tom Tromey <tromey@cygnus.com>
3513 * java/io/DataOutputStream.java (writeUTF): When encoding
3514 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3515 * java/io/DataInputStream.java (readUTF): Mask second byte of
3516 3-byte character with 0x3f, not 0x1f.
3518 * java/io/DataInputStream.java (readLong): Cast result of
3519 readUnsignedByte to long before using.
3521 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3524 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3525 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3526 argument to avoid warning.
3527 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3528 argument to avoid warning.
3530 1999-02-18 Tom Tromey <tromey@cygnus.com>
3532 * mauve-libjava: Omit java.io.DataInputOutput and
3533 java.io.Utf8Encoding.
3535 1999-02-17 Tom Tromey <tromey@cygnus.com>
3537 * Makefile.in: Rebuilt.
3538 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3539 * java/io/natFileDescriptorPosix.cc: Include
3540 InterruptedIOException.h, Thread.h.
3541 (write): Throw InterruptedIOException when required.
3543 * posix-threads.cc: Include <signal.h>.
3544 (_Jv_ThreadInterrupt): New function.
3546 (handle_intr): New function.
3547 (_Jv_InitThreads): Register handle_intr via sigaction.
3548 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3549 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3550 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3551 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3553 1999-02-19 Andrew Haley <aph@cygnus.com>
3555 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3557 (ThreadGroup (int)): Set the maximum priority of the initial
3560 1999-02-18 Andrew Haley <aph@cygnus.com>
3562 * java/lang/natClass.cc (forName): Check for the case where a
3563 classname is the name of an array and call FindClassFromSignature
3566 1999-02-18 Andrew Haley <aph@cygnus.com>
3568 * java/lang/StringBuffer (insert (int, String)): Move up any
3569 characters above the insert position and increase the length of
3570 the string buffer by the length of the argument.
3571 (insert (int, char[])): Likewise.
3572 (insert (int, char)): Likewise.
3573 (StringBuffer (String)): The initial capacity of the string buffer
3574 is 16 plus the length of the argument.
3575 (getChars): Add a JDK 1.2 FIXME.
3577 1999-02-18 Andrew Haley <aph@cygnus.com>
3579 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3582 1999-02-18 Andrew Haley <aph@cygnus.com>
3584 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3585 instead of floating-point equality. This is necessary for
3586 correct floating-point Hashtables.
3587 * java/lang/Float.java (equals): Ditto.
3589 1999-02-16 Tom Tromey <tromey@cygnus.com>
3591 * java/util/Properties.java (list): Truncate value to 37
3592 characters and add "...".
3594 1999-02-16 Tom Tromey <tromey@cygnus.com>
3596 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3597 if initCap is negative.
3598 (contains): Implement JDK1.2-style handling of null argument.
3599 (removeElement): Likewise.
3600 (indexOf): Likewise. Also, correctly handle case where idx is
3602 (lastIndexOf): Likewise.
3604 1999-02-16 Tom Tromey <tromey@cygnus.com>
3606 * java/lang/natString.cc (init): Increment source pointer in
3609 1999-02-16 Tom Tromey <tromey@cygnus.com>
3611 * exception.cc: Include NullPointerException.h.
3612 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3614 1999-02-16 Tom Tromey <tromey@cygnus.com>
3616 * Makefile.in: Rebuilt.
3617 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3619 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3621 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3622 we're compiling canadian.
3623 * configure: Regenerated.
3625 1999-02-12 Andrew Haley <aph@cygnus.com>
3627 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3628 deleted from libgcj.
3630 1999-02-12 Tom Tromey <tromey@cygnus.com>
3632 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3633 (_Jv_eh_free): Don't call free.
3634 Don't declare malloc or free.
3636 1999-02-11 Tom Tromey <tromey@cygnus.com>
3638 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3640 1999-02-11 Andrew Haley <aph@cygnus.com>
3642 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3643 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3644 needed by java.lang.*.
3645 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3646 wf_fmod.o: Removed from libjava.a.
3648 1999-02-11 Tom Tromey <tromey@cygnus.com>
3650 * include/javaprims.h: Reverted previous change; with it
3651 exception.cc can't compile.
3653 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3655 * include/config.h.in: Rebuilt.
3656 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3658 * configure: Rebuilt.
3659 * configure.in: Check for sched_yield. Look in thread library for
3660 all thread functions.
3662 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3663 no recursive mutexes.
3664 (_Jv_MutexDestroy): Define when required.
3665 (_Jv_MutexLock): Likewise.
3666 (_Jv_MutexUnlock): Likewise.
3667 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3668 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3669 (_Jv_Mutex_t): New structure.
3670 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3671 (_Jv_MutexLock): Likewise.
3672 (_Jv_MutexUnlock): Likewise.
3674 1999-02-10 Tom Tromey <tromey@cygnus.com>
3676 * aclocal.m4, configure, Makefile.in: Rebuilt.
3677 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3679 * configure.in: Changed to track library changes.
3680 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3681 (AM_CXXFLAGS): Likewise.
3682 (data_DATA): Likewise.
3683 (AM_CFLAGS): Likewise.
3684 (JC1FLAGS): Likewise.
3685 (libgcj_a_SOURCES): Likewise.
3686 (EXTRA_libgcj_a_SOURCES): Likewise.
3687 (libgcj_a_DEPENDENCIES): Likewise.
3688 (libgcj_a_LIBADD): Likewise.
3689 (libgcj.zip): Likewise.
3690 (CLEANFILES): Likewise.
3691 ($(nat_headers)): Likewise.
3692 (java/lang/FirstThread.h): Likewise.
3693 (java/lang/ThreadGroup.h): Likewise.
3694 (java/lang/String.h): Likewise.
3695 (java/lang/reflect/Field.h): Likewise.
3696 (BUILT_SOURCES): Likewise.
3697 (maintainer-check): Likewise.
3698 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3699 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3701 * java/util/natGregorianCalendar.cc (computeFields): Only use
3702 gmtime_r and localtime_r when configured for posix threads.
3704 * java/io/natFile.cc (get_entry): Only use readdir_r when
3705 configured for posix threads.
3707 * java/util/natGregorianCalendar.cc: Update copyright notice.
3708 * java/util/TimeZone.java: Ditto.
3709 * java/util/SimpleTimeZone.java: Ditto.
3711 1999-02-08 Tom Tromey <tromey@cygnus.com>
3713 * java/io/PrintStream.java (line_separator): New constant.
3714 (print): Use line_separator, not `file.separator' property.
3715 (println): Use line_separator.
3717 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3718 when trying to instantiate Class.
3720 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3721 NullPointerException if argument is null.
3723 * java/lang/Thread.java (setName): Throw NullPointerException, not
3724 IllegalArgumentException.
3727 1999-02-08 Andrew Haley <aph@cygnus.com>
3729 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3730 create new Classes with Class.newInstance().
3732 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3733 semiciolon to end of an array Class's signature if the elements of
3734 the array aren't themselves arrays.
3736 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3737 array of objects is always sizeof(jobject), not the size of the
3738 object to which the reference points.
3740 1999-02-08 Tom Tromey <tromey@cygnus.com>
3742 * java/util/BitSet.java (and): Throw NullPointerException when
3747 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3748 if argument is negative.
3749 (clear): Correctly compute `offset'. Throw
3750 IndexOutOfBoundsException when required.
3752 (get): Likewise. Also, return correct value.
3753 (ensure): Changed meaning of argument.
3754 (toString): Wrap contents in `{}'; put spaces after commas.
3755 (hashCode): Don't try to examine elements off the end of array.
3756 (or): Correctly include bits past the end of this bit set.
3759 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3761 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3762 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3764 1999-02-04 Andrew Haley <aph@cygnus.com>
3766 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3767 '/' in signatures to '.'
3768 (Class::getName): Likewise,
3769 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3771 * java/lang/natFirstThread.cc (run): Change '/' in main's
3774 1999-02-03 Andrew Haley <aph@cygnus.com>
3776 * configure.host: -ffloat-store added when compiling libjava on
3777 x86. fdlibm apparently relies on this.
3779 * java/lang/ThreadGroup.java (add): throw an exception if the
3780 ThreadGroup has been destroyed.
3782 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3785 1999-01-27 Tom Tromey <tromey@cygnus.com>
3787 * java/lang/StringBuffer.java (StringBuffer): Handle null
3790 1999-01-21 Tom Tromey <tromey@cygnus.com>
3792 * java/lang/natFirstThread.cc (run): Don't require main to be
3795 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3797 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3799 1999-01-20 Tom Tromey <tromey@cygnus.com>
3801 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3805 (unintern): Likewise.
3806 (_Jv_NewStringUtf8Const): Likewise.
3808 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3809 Character.isLetter, to see if character is self-quoting. Also,
3810 correctly handle quoted characters.
3811 (parse): Fixed typo. Also now throws ParseException.
3813 1999-01-15 Tom Tromey <tromey@cygnus.com>
3815 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3817 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3818 _Jv_SyncInfo has `init' member.
3820 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3823 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3824 IllegalMonitorStateException if unlock fails.
3826 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3828 (_Jv_NewObjectArray): Likewise.
3830 1999-01-14 Tom Tromey <tromey@cygnus.com>
3832 * java/lang/Character.java (isJavaIdentifierPart): Allow
3833 LETTER_NUMBER characters.
3835 * chartables.pl (process_char): Fixed error messages.
3837 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3838 * chartables.pl: Updated comments. Changed detection of non-digit
3839 numeric values (no longer miss \u00b2 and friends).
3841 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3842 currency symbols and connector punctuation.
3843 (isIdentifierIgnorable): Make 7f-9f ignorable.
3845 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3846 (_Jv_NewPrimArray): Likewise.
3847 (SIZE_T_MAX): New define.
3849 * java/lang/ClassLoader.java (system): Now private and final.
3851 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3854 * configure: Rebuilt.
3855 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3857 * exception.cc: Include gansidecl.h.
3859 1999-01-14 Andrew Haley <aph@cygnus.com>
3861 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3862 corrected: they didn't treat -0.0 and NaNs correctly.
3864 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3866 * nogc.cc: Use calloc to zero out memory.
3868 1999-01-11 Tom Tromey <tromey@cygnus.com>
3870 * java/lang/natClass.cc (isInstance): Return false if this class
3871 is primitive, not if class of `obj' is primitive.
3872 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3874 * java/io/SequenceInputStream.java (close): Handle case where `in'
3877 * java/text/DateFormat.java (format): New method.
3879 * mauve-libjava: Omit java.text.DateFormat.
3881 1999-01-08 Tom Tromey <tromey@cygnus.com>
3883 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3885 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3887 (_Jv_CondNotifyAll): Likewise.
3889 * configure: Rebuilt.
3890 * configure.in: Change --enable-source-compilation logic to work
3893 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3895 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3896 and RUNTESTFLAGS from AM_MAKEFLAGS.
3897 * configure.in: AM_RUNTESTFLAGS added.
3898 * configure.host: AM_RUNTESTFLAGS added.
3899 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3900 * configure: rebuilt.
3901 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3903 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3904 argv[] made conditional because embedded targets may not have
3906 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3907 explanatory comments added in call to super.
3909 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3910 exception thrown in the test harness itself added.
3911 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3913 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3915 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3917 1999-01-06 Tom Tromey <tromey@cygnus.com>
3919 * java/io/natFile.cc (get_entry): New function.
3920 (performList): Use get_entry.
3921 * include/config.h.in: Rebuilt.
3922 * acconfig.h (HAVE_READDIR_R): New define.
3923 * configure: Rebuilt.
3924 * configure.in: Look for readdir_r.
3926 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3928 * java/util/natDate.cc: Added copyright header.
3930 1999-01-05 Tom Tromey <tromey@cygnus.com>
3932 * include/config.h.in: Rebuilt.
3933 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3934 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3935 * configure: Rebuilt.
3936 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3937 unlink, and realpath.
3938 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3939 (stat): Conditionalize on HAVE_STAT.
3941 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3942 (performMkdir): Conditionalize on HAVE_MKDIR.
3943 (performRenameTo): Conditionalize on HAVE_RENAME.
3944 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3946 * include/config.h.in: Rebuilt.
3947 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3948 * configure: Rebuilt.
3949 * configure.in: Check for gmtime_r and localtime_r. For cross
3950 builds, assume they exist.
3952 * mauve-libjava: Include java.text.DateFormatSymbols again.
3953 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3954 from setAmPmStrings.
3956 * mauve-libjava: Omit java.text.DateFormatSymbols.
3958 1999-01-04 Tom Tromey <tromey@cygnus.com>
3960 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3962 * java/io/LineNumberReader.java (read): Decrement `count' in
3965 * java/io/BufferedWriter.java (write): Correctly determine when
3966 incoming data would overrun buffer. Flush buffer if write causes
3969 * java/io/BufferedOutputStream.java (write): Increment `count'
3970 after copying data into buffer.
3972 * java/io/FilterOutputStream.java (close): Call flush first.
3974 * java/io/PipedReader.java (read): If read causes `out' to catch
3975 up with `in', then set `in' to -1.
3977 * java/io/LineNumberInputStream.java (read): If no bytes read,
3978 return -1. If no bytes requested, return 0.
3980 * java/lang/StringBuffer.java (insert): If `str' is null, use
3983 1998-12-30 Anthony Green <green@cygnus.com>
3986 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3988 1998-12-23 Tom Tromey <tromey@cygnus.com>
3990 * java/io/PushbackInputStream.java (read): `off' already includes
3993 1998-12-17 Tom Tromey <tromey@cygnus.com>
3995 * Makefile.in: Rebuilt.
3996 * Makefile.am (GCJ_canadian): Include target_alias.
3998 * java/lang/natFirstThread.cc (run): Require main's class to be
4001 1998-12-16 Tom Tromey <tromey@cygnus.com>
4003 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4005 * java/util/ResourceBundle.java (getBundle): Throw
4006 NullPointerException if locale argument is null.
4008 * java/lang/natClass.cc (forName): Throw NullPointerException if
4010 Include NullPointerException.h.
4012 1998-12-14 Tom Tromey <tromey@cygnus.com>
4014 * java/lang/Character.java (Character): Implement Comparable.
4015 (compareTo): New methods.
4017 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4018 correct country and language codes.
4019 (UK, US): New constants.
4020 (setDefault): Language codes are lower-case.
4022 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4023 (getDeclaredConstructors): Likewise.
4024 (getDeclaredField): Likewise.
4025 (getDeclaredFields): Likewise.
4026 (getDeclaredMethod): Likewise.
4027 (getDeclaredMethods): Likewise.
4028 (getField): Likewise.
4029 (getFields): Likewise.
4030 (getMethod): Likewise.
4031 (getMethods): Likewise.
4032 * java/lang/Class.java: Declare new methods.
4033 * java/lang/Class.h: Declare new methods.
4035 * java/lang/natString.cc: Removed `#pragma implementation'.
4036 * include/cni.h (_Jv_GetStringChars): New function.
4037 * Makefile.in: Rebuilt.
4038 * Makefile.am (java/lang/String.h): Don't generate definition for
4041 * java/lang/natString.cc: Added `#pragma implementation'.
4043 * Makefile.in: Rebuilt.
4044 * Makefile.am (libjava.zip): Put build directory first in class
4045 path to avoid bug in compiler.
4047 1998-12-14 Anthony Green <green@cygnus.com>
4049 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4051 * include/javaprims.h: Add EventObject, ListResourceBundle and
4054 1998-12-13 Anthony Green <green@cygnus.com>
4056 * mauve-libjava: Run the ResourceBundle tests.
4058 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4061 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4063 * configure.in, configure: Make --enable-gcj-classes and
4064 --enable-source-compilation the default. (Nervously...) Yeah!
4065 Based on a patch from Tom Tromey.
4067 1998-12-13 Tom Tromey <tromey@cygnus.com>
4069 * java/util/EventObject.java: New file.
4070 * java/util/EventListener.java: New file.
4072 * include/javaprims.h: Updated class declarations.
4073 * Makefile.in: Rebuilt.
4074 * Makefile.am (nat_headers): Added Constructor.h.
4075 (java/lang/String.h): Don't inline String::length().
4076 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4077 * java/lang/Class.java (initializeClass, hackRunInitializers,
4078 hackTrampoline): No need to mark `final'.
4079 (getConstructor, getConstructors): Declare.
4080 * java/lang/reflect/Field.java (equals): New method.
4081 * java/lang/natClass.cc (getConstructor): New method.
4082 (getConstructors): Likewise.
4083 Include Method.h, Field.h, Constructor.h.
4084 * java/lang/reflect/Constructor.java: New file.
4085 * java/lang/reflect/Method.java (toString): No space before open
4087 (equals): Simplified.
4089 1998-12-13 Anthony Green <green@cygnus.com>
4091 * java/util/ResourceBundle.java: New file.
4092 * java/util/ListResourceBundle.java: New file.
4094 1998-12-12 Tom Tromey <tromey@cygnus.com>
4096 * java/lang/System.java (in, out, err): Now buffered streams by
4099 * include/javaprims.h: Updated class declarations.
4100 * Makefile.in: Rebuilt.
4101 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4102 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4104 (nat_files): Added natMethod.o.
4105 * java/lang/reflect/natMethod.cc: New file.
4106 * java/lang/reflect/Field.java (Field): Now extends
4108 * java/lang/reflect/AccessibleObject.java: New file.
4109 * java/lang/reflect/InvocationTargetException.java: New file.
4111 1998-12-11 Tom Tromey <tromey@cygnus.com>
4113 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4114 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4115 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4117 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4119 1998-12-09 Tom Tromey <tromey@cygnus.com>
4121 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4124 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4125 character is already titlecase.
4127 * java/lang/Character.java (isJavaLetter): Follow spec.
4128 (isJavaLetterOrDigit): Likewise.
4130 * java/util/GregorianCalendar.java (gregorianCutover): Append
4133 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4135 1998-12-08 Tom Tromey <tromey@cygnus.com>
4137 * java/lang/reflect/Modifier.java (toString): Replace second
4138 `static' with `synchronized'.
4140 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4141 * java/lang/Object.h (Object::hack12_6): Declare.
4142 * java/lang/Object.java (hack12_6): New function.
4144 1998-12-07 Tom Tromey <tromey@cygnus.com>
4146 * include/java-array.h (__JArray::clone): Removed decl.
4147 * prims.cc (__JArray::clone): Removed.
4148 * java/lang/natObject.cc (clone): Incorporate code to clone an
4151 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4152 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4153 Correctly use dtable_method_count.
4155 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4157 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4160 1998-12-06 Anthony Green <green@cygnus.com>
4162 * mauve-libjava: Don't test ResourceBundle.
4164 1998-12-04 Tom Tromey <tromey@cygnus.com>
4166 More JDK 1.2 spec fixes:
4167 * java/util/Date.java (millis): Now private.
4168 * java/text/DateFormat.java (DateFormat): Constructor now
4170 * java/lang/Void.java (Void): New private constructor.
4171 * java/lang/System.java (System): New private constructor.
4172 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4174 (currentClassLoader): New method.
4175 (currentLoadedClass): New method.
4176 * java/lang/Math.java (Math): New private constructor.
4177 * java/lang/Compiler.java (Compiler): New private constructor.
4178 * java/lang/Class.java (Class): New private constructor.
4179 * java/lang/Double.java (toString): Removed access specifier from
4180 two-argument `toString' method.
4182 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4184 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4185 causes it to be flushed from an fp register (where it may be
4186 longer than double precision) to a double in memory. This is
4187 essential to ensure correct rounding behaviour.
4189 1998-12-04 Tom Tromey <tromey@cygnus.com>
4191 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4194 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4195 explaining apparent divergence from JDK 1.2.
4197 1998-12-04 Per Bothner <bothner@cygnus.com>
4199 * include/no-threads.h: Remove unused parameter names.
4200 This silences a bunch of warnings.
4202 1998-12-04 Tom Tromey <tromey@cygnus.com>
4204 * include/config.h.in: Rebuilt.
4205 * acconfig.h (HAVE_CTIME_R): New symbol.
4207 1998-12-03 Tom Tromey <tromey@cygnus.com>
4209 * mauve-libjava: Added many more categories to reject.
4211 Changes to follow JDK1.2 spec:
4212 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4213 setErr, setIn, setOut): No need to be `final'.
4214 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4215 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4216 * java/lang/Object.java (wait): `nanos' argument is an int.
4217 * java/lang/VirtualMachineError.java: Class is abstract.
4218 * java/lang/ThreadDeath.java: Made constructors public.
4219 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4222 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4224 * java/text/DateFormatSymbols.java (getAmPmStrings,
4225 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4227 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4229 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4230 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4231 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4234 * java/lang/IllegalThreadStateException.java
4235 (IllegalThreadStateException): Changed extending class to match spec.
4237 * java/lang/NumberFormatException.java
4238 (java/lang/NumberFormatException): Changed extending class to match
4241 * java/util/Observer.java (Observer): Changed sig to match JCL.
4243 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4245 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4246 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4247 signature to match JDK 1.1 and 1.2.
4249 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4251 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4252 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4253 * Makefile.in, configure: Rebuilt.
4255 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4258 1998-12-02 Tom Tromey <tromey@cygnus.com>
4260 * mauve-libjava: New file.
4262 The remaining `-W -Wall' fixes:
4263 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4265 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4267 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4269 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4271 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4273 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4275 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4277 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4279 * java/lang/mprec.c (Balloc): Removed unused variable.
4280 (mult): Added parentheses per gcc suggestion.
4281 (pow5mult): Likewise.
4286 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4287 suggestion. Added cast to `int' to avoid signed/unsigned
4289 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4291 (IsAssignableFrom): Likewise.
4292 (_Jv_JNI_GetObjectField): Likewise.
4293 (_Jv_JNI_GetByteField): Likewise.
4294 (_Jv_JNI_GetShortField): Likewise.
4295 (_Jv_JNI_GetIntField): Likewise.
4296 (_Jv_JNI_GetLongField): Likewise.
4297 (_Jv_JNI_GetStringLength): Likewise.
4298 (_Jv_JNI_ToReflectedField): Likewise.
4299 (_Jv_JNI_FromReflectedField): Likewise.
4300 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4302 * Makefile.in: Rebuilt.
4303 * Makefile.am (AM_CFLAGS): Define conditionally.
4304 (WARNINGS): New macro.
4305 (AM_CXXFLAGS): Include WARNINGS.
4306 * configure: Rebuilt.
4307 * configure.in (USING_GCC): New conditional.
4309 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4311 * java/lang/Character.java: Changed classification constants to
4312 type `byte' to match JDK 1.2 docs.
4314 1998-12-01 Tom Tromey <tromey@cygnus.com>
4316 Some fixes to be `-W -Wall' clean:
4317 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4318 (_Jv_MarkArray): Likewise.
4319 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4320 (to_upper_title): Likewise.
4321 (isTitleCase): Likewise.
4322 (toTitleCase): Likewise.
4323 (getNumericValue): Likewise.
4324 (isLowerCase): Likewise.
4325 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4326 (avoids compiler warning).
4327 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4329 (getDeclaringClass): Likewise.
4330 (_Jv_LookupInterfaceMethod): Likewise.
4331 (_Jv_NewClass): Removed name of unused parameter.
4332 * exception.cc (_Jv_type_matcher): Removed unused variable.
4333 (_Jv_setup_eh_info): Removed name of unused parameter.
4334 * prims.cc (_Jv_NewArray): Always return a value.
4335 (_Jv_FindClassFromSignature): Likewise.
4336 * include/java-field.h (getNameUtf8Const): Removed name of unused
4338 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4340 (_Jv_ThreadSetPriority): Likewise.
4342 * java/lang/natString.cc (hashChars): Now static.
4344 * java/lang/FirstThread.java (FirstThread): Now final.
4346 * java/io/File.java (performMkdir, performRenameTo): Now private.
4348 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4349 if no time function defined.
4351 * configure: Rebuilt.
4352 * configure.in: Look for ctime_r, ctime.
4353 * java/util/Date.java (toString): Now native.
4354 * java/util/natDate.cc (toString): Rewrote.
4356 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4358 * Add LDFLAGS line to allow TX39 test cases to link when cross
4361 1998-11-23 Anthony Green <green@cygnus.com>
4363 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4364 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4365 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4366 include/java-array.h, include/java-assert.h, include/java-field.h,
4367 include/javaprims.h, include/jni.h, include/jvm.h,
4368 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4369 include/quick-threads.h, java/io/BufferedInputStream.java,
4370 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4371 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4372 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4373 java/io/CharArrayWriter.java,
4374 java/io/CharConversionException.java, java/io/DataInput.java,
4375 java/io/DataInputStream.java, java/io/DataOutput.java,
4376 java/io/DataOutputStream.java, java/io/EOFException.java,
4377 java/io/File.java, java/io/FileDescriptor.java,
4378 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4379 java/io/FileOutputStream.java, java/io/FileReader.java,
4380 java/io/FileWriter.java, java/io/FilenameFilter.java,
4381 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4382 java/io/FilterReader.java, java/io/FilterWriter.java,
4383 java/io/IOException.java, java/io/InputStream.java,
4384 java/io/InputStreamReader.java,
4385 java/io/InterruptedIOException.java,
4386 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4387 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4388 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4389 java/io/PipedReader.java, java/io/PipedWriter.java,
4390 java/io/PrintStream.java, java/io/PrintWriter.java,
4391 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4392 java/io/RandomAccessFile.java, java/io/Reader.java,
4393 java/io/SequenceInputStream.java, java/io/Serializable.java,
4394 java/io/StreamTokenizer.java,
4395 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4396 java/io/StringWriter.java, java/io/SyncFailedException.java,
4397 java/io/UTFDataFormatException.java,
4398 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4399 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4400 java/io/natFileDescriptorPosix.cc,
4401 java/lang/AbstractMethodError.java,
4402 java/lang/ArithmeticException.java,
4403 java/lang/ArrayIndexOutOfBoundsException.java,
4404 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4405 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4406 java/lang/Class.java, java/lang/ClassCastException.java,
4407 java/lang/ClassCircularityError.java,
4408 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4409 java/lang/ClassNotFoundException.java,
4410 java/lang/CloneNotSupportedException.java,
4411 java/lang/Cloneable.java, java/lang/Comparable.java,
4412 java/lang/Compiler.java, java/lang/Double.java,
4413 java/lang/Error.java, java/lang/Exception.java,
4414 java/lang/ExceptionInInitializerError.java,
4415 java/lang/FirstThread.java, java/lang/Float.java,
4416 java/lang/IllegalAccessError.java,
4417 java/lang/IllegalAccessException.java,
4418 java/lang/IllegalArgumentException.java,
4419 java/lang/IllegalMonitorStateException.java,
4420 java/lang/IllegalStateException.java,
4421 java/lang/IllegalThreadStateException.java,
4422 java/lang/IncompatibleClassChangeError.java,
4423 java/lang/IndexOutOfBoundsException.java,
4424 java/lang/InstantiationError.java,
4425 java/lang/InstantiationException.java, java/lang/Integer.java,
4426 java/lang/InternalError.java, java/lang/InterruptedException.java,
4427 java/lang/LinkageError.java, java/lang/Long.java,
4428 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4429 java/lang/NoClassDefFoundError.java,
4430 java/lang/NoSuchFieldError.java,
4431 java/lang/NoSuchFieldException.java,
4432 java/lang/NoSuchMethodError.java,
4433 java/lang/NoSuchMethodException.java,
4434 java/lang/NullPointerException.java, java/lang/Number.java,
4435 java/lang/NumberFormatException.java, java/lang/Object.h,
4436 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4437 java/lang/Process.java, java/lang/Runnable.java,
4438 java/lang/Runtime.java, java/lang/RuntimeException.java,
4439 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4440 java/lang/Short.java, java/lang/StackOverflowError.java,
4441 java/lang/String.java, java/lang/StringBuffer.java,
4442 java/lang/StringIndexOutOfBoundsException.java,
4443 java/lang/System.java, java/lang/Thread.java,
4444 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4445 java/lang/Throwable.java, java/lang/UnknownError.java,
4446 java/lang/UnsatisfiedLinkError.java,
4447 java/lang/UnsupportedOperationException.java,
4448 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4449 java/lang/Void.java, java/lang/natCharacter.cc,
4450 java/lang/natClass.cc, java/lang/natDouble.cc,
4451 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4452 java/lang/natMath.cc, java/lang/natObject.cc,
4453 java/lang/natRuntime.cc, java/lang/natString.cc,
4454 java/lang/natSystem.cc, java/lang/natThread.cc,
4455 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4456 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4457 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4458 java/text/FieldPosition.java, java/text/Format.java,
4459 java/text/NumberFormat.java, java/text/ParseException.java,
4460 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4461 java/util/BitSet.java, java/util/Calendar.java,
4462 java/util/ConcurrentModificationException.java,
4463 java/util/Date.java, java/util/Dictionary.java,
4464 java/util/EmptyStackException.java, java/util/Enumeration.java,
4465 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4466 java/util/Locale.java, java/util/MissingResourceException.java,
4467 java/util/NoSuchElementException.java, java/util/Observable.java,
4468 java/util/Observer.java, java/util/Properties.java,
4469 java/util/Random.java, java/util/SimpleTimeZone.java,
4470 java/util/Stack.java, java/util/StringTokenizer.java,
4471 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4472 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4475 * exception.cc: Include eh-common.h instead of duplicating
4478 1998-11-23 Tom Tromey <tromey@cygnus.com>
4480 * configure.host: Don't add `-O2' to libjava_flags. Only add
4481 `-Os' to libjava_flags once.
4483 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4485 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4486 * Makefile.in: likewise
4487 * acconfig.h: add ECOS conditional for configure.h
4488 * config.h.in: likewise
4489 * configure: add test for --with-ecos
4490 * configure.in: likewise
4491 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4492 rename call to avoid name clash.
4493 * java/lang/natSystem.cc: add eCos clock support.
4494 * java/util/natGregorianCalendar.cc: add eCos support.
4496 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4498 * Makefile.am, Makefile.in, configure.host: tx39 build option
4501 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4503 * java/io/BufferedReader.java: Added more comments for clarity.
4504 (mark): Used more mnemonic name for local var extraBuffSpace.
4506 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4507 confusion with private method of same name in superclass.
4508 (skipRedundantLF): Set fields in special case to avoid infinite
4509 recursion. Check if markPos has been invalidated in special case.
4510 (readLine): Rewritten to use readLine method of superclass.
4511 (skip): Incorporated code from lineEnd.
4513 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4515 * java/io/BufferedReader.java (readLine): New method.
4516 (lineEnd): new private method.
4517 (mark): Track special case for readLine of getting '\r' at the
4524 * java/io/InputStreamReader.java (read): Return number chars skipped
4525 rather than requested.
4527 * java/lang/StringBuffer.java (append): Update count and differentiate
4528 between field and local variable.
4530 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4531 seconds. Deal with military style time.
4532 (parse): Consistently treat all timezones in minutes until final
4533 calculation. Flag as non-local timezone. Return value in milliseconds.
4534 (setTime): Adjust for year offset from 1900.
4535 (UTC): Adjust for year offset from 1900.
4537 1998-11-17 Tom Tromey <tromey@cygnus.com>
4539 * configure: Rebuilt.
4540 * configure.in: Switch on host, not target.
4542 * Makefile.in: Rebuilt.
4543 * Makefile.am (GCJ_no): New macro.
4544 (GCJ): Use @CANADIAN@.
4545 (GCJH_no): New macro
4546 (GCJH_canadian): New macro.
4547 (GCJH): Use @CANADIAN@.
4548 (ZIP_no): New macro.
4549 (ZIP_canadian): New macro.
4550 (ZIP): Use @CANADIAN@.
4551 * aclocal.m4, configure: Rebuilt.
4552 * configure.in (CANADIAN): Compute and subst.
4554 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4556 * java/io/FileDescriptor.java (finalize): Only close file
4557 descriptor if valid.
4559 1998-11-17 Tom Tromey <tromey@cygnus.com>
4561 * prims.cc (_Jv_InitRuntime): Removed.
4563 1998-11-16 Tom Tromey <tromey@cygnus.com>
4565 * java/io/FileOutputStream.java (close): Only close file
4566 descriptor if valid.
4567 (finalize): New method.
4569 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4570 (_Jv_NewPrimArray): Likewise.
4571 * boehm.cc (_Jv_RegisterFinalizer): Use
4572 GC_REGISTER_FINALIZER_NO_ORDER.
4573 (GC_GENERIC_MALLOC): New define.
4574 (_Jv_AllocObj): Use it.
4575 (_Jv_AllocArray): Likewise.
4576 (_Jv_AllocBytes): Likewise.
4577 (_Jv_MarkObj): Just return if vtbl not set.
4578 (_Jv_MarkArray): Likewise.
4579 (MAYBE_MARK): New macro; use everywhere.
4580 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4582 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4584 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4585 to a jlong before calculation to prevent overflow.
4587 1998-11-16 Tom Tromey <tromey@cygnus.com>
4589 * Makefile.in: Rebuilt.
4590 * Makefile.am (nat_headers): Fixed typo.
4592 1998-11-15 Tom Tromey <tromey@cygnus.com>
4594 * java/lang/Class.h (Class::getName): Removed definition.
4595 * Makefile.in: Rebuilt.
4596 * Makefile.am (nat_headers): Added InstantiationException.h,
4597 NoSuchMethodException.h.
4598 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4599 (init_name): New global.
4600 (hackRunInitializers): Use clinit_name.
4601 Include InstantiationException.h, NoSuchMethodException.h.
4602 (newInstance): Do some error checking (but not all). Call
4604 (forName): Throw exception if class not found.
4605 (getName): New method.
4606 (forName): Transform class name from external format to internal
4607 format before lookup.
4609 1998-11-15 Anthony Green <green@cygnus.com>
4611 * java/lang/Class.h (Class::forName): Method is static.
4613 * java/lang/natClass.cc (newInstance): Add simple implementation.
4616 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4618 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4619 int), for compatibility with jc1.
4621 1998-11-14 Tom Tromey <tromey@cygnus.com>
4623 * include/config.h.in: Rebuilt.
4624 * acconfig.h (LINUX_THREADS): New define.
4625 * configure: Rebuilt.
4626 * configure.in: Define LINUX_THREADS if using POSIX threads on
4627 Linux. Look for pthread_mutexattr_setkind_np function.
4628 * posix-threads.cc (throw_cleanup): New function.
4629 (really_start): Push cleanup function.
4630 (_Jv_ThreadCancel): New function.
4631 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4632 (_Jv_ThreadInitData): Set `exception' field in new structure.
4633 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4635 (_Jv_ThreadWait): New function.
4636 (_Jv_InitThreads): Initialize daemon globals.
4637 (FLAG_DAEMON): New macro.
4638 (really_start): Notify daemon_cond when non-daemon thread exits.
4639 Include <java/lang/System.h>.
4640 (struct starter): `object' field now a thread.
4641 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4642 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4643 (_Jv_ThreadWait): Removed definition.
4644 (_Jv_Thread_t): Added `exception' field.
4645 (_Jv_ThreadCancel): Removed definition.
4647 1998-11-13 Tom Tromey <tromey@cygnus.com>
4649 * Makefile.in: Rebuilt.
4650 * Makefile.am (libjava.zip): Compute javac before changing
4653 * Makefile.in: Rebuilt.
4654 * Makefile.am (libjava.zip): Include directory entries.
4656 * Makefile.in: Rebuilt.
4657 * Makefile.am (expanded): New macro.
4660 1998-11-12 Tom Tromey <tromey@cygnus.com>
4662 * prims.cc (clone): New function.
4663 * include/java-array.h (__JArray::clone): Removed definition.
4665 * java/lang/natObject.cc (clone): Don't assert that class is not
4666 an array; array's `clone' method just calls this one.
4668 * Makefile.in: Rebuilt.
4669 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4670 Now creates zip file. Changed all users.
4672 (data_DATA): New macro.
4674 1998-11-11 Tom Tromey <tromey@cygnus.com>
4676 * configure: Rebuilt.
4677 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4679 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4681 * java/io/InputStream.java (reset): Add msg to thrown exception.
4683 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4685 * java/io/LineNumberInputStream.java: Rewritten.
4687 * java/io/StringBufferInputStream.java: Removed extraneous import.
4689 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4691 * java/io/StringBufferInputStream.java: Rewritten.
4693 * java/util/Date.java (parseMonth): Optimize.
4694 (parseDayOfWeek): Created.
4695 (parse): Optimize to use parseDayOfWeek.
4697 1998-11-11 Tom Tromey <tromey@cygnus.com>
4699 * java/lang/StringBuffer.java (append): Handle case where STR is
4702 * include/javaprims.h: Regenerated class declarations.
4704 * configure: Rebuilt.
4705 * configure.in: Added --enable-gcj-classes,
4706 --enable-single-compilation, --enable-source-compilation flags.
4707 * Makefile.in: Rebuilt.
4708 * Makefile.am (java_io_files): New macro.
4709 (java_lang_files): Likewise.
4710 (java_text_files): Likewise.
4711 (java_util_files): Likewise.
4712 (java_files): Use new macros.
4713 (java-io.o): New target.
4714 (java-lang.o): Likewise.
4715 (java-text.o): Likewise.
4716 (java-util.o): Likewise.
4717 (src_io_files): New macro.
4718 (src_lang_files): Likewise.
4719 (src_text_files): Likewise.
4720 (src_util_files): Likewise.
4721 (class_io_files): New macro.
4722 (class_lang_files): Likewise.
4723 (class_text_files): Likewise.
4724 (class_util_files): Likewise.
4725 (class_files): Use new macros.
4726 (javao_files): Define conditionally.
4727 (.java.o): New target.
4728 ($(javao_files)): New target.
4730 (GCJH): Added $(EXEEXT).
4731 (CLASSPATH_ENV): Removed.
4732 (GCJCOMPILE): New macro.
4734 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4736 * java/util/Date.java (parse): Written from scratch.
4738 1998-11-11 Tom Tromey <tromey@cygnus.com>
4740 * java/lang/Throwable.java (toString): Correct sense of test for
4741 determining when to include detail message in result.
4743 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4746 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4748 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4750 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4751 (_Jv_RegisterClass): Use it.
4752 * include/jvm.h (_Jv_RegisterClasses): Declare.
4753 * java/lang/natObject.cc (init): Removed.
4754 (sync_init): Never call _Jv_InitializeSyncMutex.
4755 (_Jv_InitializeSyncMutex): Don't set `init'.
4756 * prims.cc (JvRunMain): Don't run init functions.
4758 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4760 * java/lang/natClass.cc (initializeClass): Set state before
4761 resolving constants.
4763 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4764 (STATE_RESOLVED): New macro.
4765 (initializeClass): Call resolveConstants.
4766 (hackRunInitializers): Don't call resolveConstants.
4767 (_Jv_FindArrayClass): Move short-circuit return for primitive
4768 element types earlier in function.
4770 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4772 * prims.cc (no_memory): New global.
4773 (_Jv_makeUtf8Const): Throw no_memory.
4774 (_Jv_AllocObject): Likewise.
4775 (_Jv_NewObjectArray): Likewise.
4776 (_Jv_NewPrimArray): Likewise.
4777 (JvRunMain): Initialize no_memory.
4779 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4781 * java/io/FileInputStream.java: Corrected date comment.
4782 * java/io/SequenceInputStream.java: Rewritten.
4784 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4786 * java/lang/FirstThread.java (die): New method.
4787 * java/lang/natFirstThread.cc (die): Removed.
4789 (run): Use `DIE', not `die'.
4791 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4793 * java/io/CharArrayReader.java (read): Move check into synchronized
4794 block to prevent a close while in progress.
4797 * java/io/PushbackReader.java (read): Ditto.
4800 * java/io/StringReader.java (mark): Ditto.
4805 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4807 * java/io/PipedInputStream.java: Updated status.
4808 (connect): Added code to prevent infinite recursion and to
4809 differentiate exception causes.
4810 (read): Added code to differentiate exception causes.
4811 (receive): Made exception pass string with the cause.
4813 * java/io/PipedOutputStream.java: Updated status.
4814 (connect): Added code to call connect at the other end of the pipe.
4816 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4818 * java/io/PipedInputStream.java (connect): Throw exception if
4819 already connected to the same output stream.
4820 (read): Do bounds checking first.
4822 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4824 * java/io/PipedInputStream.java: Added private boolean outClosed.
4825 (available): Removed check if output stream is open.
4826 (close): Mark the buffer as empty so available returns 0.
4827 (read): Check if the output stream was closed and then return EOF
4828 when the buffer is empty.
4829 (receive): Mark the output stream as closed when passed a -1.
4831 * java/io/PipedOutputStream.java (close): Notify the input stream
4832 that there's no more data coming.
4833 (connect): Added a FIXME comment to note more coordination needed
4834 with PipedInputStream.
4835 (flush): Added a FIXME comment to mark what this method might do
4838 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4840 * java/io/PipedInputStream.java: Rewritten.
4842 1998-10-30 Tom Tromey <tromey@cygnus.com>
4844 * java/lang/Throwable.java: Rewrote from scratch.
4846 * java/lang/Class.h (Class): Don't mention newMultiArray.
4847 * prims.cc (newMultiArray): Removed.
4848 (_Jv_NewMultiArray): Removed.
4849 (newArray): Removed.
4850 (new_multi_array): New function.
4851 (_Jv_NewMultiArray): Rewrote from scratch.
4853 * include/javaprims.h: Regenerated class declarations.
4854 * classes.pl (scan): Don't declare PrimClass.
4855 * include/cni.h (JvPrimClass): Use new names for classes.
4856 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4857 added _Jv_PrimClass.
4858 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4859 (_Jv_initPrimClass): Removed.
4860 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4861 (_Jv_AllocObject): Added comment.
4862 (_Jv_NewObjectArray): Likewise.
4863 (_Jv_NewPrimArray): Likewise.
4865 1998-10-29 Tom Tromey <tromey@cygnus.com>
4867 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4868 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4870 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4872 * java/lang/natObject.cc (init): New global.
4873 (sync_init): Call _Jv_InitializeSyncMutex if required.
4875 * Makefile.in: Rebuilt.
4876 * Makefile.am (nat_headers): Added ClassLoader.h.
4877 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4878 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4879 internalAddClass, lookupArray no longer friends.
4880 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4881 _Jv_FindArrayClass now friends.
4882 * java/lang/natClass.cc (HASH_LEN): New macro.
4883 (HASH_UTF): Likewise.
4884 (loaded_classes): New global.
4885 (_Jv_FindClass): New function.
4886 (ClassClass): New define.
4887 (_Jv_FindClassInCache): New function.
4888 (_Jv_RegisterClass): Likewise.
4889 (_Jv_NewClass): Likewise.
4891 (ObjectClass): New define.
4892 (CloneableClass): New define.
4893 * prims.cc (_Jv_FindClass): Removed.
4894 (simpleLookupClass): Removed.
4895 (insertClass): Removed.
4896 (CLASSHASHSZ): Removed.
4897 (classPool): Removed.
4898 (_Jv_RegisterClass): Removed.
4899 (internalAddClass): Removed.
4900 (ClassClass): Removed.
4901 (RuntimeClass): Removed.
4902 (lookupArray): Removed.
4903 (CloneableClass): Removed.
4904 (CLASSMAXSIG): Removed.
4905 Rearranged file to group related functions together.
4906 (_Jv_IsInstanceOf): Moved to natClass.cc.
4907 (abort_final): Removed.
4908 Removed some unused includes.
4909 (classFromSig): Removed.
4910 (_Jv_FindClassFromSignature): New function.
4911 (_Jv_initPrimClass): Renamed.
4912 (getClass): Removed.
4914 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4916 * java/io/FileDescriptor.java (finalize): Throws IOException
4917 instead of Throwable.
4919 * java/io/FileInputStream.java: Rewritten.
4921 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4922 at the end of a comment.
4924 1998-10-29 Tom Tromey <tromey@cygnus.com>
4926 * include/javaprims.h: Regenerated class declarations.
4927 * classes.pl (scan): Don't special-case ClassLoader.
4929 * prims.cc (processClass): Removed.
4930 (_Jv_InitClass): Removed.
4931 Removed all CSTATE_ macros.
4932 (resolveConstants): Removed.
4934 (_Jv_NewMultiArray): Cleaned up.
4935 * Makefile.in: Rebuilt.
4936 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4937 * java/lang/Class.h (Class): Declare new methods. processClass no
4939 * java/lang/Class.java (hackTrampoline): New method.
4940 (initializeClass): Declare.
4941 (hackRunInitializers): Declare.
4942 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4943 (initializeClass): New method.
4944 (hackRunInitializers): New method.
4945 (init_name, void_signature): Moved from prims.cc.
4946 (_Jv_InitClass): New function.
4947 (isAssignableFrom): Don't call processClass.
4948 (STATE_NOTHING): New macro.
4949 (resolveConstants): New function.
4951 (ErrorClass): New define.
4953 * java/lang/Class.java (getClassLoader): Declare.
4954 * java/lang/ClassLoader.java: Rewrote from scratch.
4956 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4957 AbstractMethodError.h, IllegalAccessError.h,
4958 NoClassDefFoundError.h.
4959 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4960 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4961 longer static. Changed return type.
4962 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4963 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4964 * prims.cc (findMethodLocal): Removed.
4965 (processClass): Use _Jv_GetMethodLocal.
4967 1998-10-28 Tom Tromey <tromey@cygnus.com>
4969 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4970 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4972 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4973 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4975 * include/jni.h: Added copyright header.
4976 * include/javaprims.h: Added copyright header.
4977 * include/java-field.h: Added copyright header.
4978 * include/java-array.h: Added copyright header.
4979 * include/cni.h: Added copyright header.
4981 * include/javaprims.h: Regenerated class declarations using
4982 classes.pl; now they are complete.
4983 * classes.pl: New file.
4985 * java/lang/natMath.cc: Include <config.h>.
4986 * java/lang/reflect/natField.cc: Include <config.h>.
4987 * java/util/NativeUtil.java: Removed.
4988 * Makefile.in: Rebuilt.
4989 * Makefile.am (nat_headers): Added Math.h.
4990 * java/lang/Math.h: Removed.
4991 * java/util/natGregorianCalendar.cc: Added copyright header.
4993 * java/lang/natFloat.cc: Added copyright header.
4994 * java/lang/Byte.java: Added copyright header.
4995 * java/lang/Void.java: Added copyright header.
4996 * java/lang/Short.java: Added copyright header.
4998 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
5000 * include/javaprims.h (java::io): Added bunch of missing classes.
5002 * java/io/DataInputStream.java (readLine): Added a special case
5003 for handling BufferedInputStream data to reduce the likelihood
5004 of a pushback error.
5005 (skipBytes): Added code to handle negative number of skip bytes.
5007 * java/io/StreamTokenizer.java: Rewritten.
5009 1998-10-28 Tom Tromey <tromey@cygnus.com>
5011 * java/util/natGregorianCalendar.cc (computeFields): Call
5012 getRawOffset as a method.
5014 * include/javaprims.h (java::io): Added FilterOutputStream.
5015 * Makefile.in: Rebuilt.
5016 * Makefile.am (nat_headers): Added PrintStream.h,
5017 FilterOutputStream.h.
5018 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5020 (die): New function.
5021 (run): Die if `main' not found, is not public, or is not static.
5023 * boehm.cc (_Jv_MarkObj): Use new field names.
5024 * include/java-field.h (JvGetFirstInstanceField): Use new field
5026 (JvNumInstanceFields): Likewise.
5027 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5028 (getInterfaces): Likewise.
5029 * prims.cc (CLASS_CONSTANTS): Removed.
5030 (CLASS_CONST_SIZE): Likewise.
5031 (CLASS_CONST_TAG): Likewise.
5032 (CLASS_CONST_DATA): Likewise.
5033 (CLASS_CONST_UTF8): Likewise.
5034 (WORD2UTF): Likewise.
5035 (CLASS_CLASS): Likewise.
5036 (CLASS_PRIM_SIG): Likewise.
5037 (CLASS_ARRAY_CACHE): Likewise.
5038 (HASH_CHARS): Likewise.
5039 (hashClassName): Likewise.
5040 Many changes to use new field names.
5041 * java/lang/Class.h (Class): Renamed fields to track compiler.
5043 1998-10-27 Tom Tromey <tromey@cygnus.com>
5045 * java/lang/natClass.cc: Use #pragma implementation.
5046 (getComponentType): Moved into header.
5047 (getModifiers): Likewise.
5048 (getName): Likewise.
5049 (getSuperclass): Likewise.
5050 (isArray): Likewise.
5051 (isPrimitive): Likewise.
5052 * include/jvm.h (_Jv_FindClass): Declare.
5053 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5054 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5055 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5056 * java/lang/Class.h: Rewrote from scratch.
5057 * prims.cc: Many changes to work with new Class.h.
5058 * include/java-field.h (CLASS_FIELDS): Removed.
5059 (CLASS_SFIELDS): Likewise.
5060 (CLASS_IFIELDS): Likewise.
5061 (CLASS_NFIELDS): Likewise.
5062 (CLASS_NIFIELDS): Likewise.
5063 (CLASS_NSFIELDS): Likewise.
5064 (CLASS_FSIZE): Likewise.
5065 (JvGetFirstInstanceField): Rewrote.
5066 (JvNumInstanceFields): Likewise.
5068 * java/lang/Object.h: Added copyright comment.
5070 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5072 * java/text: New package directory.
5073 * java/text/FieldPosition.java: New class.
5074 * java/text/ParsePosition.java: New class.
5075 * java/text/ParseException.java: New Exception class.
5076 * java/text/Format.java: New class.
5077 * java/text/NumberFormat.java: New (empty placeholder) class.
5078 * java/text/DateFormatSymbols.java: New class (no Locales support).
5079 * java/text/DateFormat.java: New Format class (incomplete).
5080 * java/text/SimpleDateFormat.java: New DateFormat class.
5082 * include/javaprims.h (java::test): Added new package and classes.
5083 * java/util/Calendar.java (clone): New method.
5084 * java/util/Date.java (toString): Added non-native implementation.
5085 (parse): Made public instead of synchronized.
5086 * java/util/natDate.cc (toString): Removed.
5087 * java/util/natGregorianCalendar.cc (computeFields):
5088 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5090 1998-10-27 Tom Tromey <tromey@cygnus.com>
5092 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5094 * prims.cc (lookupArray): Added explanatory comment.
5095 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5096 class. Mark the class of each object.
5097 (_Jv_MarkArray): Mark the object's class.
5099 * configure: Rebuilt.
5100 * configure.in: Create java-gc.h.
5101 * include/boehm-gc.h: New file.
5102 * include/no-gc.h: New file.
5103 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5105 * java/lang/Object.h: Include java-gc.h.
5106 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5107 friends, if defined.
5108 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5110 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5112 1998-10-26 Tom Tromey <tromey@cygnus.com>
5114 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5115 paragraph separators, not numbers.
5117 * java/io/Writer.java (write): Removed write(char) to avoid
5119 * java/util/Properties.java: Rewrote from scratch.
5120 * include/javaprims.h (java::io): Added PrintWriter,
5121 BufferedWriter, PushbackReader.
5123 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5125 * java/lang/System.java: exit() is a static method.
5127 1998-10-26 Tom Tromey <tromey@cygnus.com>
5129 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5131 (_Jv_NewStringUtf8Const): Likewise.
5132 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5133 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5135 * java/lang/Object.h (Object): Add mark_array as friend function.
5136 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5137 _Jv_AllocBytes, to ensure that header is marked.
5138 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5140 (mark_array): Push sync_info field for array.
5142 1998-10-24 Tom Tromey <tromey@cygnus.com>
5144 * java/lang/String.java (String): Updated for StringBuffer
5146 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5148 * java/lang/StringBuffer.java: Renamed fields to conform to
5149 serialization spec: buffer->value, next->count, copy->shared.
5151 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5153 * java/util/TimeZone.java: New class.
5154 * java/util/SimpleTimeZone.java: New class.
5155 * java/util/Locale.java: New file.
5156 * java/util/Calendar.java: Make almost complete.
5157 * java/util/GregorianCalendar.java
5158 * java/util/natGregorianCalendar.cc: New file.
5159 * java/util/Date.java: Re-written from scratch.
5160 * java/util/natDate.cc (setTime): Removed - no longer native.
5161 * include/javaprims.h (java::util): Add new classes.
5162 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5163 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5165 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5167 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5168 returning it as a jint.
5170 1998-10-23 Tom Tromey <tromey@cygnus.com>
5172 * prims.cc (arg_vec, main_group, main_thread): New globals.
5173 (JvRunMain): Use them.
5175 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5177 * java/io/DataInputStream.java: Rewritten.
5179 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5180 tertiary bytes with 0x80 per spec.
5182 1998-10-23 Tom Tromey <tromey@cygnus.com>
5184 * java/lang/String.java (init): Changed name of `copy' argument.
5185 * java/lang/natString.cc (init): Inverted sense of `copy'
5188 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5189 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5190 * boehm.cc (ObjectClass): New define.
5191 (ClassClass): Likewise.
5192 (mark_obj): Special-case Object and Class.
5194 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5196 * java/util/BitSet.java: Rewrote from scratch.
5198 * prims.cc (lookupArray): Removed useless cast.
5200 * java/lang/natObject.cc: Use `#pragma implementation'.
5202 * java/lang/String.java (init): Added `copy' argument.
5203 (String): Look in StringBuffer to find char array.
5204 * java/lang/natString.cc (init): Added `copy' argument.
5205 * java/lang/StringBuffer.java: Rewrote from scratch.
5207 * java/lang/Compiler.java: Rewrote from scratch.
5208 * java/lang/Throwable.java: Don't use NativeLang.
5209 * include/javaprims.h (java::lang): Don't mention NativeLang.
5210 * java/lang/Process.java: Rewrote from scratch.
5211 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5213 (currentClassLoader): Likewise.
5214 (currentLoadedClass): Likewise.
5215 * java/lang/natClass.cc (getClassLoader): Commented out.
5216 * java/lang/Class.java (getClassLoader): Commented out.
5217 * java/lang/Compiler.java: Removed.
5218 * java/lang/NativeLang.java: Removed.
5220 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5221 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5222 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5223 (_Jv_hashUtf8String): Now static.
5224 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5225 name of return type.
5227 * java/lang/Class.h (Class): Declare checkMemberAccess.
5228 * Makefile.in: Rebuilt.
5229 * Makefile.am (nat_headers): Added Member.h.
5230 * java/lang/natClass.cc: Include Member.h.
5231 (getDeclaredClasses): Call checkMemberAccess.
5232 * java/lang/Class.java (checkMemberAccess): Call
5233 SecurityManager.checkMemberAccess.
5235 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5237 * java/lang/SecurityManager.java: Rewritten.
5239 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5241 * java/applet/Applet.java, java/applet/AppletContext.java,
5242 java/applet/AppletStub.java, java/applet/AudioClip.java,
5243 java/awt/AWTError.java, java/awt/AWTException.java,
5244 java/awt/BorderLayout.java, java/awt/Button.java,
5245 java/awt/Canvas.java, java/awt/CardLayout.java,
5246 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5247 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5248 java/awt/Color.java, java/awt/Component.java,
5249 java/awt/Container.java, java/awt/Dialog.java,
5250 java/awt/Dimension.java, java/awt/Event.java,
5251 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5252 java/awt/Font.java, java/awt/FontMetrics.java,
5253 java/awt/Frame.java, java/awt/Graphics.java,
5254 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5255 java/awt/GridLayout.java, java/awt/Image.java,
5256 java/awt/Insets.java, java/awt/Label.java,
5257 java/awt/LayoutManager.java, java/awt/List.java,
5258 java/awt/MediaTracker.java, java/awt/Menu.java,
5259 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5260 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5261 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5262 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5263 java/awt/TextArea.java, java/awt/TextComponent.java,
5264 java/awt/TextField.java, java/awt/Toolkit.java,
5265 java/awt/Window.java, java/awt/image/ColorModel.java,
5266 java/awt/image/CropImageFilter.java,
5267 java/awt/image/DirectColorModel.java,
5268 java/awt/image/FilteredImageSource.java,
5269 java/awt/image/ImageConsumer.java,
5270 java/awt/image/ImageFilter.java,
5271 java/awt/image/ImageObserver.java,
5272 java/awt/image/ImageProducer.java,
5273 java/awt/image/IndexColorModel.java,
5274 java/awt/image/MemoryImageSource.java,
5275 java/awt/image/PixelGrabber.java,
5276 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5277 java/awt/peer/CanvasPeer.java,
5278 java/awt/peer/CheckboxMenuItemPeer.java,
5279 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5280 java/awt/peer/ComponentPeer.java,
5281 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5282 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5283 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5284 java/awt/peer/MenuBarPeer.java,
5285 java/awt/peer/MenuComponentPeer.java,
5286 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5287 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5288 java/awt/peer/TextAreaPeer.java,
5289 java/awt/peer/TextComponentPeer.java,
5290 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5291 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5292 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5293 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5294 java/net/MalformedURLException.java, java/net/NativeNet.java,
5295 java/net/ProtocolException.java, java/net/ServerSocket.java,
5296 java/net/Socket.java, java/net/SocketException.java,
5297 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5298 java/net/URL.java, java/net/URLConnection.java,
5299 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5300 java/net/URLStreamHandlerFactory.java,
5301 java/net/UnknownHostException.java,
5302 java/net/UnknownServiceException.java: Removed.
5304 1998-10-22 Tom Tromey <tromey@cygnus.com>
5306 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5307 finalizer is not Object.finalize.
5308 (internalAddClass): Don't set `final' member of class.
5309 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5310 other places that know about finalize() location.
5311 * java/lang/Class.h (Class): Removed `final' field.
5313 * aclocal.m4, configure: Rebuilt.
5314 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5315 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5317 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5318 * Makefile.in: Rebuilt.
5319 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5321 1998-10-21 Tom Tromey <tromey@cygnus.com>
5323 * java/lang/Object.java (finalize): Move to be first method in
5326 * configure: Rebuilt.
5327 * configure.in (GCINCS): Include contents of boehm-cflags file.
5329 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5331 * java/lang/ArrayIndexOutOfBoundsException.java
5332 (ArrayIndexOutOfBoundsException): Fixed string literal.
5333 * java/lang/StringIndexOutOfBoundsException.java
5334 (StringIndexOutOfBoundsException): Fixed string literal.
5336 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5338 * natFileDescriptorEcos.cc added.
5339 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5341 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5343 * acconfig.h: test for __int32_t and __uint32_t added.
5344 * include/config.h.in: test for __int32_t and __uint32_t added.
5345 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5346 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5347 * configure.in: test for __int32_t and __uint32_t added.
5348 * configure: test for __int32_t and __uint32_t added.
5350 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5352 * configure.in: Test for --enable ecos and link
5353 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5354 natFileDescriptorPosix.cc
5356 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5358 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5360 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5363 * java/io/CharArrayReader.java (close): Synchronize on lock
5364 object per Reader contract.
5365 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5366 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5367 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5368 Ensure that arg passed in isn't negative.
5370 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5371 constructing the superclass.
5373 * java/io/PushbackReader.java (close): Synchronize on lock
5374 object per Reader contract.
5375 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5376 (ready): Synchronize on lock obj. Throw IOException if reader
5378 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5379 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5380 Ensure that arg passed in isn't negative.
5381 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5383 * java/io/StringReader.java: Created.
5385 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5387 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5389 (read): Removed synchronized modifier to match JCL.
5390 (reset): Removed synchronized modifier to match JCL.
5391 (skip): Removed synchronized modifier to match JCL.
5393 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5395 * java/io/PushbackReader.java (PushbackReader): Made
5396 constructors public.
5398 1998-10-17 Tom Tromey <tromey@cygnus.com>
5400 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5401 constructors public.
5403 1998-10-16 Anthony Green <green@cygnus.com>
5405 * aclocal.m4, configure: Rebuilt.
5406 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5408 * configure.host: Rewrote.
5409 * Makefile.in: Rebuilt.
5410 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5411 (AM_CFLAGS): New macro.
5412 ($(c_files)): Use COMPILE macro.
5413 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5414 automake problem(s).
5416 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5418 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5420 * java/io/CharArrayReader.java: Created.
5422 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5424 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5425 size check to allow 0 per JCL.
5427 * java/io/PushbackReader.java: Created.
5429 1998-10-16 Tom Tromey <tromey@cygnus.com>
5431 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5432 <sys/time.h> includes.
5433 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5434 * include/no-threads.h: Conditionalize <unistd.h> include on
5437 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5439 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5442 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5444 * java/io/FilterReader.java: Created.
5446 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5448 * java/io/PushbackInputStream.java: Rewritten.
5450 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5451 that size passed to constructor is legal.
5452 (read): Check that args passed in are legal.
5453 (skip): Rewritten to get rid of the temporary buffer.
5454 (refill): Added marklimit check to grow the buffer.
5456 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5458 (bytesAvail): Removed.
5459 (read): Changed bytesAvail to Math.min.
5460 (skip): Changed bytesAvail to Math.min.
5462 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5463 from the throws clause.
5464 (skip): Rewritten to use a temporary buffer.
5466 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5468 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5471 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5473 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5474 to write the double one word at a time.
5476 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5478 * java/io/BufferedInputStream.java: Rewritten.
5480 1998-10-12 Tom Tromey <tromey@cygnus.com>
5482 * jni.cc: Include config.h and stddef.h.
5484 * java/lang/Class.h (_dispatchTable): Removed again.
5485 Removed all ACC_* defines again.
5487 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5489 * Makefile.am (nat_files): Add netField.o.
5490 (libjava_a_SOURCES): Add jni.cc.
5491 (java/lang/reflect/Field.h): New rule.
5492 * Makefile.in: Re-generated.
5493 * include/javaprims.h: Add some extra class and typedefs.
5494 * include/jni.h: New file.
5497 * include/java-field.h: New file.
5498 * include/jvm.h: #include <java-field.h>.
5499 * boehm.cc: #include <java-field.h>.
5500 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5501 * java/lang/reflect/Member.java: New class.
5502 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5503 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5505 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5507 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5508 testsuite/Makefile.in: Rebuilt.
5509 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5510 * configure.host: Created.
5512 1998-10-10 Tom Tromey <tromey@cygnus.com>
5514 * java/lang/natObject.cc (sync_init): Always allocate a new
5517 1998-10-09 Tom Tromey <tromey@cygnus.com>
5519 * java/io/ByteArrayInputStream.java (mark): Renamed from
5522 * java/io/FileOutputStream.java (finalize): Removed.
5523 * java/io/FileDescriptor.java (finalize): New method.
5525 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5527 * ByteArrayInputStream.java: Corrected status comment.
5529 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5531 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5533 1998-10-08 Tom Tromey <tromey@cygnus.com>
5535 * prims.cc (lookupArray): Use static array to initialize list of
5538 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5540 * prims.cc (lookupArray): Initialize the msize for new
5543 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5545 * configure: Rebuilt.
5546 * configure.in: Check for fsync and sleep.
5547 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5549 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5550 HAVE_SLEEP. Include config.h.
5552 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5553 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5556 1998-10-08 Tom Tromey <tromey@cygnus.com>
5558 * java/io/natFile.cc: Don't include SecurityManager.h.
5559 (performList): Renamed.
5560 (performMkdir): Likewise.
5561 (performRenameTo): Likewise.
5562 (performDelete): Likewise.
5564 * java/io/File.java (performDelete): Renamed from natDelete.
5565 (list): Now written in Java.
5566 (performList): New method.
5567 (performMkdir): New method.
5568 (mkdir): Now written in Java.
5569 (performRenameTo): New method.
5570 (renameTo): Now written in Java.
5572 1998-10-06 Tom Tromey <tromey@cygnus.com>
5574 * Makefile.in: Rebuilt.
5575 * Makefile.am (ETAGS_ARGS): New macro.
5576 (TAGS_DEPENDENCIES): Likewise.
5578 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5580 * Makefile.in: Rebuilt.
5581 * Makefile.am: Use -classpath option with javac.
5583 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5585 * java/io/FileOutputStream.java (finalize): Call
5588 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5590 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5592 * java/lang/mprec.c: Ditto.
5594 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5597 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5599 * java/io/InputStream.java (skip): Make local var i a long.
5601 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5603 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5604 * prims.cc (lookupArray): Use memcpy, not memmove.
5605 * include/config.h.in: Rebuilt.
5606 * acconfig.h (HAVE_MEMCPY): Added.
5607 * configure: Rebuilt.
5608 * configure.in: Check for memcpy again.
5610 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5611 String.compareTo, not ==.
5613 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5614 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5615 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5616 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5617 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5618 into new array's dtable.
5619 (_Jv_AllocObject): Use _Jv_DispatchTable.
5620 (_Jv_NewPrimArray): Likewise.
5621 (_Jv_NewObjectArray): Likewise.
5623 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5625 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5626 offending index value.
5627 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5629 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5630 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5632 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5634 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5636 * java/io/OutputStream.java (write): Use off and len parameters to
5637 output partial byte array.
5639 * java/io/BufferedReader.java, java/io/FileReader.java,
5640 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5641 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5642 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5643 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5645 * include/javaprims.h (java::lang): Added
5646 ExceptionInInitializerError, IllegalStateException,
5647 NoSuchFieldException, and UnsupportedOperationException.
5649 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5651 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5654 * include/java-array.h (__JArray): Added clone method.
5655 * prims.cc (CloneableClass): New define.
5656 (lookupArray): Initialize array class to indicate that it
5657 implements Cloneable.
5659 * java/lang/Class.h: Removed all ACC_* defines.
5660 * prims.cc: Include Modifier.h.
5661 (_Jv_LookupInterfaceMethod): Use methods in
5662 java.lang.reflect.Modifier, not ACC_ defines.
5664 * java/lang/Class.h (Class): Declare getClasses,
5665 getDeclaredClasses, getDeclaringClass, getModifiers,
5666 * java/lang/Class.java: Rewrote from scratch.
5668 * include/javaprims.h (java::lang): Added reflect and
5670 * Makefile.in: Rebuilt.
5671 * Makefile.am (nat_headers): Added Modifier.h.
5673 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5676 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5678 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5679 instead of test and abort.
5681 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5682 remove compiler warning.
5684 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5686 * java/lang/natDouble.cc: zero terminate string.
5687 * strtod.c: Set errno if no digits are found in fraction.
5689 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5691 * java/lang/reflect/Modifier.java: New file.
5693 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5694 * java/lang/VerifyError.java: Rewrote from scratch.
5695 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5696 * java/lang/UnknownError.java: Rewrote from scratch.
5697 * java/lang/StackOverflowError.java: Rewrote from scratch.
5698 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5699 * java/lang/InternalError.java: Rewrote from scratch.
5700 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5701 * java/lang/ExceptionInInitializerError.java: New file.
5702 * java/lang/Error.java: Rewrote from scratch.
5703 * java/lang/ClassFormatError.java: Rewrote from scratch.
5704 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5705 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5706 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5707 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5708 * java/lang/LinkageError.java: Rewrote from scratch.
5709 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5711 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5713 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5714 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5716 * include/cni.h (JvAllocObject): Moved from prims.cc.
5718 * prims.cc (JvAllocObject): Moved to cni.h.
5719 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5720 (finalize_name): Removed.
5722 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5724 * java/lang/Class.h (Class): Added size() method.
5725 * prims.cc (_Jv_MonitorEnter): Removed.
5726 (_Jv_MonitorExit): Removed.
5727 * java/lang/Object.h (JvSyncInfo): Removed.
5728 * Makefile.in: Rebuilt.
5729 * Makefile.am (nat_headers): Added Cloneable.h,
5730 CloneNotSupportedException.h.
5731 * java/lang/Object.h: Rewrote.
5732 * java/lang/natObject.cc: Rewrote from scratch.
5733 * java/lang/Object.java: Rewrote from scratch.
5735 * java/io/natFile.cc: Conditionally include <dirent.h>.
5736 (list): If no <dirent.h>, always return NULL.
5737 * configure: Rebuilt.
5738 * configure.in: Check for dirent.h.
5740 * prims.cc (lookupArray): Don't use sprintf.
5742 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5749 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5750 name conflict with method.
5752 * include/javaprims.h (java::util): Added HashtableEntry.
5754 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5756 * java/util/Hashtable.java: Rewritten.
5758 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5760 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5764 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5767 * posix-threads.cc (_Jv_CondWait): Now returns int.
5768 * include/javaprims.h (java::lang): Added
5769 IllegalMonitorStateException.
5770 * Makefile.in: Rebuilt.
5771 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5772 * include/no-threads.h (_Jv_CondDestroy): Removed.
5773 (_Jv_MutexDestroy): Removed.
5774 (_Jv_CondWait): Now returns int.
5775 (_Jv_CondNotify): Likewise. Added mutex argument.
5776 (_Jv_CondNotifyAll): Likewise.
5777 (_Jv_MutexLock): Always succeed.
5778 (_Jv_MutexUnlock): Likewise.
5779 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5780 (_Jv_HaveMutexDestroy): Define.
5781 (_Jv_CondNotify): Now returns int. Added mutex argument.
5782 (_Jv_CondNotifyAll): Likewise.
5783 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5784 (_Jv_MutexDestroy): Removed.
5785 (_Jv_CondWait): Now returns int.
5786 (_Jv_CondNotify): Likewise. Added mutex argument.
5787 (_Jv_CondNotifyAll): Likewise.
5788 * java/lang/natObject.cc (finalize_sync_info): New function.
5789 (init_mutex): Initialize `init' and register finalizer if
5792 (init_mutex): Use it.
5794 (notifyAll): Use it.
5796 (notify): Throw IllegalMonitorStateException on failure.
5797 (notifyAll): Likewise.
5798 (wait): Likewise. Also, throw InterruptedException if
5800 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5801 InterruptedException.h, IllegalArgumentException.h.
5802 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5804 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5805 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5806 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5807 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5808 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5809 * quick-threads.cc: Renamed all `JvPriv' functions.
5810 * prims.cc: Renamed all `JvPriv' functions.
5811 * posix-threads.cc: Renamed all `JvPriv' functions.
5812 * nogc.cc: Renamed all `JvPriv' functions.
5813 * no-threads.cc: Renamed all `JvPriv' functions.
5814 * boehm.cc: Renamed all `JvPriv' functions.
5815 * include/quick-threads.h: Renamed all `JvPriv' functions.
5816 * include/posix-threads.h: Renamed all `JvPriv' functions.
5817 * include/no-threads.h: Renamed all `JvPriv' functions.
5818 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5820 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5822 (JvPrivCondNotify): Do nothing.
5823 (JvPrivCondNotifyAll): Do nothing.
5825 * prims.cc (processClass): Handle case where state is
5828 * java/lang/natFirstThread.cc: Include <stdlib.h>
5830 * configure: Rebuilt.
5831 * configure.in: Fixed sense of --enable-libjava-debug.
5833 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5834 it can be used afterward by the assertion.
5836 * configure: Rebuilt.
5837 * configure.in: When cross-compiling, assume alloca.
5839 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5840 __builtin_alloca (autoconf docs are wrong here).
5842 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5844 (available): Use `FD_ZERO' (typo fix).
5846 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5848 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5849 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5851 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5852 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5855 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5857 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5859 * java/lang/natDouble.cc: Declare alloca safely.
5861 * configure, include/config.h.in: Rebuilt.
5862 * configure.in: Add alloca check.
5864 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5866 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5867 condition while calling notify.
5868 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5869 (interrupt): Hold mutex for interrupt condition while calling
5872 * java/lang/natString.cc (init): Allocate and try to read `count'
5873 characters, not `count - offset' characters.
5875 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5876 Correctly compute `count'.
5878 * java/lang/Boolean.java (getBoolean): Return false if property
5881 * java/lang/System.java (setProperties): Set prop_init.
5883 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5885 * java/io/PrintStream.java (println): Use line.separator, not
5887 * java/lang/System.java (out, err): Make both autoflush streams.
5888 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5890 * include/config.h.in: Rebuilt.
5891 * acconfig.h (HAVE_MEMCPY): Removed.
5892 * configure: Rebuilt.
5893 * configure.in: Never define HAVE_MEMCPY.
5895 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5897 (_Jv_AllocString): Use JvAllocObject again.
5898 * java/lang/Class.h (thread): New field.
5899 (_Jv_AllocString): No longer a friend.
5900 * prims.cc (processClass): Removed dead code. Changed to more
5901 closely follow the Java Language Specification.
5902 (processClass): Return early if already at the right state.
5904 * prims.cc (JvNewStringUTF): Removed.
5905 * include/cni.h (JvNewStringUTF): New function.
5906 (_Jv_NewStringUTF): Declare as `extern "C"'.
5907 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5909 * java/lang/natDouble.cc: Added copyright info and header
5910 comment. Include <stdlib.h>.
5911 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5912 bytes as are chars in string.
5914 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5916 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5920 * java/lang/System.java (init_properties): Now native.
5921 * java/lang/natSystem.cc (init_properties): New method.
5922 Include java/util/Properties.h.
5924 * Makefile.in: Rebuilt.
5925 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5926 OutputStreamWriter.h, ByteArrayInputStream.h,
5927 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5928 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5929 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5930 Properties.h, Hashtable.h, Dictionary.h.
5933 * include/javaprims.h (java::io): Added Reader, Writer,
5934 InputStreamReader, OutputStreamWriter,
5935 UnsupportedEncodingException, ByteArrayInputStream,
5936 ByteArrayOutputStream, EOFException, SyncFailedException,
5937 PushbackInputStream.
5938 (java::lang): Added Cloneable.
5939 (java::util): Added NoSuchElementException, VectorEnumeration,
5940 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5942 * java/io/PipedReader.java: New file.
5944 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5946 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5949 * java/io/io-defs.h: Removed.
5951 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5952 (FileInputStream): Use new constructor. Can throw IOException.
5954 * java/lang/System.java (getProperty): Don't throw
5955 NullPointerException.
5957 * java/io/RandomAccessFile.java: Rewrote from scratch.
5959 * java/io/natFileDescriptor.cc: Include EOFException.h.
5961 (length): New method.
5962 (getFilePointer): New method.
5964 (available): New method.
5965 * java/io/FileDescriptor.java (SET, CUR): New constants.
5966 (seek, length, getFilePointer, read, available): New decls.
5968 * java/io/PipedWriter.java: New file.
5969 * java/io/StringWriter.java: New file.
5970 * java/io/CharArrayWriter.java: New file.
5971 * java/io/CharConversionException.java: New file.
5972 * java/io/BufferedWriter.java: New file.
5973 * java/io/FilterWriter.java: New file.
5974 * java/io/FileWriter.java: New file.
5976 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5977 OutputStreamWriter.h, NullPointerException.h,
5978 ByteArrayInputStream.h, InputStreamReader.h.
5979 (getBytes): New method.
5980 (init): Throw NullPointerException.
5981 (init): New function.
5982 * java/lang/String.java (getBytes): Added missing decl.
5983 (getBytes): New method.
5984 (String): Added byte[]-based constructors.
5985 (copyValueOf): Wrote.
5986 (init): Declare variant which takes byte array and encoding.
5987 Import java.io.UnsupportedEncodingException.
5989 * java/io/File.java: Rewrote from scratch.
5990 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5991 * java/io/FileDescriptor.java: Rewrote from scratch.
5992 * java/io/FilenameFilter.java: Rewrote from scratch.
5994 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5996 * java/io/SyncFailedException.java: New file.
5997 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5998 * java/io/InterruptedIOException.java: Rewrote from scratch.
5999 * java/io/FileNotFoundException.java: Rewrote from scratch.
6000 * java/io/EOFException.java: Rewrote from scratch.
6001 * java/io/IOException.java: Rewrote from scratch.
6002 * java/io/PrintStream.java: Rewrote from scratch.
6003 * java/io/DataOutputStream.java: Rewrote from scratch.
6004 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6005 * java/io/FilterOutputStream.java: Rewrote from scratch.
6006 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6007 * java/io/PipedOutputStream.java: Rewrote from scratch.
6008 * java/io/FileOutputStream.java: Rewrote from scratch.
6009 * java/io/OutputStream.java: Rewrote from scratch.
6010 * java/io/DataOutput.java: Rewrote from scratch.
6012 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6014 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6016 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6018 * configure.in: Add --enable-libjava-debug
6020 * Makefile.am (nat_headers): Add java/lang/Float.h and
6023 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6025 * Makefile.in, configure, include/config.h.in: Rebuilt.
6027 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6029 * java/lang/Float.java: Rewritten
6030 * java/lang/Double.java: Rewritten
6031 * java/lang/natFloat.cc: toString() added.
6032 * java/lang/natDouble.cc: toString() added.
6033 * java/lang/natDouble.cc: doubleValueOf() added.
6034 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6035 java/lang/strtod.c: added.
6036 * ieeefp.h: __sparc added.
6037 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6039 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6041 * include/javaprims.h (java::lang): Added
6042 CloneNotSupportedException.
6044 * java/lang/Object.java (clone): No longer native. Implemented.
6045 * java/lang/natObject.cc (clone): Removed.
6047 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6049 * prims.cc: Don't make definitions `extern "C"'.
6050 (_Jv_RegisterClass): Renamed from registerClass.
6051 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6052 (_Jv_NewArray): Likewise.
6053 (_Jv_NewMultiArray): Likewise.
6054 (_Jv_CheckCast): Likewise.
6055 (_Jv_LookupInterfaceMethod): Likewise.
6056 (_Jv_CheckArrayStore): Likewise.
6057 (_Jv_RegisterClass): Likewise.
6059 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6060 * configure: Rebuilt.
6061 * configure.in: Don't check for fmod; it is provided by the fdlibm
6063 * prims.cc (fmod): Removed.
6065 * java/lang/natString.cc (charAt): Use _Jv_uint.
6066 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6067 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6068 (equalUtf8Consts): Likewise.
6069 (internalAddClass): Use _Jv_uint.
6070 (processClass): Likewise.
6071 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6072 (_Jv_uint): Renamed from uint32.
6073 (struct _Jv_Utf8Const): Changed members to use new type names.
6075 * configure: Rebuilt.
6076 * configure.in: Don't check for memcpy. Require memmove and a way
6078 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6080 (currentTimeMillis): Don't use #error.
6082 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6084 * java/lang/Math.java: static member random renamed to random_ to
6085 avoid conflict with member function of the same name.
6086 * include/javaprims.h: java.util.Random added.
6088 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6090 * include/java-chartables.h: Regenerated.
6091 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6094 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6096 * java/lang/Math.java: Rewritten.
6097 * java/lang/natMath.cc: New file.
6098 * Files added from fdlibm:
6099 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6100 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6101 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6102 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6103 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6104 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6105 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6106 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6107 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6108 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6109 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6110 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6111 java/lang/k_cos.c, java/lang/sf_ceil.c,
6112 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6113 java/lang/ieeefp.h, java/lang/fdlibm.h
6114 * Makefile.am: rules added for compiling C files from fdlibm.
6116 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6118 * chartables.pl: Minor documentation fixes.
6120 * configure: Rebuilt.
6121 * configure.in: Fixed --help output for --enable-fast-character.
6123 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6125 * configure: Rebuilt.
6126 * configure.in: Recognize --enable-fast-character.
6127 * acconfig.h (COMPACT_CHARACTER): New define.
6128 * include/config.h.in: Rebuilt.
6129 * include/java-chartables.h: New file.
6130 * Makefile.in: Rebuilt.
6131 * Makefile.am (nat_files): Added natCharacter.o.
6132 * java/lang/natCharacter.cc: New file.
6133 * chartables.pl (set_attribute): New function.
6134 (@attributes, @second_attributes): New globals.
6135 ($ROMAN_START, $ROMAN_END): Likewise.
6136 (process_char): Call set_attribute when required.
6137 (print_char): Just print hex value.
6138 (print_block): Generate C++ syntax.
6139 (print_numerics): Likewise.
6140 (print_single_map): Likewise.
6141 (print_all_block): Likewise.
6142 (print_case_table): Likewise.
6143 (print_fast_tables): New function.
6144 Generate C++ code suitable for a header file.
6145 * java/lang/Character.java (table_search): Removed.
6146 (digit_value): Now native.
6147 (getNumericValue): Likewise.
6148 (getType): Likewise.
6149 Removed all automatically-generated tables.
6150 (Tamil_Digit_One): Removed.
6151 (isSpaceChar): Now native.
6152 (isTitleCase): Likewise.
6153 (isLowerCase): Likewise.
6154 (isUpperCase): Likewise.
6155 (toLowerCase): Likewise.
6156 (toTitleCase): Likewise.
6157 (toUpperCase): Likewise.
6158 (isDefined): Fixed sense of test.
6160 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6162 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6164 (regionMatches): Likewise.
6166 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6168 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6170 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6172 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6175 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6178 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6180 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6182 * prims.cc (instanceof_class): Removed.
6183 (instanceof_array): Likewise.
6184 (instanceof): Likewise.
6185 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6186 (_Jv_CheckCast): Likewise.
6187 * java/lang/natClass.cc (isAssignableFrom): New method.
6188 * java/lang/Class.java (isAssignableFrom): Now native.
6190 * include/cni.h (JvThrow): Use `extern inline'.
6191 (JvAllocObject): Likewise.
6192 (JvInitClass): Likewise.
6194 * java/lang/natSystem.cc (arraycopy): Only check class of source
6197 * prims.cc (_Jv_CheckArrayStore): Wrote.
6198 (_Jv_MonitorEnter): Prefer `JvThrow'.
6199 Include ArrayStoreException.h.
6200 (_Jv_CheckCast): Indentation cleanup.
6202 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6204 * chartables.pl: New file.
6205 * java/lang/Character.java: Rewrote from scratch.
6207 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6209 * java/lang/ArithmeticException.java,
6210 java/lang/ArrayIndexOutOfBoundsException.java,
6211 java/lang/ArrayStoreException.java,
6212 java/lang/ClassCastException.java,
6213 java/lang/ClassNotFoundException.java,
6214 java/lang/CloneNotSupportedException.java,
6215 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6216 java/lang/IllegalArgumentException.java,
6217 java/lang/IllegalMonitorStateException.java,
6218 java/lang/IllegalThreadStateException.java,
6219 java/lang/IndexOutOfBoundsException.java,
6220 java/lang/InstantiationException.java,
6221 java/lang/InterruptedException.java,
6222 java/lang/NegativeArraySizeException.java,
6223 java/lang/NoSuchMethodException.java,
6224 java/lang/NullPointerException.java,
6225 java/lang/NumberFormatException.java,
6226 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6227 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6229 * java/lang/IllegalStateException.java,
6230 java/lang/NoSuchFieldException.java,
6231 java/lang/UnsupportedOperationException.java: Created.
6233 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6235 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6236 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6238 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6240 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6242 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6244 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6246 * Makefile.in: Rebuilt.
6248 * include/javaprims.h (java::lang): Added
6249 StringIndexOutOfBoundsException.
6251 * java/lang/String.java: Added header comment and FIXME comment for
6252 missing constructors/methods.
6253 (endsWith): Adjusted offset into string to look at just the last chars.
6254 Commented out undocumented method.
6256 * java/lang/natString.cc: Added includes for
6257 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6258 (String::init): Throw StringIndexOutOfBoundsException.
6259 (String::charAt): Throw StringIndexOutOfBoundsException.
6260 (String::substring): Throw StringIndexOutOfBoundsException.
6261 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6262 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6263 (String::compareTo): Return difference/offset between chars/strings.
6265 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6267 * java/lang/Boolean.java (TYPE): Added comment.
6269 * java/lang/Byte.java (decode): Added - commented out until dependent
6270 code for Integer is written.
6271 (compareTo): JDK 1.2 methods written.
6272 (hashCode): Added comment to note that values have been verified.
6274 * java/lang/Short.java (decode): Added - commented out until dependent
6275 code for Integer is written.
6276 (compareTo): JDK 1.2 methods written.
6277 (hashCode): Added comment to note that values have been verified.
6279 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6281 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6283 * include/javaprims.h (java::lang): Added VirtualMachineError,
6285 * Makefile.in: Rebuilt.
6286 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6287 VirtualMachineError.h.
6288 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6289 (lookupArray): Likewise.
6290 (makeUtf8Const): Likewise.
6291 (_Jv_AllocObject): Likewise.
6292 (_Jv_NewObjectArray): Likewise.
6293 Include OutOfMemoryError.h.
6295 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6296 to use JvNewStringLatin1.
6298 * java/io/io-defs.h: Include java/lang/IOException.h.
6299 * Makefile.in: Rebuilt.
6300 * Makefile.am (nat_headers): Added
6301 ArrayIndexOutOfBoundsException.h,
6302 ClassFormatError.h,ClassNotFoundException.h,
6303 ClassCircularityError.h, ClassCastException.h,
6304 IncompatibleClassChangeError.h, AbstractMethodError.h,
6305 IllegalAccessError.h, LinkageError.h, Error.h,
6306 NegativeArraySizeException.h, IOException.h.
6307 * include/cni.h (SignalError): Removed declaration.
6308 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6309 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6310 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6311 (newInstance): Likewise.
6312 (forName): Likewise.
6313 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6315 (read): Use JvThrow, not SignalError.
6320 (open_read): Likewise.
6321 (open_write): Likewise.
6324 (newstr): New function.
6325 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6327 (lastModifiedUnchecked): Likewise.
6328 (lengthUnchecked): Likewise.
6329 * include/javaprims.h (sorry): Removed declaration.
6330 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6331 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6332 ClassCastException, IncompatibleClassChangeError,
6333 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6334 * prims.cc (instanceof_array): Use JvFail, not sorry.
6336 Include ArrayIndexOutOfBoundsException.h,
6337 ClassFormatError.h,ClassNotFoundException.h,
6338 ClassCircularityError.h, ClassCastException.h,
6339 IncompatibleClassChangeError.h, AbstractMethodError.h,
6340 IllegalAccessError.h, NegativeArraySizeException.h.
6341 (_Jv_ThrowBadArrayIndex): Implemented.
6342 (JvNewStringUTF): Use JvFail, not sorry.
6343 (_Jv_FindClass): Likewise.
6344 (_Jv_NewArray): Likewise.
6345 (throwException): Removed.
6346 (getClass): Use JvThrow.
6347 (processClass): Likewise.
6348 (_Jv_NewObjectArray): Likewise.
6349 (_Jv_NewMultiArray): Likewise.
6350 (_Jv_CheckCast): Likewise.
6351 (_Jv_LookupInterfaceMethod): Likewise.
6352 (SignalError): Removed.
6353 (getClass): Use _Jv_NewStringUtf8Const to create String.
6355 * java/lang/natSystem.cc (arraycopy): Throw
6356 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6358 * Makefile.in: Rebuilt.
6359 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6361 * include/java-array.h: Mention gcjh, not gjavah.
6363 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6364 (canReadUnchecked): Likewise.
6365 (canWriteUnchecked): Likewise.
6366 (isFileUnchecked): Likewise.
6367 * java/io/natFileDescriptor.cc: Don't include cni.h.
6369 * java/lang/Thread.java (run__): Declare.
6370 * java/lang/natThread.cc (run__): New method, to avoid compiler
6372 (start): Use run__, not run_.
6374 * java/io/io-defs.h: Include cni.h and jvm.h.
6376 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6378 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6379 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6380 to natString.cc (with suitable renaming, inlines etc).
6381 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6382 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6383 * java/lang/String.h: Removed - now generated using gjavah.
6384 * java/lang/String.java: Re-written from scratch. Many native methods.
6385 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6386 * java/lang/natString.cc: Many functions re-written for "compact
6387 strings" representation, or native java.lang.String methods added.
6388 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6389 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6390 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6391 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6392 * include/cni.h: Add inline method.
6393 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6394 * include/javaprims.h: Moved some stuff frm String.h.
6395 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6396 * Makefile.am (nat_header): Added Character.h and String.h.
6397 (String.h): Add new rule.
6399 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6401 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6403 * posix-threads.cc: Include cni.h, jvm.h.
6404 * quick-threads.cc: Include cni.h, jvm.h.
6405 * nogc.cc: Include cni.h, not javaprims.h.
6406 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6407 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6408 include java-assert.h.
6409 * java/lang/natSystem.cc: Include cni.h. Don't include
6411 * java/lang/natRuntime.cc: Include cni.h. Don't include
6413 * prims.cc: Rearranged #include ordering. Don't include
6414 java-array.h or java-assert.h.
6415 * boehm.cc: Include config.h, cni.h.
6416 * exception.cc: Include config.h, cni.h.
6417 * include/jvm.h: Include java-assert.h.
6418 * include/cni.h: Include java/lang/Object.h. Don't include
6419 java-threads.h or java-array.h.
6421 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6423 * java/lang/Boolean.java: Rewritten.
6425 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6427 * java/lang/natFirstThread.cc (main_func): New typedef.
6428 (run): Use main_func, not JvPrivThreadStartFunc.
6429 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6431 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6433 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6436 Can't throw Java exceptions with C++ `throw':
6437 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6438 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6439 (setPriority): Likewise.
6443 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6444 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6446 Can't catch Java exceptions from C++:
6447 * java/lang/natThread.cc (finish_): New method.
6449 * java/lang/Thread.java (run_): Rewrote in Java.
6450 (finish_): New native method.
6452 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6454 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6456 * include/javaprims.h (java::io): Added Serializable.
6458 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6460 * java/util/EmptyStackException.java,
6461 java/util/NoSuchElementException.java: Rewritten.
6463 * java/util/ConcurrentModificationException.java,
6464 java/util/MissingResourceException.java,
6465 java/util/TooManyListenersException.java: Created.
6467 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6469 * include/cni.h (JvThrow): New function.
6470 * include/javaprims.h (_Jv_Throw): Declare.
6472 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6474 * java/util/Observable.java: Rewritten.
6476 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6478 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6479 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6480 Include NullPointerException.h.
6482 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6484 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6485 assignability checks. Don't bother using memcpy.
6487 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6489 * include/quick-threads.h (JvPrivThreadWait): New function.
6490 * include/no-threads.h (JvPrivThreadWait): New function.
6491 * include/posix-threads.h (JvPrivThreadWait): New function.
6492 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6494 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6496 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6497 offsets by size of type that is being copied.
6499 * java/lang/natThread.cc (start): Don't pass `object' argument to
6501 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6502 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6504 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6505 always pass thread as object.
6506 * include/quick-threads.h, include/posix-threads.h,
6507 include/no-threads.h (JvPrivThreadStart): Removed `object'
6510 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6512 * java/util/Dictionary.java: Rewritten.
6514 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6516 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6517 (JvPrivThreadDestroy): Likewise.
6519 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6521 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6523 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6525 * java/lang/natSystem.cc: Rewrote from scratch.
6526 * java/lang/System.java: Rewrote from scratch.
6527 * java/lang/Class.h (Class): Declare isAssignableFrom.
6528 * include/javaprims.h (java::lang): Added ArrayStoreException,
6529 IndexOutOfBoundsException.
6530 * Makefile.in: Rebuilt.
6531 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6532 IndexOutOfBoundsException.h.
6533 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6534 * include/jvm.h (_Jv_HashCode): New function.
6536 * java/lang/natThread.cc (suspend): Call checkAccess.
6538 * java/lang/Thread.java (setDaemon): Call checkAccess.
6540 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6542 * java/lang/Runtime.java: Rewrote from scratch.
6543 * java/lang/natRuntime.cc: Rewrote from scratch.
6545 * nogc.cc (JvPrivGCTotalMemory): New function.
6546 (JvPrivGCFreeMemory): Likewise.
6547 (total): New global.
6548 (JvPrivAllocObj): Increment total.
6549 (JvPrivAllocArray): Likewise.
6550 (JvPrivAllocBytes): Likewise.
6551 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6552 * boehm.cc (JvPrivGCTotalMemory): New function.
6553 (sum_blocks): Likewise.
6554 (JvPrivGCFreeMemory): Likewise.
6556 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6558 * include/javaprims.h (java::lang): Added FirstThread.
6559 * java/lang/natFirstThread.cc: New file.
6560 * java/lang/FirstThread.java: New file.
6561 * prims.cc (main_signature): Removed.
6562 (main_name): Removed.
6563 #include FirstThread.h.
6564 * Makefile.in: Rebuilt.
6565 * Makefile.am (TFRIEND): Removed.
6566 (java/lang/Thread.h): Likewise.
6567 (FTFRIEND): New macro.
6568 (java/lang/FirstThread.h): New target.
6569 (nat_files): Added natFirstThread.o.
6570 (nat_headers): Added FirstThread.h.
6571 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6572 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6574 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6578 * java/lang/natThread.cc (start): Synchronize the thread.
6579 (stop): Synchronize the thread.
6581 * java/lang/ThreadDeath.java: Rewrote from scratch.
6583 * Makefile.in: Rebuilt.
6584 * Makefile.am (TGFRIEND): New macro.
6585 (java/lang/ThreadGroup.h): New target.
6586 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6588 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6590 * nogc.cc: Include config.h.
6592 * java/lang/ThreadGroup.java: Rewrote from scratch.
6594 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6596 * java/lang/Thread.java (checkAccess): Only call in to security
6597 manager if it exists.
6598 (Thread): Don't check access when creating the first thread. Add
6599 this thread to the appropriate ThreadGroup.
6601 * java/lang/natThread.cc (run_): Call uncaughtException method on
6604 * java/lang/Runnable.java: Rewrote from scratch.
6605 * java/lang/Thread.java: Updated copyright comment to correct
6608 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6610 * java/util/Random.java: Rewritten.
6612 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6614 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6615 trailing 0 in array[].
6617 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6619 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6620 and RUNTESTFLAGS from AM_MAKEFLAGS.
6621 (SUBDIRS): Conditionally include testsuite.
6622 * Makefile.in: Rebuilt.
6624 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6626 * java/lang/Object.h: Include java-assert.h.
6628 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6630 * Makefile.am: Add testsuite directory.
6631 * configure.in: Build testsuite/Makefile.
6632 * Makefile.in, configure: Rebuilt.
6634 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6636 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6637 * include/jvm.h (_Jv_StartFirstThread): Declare.
6639 * include/javaprims.h (java::lang): Added Exception,
6642 * Makefile.in: Rebuilt.
6643 * Makefile.am (nat_headers): Added NullPointerException.h,
6644 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6645 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6646 (java/lang/Thread.h): New target.
6647 (TFRIEND): New macro
6649 * include/java-assert.h (JvFail): Use 0 and not NULL.
6651 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6652 instead of assuming we are a friend of Thread.
6653 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6654 instead of assuming we are a friend of Thread.
6656 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6658 * java/lang/natThread.cc: Rewrote from scratch.
6659 * java/lang/Thread.java: Rewrote from scratch.
6660 * prims.cc (JvRunMain): Use new Thread constructor.
6661 * include/javaprims.h (java::lang): Added InterruptedException.
6662 * Makefile.in: Rebuilt.
6663 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6664 * java/lang/Thread.h: Removed.
6665 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6666 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6668 * posix-threads.cc (JvPrivThreadJoin): Removed.
6669 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6670 (really_start): Don't notify join_cond.
6671 (JvPrivThreadStart): Added `data' argument.
6672 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6673 (JvPrivThreadJoin): Likewise.
6674 Use JvFail instead of sorry.
6675 (JvPrivThreadSuspend): Removed.
6676 (JvPrivThreadResume): Removed.
6677 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6678 (JvPrivThreadJoin): Likewise.
6679 (JvPrivThreadSuspend): Use JvFail.
6680 (JvPrivThreadResume): Likewise.
6681 (JvPrivThreadSuspend): Removed.
6682 (JvPrivThreadResume): Likewise.
6683 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6684 (JvPrivThread_t): Removed join_mutex, join_cond.
6685 Use JvFail instead of sorry.
6686 (JvPrivThreadSuspend): Removed.
6687 (JvPrivThreadResume): Likewise.
6689 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6691 * java/util/Observer.java: Rewritten
6692 * java/util/Enumeration.java: Rewritten
6694 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6696 * java/util/StringTokenizer.java: Rewritten
6697 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6698 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6699 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6701 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6703 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6706 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6707 Include java-assert.h.
6708 * include/java-assert.h: New file.
6709 * prims.cc (_Jv_Abort): New function.
6710 Include java-assert.h, not assert.h.
6711 (_Jv_MonitorExit): Use JvAssert.
6712 (resolveConstants): Likewise.
6713 (processClass): Likewise.
6714 (JvRunMain): Assert that method is found.
6716 * configure: Rebuilt.
6717 * configure.in: Check for test subdir.
6718 * Makefile.in: Rebuilt.
6719 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6721 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6722 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6724 * prims.cc (resolveConstants): Removed unused variables.
6725 (processClass): Likewise.
6727 * include/quick-threads.h (JvPrivThreadCurrent): Use
6729 * quick-threads.cc (destroy_data): New function.
6730 (JvPrivInitThreads): Create key.
6731 (JvPrivThreadKey): New global.
6732 (JvPrivThreadStart): Use coop_setspecific.
6734 * include/quick-threads.h, include/posix-threads.h,
6735 include/no-threads.h, no-threads.cc, quick-threads.cc,
6736 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6738 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6740 * include/no-threads.h (JvPrivThreadInitData): Don't set
6743 * include/quick-threads.h (JvPrivCondWait): coop function now
6745 (JvPrivThreadJoin): Likewise.
6747 * java/lang/Thread.h (Thread): Updated declaration of
6749 * include/quick-threads.h, include/posix-threads.h: Updated
6750 declaration of JvPrivThreadStart.
6751 * include/no-threads.h (JvPrivThreadStart): Changed definition
6753 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6754 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6755 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6757 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6759 * quick-threads.cc (qthrow): New function.
6760 (JvPrivInitThreads): New function.
6761 (started): New global.
6762 (JvPrivThreadStart): Call coop_start if required.
6763 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6764 (JvPrivThreadDestroy): Likewise.
6765 (JvPrivInitThreads): Removed.
6766 * include/posix-threads.h (JvPrivThreadCancel): Added error
6768 * java/lang/natThread.cc (stop_): Pass exception to
6771 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6773 * include/javaprims.h (java::lang): Added
6774 IllegalArgumentException, IllegalThreadStateException, Math,
6775 NullPointerException, ThreadDeath.
6776 (java::util): Added Enumeration.
6778 * Makefile.in: Rebuilt.
6779 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6781 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6783 (threadsv): Renamed from threads to avoid clash in C++ header.
6784 (groupsv): Likewise.
6785 * include/no-threads.h (JvPrivThreadStart): Removed.
6786 * no-threads.cc (JvPrivThreadStart): New function.
6787 * java/lang/Thread.java (Thread): New constructor for internal use.
6788 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6789 (Thread): Declare constructor.
6790 * prims.cc (JvRunMain): Create the initial Thread and
6792 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6793 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6794 Removed `daemon' argument.
6796 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6797 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6799 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6801 * Makefile.in: Rebuilt.
6802 * Makefile.am (INCLUDES): Include THREADINCS.
6804 * configure: Rebuilt.
6805 * configure.in: Recognize `qt' as a threads package.
6807 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6809 * java/util/Stack.java (pop): Null out topmost node for robustness.
6811 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6813 * java/util/Stack.java: Rewritten.
6814 * java/util/Vector.java (isEmpty): Simplified expression.
6816 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6818 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6819 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6821 * include/java-array.h (JvNewObjectArray): Created inline to
6824 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6827 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6829 * java/util/Vector.java: Rewritten.
6830 * java/io/Serializable.java: Created.
6832 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6834 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6835 Infinity is 1/0, not 1/1.
6837 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6839 * configure: Rebuilt.
6840 * configure.in: Removed duplicate AC_ARG_WITH.
6842 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6844 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6846 (_Jv_InitClass): Renamed from soft_initialise_class.
6847 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6848 (_Jv_CheckCast): Renamed from soft_checkcast.
6849 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6850 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6851 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6852 * include/cni.h (JvInitClass): New function.
6853 (_Jv_InitClass): Renamed from soft_initialise_class.
6855 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6857 * configure: Rebuilt.
6858 * configure.in (CXX): Don't set.
6859 * Makefile.in: Rebuilt.
6860 * Makefile.am (AM_CXXFLAGS): New macro.
6862 * Makefile.in: Rebuilt.
6863 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6864 nogc.o): New target.
6866 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6868 (mark_array): Likewise.
6870 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6872 * java/lang/Class.h (JvMethod): Removed some unused fields.
6873 (JvField.info): Removed unused idx union variant.
6875 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6877 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6880 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6882 * configure.in, configure (CXX): Add -fvtable-thunks.
6884 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6886 * java/lang/Object.java (finalize): Move first.
6887 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6888 (Object): Re-arrange order to match Object.java.
6890 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6892 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6893 * java/lang/natString.cc (hashChars): Likewise.
6895 * prims.cc (RuntimeClass): New macro.
6896 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6898 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6900 * Makefile.in: Rebuilt.
6901 * Makefile.am (AM_MAKEFLAGS): New macro.
6903 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6905 * nogc.cc: Include <javaprims.h>.
6907 * Makefile.in: Rebuilt.
6908 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6910 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6912 * exception.cc (terminate): Removed.
6913 (unexpected): Removed.
6915 * configure: Rebuilt.
6916 * configure.in: Handle case where target subdir is ".".
6918 * configure: Rebuilt.
6919 * configure.in: Compute COMPPATH based on --with-target-subdir
6920 option. Added --with-target-subdir and --with-cross-host. Use
6921 --with-cross-host to determine when a cross compiler is in use.
6923 * Makefile.in: Rebuilt.
6924 * Makefile.am (GJAVAH): Include COMPPATH.
6925 * configure: Rebuilt.
6926 * configure.in: Subst COMPPATH.
6928 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6930 * prims.cc (lockMutex): Removed.
6931 (unlockMutex): Likewise.
6932 (processClass): Lock the class using a JvSynchronize object.
6934 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6936 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6937 (gc_free_fixed): Removed.
6938 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6939 freeing old value of strhash.
6941 * exception.cc (_Jv_type_matcher): Cast first argument to
6944 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6946 * include/java-array.h (jstringArray): New type.
6947 * java/lang/natSystem.cc (setProperty): Removed.
6948 (initProperties): Directly call JvNewStringLatin1 for arguments.
6949 * java/util/natDate.cc: Include java/util/Date.h, not
6952 * java/io/FileDescriptor.java (available): No longer static.
6953 * java/lang/natDouble.cc (Double): Removed class definition.
6954 * include/javaprims.h (java::lang::Number): Declare.
6955 (java::lang::NumberFormatException): Likewise.
6956 (java::io::FilenameFilter): Likewise.
6957 (java::lang::Character): Likewise.
6958 (java::lang::Error): Likewise.
6959 (java::lang::SecurityManager): Likewise.
6960 (java::util::Vector): Likewise.
6961 (java::io::FileNotFoundException): Likewise.
6962 (java::io::IOException): Likewise.
6963 (java::lang::NativeLang): Likewise.
6964 (java::lang::UnsatisfiedLinkError): Likewise.
6965 (java::util::StringTokenizer): Likewise.
6966 (java::io::InputStream, java::io::OutputStream): Likewise.
6967 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6968 (java::util::Hashtable): Likewise.
6969 * Makefile.in: Rebuilt.
6970 * Makefile.am (nat_headers): Added java/lang/Double.h,
6971 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6972 (MOSTLYCLEANFILES): Added nat_headers.
6973 * include/jvm.h: Moved many defines, declarations, and functions
6974 to java/lang/Class.h.
6975 (struct JvSyncInfo): Moved to java/lang/Object.h.
6976 (UTF8_GET): Moved to java/lang/String.h.
6978 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6980 * java/io/io-defs.h: Don't include java-io.h.
6981 * include/java-io.h: Removed.
6982 * include/javaprims.h: Include java::io.
6984 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6986 * include/java-io.h (File): Removed
6987 (FileDescriptor): Likewise.
6989 * java/io/io-defs.h: Include java/io/File.h and
6990 java/io/FileDescriptor.h.
6992 * Makefile.in: Rebuilt.
6993 * Makefile.am (GJAVAH): New macro.
6994 (.class.h): New rule.
6995 (SUFFIXES): Added .h.
6996 (nat_headers): New macro.
6997 ($(nat_headers)): New target.
6998 (BUILT_SOURCES): Added nat_headers.
7000 * include/java-util.h: Removed.
7002 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
7004 * include/java-io.h: Changed to avoid java-lang.h.
7005 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7007 * java/lang/natSystem.cc: Include java/lang/System.h, not
7009 * java/lang/natString.cc: Include java/lang/String.h, not
7011 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7013 * java/lang/natClass.cc: Include java/lang/Class.h, not
7015 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7017 * java/lang/natObject.cc: Include java/lang/Object.h, not
7019 * exception.cc: Don't include java-lang.h.
7020 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7021 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7022 * nogc.cc: Don't include java-lang.h.
7023 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7024 * prims.cc (processClass): Don't use `init_type'; just cast to
7026 Include java/lang/Class.h and jvm.h, not java-lang.h.
7027 (JvAllocObject): Wrote single-argument version.
7028 (PrimClass): Inherit from Class.
7029 (initPrimClass): Removed.
7030 * include/java-lang.h: Removed.
7031 * include/jvm.h: Declare struct _dispatchTable.
7032 * include/cni.h: Don't declare _Jv_MonitorEnter,
7033 _Jv_MonitorExit, struct _dispatchTable.
7034 * include/javaprims.h: Moved all typedefs here, from cni.h.
7035 * java/lang/Class.h: New file.
7036 * include/java-array.h: New file.
7037 * java/lang/Object.h: New file.
7039 * prims.cc (classFromSig): Now static.
7041 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7043 * include/cni.h: Don't mention soft_new.
7044 * include/java-lang.h (Object): Don't mention soft_new. Mention
7045 _Jv_NewPrimArray, not newPrimArray.
7046 * prims.cc (soft_new): Removed.
7047 (_Jv_NewArray): Renamed from soft_newarray.
7048 (soft_anewarray): Use JvNewObjectArray.
7049 (newArray): Likewise.
7050 (newRefArray): Removed.
7051 (_Jv_NewPrimArray): Renamed from newPrimArray.
7052 (equalUtf8Consts): Now static.
7053 (soft_instanceof): Removed.
7054 * java/lang/natDouble.cc (doubleToString): Now static.
7056 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7057 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7060 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7062 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7064 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7066 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7067 (JvPrivMutexUnlock): Likewise.
7068 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7069 Return value now jint.
7070 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7073 * Makefile.in: Rebuilt.
7074 * Makefile.am: Don't allow `jV' names.
7075 (maintainer-check): Depend on libjava.a.
7076 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7078 * Makefile.in: Rebuilt.
7079 * Makefile.am (NM): New macro.
7080 (maintainer-check): New target.
7082 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7084 * configure: Rebuilt.
7085 * configure.in: Use --enable-threads, not --enable-gc. Fix
7086 documentation for --enable-threads. Changed option to work like
7087 identical option in gcc/configure.
7089 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7091 * boehm.cc (mark_array): Use JvGetArrayLength.
7093 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7095 * exception.cc: New file (mostly written by Andrew MacLeod),
7096 exception handling support.
7097 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7098 Remove -fexceptions - it is now the default.
7100 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7101 (JvAllocObject): Renamed to _Jv_AllocObject.
7102 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7103 (loadClass): Renamed to _Jv_FindClass.
7104 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7105 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7106 * include/java-lang.h (JvGetArrayLength): New CNI function.
7107 * include/jvm.h (_Jv_FindClass): Added declaration.
7109 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7111 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7113 * java/lang/natClass.cc (getName): Add implementation.
7114 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7116 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7118 * Makefile.in: Rebuilt.
7119 * Makefile.am (.class.o): Added -fexceptions.
7121 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7123 * configure: Rebuilt.
7124 * configure.in: Don't check for __nanosleep.
7125 * posix-threads.cc (nanosleep): Never define.
7127 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7129 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7132 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7134 * java/lang/natThread.cc (enumerate): Uncommented.
7135 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7136 (interrupt): Call it.
7138 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7140 * configure: Rebuilt.
7141 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7143 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7145 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7146 * include/java-lang.h (Thread): Added `interrupted_' method.
7147 * java/lang/Thread.java (interrupted_): New method.
7148 * java/lang/natThread.cc (join): Possibly throw interrupted
7149 exception after join finishes.
7150 (interrupted_): New method.
7151 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7153 (JvPrivThreadJoin): New function.
7154 (really_start): Notify all threads waiting for this thread.
7155 (struct starter): Added `data' member.
7156 (JvPrivThreadStart): Set it.
7157 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7159 (JvPrivThreadJoin): No longer inline.
7160 (JvPrivThreadInterrupt): New function.
7162 * include/no-threads.h (JvPrivThreadSleep): Removed.
7163 * posix-threads.cc (JvPrivThreadSleep): Removed.
7165 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7167 * configure: Rebuilt.
7168 * configure.in (THREADOBJS): Initialize to no-threads.o in
7170 * posix-threads.cc (key): New global.
7171 (JvPrivInitThreads): New function.
7172 (really_start): Set thread-specific data to point to object.
7173 (JvPrivThreadStart): Added `daemon' argument.
7174 (JvPrivThreadSleep): Added `data' argument.
7175 * include/posix-threads.h (JvPrivInitThreads): Removed
7177 (JvPrivThreadCurrent): New function.
7178 * include/no-threads.h (JvPrivThreadInitData): Initialize
7179 JvPrivOnlyThread. Added `thread' argument.
7180 (JvPrivThreadCurrent): New function.
7181 (JvPrivThreadStart): Added `daemon' argument.
7182 * no-threads.cc: New file.
7183 * java/lang/natThread.cc (init_data): New function.
7185 (start): Set `alive' member.
7186 (stop_): Clear `alive' member.
7187 (destroy): Likewise.
7188 (currentThread): Implemented.
7189 (start): Pass `daemon' argument to JvPrivThreadStart.
7191 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7192 (Thread): Added `init_data' method.
7193 * java/lang/Thread.java (alive, data): New instance variables.
7194 (init_data): New private method.
7195 (isAlive): No longer native.
7197 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7199 * include/java-lang.h (JvRunMain): Declare.
7200 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7201 * prims.cc (JvRunMain): New function.
7202 (main_signature, main_name): New globals.
7204 * boehm.cc (mark_array): Use `elements' function and not
7205 operator[] on jarray.
7207 * posix-threads.cc: Include <config.h>. Define nanosleep if
7210 * configure: Rebuilt.
7211 * configure.in: Check for _nanosleep.
7213 * configure: Rebuilt.
7214 * configure.in: Check for pthread_mutexattr_settype.
7216 * include/cni.h (class JvSynchronize): New class.
7217 * java/lang/Thread.java (sleep): Throws InterruptedException.
7218 (join): Throws InterruptedException.
7219 (resume): Not native.
7220 (resume_): New method.
7221 (start): Now synchronized.
7222 (stop_): New method.
7223 (Thread): Synchronize when accessing threadNumber.
7225 * java/lang/natThread.cc (throwException): New macro.
7226 (sleep): Throw InterruptedException.
7229 * include/java-lang.h (Runtime): Added interrupted().
7231 * boehm.cc (call_finalizer): Correctly initialize jobj.
7232 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7234 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7237 * configure: Rebuilt.
7238 * configure.in: Added support for --disable-threads.
7239 * include/no-threads.h: New file.
7241 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7243 * Makefile.in: Rebuilt.
7244 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7245 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7246 (libjava_a_LIBADD): Added THREADOBJS.
7247 * configure: Rebuilt.
7248 * configure.in: Added --with-threads option.
7249 * posix-threads.cc: New file.
7250 * include/posix-threads.h: New file.
7251 * include/java-lang.h (Object): Added static member sync_mutex,
7252 member sync_info, method init_mutex.
7253 (struct JvSyncInfo): New struct.
7254 Include "java-threads.h".
7255 * prims.cc (soft_monitorenter): Wrote.
7256 (soft_monitorexit): Likewise.
7257 * java/lang/natObject.cc (init_mutex): New method.
7261 (sync_mutex): Define.
7262 Include "java-threads.h".
7264 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7266 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7267 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7269 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7271 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7272 Added extern "Java" in places to tell G++ Object is a "Java" type.
7273 Other minor renaming and fixes.
7274 * include/java-io.h (FileDescriptor): Add friend class declarations.
7275 G++ no longer allows non-Java types in method parameters and results
7276 of Java classes. Converted most offending methods to friends.
7277 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7278 * java/lang/natSystem.cc (setProperty): Make friend.
7279 * java/lang/natString.cc, include/java-lang.h (String): Rename
7280 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7281 * include/java-lang.h (JArray): Remove getData and eoprator[].
7282 Add elements friend function instead.
7283 * java/lang/natSystem.cc (arraycopy): Use elements function.
7284 * java/io/natFileDescriptor.cc (read, write): Likewise.
7285 * include/java-lang.h (Object): Remove unused make method.
7286 (System::setProperty(char*,char*)): Turn into friend function.
7287 (Class): Rename newObject by JvAllocObject.
7288 * prims.cc: Update to use JvAllocObject, and elements.
7290 * java/lang/natDouble.cc: Fix double -> jdouble.
7292 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7294 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7296 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7298 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7299 * include/java-lang.h (Runtime): finalize_on_exit and
7300 runFinalizersOnExit now static.
7301 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7303 (finalize_on_exit): Now static.
7305 * boehm.cc (mark_obj): Get class using getClass() method on
7307 (_dispatchTable): Removed.
7309 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7311 * java/io/natFileDescriptor.cc (open_read): Only call open if
7313 (open_write): Likewise.
7315 * Makefile.in: Rebuilt.
7316 * Makefile.am ($(nat_files)): Depend on config.h.
7318 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7320 * prims.cc (ObjectClass): Now a macro; updated for new class name
7322 (StringClass): Likewise.
7323 (ClassClass): Likewise.
7325 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7327 * java/io/natFileDescriptor.cc (available): Do nothing unless
7328 HAVE_SELECT defined.
7329 * java/util/natDate.cc (setTime): Conditional on
7331 (toString): Conditional on HAVE_TIME.
7332 * aclocal.m4, configure: Rebuilt.
7333 * acinclude.m4: New file.
7334 * configure.in: Don't actually call AM_EXEEXT. Call
7335 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7336 --with-target-subdir option. Check for select and open
7339 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7341 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7342 (call_finalizer): Likewise.
7343 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7344 * prims.cc (newObject): Pass actual method pointer to
7345 JvPrivRegisterFinalizer.
7346 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7347 (JvPrivRegisterFinalizer): Changed interface.
7349 * Makefile.in: Rebuilt.
7350 * Makefile.am (MOSTLYCLEANFILES): New macro.
7351 (CLEANFILES): Removed javao_files.
7353 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7355 * nogc.cc: New file.
7356 * Makefile.in: Rebuilt.
7357 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7358 (EXTRA_libjava_a_SOURCES): New macro.
7359 (libjava_a_SOURCES): Removed boehm.cc.
7360 (libjava_a_DEPENDENCIES): Added GCOBJS.
7361 (libjava_a_LIBADD): Likewise.
7362 * configure: Rebuilt.
7363 * configure.in: Added code for --enable-gc=TYPE.
7365 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7367 * boehm.cc (mark_array): Don't further dereference pointer from
7370 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7371 * Makefile.in: Rebuilt.
7372 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7373 one for boehm-gc build directory.
7375 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7377 * include/java-lang.h (finalize_on_exit): New instance variable in
7378 java::lang::Runtime.
7379 (runFinalizersOnExit): New method.
7380 * java/lang/Runtime.java (finalize_on_exit): New instance
7382 (runAllFinalizers_): New private method.
7383 (runFinalizersOnExit): New method.
7384 * boehm.cc (JvPrivRunFinalizers): New function.
7385 (JvPrivRunAllFinalizers): Likewise.
7386 (JvPrivRunGC): Likewise.
7387 * java/lang/natRuntime.cc: Include "jvm.h".
7388 (gc): Call JvPrivRunGC.
7389 (runFinalization): Call JvPrivRunFinalizers.
7390 (runFinalizersOnExit): New method.
7391 (exit_): Call JvPrivRunAllFinalizers if required.
7392 * include/jvm.h: Declare JvPrivRunFinalizers,
7393 JvPrivRunAllFinalizers, JvPrivRunGC.
7395 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7397 * boehm.cc (JvPrivRegisterFinalizer): New function.
7398 (call_finalizer): Likewise.
7399 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7400 * prims.cc (finalize_name): New global.
7401 (newObject): Just call other newObject.
7402 (newObject): Register finalizer if it exists.
7404 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7406 * prims.cc (gc_malloc): Removed.
7407 (makeUtf8Const): Use JvPrivAllocBytes.
7408 (lookupArray): Likewise.
7409 (newPrimArray): Likewise.
7410 (JvNewObjectArray): Use JvPrivAllocArray.
7411 (newObject): Use JvPrivAllocObj.
7412 (newObject): Likewise.
7413 Changed Method -> JvMethod everywhere.
7414 Changed Field -> JvField everywhere.
7415 * include/java-lang.h (Object): Changed type of `fields' to
7417 (jmethodID, jfieldID): New typedefs.
7418 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7420 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7422 (METHOD_NATIVECODE): Moved from java-lang.h.
7423 (class JvField): New class.
7424 (JvGetFirstInstanceField): New function.
7425 (JvFieldIsRef): Likewise.
7426 (JvGetObjectField): Likewise.
7427 (JvNumInstanceFields): Likewise.
7429 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7431 * boehm.cc: New file.
7432 * Makefile.in: Rebuilt.
7433 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7434 (INCLUDES): Added -I options to find boehm-gc files.
7436 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7438 * configure: Rebuilt.
7439 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7441 * Makefile.in: Rebuilt.
7442 * Makefile.am (nat_files): New macro.
7443 (libjava_a_DEPENDENCIES): Use it.
7444 (libjava_a_LIBADD): Likewise.
7445 ($(nat_files)): New static pattern rule.
7446 (class_files): Run separate find to find .class files.
7447 (javao_files): Compute based on class_files.
7448 (BUILT_SOURCES): New macro.
7450 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7452 * Makefile.am (java_files): New macro.
7453 (class_files): Likewise.
7454 (javao_files): Likewise.
7455 (libjava_a_DEPENDENCIES): Include $(javao_files).
7456 (libjava_a_LIBADD): Likewise.
7457 (classes.stamp): Depend on $(java_files); only recompile changed
7460 (CLEANFILES): Don't run find; use macros. Don't mention
7462 (.class.o): New target.
7463 (compiled.stamp): Removed.
7465 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7467 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7468 LineNumberReader}>java: Newly-implemented standard classes.
7470 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7472 * Makefile.in: Rebuilt.
7473 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7475 * Makefile.in: Rebuilt.
7476 * Makefile.am (hack): New macro.
7477 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7479 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7481 * include/config.h.in: New file.
7482 * include/config.h: Removed.
7483 * acconfig.h: New file.
7484 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7485 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7486 libjava_a_LIBADD): New macros.
7487 (INCLUDES): New macro.
7490 (SUFFIXES): Removed.
7492 (libjava.a): Removed.
7494 * configure: Rebuilt.
7495 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7496 Look for headers and functions we require. Create
7499 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7501 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7502 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7503 soft_lookupinterfacemethod): New functions.
7504 (PrimClass): Actually initialize the primitive classes.
7505 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7507 * include/java-util.h: Removed java::util definition.
7508 * include/cni.h: Moved java::util here and added Properties.
7509 Added more function prototypes.
7510 * include/java-lang.h: Added mroe methods and friend declarations.
7511 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7512 * include/jvm.h (strLengthUtf8): Add declaration.
7514 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7516 * java/lang/{Byte,Short,Void}.java: New classes.
7517 * java/lang/Character.java (isJavaIdentifierStart,
7518 JavaIdentifierPart): New static methods.
7519 * java/lang/Number.java (byteValue, shortValue): New methods.
7521 * java/lang/String.java (intern, hashCode): Make native.
7522 * java/lang/natString.cc: New file. Handle the string pool.
7523 * Makefile.am: Build natString.o. Use CXXFLAGS.
7525 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7526 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7527 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7528 * java/lang/System.java (setProperty): New private method.
7529 (initProperties): Take argument, and make native.
7530 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7531 (currentTimeMillis): Make more robust.
7533 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7534 * java/io/UnsupportedEncodingException.java: New exception class.
7536 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7537 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7539 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7541 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7542 * prims.cc: Added bunch of stuff.
7543 * include/cni.h: Added various definitions.
7544 * include/java-lang.h: Added Method, various friends, some macros.
7546 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7547 * java/lang/System.java (arraycopy): Make native.
7549 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7551 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7552 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7553 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7554 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7556 * java/lang/Runtime.java: Declare methods as native instead of
7558 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7559 * java/lang/System.java: Comment out some stuff, for now.
7560 * java/lang/Thread.java: Re-write. Use native methods.
7561 * java/lang/NativeLang.java: Remove most of it.
7563 * java/util/natDate.cc: Native (C++) methods for Date.
7564 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7565 * java/util/Date.java: Complete re-write.
7567 * java/io/io-defs.h: New header file.
7568 * java/io/FileDescriptor.java: Add a bunch of private methods,
7569 mostly moved from NativeIO.java and natNativeIO.cc.
7570 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7571 * java/io/File.java: Use new code.
7572 * java/io/{FileInputStream.java.FileOutputStream.java,
7573 RandomAccessFile.java}: Use new private FileDescriptor methods.
7574 * java/io/NativeIO.java: Removed, no longer used.
7576 * java/io/StreamTokenizer.java (numericChars): Make char array.
7578 * include/*.h: Various header files used by the C++ native code.
7580 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7581 New autoconf+automake-based setup.
7582 * prims.cc: New file for Java "primitives".