1 2000-02-01 Tom Tromey <tromey@cygnus.com>
3 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
4 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5 constructing the closure if the function is native.
6 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7 a template function, #if'd out, or static.
8 Include <java-interp.h>.
10 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
12 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
14 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
15 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
17 (wrap_value): New function.
18 (_Jv_JNI_CallAnyMethodV): Use it.
19 (_Jv_JNI_CallAnyMethodA): Likewise.
20 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
21 (_Jv_JNI_GetStaticField): Likewise.
23 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
24 (_Jv_JNI_GetStaticField): Likewise.
26 2000-01-31 Tom Tromey <tromey@cygnus.com>
28 * prims.cc (_Jv_MallocUnchecked): New function.
29 (main_init): Call _Jv_JNI_Init.
30 * include/jvm.h (_Jv_MallocUnchecked): Declare.
31 (_Jv_JNI_Init): Declare.
32 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
34 (_Jv_JNI_NewGlobalRef): New function.
35 (_Jv_JNI_DeleteGlobalRef): New function.
36 (_Jv_JNI_DeleteLocalRef): New function.
37 (_Jv_JNI_conversion_call): Initialize and clear local reference
39 (_Jv_JNI_NewLocalRef): New function.
40 (struct _Jv_JNI_LocalFrame): New structure.
41 (_Jv_JNI_PushLocalFrame): New function.
42 (_Jv_JNI_EnsureLocalCapacity): New function.
43 (FRAME_SIZE): New define.
44 (_Jv_JNI_GetStringChars): Mark string, not characters.
45 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
46 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
47 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
49 (_Jv_JNI_DefineClass): Make return value a local ref.
50 (_Jv_JNI_FindClass): Likewise.
51 (_Jv_JNI_GetSuperclass): Likewise.
52 (_Jv_JNI_ExceptionOccurred): Likewise.
53 (_Jv_JNI_AllocObject): Likewise.
54 (_Jv_JNI_GetObjectClass): Likewise.
55 (_Jv_JNI_CallAnyMethodV): Likewise.
56 (_Jv_JNI_NewString): Likewise.
57 (_Jv_JNI_NewStringUTF): Likewise.
58 (_Jv_JNI_NewObjectArray): Likewise.
59 (_Jv_JNI_GetObjectArrayElement): Likewise.
60 (_Jv_JNI_ToReflectedField): Likewise.
61 (_Jv_JNI_ToReflectedMethod): Likewise.
62 (_Jv_JNIFunctions): Updated table for new functions.
63 (_Jv_JNI_Init): New function.
65 (unmark_for_gc): Wrote.
66 * include/jni.h (struct JNINativeInterface): Removed name from
67 PopLocalFrame parameter.
68 (class _Jv_JNIEnv): Added `locals' field.
70 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
72 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
75 2000-01-30 Tom Tromey <tromey@cygnus.com>
77 * include/config.h.in: Rebuilt.
78 * acconfig.h (HAVE_ICONV): Define.
80 * configure.in: Check for `iconv' function.
81 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
82 no specific encoder exists.
83 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
84 no specific encoder exists.
85 * Makefile.in: Rebuilt.
86 * Makefile.am (convert_source_files): Mention Input_iconv.java and
88 (nat_source_files): Added natIconv.cc.
89 * gnu/gcj/convert/natIconv.cc: New file.
90 * gnu/gcj/convert/Input_iconv.java: New file.
91 * gnu/gcj/convert/Output_iconv.java: New file.
93 2000-01-28 Tom Tromey <tromey@cygnus.com>
95 * Makefile.in: Rebuilt.
96 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
98 2000-01-26 Tom Tromey <tromey@cygnus.com>
100 * gcj/method.h (JvNumMethods): Moved from Class.h.
101 (JvGetFirstMethod): Likewise.
102 * java/lang/Class.h (Object): Updated decl of
103 _Jv_JNI_ToReflectedField.
104 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
105 * Makefile.in: Rebuilt.
106 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
107 argument of _Jv_JNI_ToReflectedField.
108 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
110 (java/lang/reflect/Method.h): Likewise.
111 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
113 (jweak): New typedef.
114 (struct JNINativeInterface): Correctly declare remaining entries.
115 * jni.cc: Include Class.h, ClassLoader.h.
116 (_Jv_JNI_FindClass): New function.
117 (_Jv_JNI_DefineClass): New function.
118 (_Jv_JNI_conversion_call): New function.
119 (_Jv_JNI_FindClass): Use current class loader to find class.
120 (_Jv_JNI_ExceptionCheck): New function.
121 (_Jv_JNI_FromReflectedField): Now static.
122 (MethodClass): New define.
123 (_Jv_JNI_FromReflectedMethod): New function.
124 (_Jv_JNI_ToReflectedMethod): Likewise.
126 (_Jv_JNI_IsAssignableFrom): Renamed.
127 (_Jv_JNI_GetStringRegion): New function.
128 Include StringIndexOutOfBoundsException.h.
129 (_Jv_JNI_GetStringUTFRegion): New function.
130 (_Jv_JNIFunctions): Updated for new functions.
131 (_Jv_JNI_GetPrimitiveArrayCritical): New function
132 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
133 (_Jv_JNI_GetStringCritical): New function.
134 (_Jv_JNI_ReleaseStringCritical): Likewise.
135 (get_throwable): Removed.
136 (GCJ_JV_JNIENV_FRIEND): Removed.
137 (__GCJ_JNI_IMPL__): Define.
140 * resolve.cc (get_ffi_type_from_signature): Handle case where
143 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
145 * interpret.cc (run): Don't call println.
146 Don't include PrintStream.h.
148 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
149 nameIndex. Use "jint" as type for boffset.
150 * java/lang/Class.h (struct _Jv_Method): Made accflags a
152 (Class): Likewise. Also changed type of method_count,
153 vtable_method_count, size_in_bytes, field_count,
154 static_field_count, interface_count.
155 * gcj/array.h (__JArray): Made `length' a const jsize, not an
158 2000-01-21 Tom Tromey <tromey@cygnus.com>
160 * java/lang/reflect/natConstructor.cc (newInstance): Use
162 * include/jvm.h: Declare _Jv_CallAnyMethodA.
163 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
164 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
167 (invoke): Use _Jv_CallAnyMethodA.
169 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
170 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
172 (struct _Jv_Method): Added getNextMethod method.
173 (JvNumMethods): New function.
174 (JvGetFirstMethod): Likewise.
175 * gcj/field.h (JvGetFirstStaticField): New function.
176 (JvNumStaticFields): Likewise.
177 (getNextField): Renamed from getNextInstanceField.
178 (struct _Jv_Field): New method getClass.
179 * jni.cc: Wrote many new functions.
180 * include/jni.h (JNI_TRUE): Define.
181 (JNI_FALSE): Likewise.
182 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
183 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
184 jcharArray, jfloatArray, jdoubleArray): New typedefs.
185 (jfieldID, jmethodID): Likewise.
186 (JNI_COMMIT, JNI_ABORT): New defines.
187 (JNINativeMethod): New struct.
188 (struct JNINativeInterface): Correctly declared more entries.
189 (class _Jv_JNIEnv): Added `ex' member.
190 (JNI_VERSION_1_1): New define.
191 (JNI_VERSION_1_2): Likewise.
193 * boehm.cc (_Jv_MarkObj): Use getNextField, not
194 getNextInstanceField.
196 2000-01-20 Tom Tromey <tromey@cygnus.com>
198 * resolve.cc (StringClass): Removed.
199 * defineclass.cc (StringClass): Removed.
201 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
205 2000-01-19 Tom Tromey <tromey@cygnus.com>
207 * interpret.cc (PC_REGISTER_ASM): Removed.
209 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
212 * All files: Updated copyright to reflect Cygnus purchase.
214 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
216 * configure: Rebuilt.
217 * configure.in: Recognize --disable-interpreter.
219 2000-01-18 Andrew Haley <aph@cygnus.com>
221 * name-finder.cc (lookup): Check for dladdr function.
222 acconfig.h (HAVE_DLADDR): Add.
223 configure.in: Check for HAVE_DLADDR
225 include/config.h.in: Rebuilt.
227 2000-01-17 Andrew Haley <aph@cygnus.com>
229 * prims.cc (_Jv_RunMain): Set the name of this executable.
231 2000-01-17 Tom Tromey <tromey@cygnus.com>
233 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
234 when backtrace can't be computed.
236 * configure: Rebuilt.
237 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
239 * java/lang/Runtime.java (loadLibraryInternal): Declare.
240 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
241 (_Jv_FindClassInCache): Likewise.
242 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
243 (findSystemClass): Try to load class from compiled module.
245 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
246 (loadLibrary): Likewise.
247 (lt_preloaded_symbols): Define.
248 (loadLibraryInternal): New method.
249 * include/config.h.in: Rebuilt.
250 * acconfig.h (USE_LTDL): Added.
251 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
252 (INCLUDES): Added $(INCLTDL).
253 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
254 (libgcj_la_LIBADD): Likewise.
255 * aclocal.m4, configure: Rebuilt.
256 * configure.in: Added libltdl support.
258 2000-01-15 Tom Tromey <tromey@cygnus.com>
260 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
262 2000-01-14 Andrew Haley <aph@cygnus.com>
264 * java/lang/natThrowable.cc: New file.
266 * java/lang/Throwable.java (fillInStackTrace): Make native.
267 (printStackTrace): Call native method to do this.
268 (Throwable): Call fillInStackTrace.
269 (stackTrace): New variable.
271 * include/jvm.h: Add _Jv_ThisExecutable functions.
273 * prims.cc: (_Jv_execName): New variable.
274 (catch_segv): Call fillInStackTrace.
276 (_Jv_ThisExecutable): New functions.
277 (JvRunMain): Set the name of this executable.
279 * Makefile.am: Add java/lang/natThrowable.cc.
281 * Makefile.in: Rebuilt.
283 * acconfig.h: Add HAVE_PROC_SELF_EXE.
285 * configure.in: Force link with __frame_state_for in
286 FORCELIBGCCSPEC. Add new checks for backtrace.
287 * include/config.h.in: Rebuilt.
289 * name-finder.cc: New file.
290 * include/name-finder.h: New file.
292 2000-01-16 Anthony Green <green@cygnus.com>
294 * java/lang/StringBuffer.java (StringBuffer): Don't special case
297 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
299 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
301 2000-01-13 Tom Tromey <tromey@cygnus.com>
303 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
304 not system loader, as initiating loader.
306 2000-01-11 Tom Tromey <tromey@cygnus.com>
308 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
309 HP/UX. From David Scott Urban.
311 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
313 * java/lang/natMath.cc (pow): Cast args to `double', not
316 (IEEEremainder): Likewise.
317 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
318 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
320 2000-01-09 Anthony Green <green@cygnus.com>
322 * java/lang/natString.cc (init): Test for overflow condition
323 during out of bounds check.
324 (getChars): Throw StringIndexOutOfBoundsException, not
325 ArrayIndexOutOfBoundsException.
327 (regionMatches): Obey case option during string comparison.
329 * configure.host (ligcj_interpreter): New variable. Enable
330 interpreter by default on IA-32.
331 * configure.in: Examine libgcj_interpreter.
332 * configure: Rebuilt.
334 2000-01-07 Tom Tromey <tromey@cygnus.com>
336 * mauve-libgcj: Don't disable ClassTest.
338 * java/lang/natClass.cc (getClasses): Wrote.
340 2000-01-06 Tom Tromey <tromey@cygnus.com>
342 * java/lang/natClass.cc (_getConstructors): Correctly check
343 whether method name is the init name.
344 (getMethod): Look at accflags on method in `klass', not `this'.
346 2000-01-05 Tom Tromey <tromey@cygnus.com>
348 * java/lang/natClass.cc (getMethod): Compute offset relative to
349 `klass's methods table, not `this's table.
351 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
352 In unwrapping/widening case, check whether `k' is null, not
353 whether it is primitive. Initialize `num' from `argelts', not
354 `paramelts'. Correct create and pass arguments to ffi_call.
355 Don't let presence of `this' argument affect index used to look in
357 (COPY): Set appropriate element in `values' vector.
359 * java/lang/natClass.cc: Include <gcj/method.h>.
361 * java/lang/Class.h (_getMethods): Correctly declare as private,
364 * java/lang/Class.h (_getMethods): Declare.
365 * java/lang/Class.java (_getMethods): Declare.
366 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
367 (getDeclaredClasses): Always return empty array.
368 (_getMethods): New method.
370 (getDeclaredMethod): Return `rmethod'.
371 (finit_name): New global.
372 (getDeclaredMethods): Check for finit_name.
373 (_getMethods): Likewise.
374 (getMethod): Only return public methods.
376 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
377 jboolean and select correct ffi type on that basis.
378 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
379 Constructor call always has `void' return type.
381 2000-01-04 Tom Tromey <tromey@cygnus.com>
383 * java/lang/Class.h (getSignature): Updated.
384 * java/lang/Class.java (getSignature): Updated.
385 * java/lang/natClass.cc (getSignature): Added `is_constructor'
387 (getConstructor): Ensure constructor is public.
388 (_getConstructors): Check for public-ness of constructor when
389 `declared' is false, not when it is true.
391 2000-01-04 Warren Levy <warrenl@cygnus.com>
393 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
395 (receive): Set the sender's address in the DatagramPacket.
397 2000-01-04 Tom Tromey <tromey@cygnus.com>
399 * java/lang/reflect/natConstructor.cc (newInstance): Pass
400 declaring class as return_type argument to
401 _Jv_CallNonvirtualMethodA.
402 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
403 constructor case, create object and use it as `this' argument.
404 * java/lang/Class.h (_getConstructors): Declare.
405 (_getFields): Declare.
406 * java/lang/Class.java (getConstructors): Wrote.
407 (_getConstructors): New native method.
408 (getDeclaredConstructors): Wrote.
409 (_getFields): Declare new native method.
410 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
412 (getMethod): Work correctly when class is primitive.
413 (getDeclaredMethods): Likewise. Compute offset using `method',
415 (getDeclaredMethod): Likewise.
416 (getConstructor): Wrote.
417 (ConstructorClass): New define.
418 (getDeclaredConstructor): Wrote.
419 (_getConstructors): New method.
420 (_getFields): New method.
423 * Makefile.in: Rebuilt.
424 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
426 * prims.cc: Remove `#pragma implementation'.
427 * gcj/array.h: Remove `#pragma interface'.
429 * prims.cc (_Jv_equaln): New function.
430 * java/lang/Class.java (getSignature): Declare.
431 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
432 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
434 (getSignature): New method.
435 (getDeclaredMethod): Wrote.
437 Include StringBuffer.h.
438 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
439 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
441 (getSignature): Declare.
442 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
443 (_Jv_equaln): Declare.
444 (_Jv_CallNonvirtualMethodA): Declare.
445 * Makefile.in: Rebuilt.
446 * Makefile.am (nat_source_files): Added natConstructor.cc.
447 (java/lang/reflect/Constructor.h): New target.
448 * java/lang/reflect/natConstructor.cc: New file.
449 * java/lang/reflect/Constructor.java (newInstance): Now native.
450 (declaringClass): Renamed from decl_class.
451 (offset): Renamed from index.
452 (getType): New native method.
453 (getModifiers): Now native.
454 (getParameterTypes): Call getType if required.
455 (hashCode): Include hash code from declaring class.
456 (modifiers): Removed.
457 (toString): Call getType if required.
458 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
459 * java/lang/reflect/natMethod.cc (hack_call): New method.
460 Removed `#if 0' around FFI code.
461 Include <gnu/gcj/RawData.h>.
462 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
463 IllegalArgumentException when argument object and class disagree.
464 (_Jv_GetTypesFromSignature): New function.
466 (ObjectClass): New define.
467 (_Jv_CallNonvirtualMethodA): New function.
468 * java/lang/reflect/Method.java (hack_trampoline): New method.
469 (hack_call): New native method.
471 1999-12-21 Per Bothner <per@bothner.com>
473 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
474 offset in new Method.
476 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
478 * java/lang/natObject.cc (notify): Throw message with
479 IllegalMonitorStateException.
482 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
483 (isInterrupted_): New function, which does clear interrupt_flag.
484 (interrupt): Use `isInterrupted_'.
485 * java/lang/natThread.cc (interrupt): Add comment.
486 (join): Set `prev' in joiner loop.
487 Change various calls to `isInterrupted' to use `isInterrupted_'.
488 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
489 on linux. Set result to 0 on an interrupt. Test interrupted status
490 of java Thread object directly.
491 FLAG_INTERRUPTED: removed.
492 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
493 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
494 (_Jv_InitThreads): Don't block SIGINT.
495 (_Jv_ThreadWait): Don't configure SIGINT handler.
497 1999-12-21 Tom Tromey <tromey@cygnus.com>
499 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
501 1999-12-20 Tom Tromey <tromey@cygnus.com>
503 * java/lang/reflect/Modifier.java (STRICT): New constant.
504 (isStrict): New method.
505 (toString): Added `strict'.
507 1999-12-23 Anthony Green <green@cygnus.com>
509 * configure: Rebuilt.
510 * configure.in (LIBDATASTARTSPEC): Force data_start in with
513 1999-12-19 Anthony Green <green@cygnus.com>
515 * libgcjdata.c: New file.
516 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
517 * configure: Rebuilt.
518 * configure.in (LIBDATASTARTSPEC): Force data with a known name
520 * Makefile.in: Rebuilt.
521 * Makefile.am: Build libgcjdata.a.
523 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
524 * configure: Rebuilt.
525 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
528 1999-12-17 Tom Tromey <tromey@cygnus.com>
530 * java/lang/reflect/Method.java (toString): Call getType if
531 required. Partial fix for PR libgcj/111. From Per Bothner.
533 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
535 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
537 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
538 null String constructor parameter.
539 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
540 for exception messages.
541 BooleanClass: declare.
542 (setOption): Use BooleanClass instead of Class.forName() for
544 (bind): Cast 4th parameter of setsockopt to `char *' for
545 compatibility with older Solaris headers.
546 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
547 sprintf calls for exception messages.
548 BooleanClass, IntegerClass: declare.
549 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
552 1999-12-15 Tom Tromey <tromey@cygnus.com>
554 * java/lang/natSystem.cc (init_properties): Don't set user.name or
555 user.home if NO_GETUID defined. Only set user.dir if getcwd
558 * include/config.h.in: Rebuilt.
559 * acconfig.h (NO_GETUID): New define.
560 * configure.in: Rebuilt.
561 * configure.in: Define NO_GETUID in cross case. Check for getcwd
564 1999-12-08 Tom Tromey <tromey@cygnus.com>
566 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
567 where no recursive mutexes exist. Fixes PR libgcj/117.
569 1999-12-05 Anthony Green <green@cygnus.com>
571 * include/jvm.h: Declare many functions with
572 __attribute__((__malloc__)).
573 * gcj/javaprims.h: Ditto.
575 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
577 * THANKS: Giving credit where credit is due.
579 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
581 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
583 * java/lang/natString.cc (equalsIgnoreCase): return false if
584 anotherString is null.
585 * java/lang/Boolean.java (valueOf): return FALSE if argument is
588 1999-11-30 Tom Tromey <tromey@cygnus.com>
590 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
591 mutex to initialize. Initialize `count' if required.
594 1999-11-27 Per Bothner <per@bothner.com>
596 * exception.cc: Remove prototype declarations for malloc and free.
597 These clash with recent versions of glibc, which specifies `throws ()'
598 when __cplusplus is defined. Instead, #include <stdlib.h>.
600 1999-11-24 Tom Tromey <tromey@cygnus.com>
602 * prims.cc (_Jv_NewObjectArray): Use
603 _Jv_GetArrayElementFromElementType.
604 (_Jv_NewPrimArray): Likewise.
605 * java/lang/natObject.cc (clone): Use
606 _Jv_GetArrayElementFromElementType instead of sizeof.
607 * java/lang/natSystem.cc (arraycopy): Use
608 _Jv_GetArrayElementFromElementType.
609 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
612 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
614 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
615 Exception messages. PR java.net/57.
616 (bind): set SO_REUSEADDR before bind.
617 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
618 overruns. PR java.net/57.
620 1999-11-19 Tom Tromey <tromey@cygnus.com>
622 * Makefile.am (DIVIDESPEC): Removed.
623 (EXCEPTIONSPEC): Removed.
625 1999-11-19 Andrew Haley <aph@cygnus.com>
627 * Makefile.am (JCFLAGS): Add -L$(here)
629 * Makefile.in: Rebuild.
631 1999-11-18 Tom Tromey <tromey@cygnus.com>
633 * java/lang/natDouble.cc: Include <config.h>.
635 * include/config.h.in: Rebuilt.
636 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
637 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
639 * configure: Rebuilt.
640 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
641 requested by configure.host. Don't put `-D' option into
642 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
644 * configure: Rebuilt.
645 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
648 1999-11-18 Andrew Haley <aph@cygnus.com>
650 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
651 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
653 * Makefile.in: Rebuild
654 * acconfig.h: remove SJLJ_EXCEPTIONS
655 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
656 Do not AC_DEFINE SJLJ_EXCEPTIONS.
657 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
658 * gcj/Makefile.in, include/Makefile.in: rebuild.
659 * include/config.h.in: remove SJLJ_EXCEPTIONS.
661 1999-11-18 Andrew Haley <aph@cygnus.com>
663 * gij.cc (main): Rename label to prevent conflict.
665 * exception.cc (_Jv_type_matcher): Don't check the table if we're
666 using setjmp/longjmp exceptions: there isn't one.
668 1999-11-17 Andrew Haley <aph@cygnus.com>
670 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
671 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
672 (__sjthrow): Add declaration.
673 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
677 * Makefile.in: Rebuild
678 * acconfig.h: Add SJLJ_EXCEPTIONS
679 * configure.in: Add SJLJ_EXCEPTIONS
680 * configure: Rebuild.
681 * gcj/Makefile.in: Rebuild.
682 * gcj/cni.h: Add support for sjlj-exceptions.
683 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
684 * include/Makefile.in: Rebuild.
685 * include/default-signal.h: Add support for sjlj-exceptions.
687 1999-11-18 Tom Tromey <tromey@cygnus.com>
689 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
691 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
693 (method_cache): Made larger.
695 1999-11-11 Tom Tromey <tromey@cygnus.com>
697 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
698 initializing mutex. Initialize `count' when required.
700 1999-11-07 Anthony Green <green@trip.cygnus.com>
702 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
705 1999-11-05 Tom Tromey <tromey@cygnus.com>
707 * java/lang/natThread.cc (destroy): Removed incorrect comment.
709 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
711 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
712 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
715 1999-11-05 Tom Tromey <tromey@cygnus.com>
717 * java/lang/natThread.cc (stop): Removed argument name.
719 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
720 `private'; now has default access.
721 * Makefile.in: Rebuilt.
722 * Makefile.am (java/lang/ThreadGroup.h): Removed.
724 1999-11-04 Tom Tromey <tromey@cygnus.com>
726 * java/lang/natClass.cc (method_cache_count): Removed.
727 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
728 (_Jv_AddMethodToCache): Don't loop.
730 * configure.in: Removed `qt' threads case.
731 * include/quick-threads.h: Removed.
732 * quick-threads.cc: Removed.
734 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
735 (_Jv_ThreadDestroy): Likewise.
736 * include/no-threads.h (_Jv_ThreadCancel): Removed.
737 (_Jv_ThreadDestroy): Likewise.
738 * include/posix-threads.h (struct _Jv_Thread_t): Removed
740 (_Jv_ThreadCancel): Removed decl.
741 (_Jv_ThreadDestroy): Removed.
742 * posix-threads.cc (_Jv_ThreadCancel): Removed.
743 (throw_cleanup): Removed.
744 (really_start): Don't push or pop cleanup.
745 (_Jv_ThreadInitData): Don't initialize `exception' field.
746 * java/lang/Thread.java (stop): Officially unimplemented.
747 * java/lang/natThread.cc (stop): Officially unimplemented.
749 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
751 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
754 1999-11-02 Tom Tromey <tromey@cygnus.com>
756 * boehm.cc: Don't include boehm-config.h.
758 1999-11-01 Tom Tromey <tromey@cygnus.com>
760 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
761 (sum_blocks): Removed.
762 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
764 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
766 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
768 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
769 * java/io/InputStreamReader (InputStreamReader): ditto.
771 1999-10-22 Tom Tromey <tromey@cygnus.com>
773 * Makefile.in: Rebuilt.
774 * Makefile.am (java/lang/ClassLoader.h): New target.
775 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
778 * include/java-props.h (_Jv_Compiler_Properties): Changed
780 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
781 * include/jvm.h (_Jv_GCSetInitialHeapSize,
782 _Jv_GCSetMaximumHeapSize): Declare.
783 (JvRunMain, _Jv_RunMain): Declare.
784 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
785 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
786 (_Jv_GCSetMaximumHeapSize): Likewise.
787 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
788 (_Jv_GCSetMaximumHeapSize): Likewise.
789 * prims.cc (parse_heap_size): New function.
790 (_Jv_SetInitialHeapSize): Likewise.
791 (_Jv_SetMaximumHeapSize): Likewise.
792 (_Jv_Compiler_Properties): New global.
793 * gij.cc (help): New function.
795 (heap_size): Likewise.
796 (heap_max_size): Likewise.
797 (main): Parse arguments. Set _Jv_Compiler_Properties.
798 Include <config.h>, <java-props.h>.
799 (_Jv_Compiler_Properties): Removed.
801 1999-10-18 Tom Tromey <tromey@cygnus.com>
803 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
805 (redirect): New static field.
806 * java/lang/ClassLoader.java (getSystemClassLoader): Now
808 (getVMClassLoader0): Removed.
809 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
811 (getSystemClassLoader): Implemented.
813 1999-10-16 Anthony Green <green@cygnus.com>
815 * java/lang/ClassLoader.java (getSystemResource): Use
816 getSystemClassLoader instead of ClassLoader.system.
817 (getSystemResourceAsStream): Ditto.
819 * java/lang/natClassLoader.cc (redirect): Make static and
820 remove #ifdef INTERPRETER so it is always defined.
821 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
822 returns a VMClassLoader.
824 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
825 PropertyResourceBundle if a properties file is found before a
826 ResourceBundle class.
828 1999-10-15 Tom Tromey <tromey@cygnus.com>
830 * gij.cc (main): Formatting fixes.
831 (_Jv_Compiler_Properties): Define.
832 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
834 (init_properties): Set properites from _Jv_Compiler_Properties.
835 * include/java-props.h (_Jv_Compiler_Properties,
836 _Jv_Environment_Properties): Declare.
838 * include/java-props.h: Added copyright.
840 1999-10-13 Anthony Green <green@cygnus.com>
842 * libtool-version: Catch up by incrementing current.
844 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
845 * configure, include/config.h.in: Rebuilt.
846 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
847 * configure.in: Added --disable-getenv-properties and new define
848 `DISABLE_GETENV_PROPERTIES'.
850 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
851 (next_property_key): New function.
852 (next_property_value): New function.
853 (process_gcj_properties): New function.
854 (JvRunMain): Call process_gcj_properties.
857 * java/lang/natSystem.cc (init_properties): Set properties defined
860 * include/java-props.h: New file.
862 * java/lang/natSystem.cc (init_properties): Add new properties to
863 conform with Java Product Versioning Specification.
865 1999-10-12 Tom Tromey <tromey@cygnus.com>
867 * configure: Rebuilt.
868 * configure.in: Fixed test for --disable-java-net.
870 1999-10-06 Tom Tromey <tromey@cygnus.com>
872 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
873 when building Canadian cross.
874 (NATIVE): Don't define when cross-compiling.
876 1999-10-04 Tom Tromey <tromey@cygnus.com>
878 * java/net/natPlainSocketImpl.cc: Don't include headers if
879 java.net is disabled.
881 * Makefile.in: Rebuilt.
882 * Makefile.am (ZINCS): Removed. This is defined in configure.in
883 when needed, and must be left empty when not needed.
885 1999-10-01 Anthony Green <green@cygnus.com>
887 * THANKS: Refreshed from htdocs version.
889 1999-10-01 Steve Chamberlain <sac@pobox.com>
891 * Makefile.in: Rebuilt.
892 * Makefile.am (ZINCS): Define
894 * configure: Rebuilt.
895 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
897 * java/lang/ieeefp.h: Add definitions for picoJava.
899 1999-10-01 Tom Tromey <tromey@cygnus.com>
901 * configure: Rebuilt.
902 * configure.in: Set classpath when invoking gcj. Use changequote
903 around sed invocation.
905 * java/net/natPlainSocketImpl.cc: Stub native functions if
906 DISABLE_JAVA_NET is defined.
907 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
908 typo in exception string.
909 (getTimeToLive): Likewise.
910 Stub native functions if DISABLE_JAVA_NET is defined.
911 * java/net/natInetAddress.cc: Stub native functions if
912 DISABLE_JAVA_NET is defined.
913 * configure.host: Disable java.net for mips-tx39.
914 * configure, include/config.h.in: Rebuilt.
915 * acconfig.h (DISABLE_JAVA_NET): Undefine.
916 * configure.in: Added --disable-java-net and new define
919 1999-09-30 Tom Tromey <tromey@cygnus.com>
921 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
923 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
927 1999-09-28 Tom Tromey <tromey@cygnus.com>
929 * configure: Rebuilt.
930 * configure.in (PROCESS): In POSIX case, only set if not already
932 * configure.host (PROCESS): Set in mips-tx39 case.
934 * aclocal.m4, configure: Rebuilt.
935 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
936 appropriate AC_PROG_ symbol.
938 1999-09-24 Tom Tromey <tromey@cygnus.com>
940 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
942 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
944 Fix for PR java.util/47:
945 * configure, include/config.h: Rebuilt.
946 * configure.in: Don't look for ctime or ctime_r.
947 * Makefile.in: Rebuilt.
948 * Makefile.am (nat_source_files): Don't mention natDate.cc.
949 * java/util/natDate.cc: Removed.
950 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
952 (getAvailableIDs): Rewrote.
953 (getTimeZone): Rewrote.
954 * java/util/Date.java (toGMTString): New method.
955 (toLocaleString): New method.
958 1999-09-23 Tom Tromey <tromey@cygnus.com>
960 * configure: Rebuilt.
961 * configure.in: Print message when checking to see if gcj can
962 handle -fuse-divide-subroutine.
964 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
966 * java/lang/FirstThread.java (run0): Renamed to `run'.
969 * prims.cc (main_init): New function.
970 (JvRunMain): Call it.
971 (_Jv_RunMain): Likewise.
973 (main_init): Ignore SIGPIPE. Fixes PR 51.
975 1999-09-22 Tom Tromey <tromey@cygnus.com>
977 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
979 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
981 * java/text/MessageFormat.java (MessageFormat(String)): Set the
983 * java/text/NumberFormat.java: Check that object is a Number. If
984 not, throw IllegialArgumentException.
986 1999-09-21 Tom Tromey <tromey@cygnus.com>
988 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
989 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
991 * include/posix-threads.h (_Jv_MutexDestroy): Use
993 (_Jv_MutexLock): Likewise.
994 (_Jv_MutexUnlock): Likewise.
996 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
997 previous patch; it too was incorrect.
998 * java/io/PrintStream.java (PrintStream): Likewise.
1000 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
1001 refer to `this' before calling superclass constructor.
1002 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
1003 before calling superclass constructor.
1005 1999-09-20 Tom Tromey <tromey@cygnus.com>
1007 * configure: Rebuilt.
1008 * configure.in: Send output of `-fuse-divide-subroutine' test
1009 compilation to /dev/null.
1011 1999-09-14 Tom Tromey <tromey@cygnus.com>
1013 * include/java-insns.h: Turned constants into an enum. Added
1014 multiple-inclusion protection.
1016 1999-09-10 Tom Tromey <tromey@cygnus.com>
1018 * configure: Rebuilt.
1019 * configure.in: Build include/Makefile.
1020 * Makefile.in: Rebuilt.
1021 * Makefile.am (SUBDIRS): Added gcj and include.
1022 (install-data-local): New target.
1023 (extra_headers): New macro.
1024 * include/Makefile.in: New file.
1025 * include/Makefile.am: New file.
1027 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1028 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1030 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1031 * resolve.cc: Include config.h.
1032 * defineclass.cc: Include config.h.
1033 * include/java-interp.h: Don't include config.h.
1034 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1037 * gcj/javaprims.h: Regenerated namespace decls.
1038 * classes.pl (scan): Don't put `;' after closing brace.
1040 * Makefile.in: Rebuilt.
1041 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1042 * configure.in: Create gcj/Makefile.
1043 * gcj/Makefile.in: New file.
1044 * gcj/Makefile.am: New file.
1045 * java/lang/Object.h: Don't include any other headers.
1046 * gcj/array.h: Renamed from include/java-array.h.
1047 * gcj/field.h: Renamed from include/java-field.h.
1048 * gcj/method.h: Renamed from include/java-method.h.
1049 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1050 Updated all files to reflect new include structure.
1052 1999-09-09 Tom Tromey <tromey@cygnus.com>
1054 * configure: Rebuilt.
1055 * configure.in: Fixed typo; variable is THREADSPEC and not
1058 1999-09-08 Tom Tromey <tromey@cygnus.com>
1060 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1061 previous change and implemented a correct test in the __m_count
1064 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1067 1999-09-07 Tom Tromey <tromey@cygnus.com>
1069 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1070 code and don't set errno.
1072 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1073 not `r'. Changed `done_sleeping' to a `bool'.
1075 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1077 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1078 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1079 by another thread, rather than by the GC.
1080 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1081 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1082 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1085 1999-09-03 Tom Tromey <tromey@cygnus.com>
1087 * configure: Rebuilt.
1088 * configure.in: Check for fstat function.
1089 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1092 1999-09-02 Tom Tromey <tromey@cygnus.com>
1094 * include/java-array.h (jobjectArrayjchar): Removed unused
1097 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1098 _Jv_PrepareCompiledClass while holding class mutex.
1100 1999-09-01 Tom Tromey <tromey@cygnus.com>
1102 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1103 (_Jv_PthreadGetMutex): Use it.
1104 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1105 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1106 (_Jv_MutexLock): Likewise.
1107 (_Jv_MutexUnlock): Likewise.
1108 * include/config.h.in: Rebuilt.
1109 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1110 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1111 * configure: Rebuilt.
1112 * libgcj.spec.in: Don't mention INTERPSPEC.
1113 * configure.in (INTERPSPEC): Removed.
1114 Only run pthreads-related checks when using POSIX threads. Check
1115 for m_count and __m_count in mutex structure.
1117 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1119 * java/lang/natClass.cc: Fixed notification of threads
1120 when class initialization is complete.
1122 1999-09-01 Tom Tromey <tromey@cygnus.com>
1124 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1125 * resolve.cc: Removed constants defined by
1126 java.lang.reflect.Modifier.
1127 Include <java/lang/reflect/Modifier.h>.
1128 (_Jv_ResolvePoolEntry): Use values from Modifier.
1129 (_Jv_DetermineVTableIndex): Likewise.
1130 (_Jv_PrepareClass): Likewise.
1132 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1133 java.lang.reflect.Modifier.
1134 Include <java/lang/reflect/Modifier.h>.
1135 (checkExtends): Use values from Modifier.
1136 (checkImplements): Likewise.
1137 (handleField): Likewise.
1138 (handleConstantValueAttribute): Likewise.
1139 (handleFieldsEnd): Likewise.
1140 (handleMethod ): Likewise.
1141 (handleMethodsEnd): Likewise.
1142 (handleClassBegin): Likewise.
1143 * interpret.cc: Removed constants defined by
1144 java.lang.reflect.Modifier.
1145 (continue1): Use values from Modifier.
1146 * java/lang/natClassLoader.cc: Removed constants defined by
1147 java.lang.reflect.Modifier.
1149 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1150 JV_STATE_NOTHING, not `0'.
1151 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1153 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1154 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1156 (_Jv_PthreadGetMutex): New function.
1157 (_Jv_PthreadCheckMonitor): Use it.
1158 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1159 (_Jv_MutexLock): Update `count'.
1160 (_Jv_MutexUnlock): Likewise.
1161 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1164 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1166 * Makefile.am (.java.lo): Add rule.
1168 * Makefile.in: Rebuilt.
1170 1999-09-01 Tom Tromey <tromey@cygnus.com>
1172 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1173 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1175 (_Jv_CondNotify): Use it.
1176 (_Jv_CondNotifyAll): Likewise.
1178 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1180 1999-08-31 Tom Tromey <tromey@cygnus.com>
1182 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1185 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1187 * posix-threads.cc: Include <errno.h>.
1189 1999-08-23 Tom Tromey <tromey@cygnus.com>
1191 * boehm.cc: Undefine TRUE and FALSE.
1193 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1195 1999-08-21 Tom Tromey <tromey@cygnus.com>
1197 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1200 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1202 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1204 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1205 (HAVE_STRUCT_IP_MREQ): Added.
1206 * configure, include/config.h.in: Rebuilt.
1207 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1209 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1210 Disable if ip_mreq is not available.
1212 * configure.in: Check types ssize_t and in_addr_t.
1213 * acconfig.h: Undefine them.
1214 * configure, include/config.h.in: Rebuilt.
1216 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1217 function that detects the signature of getpwuid_r.
1218 (init_properties): Use it.
1219 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1222 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1224 * interpret.cc (continue1): Implement explicit dispatch table.
1225 insn_target: Explicit interpreter switch table.
1226 SAVE_PC: New macro, moves pc saving code into instructions that
1228 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1229 PC_REGISTER_ASM: New macro.
1230 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1231 opcode: Remove local variable.
1232 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1233 (POKEI): Use _Jv_word.
1234 (iinc): Use _Jv_word.
1235 (dupx): Change reference argument (sp) to pointer.
1238 * interpret.cc: Remove instruction timing instrumentation.
1240 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1241 comment. Don't use _Jv_ClassNameSamePackage.
1243 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1244 URLPathEntry, CacheEntry}: Removed.
1246 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1248 (.java.lo): Rule removed.
1250 * Makefile.in: Rebuilt.
1252 1999-08-19 Tom Tromey <tromey@cygnus.com>
1254 * java/lang/natThread.cc (class locker): New class.
1255 (join): Use a locker around _Jv_CondWait.
1258 1999-08-18 Tom Tromey <tromey@cygnus.com>
1260 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1261 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1263 1999-08-18 Tom Tromey <tromey@cygnus.com>
1265 * include/javaprims.h ("Java"): Regenerated namespace decls.
1267 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1269 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1270 from _Jv_InternClassStrings.
1272 * prims.cc (_Jv_RunMain): New function.
1273 (JvRunMain): Remove gij-support.
1275 * gij.cc (main): Use _Jv_RunMain.
1277 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1279 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1280 argument in temp variable.
1281 (continue1): For all op_x2y insns, use temp variable for
1282 intermediate value. Also remove some comments.
1284 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1285 (forName): Don't call _Jv_InitClass.
1287 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1289 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1291 * java/util/jar/JarInputStream.java: New file.
1293 * java/util/jar/JarEntry.java: New file.
1295 * java/util/jar/JarFile.java: New file.
1297 * java/net/URLClassLoader.java: New file.
1299 * java/net/JarURLConnection.java: New file.
1301 * gnu/gcj/protocol/jar/Handler.java: New file.
1303 * gnu/gcj/protocol/jar/Connection.java: New file.
1305 * java/security/SecureClassLoader.java: New file.
1307 * java/lang/ClassLoader.java (parent): New variable.
1308 (ClassLoader (ClassLoader)): new constructor.
1309 (findClass): New method.
1310 (loadClass): Add default 1.2 implementation.
1311 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1312 (readfully): Removed.
1314 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1315 (findSystemClass): New method.
1316 (VMClassLoader): Constructor rewritten.
1318 All other methods removed.
1320 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1321 to gnu::gcj::runtime::VMClassLoader.
1322 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1324 (VMClassLoader::findSystemClass): renamed from findBootClass.
1326 * Makefile.am: Add new files.
1327 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1329 * Makefile.in: Rebuilt.
1331 1999-08-17 Tom Tromey <tromey@cygnus.com>
1333 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1335 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1338 1999-08-16 Tom Tromey <tromey@cygnus.com>
1340 * configure: Rebuilt.
1341 * configure.in: Set DIVIDESPEC to empty string if compiler does
1342 not support -fuse-divide-subroutine.
1344 1999-08-14 Per Bothner <per@bothner.com>
1346 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1347 * java/lang/natClass.cc (initializeClass): Likewise.
1348 * java/lang/ClassLoader.java (resolveClass0): New static method.
1349 (resolveClass): Call resolveClass0.
1350 (findSystemClass): No longer static.
1352 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1354 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1356 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1358 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1361 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1363 * Makefile: Rebuilt.
1364 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1367 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1370 * configure: Rebuilt.
1371 * configure.in: Properly align --help output, fix capitalization
1373 * acinclude.m4: Likewise.
1375 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1377 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1379 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1380 (_Jv_callInterpretedMethod): Unused. Remove.
1381 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1383 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1384 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1385 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1386 * interpret.cc: use _Jv_word.
1387 * defineclass.cc: use_Jv_word.
1388 * resolve.cc: Use _Jv_word.
1389 (_Jv_ResolvePoolEntry): Return _Jv_word.
1390 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1391 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1393 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1396 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1398 * configure: Rebuilt.
1399 * configure.in (sched_yield): Try librt first, then libposix4.
1400 Add -lrt, -lposix4 to THREADSPEC.
1402 1999-08-08 Anthony Green <green@cygnus.com>
1404 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1406 1999-08-08 Anthony Green <green@cygnus.com>
1408 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1411 1999-08-08 Anthony Green <green@cygnus.com>
1415 * include/config.h.in: Rebuilt.
1416 * acconfig.h: Add INTERPRETER.
1418 * Makefile.in: Rebuilt.
1419 * Makefile.am (libffi_files): Identify the libffi object files for
1420 inclusion in libgcj.
1421 (LIBFFIINCS): Define.
1423 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1424 Dummy definition for configurations without an interpreter.
1426 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1427 java::lang::Boolean constructor.
1429 * include/java-interp.h: Always include java-cpool.h.
1431 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1432 when INTERPRETER not defined.
1434 * java/lang/Class.h (finalize): Define.
1436 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1437 IOException from File.getCanonicalPath.
1438 (getStream): Likewise.
1441 * THANKS: More thanks.
1443 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1445 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1447 (_Jv_PrepareClass): Allow non-abstract classes to
1448 have abstract subclasses.
1449 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1451 * interpret.cc (continue1/perform_invoke): Don't sign extend
1453 (continue1/lshl,lshr): Push long, not int.
1454 (continue1/ulshr): Use UINT64, not long long.
1455 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1457 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1458 * java/lang/FirstThread.java (run): Add top-level exception
1460 (run0): Renamed from run.
1462 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1464 * configure.in (--with-interpreter): Added.
1465 * include/config.h.in (INTERPRETER): Added.
1467 * java/lang/ClassLoader.java: File replaced.
1468 * java/lang/VMClassLoader.java: New file.
1469 * java/lang/natClassLoader.cc: New file.
1470 * gnu/gcj/runtime/MethodInvocation.java: New file.
1471 * gnu/gcj/util/path/SearchPath.java: New file.
1472 * gnu/gcj/util/path/PathEntry.java: New file.
1473 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1474 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1475 * gnu/gcj/util/path/URLPathEntry.java: New file.
1476 * gnu/gcj/util/path/CacheEntry.java: New file.
1477 * include/java-interp.h: New file.
1478 * include/java-cpool.h: New file.
1479 * include/java-insns.h: New file.
1480 * defineclass.cc: New file.
1481 * interpret.cc: New file.
1482 * resolve.cc: New file.
1484 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1485 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1486 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1488 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1489 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1491 (initializeClass): Use new JV_ prefixed names. Also, call
1492 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1494 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1495 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1496 JV_STATE_LINKED): New.
1497 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1498 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1499 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1500 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1501 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1502 _Jv_InterpMethodInvocation): New friends for interpreter.
1504 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1505 include/java-cpool.h and renamed with JV_ prefix.
1507 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1509 (_Jv_UnregisterClass): New decl.
1511 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1512 class loader argument.
1513 (_Jv_FindClass): Use class loader.
1515 * prims.cc (_Jv_makeUtf8Const): New function.
1516 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1517 (_Jv_NewPrimArray): Ditto.
1518 (_Jv_FindClassFromSignature): Ditto.
1519 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1520 * java/lang/reflect/natMethod.cc (getType): Ditto.
1522 * include/java-field.h (_Jv_Field::isRef): Make robust for
1523 non-resolved contexts.
1525 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1526 Also, don't mark class->next field.
1528 * java/lang/VirtualMachineError.java: Added FIXME note.
1530 * configure.in (INTERPSPEC): New spec.
1531 * libgcj.spec.in: Added INTERPSPEC.
1532 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1533 gnu/gcj/runtime/MethodInvocation.
1534 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1535 (ordinary_java_source_files): Added above mentioned java classes.
1537 * configure: Rebuilt.
1538 * Makefile.in: Rebuilt.
1540 1999-08-06 Tom Tromey <tromey@cygnus.com>
1542 * configure: Rebuilt.
1543 * configure.in: Look for sched_yield in -lrt.
1545 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1547 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1548 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1549 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1551 (toString): Print correctly when `country' is empty.
1553 1999-08-04 Per Bothner <per@bothner.com>
1555 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1557 1999-08-02 Tom Tromey <tromey@cygnus.com>
1559 * aclocal.m4, configure: Rebuilt for new libtool.
1561 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1563 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1564 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1565 * java/net/ServerSocket.java: Define ANY_IF.
1566 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1567 all network interfaces.
1568 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1569 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1571 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1573 * java/io/natFile.cc (performMkdir): Remove FIXME.
1574 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1576 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1578 * configure.in: Check for bstring.h.
1579 * configure, include/config.h.in: Rebuilt.
1580 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1581 * java/net/natPlainSocketImpl.cc: Likewise.
1583 1999-07-31 Tom Tromey <tromey@cygnus.com>
1588 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1590 * configure.in: Check for struct hostent_data and need for
1591 -D_REENTRANT for gethostbyname_r declaration.
1592 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1593 (lookup): Use hostent_data for fixed_buffer.
1594 * configure, include/config.h.in: Rebuilt.
1596 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1598 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1599 available. Don't cast memmove args to (void*).
1600 * configure.in: Do not abort if memmove is not available.
1602 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1604 * java/lang/natString.cc (substring): optimize where substring is
1606 * java/io/File.java (getName): don't return separator with file name.
1607 * java/io/natFile.cc (attr): fix overflow.
1609 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1611 * mauve-libgcj: Disable Object Serialization tests.
1613 1999-07-20 Warren Levy <warrenl@cygnus.com>
1615 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1616 Default to using PlainDatagramSocketImpl.
1617 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1619 1999-07-19 Tom Tromey <tromey@cygnus.com>
1621 * include/stamp-h.in: New file.
1623 1999-07-12 Tom Tromey <tromey@cygnus.com>
1625 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1628 1999-07-07 Andrew Haley <aph@cygnus.com>
1630 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1631 bytes to make it point after the instruction where the trap
1633 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1635 1999-07-07 Tom Tromey <tromey@cygnus.com>
1637 * mauve-libgcj: Explicitly enable formerly disabled java.text
1640 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1643 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1645 * java/net/URL.java (equals): Compare strings using String.equals.
1646 * java/net/URL.java (sameFile): Ditto.
1648 1999-07-02 Warren Levy <warrenl@cygnus.com>
1650 * configure: Rebuilt.
1651 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1652 * include/config.h.in: Rebuilt.
1653 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1654 (mcastGrp): Updated FIXME comments.
1655 (setOption): Fixed typo.
1656 (getOption):Implemented IP_MULTICAST_IF.
1658 1999-07-02 Warren Levy <warrenl@cygnus.com>
1660 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1661 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1662 (getTimeToLive): Implemented.
1663 (setOption): Implemented IP_MULTICAST_IF.
1665 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1667 * java/lang/String.java (toString): Check for this == null and throw
1668 NullPointerException.
1670 1999-07-01 Warren Levy <warrenl@cygnus.com>
1672 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1673 to count and revised comments to match.
1674 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1675 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1676 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1677 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1678 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1679 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1681 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1683 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1684 properly as count rather than outlength.
1685 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1686 output on overflow rather than buffer fill.
1687 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1688 if markPos is 0 and there is still room in the buffer.
1690 1999-07-01 Andrew Haley <aph@cygnus.com>
1692 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1693 This is a workaround for a bug in glibc's pthreads package which
1694 doesn't deliver any sigcontext information to a signal handler.
1696 1999-06-24 Tom Tromey <tromey@cygnus.com>
1698 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1699 * java/lang/fdlibm.h (HUGE): Conditionally define.
1701 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1703 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1704 * java/lang/e_log.c: Don't use __uint32_t.
1706 1999-05-27 Eric Christopher <echristo@cygnus.com>
1708 * configure: Rebuilt
1709 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1710 * acconfig.h: Rebuilt
1711 * include/config.h.in: Rebuilt
1713 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1714 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1715 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1716 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1717 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1718 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1719 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1720 and namespace collision with __uint32_t
1722 1999-06-23 Tom Tromey <tromey@cygnus.com>
1724 * java/util/zip/InflaterInputStream.java (read): Throw
1725 ZipException if inflater throws a DataFormatException.
1727 1999-06-23 Warren Levy <warrenl@cygnus.com>
1729 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1730 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1731 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1732 is not final per JDK.
1733 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1735 * java/util/zip/DataFormatException.java: Class extends Exception.
1736 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1737 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1738 * java/util/zip/ZipInputStream.java: ditto.
1739 (closeEntry): Changed method name to match JDK spec.
1741 1999-06-21 Tom Tromey <tromey@cygnus.com>
1743 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1746 * Makefile.in: Rebuilt.
1747 * Makefile.am (toolexeclibdir): Define as libdir when
1749 * configure: Rebuilt.
1750 * configure.in (USE_LIBDIR): New conditional.
1752 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1754 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1755 hostname in returned InetAddress objects.
1756 (getLocalHostname): Fix typo.
1757 * java/net/InetAddress.java (getByName): Set hostname on return
1759 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1762 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1764 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1765 interfaces if host==NULL.
1766 (accept): Throw message with InterruptedIOException.
1767 (getOption): Cache localAddress.
1768 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1769 'address' for DatagramSocket.
1770 (setTimeToLive): Fix compiler warnings.
1771 (getOption): Cache localAddress.
1772 * java/net/Socket.java (getLocalAddress): Don't need local
1773 InetAddress object. Add FIXME comment about calling checkConnect().
1774 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1775 connection queue to 50 as per JDK 1.2 docs.
1776 (ServerSocket(int,int)): Listen on all network interfaces by
1777 default, per JDK 1.2 docs.
1778 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1779 Add localAddress caching.
1781 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1783 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1785 (write(byte[],int,int)): ditto.
1787 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1789 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1791 1999-06-11 Warren Levy <warrenl@cygnus.com>
1793 * mauve-libgcj: Activated java.net Mauve tests.
1795 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1797 * java/net/natInetAddress.cc (aton): Fix typos.
1798 (lookup): Use a bigger buffer size for gethostbyname_r on all
1799 versions of glibc. Updated FIXME comment explaining this.
1800 Modified while loops to not set herr = ERANGE to work around glibc
1801 problems. Use user specified hostname in InetAddress result when
1802 available (consistent with JDK).
1804 1999-06-10 Warren Levy <warrenl@cygnus.com>
1806 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1807 Throw FileNotFoundException instead of IOException.
1809 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1811 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1812 in static field name.
1813 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1814 throughout rather than ParseException.
1816 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1818 * java/lang/Runtime.java (exec): Convert prog name and arguments
1820 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1821 environment array conversion. Preserve current environment if envp
1822 not passed. Preserve PATH unless explicitly specified.
1823 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1824 followed by EOF. Set a flag when a line is terminated by '\r' and
1825 ignore following '\n' if set.
1827 1999-06-02 Warren Levy <warrenl@cygnus.com>
1829 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1830 Ignore context if spec is an absolute URL. Fix braindead
1832 (hashCode): Use JDK 1.2 style algorithm.
1833 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1834 context URL properly.
1836 1999-05-30 Anthony Green <green@cygnus.com>
1838 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1839 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1841 1999-05-28 Warren Levy <warrenl@cygnus.com>
1843 * java/net/DatagramSocket.java (laddr): Removed.
1844 (DatagramSocket): Removed attempts to get or set laddr if null.
1845 (getLocalAddress): Reimplemented per spec.
1846 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1848 (joinGroup): Throw NullPointerException if any argument is null.
1849 (leaveGroup): ditto.
1850 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1851 * java/net/PlainSocketImpl.java (timeout): Added.
1852 (getInputStream): Added FIXME comment on how to support timeouts
1854 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1855 * java/net/Socket.java: Added FIXME comments to identify
1856 conflicting specs between the JCL and JDK 1.2 documents.
1857 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1858 if host is null. Get localport value resolved by kernel if bind
1860 (receive): Implemented support for timeouts in UDP.
1861 (setOption): Implemented based on natPlainSocketImpl version.
1863 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1864 resolved by kernel if bind lport is 0.
1865 (connect): Get localport value resolved by kernel if bind wasn't
1866 done to set localport.
1867 (accept): Implemented support for timeouts for ServerSocket.
1868 (setOption): Save value for SO_TIMEOUT.
1869 (getOption): Return timeout for SO_TIMEOUT.
1871 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1873 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1874 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1875 (setOption): Made abstract.
1876 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1877 to avoid cpp conflicts in native code.
1878 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1879 cpp conflicts in native code.
1880 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1881 * java/net/Socket.java (getLocalAddress): Implemented.
1882 (setTcpNoDelay): Implemented.
1883 (getTcpNoDelay): Implemented.
1884 (setSoLinger): Implemented.
1885 (getSoLinger): Implemented.
1886 (getSoTimeout): Verify class type.
1887 (setSendBufferSize): Implemented.
1888 (getSendBufferSize): Implemented.
1889 (setReceiveBufferSize): Implemented.
1890 (getReceiveBufferSize): Implemented.
1891 (toString): Prepended "Socket".
1892 * java/net/SocketImpl.java (toString): Rewritten.
1893 (getOption): Made abstract.
1894 (setOption): Made abstract.
1895 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1896 (setOption): Implemented.
1897 (getOption): Implemented.
1899 1999-05-26 Warren Levy <warrenl@cygnus.com>
1901 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1902 address when null. Set SO_REUSEADDR for multicasts.
1903 (getSoTimeout): Implemented.
1904 (setSoTimeout): Implemented.
1905 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1906 * java/net/MulticastSocket.java (getInterface): Implemented.
1907 (setInterface): Implemented.
1908 (setTimeToLive): Check for invalid ttl.
1909 (joinGroup): Verify multicast address and security.
1910 (leaveGroup): Verify multicast address and security.
1911 (send): Implemented.
1912 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1918 (getTTL): Implemented as non-native.
1922 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1923 (getSoTimeout): Implemented.
1924 (setSocketFactory): Made synchronized.
1925 * java/net/Socket.java (setSoTimeout): Implemented.
1926 (getSoTimeout): Implemented.
1927 (close): Made synchronized.
1928 (setSocketImplFactory): Made synchronized.
1929 * java/net/SocketImpl.java: Implement SocketOptions interface.
1930 * java/net/natInetAddress.cc: Corrected module name at top of file.
1931 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1932 (bind): Added FIXME.
1933 (peek): Implemented.
1939 (setOption): Implemented for SO_REUSEADDR.
1940 (getOption): Implemented for SO_REUSEADDR.
1942 1999-05-24 Tom Tromey <tromey@cygnus.com>
1944 * java/util/ResourceBundle.java (getBundle): Throw
1945 NullPointerException if baseName is null.
1947 1999-05-22 Tom Tromey <tromey@cygnus.com>
1949 * java/util/zip/ZipInputStream.java (fill): New method.
1950 (compressed_len): New instance variable.
1951 (getNextStream): Set it.
1952 (read): Reset inflater on EOF. Only read via `super' if entry is
1954 (skip): Only skip via `super' if entry is deflated.
1955 * java/util/zip/Deflater.java (last_input_count): Removed.
1956 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1958 (needsInput): Don't use last_input_count.
1959 (setInput): Don't set last_input_count.
1960 * java/util/zip/natInflater.cc (getRemaining): Return correct
1962 (inflate): Return 0 if input array is length 0.
1963 (setInput): Don't set last_input_count.
1964 * java/util/zip/Inflater.java (last_input_count): Removed.
1966 1999-05-21 Tom Tromey <tromey@cygnus.com>
1968 * Makefile.in: Rebuilt.
1969 * Makefile.am (INCLUDES): Added $(ZINCS).
1970 * configure: Rebuilt.
1971 * configure.in (ZINCS): New subst.
1973 1999-05-21 Andrew Haley <aph@cygnus.com>
1975 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1976 to signal options to allow the same exceptions to be rethrown
1979 1999-05-20 Andrew Haley <aph@cygnus.com>
1981 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1983 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1984 (INIT_FPE): Exception string made more informative.
1985 * include/sparc-signal.h (INIT_FPE): Exception string made more
1987 * testsuite/libjava.lang/Divide_1.java: New file.
1988 * testsuite/libjava.lang/Divide_1.out: New file.
1990 1999-05-19 Tom Tromey <tromey@cygnus.com>
1992 * aclocal.m4, configure: Rebuilt.
1993 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1995 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1998 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
2000 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
2002 (update): Fail in default case. Always initialize `strat'.
2004 * mauve-libgcj: Enable java.util.zip.
2006 1999-05-18 Warren Levy <warrenl@cygnus.com>
2008 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2009 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2010 PlainDatagramSocketImpl.java, and SocketOptions.java.
2011 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2012 * Makefile.in: Rebuilt.
2014 * java/net/DatagramPacket.java: New file.
2015 * java/net/DatagramSocket.java: New file.
2016 * java/net/DatagramSocketImpl.java: New file.
2017 * java/net/MulticastSocket.java: New file.
2018 * java/net/PlainDatagramSocketImpl.java: New file.
2019 * java/net/SocketOptions.java: New file.
2020 * java/net/natPlainDatagramSocketImpl.cc: New file.
2022 1999-05-18 Tom Tromey <tromey@cygnus.com>
2024 * java/util/zip/ZipOutputStream.java (level): Initial value is
2025 Deflater.DEFAULT_COMPRESSION.
2026 (close): New method.
2027 (closeEntry): Likewise.
2029 (put_version): Likewise.
2030 (write_entry): Likewise.
2031 (put2, put4): Now return `int'.
2032 (comment): Default to empty string.
2033 (bytes_written): New instance variable.
2035 * java/util/zip/ZipEntry.java (setComment): Limit length of
2037 (setCrc): Check CRC validity.
2038 (setExtra): Check argument validity.
2039 (setMethod): Likewise.
2040 (setSize): Likewise.
2041 (ZipEntry): Likewise.
2042 * include/javaprims.h: Updated namespace declarations.
2043 * Makefile.in: Rebuilt.
2044 * Makefile.am (ordinary_java_source_files): Mention new files.
2045 (nat_source_files): Likewise.
2046 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2049 (getInputStream): Handle compressed entries.
2050 * java/util/zip/GZIPOutputStream.java: New file.
2051 * java/util/zip/GZIPInputStream.java: New file.
2052 * java/util/zip/DataFormatException.java: New file.
2053 * java/util/zip/CheckedInputStream.java: New file.
2054 * java/util/zip/CheckedOutputStream.java: New file.
2055 * java/util/zip/InflaterInputStream.java: Implemented.
2056 * java/util/zip/natInflater.cc: New file.
2057 * java/util/zip/Deflater.java: Implemented.
2058 * java/util/zip/natDeflater.cc: New file.
2059 * java/util/zip/DeflaterOutputStream.java: Implemented.
2061 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2062 ZipException, not IOException.
2063 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2066 1999-05-17 Tom Tromey <tromey@cygnus.com>
2068 * java/lang/natSystem.cc (init_properties): URL now points to
2071 1999-05-12 Per Bothner <bothner@cygnus.com>
2073 * java/util/Calendar.java (set): First call computeFields if needed.
2074 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2076 1999-05-12 Tom Tromey <tromey@cygnus.com>
2078 * configure: Rebuilt.
2079 * configure.in: Look for -ldl when using the Boehm collector.
2080 Look for sched_yield in -lposix4.
2082 1999-05-12 Per Bothner <bothner@cygnus.com>
2084 * java/io/File.java (mkdirs): Handle a null parent directory.
2086 1999-05-12 Tom Tromey <tromey@cygnus.com>
2088 * include/javaprims.h: Updated namespace declarations.
2089 * classes.pl (scan): Uniquify class list.
2090 * Makefile.in, configure: Rebuilt.
2091 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2092 (built_java_source_files): New macro.
2093 (nat_headers): Added built_java_source_files.
2094 (javao_files): Likewise.
2095 (EXTRA_libgcj_la_SOURCES): Likewise.
2096 (libgcj.zip): Create built class files.
2097 ($(built_java_source_files:.java=.class)): New target.
2098 (jv_convert_LDADD): Added -L$(here)/.libs.
2099 * configure.in: Create links for ConcreteProcess.java and
2100 natConcreteProcess.cc.
2101 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2102 * java/lang/natEcosProcess.cc: New file.
2103 * java/lang/EcosProcess.java: New file.
2104 * java/lang/PosixProcess.java: New file.
2105 * java/lang/natPosixProcess.cc: New file.
2107 1999-05-12 Warren Levy <warrenl@cygnus.com>
2109 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2110 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2111 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2112 (connect): Throw ConnectException.
2114 1999-05-11 Tom Tromey <tromey@cygnus.com>
2116 * Makefile.in: Rebuilt.
2117 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2118 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2121 * Makefile.in: Rebuilt.
2122 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2123 and it causes problems with libtool.
2125 * Makefile.in, configure: Rebuilt.
2126 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2127 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2128 (jv_convert_DEPENDENCIES): Added ZDEPS.
2129 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2131 (THREADSPEC): Added `-L' to point to qthreads build directory.
2135 * configure, Makefile.in: Rebuilt.
2136 * Makefile.am (toolexeclib_DATA): New macro.
2137 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2138 Recognize --with-system-zlib.
2139 (GCSPEC): New subst.
2140 (THREADSPEC): New subst.
2141 (SYSTEMSPEC): New subst.
2142 (ZLIBSPEC): New subst.
2143 * libgcj.spec.in: New file.
2145 1999-05-10 Tom Tromey <tromey@cygnus.com>
2147 * java/io/InputStreamReader.java (read): If length is 0, return
2148 0. Reset `wpos' and `wcount' when buffer has been filled and
2151 * java/util/Properties.java (save): Removed `FIXME' comment.
2152 (load): Invalid characters in \u now treated as terminators.
2153 Make sure to append character resulting from `\' handling.
2154 Cast to `char' when appending to key or value.
2155 (skip_ws): Inverted test for whitespace.
2157 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2159 (readLine): Likewise.
2160 (readFully): Implemented.
2162 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2164 * java/awt/natToolkit.cc: Added copyright header.
2165 * java/util/zip/InflaterInputStream.java: Added copyright header.
2167 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2169 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2171 (getNextStream): Likewise.
2173 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2175 (getBundle): Don't explicitly throw null pointer exception.
2177 * gnu/gcj/RawData.java: Added copyright header.
2179 * include/jni.h (_Jv_va_list): Always define as va_list.
2181 1999-05-9 Anthony Green <green@cygnus.com>
2183 * java/text/DateFormat.java (computeInstance): Separate time
2185 (getDateTimeInstance): Ditto.
2186 (getDateTimeInstance(int,int)): New method.
2188 * Makefile.in: Rebuilt.
2189 * Makefile.am (ordinary_java_source_files): Add new classes.
2191 * java/util/PropertyResourceBundle.java: New file.
2192 * gnu/gcj/util/EnumerationChain.java: New file.
2194 1999-05-07 Tom Tromey <tromey@cygnus.com>
2196 * acconfig.h (GCJVERSION): New undef.
2197 * java/lang/natSystem.cc (init_properties): Define java.version,
2198 java.class.version, os.name, os.arch, os.version.
2199 Include <sys/utsname.h> if required.
2200 * configure: Rebuilt.
2201 * configure.in: Compute and define GCJVERSION.
2203 * java/lang/natSystem.cc (default_file_encoding): Now static.
2205 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2207 * libtool-version: New file.
2208 * Makefile.in: Rebuilt.
2209 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2212 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2213 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2216 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2217 (we pick those up already).
2219 1999-05-05 Per Bothner <bothner@cygnus.com>
2221 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2222 stub classes. (This is enough to get Kawa to compile against libgcj.)
2224 * gnu/gcj/RawData.java: New class.
2225 * doc/cni.sgml: Document RawData.
2227 * java/util/zip/InflaterInputStream.java: New stub class.
2228 * java/util/zip/ZipInputStream.java: New class. Partly works.
2229 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2230 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2231 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2232 * java/util/zip/ZipOutputStream.java: Start implementation.
2234 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2235 (default_file_encoding): New global, initial value is above macro.
2236 (init_properties): Default file.encoding to default_file_encoding.
2238 * Makefile.am: Add new classes.
2240 1999-05-05 Tom Tromey <tromey@cygnus.com>
2242 * Makefile.in: Rebuilt.
2243 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2244 (clean-local): New target
2246 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2247 (load, loadLibrary): Now native.
2249 * java/lang/Runtime.java (load, loadLibrary): Now native.
2250 (init): New native method.
2251 (Runtime): Use init.
2252 * prims.cc: Include <ltdl.h> if required.
2253 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2255 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2257 * configure.in: Switch from irix threads to posix threads
2258 * configure: Regenerate.
2260 1999-04-30 Tom Tromey <tromey@cygnus.com>
2262 * Makefile.in: Rebuilt.
2263 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2265 1999-04-29 Tom Tromey <tromey@cygnus.com>
2267 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2270 * java/util/Locale.java (Locale(String,String)): Implement in
2271 terms of 3-argument version; variant now defaults to empty
2273 (toString): Assume variant is not null.
2274 (equals): Assume all strings are not null.
2275 (Locale): Throw NullPointerException if any argument is null.
2277 * java/util/ResourceBundle.java (getBundle): Don't try the base
2278 name; now implicit in partialGetBundle call.
2279 (trySomeGetBundle): Search for parent bundles and call setParent
2281 (partialGetBundle): Added `langStop' argument. Use
2282 `Locale.toString' to compute bundleName.
2283 (resource_cache): New static field.
2284 (partialGetBundle): Cache the returned resource bundle. Now
2287 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2290 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2291 * java/text/natCollator.cc (decomposeCharacter): `base' now
2293 * Makefile.in: Rebuilt.
2294 * Makefile.am (ordinary_java_source_files): Added
2295 CollationElementIterator, CollationKey, Collator,
2297 (nat_source_files): Added natCollator.cc.
2298 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2299 (compare): Pass `this' to CollationElementIterator constructor.
2300 (getCollationElementIterator): Likewise.
2301 (ceiNext): Fix off-by-one error when finding initial substring.
2302 (next): Correctly mask off bits when computing return value.
2303 Fixed return values when one string is shorter than the other.
2304 * java/text/CollationElementIterator.java (collator): New field.
2305 (CollationElementIterator): Added collator argument.
2306 (next): Call ceiNext on collator object.
2308 1999-04-26 Tom Tromey <tromey@cygnus.com>
2310 * natCollator.cc: New file.
2312 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2313 (GregorianCalendar): Use it in all constructors.
2314 * java/util/Calendar.java (Calendar): Changed argument name to
2315 `zone' to match code.
2317 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2318 * java/text/CollationKey.java: New file.
2319 * java/text/CollationElementIterator.java: New file.
2320 * java/text/Collator.java: New file.
2321 * java/text/RuleBasedCollator.java: New file.
2323 * Makefile.in: Rebuilt.
2324 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2325 (jv_convert_LDADD): Explicltly add -lm -lc.
2327 1999-04-26 Tom Tromey <tromey@cygnus.com>
2329 * configure, Makefile.in: Rebuilt.
2330 * configure.in: Added AM_PROG_LIBTOOL.
2331 (GCOBJS): Use `.lo' form of files.
2332 (THREADOBJS): Likewise.
2333 (GCDEPS): Use `.la' form of library.
2334 (GCLIBS): Set to be the same as GCDEPS.
2335 (THREADDEPS): Use `.la' form of library.
2336 (THREADLIBS): Set to be the same as THREADDEPS.
2337 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2338 toolexeclib_LIBRARIES.
2339 (libgcj_la_SOURCES): Renamed for libtoolization.
2340 (EXTRA_libgcj_la_SOURCES): Likewise.
2341 (libgcj_la_DEPENDENCIES): Likewise.
2342 (libgcj_la_LIBADD): Likewise.
2343 ($(nat_files)): Use LTCXXCOMPILE.
2344 ($(c_files)): Use LTCOMPILE.
2345 (GCJCOMPILE): New macro.
2347 (.java.o): Likewise.
2348 ($(javao_files)): Likewise.
2349 (jv_convert_LINK): Use LIBTOOL.
2350 (nat_files): Use `.lo' files.
2351 (c_files): Likewise.
2352 (javao_files): Likewise.
2353 (.class.lo): Renamed.
2354 (.java.lo): Likewise.
2355 ($(nat_files)): Depend on %.lo.
2356 ($(c_files)): Likewise.
2357 ($(javao_files)): Likewise.
2358 (jv_convert_LDADD): Link against .lo files.
2359 (jv_convert_DEPENDENCIES): Depend on .lo files.
2360 (maintainer-check): Depend on libgcj.la, but examine .a file.
2361 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2362 (libgcj_la_LDFLAGS): New macro.
2364 1999-04-23 Warren Levy <warrenl@cygnus.com>
2366 * Makefile.am: Added URLDecoder and URLEncoder.
2367 * Makefile.in: Rebuilt.
2369 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2370 setSocketImplFactory to match spec.
2371 * java/net/Socket.java (getSoLinger): Changed return type to
2374 * java/net/URLDecoder.java: New file.
2375 * java/net/URLEncoder.java: New file.
2377 1999-04-21 Tom Tromey <tromey@cygnus.com>
2379 * java/lang/natString.cc (getBytes): Reverted earlier change and
2380 applied correct fix from Per Bothner.
2382 * java/lang/String.java: Don't throw
2383 UnsupportedEncodingException.
2385 * java/lang/natString.cc (getBytes): Correctly size result
2386 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2388 1999-04-20 Andrew Haley <aph@cygnus.com>
2390 * include/sparc-signal.h: new file.
2391 * configure.in: include/sparc-signal.h added.
2392 * configure: regenerated.
2393 * prims.cc (JvRunMain): signal handling code rewritten to be more
2395 (catch_segv): ditto.
2397 * include/i386-signal.h: reorganized.
2398 * include/default-signal.h: reorganized.
2400 1999-04-19 Tom Tromey <tromey@cygnus.com>
2402 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2403 once. From Anthony Green.
2405 1999-04-19 Andrew Haley <aph@cygnus.com>
2407 * Makefile.in: Processed with new automake.
2409 1999-04-19 Tom Tromey <tromey@cygnus.com>
2411 * include/javaprims.h: Removed security namespace.
2413 1999-04-20 Anthony Green <green@cygnus.com>
2415 * java/io/PrintStream.java (println): Remove extra println.
2417 1999-04-19 Anthony Green <green@cygnus.com>
2419 * Makefile.in: Rebuilt.
2420 * Makefile.am (ordinary_java_source_files): Add new security files.
2422 * java/security/NoSuchAlgorithmException.java,
2423 java/security/MessageDigest.java: New files.
2425 * include/javaprims.h: Add security namespace.
2427 1999-04-16 Per Bothner <bothner@cygnus.com>
2429 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2430 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2431 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2432 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2433 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2434 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2435 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2436 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2437 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2438 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2439 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2440 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2441 * Makefile.am: Various changes for new files and conversions.
2443 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2444 New overloading, allows greater efficiency.
2445 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2446 New overloading (for efficiency - avoids copying).
2448 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2449 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2451 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2452 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2453 (writeChars): Don't be quite so eager to flush.
2454 * java/io/PrintStream.java: Rewrite. Now more similar to
2455 OutputStreamWriter, using explicit UnicodeToBytes converter.
2456 Also, autoflush does not need to flush so often.
2457 * java/lang/natString.cc (getBytes): More efficient algorithm.
2458 (init(jbyteArray,jint,jint,jstring)): More efficient.
2460 1999-04-15 Warren Levy <warrenl@cygnus.com>
2462 * Makefile.am (ordinary_java_source_files): Added new Connection
2463 and Handler classes in gnu.gcj.protocol.file package.
2464 * Makefile.in: Rebuilt.
2466 * gnu/gcj/protocol/file/Connection.java: New file.
2467 * gnu/gcj/protocol/file/Handler.java: New file.
2468 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2469 if doInput allows input.
2470 (getOutputStream): Check if doOutput allows output.
2471 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2473 1999-04-14 Tom Tromey <tromey@cygnus.com>
2475 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2476 buffer larger to work around bug.
2477 From Bryce McKinlay <bryce@albatross.co.nz>.
2479 1999-04-14 Andrew Haley <aph@cygnus.com>
2481 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2482 NaNs are always converted to the same long value.
2483 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2486 1999-04-13 Tom Tromey <tromey@cygnus.com>
2488 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2489 instead switch on actual element type.
2491 * Makefile.in: Rebuilt.
2492 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2494 1999-04-13 Andrew Haley <aph@cygnus.com>
2496 * include/i386-signal.h, include/default-signal.h: New files.
2497 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2499 (catch_fpe): New function.
2500 * configure.in: Make link to appropriate include/java-signal.h.
2501 * configure: Rebuilt.
2502 * Makefile.am: include/java-signal.h added to dependency list.
2503 * Makefile.in: Rebuilt.
2505 1999-04-12 Urban Widmark <urban@svenskatest.se>
2507 * java/io/DataInputStream.java (readLine): Corrected handling of
2508 empty lines, from null to "".
2510 1999-04-12 Tom Tromey <tromey@cygnus.com>
2512 * Makefile.in: Rebuilt.
2513 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2515 * java/lang/natSystem.cc (SystemClass): New define.
2516 (init_properties): Synchronize.
2518 1999-04-08 Geoff Berry <gcb@gnu.org>
2520 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2521 * natPlainSocketImpl.cc (accept): Add missing else if check
2524 1999-04-08 Tom Tromey <tromey@cygnus.com>
2526 * java/lang/Long.java (parseLong): Corrected overflow detection
2528 * java/lang/Integer.java (parseInt): Corrected overflow detection
2531 * java/io/PrintStream.java (print): Handle null string argument.
2532 (println): Likewise.
2534 1999-04-07 Warren Levy <warrenl@cygnus.com>
2536 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2537 Set count to 0 when InputStreamReader returns -1 for EOF.
2539 1999-04-07 Tom Tromey <tromey@cygnus.com>
2541 * mauve-libgcj: Omit java.text.Collator,
2542 java.text.RuleBasedCollator.
2544 1999-04-06 Tom Tromey <tromey@cygnus.com>
2546 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2547 IOException from getHttpHeaders().
2548 (getHeaderFieldKey): Likewise.
2550 * include/javaprims.h: Regenerated declarations.
2552 * Makefile.in: Rebuilt.
2553 * Makefile.am (ordinary_java_source_files): Updated for removed
2556 1999-04-06 Per Bothner <bothner@cygnus.com>
2558 * java/util/zip/Adler32.java: New class.
2559 * java/util/zip/CRC32.java: Add working method bodies.
2560 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2561 * Makefile.in: Re-generate.
2563 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2565 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2566 from version in removed www hierarchy.
2567 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2568 version in removed www hierarchy.
2570 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2571 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2572 * gnu/gcj/www/protocol/http: Removed dir.
2573 * gnu/gcj/www/protocol: Removed dir.
2574 * gnu/gcj/www: Removed dir.
2576 * java/net/HttpURLConnection.java: Revised comments to indicate
2577 missing JDK 1.2 methods.
2579 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2580 hierarchy rather than the gnu/gcj/www/protocol one.
2581 * java/net/URLConnection.java: Updated status comments.
2582 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2583 the gnu/gcj/www/content one.
2585 1999-04-06 Per Bothner <bothner@cygnus.com>
2587 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2588 The gen-from-JIS program is in $(CONVERT_DIR).
2590 1999-04-06 Tom Tromey <tromey@cygnus.com>
2592 * mauve-libgcj: Renamed from mauve-libjava.
2594 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2596 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2597 (getResponseMessage): Implemented.
2598 (getResponseVals): New private method.
2600 * java/net/URLConnection.java (getContent): Implemented.
2601 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2603 1999-04-05 Tom Tromey <tromey@cygnus.com>
2605 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2606 (jv_convert_SOURCES): Renamed.
2607 (EXTRA_jv_convert_SOURCES): Likewise.
2608 (jv_convert_LDFLAGS): Likewise.
2609 (jv_convert_LINK): Likewise.
2610 (jv_convert_LDADD): Likewise.
2611 (jv_convert_DEPENDENCIES): Likewise.
2613 * Makefile.in: Rebuilt.
2614 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2617 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2619 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2620 method for comparison.
2622 * java/net/URLConnection.java (getContentLength): Implemented.
2623 (getContentType): Implemented.
2624 (getContentEncoding): Implemented.
2625 (getExpiration): Implemented.
2626 (getDate): Implemented.
2627 (getLastModified): Implemented.
2628 (getHeaderFieldInt): Implemented.
2629 (getHeaderFieldDate): Implemented.
2631 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2633 * java/net/URLConnection.java (toString): Implemented.
2634 (setContentHandlerFactory): Implemented.
2635 (setContentHandler): Wrote new private helper method.
2637 1999-04-01 Tom Tromey <tromey@cygnus.com>
2639 * Makefile.in: Rebuilt.
2640 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2641 of 1999-03-31; we always want to build all the .class files.
2642 Depend on java_source_files, not libgcj.zip.
2643 (nat_headers): Define in terms of ordinary_java_source_files.
2645 1999-03-31 Tom Tromey <tromey@cygnus.com>
2647 * Makefile.in: Rebuilt.
2648 * Makefile.am (special_java_source_files): New macro.
2649 (java_source_files): Use it.
2650 (ordinary_java_source_files): New macro.
2651 (java_source_files): Use it.
2652 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2653 creating headers for those files with hand-maintained headers.
2655 * include/javaprims.h: Regenerated namespace declarations.
2656 * classes.pl (scan): Include [0-9] in regexp for matching class
2657 names; for java.util.zip.CRC32.
2659 * Makefile.in: Rebuilt.
2660 * Makefile.am (nat_headers): Redefined to generate all possible
2663 * java/util/zip/ZipException.java: In package java.util.zip, not
2666 1999-03-30 Tom Tromey <tromey@cygnus.com>
2668 * configure: Rebuilt.
2669 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2670 eh-common.h when not building in tree with gcc.
2672 * Makefile.in: Rebuilt.
2673 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2674 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2676 ($(java_source_files:.java=.class)): New target.
2678 * Makefile.in: Rebuilt.
2679 * Makefile.am (java_source_files): Added
2680 java/net/HttpURLConnection.java and
2681 gnu/gcj/www/protocol/http/Connection.java.
2683 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2685 * gnu/gcj/www/protocol/http/Connection.java: New file.
2686 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2687 * java/net/HttpURLConnection.java: New file.
2688 * java/net/URLConnection.java (getHeaderField): Implemented default.
2689 (getHeaderFieldKey): Implemented default method.
2691 1999-03-30 Tom Tromey <tromey@cygnus.com>
2693 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2695 * java/util/zip/Deflater.java: Added copyright header.
2696 * java/util/zip/CRC32.java: Added copyright header.
2698 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2699 that it is automatically generated.
2700 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2702 * gnu/gcj/convert/BytesToUnicode.java,
2703 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2704 gnu/gcj/convert/Input_EUCJIS.java,
2705 gnu/gcj/convert/Input_UTF8.java,
2706 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2707 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2708 gnu/gcj/convert/Output_8859_1.java,
2709 gnu/gcj/convert/Output_JavaSrc.java,
2710 gnu/gcj/convert/Output_UTF8.java,
2711 gnu/gcj/convert/UnicodeToBytes.java,
2712 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2714 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2716 * Makefile.in, configure: Rebuilt.
2717 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2718 not if test subdir exists.
2719 (--enable-gcj-classes): Removed; gcj always used to generate
2721 (JAVA, JAVAC): Removed.
2722 (--enable-single-compilation, --enable-source-compilation):
2725 (NATIVE): New conditional.
2726 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2727 `install-exec' to work.
2728 (toolexeclibdir): Likewise.
2729 (toollib_LIBRARIES): Likewise.
2730 (AM_MAKEFLAGS): Don't pass tooldir.
2732 (javao_files): Redefined.
2733 (java_source_files): New macro.
2734 (c_source_files): New macro.
2735 (c_files): Redefined in terms of c_source_files.
2736 (java_io_files, java_lang_files, java_net_files, java_text_files,
2737 java_util_files, gnu_files, java_files): Removed.
2738 (class_io_files, class_lang_files, class_net_files,
2739 class_text_files, class_util_files, class_gnu_files, class_files):
2741 (nat_source_files): New macro.
2742 (nat_files): Redefined in terms of nat_source_files.
2743 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2744 java_source_files. Removed no-such-file.c.
2746 (ETAGS_ARGS): Removed.
2747 (TAGS_DEPENDENCIES): Likewise.
2748 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2750 (src_io_files, src_lang_files, src_text_files, src_util_files,
2751 src_gnu_files): Removed.
2752 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2753 (BUILT_SOURCES): Removed.
2754 (header-check): New target.
2756 (noinst_PROGRAMS): New macro.
2757 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2759 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2760 (gen-from-JIS): Build in top directory.
2761 (convert_source_files): New macro.
2762 (convert_SOURCES): New macro.
2763 (convert_LDFLAGS): Likewise.
2764 (convert_LINK): Likewise.
2765 (convert_LDADD): Likewise.
2766 (convert_DEPENDENCIES): Likewise.
2768 (gen-from-JIS): Removed.
2769 (gen_from_JIS_SOURCES): New macro.
2770 (gen_from_JIS_LDADD): Likewise.
2771 (gen_from_JIS_DEPENDENCIES): Likewise.
2773 * configure: Rebuilt.
2774 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2775 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2776 when defining conditional.
2778 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2780 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2781 The Unicode Consortium does not permit their re-distribution.
2782 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2783 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2785 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2787 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2789 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2791 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2792 from Unicode Consortium.
2793 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2794 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2795 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2796 New tables, generated using gen-from-JIS.
2797 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2798 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2799 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2800 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2802 * gnu/gcj/convert/Convert.java: New application.
2803 * Makefile.am, Makefile.in (convert): New program, using Convert.
2804 Build the various JIS conversion tables (in maintainer mode).
2806 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2808 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2810 * java/net/URL.java (URL): Deal with null property value. Use "."
2811 as separator in building class name.
2812 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2813 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2814 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2815 beginning of the substring rather than 'start'.
2817 1999-03-26 Tom Tromey <tromey@cygnus.com>
2819 * include/java-chartables.h: Rebuilt.
2820 * include/java-chardecomp.h: New file.
2821 * chartables.pl: Generate output files directly. Added support
2822 for generating decomposition header.
2823 (canonical_decomposition, full_decomposition): New globals.
2824 (DECOMPOSITION): New constant.
2825 (process_char): Call add_decomposition.
2826 (add_decomposition): New sub.
2827 (write_decompositions): New sub.
2829 1999-03-25 Tom Tromey <tromey@cygnus.com>
2831 * java/text/CollationElementIterator.java: New file.
2833 * mauve-libjava: Omit StringTest.
2835 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2837 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2838 without a '/' when parsing protocol. Handle ref outside of parseURL.
2839 (hashCode): Implemented.
2840 (set): Don't expand -1 to default port.
2841 (getDefaultPort): Removed.
2843 * java/net/URLStreamHandler.java (parseURL): Implemented.
2844 (toExternalForm): Implemented.
2846 1999-03-23 Tom Tromey <tromey@cygnus.com>
2848 * java/text/BreakIterator.java (getSentenceInstance):
2850 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2852 * Makefile.in: Rebuilt.
2853 * Makefile.am (nat_headers): Added IllegalAccessException.
2854 * java/lang/natClass.cc (newInstance): Throw
2855 IllegalAccessException, not IllegalAccessError.
2856 Include IllegalAccessException.h.
2858 1999-03-22 Tom Tromey <tromey@cygnus.com>
2860 * gnu/gcj/text/LineBreakIterator.java: New file.
2861 * java/text/BreakIterator.java (getLineInstance): Implemented.
2863 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2864 copy constructor private.
2865 (previous, next): Removed erroneous comment about line
2867 (previous): Correctly recognize break between non-letter on the
2868 left and letter on the right. Handle apostrophes correctly.
2870 * java/text/BreakIterator.java (getWordInstance): Implemented.
2871 * gnu/gcj/text/WordBreakIterator.java: New file.
2872 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2874 * gnu/gcj/text/BaseBreakIterator.java: New file.
2876 1999-03-19 Tom Tromey <tromey@cygnus.com>
2878 * java/text/BreakIterator.java: New file (partially stubbed out).
2879 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2881 * include/config.h.in: Rebuilt.
2882 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2883 (HAVE_TIMEZONE): Likewise.
2884 * configure: Rebuilt.
2885 * configure.in: Added timezone checks.
2886 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2889 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2891 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2892 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2893 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2894 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2895 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2896 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2897 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2898 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2900 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2901 (BSD_COMP): Kludge needed for Solaris2.
2903 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2905 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2906 URL(java.net.URL, string, URLStreamHandler) and call it with a
2907 null handler. In latter constructor, added SecurityManager check.
2908 (set): Expect null handler on bad protocol rather than an exception.
2909 (setURLStreamHandler): Simplified exception handling; return null
2910 on invalid protocol.
2912 1999-03-18 Tom Tromey <tromey@cygnus.com>
2914 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2916 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2918 Include PrintStream.h, InputStream.h.
2919 * java/lang/System.java (ForwardingInputStream,
2920 ForwardingOutputStream): Removed.
2921 (setErr, setIn, setOut): Now native.
2923 Reverted patch from 1999-02-12 to work around problem in
2925 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2926 (_Jv_eh_free): Use free.
2928 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2929 for path name. Minor formatting fixes.
2931 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2933 * prims.cc (fail_on_finalization): New function.
2934 (_Jv_GCWatch): Likewise.
2936 * prims.cc (JvRunMain): Initialize `nullp'.
2937 (nullp): New global.
2938 (catch_segv): Throw nullp.
2940 * Makefile.in: Rebuilt.
2941 * Makefile.am (ZIP): In "null target" case, zip is found in the
2944 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2948 * java/lang/StringBuffer.java (StringBuffer): Don't use
2949 ensureCapacity to set initial capacity.
2950 (capacity): Subtract `length' from return result.
2952 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2954 * java/io/natFileDescriptorPosix.cc (open): Throw
2955 FileNotFoundException, but with filename and errno in msg.
2957 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2959 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2960 functionality folded into java/net/URL.java per spec.
2962 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2963 than EEXIST for throwing FileNotFoundException.
2965 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2966 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2968 * java/net/URLStreamHandler.java (parseURL): Added stub.
2970 1999-03-15 Andrew Haley <aph@cygnus.com>
2972 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2975 1999-03-15 Andrew Haley <aph@cygnus.com>
2977 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2980 1999-03-12 Tom Tromey <tromey@cygnus.com>
2982 * prims.cc (catch_segv): New function.
2983 Include <signal.h> if HANDLE_SEGV defined. Include
2984 NullPointerException.h.
2985 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2988 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2989 a SimpleDateFormat, not just a DateFormat.
2990 (defaultCenturyStart, formatData, pattern): Now private.
2991 (append): Now `final'. Use `NumberFormat.format'.
2993 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2995 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2998 * java/text/MessageFormat.java (format): Use default MessageFormat
3000 (parse, parseObject): Wrote.
3002 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
3005 1999-03-12 Andrew Haley <aph@cygnus.com>
3007 * java/lang/String.java (indexOf): Replace with native method for
3009 * java/lang/natString.cc (IndexOf): As above.
3011 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3012 Argument check corrected.
3013 (init(jbyteArray,jint,jint,jstring)): Likewise.
3015 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3016 1.2 compliant method.
3018 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3020 * java/lang/Float.java (byteValue, shortValue): Likewise.
3022 1999-03-11 Tom Tromey <tromey@cygnus.com>
3024 * java/text/DecimalFormat.java (parse): Wrote.
3026 * java/text/ChoiceFormat.java (parse): Set error index on
3027 ParsePosition object.
3029 * java/lang/Integer.java (parseInt): Throw exception on overflow
3030 when intermediate result is most negative number. Changed
3031 overflow detection as well.
3032 * java/lang/Long.java (parseLong): Likewise.
3034 * configure, Makefile.in: Rebuilt.
3035 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3036 CANADIAN when building in source tree that doesn't include gcc.
3037 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3040 * java/text/ChoiceFormat.java (nextDouble): Correct some
3041 off-by-one errors when masking or adding.
3043 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3044 parameter, if given. Use `%', not IEEEremainder.
3045 (scanFix): Throw error if multiplier already set.
3046 (computePattern): Wrote.
3048 1999-03-11 Andrew Haley <aph@cygnus.com>
3050 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3052 (nextDouble): Corrected masking logic. Handle interaction between
3053 `next' and negative numbers.
3055 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3057 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3058 * java/net/URL.java: Added general comments.
3060 1999-03-10 Tom Tromey <tromey@cygnus.com>
3062 * java/text/ChoiceFormat.java (parse): Wrote.
3064 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3066 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3067 Create ChoiceFormat objects.
3068 (format): Special-case ChoiceFormat.
3069 (scanFormatElement): Include { and } in generated style string.
3071 1999-03-09 Tom Tromey <tromey@cygnus.com>
3073 * java/text/ChoiceFormat.java: New file.
3075 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3077 * java/net/BindException.java: Created.
3078 * java/net/ConnectException.java: Created.
3079 * java/net/ContentHandler.java: Created.
3080 * java/net/ContentHandlerFactory.java: Created.
3081 * java/net/FileNameMap.java: Created.
3082 * java/net/MalformedURLException.java: Created.
3083 * java/net/NoRouteToHostException.java: Created.
3084 * java/net/ProtocolException.java: Created.
3085 * java/net/ServerSocket.java (@author): Fixed typo.
3086 * java/net/Socket.java (@author): Fixed typo.
3087 * java/net/SocketImpl.java (@author): Fixed typo.
3088 * java/net/SocketImplFactory.java (@author): Fixed typo.
3089 * java/net/URL.java: Created - nearly complete.
3090 * java/net/URLConnection.java: Created - near-empty stub.
3091 * java/net/URLStreamHandler.java: Created - incomplete stub.
3092 * java/net/URLStreamHandlerFactory.java: Created.
3093 * java/net/UnknownServiceException.java: Created.
3095 1999-03-09 Tom Tromey <tromey@cygnus.com>
3097 * java/lang/System.java (ForwardingInputStream): New class.
3098 (ForwardingOutputStream): Likewise.
3099 (in, out, err): Now `final' forwarding streams.
3100 (setIn, setOut, setErr): Use appropriate method on forwarding
3103 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3106 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3108 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3109 * java/util/zip/Checksum.java: New interface (complete).
3110 * java/util/zip/Deflater.java: New class (near-empty stub).
3111 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3112 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3113 * java/util/zip/ZipEntry.java: New class (complete).
3114 * java/util/zip/ZipException.java: New class (complete).
3115 * java/util/zip/ZipFile.java: New class (incomplete stub).
3116 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3118 1999-03-09 Tom Tromey <tromey@cygnus.com>
3120 * java/text/MessageFormat.java (MessageFormatElement): Removed
3121 `public' specifiers.
3123 * java/text/DecimalFormat.java (scanFormat): Increment index
3124 before processing exponential format. Fixed a couple typos in
3126 (format): Correct normalization of exponent.
3128 1999-03-08 Tom Tromey <tromey@cygnus.com>
3130 * java/text/SimpleDateFormat.java (parse): Throw
3131 IllegalArgumentException, not ParseException.
3133 1999-03-05 Tom Tromey <tromey@cygnus.com>
3135 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3136 when constructing DateFormatSymbols. Initialize numberFormat
3137 field of superclass.
3139 * java/text/DateFormat.java (equals): Rewrote.
3140 (getAvailableLocales): New method.
3141 (getDateInstance): New methods.
3142 (getDateTimeInstance): Likewise.
3143 (getTimeInstance): Likewise.
3144 (getInstance): New method.
3145 (computeInstance): New method.
3147 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3149 (safeGetResource): New method.
3150 (DateFormatSymbols): Use Locale paramater.
3151 (equals): Now protected.
3152 Made instance variables private.
3154 1999-03-04 Tom Tromey <tromey@cygnus.com>
3156 * java/text/DecimalFormat.java: New file.
3158 * java/text/NumberFormat.java (groupingUsed,
3159 maximumFractionDigits, maximumIntegerDigits,
3160 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3162 (setDecimalSeparatorAlwaysShown, setMultiplier,
3163 setPositivePrefix): Removed.
3164 (setMinimumFractionDigits, setMaximumFractionDigits):
3166 (format): Now final.
3167 Added many new methods.
3169 * Makefile.in: Rebuilt.
3170 * Makefile.am (gnu_files): New macro.
3171 (java_files): Added gnu_files.
3172 (class_gnu_files): New macro.
3173 (class_files): Use it.
3174 (src_gnu_files): New macro.
3175 (gnu.o): New target.
3176 (javao_files): Added gnu.o.
3178 * gnu/gcj/text/LocaleData_en_US.java: New file.
3179 * gnu/gcj/text/LocaleData_en.java: New file.
3180 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3181 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3182 (safeGetString): New method.
3183 (safeGetChar): Likewise.
3185 1999-03-03 Tom Tromey <tromey@cygnus.com>
3187 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3190 * java/text/FieldPosition.java (equals): Don't check for null
3191 object; instanceof does this.
3193 * java/util/Locale.java (clone): New method.
3196 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3198 * doc/cni.sgml: New file.
3200 1999-03-03 Tom Tromey <tromey@cygnus.com>
3202 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3204 * java/text/DecimalFormatSymbols.java: New file.
3206 1999-03-02 Tom Tromey <tromey@cygnus.com>
3208 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3210 * configure: Rebuilt.
3211 * configure.in: Check for sys/filio.h.
3213 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3215 (load): Always throw UnsatisfiedLinkError.
3216 (loadLibrary): Likewise.
3218 1999-03-02 Anthony Green <green@cygnus.com>
3220 * LIBGCJ_LICENSE: New file.
3221 * LIBJAVA_LICENSE: Removed.
3222 * Many files: libjava now libgcj.
3224 1999-03-02 Tom Tromey <tromey@cygnus.com>
3226 * include/java-chartables.h: Rebuilt.
3227 * chartables.pl (print_block): Make table `const'.
3228 (print_numerics): Likewise.
3229 (print_single_map): Likewise.
3230 (print_all_block): Likewise.
3231 (print_case_table): Likewise.
3232 (print_fast_tables): Likewise.
3233 * java/lang/natCharacter.cc (table_search): `table' argument now
3236 1999-03-01 Tom Tromey <tromey@cygnus.com>
3238 * java/util/Date.java (before, after): Inverted logic.
3240 * java/util/Date.java (parse): Handle case where first character
3241 in string is open parenthesis.
3242 (skipParens): Rewrote.
3244 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3245 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3247 * java/util/Date.java (parse): Correctly compute beginning of
3250 * java/util/Hashtable.java (get): Throw NullPointerException if
3252 (containsKey): Likewise.
3254 * java/util/Properties.java (list): Truncate value to 37
3255 characters and add `...'.
3257 * java/lang/Byte.java (parseByte): Pass `radix' to
3260 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3262 Include System.h, PrintStream.h.
3264 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3267 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3269 * configure: Rebuilt.
3270 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3273 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3275 * java/lang/SecurityManager.java: Import java.net.*.
3276 (checkMulticast): New methods.
3278 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3280 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3281 (nat_files): Add java/lang/reflect/natArray.o.
3282 (nat_headers): Add Field.h and NoSuchFieldException.h.
3284 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3285 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3286 (_Jv_FromReflectedField): Fix buglet.
3287 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3288 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3289 * prims.cc (_Jv_Abort): Include message in print-out.
3291 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3292 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3293 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3295 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3296 * include/config.h.in (HAVE_PWD_H): New feature macro.
3297 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3298 user.name, user.home, user.dir.
3300 * java/lang/reflect/Array.java: New class.
3301 * java/lang/reflect/natArray.cc: New native methods.
3302 * include/javaprims.h: Declare java::lang::reflect::Array.
3304 * java/lang/Class.h (getField): New private method. Add friends.
3305 * java/lang/Class.java (getField): Add private overload.
3306 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3307 getDeclaredMethods): Add working implementations.
3308 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3309 Finish implementation, except for access control.
3311 * java/lang/reflect/Modifier.java (toString): New overload.
3312 * include/java-method.h: New file.
3313 * java/lang/reflect/Method.java (index): Replaced by offset field.
3314 Remove various private fields - get them from _Jv_Field instead.
3315 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3316 New method implementations.
3318 * java/text/NumberFormat.java: Add a bunch of methods.
3320 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3322 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3324 1999-02-26 Tom Tromey <tromey@cygnus.com>
3326 * include/config.h.in: Rebuilt.
3327 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3328 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3329 HAVE_GETHOSTBYADDR_R): New defines.
3330 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3331 gethostbyaddr_r if available.
3333 * configure: Rebuilt.
3334 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3336 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3340 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3341 * prims.cc (_Jv_AllocBytesChecked): New function.
3343 * Makefile.in: Rebuilt.
3344 * Makefile.am (SUBDIRS): Removed `test'.
3345 * configure: Rebuilt.
3346 * configure.in: Don't build test/Makefile.
3347 * test/*: Removed all files.
3349 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3351 * java/lang/reflect/Constructor.java: Make class final to match spec.
3352 * java/lang/reflect/Method.java: Ditto.
3354 1999-02-25 Tom Tromey <tromey@cygnus.com>
3356 * java/net/natInetAddress.cc: Include <sys/types.h> before
3358 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3361 * java/net/natInetAddress.cc: Declare gethostname if required.
3362 * include/config.h.in: Rebuilt.
3363 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3364 * configure: Rebuilt.
3365 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3366 declared in unistd.h.
3368 1999-02-24 Tom Tromey <tromey@cygnus.com>
3370 * Makefile.in: Rebuilt.
3371 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3372 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3373 from private to "none".
3375 * include/javaprims.h: Regenerated class declarations with new
3377 * classes.pl (scan): Only generate decls for java.lang, java.io,
3380 1999-02-24 Tom Tromey <tromey@cygnus.com>
3382 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3383 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3385 1999-02-23 Tom Tromey <tromey@cygnus.com>
3387 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3388 not already defined.
3389 * java/io/natFile.cc (_REENTRANT): Only define if not already
3391 * include/config.h.in: Rebuilt.
3392 * acconfig.h (HAVE_BOEHM_GC): New define.
3393 * configure: Rebuilt.
3394 * configure.in: Define HAVE_BOEHM_GC if using it.
3395 * posix-threads.cc: Include boehm-config.h and gc.h if
3397 * include/posix-threads.h: Added explanatory note about Boehm GC.
3399 * java/io/BufferedReader.java (readLine): Only return null when
3400 EOF seen before any characters read. (In particular, an empty
3401 line should not return null.)
3403 * java/io/BufferedInputStream.java (read): Only refill once per
3406 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3407 java.lang.Character.classify12, java.lang.String.hash,
3408 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3409 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3411 * java/text/StringCharacterIterator.java (setIndex): No error if
3413 (next): Check for `pos == end', not `end - 1'.
3414 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3415 for null text in each constructor.
3416 (clone): Fixed order of arguments to constructor.
3418 1999-02-22 Tom Tromey <tromey@cygnus.com>
3420 * include/config.h.in: Rebuilt.
3421 * acconfig.h (HAVE_INET6): New define.
3422 (HAVE_SOCKLEN_T): Likewise.
3423 * java/net/PlainSocketImpl.java: Added copyright header.
3424 * java/net/natPlainSocketImpl.cc: Added copyright header.
3425 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3427 (connect): Likewise.
3429 (socklen_t): New typedef.
3430 (accept): Use socklen_t.
3431 * java/net/natInetAddress.cc: Added copyright header.
3432 (HAVE_GETHOSTNAME): Don't define.
3433 (HAVE_INET_ADDR): Likewise.
3434 (lookup): Fixed typo.
3435 (aton): Don't use `address' as name of local variable.
3436 (lookup): Use HAVE_INET6, not AF_INET6.
3438 * configure: Rebuilt.
3439 * configure.in: Look for functions inet_aton, inet_addr,
3440 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3441 Check for socklen_t typedef.
3443 * exception.cc (__throw): Declare as __noreturn__.
3445 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3447 * Makefile.am, Makefile.in: Also build java/net.
3448 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3450 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3451 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3453 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3454 * include/cni.h (JvMalloc, JvFree): New inline functions.
3455 (JvThrow): Add __noreturn__ attribute.
3456 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3457 (_Jv_Throw): Add __noreturn__ attribute.
3459 * java/net/PlainSocketImpl.java: Init fnum to -1.
3460 * java/net/ServerSocket.java: Add missing throws clauses.
3461 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3462 don't call create on the latter. Instead, other constructors
3463 have to explicitly call SocketImpl.create.
3464 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3465 from size_t to int, to match ::accept prototype.
3466 * java/net/natInetAddress.cc: Use JvFree rather than free.
3469 1999-02-22 Tom Tromey <tromey@cygnus.com>
3471 * include/javaprims.h: Added new classes.
3472 * java/text/StringCharacterIterator.java: New file.
3473 * java/text/CharacterIterator.java: New file.
3475 * java/text/ParseException.java (errorOffset): Now private.
3477 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3479 * java/net: New package.
3480 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3481 Socket.java,SocketException.java,SocketImpl.java,
3482 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3483 natPlainSocketImpl.cc}: New classes.
3485 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3486 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3487 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3488 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3490 * classes.pl: Translate package into "namespace", not "class".
3491 * include/javaprims.h: Update class list, using "namespace".
3493 1999-02-21 Tom Tromey <tromey@cygnus.com>
3495 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3496 Define when appropriate.
3498 1999-02-20 Tom Tromey <tromey@cygnus.com>
3500 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3501 as a single byte and \u07ff as two bytes.
3502 (_Jv_GetStringUTFLength): Likewise.
3503 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3504 with 0x0f, not 0x1f.
3506 1999-02-19 Tom Tromey <tromey@cygnus.com>
3508 * java/io/DataOutputStream.java (writeUTF): When encoding
3509 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3510 * java/io/DataInputStream.java (readUTF): Mask second byte of
3511 3-byte character with 0x3f, not 0x1f.
3513 * java/io/DataInputStream.java (readLong): Cast result of
3514 readUnsignedByte to long before using.
3516 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3519 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3520 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3521 argument to avoid warning.
3522 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3523 argument to avoid warning.
3525 1999-02-18 Tom Tromey <tromey@cygnus.com>
3527 * mauve-libjava: Omit java.io.DataInputOutput and
3528 java.io.Utf8Encoding.
3530 1999-02-17 Tom Tromey <tromey@cygnus.com>
3532 * Makefile.in: Rebuilt.
3533 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3534 * java/io/natFileDescriptorPosix.cc: Include
3535 InterruptedIOException.h, Thread.h.
3536 (write): Throw InterruptedIOException when required.
3538 * posix-threads.cc: Include <signal.h>.
3539 (_Jv_ThreadInterrupt): New function.
3541 (handle_intr): New function.
3542 (_Jv_InitThreads): Register handle_intr via sigaction.
3543 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3544 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3545 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3546 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3548 1999-02-19 Andrew Haley <aph@cygnus.com>
3550 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3552 (ThreadGroup (int)): Set the maximum priority of the initial
3555 1999-02-18 Andrew Haley <aph@cygnus.com>
3557 * java/lang/natClass.cc (forName): Check for the case where a
3558 classname is the name of an array and call FindClassFromSignature
3561 1999-02-18 Andrew Haley <aph@cygnus.com>
3563 * java/lang/StringBuffer (insert (int, String)): Move up any
3564 characters above the insert position and increase the length of
3565 the string buffer by the length of the argument.
3566 (insert (int, char[])): Likewise.
3567 (insert (int, char)): Likewise.
3568 (StringBuffer (String)): The initial capacity of the string buffer
3569 is 16 plus the length of the argument.
3570 (getChars): Add a JDK 1.2 FIXME.
3572 1999-02-18 Andrew Haley <aph@cygnus.com>
3574 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3577 1999-02-18 Andrew Haley <aph@cygnus.com>
3579 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3580 instead of floating-point equality. This is necessary for
3581 correct floating-point Hashtables.
3582 * java/lang/Float.java (equals): Ditto.
3584 1999-02-16 Tom Tromey <tromey@cygnus.com>
3586 * java/util/Properties.java (list): Truncate value to 37
3587 characters and add "...".
3589 1999-02-16 Tom Tromey <tromey@cygnus.com>
3591 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3592 if initCap is negative.
3593 (contains): Implement JDK1.2-style handling of null argument.
3594 (removeElement): Likewise.
3595 (indexOf): Likewise. Also, correctly handle case where idx is
3597 (lastIndexOf): Likewise.
3599 1999-02-16 Tom Tromey <tromey@cygnus.com>
3601 * java/lang/natString.cc (init): Increment source pointer in
3604 1999-02-16 Tom Tromey <tromey@cygnus.com>
3606 * exception.cc: Include NullPointerException.h.
3607 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3609 1999-02-16 Tom Tromey <tromey@cygnus.com>
3611 * Makefile.in: Rebuilt.
3612 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3614 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3616 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3617 we're compiling canadian.
3618 * configure: Regenerated.
3620 1999-02-12 Andrew Haley <aph@cygnus.com>
3622 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3623 deleted from libgcj.
3625 1999-02-12 Tom Tromey <tromey@cygnus.com>
3627 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3628 (_Jv_eh_free): Don't call free.
3629 Don't declare malloc or free.
3631 1999-02-11 Tom Tromey <tromey@cygnus.com>
3633 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3635 1999-02-11 Andrew Haley <aph@cygnus.com>
3637 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3638 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3639 needed by java.lang.*.
3640 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3641 wf_fmod.o: Removed from libjava.a.
3643 1999-02-11 Tom Tromey <tromey@cygnus.com>
3645 * include/javaprims.h: Reverted previous change; with it
3646 exception.cc can't compile.
3648 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3650 * include/config.h.in: Rebuilt.
3651 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3653 * configure: Rebuilt.
3654 * configure.in: Check for sched_yield. Look in thread library for
3655 all thread functions.
3657 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3658 no recursive mutexes.
3659 (_Jv_MutexDestroy): Define when required.
3660 (_Jv_MutexLock): Likewise.
3661 (_Jv_MutexUnlock): Likewise.
3662 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3663 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3664 (_Jv_Mutex_t): New structure.
3665 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3666 (_Jv_MutexLock): Likewise.
3667 (_Jv_MutexUnlock): Likewise.
3669 1999-02-10 Tom Tromey <tromey@cygnus.com>
3671 * aclocal.m4, configure, Makefile.in: Rebuilt.
3672 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3674 * configure.in: Changed to track library changes.
3675 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3676 (AM_CXXFLAGS): Likewise.
3677 (data_DATA): Likewise.
3678 (AM_CFLAGS): Likewise.
3679 (JC1FLAGS): Likewise.
3680 (libgcj_a_SOURCES): Likewise.
3681 (EXTRA_libgcj_a_SOURCES): Likewise.
3682 (libgcj_a_DEPENDENCIES): Likewise.
3683 (libgcj_a_LIBADD): Likewise.
3684 (libgcj.zip): Likewise.
3685 (CLEANFILES): Likewise.
3686 ($(nat_headers)): Likewise.
3687 (java/lang/FirstThread.h): Likewise.
3688 (java/lang/ThreadGroup.h): Likewise.
3689 (java/lang/String.h): Likewise.
3690 (java/lang/reflect/Field.h): Likewise.
3691 (BUILT_SOURCES): Likewise.
3692 (maintainer-check): Likewise.
3693 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3694 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3696 * java/util/natGregorianCalendar.cc (computeFields): Only use
3697 gmtime_r and localtime_r when configured for posix threads.
3699 * java/io/natFile.cc (get_entry): Only use readdir_r when
3700 configured for posix threads.
3702 * java/util/natGregorianCalendar.cc: Update copyright notice.
3703 * java/util/TimeZone.java: Ditto.
3704 * java/util/SimpleTimeZone.java: Ditto.
3706 1999-02-08 Tom Tromey <tromey@cygnus.com>
3708 * java/io/PrintStream.java (line_separator): New constant.
3709 (print): Use line_separator, not `file.separator' property.
3710 (println): Use line_separator.
3712 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3713 when trying to instantiate Class.
3715 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3716 NullPointerException if argument is null.
3718 * java/lang/Thread.java (setName): Throw NullPointerException, not
3719 IllegalArgumentException.
3722 1999-02-08 Andrew Haley <aph@cygnus.com>
3724 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3725 create new Classes with Class.newInstance().
3727 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3728 semiciolon to end of an array Class's signature if the elements of
3729 the array aren't themselves arrays.
3731 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3732 array of objects is always sizeof(jobject), not the size of the
3733 object to which the reference points.
3735 1999-02-08 Tom Tromey <tromey@cygnus.com>
3737 * java/util/BitSet.java (and): Throw NullPointerException when
3742 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3743 if argument is negative.
3744 (clear): Correctly compute `offset'. Throw
3745 IndexOutOfBoundsException when required.
3747 (get): Likewise. Also, return correct value.
3748 (ensure): Changed meaning of argument.
3749 (toString): Wrap contents in `{}'; put spaces after commas.
3750 (hashCode): Don't try to examine elements off the end of array.
3751 (or): Correctly include bits past the end of this bit set.
3754 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3756 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3757 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3759 1999-02-04 Andrew Haley <aph@cygnus.com>
3761 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3762 '/' in signatures to '.'
3763 (Class::getName): Likewise,
3764 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3766 * java/lang/natFirstThread.cc (run): Change '/' in main's
3769 1999-02-03 Andrew Haley <aph@cygnus.com>
3771 * configure.host: -ffloat-store added when compiling libjava on
3772 x86. fdlibm apparently relies on this.
3774 * java/lang/ThreadGroup.java (add): throw an exception if the
3775 ThreadGroup has been destroyed.
3777 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3780 1999-01-27 Tom Tromey <tromey@cygnus.com>
3782 * java/lang/StringBuffer.java (StringBuffer): Handle null
3785 1999-01-21 Tom Tromey <tromey@cygnus.com>
3787 * java/lang/natFirstThread.cc (run): Don't require main to be
3790 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3792 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3794 1999-01-20 Tom Tromey <tromey@cygnus.com>
3796 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3800 (unintern): Likewise.
3801 (_Jv_NewStringUtf8Const): Likewise.
3803 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3804 Character.isLetter, to see if character is self-quoting. Also,
3805 correctly handle quoted characters.
3806 (parse): Fixed typo. Also now throws ParseException.
3808 1999-01-15 Tom Tromey <tromey@cygnus.com>
3810 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3812 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3813 _Jv_SyncInfo has `init' member.
3815 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3818 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3819 IllegalMonitorStateException if unlock fails.
3821 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3823 (_Jv_NewObjectArray): Likewise.
3825 1999-01-14 Tom Tromey <tromey@cygnus.com>
3827 * java/lang/Character.java (isJavaIdentifierPart): Allow
3828 LETTER_NUMBER characters.
3830 * chartables.pl (process_char): Fixed error messages.
3832 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3833 * chartables.pl: Updated comments. Changed detection of non-digit
3834 numeric values (no longer miss \u00b2 and friends).
3836 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3837 currency symbols and connector punctuation.
3838 (isIdentifierIgnorable): Make 7f-9f ignorable.
3840 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3841 (_Jv_NewPrimArray): Likewise.
3842 (SIZE_T_MAX): New define.
3844 * java/lang/ClassLoader.java (system): Now private and final.
3846 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3849 * configure: Rebuilt.
3850 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3852 * exception.cc: Include gansidecl.h.
3854 1999-01-14 Andrew Haley <aph@cygnus.com>
3856 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3857 corrected: they didn't treat -0.0 and NaNs correctly.
3859 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3861 * nogc.cc: Use calloc to zero out memory.
3863 1999-01-11 Tom Tromey <tromey@cygnus.com>
3865 * java/lang/natClass.cc (isInstance): Return false if this class
3866 is primitive, not if class of `obj' is primitive.
3867 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3869 * java/io/SequenceInputStream.java (close): Handle case where `in'
3872 * java/text/DateFormat.java (format): New method.
3874 * mauve-libjava: Omit java.text.DateFormat.
3876 1999-01-08 Tom Tromey <tromey@cygnus.com>
3878 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3880 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3882 (_Jv_CondNotifyAll): Likewise.
3884 * configure: Rebuilt.
3885 * configure.in: Change --enable-source-compilation logic to work
3888 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3890 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3891 and RUNTESTFLAGS from AM_MAKEFLAGS.
3892 * configure.in: AM_RUNTESTFLAGS added.
3893 * configure.host: AM_RUNTESTFLAGS added.
3894 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3895 * configure: rebuilt.
3896 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3898 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3899 argv[] made conditional because embedded targets may not have
3901 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3902 explanatory comments added in call to super.
3904 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3905 exception thrown in the test harness itself added.
3906 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3908 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3910 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3912 1999-01-06 Tom Tromey <tromey@cygnus.com>
3914 * java/io/natFile.cc (get_entry): New function.
3915 (performList): Use get_entry.
3916 * include/config.h.in: Rebuilt.
3917 * acconfig.h (HAVE_READDIR_R): New define.
3918 * configure: Rebuilt.
3919 * configure.in: Look for readdir_r.
3921 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3923 * java/util/natDate.cc: Added copyright header.
3925 1999-01-05 Tom Tromey <tromey@cygnus.com>
3927 * include/config.h.in: Rebuilt.
3928 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3929 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3930 * configure: Rebuilt.
3931 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3932 unlink, and realpath.
3933 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3934 (stat): Conditionalize on HAVE_STAT.
3936 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3937 (performMkdir): Conditionalize on HAVE_MKDIR.
3938 (performRenameTo): Conditionalize on HAVE_RENAME.
3939 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3941 * include/config.h.in: Rebuilt.
3942 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3943 * configure: Rebuilt.
3944 * configure.in: Check for gmtime_r and localtime_r. For cross
3945 builds, assume they exist.
3947 * mauve-libjava: Include java.text.DateFormatSymbols again.
3948 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3949 from setAmPmStrings.
3951 * mauve-libjava: Omit java.text.DateFormatSymbols.
3953 1999-01-04 Tom Tromey <tromey@cygnus.com>
3955 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3957 * java/io/LineNumberReader.java (read): Decrement `count' in
3960 * java/io/BufferedWriter.java (write): Correctly determine when
3961 incoming data would overrun buffer. Flush buffer if write causes
3964 * java/io/BufferedOutputStream.java (write): Increment `count'
3965 after copying data into buffer.
3967 * java/io/FilterOutputStream.java (close): Call flush first.
3969 * java/io/PipedReader.java (read): If read causes `out' to catch
3970 up with `in', then set `in' to -1.
3972 * java/io/LineNumberInputStream.java (read): If no bytes read,
3973 return -1. If no bytes requested, return 0.
3975 * java/lang/StringBuffer.java (insert): If `str' is null, use
3978 1998-12-30 Anthony Green <green@cygnus.com>
3981 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3983 1998-12-23 Tom Tromey <tromey@cygnus.com>
3985 * java/io/PushbackInputStream.java (read): `off' already includes
3988 1998-12-17 Tom Tromey <tromey@cygnus.com>
3990 * Makefile.in: Rebuilt.
3991 * Makefile.am (GCJ_canadian): Include target_alias.
3993 * java/lang/natFirstThread.cc (run): Require main's class to be
3996 1998-12-16 Tom Tromey <tromey@cygnus.com>
3998 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
4000 * java/util/ResourceBundle.java (getBundle): Throw
4001 NullPointerException if locale argument is null.
4003 * java/lang/natClass.cc (forName): Throw NullPointerException if
4005 Include NullPointerException.h.
4007 1998-12-14 Tom Tromey <tromey@cygnus.com>
4009 * java/lang/Character.java (Character): Implement Comparable.
4010 (compareTo): New methods.
4012 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4013 correct country and language codes.
4014 (UK, US): New constants.
4015 (setDefault): Language codes are lower-case.
4017 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4018 (getDeclaredConstructors): Likewise.
4019 (getDeclaredField): Likewise.
4020 (getDeclaredFields): Likewise.
4021 (getDeclaredMethod): Likewise.
4022 (getDeclaredMethods): Likewise.
4023 (getField): Likewise.
4024 (getFields): Likewise.
4025 (getMethod): Likewise.
4026 (getMethods): Likewise.
4027 * java/lang/Class.java: Declare new methods.
4028 * java/lang/Class.h: Declare new methods.
4030 * java/lang/natString.cc: Removed `#pragma implementation'.
4031 * include/cni.h (_Jv_GetStringChars): New function.
4032 * Makefile.in: Rebuilt.
4033 * Makefile.am (java/lang/String.h): Don't generate definition for
4036 * java/lang/natString.cc: Added `#pragma implementation'.
4038 * Makefile.in: Rebuilt.
4039 * Makefile.am (libjava.zip): Put build directory first in class
4040 path to avoid bug in compiler.
4042 1998-12-14 Anthony Green <green@cygnus.com>
4044 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4046 * include/javaprims.h: Add EventObject, ListResourceBundle and
4049 1998-12-13 Anthony Green <green@cygnus.com>
4051 * mauve-libjava: Run the ResourceBundle tests.
4053 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4056 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4058 * configure.in, configure: Make --enable-gcj-classes and
4059 --enable-source-compilation the default. (Nervously...) Yeah!
4060 Based on a patch from Tom Tromey.
4062 1998-12-13 Tom Tromey <tromey@cygnus.com>
4064 * java/util/EventObject.java: New file.
4065 * java/util/EventListener.java: New file.
4067 * include/javaprims.h: Updated class declarations.
4068 * Makefile.in: Rebuilt.
4069 * Makefile.am (nat_headers): Added Constructor.h.
4070 (java/lang/String.h): Don't inline String::length().
4071 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4072 * java/lang/Class.java (initializeClass, hackRunInitializers,
4073 hackTrampoline): No need to mark `final'.
4074 (getConstructor, getConstructors): Declare.
4075 * java/lang/reflect/Field.java (equals): New method.
4076 * java/lang/natClass.cc (getConstructor): New method.
4077 (getConstructors): Likewise.
4078 Include Method.h, Field.h, Constructor.h.
4079 * java/lang/reflect/Constructor.java: New file.
4080 * java/lang/reflect/Method.java (toString): No space before open
4082 (equals): Simplified.
4084 1998-12-13 Anthony Green <green@cygnus.com>
4086 * java/util/ResourceBundle.java: New file.
4087 * java/util/ListResourceBundle.java: New file.
4089 1998-12-12 Tom Tromey <tromey@cygnus.com>
4091 * java/lang/System.java (in, out, err): Now buffered streams by
4094 * include/javaprims.h: Updated class declarations.
4095 * Makefile.in: Rebuilt.
4096 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4097 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4099 (nat_files): Added natMethod.o.
4100 * java/lang/reflect/natMethod.cc: New file.
4101 * java/lang/reflect/Field.java (Field): Now extends
4103 * java/lang/reflect/AccessibleObject.java: New file.
4104 * java/lang/reflect/InvocationTargetException.java: New file.
4106 1998-12-11 Tom Tromey <tromey@cygnus.com>
4108 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4109 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4110 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4112 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4114 1998-12-09 Tom Tromey <tromey@cygnus.com>
4116 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4119 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4120 character is already titlecase.
4122 * java/lang/Character.java (isJavaLetter): Follow spec.
4123 (isJavaLetterOrDigit): Likewise.
4125 * java/util/GregorianCalendar.java (gregorianCutover): Append
4128 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4130 1998-12-08 Tom Tromey <tromey@cygnus.com>
4132 * java/lang/reflect/Modifier.java (toString): Replace second
4133 `static' with `synchronized'.
4135 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4136 * java/lang/Object.h (Object::hack12_6): Declare.
4137 * java/lang/Object.java (hack12_6): New function.
4139 1998-12-07 Tom Tromey <tromey@cygnus.com>
4141 * include/java-array.h (__JArray::clone): Removed decl.
4142 * prims.cc (__JArray::clone): Removed.
4143 * java/lang/natObject.cc (clone): Incorporate code to clone an
4146 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4147 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4148 Correctly use dtable_method_count.
4150 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4152 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4155 1998-12-06 Anthony Green <green@cygnus.com>
4157 * mauve-libjava: Don't test ResourceBundle.
4159 1998-12-04 Tom Tromey <tromey@cygnus.com>
4161 More JDK 1.2 spec fixes:
4162 * java/util/Date.java (millis): Now private.
4163 * java/text/DateFormat.java (DateFormat): Constructor now
4165 * java/lang/Void.java (Void): New private constructor.
4166 * java/lang/System.java (System): New private constructor.
4167 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4169 (currentClassLoader): New method.
4170 (currentLoadedClass): New method.
4171 * java/lang/Math.java (Math): New private constructor.
4172 * java/lang/Compiler.java (Compiler): New private constructor.
4173 * java/lang/Class.java (Class): New private constructor.
4174 * java/lang/Double.java (toString): Removed access specifier from
4175 two-argument `toString' method.
4177 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4179 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4180 causes it to be flushed from an fp register (where it may be
4181 longer than double precision) to a double in memory. This is
4182 essential to ensure correct rounding behaviour.
4184 1998-12-04 Tom Tromey <tromey@cygnus.com>
4186 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4189 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4190 explaining apparent divergence from JDK 1.2.
4192 1998-12-04 Per Bothner <bothner@cygnus.com>
4194 * include/no-threads.h: Remove unused parameter names.
4195 This silences a bunch of warnings.
4197 1998-12-04 Tom Tromey <tromey@cygnus.com>
4199 * include/config.h.in: Rebuilt.
4200 * acconfig.h (HAVE_CTIME_R): New symbol.
4202 1998-12-03 Tom Tromey <tromey@cygnus.com>
4204 * mauve-libjava: Added many more categories to reject.
4206 Changes to follow JDK1.2 spec:
4207 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4208 setErr, setIn, setOut): No need to be `final'.
4209 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4210 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4211 * java/lang/Object.java (wait): `nanos' argument is an int.
4212 * java/lang/VirtualMachineError.java: Class is abstract.
4213 * java/lang/ThreadDeath.java: Made constructors public.
4214 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4217 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4219 * java/text/DateFormatSymbols.java (getAmPmStrings,
4220 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4222 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4224 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4225 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4226 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4229 * java/lang/IllegalThreadStateException.java
4230 (IllegalThreadStateException): Changed extending class to match spec.
4232 * java/lang/NumberFormatException.java
4233 (java/lang/NumberFormatException): Changed extending class to match
4236 * java/util/Observer.java (Observer): Changed sig to match JCL.
4238 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4240 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4241 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4242 signature to match JDK 1.1 and 1.2.
4244 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4246 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4247 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4248 * Makefile.in, configure: Rebuilt.
4250 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4253 1998-12-02 Tom Tromey <tromey@cygnus.com>
4255 * mauve-libjava: New file.
4257 The remaining `-W -Wall' fixes:
4258 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4260 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4262 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4264 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4266 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4268 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4270 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4272 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4274 * java/lang/mprec.c (Balloc): Removed unused variable.
4275 (mult): Added parentheses per gcc suggestion.
4276 (pow5mult): Likewise.
4281 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4282 suggestion. Added cast to `int' to avoid signed/unsigned
4284 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4286 (IsAssignableFrom): Likewise.
4287 (_Jv_JNI_GetObjectField): Likewise.
4288 (_Jv_JNI_GetByteField): Likewise.
4289 (_Jv_JNI_GetShortField): Likewise.
4290 (_Jv_JNI_GetIntField): Likewise.
4291 (_Jv_JNI_GetLongField): Likewise.
4292 (_Jv_JNI_GetStringLength): Likewise.
4293 (_Jv_JNI_ToReflectedField): Likewise.
4294 (_Jv_JNI_FromReflectedField): Likewise.
4295 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4297 * Makefile.in: Rebuilt.
4298 * Makefile.am (AM_CFLAGS): Define conditionally.
4299 (WARNINGS): New macro.
4300 (AM_CXXFLAGS): Include WARNINGS.
4301 * configure: Rebuilt.
4302 * configure.in (USING_GCC): New conditional.
4304 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4306 * java/lang/Character.java: Changed classification constants to
4307 type `byte' to match JDK 1.2 docs.
4309 1998-12-01 Tom Tromey <tromey@cygnus.com>
4311 Some fixes to be `-W -Wall' clean:
4312 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4313 (_Jv_MarkArray): Likewise.
4314 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4315 (to_upper_title): Likewise.
4316 (isTitleCase): Likewise.
4317 (toTitleCase): Likewise.
4318 (getNumericValue): Likewise.
4319 (isLowerCase): Likewise.
4320 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4321 (avoids compiler warning).
4322 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4324 (getDeclaringClass): Likewise.
4325 (_Jv_LookupInterfaceMethod): Likewise.
4326 (_Jv_NewClass): Removed name of unused parameter.
4327 * exception.cc (_Jv_type_matcher): Removed unused variable.
4328 (_Jv_setup_eh_info): Removed name of unused parameter.
4329 * prims.cc (_Jv_NewArray): Always return a value.
4330 (_Jv_FindClassFromSignature): Likewise.
4331 * include/java-field.h (getNameUtf8Const): Removed name of unused
4333 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4335 (_Jv_ThreadSetPriority): Likewise.
4337 * java/lang/natString.cc (hashChars): Now static.
4339 * java/lang/FirstThread.java (FirstThread): Now final.
4341 * java/io/File.java (performMkdir, performRenameTo): Now private.
4343 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4344 if no time function defined.
4346 * configure: Rebuilt.
4347 * configure.in: Look for ctime_r, ctime.
4348 * java/util/Date.java (toString): Now native.
4349 * java/util/natDate.cc (toString): Rewrote.
4351 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4353 * Add LDFLAGS line to allow TX39 test cases to link when cross
4356 1998-11-23 Anthony Green <green@cygnus.com>
4358 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4359 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4360 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4361 include/java-array.h, include/java-assert.h, include/java-field.h,
4362 include/javaprims.h, include/jni.h, include/jvm.h,
4363 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4364 include/quick-threads.h, java/io/BufferedInputStream.java,
4365 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4366 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4367 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4368 java/io/CharArrayWriter.java,
4369 java/io/CharConversionException.java, java/io/DataInput.java,
4370 java/io/DataInputStream.java, java/io/DataOutput.java,
4371 java/io/DataOutputStream.java, java/io/EOFException.java,
4372 java/io/File.java, java/io/FileDescriptor.java,
4373 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4374 java/io/FileOutputStream.java, java/io/FileReader.java,
4375 java/io/FileWriter.java, java/io/FilenameFilter.java,
4376 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4377 java/io/FilterReader.java, java/io/FilterWriter.java,
4378 java/io/IOException.java, java/io/InputStream.java,
4379 java/io/InputStreamReader.java,
4380 java/io/InterruptedIOException.java,
4381 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4382 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4383 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4384 java/io/PipedReader.java, java/io/PipedWriter.java,
4385 java/io/PrintStream.java, java/io/PrintWriter.java,
4386 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4387 java/io/RandomAccessFile.java, java/io/Reader.java,
4388 java/io/SequenceInputStream.java, java/io/Serializable.java,
4389 java/io/StreamTokenizer.java,
4390 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4391 java/io/StringWriter.java, java/io/SyncFailedException.java,
4392 java/io/UTFDataFormatException.java,
4393 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4394 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4395 java/io/natFileDescriptorPosix.cc,
4396 java/lang/AbstractMethodError.java,
4397 java/lang/ArithmeticException.java,
4398 java/lang/ArrayIndexOutOfBoundsException.java,
4399 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4400 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4401 java/lang/Class.java, java/lang/ClassCastException.java,
4402 java/lang/ClassCircularityError.java,
4403 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4404 java/lang/ClassNotFoundException.java,
4405 java/lang/CloneNotSupportedException.java,
4406 java/lang/Cloneable.java, java/lang/Comparable.java,
4407 java/lang/Compiler.java, java/lang/Double.java,
4408 java/lang/Error.java, java/lang/Exception.java,
4409 java/lang/ExceptionInInitializerError.java,
4410 java/lang/FirstThread.java, java/lang/Float.java,
4411 java/lang/IllegalAccessError.java,
4412 java/lang/IllegalAccessException.java,
4413 java/lang/IllegalArgumentException.java,
4414 java/lang/IllegalMonitorStateException.java,
4415 java/lang/IllegalStateException.java,
4416 java/lang/IllegalThreadStateException.java,
4417 java/lang/IncompatibleClassChangeError.java,
4418 java/lang/IndexOutOfBoundsException.java,
4419 java/lang/InstantiationError.java,
4420 java/lang/InstantiationException.java, java/lang/Integer.java,
4421 java/lang/InternalError.java, java/lang/InterruptedException.java,
4422 java/lang/LinkageError.java, java/lang/Long.java,
4423 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4424 java/lang/NoClassDefFoundError.java,
4425 java/lang/NoSuchFieldError.java,
4426 java/lang/NoSuchFieldException.java,
4427 java/lang/NoSuchMethodError.java,
4428 java/lang/NoSuchMethodException.java,
4429 java/lang/NullPointerException.java, java/lang/Number.java,
4430 java/lang/NumberFormatException.java, java/lang/Object.h,
4431 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4432 java/lang/Process.java, java/lang/Runnable.java,
4433 java/lang/Runtime.java, java/lang/RuntimeException.java,
4434 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4435 java/lang/Short.java, java/lang/StackOverflowError.java,
4436 java/lang/String.java, java/lang/StringBuffer.java,
4437 java/lang/StringIndexOutOfBoundsException.java,
4438 java/lang/System.java, java/lang/Thread.java,
4439 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4440 java/lang/Throwable.java, java/lang/UnknownError.java,
4441 java/lang/UnsatisfiedLinkError.java,
4442 java/lang/UnsupportedOperationException.java,
4443 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4444 java/lang/Void.java, java/lang/natCharacter.cc,
4445 java/lang/natClass.cc, java/lang/natDouble.cc,
4446 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4447 java/lang/natMath.cc, java/lang/natObject.cc,
4448 java/lang/natRuntime.cc, java/lang/natString.cc,
4449 java/lang/natSystem.cc, java/lang/natThread.cc,
4450 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4451 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4452 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4453 java/text/FieldPosition.java, java/text/Format.java,
4454 java/text/NumberFormat.java, java/text/ParseException.java,
4455 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4456 java/util/BitSet.java, java/util/Calendar.java,
4457 java/util/ConcurrentModificationException.java,
4458 java/util/Date.java, java/util/Dictionary.java,
4459 java/util/EmptyStackException.java, java/util/Enumeration.java,
4460 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4461 java/util/Locale.java, java/util/MissingResourceException.java,
4462 java/util/NoSuchElementException.java, java/util/Observable.java,
4463 java/util/Observer.java, java/util/Properties.java,
4464 java/util/Random.java, java/util/SimpleTimeZone.java,
4465 java/util/Stack.java, java/util/StringTokenizer.java,
4466 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4467 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4470 * exception.cc: Include eh-common.h instead of duplicating
4473 1998-11-23 Tom Tromey <tromey@cygnus.com>
4475 * configure.host: Don't add `-O2' to libjava_flags. Only add
4476 `-Os' to libjava_flags once.
4478 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4480 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4481 * Makefile.in: likewise
4482 * acconfig.h: add ECOS conditional for configure.h
4483 * config.h.in: likewise
4484 * configure: add test for --with-ecos
4485 * configure.in: likewise
4486 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4487 rename call to avoid name clash.
4488 * java/lang/natSystem.cc: add eCos clock support.
4489 * java/util/natGregorianCalendar.cc: add eCos support.
4491 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4493 * Makefile.am, Makefile.in, configure.host: tx39 build option
4496 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4498 * java/io/BufferedReader.java: Added more comments for clarity.
4499 (mark): Used more mnemonic name for local var extraBuffSpace.
4501 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4502 confusion with private method of same name in superclass.
4503 (skipRedundantLF): Set fields in special case to avoid infinite
4504 recursion. Check if markPos has been invalidated in special case.
4505 (readLine): Rewritten to use readLine method of superclass.
4506 (skip): Incorporated code from lineEnd.
4508 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4510 * java/io/BufferedReader.java (readLine): New method.
4511 (lineEnd): new private method.
4512 (mark): Track special case for readLine of getting '\r' at the
4519 * java/io/InputStreamReader.java (read): Return number chars skipped
4520 rather than requested.
4522 * java/lang/StringBuffer.java (append): Update count and differentiate
4523 between field and local variable.
4525 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4526 seconds. Deal with military style time.
4527 (parse): Consistently treat all timezones in minutes until final
4528 calculation. Flag as non-local timezone. Return value in milliseconds.
4529 (setTime): Adjust for year offset from 1900.
4530 (UTC): Adjust for year offset from 1900.
4532 1998-11-17 Tom Tromey <tromey@cygnus.com>
4534 * configure: Rebuilt.
4535 * configure.in: Switch on host, not target.
4537 * Makefile.in: Rebuilt.
4538 * Makefile.am (GCJ_no): New macro.
4539 (GCJ): Use @CANADIAN@.
4540 (GCJH_no): New macro
4541 (GCJH_canadian): New macro.
4542 (GCJH): Use @CANADIAN@.
4543 (ZIP_no): New macro.
4544 (ZIP_canadian): New macro.
4545 (ZIP): Use @CANADIAN@.
4546 * aclocal.m4, configure: Rebuilt.
4547 * configure.in (CANADIAN): Compute and subst.
4549 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4551 * java/io/FileDescriptor.java (finalize): Only close file
4552 descriptor if valid.
4554 1998-11-17 Tom Tromey <tromey@cygnus.com>
4556 * prims.cc (_Jv_InitRuntime): Removed.
4558 1998-11-16 Tom Tromey <tromey@cygnus.com>
4560 * java/io/FileOutputStream.java (close): Only close file
4561 descriptor if valid.
4562 (finalize): New method.
4564 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4565 (_Jv_NewPrimArray): Likewise.
4566 * boehm.cc (_Jv_RegisterFinalizer): Use
4567 GC_REGISTER_FINALIZER_NO_ORDER.
4568 (GC_GENERIC_MALLOC): New define.
4569 (_Jv_AllocObj): Use it.
4570 (_Jv_AllocArray): Likewise.
4571 (_Jv_AllocBytes): Likewise.
4572 (_Jv_MarkObj): Just return if vtbl not set.
4573 (_Jv_MarkArray): Likewise.
4574 (MAYBE_MARK): New macro; use everywhere.
4575 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4577 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4579 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4580 to a jlong before calculation to prevent overflow.
4582 1998-11-16 Tom Tromey <tromey@cygnus.com>
4584 * Makefile.in: Rebuilt.
4585 * Makefile.am (nat_headers): Fixed typo.
4587 1998-11-15 Tom Tromey <tromey@cygnus.com>
4589 * java/lang/Class.h (Class::getName): Removed definition.
4590 * Makefile.in: Rebuilt.
4591 * Makefile.am (nat_headers): Added InstantiationException.h,
4592 NoSuchMethodException.h.
4593 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4594 (init_name): New global.
4595 (hackRunInitializers): Use clinit_name.
4596 Include InstantiationException.h, NoSuchMethodException.h.
4597 (newInstance): Do some error checking (but not all). Call
4599 (forName): Throw exception if class not found.
4600 (getName): New method.
4601 (forName): Transform class name from external format to internal
4602 format before lookup.
4604 1998-11-15 Anthony Green <green@cygnus.com>
4606 * java/lang/Class.h (Class::forName): Method is static.
4608 * java/lang/natClass.cc (newInstance): Add simple implementation.
4611 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4613 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4614 int), for compatibility with jc1.
4616 1998-11-14 Tom Tromey <tromey@cygnus.com>
4618 * include/config.h.in: Rebuilt.
4619 * acconfig.h (LINUX_THREADS): New define.
4620 * configure: Rebuilt.
4621 * configure.in: Define LINUX_THREADS if using POSIX threads on
4622 Linux. Look for pthread_mutexattr_setkind_np function.
4623 * posix-threads.cc (throw_cleanup): New function.
4624 (really_start): Push cleanup function.
4625 (_Jv_ThreadCancel): New function.
4626 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4627 (_Jv_ThreadInitData): Set `exception' field in new structure.
4628 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4630 (_Jv_ThreadWait): New function.
4631 (_Jv_InitThreads): Initialize daemon globals.
4632 (FLAG_DAEMON): New macro.
4633 (really_start): Notify daemon_cond when non-daemon thread exits.
4634 Include <java/lang/System.h>.
4635 (struct starter): `object' field now a thread.
4636 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4637 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4638 (_Jv_ThreadWait): Removed definition.
4639 (_Jv_Thread_t): Added `exception' field.
4640 (_Jv_ThreadCancel): Removed definition.
4642 1998-11-13 Tom Tromey <tromey@cygnus.com>
4644 * Makefile.in: Rebuilt.
4645 * Makefile.am (libjava.zip): Compute javac before changing
4648 * Makefile.in: Rebuilt.
4649 * Makefile.am (libjava.zip): Include directory entries.
4651 * Makefile.in: Rebuilt.
4652 * Makefile.am (expanded): New macro.
4655 1998-11-12 Tom Tromey <tromey@cygnus.com>
4657 * prims.cc (clone): New function.
4658 * include/java-array.h (__JArray::clone): Removed definition.
4660 * java/lang/natObject.cc (clone): Don't assert that class is not
4661 an array; array's `clone' method just calls this one.
4663 * Makefile.in: Rebuilt.
4664 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4665 Now creates zip file. Changed all users.
4667 (data_DATA): New macro.
4669 1998-11-11 Tom Tromey <tromey@cygnus.com>
4671 * configure: Rebuilt.
4672 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4674 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4676 * java/io/InputStream.java (reset): Add msg to thrown exception.
4678 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4680 * java/io/LineNumberInputStream.java: Rewritten.
4682 * java/io/StringBufferInputStream.java: Removed extraneous import.
4684 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4686 * java/io/StringBufferInputStream.java: Rewritten.
4688 * java/util/Date.java (parseMonth): Optimize.
4689 (parseDayOfWeek): Created.
4690 (parse): Optimize to use parseDayOfWeek.
4692 1998-11-11 Tom Tromey <tromey@cygnus.com>
4694 * java/lang/StringBuffer.java (append): Handle case where STR is
4697 * include/javaprims.h: Regenerated class declarations.
4699 * configure: Rebuilt.
4700 * configure.in: Added --enable-gcj-classes,
4701 --enable-single-compilation, --enable-source-compilation flags.
4702 * Makefile.in: Rebuilt.
4703 * Makefile.am (java_io_files): New macro.
4704 (java_lang_files): Likewise.
4705 (java_text_files): Likewise.
4706 (java_util_files): Likewise.
4707 (java_files): Use new macros.
4708 (java-io.o): New target.
4709 (java-lang.o): Likewise.
4710 (java-text.o): Likewise.
4711 (java-util.o): Likewise.
4712 (src_io_files): New macro.
4713 (src_lang_files): Likewise.
4714 (src_text_files): Likewise.
4715 (src_util_files): Likewise.
4716 (class_io_files): New macro.
4717 (class_lang_files): Likewise.
4718 (class_text_files): Likewise.
4719 (class_util_files): Likewise.
4720 (class_files): Use new macros.
4721 (javao_files): Define conditionally.
4722 (.java.o): New target.
4723 ($(javao_files)): New target.
4725 (GCJH): Added $(EXEEXT).
4726 (CLASSPATH_ENV): Removed.
4727 (GCJCOMPILE): New macro.
4729 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4731 * java/util/Date.java (parse): Written from scratch.
4733 1998-11-11 Tom Tromey <tromey@cygnus.com>
4735 * java/lang/Throwable.java (toString): Correct sense of test for
4736 determining when to include detail message in result.
4738 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4741 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4743 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4745 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4746 (_Jv_RegisterClass): Use it.
4747 * include/jvm.h (_Jv_RegisterClasses): Declare.
4748 * java/lang/natObject.cc (init): Removed.
4749 (sync_init): Never call _Jv_InitializeSyncMutex.
4750 (_Jv_InitializeSyncMutex): Don't set `init'.
4751 * prims.cc (JvRunMain): Don't run init functions.
4753 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4755 * java/lang/natClass.cc (initializeClass): Set state before
4756 resolving constants.
4758 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4759 (STATE_RESOLVED): New macro.
4760 (initializeClass): Call resolveConstants.
4761 (hackRunInitializers): Don't call resolveConstants.
4762 (_Jv_FindArrayClass): Move short-circuit return for primitive
4763 element types earlier in function.
4765 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4767 * prims.cc (no_memory): New global.
4768 (_Jv_makeUtf8Const): Throw no_memory.
4769 (_Jv_AllocObject): Likewise.
4770 (_Jv_NewObjectArray): Likewise.
4771 (_Jv_NewPrimArray): Likewise.
4772 (JvRunMain): Initialize no_memory.
4774 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4776 * java/io/FileInputStream.java: Corrected date comment.
4777 * java/io/SequenceInputStream.java: Rewritten.
4779 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4781 * java/lang/FirstThread.java (die): New method.
4782 * java/lang/natFirstThread.cc (die): Removed.
4784 (run): Use `DIE', not `die'.
4786 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4788 * java/io/CharArrayReader.java (read): Move check into synchronized
4789 block to prevent a close while in progress.
4792 * java/io/PushbackReader.java (read): Ditto.
4795 * java/io/StringReader.java (mark): Ditto.
4800 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4802 * java/io/PipedInputStream.java: Updated status.
4803 (connect): Added code to prevent infinite recursion and to
4804 differentiate exception causes.
4805 (read): Added code to differentiate exception causes.
4806 (receive): Made exception pass string with the cause.
4808 * java/io/PipedOutputStream.java: Updated status.
4809 (connect): Added code to call connect at the other end of the pipe.
4811 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4813 * java/io/PipedInputStream.java (connect): Throw exception if
4814 already connected to the same output stream.
4815 (read): Do bounds checking first.
4817 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4819 * java/io/PipedInputStream.java: Added private boolean outClosed.
4820 (available): Removed check if output stream is open.
4821 (close): Mark the buffer as empty so available returns 0.
4822 (read): Check if the output stream was closed and then return EOF
4823 when the buffer is empty.
4824 (receive): Mark the output stream as closed when passed a -1.
4826 * java/io/PipedOutputStream.java (close): Notify the input stream
4827 that there's no more data coming.
4828 (connect): Added a FIXME comment to note more coordination needed
4829 with PipedInputStream.
4830 (flush): Added a FIXME comment to mark what this method might do
4833 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4835 * java/io/PipedInputStream.java: Rewritten.
4837 1998-10-30 Tom Tromey <tromey@cygnus.com>
4839 * java/lang/Throwable.java: Rewrote from scratch.
4841 * java/lang/Class.h (Class): Don't mention newMultiArray.
4842 * prims.cc (newMultiArray): Removed.
4843 (_Jv_NewMultiArray): Removed.
4844 (newArray): Removed.
4845 (new_multi_array): New function.
4846 (_Jv_NewMultiArray): Rewrote from scratch.
4848 * include/javaprims.h: Regenerated class declarations.
4849 * classes.pl (scan): Don't declare PrimClass.
4850 * include/cni.h (JvPrimClass): Use new names for classes.
4851 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4852 added _Jv_PrimClass.
4853 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4854 (_Jv_initPrimClass): Removed.
4855 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4856 (_Jv_AllocObject): Added comment.
4857 (_Jv_NewObjectArray): Likewise.
4858 (_Jv_NewPrimArray): Likewise.
4860 1998-10-29 Tom Tromey <tromey@cygnus.com>
4862 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4863 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4865 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4867 * java/lang/natObject.cc (init): New global.
4868 (sync_init): Call _Jv_InitializeSyncMutex if required.
4870 * Makefile.in: Rebuilt.
4871 * Makefile.am (nat_headers): Added ClassLoader.h.
4872 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4873 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4874 internalAddClass, lookupArray no longer friends.
4875 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4876 _Jv_FindArrayClass now friends.
4877 * java/lang/natClass.cc (HASH_LEN): New macro.
4878 (HASH_UTF): Likewise.
4879 (loaded_classes): New global.
4880 (_Jv_FindClass): New function.
4881 (ClassClass): New define.
4882 (_Jv_FindClassInCache): New function.
4883 (_Jv_RegisterClass): Likewise.
4884 (_Jv_NewClass): Likewise.
4886 (ObjectClass): New define.
4887 (CloneableClass): New define.
4888 * prims.cc (_Jv_FindClass): Removed.
4889 (simpleLookupClass): Removed.
4890 (insertClass): Removed.
4891 (CLASSHASHSZ): Removed.
4892 (classPool): Removed.
4893 (_Jv_RegisterClass): Removed.
4894 (internalAddClass): Removed.
4895 (ClassClass): Removed.
4896 (RuntimeClass): Removed.
4897 (lookupArray): Removed.
4898 (CloneableClass): Removed.
4899 (CLASSMAXSIG): Removed.
4900 Rearranged file to group related functions together.
4901 (_Jv_IsInstanceOf): Moved to natClass.cc.
4902 (abort_final): Removed.
4903 Removed some unused includes.
4904 (classFromSig): Removed.
4905 (_Jv_FindClassFromSignature): New function.
4906 (_Jv_initPrimClass): Renamed.
4907 (getClass): Removed.
4909 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4911 * java/io/FileDescriptor.java (finalize): Throws IOException
4912 instead of Throwable.
4914 * java/io/FileInputStream.java: Rewritten.
4916 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4917 at the end of a comment.
4919 1998-10-29 Tom Tromey <tromey@cygnus.com>
4921 * include/javaprims.h: Regenerated class declarations.
4922 * classes.pl (scan): Don't special-case ClassLoader.
4924 * prims.cc (processClass): Removed.
4925 (_Jv_InitClass): Removed.
4926 Removed all CSTATE_ macros.
4927 (resolveConstants): Removed.
4929 (_Jv_NewMultiArray): Cleaned up.
4930 * Makefile.in: Rebuilt.
4931 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4932 * java/lang/Class.h (Class): Declare new methods. processClass no
4934 * java/lang/Class.java (hackTrampoline): New method.
4935 (initializeClass): Declare.
4936 (hackRunInitializers): Declare.
4937 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4938 (initializeClass): New method.
4939 (hackRunInitializers): New method.
4940 (init_name, void_signature): Moved from prims.cc.
4941 (_Jv_InitClass): New function.
4942 (isAssignableFrom): Don't call processClass.
4943 (STATE_NOTHING): New macro.
4944 (resolveConstants): New function.
4946 (ErrorClass): New define.
4948 * java/lang/Class.java (getClassLoader): Declare.
4949 * java/lang/ClassLoader.java: Rewrote from scratch.
4951 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4952 AbstractMethodError.h, IllegalAccessError.h,
4953 NoClassDefFoundError.h.
4954 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4955 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4956 longer static. Changed return type.
4957 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4958 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4959 * prims.cc (findMethodLocal): Removed.
4960 (processClass): Use _Jv_GetMethodLocal.
4962 1998-10-28 Tom Tromey <tromey@cygnus.com>
4964 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4965 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4967 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4968 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4970 * include/jni.h: Added copyright header.
4971 * include/javaprims.h: Added copyright header.
4972 * include/java-field.h: Added copyright header.
4973 * include/java-array.h: Added copyright header.
4974 * include/cni.h: Added copyright header.
4976 * include/javaprims.h: Regenerated class declarations using
4977 classes.pl; now they are complete.
4978 * classes.pl: New file.
4980 * java/lang/natMath.cc: Include <config.h>.
4981 * java/lang/reflect/natField.cc: Include <config.h>.
4982 * java/util/NativeUtil.java: Removed.
4983 * Makefile.in: Rebuilt.
4984 * Makefile.am (nat_headers): Added Math.h.
4985 * java/lang/Math.h: Removed.
4986 * java/util/natGregorianCalendar.cc: Added copyright header.
4988 * java/lang/natFloat.cc: Added copyright header.
4989 * java/lang/Byte.java: Added copyright header.
4990 * java/lang/Void.java: Added copyright header.
4991 * java/lang/Short.java: Added copyright header.
4993 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4995 * include/javaprims.h (java::io): Added bunch of missing classes.
4997 * java/io/DataInputStream.java (readLine): Added a special case
4998 for handling BufferedInputStream data to reduce the likelihood
4999 of a pushback error.
5000 (skipBytes): Added code to handle negative number of skip bytes.
5002 * java/io/StreamTokenizer.java: Rewritten.
5004 1998-10-28 Tom Tromey <tromey@cygnus.com>
5006 * java/util/natGregorianCalendar.cc (computeFields): Call
5007 getRawOffset as a method.
5009 * include/javaprims.h (java::io): Added FilterOutputStream.
5010 * Makefile.in: Rebuilt.
5011 * Makefile.am (nat_headers): Added PrintStream.h,
5012 FilterOutputStream.h.
5013 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5015 (die): New function.
5016 (run): Die if `main' not found, is not public, or is not static.
5018 * boehm.cc (_Jv_MarkObj): Use new field names.
5019 * include/java-field.h (JvGetFirstInstanceField): Use new field
5021 (JvNumInstanceFields): Likewise.
5022 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5023 (getInterfaces): Likewise.
5024 * prims.cc (CLASS_CONSTANTS): Removed.
5025 (CLASS_CONST_SIZE): Likewise.
5026 (CLASS_CONST_TAG): Likewise.
5027 (CLASS_CONST_DATA): Likewise.
5028 (CLASS_CONST_UTF8): Likewise.
5029 (WORD2UTF): Likewise.
5030 (CLASS_CLASS): Likewise.
5031 (CLASS_PRIM_SIG): Likewise.
5032 (CLASS_ARRAY_CACHE): Likewise.
5033 (HASH_CHARS): Likewise.
5034 (hashClassName): Likewise.
5035 Many changes to use new field names.
5036 * java/lang/Class.h (Class): Renamed fields to track compiler.
5038 1998-10-27 Tom Tromey <tromey@cygnus.com>
5040 * java/lang/natClass.cc: Use #pragma implementation.
5041 (getComponentType): Moved into header.
5042 (getModifiers): Likewise.
5043 (getName): Likewise.
5044 (getSuperclass): Likewise.
5045 (isArray): Likewise.
5046 (isPrimitive): Likewise.
5047 * include/jvm.h (_Jv_FindClass): Declare.
5048 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5049 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5050 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5051 * java/lang/Class.h: Rewrote from scratch.
5052 * prims.cc: Many changes to work with new Class.h.
5053 * include/java-field.h (CLASS_FIELDS): Removed.
5054 (CLASS_SFIELDS): Likewise.
5055 (CLASS_IFIELDS): Likewise.
5056 (CLASS_NFIELDS): Likewise.
5057 (CLASS_NIFIELDS): Likewise.
5058 (CLASS_NSFIELDS): Likewise.
5059 (CLASS_FSIZE): Likewise.
5060 (JvGetFirstInstanceField): Rewrote.
5061 (JvNumInstanceFields): Likewise.
5063 * java/lang/Object.h: Added copyright comment.
5065 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5067 * java/text: New package directory.
5068 * java/text/FieldPosition.java: New class.
5069 * java/text/ParsePosition.java: New class.
5070 * java/text/ParseException.java: New Exception class.
5071 * java/text/Format.java: New class.
5072 * java/text/NumberFormat.java: New (empty placeholder) class.
5073 * java/text/DateFormatSymbols.java: New class (no Locales support).
5074 * java/text/DateFormat.java: New Format class (incomplete).
5075 * java/text/SimpleDateFormat.java: New DateFormat class.
5077 * include/javaprims.h (java::test): Added new package and classes.
5078 * java/util/Calendar.java (clone): New method.
5079 * java/util/Date.java (toString): Added non-native implementation.
5080 (parse): Made public instead of synchronized.
5081 * java/util/natDate.cc (toString): Removed.
5082 * java/util/natGregorianCalendar.cc (computeFields):
5083 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5085 1998-10-27 Tom Tromey <tromey@cygnus.com>
5087 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5089 * prims.cc (lookupArray): Added explanatory comment.
5090 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5091 class. Mark the class of each object.
5092 (_Jv_MarkArray): Mark the object's class.
5094 * configure: Rebuilt.
5095 * configure.in: Create java-gc.h.
5096 * include/boehm-gc.h: New file.
5097 * include/no-gc.h: New file.
5098 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5100 * java/lang/Object.h: Include java-gc.h.
5101 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5102 friends, if defined.
5103 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5105 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5107 1998-10-26 Tom Tromey <tromey@cygnus.com>
5109 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5110 paragraph separators, not numbers.
5112 * java/io/Writer.java (write): Removed write(char) to avoid
5114 * java/util/Properties.java: Rewrote from scratch.
5115 * include/javaprims.h (java::io): Added PrintWriter,
5116 BufferedWriter, PushbackReader.
5118 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5120 * java/lang/System.java: exit() is a static method.
5122 1998-10-26 Tom Tromey <tromey@cygnus.com>
5124 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5126 (_Jv_NewStringUtf8Const): Likewise.
5127 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5128 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5130 * java/lang/Object.h (Object): Add mark_array as friend function.
5131 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5132 _Jv_AllocBytes, to ensure that header is marked.
5133 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5135 (mark_array): Push sync_info field for array.
5137 1998-10-24 Tom Tromey <tromey@cygnus.com>
5139 * java/lang/String.java (String): Updated for StringBuffer
5141 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5143 * java/lang/StringBuffer.java: Renamed fields to conform to
5144 serialization spec: buffer->value, next->count, copy->shared.
5146 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5148 * java/util/TimeZone.java: New class.
5149 * java/util/SimpleTimeZone.java: New class.
5150 * java/util/Locale.java: New file.
5151 * java/util/Calendar.java: Make almost complete.
5152 * java/util/GregorianCalendar.java
5153 * java/util/natGregorianCalendar.cc: New file.
5154 * java/util/Date.java: Re-written from scratch.
5155 * java/util/natDate.cc (setTime): Removed - no longer native.
5156 * include/javaprims.h (java::util): Add new classes.
5157 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5158 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5160 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5162 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5163 returning it as a jint.
5165 1998-10-23 Tom Tromey <tromey@cygnus.com>
5167 * prims.cc (arg_vec, main_group, main_thread): New globals.
5168 (JvRunMain): Use them.
5170 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5172 * java/io/DataInputStream.java: Rewritten.
5174 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5175 tertiary bytes with 0x80 per spec.
5177 1998-10-23 Tom Tromey <tromey@cygnus.com>
5179 * java/lang/String.java (init): Changed name of `copy' argument.
5180 * java/lang/natString.cc (init): Inverted sense of `copy'
5183 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5184 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5185 * boehm.cc (ObjectClass): New define.
5186 (ClassClass): Likewise.
5187 (mark_obj): Special-case Object and Class.
5189 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5191 * java/util/BitSet.java: Rewrote from scratch.
5193 * prims.cc (lookupArray): Removed useless cast.
5195 * java/lang/natObject.cc: Use `#pragma implementation'.
5197 * java/lang/String.java (init): Added `copy' argument.
5198 (String): Look in StringBuffer to find char array.
5199 * java/lang/natString.cc (init): Added `copy' argument.
5200 * java/lang/StringBuffer.java: Rewrote from scratch.
5202 * java/lang/Compiler.java: Rewrote from scratch.
5203 * java/lang/Throwable.java: Don't use NativeLang.
5204 * include/javaprims.h (java::lang): Don't mention NativeLang.
5205 * java/lang/Process.java: Rewrote from scratch.
5206 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5208 (currentClassLoader): Likewise.
5209 (currentLoadedClass): Likewise.
5210 * java/lang/natClass.cc (getClassLoader): Commented out.
5211 * java/lang/Class.java (getClassLoader): Commented out.
5212 * java/lang/Compiler.java: Removed.
5213 * java/lang/NativeLang.java: Removed.
5215 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5216 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5217 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5218 (_Jv_hashUtf8String): Now static.
5219 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5220 name of return type.
5222 * java/lang/Class.h (Class): Declare checkMemberAccess.
5223 * Makefile.in: Rebuilt.
5224 * Makefile.am (nat_headers): Added Member.h.
5225 * java/lang/natClass.cc: Include Member.h.
5226 (getDeclaredClasses): Call checkMemberAccess.
5227 * java/lang/Class.java (checkMemberAccess): Call
5228 SecurityManager.checkMemberAccess.
5230 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5232 * java/lang/SecurityManager.java: Rewritten.
5234 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5236 * java/applet/Applet.java, java/applet/AppletContext.java,
5237 java/applet/AppletStub.java, java/applet/AudioClip.java,
5238 java/awt/AWTError.java, java/awt/AWTException.java,
5239 java/awt/BorderLayout.java, java/awt/Button.java,
5240 java/awt/Canvas.java, java/awt/CardLayout.java,
5241 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5242 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5243 java/awt/Color.java, java/awt/Component.java,
5244 java/awt/Container.java, java/awt/Dialog.java,
5245 java/awt/Dimension.java, java/awt/Event.java,
5246 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5247 java/awt/Font.java, java/awt/FontMetrics.java,
5248 java/awt/Frame.java, java/awt/Graphics.java,
5249 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5250 java/awt/GridLayout.java, java/awt/Image.java,
5251 java/awt/Insets.java, java/awt/Label.java,
5252 java/awt/LayoutManager.java, java/awt/List.java,
5253 java/awt/MediaTracker.java, java/awt/Menu.java,
5254 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5255 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5256 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5257 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5258 java/awt/TextArea.java, java/awt/TextComponent.java,
5259 java/awt/TextField.java, java/awt/Toolkit.java,
5260 java/awt/Window.java, java/awt/image/ColorModel.java,
5261 java/awt/image/CropImageFilter.java,
5262 java/awt/image/DirectColorModel.java,
5263 java/awt/image/FilteredImageSource.java,
5264 java/awt/image/ImageConsumer.java,
5265 java/awt/image/ImageFilter.java,
5266 java/awt/image/ImageObserver.java,
5267 java/awt/image/ImageProducer.java,
5268 java/awt/image/IndexColorModel.java,
5269 java/awt/image/MemoryImageSource.java,
5270 java/awt/image/PixelGrabber.java,
5271 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5272 java/awt/peer/CanvasPeer.java,
5273 java/awt/peer/CheckboxMenuItemPeer.java,
5274 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5275 java/awt/peer/ComponentPeer.java,
5276 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5277 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5278 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5279 java/awt/peer/MenuBarPeer.java,
5280 java/awt/peer/MenuComponentPeer.java,
5281 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5282 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5283 java/awt/peer/TextAreaPeer.java,
5284 java/awt/peer/TextComponentPeer.java,
5285 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5286 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5287 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5288 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5289 java/net/MalformedURLException.java, java/net/NativeNet.java,
5290 java/net/ProtocolException.java, java/net/ServerSocket.java,
5291 java/net/Socket.java, java/net/SocketException.java,
5292 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5293 java/net/URL.java, java/net/URLConnection.java,
5294 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5295 java/net/URLStreamHandlerFactory.java,
5296 java/net/UnknownHostException.java,
5297 java/net/UnknownServiceException.java: Removed.
5299 1998-10-22 Tom Tromey <tromey@cygnus.com>
5301 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5302 finalizer is not Object.finalize.
5303 (internalAddClass): Don't set `final' member of class.
5304 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5305 other places that know about finalize() location.
5306 * java/lang/Class.h (Class): Removed `final' field.
5308 * aclocal.m4, configure: Rebuilt.
5309 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5310 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5312 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5313 * Makefile.in: Rebuilt.
5314 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5316 1998-10-21 Tom Tromey <tromey@cygnus.com>
5318 * java/lang/Object.java (finalize): Move to be first method in
5321 * configure: Rebuilt.
5322 * configure.in (GCINCS): Include contents of boehm-cflags file.
5324 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5326 * java/lang/ArrayIndexOutOfBoundsException.java
5327 (ArrayIndexOutOfBoundsException): Fixed string literal.
5328 * java/lang/StringIndexOutOfBoundsException.java
5329 (StringIndexOutOfBoundsException): Fixed string literal.
5331 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5333 * natFileDescriptorEcos.cc added.
5334 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5336 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5338 * acconfig.h: test for __int32_t and __uint32_t added.
5339 * include/config.h.in: test for __int32_t and __uint32_t added.
5340 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5341 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5342 * configure.in: test for __int32_t and __uint32_t added.
5343 * configure: test for __int32_t and __uint32_t added.
5345 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5347 * configure.in: Test for --enable ecos and link
5348 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5349 natFileDescriptorPosix.cc
5351 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5353 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5355 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5358 * java/io/CharArrayReader.java (close): Synchronize on lock
5359 object per Reader contract.
5360 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5361 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5362 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5363 Ensure that arg passed in isn't negative.
5365 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5366 constructing the superclass.
5368 * java/io/PushbackReader.java (close): Synchronize on lock
5369 object per Reader contract.
5370 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5371 (ready): Synchronize on lock obj. Throw IOException if reader
5373 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5374 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5375 Ensure that arg passed in isn't negative.
5376 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5378 * java/io/StringReader.java: Created.
5380 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5382 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5384 (read): Removed synchronized modifier to match JCL.
5385 (reset): Removed synchronized modifier to match JCL.
5386 (skip): Removed synchronized modifier to match JCL.
5388 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5390 * java/io/PushbackReader.java (PushbackReader): Made
5391 constructors public.
5393 1998-10-17 Tom Tromey <tromey@cygnus.com>
5395 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5396 constructors public.
5398 1998-10-16 Anthony Green <green@cygnus.com>
5400 * aclocal.m4, configure: Rebuilt.
5401 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5403 * configure.host: Rewrote.
5404 * Makefile.in: Rebuilt.
5405 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5406 (AM_CFLAGS): New macro.
5407 ($(c_files)): Use COMPILE macro.
5408 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5409 automake problem(s).
5411 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5413 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5415 * java/io/CharArrayReader.java: Created.
5417 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5419 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5420 size check to allow 0 per JCL.
5422 * java/io/PushbackReader.java: Created.
5424 1998-10-16 Tom Tromey <tromey@cygnus.com>
5426 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5427 <sys/time.h> includes.
5428 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5429 * include/no-threads.h: Conditionalize <unistd.h> include on
5432 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5434 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5437 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5439 * java/io/FilterReader.java: Created.
5441 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5443 * java/io/PushbackInputStream.java: Rewritten.
5445 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5446 that size passed to constructor is legal.
5447 (read): Check that args passed in are legal.
5448 (skip): Rewritten to get rid of the temporary buffer.
5449 (refill): Added marklimit check to grow the buffer.
5451 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5453 (bytesAvail): Removed.
5454 (read): Changed bytesAvail to Math.min.
5455 (skip): Changed bytesAvail to Math.min.
5457 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5458 from the throws clause.
5459 (skip): Rewritten to use a temporary buffer.
5461 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5463 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5466 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5468 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5469 to write the double one word at a time.
5471 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5473 * java/io/BufferedInputStream.java: Rewritten.
5475 1998-10-12 Tom Tromey <tromey@cygnus.com>
5477 * jni.cc: Include config.h and stddef.h.
5479 * java/lang/Class.h (_dispatchTable): Removed again.
5480 Removed all ACC_* defines again.
5482 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5484 * Makefile.am (nat_files): Add netField.o.
5485 (libjava_a_SOURCES): Add jni.cc.
5486 (java/lang/reflect/Field.h): New rule.
5487 * Makefile.in: Re-generated.
5488 * include/javaprims.h: Add some extra class and typedefs.
5489 * include/jni.h: New file.
5492 * include/java-field.h: New file.
5493 * include/jvm.h: #include <java-field.h>.
5494 * boehm.cc: #include <java-field.h>.
5495 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5496 * java/lang/reflect/Member.java: New class.
5497 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5498 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5500 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5502 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5503 testsuite/Makefile.in: Rebuilt.
5504 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5505 * configure.host: Created.
5507 1998-10-10 Tom Tromey <tromey@cygnus.com>
5509 * java/lang/natObject.cc (sync_init): Always allocate a new
5512 1998-10-09 Tom Tromey <tromey@cygnus.com>
5514 * java/io/ByteArrayInputStream.java (mark): Renamed from
5517 * java/io/FileOutputStream.java (finalize): Removed.
5518 * java/io/FileDescriptor.java (finalize): New method.
5520 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5522 * ByteArrayInputStream.java: Corrected status comment.
5524 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5526 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5528 1998-10-08 Tom Tromey <tromey@cygnus.com>
5530 * prims.cc (lookupArray): Use static array to initialize list of
5533 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5535 * prims.cc (lookupArray): Initialize the msize for new
5538 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5540 * configure: Rebuilt.
5541 * configure.in: Check for fsync and sleep.
5542 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5544 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5545 HAVE_SLEEP. Include config.h.
5547 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5548 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5551 1998-10-08 Tom Tromey <tromey@cygnus.com>
5553 * java/io/natFile.cc: Don't include SecurityManager.h.
5554 (performList): Renamed.
5555 (performMkdir): Likewise.
5556 (performRenameTo): Likewise.
5557 (performDelete): Likewise.
5559 * java/io/File.java (performDelete): Renamed from natDelete.
5560 (list): Now written in Java.
5561 (performList): New method.
5562 (performMkdir): New method.
5563 (mkdir): Now written in Java.
5564 (performRenameTo): New method.
5565 (renameTo): Now written in Java.
5567 1998-10-06 Tom Tromey <tromey@cygnus.com>
5569 * Makefile.in: Rebuilt.
5570 * Makefile.am (ETAGS_ARGS): New macro.
5571 (TAGS_DEPENDENCIES): Likewise.
5573 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5575 * Makefile.in: Rebuilt.
5576 * Makefile.am: Use -classpath option with javac.
5578 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5580 * java/io/FileOutputStream.java (finalize): Call
5583 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5585 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5587 * java/lang/mprec.c: Ditto.
5589 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5592 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5594 * java/io/InputStream.java (skip): Make local var i a long.
5596 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5598 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5599 * prims.cc (lookupArray): Use memcpy, not memmove.
5600 * include/config.h.in: Rebuilt.
5601 * acconfig.h (HAVE_MEMCPY): Added.
5602 * configure: Rebuilt.
5603 * configure.in: Check for memcpy again.
5605 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5606 String.compareTo, not ==.
5608 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5609 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5610 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5611 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5612 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5613 into new array's dtable.
5614 (_Jv_AllocObject): Use _Jv_DispatchTable.
5615 (_Jv_NewPrimArray): Likewise.
5616 (_Jv_NewObjectArray): Likewise.
5618 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5620 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5621 offending index value.
5622 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5624 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5625 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5627 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5629 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5631 * java/io/OutputStream.java (write): Use off and len parameters to
5632 output partial byte array.
5634 * java/io/BufferedReader.java, java/io/FileReader.java,
5635 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5636 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5637 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5638 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5640 * include/javaprims.h (java::lang): Added
5641 ExceptionInInitializerError, IllegalStateException,
5642 NoSuchFieldException, and UnsupportedOperationException.
5644 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5646 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5649 * include/java-array.h (__JArray): Added clone method.
5650 * prims.cc (CloneableClass): New define.
5651 (lookupArray): Initialize array class to indicate that it
5652 implements Cloneable.
5654 * java/lang/Class.h: Removed all ACC_* defines.
5655 * prims.cc: Include Modifier.h.
5656 (_Jv_LookupInterfaceMethod): Use methods in
5657 java.lang.reflect.Modifier, not ACC_ defines.
5659 * java/lang/Class.h (Class): Declare getClasses,
5660 getDeclaredClasses, getDeclaringClass, getModifiers,
5661 * java/lang/Class.java: Rewrote from scratch.
5663 * include/javaprims.h (java::lang): Added reflect and
5665 * Makefile.in: Rebuilt.
5666 * Makefile.am (nat_headers): Added Modifier.h.
5668 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5671 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5673 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5674 instead of test and abort.
5676 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5677 remove compiler warning.
5679 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5681 * java/lang/natDouble.cc: zero terminate string.
5682 * strtod.c: Set errno if no digits are found in fraction.
5684 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5686 * java/lang/reflect/Modifier.java: New file.
5688 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5689 * java/lang/VerifyError.java: Rewrote from scratch.
5690 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5691 * java/lang/UnknownError.java: Rewrote from scratch.
5692 * java/lang/StackOverflowError.java: Rewrote from scratch.
5693 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5694 * java/lang/InternalError.java: Rewrote from scratch.
5695 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5696 * java/lang/ExceptionInInitializerError.java: New file.
5697 * java/lang/Error.java: Rewrote from scratch.
5698 * java/lang/ClassFormatError.java: Rewrote from scratch.
5699 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5700 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5701 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5702 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5703 * java/lang/LinkageError.java: Rewrote from scratch.
5704 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5706 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5708 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5709 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5711 * include/cni.h (JvAllocObject): Moved from prims.cc.
5713 * prims.cc (JvAllocObject): Moved to cni.h.
5714 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5715 (finalize_name): Removed.
5717 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5719 * java/lang/Class.h (Class): Added size() method.
5720 * prims.cc (_Jv_MonitorEnter): Removed.
5721 (_Jv_MonitorExit): Removed.
5722 * java/lang/Object.h (JvSyncInfo): Removed.
5723 * Makefile.in: Rebuilt.
5724 * Makefile.am (nat_headers): Added Cloneable.h,
5725 CloneNotSupportedException.h.
5726 * java/lang/Object.h: Rewrote.
5727 * java/lang/natObject.cc: Rewrote from scratch.
5728 * java/lang/Object.java: Rewrote from scratch.
5730 * java/io/natFile.cc: Conditionally include <dirent.h>.
5731 (list): If no <dirent.h>, always return NULL.
5732 * configure: Rebuilt.
5733 * configure.in: Check for dirent.h.
5735 * prims.cc (lookupArray): Don't use sprintf.
5737 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5744 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5745 name conflict with method.
5747 * include/javaprims.h (java::util): Added HashtableEntry.
5749 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5751 * java/util/Hashtable.java: Rewritten.
5753 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5755 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5759 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5762 * posix-threads.cc (_Jv_CondWait): Now returns int.
5763 * include/javaprims.h (java::lang): Added
5764 IllegalMonitorStateException.
5765 * Makefile.in: Rebuilt.
5766 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5767 * include/no-threads.h (_Jv_CondDestroy): Removed.
5768 (_Jv_MutexDestroy): Removed.
5769 (_Jv_CondWait): Now returns int.
5770 (_Jv_CondNotify): Likewise. Added mutex argument.
5771 (_Jv_CondNotifyAll): Likewise.
5772 (_Jv_MutexLock): Always succeed.
5773 (_Jv_MutexUnlock): Likewise.
5774 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5775 (_Jv_HaveMutexDestroy): Define.
5776 (_Jv_CondNotify): Now returns int. Added mutex argument.
5777 (_Jv_CondNotifyAll): Likewise.
5778 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5779 (_Jv_MutexDestroy): Removed.
5780 (_Jv_CondWait): Now returns int.
5781 (_Jv_CondNotify): Likewise. Added mutex argument.
5782 (_Jv_CondNotifyAll): Likewise.
5783 * java/lang/natObject.cc (finalize_sync_info): New function.
5784 (init_mutex): Initialize `init' and register finalizer if
5787 (init_mutex): Use it.
5789 (notifyAll): Use it.
5791 (notify): Throw IllegalMonitorStateException on failure.
5792 (notifyAll): Likewise.
5793 (wait): Likewise. Also, throw InterruptedException if
5795 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5796 InterruptedException.h, IllegalArgumentException.h.
5797 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5799 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5800 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5801 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5802 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5803 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5804 * quick-threads.cc: Renamed all `JvPriv' functions.
5805 * prims.cc: Renamed all `JvPriv' functions.
5806 * posix-threads.cc: Renamed all `JvPriv' functions.
5807 * nogc.cc: Renamed all `JvPriv' functions.
5808 * no-threads.cc: Renamed all `JvPriv' functions.
5809 * boehm.cc: Renamed all `JvPriv' functions.
5810 * include/quick-threads.h: Renamed all `JvPriv' functions.
5811 * include/posix-threads.h: Renamed all `JvPriv' functions.
5812 * include/no-threads.h: Renamed all `JvPriv' functions.
5813 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5815 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5817 (JvPrivCondNotify): Do nothing.
5818 (JvPrivCondNotifyAll): Do nothing.
5820 * prims.cc (processClass): Handle case where state is
5823 * java/lang/natFirstThread.cc: Include <stdlib.h>
5825 * configure: Rebuilt.
5826 * configure.in: Fixed sense of --enable-libjava-debug.
5828 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5829 it can be used afterward by the assertion.
5831 * configure: Rebuilt.
5832 * configure.in: When cross-compiling, assume alloca.
5834 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5835 __builtin_alloca (autoconf docs are wrong here).
5837 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5839 (available): Use `FD_ZERO' (typo fix).
5841 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5843 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5844 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5846 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5847 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5850 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5852 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5854 * java/lang/natDouble.cc: Declare alloca safely.
5856 * configure, include/config.h.in: Rebuilt.
5857 * configure.in: Add alloca check.
5859 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5861 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5862 condition while calling notify.
5863 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5864 (interrupt): Hold mutex for interrupt condition while calling
5867 * java/lang/natString.cc (init): Allocate and try to read `count'
5868 characters, not `count - offset' characters.
5870 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5871 Correctly compute `count'.
5873 * java/lang/Boolean.java (getBoolean): Return false if property
5876 * java/lang/System.java (setProperties): Set prop_init.
5878 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5880 * java/io/PrintStream.java (println): Use line.separator, not
5882 * java/lang/System.java (out, err): Make both autoflush streams.
5883 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5885 * include/config.h.in: Rebuilt.
5886 * acconfig.h (HAVE_MEMCPY): Removed.
5887 * configure: Rebuilt.
5888 * configure.in: Never define HAVE_MEMCPY.
5890 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5892 (_Jv_AllocString): Use JvAllocObject again.
5893 * java/lang/Class.h (thread): New field.
5894 (_Jv_AllocString): No longer a friend.
5895 * prims.cc (processClass): Removed dead code. Changed to more
5896 closely follow the Java Language Specification.
5897 (processClass): Return early if already at the right state.
5899 * prims.cc (JvNewStringUTF): Removed.
5900 * include/cni.h (JvNewStringUTF): New function.
5901 (_Jv_NewStringUTF): Declare as `extern "C"'.
5902 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5904 * java/lang/natDouble.cc: Added copyright info and header
5905 comment. Include <stdlib.h>.
5906 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5907 bytes as are chars in string.
5909 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5911 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5915 * java/lang/System.java (init_properties): Now native.
5916 * java/lang/natSystem.cc (init_properties): New method.
5917 Include java/util/Properties.h.
5919 * Makefile.in: Rebuilt.
5920 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5921 OutputStreamWriter.h, ByteArrayInputStream.h,
5922 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5923 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5924 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5925 Properties.h, Hashtable.h, Dictionary.h.
5928 * include/javaprims.h (java::io): Added Reader, Writer,
5929 InputStreamReader, OutputStreamWriter,
5930 UnsupportedEncodingException, ByteArrayInputStream,
5931 ByteArrayOutputStream, EOFException, SyncFailedException,
5932 PushbackInputStream.
5933 (java::lang): Added Cloneable.
5934 (java::util): Added NoSuchElementException, VectorEnumeration,
5935 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5937 * java/io/PipedReader.java: New file.
5939 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5941 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5944 * java/io/io-defs.h: Removed.
5946 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5947 (FileInputStream): Use new constructor. Can throw IOException.
5949 * java/lang/System.java (getProperty): Don't throw
5950 NullPointerException.
5952 * java/io/RandomAccessFile.java: Rewrote from scratch.
5954 * java/io/natFileDescriptor.cc: Include EOFException.h.
5956 (length): New method.
5957 (getFilePointer): New method.
5959 (available): New method.
5960 * java/io/FileDescriptor.java (SET, CUR): New constants.
5961 (seek, length, getFilePointer, read, available): New decls.
5963 * java/io/PipedWriter.java: New file.
5964 * java/io/StringWriter.java: New file.
5965 * java/io/CharArrayWriter.java: New file.
5966 * java/io/CharConversionException.java: New file.
5967 * java/io/BufferedWriter.java: New file.
5968 * java/io/FilterWriter.java: New file.
5969 * java/io/FileWriter.java: New file.
5971 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5972 OutputStreamWriter.h, NullPointerException.h,
5973 ByteArrayInputStream.h, InputStreamReader.h.
5974 (getBytes): New method.
5975 (init): Throw NullPointerException.
5976 (init): New function.
5977 * java/lang/String.java (getBytes): Added missing decl.
5978 (getBytes): New method.
5979 (String): Added byte[]-based constructors.
5980 (copyValueOf): Wrote.
5981 (init): Declare variant which takes byte array and encoding.
5982 Import java.io.UnsupportedEncodingException.
5984 * java/io/File.java: Rewrote from scratch.
5985 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5986 * java/io/FileDescriptor.java: Rewrote from scratch.
5987 * java/io/FilenameFilter.java: Rewrote from scratch.
5989 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5991 * java/io/SyncFailedException.java: New file.
5992 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5993 * java/io/InterruptedIOException.java: Rewrote from scratch.
5994 * java/io/FileNotFoundException.java: Rewrote from scratch.
5995 * java/io/EOFException.java: Rewrote from scratch.
5996 * java/io/IOException.java: Rewrote from scratch.
5997 * java/io/PrintStream.java: Rewrote from scratch.
5998 * java/io/DataOutputStream.java: Rewrote from scratch.
5999 * java/io/BufferedOutputStream.java: Rewrote from scratch.
6000 * java/io/FilterOutputStream.java: Rewrote from scratch.
6001 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
6002 * java/io/PipedOutputStream.java: Rewrote from scratch.
6003 * java/io/FileOutputStream.java: Rewrote from scratch.
6004 * java/io/OutputStream.java: Rewrote from scratch.
6005 * java/io/DataOutput.java: Rewrote from scratch.
6007 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6009 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6011 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6013 * configure.in: Add --enable-libjava-debug
6015 * Makefile.am (nat_headers): Add java/lang/Float.h and
6018 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6020 * Makefile.in, configure, include/config.h.in: Rebuilt.
6022 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6024 * java/lang/Float.java: Rewritten
6025 * java/lang/Double.java: Rewritten
6026 * java/lang/natFloat.cc: toString() added.
6027 * java/lang/natDouble.cc: toString() added.
6028 * java/lang/natDouble.cc: doubleValueOf() added.
6029 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6030 java/lang/strtod.c: added.
6031 * ieeefp.h: __sparc added.
6032 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6034 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6036 * include/javaprims.h (java::lang): Added
6037 CloneNotSupportedException.
6039 * java/lang/Object.java (clone): No longer native. Implemented.
6040 * java/lang/natObject.cc (clone): Removed.
6042 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6044 * prims.cc: Don't make definitions `extern "C"'.
6045 (_Jv_RegisterClass): Renamed from registerClass.
6046 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6047 (_Jv_NewArray): Likewise.
6048 (_Jv_NewMultiArray): Likewise.
6049 (_Jv_CheckCast): Likewise.
6050 (_Jv_LookupInterfaceMethod): Likewise.
6051 (_Jv_CheckArrayStore): Likewise.
6052 (_Jv_RegisterClass): Likewise.
6054 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6055 * configure: Rebuilt.
6056 * configure.in: Don't check for fmod; it is provided by the fdlibm
6058 * prims.cc (fmod): Removed.
6060 * java/lang/natString.cc (charAt): Use _Jv_uint.
6061 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6062 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6063 (equalUtf8Consts): Likewise.
6064 (internalAddClass): Use _Jv_uint.
6065 (processClass): Likewise.
6066 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6067 (_Jv_uint): Renamed from uint32.
6068 (struct _Jv_Utf8Const): Changed members to use new type names.
6070 * configure: Rebuilt.
6071 * configure.in: Don't check for memcpy. Require memmove and a way
6073 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6075 (currentTimeMillis): Don't use #error.
6077 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6079 * java/lang/Math.java: static member random renamed to random_ to
6080 avoid conflict with member function of the same name.
6081 * include/javaprims.h: java.util.Random added.
6083 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6085 * include/java-chartables.h: Regenerated.
6086 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6089 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6091 * java/lang/Math.java: Rewritten.
6092 * java/lang/natMath.cc: New file.
6093 * Files added from fdlibm:
6094 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6095 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6096 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6097 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6098 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6099 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6100 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6101 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6102 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6103 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6104 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6105 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6106 java/lang/k_cos.c, java/lang/sf_ceil.c,
6107 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6108 java/lang/ieeefp.h, java/lang/fdlibm.h
6109 * Makefile.am: rules added for compiling C files from fdlibm.
6111 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6113 * chartables.pl: Minor documentation fixes.
6115 * configure: Rebuilt.
6116 * configure.in: Fixed --help output for --enable-fast-character.
6118 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6120 * configure: Rebuilt.
6121 * configure.in: Recognize --enable-fast-character.
6122 * acconfig.h (COMPACT_CHARACTER): New define.
6123 * include/config.h.in: Rebuilt.
6124 * include/java-chartables.h: New file.
6125 * Makefile.in: Rebuilt.
6126 * Makefile.am (nat_files): Added natCharacter.o.
6127 * java/lang/natCharacter.cc: New file.
6128 * chartables.pl (set_attribute): New function.
6129 (@attributes, @second_attributes): New globals.
6130 ($ROMAN_START, $ROMAN_END): Likewise.
6131 (process_char): Call set_attribute when required.
6132 (print_char): Just print hex value.
6133 (print_block): Generate C++ syntax.
6134 (print_numerics): Likewise.
6135 (print_single_map): Likewise.
6136 (print_all_block): Likewise.
6137 (print_case_table): Likewise.
6138 (print_fast_tables): New function.
6139 Generate C++ code suitable for a header file.
6140 * java/lang/Character.java (table_search): Removed.
6141 (digit_value): Now native.
6142 (getNumericValue): Likewise.
6143 (getType): Likewise.
6144 Removed all automatically-generated tables.
6145 (Tamil_Digit_One): Removed.
6146 (isSpaceChar): Now native.
6147 (isTitleCase): Likewise.
6148 (isLowerCase): Likewise.
6149 (isUpperCase): Likewise.
6150 (toLowerCase): Likewise.
6151 (toTitleCase): Likewise.
6152 (toUpperCase): Likewise.
6153 (isDefined): Fixed sense of test.
6155 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6157 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6159 (regionMatches): Likewise.
6161 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6163 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6165 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6167 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6170 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6173 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6175 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6177 * prims.cc (instanceof_class): Removed.
6178 (instanceof_array): Likewise.
6179 (instanceof): Likewise.
6180 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6181 (_Jv_CheckCast): Likewise.
6182 * java/lang/natClass.cc (isAssignableFrom): New method.
6183 * java/lang/Class.java (isAssignableFrom): Now native.
6185 * include/cni.h (JvThrow): Use `extern inline'.
6186 (JvAllocObject): Likewise.
6187 (JvInitClass): Likewise.
6189 * java/lang/natSystem.cc (arraycopy): Only check class of source
6192 * prims.cc (_Jv_CheckArrayStore): Wrote.
6193 (_Jv_MonitorEnter): Prefer `JvThrow'.
6194 Include ArrayStoreException.h.
6195 (_Jv_CheckCast): Indentation cleanup.
6197 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6199 * chartables.pl: New file.
6200 * java/lang/Character.java: Rewrote from scratch.
6202 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6204 * java/lang/ArithmeticException.java,
6205 java/lang/ArrayIndexOutOfBoundsException.java,
6206 java/lang/ArrayStoreException.java,
6207 java/lang/ClassCastException.java,
6208 java/lang/ClassNotFoundException.java,
6209 java/lang/CloneNotSupportedException.java,
6210 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6211 java/lang/IllegalArgumentException.java,
6212 java/lang/IllegalMonitorStateException.java,
6213 java/lang/IllegalThreadStateException.java,
6214 java/lang/IndexOutOfBoundsException.java,
6215 java/lang/InstantiationException.java,
6216 java/lang/InterruptedException.java,
6217 java/lang/NegativeArraySizeException.java,
6218 java/lang/NoSuchMethodException.java,
6219 java/lang/NullPointerException.java,
6220 java/lang/NumberFormatException.java,
6221 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6222 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6224 * java/lang/IllegalStateException.java,
6225 java/lang/NoSuchFieldException.java,
6226 java/lang/UnsupportedOperationException.java: Created.
6228 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6230 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6231 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6233 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6235 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6237 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6239 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6241 * Makefile.in: Rebuilt.
6243 * include/javaprims.h (java::lang): Added
6244 StringIndexOutOfBoundsException.
6246 * java/lang/String.java: Added header comment and FIXME comment for
6247 missing constructors/methods.
6248 (endsWith): Adjusted offset into string to look at just the last chars.
6249 Commented out undocumented method.
6251 * java/lang/natString.cc: Added includes for
6252 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6253 (String::init): Throw StringIndexOutOfBoundsException.
6254 (String::charAt): Throw StringIndexOutOfBoundsException.
6255 (String::substring): Throw StringIndexOutOfBoundsException.
6256 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6257 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6258 (String::compareTo): Return difference/offset between chars/strings.
6260 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6262 * java/lang/Boolean.java (TYPE): Added comment.
6264 * java/lang/Byte.java (decode): Added - commented out until dependent
6265 code for Integer is written.
6266 (compareTo): JDK 1.2 methods written.
6267 (hashCode): Added comment to note that values have been verified.
6269 * java/lang/Short.java (decode): Added - commented out until dependent
6270 code for Integer is written.
6271 (compareTo): JDK 1.2 methods written.
6272 (hashCode): Added comment to note that values have been verified.
6274 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6276 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6278 * include/javaprims.h (java::lang): Added VirtualMachineError,
6280 * Makefile.in: Rebuilt.
6281 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6282 VirtualMachineError.h.
6283 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6284 (lookupArray): Likewise.
6285 (makeUtf8Const): Likewise.
6286 (_Jv_AllocObject): Likewise.
6287 (_Jv_NewObjectArray): Likewise.
6288 Include OutOfMemoryError.h.
6290 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6291 to use JvNewStringLatin1.
6293 * java/io/io-defs.h: Include java/lang/IOException.h.
6294 * Makefile.in: Rebuilt.
6295 * Makefile.am (nat_headers): Added
6296 ArrayIndexOutOfBoundsException.h,
6297 ClassFormatError.h,ClassNotFoundException.h,
6298 ClassCircularityError.h, ClassCastException.h,
6299 IncompatibleClassChangeError.h, AbstractMethodError.h,
6300 IllegalAccessError.h, LinkageError.h, Error.h,
6301 NegativeArraySizeException.h, IOException.h.
6302 * include/cni.h (SignalError): Removed declaration.
6303 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6304 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6305 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6306 (newInstance): Likewise.
6307 (forName): Likewise.
6308 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6310 (read): Use JvThrow, not SignalError.
6315 (open_read): Likewise.
6316 (open_write): Likewise.
6319 (newstr): New function.
6320 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6322 (lastModifiedUnchecked): Likewise.
6323 (lengthUnchecked): Likewise.
6324 * include/javaprims.h (sorry): Removed declaration.
6325 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6326 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6327 ClassCastException, IncompatibleClassChangeError,
6328 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6329 * prims.cc (instanceof_array): Use JvFail, not sorry.
6331 Include ArrayIndexOutOfBoundsException.h,
6332 ClassFormatError.h,ClassNotFoundException.h,
6333 ClassCircularityError.h, ClassCastException.h,
6334 IncompatibleClassChangeError.h, AbstractMethodError.h,
6335 IllegalAccessError.h, NegativeArraySizeException.h.
6336 (_Jv_ThrowBadArrayIndex): Implemented.
6337 (JvNewStringUTF): Use JvFail, not sorry.
6338 (_Jv_FindClass): Likewise.
6339 (_Jv_NewArray): Likewise.
6340 (throwException): Removed.
6341 (getClass): Use JvThrow.
6342 (processClass): Likewise.
6343 (_Jv_NewObjectArray): Likewise.
6344 (_Jv_NewMultiArray): Likewise.
6345 (_Jv_CheckCast): Likewise.
6346 (_Jv_LookupInterfaceMethod): Likewise.
6347 (SignalError): Removed.
6348 (getClass): Use _Jv_NewStringUtf8Const to create String.
6350 * java/lang/natSystem.cc (arraycopy): Throw
6351 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6353 * Makefile.in: Rebuilt.
6354 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6356 * include/java-array.h: Mention gcjh, not gjavah.
6358 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6359 (canReadUnchecked): Likewise.
6360 (canWriteUnchecked): Likewise.
6361 (isFileUnchecked): Likewise.
6362 * java/io/natFileDescriptor.cc: Don't include cni.h.
6364 * java/lang/Thread.java (run__): Declare.
6365 * java/lang/natThread.cc (run__): New method, to avoid compiler
6367 (start): Use run__, not run_.
6369 * java/io/io-defs.h: Include cni.h and jvm.h.
6371 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6373 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6374 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6375 to natString.cc (with suitable renaming, inlines etc).
6376 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6377 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6378 * java/lang/String.h: Removed - now generated using gjavah.
6379 * java/lang/String.java: Re-written from scratch. Many native methods.
6380 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6381 * java/lang/natString.cc: Many functions re-written for "compact
6382 strings" representation, or native java.lang.String methods added.
6383 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6384 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6385 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6386 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6387 * include/cni.h: Add inline method.
6388 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6389 * include/javaprims.h: Moved some stuff frm String.h.
6390 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6391 * Makefile.am (nat_header): Added Character.h and String.h.
6392 (String.h): Add new rule.
6394 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6396 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6398 * posix-threads.cc: Include cni.h, jvm.h.
6399 * quick-threads.cc: Include cni.h, jvm.h.
6400 * nogc.cc: Include cni.h, not javaprims.h.
6401 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6402 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6403 include java-assert.h.
6404 * java/lang/natSystem.cc: Include cni.h. Don't include
6406 * java/lang/natRuntime.cc: Include cni.h. Don't include
6408 * prims.cc: Rearranged #include ordering. Don't include
6409 java-array.h or java-assert.h.
6410 * boehm.cc: Include config.h, cni.h.
6411 * exception.cc: Include config.h, cni.h.
6412 * include/jvm.h: Include java-assert.h.
6413 * include/cni.h: Include java/lang/Object.h. Don't include
6414 java-threads.h or java-array.h.
6416 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6418 * java/lang/Boolean.java: Rewritten.
6420 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6422 * java/lang/natFirstThread.cc (main_func): New typedef.
6423 (run): Use main_func, not JvPrivThreadStartFunc.
6424 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6426 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6428 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6431 Can't throw Java exceptions with C++ `throw':
6432 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6433 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6434 (setPriority): Likewise.
6438 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6439 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6441 Can't catch Java exceptions from C++:
6442 * java/lang/natThread.cc (finish_): New method.
6444 * java/lang/Thread.java (run_): Rewrote in Java.
6445 (finish_): New native method.
6447 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6449 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6451 * include/javaprims.h (java::io): Added Serializable.
6453 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6455 * java/util/EmptyStackException.java,
6456 java/util/NoSuchElementException.java: Rewritten.
6458 * java/util/ConcurrentModificationException.java,
6459 java/util/MissingResourceException.java,
6460 java/util/TooManyListenersException.java: Created.
6462 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6464 * include/cni.h (JvThrow): New function.
6465 * include/javaprims.h (_Jv_Throw): Declare.
6467 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6469 * java/util/Observable.java: Rewritten.
6471 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6473 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6474 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6475 Include NullPointerException.h.
6477 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6479 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6480 assignability checks. Don't bother using memcpy.
6482 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6484 * include/quick-threads.h (JvPrivThreadWait): New function.
6485 * include/no-threads.h (JvPrivThreadWait): New function.
6486 * include/posix-threads.h (JvPrivThreadWait): New function.
6487 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6489 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6491 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6492 offsets by size of type that is being copied.
6494 * java/lang/natThread.cc (start): Don't pass `object' argument to
6496 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6497 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6499 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6500 always pass thread as object.
6501 * include/quick-threads.h, include/posix-threads.h,
6502 include/no-threads.h (JvPrivThreadStart): Removed `object'
6505 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6507 * java/util/Dictionary.java: Rewritten.
6509 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6511 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6512 (JvPrivThreadDestroy): Likewise.
6514 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6516 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6518 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6520 * java/lang/natSystem.cc: Rewrote from scratch.
6521 * java/lang/System.java: Rewrote from scratch.
6522 * java/lang/Class.h (Class): Declare isAssignableFrom.
6523 * include/javaprims.h (java::lang): Added ArrayStoreException,
6524 IndexOutOfBoundsException.
6525 * Makefile.in: Rebuilt.
6526 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6527 IndexOutOfBoundsException.h.
6528 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6529 * include/jvm.h (_Jv_HashCode): New function.
6531 * java/lang/natThread.cc (suspend): Call checkAccess.
6533 * java/lang/Thread.java (setDaemon): Call checkAccess.
6535 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6537 * java/lang/Runtime.java: Rewrote from scratch.
6538 * java/lang/natRuntime.cc: Rewrote from scratch.
6540 * nogc.cc (JvPrivGCTotalMemory): New function.
6541 (JvPrivGCFreeMemory): Likewise.
6542 (total): New global.
6543 (JvPrivAllocObj): Increment total.
6544 (JvPrivAllocArray): Likewise.
6545 (JvPrivAllocBytes): Likewise.
6546 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6547 * boehm.cc (JvPrivGCTotalMemory): New function.
6548 (sum_blocks): Likewise.
6549 (JvPrivGCFreeMemory): Likewise.
6551 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6553 * include/javaprims.h (java::lang): Added FirstThread.
6554 * java/lang/natFirstThread.cc: New file.
6555 * java/lang/FirstThread.java: New file.
6556 * prims.cc (main_signature): Removed.
6557 (main_name): Removed.
6558 #include FirstThread.h.
6559 * Makefile.in: Rebuilt.
6560 * Makefile.am (TFRIEND): Removed.
6561 (java/lang/Thread.h): Likewise.
6562 (FTFRIEND): New macro.
6563 (java/lang/FirstThread.h): New target.
6564 (nat_files): Added natFirstThread.o.
6565 (nat_headers): Added FirstThread.h.
6566 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6567 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6569 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6573 * java/lang/natThread.cc (start): Synchronize the thread.
6574 (stop): Synchronize the thread.
6576 * java/lang/ThreadDeath.java: Rewrote from scratch.
6578 * Makefile.in: Rebuilt.
6579 * Makefile.am (TGFRIEND): New macro.
6580 (java/lang/ThreadGroup.h): New target.
6581 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6583 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6585 * nogc.cc: Include config.h.
6587 * java/lang/ThreadGroup.java: Rewrote from scratch.
6589 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6591 * java/lang/Thread.java (checkAccess): Only call in to security
6592 manager if it exists.
6593 (Thread): Don't check access when creating the first thread. Add
6594 this thread to the appropriate ThreadGroup.
6596 * java/lang/natThread.cc (run_): Call uncaughtException method on
6599 * java/lang/Runnable.java: Rewrote from scratch.
6600 * java/lang/Thread.java: Updated copyright comment to correct
6603 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6605 * java/util/Random.java: Rewritten.
6607 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6609 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6610 trailing 0 in array[].
6612 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6614 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6615 and RUNTESTFLAGS from AM_MAKEFLAGS.
6616 (SUBDIRS): Conditionally include testsuite.
6617 * Makefile.in: Rebuilt.
6619 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6621 * java/lang/Object.h: Include java-assert.h.
6623 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6625 * Makefile.am: Add testsuite directory.
6626 * configure.in: Build testsuite/Makefile.
6627 * Makefile.in, configure: Rebuilt.
6629 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6631 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6632 * include/jvm.h (_Jv_StartFirstThread): Declare.
6634 * include/javaprims.h (java::lang): Added Exception,
6637 * Makefile.in: Rebuilt.
6638 * Makefile.am (nat_headers): Added NullPointerException.h,
6639 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6640 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6641 (java/lang/Thread.h): New target.
6642 (TFRIEND): New macro
6644 * include/java-assert.h (JvFail): Use 0 and not NULL.
6646 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6647 instead of assuming we are a friend of Thread.
6648 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6649 instead of assuming we are a friend of Thread.
6651 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6653 * java/lang/natThread.cc: Rewrote from scratch.
6654 * java/lang/Thread.java: Rewrote from scratch.
6655 * prims.cc (JvRunMain): Use new Thread constructor.
6656 * include/javaprims.h (java::lang): Added InterruptedException.
6657 * Makefile.in: Rebuilt.
6658 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6659 * java/lang/Thread.h: Removed.
6660 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6661 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6663 * posix-threads.cc (JvPrivThreadJoin): Removed.
6664 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6665 (really_start): Don't notify join_cond.
6666 (JvPrivThreadStart): Added `data' argument.
6667 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6668 (JvPrivThreadJoin): Likewise.
6669 Use JvFail instead of sorry.
6670 (JvPrivThreadSuspend): Removed.
6671 (JvPrivThreadResume): Removed.
6672 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6673 (JvPrivThreadJoin): Likewise.
6674 (JvPrivThreadSuspend): Use JvFail.
6675 (JvPrivThreadResume): Likewise.
6676 (JvPrivThreadSuspend): Removed.
6677 (JvPrivThreadResume): Likewise.
6678 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6679 (JvPrivThread_t): Removed join_mutex, join_cond.
6680 Use JvFail instead of sorry.
6681 (JvPrivThreadSuspend): Removed.
6682 (JvPrivThreadResume): Likewise.
6684 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6686 * java/util/Observer.java: Rewritten
6687 * java/util/Enumeration.java: Rewritten
6689 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6691 * java/util/StringTokenizer.java: Rewritten
6692 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6693 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6694 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6696 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6698 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6701 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6702 Include java-assert.h.
6703 * include/java-assert.h: New file.
6704 * prims.cc (_Jv_Abort): New function.
6705 Include java-assert.h, not assert.h.
6706 (_Jv_MonitorExit): Use JvAssert.
6707 (resolveConstants): Likewise.
6708 (processClass): Likewise.
6709 (JvRunMain): Assert that method is found.
6711 * configure: Rebuilt.
6712 * configure.in: Check for test subdir.
6713 * Makefile.in: Rebuilt.
6714 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6716 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6717 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6719 * prims.cc (resolveConstants): Removed unused variables.
6720 (processClass): Likewise.
6722 * include/quick-threads.h (JvPrivThreadCurrent): Use
6724 * quick-threads.cc (destroy_data): New function.
6725 (JvPrivInitThreads): Create key.
6726 (JvPrivThreadKey): New global.
6727 (JvPrivThreadStart): Use coop_setspecific.
6729 * include/quick-threads.h, include/posix-threads.h,
6730 include/no-threads.h, no-threads.cc, quick-threads.cc,
6731 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6733 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6735 * include/no-threads.h (JvPrivThreadInitData): Don't set
6738 * include/quick-threads.h (JvPrivCondWait): coop function now
6740 (JvPrivThreadJoin): Likewise.
6742 * java/lang/Thread.h (Thread): Updated declaration of
6744 * include/quick-threads.h, include/posix-threads.h: Updated
6745 declaration of JvPrivThreadStart.
6746 * include/no-threads.h (JvPrivThreadStart): Changed definition
6748 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6749 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6750 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6752 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6754 * quick-threads.cc (qthrow): New function.
6755 (JvPrivInitThreads): New function.
6756 (started): New global.
6757 (JvPrivThreadStart): Call coop_start if required.
6758 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6759 (JvPrivThreadDestroy): Likewise.
6760 (JvPrivInitThreads): Removed.
6761 * include/posix-threads.h (JvPrivThreadCancel): Added error
6763 * java/lang/natThread.cc (stop_): Pass exception to
6766 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6768 * include/javaprims.h (java::lang): Added
6769 IllegalArgumentException, IllegalThreadStateException, Math,
6770 NullPointerException, ThreadDeath.
6771 (java::util): Added Enumeration.
6773 * Makefile.in: Rebuilt.
6774 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6776 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6778 (threadsv): Renamed from threads to avoid clash in C++ header.
6779 (groupsv): Likewise.
6780 * include/no-threads.h (JvPrivThreadStart): Removed.
6781 * no-threads.cc (JvPrivThreadStart): New function.
6782 * java/lang/Thread.java (Thread): New constructor for internal use.
6783 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6784 (Thread): Declare constructor.
6785 * prims.cc (JvRunMain): Create the initial Thread and
6787 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6788 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6789 Removed `daemon' argument.
6791 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6792 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6794 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6796 * Makefile.in: Rebuilt.
6797 * Makefile.am (INCLUDES): Include THREADINCS.
6799 * configure: Rebuilt.
6800 * configure.in: Recognize `qt' as a threads package.
6802 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6804 * java/util/Stack.java (pop): Null out topmost node for robustness.
6806 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6808 * java/util/Stack.java: Rewritten.
6809 * java/util/Vector.java (isEmpty): Simplified expression.
6811 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6813 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6814 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6816 * include/java-array.h (JvNewObjectArray): Created inline to
6819 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6822 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6824 * java/util/Vector.java: Rewritten.
6825 * java/io/Serializable.java: Created.
6827 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6829 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6830 Infinity is 1/0, not 1/1.
6832 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6834 * configure: Rebuilt.
6835 * configure.in: Removed duplicate AC_ARG_WITH.
6837 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6839 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6841 (_Jv_InitClass): Renamed from soft_initialise_class.
6842 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6843 (_Jv_CheckCast): Renamed from soft_checkcast.
6844 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6845 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6846 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6847 * include/cni.h (JvInitClass): New function.
6848 (_Jv_InitClass): Renamed from soft_initialise_class.
6850 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6852 * configure: Rebuilt.
6853 * configure.in (CXX): Don't set.
6854 * Makefile.in: Rebuilt.
6855 * Makefile.am (AM_CXXFLAGS): New macro.
6857 * Makefile.in: Rebuilt.
6858 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6859 nogc.o): New target.
6861 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6863 (mark_array): Likewise.
6865 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6867 * java/lang/Class.h (JvMethod): Removed some unused fields.
6868 (JvField.info): Removed unused idx union variant.
6870 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6872 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6875 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6877 * configure.in, configure (CXX): Add -fvtable-thunks.
6879 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6881 * java/lang/Object.java (finalize): Move first.
6882 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6883 (Object): Re-arrange order to match Object.java.
6885 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6887 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6888 * java/lang/natString.cc (hashChars): Likewise.
6890 * prims.cc (RuntimeClass): New macro.
6891 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6893 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6895 * Makefile.in: Rebuilt.
6896 * Makefile.am (AM_MAKEFLAGS): New macro.
6898 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6900 * nogc.cc: Include <javaprims.h>.
6902 * Makefile.in: Rebuilt.
6903 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6905 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6907 * exception.cc (terminate): Removed.
6908 (unexpected): Removed.
6910 * configure: Rebuilt.
6911 * configure.in: Handle case where target subdir is ".".
6913 * configure: Rebuilt.
6914 * configure.in: Compute COMPPATH based on --with-target-subdir
6915 option. Added --with-target-subdir and --with-cross-host. Use
6916 --with-cross-host to determine when a cross compiler is in use.
6918 * Makefile.in: Rebuilt.
6919 * Makefile.am (GJAVAH): Include COMPPATH.
6920 * configure: Rebuilt.
6921 * configure.in: Subst COMPPATH.
6923 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6925 * prims.cc (lockMutex): Removed.
6926 (unlockMutex): Likewise.
6927 (processClass): Lock the class using a JvSynchronize object.
6929 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6931 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6932 (gc_free_fixed): Removed.
6933 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6934 freeing old value of strhash.
6936 * exception.cc (_Jv_type_matcher): Cast first argument to
6939 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6941 * include/java-array.h (jstringArray): New type.
6942 * java/lang/natSystem.cc (setProperty): Removed.
6943 (initProperties): Directly call JvNewStringLatin1 for arguments.
6944 * java/util/natDate.cc: Include java/util/Date.h, not
6947 * java/io/FileDescriptor.java (available): No longer static.
6948 * java/lang/natDouble.cc (Double): Removed class definition.
6949 * include/javaprims.h (java::lang::Number): Declare.
6950 (java::lang::NumberFormatException): Likewise.
6951 (java::io::FilenameFilter): Likewise.
6952 (java::lang::Character): Likewise.
6953 (java::lang::Error): Likewise.
6954 (java::lang::SecurityManager): Likewise.
6955 (java::util::Vector): Likewise.
6956 (java::io::FileNotFoundException): Likewise.
6957 (java::io::IOException): Likewise.
6958 (java::lang::NativeLang): Likewise.
6959 (java::lang::UnsatisfiedLinkError): Likewise.
6960 (java::util::StringTokenizer): Likewise.
6961 (java::io::InputStream, java::io::OutputStream): Likewise.
6962 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6963 (java::util::Hashtable): Likewise.
6964 * Makefile.in: Rebuilt.
6965 * Makefile.am (nat_headers): Added java/lang/Double.h,
6966 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6967 (MOSTLYCLEANFILES): Added nat_headers.
6968 * include/jvm.h: Moved many defines, declarations, and functions
6969 to java/lang/Class.h.
6970 (struct JvSyncInfo): Moved to java/lang/Object.h.
6971 (UTF8_GET): Moved to java/lang/String.h.
6973 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6975 * java/io/io-defs.h: Don't include java-io.h.
6976 * include/java-io.h: Removed.
6977 * include/javaprims.h: Include java::io.
6979 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6981 * include/java-io.h (File): Removed
6982 (FileDescriptor): Likewise.
6984 * java/io/io-defs.h: Include java/io/File.h and
6985 java/io/FileDescriptor.h.
6987 * Makefile.in: Rebuilt.
6988 * Makefile.am (GJAVAH): New macro.
6989 (.class.h): New rule.
6990 (SUFFIXES): Added .h.
6991 (nat_headers): New macro.
6992 ($(nat_headers)): New target.
6993 (BUILT_SOURCES): Added nat_headers.
6995 * include/java-util.h: Removed.
6997 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6999 * include/java-io.h: Changed to avoid java-lang.h.
7000 * java/lang/natThread.cc: Include java/lang/Thread.h, not
7002 * java/lang/natSystem.cc: Include java/lang/System.h, not
7004 * java/lang/natString.cc: Include java/lang/String.h, not
7006 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7008 * java/lang/natClass.cc: Include java/lang/Class.h, not
7010 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7012 * java/lang/natObject.cc: Include java/lang/Object.h, not
7014 * exception.cc: Don't include java-lang.h.
7015 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7016 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7017 * nogc.cc: Don't include java-lang.h.
7018 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7019 * prims.cc (processClass): Don't use `init_type'; just cast to
7021 Include java/lang/Class.h and jvm.h, not java-lang.h.
7022 (JvAllocObject): Wrote single-argument version.
7023 (PrimClass): Inherit from Class.
7024 (initPrimClass): Removed.
7025 * include/java-lang.h: Removed.
7026 * include/jvm.h: Declare struct _dispatchTable.
7027 * include/cni.h: Don't declare _Jv_MonitorEnter,
7028 _Jv_MonitorExit, struct _dispatchTable.
7029 * include/javaprims.h: Moved all typedefs here, from cni.h.
7030 * java/lang/Class.h: New file.
7031 * include/java-array.h: New file.
7032 * java/lang/Object.h: New file.
7034 * prims.cc (classFromSig): Now static.
7036 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7038 * include/cni.h: Don't mention soft_new.
7039 * include/java-lang.h (Object): Don't mention soft_new. Mention
7040 _Jv_NewPrimArray, not newPrimArray.
7041 * prims.cc (soft_new): Removed.
7042 (_Jv_NewArray): Renamed from soft_newarray.
7043 (soft_anewarray): Use JvNewObjectArray.
7044 (newArray): Likewise.
7045 (newRefArray): Removed.
7046 (_Jv_NewPrimArray): Renamed from newPrimArray.
7047 (equalUtf8Consts): Now static.
7048 (soft_instanceof): Removed.
7049 * java/lang/natDouble.cc (doubleToString): Now static.
7051 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7052 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7055 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7057 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7059 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7061 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7062 (JvPrivMutexUnlock): Likewise.
7063 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7064 Return value now jint.
7065 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7068 * Makefile.in: Rebuilt.
7069 * Makefile.am: Don't allow `jV' names.
7070 (maintainer-check): Depend on libjava.a.
7071 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7073 * Makefile.in: Rebuilt.
7074 * Makefile.am (NM): New macro.
7075 (maintainer-check): New target.
7077 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7079 * configure: Rebuilt.
7080 * configure.in: Use --enable-threads, not --enable-gc. Fix
7081 documentation for --enable-threads. Changed option to work like
7082 identical option in gcc/configure.
7084 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7086 * boehm.cc (mark_array): Use JvGetArrayLength.
7088 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7090 * exception.cc: New file (mostly written by Andrew MacLeod),
7091 exception handling support.
7092 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7093 Remove -fexceptions - it is now the default.
7095 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7096 (JvAllocObject): Renamed to _Jv_AllocObject.
7097 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7098 (loadClass): Renamed to _Jv_FindClass.
7099 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7100 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7101 * include/java-lang.h (JvGetArrayLength): New CNI function.
7102 * include/jvm.h (_Jv_FindClass): Added declaration.
7104 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7106 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7108 * java/lang/natClass.cc (getName): Add implementation.
7109 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7111 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7113 * Makefile.in: Rebuilt.
7114 * Makefile.am (.class.o): Added -fexceptions.
7116 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7118 * configure: Rebuilt.
7119 * configure.in: Don't check for __nanosleep.
7120 * posix-threads.cc (nanosleep): Never define.
7122 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7124 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7127 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7129 * java/lang/natThread.cc (enumerate): Uncommented.
7130 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7131 (interrupt): Call it.
7133 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7135 * configure: Rebuilt.
7136 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7138 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7140 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7141 * include/java-lang.h (Thread): Added `interrupted_' method.
7142 * java/lang/Thread.java (interrupted_): New method.
7143 * java/lang/natThread.cc (join): Possibly throw interrupted
7144 exception after join finishes.
7145 (interrupted_): New method.
7146 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7148 (JvPrivThreadJoin): New function.
7149 (really_start): Notify all threads waiting for this thread.
7150 (struct starter): Added `data' member.
7151 (JvPrivThreadStart): Set it.
7152 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7154 (JvPrivThreadJoin): No longer inline.
7155 (JvPrivThreadInterrupt): New function.
7157 * include/no-threads.h (JvPrivThreadSleep): Removed.
7158 * posix-threads.cc (JvPrivThreadSleep): Removed.
7160 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7162 * configure: Rebuilt.
7163 * configure.in (THREADOBJS): Initialize to no-threads.o in
7165 * posix-threads.cc (key): New global.
7166 (JvPrivInitThreads): New function.
7167 (really_start): Set thread-specific data to point to object.
7168 (JvPrivThreadStart): Added `daemon' argument.
7169 (JvPrivThreadSleep): Added `data' argument.
7170 * include/posix-threads.h (JvPrivInitThreads): Removed
7172 (JvPrivThreadCurrent): New function.
7173 * include/no-threads.h (JvPrivThreadInitData): Initialize
7174 JvPrivOnlyThread. Added `thread' argument.
7175 (JvPrivThreadCurrent): New function.
7176 (JvPrivThreadStart): Added `daemon' argument.
7177 * no-threads.cc: New file.
7178 * java/lang/natThread.cc (init_data): New function.
7180 (start): Set `alive' member.
7181 (stop_): Clear `alive' member.
7182 (destroy): Likewise.
7183 (currentThread): Implemented.
7184 (start): Pass `daemon' argument to JvPrivThreadStart.
7186 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7187 (Thread): Added `init_data' method.
7188 * java/lang/Thread.java (alive, data): New instance variables.
7189 (init_data): New private method.
7190 (isAlive): No longer native.
7192 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7194 * include/java-lang.h (JvRunMain): Declare.
7195 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7196 * prims.cc (JvRunMain): New function.
7197 (main_signature, main_name): New globals.
7199 * boehm.cc (mark_array): Use `elements' function and not
7200 operator[] on jarray.
7202 * posix-threads.cc: Include <config.h>. Define nanosleep if
7205 * configure: Rebuilt.
7206 * configure.in: Check for _nanosleep.
7208 * configure: Rebuilt.
7209 * configure.in: Check for pthread_mutexattr_settype.
7211 * include/cni.h (class JvSynchronize): New class.
7212 * java/lang/Thread.java (sleep): Throws InterruptedException.
7213 (join): Throws InterruptedException.
7214 (resume): Not native.
7215 (resume_): New method.
7216 (start): Now synchronized.
7217 (stop_): New method.
7218 (Thread): Synchronize when accessing threadNumber.
7220 * java/lang/natThread.cc (throwException): New macro.
7221 (sleep): Throw InterruptedException.
7224 * include/java-lang.h (Runtime): Added interrupted().
7226 * boehm.cc (call_finalizer): Correctly initialize jobj.
7227 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7229 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7232 * configure: Rebuilt.
7233 * configure.in: Added support for --disable-threads.
7234 * include/no-threads.h: New file.
7236 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7238 * Makefile.in: Rebuilt.
7239 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7240 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7241 (libjava_a_LIBADD): Added THREADOBJS.
7242 * configure: Rebuilt.
7243 * configure.in: Added --with-threads option.
7244 * posix-threads.cc: New file.
7245 * include/posix-threads.h: New file.
7246 * include/java-lang.h (Object): Added static member sync_mutex,
7247 member sync_info, method init_mutex.
7248 (struct JvSyncInfo): New struct.
7249 Include "java-threads.h".
7250 * prims.cc (soft_monitorenter): Wrote.
7251 (soft_monitorexit): Likewise.
7252 * java/lang/natObject.cc (init_mutex): New method.
7256 (sync_mutex): Define.
7257 Include "java-threads.h".
7259 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7261 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7262 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7264 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7266 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7267 Added extern "Java" in places to tell G++ Object is a "Java" type.
7268 Other minor renaming and fixes.
7269 * include/java-io.h (FileDescriptor): Add friend class declarations.
7270 G++ no longer allows non-Java types in method parameters and results
7271 of Java classes. Converted most offending methods to friends.
7272 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7273 * java/lang/natSystem.cc (setProperty): Make friend.
7274 * java/lang/natString.cc, include/java-lang.h (String): Rename
7275 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7276 * include/java-lang.h (JArray): Remove getData and eoprator[].
7277 Add elements friend function instead.
7278 * java/lang/natSystem.cc (arraycopy): Use elements function.
7279 * java/io/natFileDescriptor.cc (read, write): Likewise.
7280 * include/java-lang.h (Object): Remove unused make method.
7281 (System::setProperty(char*,char*)): Turn into friend function.
7282 (Class): Rename newObject by JvAllocObject.
7283 * prims.cc: Update to use JvAllocObject, and elements.
7285 * java/lang/natDouble.cc: Fix double -> jdouble.
7287 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7289 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7291 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7293 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7294 * include/java-lang.h (Runtime): finalize_on_exit and
7295 runFinalizersOnExit now static.
7296 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7298 (finalize_on_exit): Now static.
7300 * boehm.cc (mark_obj): Get class using getClass() method on
7302 (_dispatchTable): Removed.
7304 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7306 * java/io/natFileDescriptor.cc (open_read): Only call open if
7308 (open_write): Likewise.
7310 * Makefile.in: Rebuilt.
7311 * Makefile.am ($(nat_files)): Depend on config.h.
7313 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7315 * prims.cc (ObjectClass): Now a macro; updated for new class name
7317 (StringClass): Likewise.
7318 (ClassClass): Likewise.
7320 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7322 * java/io/natFileDescriptor.cc (available): Do nothing unless
7323 HAVE_SELECT defined.
7324 * java/util/natDate.cc (setTime): Conditional on
7326 (toString): Conditional on HAVE_TIME.
7327 * aclocal.m4, configure: Rebuilt.
7328 * acinclude.m4: New file.
7329 * configure.in: Don't actually call AM_EXEEXT. Call
7330 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7331 --with-target-subdir option. Check for select and open
7334 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7336 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7337 (call_finalizer): Likewise.
7338 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7339 * prims.cc (newObject): Pass actual method pointer to
7340 JvPrivRegisterFinalizer.
7341 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7342 (JvPrivRegisterFinalizer): Changed interface.
7344 * Makefile.in: Rebuilt.
7345 * Makefile.am (MOSTLYCLEANFILES): New macro.
7346 (CLEANFILES): Removed javao_files.
7348 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7350 * nogc.cc: New file.
7351 * Makefile.in: Rebuilt.
7352 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7353 (EXTRA_libjava_a_SOURCES): New macro.
7354 (libjava_a_SOURCES): Removed boehm.cc.
7355 (libjava_a_DEPENDENCIES): Added GCOBJS.
7356 (libjava_a_LIBADD): Likewise.
7357 * configure: Rebuilt.
7358 * configure.in: Added code for --enable-gc=TYPE.
7360 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7362 * boehm.cc (mark_array): Don't further dereference pointer from
7365 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7366 * Makefile.in: Rebuilt.
7367 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7368 one for boehm-gc build directory.
7370 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7372 * include/java-lang.h (finalize_on_exit): New instance variable in
7373 java::lang::Runtime.
7374 (runFinalizersOnExit): New method.
7375 * java/lang/Runtime.java (finalize_on_exit): New instance
7377 (runAllFinalizers_): New private method.
7378 (runFinalizersOnExit): New method.
7379 * boehm.cc (JvPrivRunFinalizers): New function.
7380 (JvPrivRunAllFinalizers): Likewise.
7381 (JvPrivRunGC): Likewise.
7382 * java/lang/natRuntime.cc: Include "jvm.h".
7383 (gc): Call JvPrivRunGC.
7384 (runFinalization): Call JvPrivRunFinalizers.
7385 (runFinalizersOnExit): New method.
7386 (exit_): Call JvPrivRunAllFinalizers if required.
7387 * include/jvm.h: Declare JvPrivRunFinalizers,
7388 JvPrivRunAllFinalizers, JvPrivRunGC.
7390 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7392 * boehm.cc (JvPrivRegisterFinalizer): New function.
7393 (call_finalizer): Likewise.
7394 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7395 * prims.cc (finalize_name): New global.
7396 (newObject): Just call other newObject.
7397 (newObject): Register finalizer if it exists.
7399 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7401 * prims.cc (gc_malloc): Removed.
7402 (makeUtf8Const): Use JvPrivAllocBytes.
7403 (lookupArray): Likewise.
7404 (newPrimArray): Likewise.
7405 (JvNewObjectArray): Use JvPrivAllocArray.
7406 (newObject): Use JvPrivAllocObj.
7407 (newObject): Likewise.
7408 Changed Method -> JvMethod everywhere.
7409 Changed Field -> JvField everywhere.
7410 * include/java-lang.h (Object): Changed type of `fields' to
7412 (jmethodID, jfieldID): New typedefs.
7413 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7415 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7417 (METHOD_NATIVECODE): Moved from java-lang.h.
7418 (class JvField): New class.
7419 (JvGetFirstInstanceField): New function.
7420 (JvFieldIsRef): Likewise.
7421 (JvGetObjectField): Likewise.
7422 (JvNumInstanceFields): Likewise.
7424 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7426 * boehm.cc: New file.
7427 * Makefile.in: Rebuilt.
7428 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7429 (INCLUDES): Added -I options to find boehm-gc files.
7431 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7433 * configure: Rebuilt.
7434 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7436 * Makefile.in: Rebuilt.
7437 * Makefile.am (nat_files): New macro.
7438 (libjava_a_DEPENDENCIES): Use it.
7439 (libjava_a_LIBADD): Likewise.
7440 ($(nat_files)): New static pattern rule.
7441 (class_files): Run separate find to find .class files.
7442 (javao_files): Compute based on class_files.
7443 (BUILT_SOURCES): New macro.
7445 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7447 * Makefile.am (java_files): New macro.
7448 (class_files): Likewise.
7449 (javao_files): Likewise.
7450 (libjava_a_DEPENDENCIES): Include $(javao_files).
7451 (libjava_a_LIBADD): Likewise.
7452 (classes.stamp): Depend on $(java_files); only recompile changed
7455 (CLEANFILES): Don't run find; use macros. Don't mention
7457 (.class.o): New target.
7458 (compiled.stamp): Removed.
7460 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7462 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7463 LineNumberReader}>java: Newly-implemented standard classes.
7465 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7467 * Makefile.in: Rebuilt.
7468 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7470 * Makefile.in: Rebuilt.
7471 * Makefile.am (hack): New macro.
7472 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7474 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7476 * include/config.h.in: New file.
7477 * include/config.h: Removed.
7478 * acconfig.h: New file.
7479 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7480 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7481 libjava_a_LIBADD): New macros.
7482 (INCLUDES): New macro.
7485 (SUFFIXES): Removed.
7487 (libjava.a): Removed.
7489 * configure: Rebuilt.
7490 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7491 Look for headers and functions we require. Create
7494 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7496 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7497 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7498 soft_lookupinterfacemethod): New functions.
7499 (PrimClass): Actually initialize the primitive classes.
7500 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7502 * include/java-util.h: Removed java::util definition.
7503 * include/cni.h: Moved java::util here and added Properties.
7504 Added more function prototypes.
7505 * include/java-lang.h: Added mroe methods and friend declarations.
7506 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7507 * include/jvm.h (strLengthUtf8): Add declaration.
7509 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7511 * java/lang/{Byte,Short,Void}.java: New classes.
7512 * java/lang/Character.java (isJavaIdentifierStart,
7513 JavaIdentifierPart): New static methods.
7514 * java/lang/Number.java (byteValue, shortValue): New methods.
7516 * java/lang/String.java (intern, hashCode): Make native.
7517 * java/lang/natString.cc: New file. Handle the string pool.
7518 * Makefile.am: Build natString.o. Use CXXFLAGS.
7520 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7521 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7522 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7523 * java/lang/System.java (setProperty): New private method.
7524 (initProperties): Take argument, and make native.
7525 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7526 (currentTimeMillis): Make more robust.
7528 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7529 * java/io/UnsupportedEncodingException.java: New exception class.
7531 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7532 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7534 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7536 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7537 * prims.cc: Added bunch of stuff.
7538 * include/cni.h: Added various definitions.
7539 * include/java-lang.h: Added Method, various friends, some macros.
7541 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7542 * java/lang/System.java (arraycopy): Make native.
7544 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7546 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7547 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7548 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7549 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7551 * java/lang/Runtime.java: Declare methods as native instead of
7553 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7554 * java/lang/System.java: Comment out some stuff, for now.
7555 * java/lang/Thread.java: Re-write. Use native methods.
7556 * java/lang/NativeLang.java: Remove most of it.
7558 * java/util/natDate.cc: Native (C++) methods for Date.
7559 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7560 * java/util/Date.java: Complete re-write.
7562 * java/io/io-defs.h: New header file.
7563 * java/io/FileDescriptor.java: Add a bunch of private methods,
7564 mostly moved from NativeIO.java and natNativeIO.cc.
7565 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7566 * java/io/File.java: Use new code.
7567 * java/io/{FileInputStream.java.FileOutputStream.java,
7568 RandomAccessFile.java}: Use new private FileDescriptor methods.
7569 * java/io/NativeIO.java: Removed, no longer used.
7571 * java/io/StreamTokenizer.java (numericChars): Make char array.
7573 * include/*.h: Various header files used by the C++ native code.
7575 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7576 New autoconf+automake-based setup.
7577 * prims.cc: New file for Java "primitives".