1 2000-01-28 Tom Tromey <tromey@cygnus.com>
3 * Makefile.in: Rebuilt.
4 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6 2000-01-26 Tom Tromey <tromey@cygnus.com>
8 * gcj/method.h (JvNumMethods): Moved from Class.h.
9 (JvGetFirstMethod): Likewise.
10 * java/lang/Class.h (Object): Updated decl of
11 _Jv_JNI_ToReflectedField.
12 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
13 * Makefile.in: Rebuilt.
14 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
15 argument of _Jv_JNI_ToReflectedField.
16 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
18 (java/lang/reflect/Method.h): Likewise.
19 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
22 (struct JNINativeInterface): Correctly declare remaining entries.
23 * jni.cc: Include Class.h, ClassLoader.h.
24 (_Jv_JNI_FindClass): New function.
25 (_Jv_JNI_DefineClass): New function.
26 (_Jv_JNI_conversion_call): New function.
27 (_Jv_JNI_FindClass): Use current class loader to find class.
28 (_Jv_JNI_ExceptionCheck): New function.
29 (_Jv_JNI_FromReflectedField): Now static.
30 (MethodClass): New define.
31 (_Jv_JNI_FromReflectedMethod): New function.
32 (_Jv_JNI_ToReflectedMethod): Likewise.
34 (_Jv_JNI_IsAssignableFrom): Renamed.
35 (_Jv_JNI_GetStringRegion): New function.
36 Include StringIndexOutOfBoundsException.h.
37 (_Jv_JNI_GetStringUTFRegion): New function.
38 (_Jv_JNIFunctions): Updated for new functions.
39 (_Jv_JNI_GetPrimitiveArrayCritical): New function
40 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
41 (_Jv_JNI_GetStringCritical): New function.
42 (_Jv_JNI_ReleaseStringCritical): Likewise.
43 (get_throwable): Removed.
44 (GCJ_JV_JNIENV_FRIEND): Removed.
45 (__GCJ_JNI_IMPL__): Define.
48 * resolve.cc (get_ffi_type_from_signature): Handle case where
51 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
53 * interpret.cc (run): Don't call println.
54 Don't include PrintStream.h.
56 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
57 nameIndex. Use "jint" as type for boffset.
58 * java/lang/Class.h (struct _Jv_Method): Made accflags a
60 (Class): Likewise. Also changed type of method_count,
61 vtable_method_count, size_in_bytes, field_count,
62 static_field_count, interface_count.
63 * gcj/array.h (__JArray): Made `length' a const jsize, not an
66 2000-01-21 Tom Tromey <tromey@cygnus.com>
68 * java/lang/reflect/natConstructor.cc (newInstance): Use
70 * include/jvm.h: Declare _Jv_CallAnyMethodA.
71 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
72 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
75 (invoke): Use _Jv_CallAnyMethodA.
77 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
78 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
80 (struct _Jv_Method): Added getNextMethod method.
81 (JvNumMethods): New function.
82 (JvGetFirstMethod): Likewise.
83 * gcj/field.h (JvGetFirstStaticField): New function.
84 (JvNumStaticFields): Likewise.
85 (getNextField): Renamed from getNextInstanceField.
86 (struct _Jv_Field): New method getClass.
87 * jni.cc: Wrote many new functions.
88 * include/jni.h (JNI_TRUE): Define.
89 (JNI_FALSE): Likewise.
90 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
91 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
92 jcharArray, jfloatArray, jdoubleArray): New typedefs.
93 (jfieldID, jmethodID): Likewise.
94 (JNI_COMMIT, JNI_ABORT): New defines.
95 (JNINativeMethod): New struct.
96 (struct JNINativeInterface): Correctly declared more entries.
97 (class _Jv_JNIEnv): Added `ex' member.
98 (JNI_VERSION_1_1): New define.
99 (JNI_VERSION_1_2): Likewise.
101 * boehm.cc (_Jv_MarkObj): Use getNextField, not
102 getNextInstanceField.
104 2000-01-20 Tom Tromey <tromey@cygnus.com>
106 * resolve.cc (StringClass): Removed.
107 * defineclass.cc (StringClass): Removed.
109 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
113 2000-01-19 Tom Tromey <tromey@cygnus.com>
115 * interpret.cc (PC_REGISTER_ASM): Removed.
117 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
120 * All files: Updated copyright to reflect Cygnus purchase.
122 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
124 * configure: Rebuilt.
125 * configure.in: Recognize --disable-interpreter.
127 2000-01-18 Andrew Haley <aph@cygnus.com>
129 * name-finder.cc (lookup): Check for dladdr function.
130 acconfig.h (HAVE_DLADDR): Add.
131 configure.in: Check for HAVE_DLADDR
133 include/config.h.in: Rebuilt.
135 2000-01-17 Andrew Haley <aph@cygnus.com>
137 * prims.cc (_Jv_RunMain): Set the name of this executable.
139 2000-01-17 Tom Tromey <tromey@cygnus.com>
141 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
142 when backtrace can't be computed.
144 * configure: Rebuilt.
145 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
147 * java/lang/Runtime.java (loadLibraryInternal): Declare.
148 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
149 (_Jv_FindClassInCache): Likewise.
150 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
151 (findSystemClass): Try to load class from compiled module.
153 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
154 (loadLibrary): Likewise.
155 (lt_preloaded_symbols): Define.
156 (loadLibraryInternal): New method.
157 * include/config.h.in: Rebuilt.
158 * acconfig.h (USE_LTDL): Added.
159 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
160 (INCLUDES): Added $(INCLTDL).
161 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
162 (libgcj_la_LIBADD): Likewise.
163 * aclocal.m4, configure: Rebuilt.
164 * configure.in: Added libltdl support.
166 2000-01-15 Tom Tromey <tromey@cygnus.com>
168 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
170 2000-01-14 Andrew Haley <aph@cygnus.com>
172 * java/lang/natThrowable.cc: New file.
174 * java/lang/Throwable.java (fillInStackTrace): Make native.
175 (printStackTrace): Call native method to do this.
176 (Throwable): Call fillInStackTrace.
177 (stackTrace): New variable.
179 * include/jvm.h: Add _Jv_ThisExecutable functions.
181 * prims.cc: (_Jv_execName): New variable.
182 (catch_segv): Call fillInStackTrace.
184 (_Jv_ThisExecutable): New functions.
185 (JvRunMain): Set the name of this executable.
187 * Makefile.am: Add java/lang/natThrowable.cc.
189 * Makefile.in: Rebuilt.
191 * acconfig.h: Add HAVE_PROC_SELF_EXE.
193 * configure.in: Force link with __frame_state_for in
194 FORCELIBGCCSPEC. Add new checks for backtrace.
195 * include/config.h.in: Rebuilt.
197 * name-finder.cc: New file.
198 * include/name-finder.h: New file.
200 2000-01-16 Anthony Green <green@cygnus.com>
202 * java/lang/StringBuffer.java (StringBuffer): Don't special case
205 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
207 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
209 2000-01-13 Tom Tromey <tromey@cygnus.com>
211 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
212 not system loader, as initiating loader.
214 2000-01-11 Tom Tromey <tromey@cygnus.com>
216 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
217 HP/UX. From David Scott Urban.
219 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
221 * java/lang/natMath.cc (pow): Cast args to `double', not
224 (IEEEremainder): Likewise.
225 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
226 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
228 2000-01-09 Anthony Green <green@cygnus.com>
230 * java/lang/natString.cc (init): Test for overflow condition
231 during out of bounds check.
232 (getChars): Throw StringIndexOutOfBoundsException, not
233 ArrayIndexOutOfBoundsException.
235 (regionMatches): Obey case option during string comparison.
237 * configure.host (ligcj_interpreter): New variable. Enable
238 interpreter by default on IA-32.
239 * configure.in: Examine libgcj_interpreter.
240 * configure: Rebuilt.
242 2000-01-07 Tom Tromey <tromey@cygnus.com>
244 * mauve-libgcj: Don't disable ClassTest.
246 * java/lang/natClass.cc (getClasses): Wrote.
248 2000-01-06 Tom Tromey <tromey@cygnus.com>
250 * java/lang/natClass.cc (_getConstructors): Correctly check
251 whether method name is the init name.
252 (getMethod): Look at accflags on method in `klass', not `this'.
254 2000-01-05 Tom Tromey <tromey@cygnus.com>
256 * java/lang/natClass.cc (getMethod): Compute offset relative to
257 `klass's methods table, not `this's table.
259 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
260 In unwrapping/widening case, check whether `k' is null, not
261 whether it is primitive. Initialize `num' from `argelts', not
262 `paramelts'. Correct create and pass arguments to ffi_call.
263 Don't let presence of `this' argument affect index used to look in
265 (COPY): Set appropriate element in `values' vector.
267 * java/lang/natClass.cc: Include <gcj/method.h>.
269 * java/lang/Class.h (_getMethods): Correctly declare as private,
272 * java/lang/Class.h (_getMethods): Declare.
273 * java/lang/Class.java (_getMethods): Declare.
274 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
275 (getDeclaredClasses): Always return empty array.
276 (_getMethods): New method.
278 (getDeclaredMethod): Return `rmethod'.
279 (finit_name): New global.
280 (getDeclaredMethods): Check for finit_name.
281 (_getMethods): Likewise.
282 (getMethod): Only return public methods.
284 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
285 jboolean and select correct ffi type on that basis.
286 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
287 Constructor call always has `void' return type.
289 2000-01-04 Tom Tromey <tromey@cygnus.com>
291 * java/lang/Class.h (getSignature): Updated.
292 * java/lang/Class.java (getSignature): Updated.
293 * java/lang/natClass.cc (getSignature): Added `is_constructor'
295 (getConstructor): Ensure constructor is public.
296 (_getConstructors): Check for public-ness of constructor when
297 `declared' is false, not when it is true.
299 2000-01-04 Warren Levy <warrenl@cygnus.com>
301 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
303 (receive): Set the sender's address in the DatagramPacket.
305 2000-01-04 Tom Tromey <tromey@cygnus.com>
307 * java/lang/reflect/natConstructor.cc (newInstance): Pass
308 declaring class as return_type argument to
309 _Jv_CallNonvirtualMethodA.
310 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
311 constructor case, create object and use it as `this' argument.
312 * java/lang/Class.h (_getConstructors): Declare.
313 (_getFields): Declare.
314 * java/lang/Class.java (getConstructors): Wrote.
315 (_getConstructors): New native method.
316 (getDeclaredConstructors): Wrote.
317 (_getFields): Declare new native method.
318 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
320 (getMethod): Work correctly when class is primitive.
321 (getDeclaredMethods): Likewise. Compute offset using `method',
323 (getDeclaredMethod): Likewise.
324 (getConstructor): Wrote.
325 (ConstructorClass): New define.
326 (getDeclaredConstructor): Wrote.
327 (_getConstructors): New method.
328 (_getFields): New method.
331 * Makefile.in: Rebuilt.
332 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
334 * prims.cc: Remove `#pragma implementation'.
335 * gcj/array.h: Remove `#pragma interface'.
337 * prims.cc (_Jv_equaln): New function.
338 * java/lang/Class.java (getSignature): Declare.
339 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
340 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
342 (getSignature): New method.
343 (getDeclaredMethod): Wrote.
345 Include StringBuffer.h.
346 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
347 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
349 (getSignature): Declare.
350 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
351 (_Jv_equaln): Declare.
352 (_Jv_CallNonvirtualMethodA): Declare.
353 * Makefile.in: Rebuilt.
354 * Makefile.am (nat_source_files): Added natConstructor.cc.
355 (java/lang/reflect/Constructor.h): New target.
356 * java/lang/reflect/natConstructor.cc: New file.
357 * java/lang/reflect/Constructor.java (newInstance): Now native.
358 (declaringClass): Renamed from decl_class.
359 (offset): Renamed from index.
360 (getType): New native method.
361 (getModifiers): Now native.
362 (getParameterTypes): Call getType if required.
363 (hashCode): Include hash code from declaring class.
364 (modifiers): Removed.
365 (toString): Call getType if required.
366 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
367 * java/lang/reflect/natMethod.cc (hack_call): New method.
368 Removed `#if 0' around FFI code.
369 Include <gnu/gcj/RawData.h>.
370 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
371 IllegalArgumentException when argument object and class disagree.
372 (_Jv_GetTypesFromSignature): New function.
374 (ObjectClass): New define.
375 (_Jv_CallNonvirtualMethodA): New function.
376 * java/lang/reflect/Method.java (hack_trampoline): New method.
377 (hack_call): New native method.
379 1999-12-21 Per Bothner <per@bothner.com>
381 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
382 offset in new Method.
384 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
386 * java/lang/natObject.cc (notify): Throw message with
387 IllegalMonitorStateException.
390 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
391 (isInterrupted_): New function, which does clear interrupt_flag.
392 (interrupt): Use `isInterrupted_'.
393 * java/lang/natThread.cc (interrupt): Add comment.
394 (join): Set `prev' in joiner loop.
395 Change various calls to `isInterrupted' to use `isInterrupted_'.
396 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
397 on linux. Set result to 0 on an interrupt. Test interrupted status
398 of java Thread object directly.
399 FLAG_INTERRUPTED: removed.
400 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
401 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
402 (_Jv_InitThreads): Don't block SIGINT.
403 (_Jv_ThreadWait): Don't configure SIGINT handler.
405 1999-12-21 Tom Tromey <tromey@cygnus.com>
407 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
409 1999-12-20 Tom Tromey <tromey@cygnus.com>
411 * java/lang/reflect/Modifier.java (STRICT): New constant.
412 (isStrict): New method.
413 (toString): Added `strict'.
415 1999-12-23 Anthony Green <green@cygnus.com>
417 * configure: Rebuilt.
418 * configure.in (LIBDATASTARTSPEC): Force data_start in with
421 1999-12-19 Anthony Green <green@cygnus.com>
423 * libgcjdata.c: New file.
424 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
425 * configure: Rebuilt.
426 * configure.in (LIBDATASTARTSPEC): Force data with a known name
428 * Makefile.in: Rebuilt.
429 * Makefile.am: Build libgcjdata.a.
431 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
432 * configure: Rebuilt.
433 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
436 1999-12-17 Tom Tromey <tromey@cygnus.com>
438 * java/lang/reflect/Method.java (toString): Call getType if
439 required. Partial fix for PR libgcj/111. From Per Bothner.
441 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
443 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
445 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
446 null String constructor parameter.
447 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
448 for exception messages.
449 BooleanClass: declare.
450 (setOption): Use BooleanClass instead of Class.forName() for
452 (bind): Cast 4th parameter of setsockopt to `char *' for
453 compatibility with older Solaris headers.
454 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
455 sprintf calls for exception messages.
456 BooleanClass, IntegerClass: declare.
457 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
460 1999-12-15 Tom Tromey <tromey@cygnus.com>
462 * java/lang/natSystem.cc (init_properties): Don't set user.name or
463 user.home if NO_GETUID defined. Only set user.dir if getcwd
466 * include/config.h.in: Rebuilt.
467 * acconfig.h (NO_GETUID): New define.
468 * configure.in: Rebuilt.
469 * configure.in: Define NO_GETUID in cross case. Check for getcwd
472 1999-12-08 Tom Tromey <tromey@cygnus.com>
474 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
475 where no recursive mutexes exist. Fixes PR libgcj/117.
477 1999-12-05 Anthony Green <green@cygnus.com>
479 * include/jvm.h: Declare many functions with
480 __attribute__((__malloc__)).
481 * gcj/javaprims.h: Ditto.
483 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
485 * THANKS: Giving credit where credit is due.
487 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
489 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
491 * java/lang/natString.cc (equalsIgnoreCase): return false if
492 anotherString is null.
493 * java/lang/Boolean.java (valueOf): return FALSE if argument is
496 1999-11-30 Tom Tromey <tromey@cygnus.com>
498 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
499 mutex to initialize. Initialize `count' if required.
502 1999-11-27 Per Bothner <per@bothner.com>
504 * exception.cc: Remove prototype declarations for malloc and free.
505 These clash with recent versions of glibc, which specifies `throws ()'
506 when __cplusplus is defined. Instead, #include <stdlib.h>.
508 1999-11-24 Tom Tromey <tromey@cygnus.com>
510 * prims.cc (_Jv_NewObjectArray): Use
511 _Jv_GetArrayElementFromElementType.
512 (_Jv_NewPrimArray): Likewise.
513 * java/lang/natObject.cc (clone): Use
514 _Jv_GetArrayElementFromElementType instead of sizeof.
515 * java/lang/natSystem.cc (arraycopy): Use
516 _Jv_GetArrayElementFromElementType.
517 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
520 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
522 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
523 Exception messages. PR java.net/57.
524 (bind): set SO_REUSEADDR before bind.
525 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
526 overruns. PR java.net/57.
528 1999-11-19 Tom Tromey <tromey@cygnus.com>
530 * Makefile.am (DIVIDESPEC): Removed.
531 (EXCEPTIONSPEC): Removed.
533 1999-11-19 Andrew Haley <aph@cygnus.com>
535 * Makefile.am (JCFLAGS): Add -L$(here)
537 * Makefile.in: Rebuild.
539 1999-11-18 Tom Tromey <tromey@cygnus.com>
541 * java/lang/natDouble.cc: Include <config.h>.
543 * include/config.h.in: Rebuilt.
544 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
545 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
547 * configure: Rebuilt.
548 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
549 requested by configure.host. Don't put `-D' option into
550 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
552 * configure: Rebuilt.
553 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
556 1999-11-18 Andrew Haley <aph@cygnus.com>
558 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
559 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
561 * Makefile.in: Rebuild
562 * acconfig.h: remove SJLJ_EXCEPTIONS
563 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
564 Do not AC_DEFINE SJLJ_EXCEPTIONS.
565 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
566 * gcj/Makefile.in, include/Makefile.in: rebuild.
567 * include/config.h.in: remove SJLJ_EXCEPTIONS.
569 1999-11-18 Andrew Haley <aph@cygnus.com>
571 * gij.cc (main): Rename label to prevent conflict.
573 * exception.cc (_Jv_type_matcher): Don't check the table if we're
574 using setjmp/longjmp exceptions: there isn't one.
576 1999-11-17 Andrew Haley <aph@cygnus.com>
578 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
579 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
580 (__sjthrow): Add declaration.
581 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
585 * Makefile.in: Rebuild
586 * acconfig.h: Add SJLJ_EXCEPTIONS
587 * configure.in: Add SJLJ_EXCEPTIONS
588 * configure: Rebuild.
589 * gcj/Makefile.in: Rebuild.
590 * gcj/cni.h: Add support for sjlj-exceptions.
591 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
592 * include/Makefile.in: Rebuild.
593 * include/default-signal.h: Add support for sjlj-exceptions.
595 1999-11-18 Tom Tromey <tromey@cygnus.com>
597 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
599 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
601 (method_cache): Made larger.
603 1999-11-11 Tom Tromey <tromey@cygnus.com>
605 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
606 initializing mutex. Initialize `count' when required.
608 1999-11-07 Anthony Green <green@trip.cygnus.com>
610 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
613 1999-11-05 Tom Tromey <tromey@cygnus.com>
615 * java/lang/natThread.cc (destroy): Removed incorrect comment.
617 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
619 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
620 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
623 1999-11-05 Tom Tromey <tromey@cygnus.com>
625 * java/lang/natThread.cc (stop): Removed argument name.
627 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
628 `private'; now has default access.
629 * Makefile.in: Rebuilt.
630 * Makefile.am (java/lang/ThreadGroup.h): Removed.
632 1999-11-04 Tom Tromey <tromey@cygnus.com>
634 * java/lang/natClass.cc (method_cache_count): Removed.
635 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
636 (_Jv_AddMethodToCache): Don't loop.
638 * configure.in: Removed `qt' threads case.
639 * include/quick-threads.h: Removed.
640 * quick-threads.cc: Removed.
642 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
643 (_Jv_ThreadDestroy): Likewise.
644 * include/no-threads.h (_Jv_ThreadCancel): Removed.
645 (_Jv_ThreadDestroy): Likewise.
646 * include/posix-threads.h (struct _Jv_Thread_t): Removed
648 (_Jv_ThreadCancel): Removed decl.
649 (_Jv_ThreadDestroy): Removed.
650 * posix-threads.cc (_Jv_ThreadCancel): Removed.
651 (throw_cleanup): Removed.
652 (really_start): Don't push or pop cleanup.
653 (_Jv_ThreadInitData): Don't initialize `exception' field.
654 * java/lang/Thread.java (stop): Officially unimplemented.
655 * java/lang/natThread.cc (stop): Officially unimplemented.
657 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
659 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
662 1999-11-02 Tom Tromey <tromey@cygnus.com>
664 * boehm.cc: Don't include boehm-config.h.
666 1999-11-01 Tom Tromey <tromey@cygnus.com>
668 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
669 (sum_blocks): Removed.
670 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
672 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
674 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
676 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
677 * java/io/InputStreamReader (InputStreamReader): ditto.
679 1999-10-22 Tom Tromey <tromey@cygnus.com>
681 * Makefile.in: Rebuilt.
682 * Makefile.am (java/lang/ClassLoader.h): New target.
683 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
686 * include/java-props.h (_Jv_Compiler_Properties): Changed
688 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
689 * include/jvm.h (_Jv_GCSetInitialHeapSize,
690 _Jv_GCSetMaximumHeapSize): Declare.
691 (JvRunMain, _Jv_RunMain): Declare.
692 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
693 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
694 (_Jv_GCSetMaximumHeapSize): Likewise.
695 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
696 (_Jv_GCSetMaximumHeapSize): Likewise.
697 * prims.cc (parse_heap_size): New function.
698 (_Jv_SetInitialHeapSize): Likewise.
699 (_Jv_SetMaximumHeapSize): Likewise.
700 (_Jv_Compiler_Properties): New global.
701 * gij.cc (help): New function.
703 (heap_size): Likewise.
704 (heap_max_size): Likewise.
705 (main): Parse arguments. Set _Jv_Compiler_Properties.
706 Include <config.h>, <java-props.h>.
707 (_Jv_Compiler_Properties): Removed.
709 1999-10-18 Tom Tromey <tromey@cygnus.com>
711 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
713 (redirect): New static field.
714 * java/lang/ClassLoader.java (getSystemClassLoader): Now
716 (getVMClassLoader0): Removed.
717 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
719 (getSystemClassLoader): Implemented.
721 1999-10-16 Anthony Green <green@cygnus.com>
723 * java/lang/ClassLoader.java (getSystemResource): Use
724 getSystemClassLoader instead of ClassLoader.system.
725 (getSystemResourceAsStream): Ditto.
727 * java/lang/natClassLoader.cc (redirect): Make static and
728 remove #ifdef INTERPRETER so it is always defined.
729 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
730 returns a VMClassLoader.
732 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
733 PropertyResourceBundle if a properties file is found before a
734 ResourceBundle class.
736 1999-10-15 Tom Tromey <tromey@cygnus.com>
738 * gij.cc (main): Formatting fixes.
739 (_Jv_Compiler_Properties): Define.
740 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
742 (init_properties): Set properites from _Jv_Compiler_Properties.
743 * include/java-props.h (_Jv_Compiler_Properties,
744 _Jv_Environment_Properties): Declare.
746 * include/java-props.h: Added copyright.
748 1999-10-13 Anthony Green <green@cygnus.com>
750 * libtool-version: Catch up by incrementing current.
752 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
753 * configure, include/config.h.in: Rebuilt.
754 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
755 * configure.in: Added --disable-getenv-properties and new define
756 `DISABLE_GETENV_PROPERTIES'.
758 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
759 (next_property_key): New function.
760 (next_property_value): New function.
761 (process_gcj_properties): New function.
762 (JvRunMain): Call process_gcj_properties.
765 * java/lang/natSystem.cc (init_properties): Set properties defined
768 * include/java-props.h: New file.
770 * java/lang/natSystem.cc (init_properties): Add new properties to
771 conform with Java Product Versioning Specification.
773 1999-10-12 Tom Tromey <tromey@cygnus.com>
775 * configure: Rebuilt.
776 * configure.in: Fixed test for --disable-java-net.
778 1999-10-06 Tom Tromey <tromey@cygnus.com>
780 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
781 when building Canadian cross.
782 (NATIVE): Don't define when cross-compiling.
784 1999-10-04 Tom Tromey <tromey@cygnus.com>
786 * java/net/natPlainSocketImpl.cc: Don't include headers if
787 java.net is disabled.
789 * Makefile.in: Rebuilt.
790 * Makefile.am (ZINCS): Removed. This is defined in configure.in
791 when needed, and must be left empty when not needed.
793 1999-10-01 Anthony Green <green@cygnus.com>
795 * THANKS: Refreshed from htdocs version.
797 1999-10-01 Steve Chamberlain <sac@pobox.com>
799 * Makefile.in: Rebuilt.
800 * Makefile.am (ZINCS): Define
802 * configure: Rebuilt.
803 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
805 * java/lang/ieeefp.h: Add definitions for picoJava.
807 1999-10-01 Tom Tromey <tromey@cygnus.com>
809 * configure: Rebuilt.
810 * configure.in: Set classpath when invoking gcj. Use changequote
811 around sed invocation.
813 * java/net/natPlainSocketImpl.cc: Stub native functions if
814 DISABLE_JAVA_NET is defined.
815 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
816 typo in exception string.
817 (getTimeToLive): Likewise.
818 Stub native functions if DISABLE_JAVA_NET is defined.
819 * java/net/natInetAddress.cc: Stub native functions if
820 DISABLE_JAVA_NET is defined.
821 * configure.host: Disable java.net for mips-tx39.
822 * configure, include/config.h.in: Rebuilt.
823 * acconfig.h (DISABLE_JAVA_NET): Undefine.
824 * configure.in: Added --disable-java-net and new define
827 1999-09-30 Tom Tromey <tromey@cygnus.com>
829 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
831 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
835 1999-09-28 Tom Tromey <tromey@cygnus.com>
837 * configure: Rebuilt.
838 * configure.in (PROCESS): In POSIX case, only set if not already
840 * configure.host (PROCESS): Set in mips-tx39 case.
842 * aclocal.m4, configure: Rebuilt.
843 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
844 appropriate AC_PROG_ symbol.
846 1999-09-24 Tom Tromey <tromey@cygnus.com>
848 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
850 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
852 Fix for PR java.util/47:
853 * configure, include/config.h: Rebuilt.
854 * configure.in: Don't look for ctime or ctime_r.
855 * Makefile.in: Rebuilt.
856 * Makefile.am (nat_source_files): Don't mention natDate.cc.
857 * java/util/natDate.cc: Removed.
858 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
860 (getAvailableIDs): Rewrote.
861 (getTimeZone): Rewrote.
862 * java/util/Date.java (toGMTString): New method.
863 (toLocaleString): New method.
866 1999-09-23 Tom Tromey <tromey@cygnus.com>
868 * configure: Rebuilt.
869 * configure.in: Print message when checking to see if gcj can
870 handle -fuse-divide-subroutine.
872 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
874 * java/lang/FirstThread.java (run0): Renamed to `run'.
877 * prims.cc (main_init): New function.
878 (JvRunMain): Call it.
879 (_Jv_RunMain): Likewise.
881 (main_init): Ignore SIGPIPE. Fixes PR 51.
883 1999-09-22 Tom Tromey <tromey@cygnus.com>
885 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
887 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
889 * java/text/MessageFormat.java (MessageFormat(String)): Set the
891 * java/text/NumberFormat.java: Check that object is a Number. If
892 not, throw IllegialArgumentException.
894 1999-09-21 Tom Tromey <tromey@cygnus.com>
896 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
897 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
899 * include/posix-threads.h (_Jv_MutexDestroy): Use
901 (_Jv_MutexLock): Likewise.
902 (_Jv_MutexUnlock): Likewise.
904 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
905 previous patch; it too was incorrect.
906 * java/io/PrintStream.java (PrintStream): Likewise.
908 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
909 refer to `this' before calling superclass constructor.
910 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
911 before calling superclass constructor.
913 1999-09-20 Tom Tromey <tromey@cygnus.com>
915 * configure: Rebuilt.
916 * configure.in: Send output of `-fuse-divide-subroutine' test
917 compilation to /dev/null.
919 1999-09-14 Tom Tromey <tromey@cygnus.com>
921 * include/java-insns.h: Turned constants into an enum. Added
922 multiple-inclusion protection.
924 1999-09-10 Tom Tromey <tromey@cygnus.com>
926 * configure: Rebuilt.
927 * configure.in: Build include/Makefile.
928 * Makefile.in: Rebuilt.
929 * Makefile.am (SUBDIRS): Added gcj and include.
930 (install-data-local): New target.
931 (extra_headers): New macro.
932 * include/Makefile.in: New file.
933 * include/Makefile.am: New file.
935 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
936 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
938 * boehm.cc: Don't include java-threads.h or gcj/field.h.
939 * resolve.cc: Include config.h.
940 * defineclass.cc: Include config.h.
941 * include/java-interp.h: Don't include config.h.
942 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
945 * gcj/javaprims.h: Regenerated namespace decls.
946 * classes.pl (scan): Don't put `;' after closing brace.
948 * Makefile.in: Rebuilt.
949 * Makefile.am (INCLUDES): Added -I for top_srcdir.
950 * configure.in: Create gcj/Makefile.
951 * gcj/Makefile.in: New file.
952 * gcj/Makefile.am: New file.
953 * java/lang/Object.h: Don't include any other headers.
954 * gcj/array.h: Renamed from include/java-array.h.
955 * gcj/field.h: Renamed from include/java-field.h.
956 * gcj/method.h: Renamed from include/java-method.h.
957 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
958 Updated all files to reflect new include structure.
960 1999-09-09 Tom Tromey <tromey@cygnus.com>
962 * configure: Rebuilt.
963 * configure.in: Fixed typo; variable is THREADSPEC and not
966 1999-09-08 Tom Tromey <tromey@cygnus.com>
968 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
969 previous change and implemented a correct test in the __m_count
972 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
975 1999-09-07 Tom Tromey <tromey@cygnus.com>
977 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
978 code and don't set errno.
980 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
981 not `r'. Changed `done_sleeping' to a `bool'.
983 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
985 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
986 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
987 by another thread, rather than by the GC.
988 (_Jv_CondWait): Prevent premature thread wakeup by GC.
989 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
990 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
993 1999-09-03 Tom Tromey <tromey@cygnus.com>
995 * configure: Rebuilt.
996 * configure.in: Check for fstat function.
997 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1000 1999-09-02 Tom Tromey <tromey@cygnus.com>
1002 * include/java-array.h (jobjectArrayjchar): Removed unused
1005 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1006 _Jv_PrepareCompiledClass while holding class mutex.
1008 1999-09-01 Tom Tromey <tromey@cygnus.com>
1010 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1011 (_Jv_PthreadGetMutex): Use it.
1012 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1013 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1014 (_Jv_MutexLock): Likewise.
1015 (_Jv_MutexUnlock): Likewise.
1016 * include/config.h.in: Rebuilt.
1017 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1018 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1019 * configure: Rebuilt.
1020 * libgcj.spec.in: Don't mention INTERPSPEC.
1021 * configure.in (INTERPSPEC): Removed.
1022 Only run pthreads-related checks when using POSIX threads. Check
1023 for m_count and __m_count in mutex structure.
1025 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1027 * java/lang/natClass.cc: Fixed notification of threads
1028 when class initialization is complete.
1030 1999-09-01 Tom Tromey <tromey@cygnus.com>
1032 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1033 * resolve.cc: Removed constants defined by
1034 java.lang.reflect.Modifier.
1035 Include <java/lang/reflect/Modifier.h>.
1036 (_Jv_ResolvePoolEntry): Use values from Modifier.
1037 (_Jv_DetermineVTableIndex): Likewise.
1038 (_Jv_PrepareClass): Likewise.
1040 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1041 java.lang.reflect.Modifier.
1042 Include <java/lang/reflect/Modifier.h>.
1043 (checkExtends): Use values from Modifier.
1044 (checkImplements): Likewise.
1045 (handleField): Likewise.
1046 (handleConstantValueAttribute): Likewise.
1047 (handleFieldsEnd): Likewise.
1048 (handleMethod ): Likewise.
1049 (handleMethodsEnd): Likewise.
1050 (handleClassBegin): Likewise.
1051 * interpret.cc: Removed constants defined by
1052 java.lang.reflect.Modifier.
1053 (continue1): Use values from Modifier.
1054 * java/lang/natClassLoader.cc: Removed constants defined by
1055 java.lang.reflect.Modifier.
1057 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1058 JV_STATE_NOTHING, not `0'.
1059 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1061 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1062 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1064 (_Jv_PthreadGetMutex): New function.
1065 (_Jv_PthreadCheckMonitor): Use it.
1066 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1067 (_Jv_MutexLock): Update `count'.
1068 (_Jv_MutexUnlock): Likewise.
1069 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1072 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1074 * Makefile.am (.java.lo): Add rule.
1076 * Makefile.in: Rebuilt.
1078 1999-09-01 Tom Tromey <tromey@cygnus.com>
1080 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1081 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1083 (_Jv_CondNotify): Use it.
1084 (_Jv_CondNotifyAll): Likewise.
1086 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1088 1999-08-31 Tom Tromey <tromey@cygnus.com>
1090 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1093 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1095 * posix-threads.cc: Include <errno.h>.
1097 1999-08-23 Tom Tromey <tromey@cygnus.com>
1099 * boehm.cc: Undefine TRUE and FALSE.
1101 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1103 1999-08-21 Tom Tromey <tromey@cygnus.com>
1105 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1108 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1110 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1112 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1113 (HAVE_STRUCT_IP_MREQ): Added.
1114 * configure, include/config.h.in: Rebuilt.
1115 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1117 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1118 Disable if ip_mreq is not available.
1120 * configure.in: Check types ssize_t and in_addr_t.
1121 * acconfig.h: Undefine them.
1122 * configure, include/config.h.in: Rebuilt.
1124 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1125 function that detects the signature of getpwuid_r.
1126 (init_properties): Use it.
1127 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1130 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1132 * interpret.cc (continue1): Implement explicit dispatch table.
1133 insn_target: Explicit interpreter switch table.
1134 SAVE_PC: New macro, moves pc saving code into instructions that
1136 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1137 PC_REGISTER_ASM: New macro.
1138 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1139 opcode: Remove local variable.
1140 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1141 (POKEI): Use _Jv_word.
1142 (iinc): Use _Jv_word.
1143 (dupx): Change reference argument (sp) to pointer.
1146 * interpret.cc: Remove instruction timing instrumentation.
1148 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1149 comment. Don't use _Jv_ClassNameSamePackage.
1151 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1152 URLPathEntry, CacheEntry}: Removed.
1154 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1156 (.java.lo): Rule removed.
1158 * Makefile.in: Rebuilt.
1160 1999-08-19 Tom Tromey <tromey@cygnus.com>
1162 * java/lang/natThread.cc (class locker): New class.
1163 (join): Use a locker around _Jv_CondWait.
1166 1999-08-18 Tom Tromey <tromey@cygnus.com>
1168 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1169 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1171 1999-08-18 Tom Tromey <tromey@cygnus.com>
1173 * include/javaprims.h ("Java"): Regenerated namespace decls.
1175 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1177 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1178 from _Jv_InternClassStrings.
1180 * prims.cc (_Jv_RunMain): New function.
1181 (JvRunMain): Remove gij-support.
1183 * gij.cc (main): Use _Jv_RunMain.
1185 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1187 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1188 argument in temp variable.
1189 (continue1): For all op_x2y insns, use temp variable for
1190 intermediate value. Also remove some comments.
1192 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1193 (forName): Don't call _Jv_InitClass.
1195 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1197 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1199 * java/util/jar/JarInputStream.java: New file.
1201 * java/util/jar/JarEntry.java: New file.
1203 * java/util/jar/JarFile.java: New file.
1205 * java/net/URLClassLoader.java: New file.
1207 * java/net/JarURLConnection.java: New file.
1209 * gnu/gcj/protocol/jar/Handler.java: New file.
1211 * gnu/gcj/protocol/jar/Connection.java: New file.
1213 * java/security/SecureClassLoader.java: New file.
1215 * java/lang/ClassLoader.java (parent): New variable.
1216 (ClassLoader (ClassLoader)): new constructor.
1217 (findClass): New method.
1218 (loadClass): Add default 1.2 implementation.
1219 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1220 (readfully): Removed.
1222 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1223 (findSystemClass): New method.
1224 (VMClassLoader): Constructor rewritten.
1226 All other methods removed.
1228 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1229 to gnu::gcj::runtime::VMClassLoader.
1230 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1232 (VMClassLoader::findSystemClass): renamed from findBootClass.
1234 * Makefile.am: Add new files.
1235 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1237 * Makefile.in: Rebuilt.
1239 1999-08-17 Tom Tromey <tromey@cygnus.com>
1241 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1243 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1246 1999-08-16 Tom Tromey <tromey@cygnus.com>
1248 * configure: Rebuilt.
1249 * configure.in: Set DIVIDESPEC to empty string if compiler does
1250 not support -fuse-divide-subroutine.
1252 1999-08-14 Per Bothner <per@bothner.com>
1254 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1255 * java/lang/natClass.cc (initializeClass): Likewise.
1256 * java/lang/ClassLoader.java (resolveClass0): New static method.
1257 (resolveClass): Call resolveClass0.
1258 (findSystemClass): No longer static.
1260 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1262 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1264 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1266 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1269 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1271 * Makefile: Rebuilt.
1272 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1275 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1278 * configure: Rebuilt.
1279 * configure.in: Properly align --help output, fix capitalization
1281 * acinclude.m4: Likewise.
1283 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1285 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1287 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1288 (_Jv_callInterpretedMethod): Unused. Remove.
1289 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1291 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1292 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1293 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1294 * interpret.cc: use _Jv_word.
1295 * defineclass.cc: use_Jv_word.
1296 * resolve.cc: Use _Jv_word.
1297 (_Jv_ResolvePoolEntry): Return _Jv_word.
1298 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1299 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1301 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1304 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1306 * configure: Rebuilt.
1307 * configure.in (sched_yield): Try librt first, then libposix4.
1308 Add -lrt, -lposix4 to THREADSPEC.
1310 1999-08-08 Anthony Green <green@cygnus.com>
1312 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1314 1999-08-08 Anthony Green <green@cygnus.com>
1316 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1319 1999-08-08 Anthony Green <green@cygnus.com>
1323 * include/config.h.in: Rebuilt.
1324 * acconfig.h: Add INTERPRETER.
1326 * Makefile.in: Rebuilt.
1327 * Makefile.am (libffi_files): Identify the libffi object files for
1328 inclusion in libgcj.
1329 (LIBFFIINCS): Define.
1331 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1332 Dummy definition for configurations without an interpreter.
1334 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1335 java::lang::Boolean constructor.
1337 * include/java-interp.h: Always include java-cpool.h.
1339 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1340 when INTERPRETER not defined.
1342 * java/lang/Class.h (finalize): Define.
1344 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1345 IOException from File.getCanonicalPath.
1346 (getStream): Likewise.
1349 * THANKS: More thanks.
1351 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1353 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1355 (_Jv_PrepareClass): Allow non-abstract classes to
1356 have abstract subclasses.
1357 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1359 * interpret.cc (continue1/perform_invoke): Don't sign extend
1361 (continue1/lshl,lshr): Push long, not int.
1362 (continue1/ulshr): Use UINT64, not long long.
1363 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1365 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1366 * java/lang/FirstThread.java (run): Add top-level exception
1368 (run0): Renamed from run.
1370 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1372 * configure.in (--with-interpreter): Added.
1373 * include/config.h.in (INTERPRETER): Added.
1375 * java/lang/ClassLoader.java: File replaced.
1376 * java/lang/VMClassLoader.java: New file.
1377 * java/lang/natClassLoader.cc: New file.
1378 * gnu/gcj/runtime/MethodInvocation.java: New file.
1379 * gnu/gcj/util/path/SearchPath.java: New file.
1380 * gnu/gcj/util/path/PathEntry.java: New file.
1381 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1382 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1383 * gnu/gcj/util/path/URLPathEntry.java: New file.
1384 * gnu/gcj/util/path/CacheEntry.java: New file.
1385 * include/java-interp.h: New file.
1386 * include/java-cpool.h: New file.
1387 * include/java-insns.h: New file.
1388 * defineclass.cc: New file.
1389 * interpret.cc: New file.
1390 * resolve.cc: New file.
1392 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1393 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1394 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1396 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1397 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1399 (initializeClass): Use new JV_ prefixed names. Also, call
1400 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1402 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1403 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1404 JV_STATE_LINKED): New.
1405 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1406 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1407 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1408 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1409 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1410 _Jv_InterpMethodInvocation): New friends for interpreter.
1412 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1413 include/java-cpool.h and renamed with JV_ prefix.
1415 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1417 (_Jv_UnregisterClass): New decl.
1419 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1420 class loader argument.
1421 (_Jv_FindClass): Use class loader.
1423 * prims.cc (_Jv_makeUtf8Const): New function.
1424 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1425 (_Jv_NewPrimArray): Ditto.
1426 (_Jv_FindClassFromSignature): Ditto.
1427 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1428 * java/lang/reflect/natMethod.cc (getType): Ditto.
1430 * include/java-field.h (_Jv_Field::isRef): Make robust for
1431 non-resolved contexts.
1433 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1434 Also, don't mark class->next field.
1436 * java/lang/VirtualMachineError.java: Added FIXME note.
1438 * configure.in (INTERPSPEC): New spec.
1439 * libgcj.spec.in: Added INTERPSPEC.
1440 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1441 gnu/gcj/runtime/MethodInvocation.
1442 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1443 (ordinary_java_source_files): Added above mentioned java classes.
1445 * configure: Rebuilt.
1446 * Makefile.in: Rebuilt.
1448 1999-08-06 Tom Tromey <tromey@cygnus.com>
1450 * configure: Rebuilt.
1451 * configure.in: Look for sched_yield in -lrt.
1453 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1455 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1456 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1457 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1459 (toString): Print correctly when `country' is empty.
1461 1999-08-04 Per Bothner <per@bothner.com>
1463 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1465 1999-08-02 Tom Tromey <tromey@cygnus.com>
1467 * aclocal.m4, configure: Rebuilt for new libtool.
1469 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1471 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1472 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1473 * java/net/ServerSocket.java: Define ANY_IF.
1474 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1475 all network interfaces.
1476 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1477 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1479 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1481 * java/io/natFile.cc (performMkdir): Remove FIXME.
1482 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1484 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1486 * configure.in: Check for bstring.h.
1487 * configure, include/config.h.in: Rebuilt.
1488 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1489 * java/net/natPlainSocketImpl.cc: Likewise.
1491 1999-07-31 Tom Tromey <tromey@cygnus.com>
1496 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1498 * configure.in: Check for struct hostent_data and need for
1499 -D_REENTRANT for gethostbyname_r declaration.
1500 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1501 (lookup): Use hostent_data for fixed_buffer.
1502 * configure, include/config.h.in: Rebuilt.
1504 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1506 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1507 available. Don't cast memmove args to (void*).
1508 * configure.in: Do not abort if memmove is not available.
1510 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1512 * java/lang/natString.cc (substring): optimize where substring is
1514 * java/io/File.java (getName): don't return separator with file name.
1515 * java/io/natFile.cc (attr): fix overflow.
1517 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1519 * mauve-libgcj: Disable Object Serialization tests.
1521 1999-07-20 Warren Levy <warrenl@cygnus.com>
1523 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1524 Default to using PlainDatagramSocketImpl.
1525 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1527 1999-07-19 Tom Tromey <tromey@cygnus.com>
1529 * include/stamp-h.in: New file.
1531 1999-07-12 Tom Tromey <tromey@cygnus.com>
1533 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1536 1999-07-07 Andrew Haley <aph@cygnus.com>
1538 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1539 bytes to make it point after the instruction where the trap
1541 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1543 1999-07-07 Tom Tromey <tromey@cygnus.com>
1545 * mauve-libgcj: Explicitly enable formerly disabled java.text
1548 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1551 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1553 * java/net/URL.java (equals): Compare strings using String.equals.
1554 * java/net/URL.java (sameFile): Ditto.
1556 1999-07-02 Warren Levy <warrenl@cygnus.com>
1558 * configure: Rebuilt.
1559 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1560 * include/config.h.in: Rebuilt.
1561 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1562 (mcastGrp): Updated FIXME comments.
1563 (setOption): Fixed typo.
1564 (getOption):Implemented IP_MULTICAST_IF.
1566 1999-07-02 Warren Levy <warrenl@cygnus.com>
1568 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1569 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1570 (getTimeToLive): Implemented.
1571 (setOption): Implemented IP_MULTICAST_IF.
1573 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1575 * java/lang/String.java (toString): Check for this == null and throw
1576 NullPointerException.
1578 1999-07-01 Warren Levy <warrenl@cygnus.com>
1580 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1581 to count and revised comments to match.
1582 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1583 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1584 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1585 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1586 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1587 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1589 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1591 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1592 properly as count rather than outlength.
1593 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1594 output on overflow rather than buffer fill.
1595 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1596 if markPos is 0 and there is still room in the buffer.
1598 1999-07-01 Andrew Haley <aph@cygnus.com>
1600 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1601 This is a workaround for a bug in glibc's pthreads package which
1602 doesn't deliver any sigcontext information to a signal handler.
1604 1999-06-24 Tom Tromey <tromey@cygnus.com>
1606 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1607 * java/lang/fdlibm.h (HUGE): Conditionally define.
1609 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1611 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1612 * java/lang/e_log.c: Don't use __uint32_t.
1614 1999-05-27 Eric Christopher <echristo@cygnus.com>
1616 * configure: Rebuilt
1617 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1618 * acconfig.h: Rebuilt
1619 * include/config.h.in: Rebuilt
1621 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1622 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1623 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1624 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1625 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1626 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1627 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1628 and namespace collision with __uint32_t
1630 1999-06-23 Tom Tromey <tromey@cygnus.com>
1632 * java/util/zip/InflaterInputStream.java (read): Throw
1633 ZipException if inflater throws a DataFormatException.
1635 1999-06-23 Warren Levy <warrenl@cygnus.com>
1637 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1638 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1639 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1640 is not final per JDK.
1641 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1643 * java/util/zip/DataFormatException.java: Class extends Exception.
1644 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1645 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1646 * java/util/zip/ZipInputStream.java: ditto.
1647 (closeEntry): Changed method name to match JDK spec.
1649 1999-06-21 Tom Tromey <tromey@cygnus.com>
1651 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1654 * Makefile.in: Rebuilt.
1655 * Makefile.am (toolexeclibdir): Define as libdir when
1657 * configure: Rebuilt.
1658 * configure.in (USE_LIBDIR): New conditional.
1660 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1662 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1663 hostname in returned InetAddress objects.
1664 (getLocalHostname): Fix typo.
1665 * java/net/InetAddress.java (getByName): Set hostname on return
1667 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1670 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1672 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1673 interfaces if host==NULL.
1674 (accept): Throw message with InterruptedIOException.
1675 (getOption): Cache localAddress.
1676 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1677 'address' for DatagramSocket.
1678 (setTimeToLive): Fix compiler warnings.
1679 (getOption): Cache localAddress.
1680 * java/net/Socket.java (getLocalAddress): Don't need local
1681 InetAddress object. Add FIXME comment about calling checkConnect().
1682 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1683 connection queue to 50 as per JDK 1.2 docs.
1684 (ServerSocket(int,int)): Listen on all network interfaces by
1685 default, per JDK 1.2 docs.
1686 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1687 Add localAddress caching.
1689 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1691 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1693 (write(byte[],int,int)): ditto.
1695 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1697 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1699 1999-06-11 Warren Levy <warrenl@cygnus.com>
1701 * mauve-libgcj: Activated java.net Mauve tests.
1703 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1705 * java/net/natInetAddress.cc (aton): Fix typos.
1706 (lookup): Use a bigger buffer size for gethostbyname_r on all
1707 versions of glibc. Updated FIXME comment explaining this.
1708 Modified while loops to not set herr = ERANGE to work around glibc
1709 problems. Use user specified hostname in InetAddress result when
1710 available (consistent with JDK).
1712 1999-06-10 Warren Levy <warrenl@cygnus.com>
1714 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1715 Throw FileNotFoundException instead of IOException.
1717 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1719 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1720 in static field name.
1721 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1722 throughout rather than ParseException.
1724 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1726 * java/lang/Runtime.java (exec): Convert prog name and arguments
1728 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1729 environment array conversion. Preserve current environment if envp
1730 not passed. Preserve PATH unless explicitly specified.
1731 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1732 followed by EOF. Set a flag when a line is terminated by '\r' and
1733 ignore following '\n' if set.
1735 1999-06-02 Warren Levy <warrenl@cygnus.com>
1737 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1738 Ignore context if spec is an absolute URL. Fix braindead
1740 (hashCode): Use JDK 1.2 style algorithm.
1741 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1742 context URL properly.
1744 1999-05-30 Anthony Green <green@cygnus.com>
1746 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1747 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1749 1999-05-28 Warren Levy <warrenl@cygnus.com>
1751 * java/net/DatagramSocket.java (laddr): Removed.
1752 (DatagramSocket): Removed attempts to get or set laddr if null.
1753 (getLocalAddress): Reimplemented per spec.
1754 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1756 (joinGroup): Throw NullPointerException if any argument is null.
1757 (leaveGroup): ditto.
1758 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1759 * java/net/PlainSocketImpl.java (timeout): Added.
1760 (getInputStream): Added FIXME comment on how to support timeouts
1762 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1763 * java/net/Socket.java: Added FIXME comments to identify
1764 conflicting specs between the JCL and JDK 1.2 documents.
1765 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1766 if host is null. Get localport value resolved by kernel if bind
1768 (receive): Implemented support for timeouts in UDP.
1769 (setOption): Implemented based on natPlainSocketImpl version.
1771 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1772 resolved by kernel if bind lport is 0.
1773 (connect): Get localport value resolved by kernel if bind wasn't
1774 done to set localport.
1775 (accept): Implemented support for timeouts for ServerSocket.
1776 (setOption): Save value for SO_TIMEOUT.
1777 (getOption): Return timeout for SO_TIMEOUT.
1779 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1781 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1782 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1783 (setOption): Made abstract.
1784 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1785 to avoid cpp conflicts in native code.
1786 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1787 cpp conflicts in native code.
1788 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1789 * java/net/Socket.java (getLocalAddress): Implemented.
1790 (setTcpNoDelay): Implemented.
1791 (getTcpNoDelay): Implemented.
1792 (setSoLinger): Implemented.
1793 (getSoLinger): Implemented.
1794 (getSoTimeout): Verify class type.
1795 (setSendBufferSize): Implemented.
1796 (getSendBufferSize): Implemented.
1797 (setReceiveBufferSize): Implemented.
1798 (getReceiveBufferSize): Implemented.
1799 (toString): Prepended "Socket".
1800 * java/net/SocketImpl.java (toString): Rewritten.
1801 (getOption): Made abstract.
1802 (setOption): Made abstract.
1803 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1804 (setOption): Implemented.
1805 (getOption): Implemented.
1807 1999-05-26 Warren Levy <warrenl@cygnus.com>
1809 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1810 address when null. Set SO_REUSEADDR for multicasts.
1811 (getSoTimeout): Implemented.
1812 (setSoTimeout): Implemented.
1813 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1814 * java/net/MulticastSocket.java (getInterface): Implemented.
1815 (setInterface): Implemented.
1816 (setTimeToLive): Check for invalid ttl.
1817 (joinGroup): Verify multicast address and security.
1818 (leaveGroup): Verify multicast address and security.
1819 (send): Implemented.
1820 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1826 (getTTL): Implemented as non-native.
1830 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1831 (getSoTimeout): Implemented.
1832 (setSocketFactory): Made synchronized.
1833 * java/net/Socket.java (setSoTimeout): Implemented.
1834 (getSoTimeout): Implemented.
1835 (close): Made synchronized.
1836 (setSocketImplFactory): Made synchronized.
1837 * java/net/SocketImpl.java: Implement SocketOptions interface.
1838 * java/net/natInetAddress.cc: Corrected module name at top of file.
1839 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1840 (bind): Added FIXME.
1841 (peek): Implemented.
1847 (setOption): Implemented for SO_REUSEADDR.
1848 (getOption): Implemented for SO_REUSEADDR.
1850 1999-05-24 Tom Tromey <tromey@cygnus.com>
1852 * java/util/ResourceBundle.java (getBundle): Throw
1853 NullPointerException if baseName is null.
1855 1999-05-22 Tom Tromey <tromey@cygnus.com>
1857 * java/util/zip/ZipInputStream.java (fill): New method.
1858 (compressed_len): New instance variable.
1859 (getNextStream): Set it.
1860 (read): Reset inflater on EOF. Only read via `super' if entry is
1862 (skip): Only skip via `super' if entry is deflated.
1863 * java/util/zip/Deflater.java (last_input_count): Removed.
1864 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1866 (needsInput): Don't use last_input_count.
1867 (setInput): Don't set last_input_count.
1868 * java/util/zip/natInflater.cc (getRemaining): Return correct
1870 (inflate): Return 0 if input array is length 0.
1871 (setInput): Don't set last_input_count.
1872 * java/util/zip/Inflater.java (last_input_count): Removed.
1874 1999-05-21 Tom Tromey <tromey@cygnus.com>
1876 * Makefile.in: Rebuilt.
1877 * Makefile.am (INCLUDES): Added $(ZINCS).
1878 * configure: Rebuilt.
1879 * configure.in (ZINCS): New subst.
1881 1999-05-21 Andrew Haley <aph@cygnus.com>
1883 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1884 to signal options to allow the same exceptions to be rethrown
1887 1999-05-20 Andrew Haley <aph@cygnus.com>
1889 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1891 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1892 (INIT_FPE): Exception string made more informative.
1893 * include/sparc-signal.h (INIT_FPE): Exception string made more
1895 * testsuite/libjava.lang/Divide_1.java: New file.
1896 * testsuite/libjava.lang/Divide_1.out: New file.
1898 1999-05-19 Tom Tromey <tromey@cygnus.com>
1900 * aclocal.m4, configure: Rebuilt.
1901 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1903 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1906 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1908 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1910 (update): Fail in default case. Always initialize `strat'.
1912 * mauve-libgcj: Enable java.util.zip.
1914 1999-05-18 Warren Levy <warrenl@cygnus.com>
1916 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1917 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1918 PlainDatagramSocketImpl.java, and SocketOptions.java.
1919 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1920 * Makefile.in: Rebuilt.
1922 * java/net/DatagramPacket.java: New file.
1923 * java/net/DatagramSocket.java: New file.
1924 * java/net/DatagramSocketImpl.java: New file.
1925 * java/net/MulticastSocket.java: New file.
1926 * java/net/PlainDatagramSocketImpl.java: New file.
1927 * java/net/SocketOptions.java: New file.
1928 * java/net/natPlainDatagramSocketImpl.cc: New file.
1930 1999-05-18 Tom Tromey <tromey@cygnus.com>
1932 * java/util/zip/ZipOutputStream.java (level): Initial value is
1933 Deflater.DEFAULT_COMPRESSION.
1934 (close): New method.
1935 (closeEntry): Likewise.
1937 (put_version): Likewise.
1938 (write_entry): Likewise.
1939 (put2, put4): Now return `int'.
1940 (comment): Default to empty string.
1941 (bytes_written): New instance variable.
1943 * java/util/zip/ZipEntry.java (setComment): Limit length of
1945 (setCrc): Check CRC validity.
1946 (setExtra): Check argument validity.
1947 (setMethod): Likewise.
1948 (setSize): Likewise.
1949 (ZipEntry): Likewise.
1950 * include/javaprims.h: Updated namespace declarations.
1951 * Makefile.in: Rebuilt.
1952 * Makefile.am (ordinary_java_source_files): Mention new files.
1953 (nat_source_files): Likewise.
1954 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1957 (getInputStream): Handle compressed entries.
1958 * java/util/zip/GZIPOutputStream.java: New file.
1959 * java/util/zip/GZIPInputStream.java: New file.
1960 * java/util/zip/DataFormatException.java: New file.
1961 * java/util/zip/CheckedInputStream.java: New file.
1962 * java/util/zip/CheckedOutputStream.java: New file.
1963 * java/util/zip/InflaterInputStream.java: Implemented.
1964 * java/util/zip/natInflater.cc: New file.
1965 * java/util/zip/Deflater.java: Implemented.
1966 * java/util/zip/natDeflater.cc: New file.
1967 * java/util/zip/DeflaterOutputStream.java: Implemented.
1969 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1970 ZipException, not IOException.
1971 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1974 1999-05-17 Tom Tromey <tromey@cygnus.com>
1976 * java/lang/natSystem.cc (init_properties): URL now points to
1979 1999-05-12 Per Bothner <bothner@cygnus.com>
1981 * java/util/Calendar.java (set): First call computeFields if needed.
1982 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1984 1999-05-12 Tom Tromey <tromey@cygnus.com>
1986 * configure: Rebuilt.
1987 * configure.in: Look for -ldl when using the Boehm collector.
1988 Look for sched_yield in -lposix4.
1990 1999-05-12 Per Bothner <bothner@cygnus.com>
1992 * java/io/File.java (mkdirs): Handle a null parent directory.
1994 1999-05-12 Tom Tromey <tromey@cygnus.com>
1996 * include/javaprims.h: Updated namespace declarations.
1997 * classes.pl (scan): Uniquify class list.
1998 * Makefile.in, configure: Rebuilt.
1999 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2000 (built_java_source_files): New macro.
2001 (nat_headers): Added built_java_source_files.
2002 (javao_files): Likewise.
2003 (EXTRA_libgcj_la_SOURCES): Likewise.
2004 (libgcj.zip): Create built class files.
2005 ($(built_java_source_files:.java=.class)): New target.
2006 (jv_convert_LDADD): Added -L$(here)/.libs.
2007 * configure.in: Create links for ConcreteProcess.java and
2008 natConcreteProcess.cc.
2009 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2010 * java/lang/natEcosProcess.cc: New file.
2011 * java/lang/EcosProcess.java: New file.
2012 * java/lang/PosixProcess.java: New file.
2013 * java/lang/natPosixProcess.cc: New file.
2015 1999-05-12 Warren Levy <warrenl@cygnus.com>
2017 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2018 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2019 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2020 (connect): Throw ConnectException.
2022 1999-05-11 Tom Tromey <tromey@cygnus.com>
2024 * Makefile.in: Rebuilt.
2025 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2026 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2029 * Makefile.in: Rebuilt.
2030 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2031 and it causes problems with libtool.
2033 * Makefile.in, configure: Rebuilt.
2034 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2035 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2036 (jv_convert_DEPENDENCIES): Added ZDEPS.
2037 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2039 (THREADSPEC): Added `-L' to point to qthreads build directory.
2043 * configure, Makefile.in: Rebuilt.
2044 * Makefile.am (toolexeclib_DATA): New macro.
2045 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2046 Recognize --with-system-zlib.
2047 (GCSPEC): New subst.
2048 (THREADSPEC): New subst.
2049 (SYSTEMSPEC): New subst.
2050 (ZLIBSPEC): New subst.
2051 * libgcj.spec.in: New file.
2053 1999-05-10 Tom Tromey <tromey@cygnus.com>
2055 * java/io/InputStreamReader.java (read): If length is 0, return
2056 0. Reset `wpos' and `wcount' when buffer has been filled and
2059 * java/util/Properties.java (save): Removed `FIXME' comment.
2060 (load): Invalid characters in \u now treated as terminators.
2061 Make sure to append character resulting from `\' handling.
2062 Cast to `char' when appending to key or value.
2063 (skip_ws): Inverted test for whitespace.
2065 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2067 (readLine): Likewise.
2068 (readFully): Implemented.
2070 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2072 * java/awt/natToolkit.cc: Added copyright header.
2073 * java/util/zip/InflaterInputStream.java: Added copyright header.
2075 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2077 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2079 (getNextStream): Likewise.
2081 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2083 (getBundle): Don't explicitly throw null pointer exception.
2085 * gnu/gcj/RawData.java: Added copyright header.
2087 * include/jni.h (_Jv_va_list): Always define as va_list.
2089 1999-05-9 Anthony Green <green@cygnus.com>
2091 * java/text/DateFormat.java (computeInstance): Separate time
2093 (getDateTimeInstance): Ditto.
2094 (getDateTimeInstance(int,int)): New method.
2096 * Makefile.in: Rebuilt.
2097 * Makefile.am (ordinary_java_source_files): Add new classes.
2099 * java/util/PropertyResourceBundle.java: New file.
2100 * gnu/gcj/util/EnumerationChain.java: New file.
2102 1999-05-07 Tom Tromey <tromey@cygnus.com>
2104 * acconfig.h (GCJVERSION): New undef.
2105 * java/lang/natSystem.cc (init_properties): Define java.version,
2106 java.class.version, os.name, os.arch, os.version.
2107 Include <sys/utsname.h> if required.
2108 * configure: Rebuilt.
2109 * configure.in: Compute and define GCJVERSION.
2111 * java/lang/natSystem.cc (default_file_encoding): Now static.
2113 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2115 * libtool-version: New file.
2116 * Makefile.in: Rebuilt.
2117 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2120 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2121 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2124 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2125 (we pick those up already).
2127 1999-05-05 Per Bothner <bothner@cygnus.com>
2129 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2130 stub classes. (This is enough to get Kawa to compile against libgcj.)
2132 * gnu/gcj/RawData.java: New class.
2133 * doc/cni.sgml: Document RawData.
2135 * java/util/zip/InflaterInputStream.java: New stub class.
2136 * java/util/zip/ZipInputStream.java: New class. Partly works.
2137 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2138 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2139 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2140 * java/util/zip/ZipOutputStream.java: Start implementation.
2142 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2143 (default_file_encoding): New global, initial value is above macro.
2144 (init_properties): Default file.encoding to default_file_encoding.
2146 * Makefile.am: Add new classes.
2148 1999-05-05 Tom Tromey <tromey@cygnus.com>
2150 * Makefile.in: Rebuilt.
2151 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2152 (clean-local): New target
2154 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2155 (load, loadLibrary): Now native.
2157 * java/lang/Runtime.java (load, loadLibrary): Now native.
2158 (init): New native method.
2159 (Runtime): Use init.
2160 * prims.cc: Include <ltdl.h> if required.
2161 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2163 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2165 * configure.in: Switch from irix threads to posix threads
2166 * configure: Regenerate.
2168 1999-04-30 Tom Tromey <tromey@cygnus.com>
2170 * Makefile.in: Rebuilt.
2171 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2173 1999-04-29 Tom Tromey <tromey@cygnus.com>
2175 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2178 * java/util/Locale.java (Locale(String,String)): Implement in
2179 terms of 3-argument version; variant now defaults to empty
2181 (toString): Assume variant is not null.
2182 (equals): Assume all strings are not null.
2183 (Locale): Throw NullPointerException if any argument is null.
2185 * java/util/ResourceBundle.java (getBundle): Don't try the base
2186 name; now implicit in partialGetBundle call.
2187 (trySomeGetBundle): Search for parent bundles and call setParent
2189 (partialGetBundle): Added `langStop' argument. Use
2190 `Locale.toString' to compute bundleName.
2191 (resource_cache): New static field.
2192 (partialGetBundle): Cache the returned resource bundle. Now
2195 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2198 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2199 * java/text/natCollator.cc (decomposeCharacter): `base' now
2201 * Makefile.in: Rebuilt.
2202 * Makefile.am (ordinary_java_source_files): Added
2203 CollationElementIterator, CollationKey, Collator,
2205 (nat_source_files): Added natCollator.cc.
2206 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2207 (compare): Pass `this' to CollationElementIterator constructor.
2208 (getCollationElementIterator): Likewise.
2209 (ceiNext): Fix off-by-one error when finding initial substring.
2210 (next): Correctly mask off bits when computing return value.
2211 Fixed return values when one string is shorter than the other.
2212 * java/text/CollationElementIterator.java (collator): New field.
2213 (CollationElementIterator): Added collator argument.
2214 (next): Call ceiNext on collator object.
2216 1999-04-26 Tom Tromey <tromey@cygnus.com>
2218 * natCollator.cc: New file.
2220 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2221 (GregorianCalendar): Use it in all constructors.
2222 * java/util/Calendar.java (Calendar): Changed argument name to
2223 `zone' to match code.
2225 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2226 * java/text/CollationKey.java: New file.
2227 * java/text/CollationElementIterator.java: New file.
2228 * java/text/Collator.java: New file.
2229 * java/text/RuleBasedCollator.java: New file.
2231 * Makefile.in: Rebuilt.
2232 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2233 (jv_convert_LDADD): Explicltly add -lm -lc.
2235 1999-04-26 Tom Tromey <tromey@cygnus.com>
2237 * configure, Makefile.in: Rebuilt.
2238 * configure.in: Added AM_PROG_LIBTOOL.
2239 (GCOBJS): Use `.lo' form of files.
2240 (THREADOBJS): Likewise.
2241 (GCDEPS): Use `.la' form of library.
2242 (GCLIBS): Set to be the same as GCDEPS.
2243 (THREADDEPS): Use `.la' form of library.
2244 (THREADLIBS): Set to be the same as THREADDEPS.
2245 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2246 toolexeclib_LIBRARIES.
2247 (libgcj_la_SOURCES): Renamed for libtoolization.
2248 (EXTRA_libgcj_la_SOURCES): Likewise.
2249 (libgcj_la_DEPENDENCIES): Likewise.
2250 (libgcj_la_LIBADD): Likewise.
2251 ($(nat_files)): Use LTCXXCOMPILE.
2252 ($(c_files)): Use LTCOMPILE.
2253 (GCJCOMPILE): New macro.
2255 (.java.o): Likewise.
2256 ($(javao_files)): Likewise.
2257 (jv_convert_LINK): Use LIBTOOL.
2258 (nat_files): Use `.lo' files.
2259 (c_files): Likewise.
2260 (javao_files): Likewise.
2261 (.class.lo): Renamed.
2262 (.java.lo): Likewise.
2263 ($(nat_files)): Depend on %.lo.
2264 ($(c_files)): Likewise.
2265 ($(javao_files)): Likewise.
2266 (jv_convert_LDADD): Link against .lo files.
2267 (jv_convert_DEPENDENCIES): Depend on .lo files.
2268 (maintainer-check): Depend on libgcj.la, but examine .a file.
2269 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2270 (libgcj_la_LDFLAGS): New macro.
2272 1999-04-23 Warren Levy <warrenl@cygnus.com>
2274 * Makefile.am: Added URLDecoder and URLEncoder.
2275 * Makefile.in: Rebuilt.
2277 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2278 setSocketImplFactory to match spec.
2279 * java/net/Socket.java (getSoLinger): Changed return type to
2282 * java/net/URLDecoder.java: New file.
2283 * java/net/URLEncoder.java: New file.
2285 1999-04-21 Tom Tromey <tromey@cygnus.com>
2287 * java/lang/natString.cc (getBytes): Reverted earlier change and
2288 applied correct fix from Per Bothner.
2290 * java/lang/String.java: Don't throw
2291 UnsupportedEncodingException.
2293 * java/lang/natString.cc (getBytes): Correctly size result
2294 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2296 1999-04-20 Andrew Haley <aph@cygnus.com>
2298 * include/sparc-signal.h: new file.
2299 * configure.in: include/sparc-signal.h added.
2300 * configure: regenerated.
2301 * prims.cc (JvRunMain): signal handling code rewritten to be more
2303 (catch_segv): ditto.
2305 * include/i386-signal.h: reorganized.
2306 * include/default-signal.h: reorganized.
2308 1999-04-19 Tom Tromey <tromey@cygnus.com>
2310 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2311 once. From Anthony Green.
2313 1999-04-19 Andrew Haley <aph@cygnus.com>
2315 * Makefile.in: Processed with new automake.
2317 1999-04-19 Tom Tromey <tromey@cygnus.com>
2319 * include/javaprims.h: Removed security namespace.
2321 1999-04-20 Anthony Green <green@cygnus.com>
2323 * java/io/PrintStream.java (println): Remove extra println.
2325 1999-04-19 Anthony Green <green@cygnus.com>
2327 * Makefile.in: Rebuilt.
2328 * Makefile.am (ordinary_java_source_files): Add new security files.
2330 * java/security/NoSuchAlgorithmException.java,
2331 java/security/MessageDigest.java: New files.
2333 * include/javaprims.h: Add security namespace.
2335 1999-04-16 Per Bothner <bothner@cygnus.com>
2337 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2338 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2339 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2340 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2341 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2342 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2343 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2344 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2345 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2346 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2347 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2348 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2349 * Makefile.am: Various changes for new files and conversions.
2351 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2352 New overloading, allows greater efficiency.
2353 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2354 New overloading (for efficiency - avoids copying).
2356 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2357 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2359 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2360 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2361 (writeChars): Don't be quite so eager to flush.
2362 * java/io/PrintStream.java: Rewrite. Now more similar to
2363 OutputStreamWriter, using explicit UnicodeToBytes converter.
2364 Also, autoflush does not need to flush so often.
2365 * java/lang/natString.cc (getBytes): More efficient algorithm.
2366 (init(jbyteArray,jint,jint,jstring)): More efficient.
2368 1999-04-15 Warren Levy <warrenl@cygnus.com>
2370 * Makefile.am (ordinary_java_source_files): Added new Connection
2371 and Handler classes in gnu.gcj.protocol.file package.
2372 * Makefile.in: Rebuilt.
2374 * gnu/gcj/protocol/file/Connection.java: New file.
2375 * gnu/gcj/protocol/file/Handler.java: New file.
2376 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2377 if doInput allows input.
2378 (getOutputStream): Check if doOutput allows output.
2379 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2381 1999-04-14 Tom Tromey <tromey@cygnus.com>
2383 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2384 buffer larger to work around bug.
2385 From Bryce McKinlay <bryce@albatross.co.nz>.
2387 1999-04-14 Andrew Haley <aph@cygnus.com>
2389 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2390 NaNs are always converted to the same long value.
2391 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2394 1999-04-13 Tom Tromey <tromey@cygnus.com>
2396 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2397 instead switch on actual element type.
2399 * Makefile.in: Rebuilt.
2400 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2402 1999-04-13 Andrew Haley <aph@cygnus.com>
2404 * include/i386-signal.h, include/default-signal.h: New files.
2405 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2407 (catch_fpe): New function.
2408 * configure.in: Make link to appropriate include/java-signal.h.
2409 * configure: Rebuilt.
2410 * Makefile.am: include/java-signal.h added to dependency list.
2411 * Makefile.in: Rebuilt.
2413 1999-04-12 Urban Widmark <urban@svenskatest.se>
2415 * java/io/DataInputStream.java (readLine): Corrected handling of
2416 empty lines, from null to "".
2418 1999-04-12 Tom Tromey <tromey@cygnus.com>
2420 * Makefile.in: Rebuilt.
2421 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2423 * java/lang/natSystem.cc (SystemClass): New define.
2424 (init_properties): Synchronize.
2426 1999-04-08 Geoff Berry <gcb@gnu.org>
2428 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2429 * natPlainSocketImpl.cc (accept): Add missing else if check
2432 1999-04-08 Tom Tromey <tromey@cygnus.com>
2434 * java/lang/Long.java (parseLong): Corrected overflow detection
2436 * java/lang/Integer.java (parseInt): Corrected overflow detection
2439 * java/io/PrintStream.java (print): Handle null string argument.
2440 (println): Likewise.
2442 1999-04-07 Warren Levy <warrenl@cygnus.com>
2444 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2445 Set count to 0 when InputStreamReader returns -1 for EOF.
2447 1999-04-07 Tom Tromey <tromey@cygnus.com>
2449 * mauve-libgcj: Omit java.text.Collator,
2450 java.text.RuleBasedCollator.
2452 1999-04-06 Tom Tromey <tromey@cygnus.com>
2454 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2455 IOException from getHttpHeaders().
2456 (getHeaderFieldKey): Likewise.
2458 * include/javaprims.h: Regenerated declarations.
2460 * Makefile.in: Rebuilt.
2461 * Makefile.am (ordinary_java_source_files): Updated for removed
2464 1999-04-06 Per Bothner <bothner@cygnus.com>
2466 * java/util/zip/Adler32.java: New class.
2467 * java/util/zip/CRC32.java: Add working method bodies.
2468 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2469 * Makefile.in: Re-generate.
2471 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2473 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2474 from version in removed www hierarchy.
2475 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2476 version in removed www hierarchy.
2478 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2479 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2480 * gnu/gcj/www/protocol/http: Removed dir.
2481 * gnu/gcj/www/protocol: Removed dir.
2482 * gnu/gcj/www: Removed dir.
2484 * java/net/HttpURLConnection.java: Revised comments to indicate
2485 missing JDK 1.2 methods.
2487 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2488 hierarchy rather than the gnu/gcj/www/protocol one.
2489 * java/net/URLConnection.java: Updated status comments.
2490 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2491 the gnu/gcj/www/content one.
2493 1999-04-06 Per Bothner <bothner@cygnus.com>
2495 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2496 The gen-from-JIS program is in $(CONVERT_DIR).
2498 1999-04-06 Tom Tromey <tromey@cygnus.com>
2500 * mauve-libgcj: Renamed from mauve-libjava.
2502 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2504 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2505 (getResponseMessage): Implemented.
2506 (getResponseVals): New private method.
2508 * java/net/URLConnection.java (getContent): Implemented.
2509 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2511 1999-04-05 Tom Tromey <tromey@cygnus.com>
2513 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2514 (jv_convert_SOURCES): Renamed.
2515 (EXTRA_jv_convert_SOURCES): Likewise.
2516 (jv_convert_LDFLAGS): Likewise.
2517 (jv_convert_LINK): Likewise.
2518 (jv_convert_LDADD): Likewise.
2519 (jv_convert_DEPENDENCIES): Likewise.
2521 * Makefile.in: Rebuilt.
2522 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2525 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2527 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2528 method for comparison.
2530 * java/net/URLConnection.java (getContentLength): Implemented.
2531 (getContentType): Implemented.
2532 (getContentEncoding): Implemented.
2533 (getExpiration): Implemented.
2534 (getDate): Implemented.
2535 (getLastModified): Implemented.
2536 (getHeaderFieldInt): Implemented.
2537 (getHeaderFieldDate): Implemented.
2539 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2541 * java/net/URLConnection.java (toString): Implemented.
2542 (setContentHandlerFactory): Implemented.
2543 (setContentHandler): Wrote new private helper method.
2545 1999-04-01 Tom Tromey <tromey@cygnus.com>
2547 * Makefile.in: Rebuilt.
2548 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2549 of 1999-03-31; we always want to build all the .class files.
2550 Depend on java_source_files, not libgcj.zip.
2551 (nat_headers): Define in terms of ordinary_java_source_files.
2553 1999-03-31 Tom Tromey <tromey@cygnus.com>
2555 * Makefile.in: Rebuilt.
2556 * Makefile.am (special_java_source_files): New macro.
2557 (java_source_files): Use it.
2558 (ordinary_java_source_files): New macro.
2559 (java_source_files): Use it.
2560 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2561 creating headers for those files with hand-maintained headers.
2563 * include/javaprims.h: Regenerated namespace declarations.
2564 * classes.pl (scan): Include [0-9] in regexp for matching class
2565 names; for java.util.zip.CRC32.
2567 * Makefile.in: Rebuilt.
2568 * Makefile.am (nat_headers): Redefined to generate all possible
2571 * java/util/zip/ZipException.java: In package java.util.zip, not
2574 1999-03-30 Tom Tromey <tromey@cygnus.com>
2576 * configure: Rebuilt.
2577 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2578 eh-common.h when not building in tree with gcc.
2580 * Makefile.in: Rebuilt.
2581 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2582 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2584 ($(java_source_files:.java=.class)): New target.
2586 * Makefile.in: Rebuilt.
2587 * Makefile.am (java_source_files): Added
2588 java/net/HttpURLConnection.java and
2589 gnu/gcj/www/protocol/http/Connection.java.
2591 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2593 * gnu/gcj/www/protocol/http/Connection.java: New file.
2594 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2595 * java/net/HttpURLConnection.java: New file.
2596 * java/net/URLConnection.java (getHeaderField): Implemented default.
2597 (getHeaderFieldKey): Implemented default method.
2599 1999-03-30 Tom Tromey <tromey@cygnus.com>
2601 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2603 * java/util/zip/Deflater.java: Added copyright header.
2604 * java/util/zip/CRC32.java: Added copyright header.
2606 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2607 that it is automatically generated.
2608 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2610 * gnu/gcj/convert/BytesToUnicode.java,
2611 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2612 gnu/gcj/convert/Input_EUCJIS.java,
2613 gnu/gcj/convert/Input_UTF8.java,
2614 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2615 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2616 gnu/gcj/convert/Output_8859_1.java,
2617 gnu/gcj/convert/Output_JavaSrc.java,
2618 gnu/gcj/convert/Output_UTF8.java,
2619 gnu/gcj/convert/UnicodeToBytes.java,
2620 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2622 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2624 * Makefile.in, configure: Rebuilt.
2625 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2626 not if test subdir exists.
2627 (--enable-gcj-classes): Removed; gcj always used to generate
2629 (JAVA, JAVAC): Removed.
2630 (--enable-single-compilation, --enable-source-compilation):
2633 (NATIVE): New conditional.
2634 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2635 `install-exec' to work.
2636 (toolexeclibdir): Likewise.
2637 (toollib_LIBRARIES): Likewise.
2638 (AM_MAKEFLAGS): Don't pass tooldir.
2640 (javao_files): Redefined.
2641 (java_source_files): New macro.
2642 (c_source_files): New macro.
2643 (c_files): Redefined in terms of c_source_files.
2644 (java_io_files, java_lang_files, java_net_files, java_text_files,
2645 java_util_files, gnu_files, java_files): Removed.
2646 (class_io_files, class_lang_files, class_net_files,
2647 class_text_files, class_util_files, class_gnu_files, class_files):
2649 (nat_source_files): New macro.
2650 (nat_files): Redefined in terms of nat_source_files.
2651 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2652 java_source_files. Removed no-such-file.c.
2654 (ETAGS_ARGS): Removed.
2655 (TAGS_DEPENDENCIES): Likewise.
2656 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2658 (src_io_files, src_lang_files, src_text_files, src_util_files,
2659 src_gnu_files): Removed.
2660 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2661 (BUILT_SOURCES): Removed.
2662 (header-check): New target.
2664 (noinst_PROGRAMS): New macro.
2665 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2667 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2668 (gen-from-JIS): Build in top directory.
2669 (convert_source_files): New macro.
2670 (convert_SOURCES): New macro.
2671 (convert_LDFLAGS): Likewise.
2672 (convert_LINK): Likewise.
2673 (convert_LDADD): Likewise.
2674 (convert_DEPENDENCIES): Likewise.
2676 (gen-from-JIS): Removed.
2677 (gen_from_JIS_SOURCES): New macro.
2678 (gen_from_JIS_LDADD): Likewise.
2679 (gen_from_JIS_DEPENDENCIES): Likewise.
2681 * configure: Rebuilt.
2682 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2683 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2684 when defining conditional.
2686 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2688 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2689 The Unicode Consortium does not permit their re-distribution.
2690 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2691 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2693 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2695 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2697 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2699 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2700 from Unicode Consortium.
2701 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2702 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2703 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2704 New tables, generated using gen-from-JIS.
2705 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2706 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2707 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2708 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2710 * gnu/gcj/convert/Convert.java: New application.
2711 * Makefile.am, Makefile.in (convert): New program, using Convert.
2712 Build the various JIS conversion tables (in maintainer mode).
2714 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2716 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2718 * java/net/URL.java (URL): Deal with null property value. Use "."
2719 as separator in building class name.
2720 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2721 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2722 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2723 beginning of the substring rather than 'start'.
2725 1999-03-26 Tom Tromey <tromey@cygnus.com>
2727 * include/java-chartables.h: Rebuilt.
2728 * include/java-chardecomp.h: New file.
2729 * chartables.pl: Generate output files directly. Added support
2730 for generating decomposition header.
2731 (canonical_decomposition, full_decomposition): New globals.
2732 (DECOMPOSITION): New constant.
2733 (process_char): Call add_decomposition.
2734 (add_decomposition): New sub.
2735 (write_decompositions): New sub.
2737 1999-03-25 Tom Tromey <tromey@cygnus.com>
2739 * java/text/CollationElementIterator.java: New file.
2741 * mauve-libjava: Omit StringTest.
2743 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2745 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2746 without a '/' when parsing protocol. Handle ref outside of parseURL.
2747 (hashCode): Implemented.
2748 (set): Don't expand -1 to default port.
2749 (getDefaultPort): Removed.
2751 * java/net/URLStreamHandler.java (parseURL): Implemented.
2752 (toExternalForm): Implemented.
2754 1999-03-23 Tom Tromey <tromey@cygnus.com>
2756 * java/text/BreakIterator.java (getSentenceInstance):
2758 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2760 * Makefile.in: Rebuilt.
2761 * Makefile.am (nat_headers): Added IllegalAccessException.
2762 * java/lang/natClass.cc (newInstance): Throw
2763 IllegalAccessException, not IllegalAccessError.
2764 Include IllegalAccessException.h.
2766 1999-03-22 Tom Tromey <tromey@cygnus.com>
2768 * gnu/gcj/text/LineBreakIterator.java: New file.
2769 * java/text/BreakIterator.java (getLineInstance): Implemented.
2771 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2772 copy constructor private.
2773 (previous, next): Removed erroneous comment about line
2775 (previous): Correctly recognize break between non-letter on the
2776 left and letter on the right. Handle apostrophes correctly.
2778 * java/text/BreakIterator.java (getWordInstance): Implemented.
2779 * gnu/gcj/text/WordBreakIterator.java: New file.
2780 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2782 * gnu/gcj/text/BaseBreakIterator.java: New file.
2784 1999-03-19 Tom Tromey <tromey@cygnus.com>
2786 * java/text/BreakIterator.java: New file (partially stubbed out).
2787 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2789 * include/config.h.in: Rebuilt.
2790 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2791 (HAVE_TIMEZONE): Likewise.
2792 * configure: Rebuilt.
2793 * configure.in: Added timezone checks.
2794 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2797 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2799 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2800 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2801 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2802 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2803 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2804 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2805 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2806 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2808 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2809 (BSD_COMP): Kludge needed for Solaris2.
2811 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2813 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2814 URL(java.net.URL, string, URLStreamHandler) and call it with a
2815 null handler. In latter constructor, added SecurityManager check.
2816 (set): Expect null handler on bad protocol rather than an exception.
2817 (setURLStreamHandler): Simplified exception handling; return null
2818 on invalid protocol.
2820 1999-03-18 Tom Tromey <tromey@cygnus.com>
2822 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2824 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2826 Include PrintStream.h, InputStream.h.
2827 * java/lang/System.java (ForwardingInputStream,
2828 ForwardingOutputStream): Removed.
2829 (setErr, setIn, setOut): Now native.
2831 Reverted patch from 1999-02-12 to work around problem in
2833 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2834 (_Jv_eh_free): Use free.
2836 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2837 for path name. Minor formatting fixes.
2839 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2841 * prims.cc (fail_on_finalization): New function.
2842 (_Jv_GCWatch): Likewise.
2844 * prims.cc (JvRunMain): Initialize `nullp'.
2845 (nullp): New global.
2846 (catch_segv): Throw nullp.
2848 * Makefile.in: Rebuilt.
2849 * Makefile.am (ZIP): In "null target" case, zip is found in the
2852 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2856 * java/lang/StringBuffer.java (StringBuffer): Don't use
2857 ensureCapacity to set initial capacity.
2858 (capacity): Subtract `length' from return result.
2860 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2862 * java/io/natFileDescriptorPosix.cc (open): Throw
2863 FileNotFoundException, but with filename and errno in msg.
2865 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2867 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2868 functionality folded into java/net/URL.java per spec.
2870 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2871 than EEXIST for throwing FileNotFoundException.
2873 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2874 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2876 * java/net/URLStreamHandler.java (parseURL): Added stub.
2878 1999-03-15 Andrew Haley <aph@cygnus.com>
2880 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2883 1999-03-15 Andrew Haley <aph@cygnus.com>
2885 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2888 1999-03-12 Tom Tromey <tromey@cygnus.com>
2890 * prims.cc (catch_segv): New function.
2891 Include <signal.h> if HANDLE_SEGV defined. Include
2892 NullPointerException.h.
2893 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2896 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2897 a SimpleDateFormat, not just a DateFormat.
2898 (defaultCenturyStart, formatData, pattern): Now private.
2899 (append): Now `final'. Use `NumberFormat.format'.
2901 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2903 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2906 * java/text/MessageFormat.java (format): Use default MessageFormat
2908 (parse, parseObject): Wrote.
2910 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2913 1999-03-12 Andrew Haley <aph@cygnus.com>
2915 * java/lang/String.java (indexOf): Replace with native method for
2917 * java/lang/natString.cc (IndexOf): As above.
2919 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2920 Argument check corrected.
2921 (init(jbyteArray,jint,jint,jstring)): Likewise.
2923 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2924 1.2 compliant method.
2926 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2928 * java/lang/Float.java (byteValue, shortValue): Likewise.
2930 1999-03-11 Tom Tromey <tromey@cygnus.com>
2932 * java/text/DecimalFormat.java (parse): Wrote.
2934 * java/text/ChoiceFormat.java (parse): Set error index on
2935 ParsePosition object.
2937 * java/lang/Integer.java (parseInt): Throw exception on overflow
2938 when intermediate result is most negative number. Changed
2939 overflow detection as well.
2940 * java/lang/Long.java (parseLong): Likewise.
2942 * configure, Makefile.in: Rebuilt.
2943 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2944 CANADIAN when building in source tree that doesn't include gcc.
2945 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2948 * java/text/ChoiceFormat.java (nextDouble): Correct some
2949 off-by-one errors when masking or adding.
2951 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2952 parameter, if given. Use `%', not IEEEremainder.
2953 (scanFix): Throw error if multiplier already set.
2954 (computePattern): Wrote.
2956 1999-03-11 Andrew Haley <aph@cygnus.com>
2958 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2960 (nextDouble): Corrected masking logic. Handle interaction between
2961 `next' and negative numbers.
2963 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2965 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2966 * java/net/URL.java: Added general comments.
2968 1999-03-10 Tom Tromey <tromey@cygnus.com>
2970 * java/text/ChoiceFormat.java (parse): Wrote.
2972 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2974 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2975 Create ChoiceFormat objects.
2976 (format): Special-case ChoiceFormat.
2977 (scanFormatElement): Include { and } in generated style string.
2979 1999-03-09 Tom Tromey <tromey@cygnus.com>
2981 * java/text/ChoiceFormat.java: New file.
2983 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2985 * java/net/BindException.java: Created.
2986 * java/net/ConnectException.java: Created.
2987 * java/net/ContentHandler.java: Created.
2988 * java/net/ContentHandlerFactory.java: Created.
2989 * java/net/FileNameMap.java: Created.
2990 * java/net/MalformedURLException.java: Created.
2991 * java/net/NoRouteToHostException.java: Created.
2992 * java/net/ProtocolException.java: Created.
2993 * java/net/ServerSocket.java (@author): Fixed typo.
2994 * java/net/Socket.java (@author): Fixed typo.
2995 * java/net/SocketImpl.java (@author): Fixed typo.
2996 * java/net/SocketImplFactory.java (@author): Fixed typo.
2997 * java/net/URL.java: Created - nearly complete.
2998 * java/net/URLConnection.java: Created - near-empty stub.
2999 * java/net/URLStreamHandler.java: Created - incomplete stub.
3000 * java/net/URLStreamHandlerFactory.java: Created.
3001 * java/net/UnknownServiceException.java: Created.
3003 1999-03-09 Tom Tromey <tromey@cygnus.com>
3005 * java/lang/System.java (ForwardingInputStream): New class.
3006 (ForwardingOutputStream): Likewise.
3007 (in, out, err): Now `final' forwarding streams.
3008 (setIn, setOut, setErr): Use appropriate method on forwarding
3011 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3014 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3016 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3017 * java/util/zip/Checksum.java: New interface (complete).
3018 * java/util/zip/Deflater.java: New class (near-empty stub).
3019 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3020 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3021 * java/util/zip/ZipEntry.java: New class (complete).
3022 * java/util/zip/ZipException.java: New class (complete).
3023 * java/util/zip/ZipFile.java: New class (incomplete stub).
3024 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3026 1999-03-09 Tom Tromey <tromey@cygnus.com>
3028 * java/text/MessageFormat.java (MessageFormatElement): Removed
3029 `public' specifiers.
3031 * java/text/DecimalFormat.java (scanFormat): Increment index
3032 before processing exponential format. Fixed a couple typos in
3034 (format): Correct normalization of exponent.
3036 1999-03-08 Tom Tromey <tromey@cygnus.com>
3038 * java/text/SimpleDateFormat.java (parse): Throw
3039 IllegalArgumentException, not ParseException.
3041 1999-03-05 Tom Tromey <tromey@cygnus.com>
3043 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3044 when constructing DateFormatSymbols. Initialize numberFormat
3045 field of superclass.
3047 * java/text/DateFormat.java (equals): Rewrote.
3048 (getAvailableLocales): New method.
3049 (getDateInstance): New methods.
3050 (getDateTimeInstance): Likewise.
3051 (getTimeInstance): Likewise.
3052 (getInstance): New method.
3053 (computeInstance): New method.
3055 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3057 (safeGetResource): New method.
3058 (DateFormatSymbols): Use Locale paramater.
3059 (equals): Now protected.
3060 Made instance variables private.
3062 1999-03-04 Tom Tromey <tromey@cygnus.com>
3064 * java/text/DecimalFormat.java: New file.
3066 * java/text/NumberFormat.java (groupingUsed,
3067 maximumFractionDigits, maximumIntegerDigits,
3068 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3070 (setDecimalSeparatorAlwaysShown, setMultiplier,
3071 setPositivePrefix): Removed.
3072 (setMinimumFractionDigits, setMaximumFractionDigits):
3074 (format): Now final.
3075 Added many new methods.
3077 * Makefile.in: Rebuilt.
3078 * Makefile.am (gnu_files): New macro.
3079 (java_files): Added gnu_files.
3080 (class_gnu_files): New macro.
3081 (class_files): Use it.
3082 (src_gnu_files): New macro.
3083 (gnu.o): New target.
3084 (javao_files): Added gnu.o.
3086 * gnu/gcj/text/LocaleData_en_US.java: New file.
3087 * gnu/gcj/text/LocaleData_en.java: New file.
3088 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3089 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3090 (safeGetString): New method.
3091 (safeGetChar): Likewise.
3093 1999-03-03 Tom Tromey <tromey@cygnus.com>
3095 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3098 * java/text/FieldPosition.java (equals): Don't check for null
3099 object; instanceof does this.
3101 * java/util/Locale.java (clone): New method.
3104 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3106 * doc/cni.sgml: New file.
3108 1999-03-03 Tom Tromey <tromey@cygnus.com>
3110 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3112 * java/text/DecimalFormatSymbols.java: New file.
3114 1999-03-02 Tom Tromey <tromey@cygnus.com>
3116 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3118 * configure: Rebuilt.
3119 * configure.in: Check for sys/filio.h.
3121 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3123 (load): Always throw UnsatisfiedLinkError.
3124 (loadLibrary): Likewise.
3126 1999-03-02 Anthony Green <green@cygnus.com>
3128 * LIBGCJ_LICENSE: New file.
3129 * LIBJAVA_LICENSE: Removed.
3130 * Many files: libjava now libgcj.
3132 1999-03-02 Tom Tromey <tromey@cygnus.com>
3134 * include/java-chartables.h: Rebuilt.
3135 * chartables.pl (print_block): Make table `const'.
3136 (print_numerics): Likewise.
3137 (print_single_map): Likewise.
3138 (print_all_block): Likewise.
3139 (print_case_table): Likewise.
3140 (print_fast_tables): Likewise.
3141 * java/lang/natCharacter.cc (table_search): `table' argument now
3144 1999-03-01 Tom Tromey <tromey@cygnus.com>
3146 * java/util/Date.java (before, after): Inverted logic.
3148 * java/util/Date.java (parse): Handle case where first character
3149 in string is open parenthesis.
3150 (skipParens): Rewrote.
3152 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3153 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3155 * java/util/Date.java (parse): Correctly compute beginning of
3158 * java/util/Hashtable.java (get): Throw NullPointerException if
3160 (containsKey): Likewise.
3162 * java/util/Properties.java (list): Truncate value to 37
3163 characters and add `...'.
3165 * java/lang/Byte.java (parseByte): Pass `radix' to
3168 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3170 Include System.h, PrintStream.h.
3172 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3175 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3177 * configure: Rebuilt.
3178 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3181 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3183 * java/lang/SecurityManager.java: Import java.net.*.
3184 (checkMulticast): New methods.
3186 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3188 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3189 (nat_files): Add java/lang/reflect/natArray.o.
3190 (nat_headers): Add Field.h and NoSuchFieldException.h.
3192 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3193 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3194 (_Jv_FromReflectedField): Fix buglet.
3195 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3196 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3197 * prims.cc (_Jv_Abort): Include message in print-out.
3199 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3200 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3201 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3203 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3204 * include/config.h.in (HAVE_PWD_H): New feature macro.
3205 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3206 user.name, user.home, user.dir.
3208 * java/lang/reflect/Array.java: New class.
3209 * java/lang/reflect/natArray.cc: New native methods.
3210 * include/javaprims.h: Declare java::lang::reflect::Array.
3212 * java/lang/Class.h (getField): New private method. Add friends.
3213 * java/lang/Class.java (getField): Add private overload.
3214 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3215 getDeclaredMethods): Add working implementations.
3216 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3217 Finish implementation, except for access control.
3219 * java/lang/reflect/Modifier.java (toString): New overload.
3220 * include/java-method.h: New file.
3221 * java/lang/reflect/Method.java (index): Replaced by offset field.
3222 Remove various private fields - get them from _Jv_Field instead.
3223 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3224 New method implementations.
3226 * java/text/NumberFormat.java: Add a bunch of methods.
3228 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3230 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3232 1999-02-26 Tom Tromey <tromey@cygnus.com>
3234 * include/config.h.in: Rebuilt.
3235 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3236 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3237 HAVE_GETHOSTBYADDR_R): New defines.
3238 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3239 gethostbyaddr_r if available.
3241 * configure: Rebuilt.
3242 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3244 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3248 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3249 * prims.cc (_Jv_AllocBytesChecked): New function.
3251 * Makefile.in: Rebuilt.
3252 * Makefile.am (SUBDIRS): Removed `test'.
3253 * configure: Rebuilt.
3254 * configure.in: Don't build test/Makefile.
3255 * test/*: Removed all files.
3257 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3259 * java/lang/reflect/Constructor.java: Make class final to match spec.
3260 * java/lang/reflect/Method.java: Ditto.
3262 1999-02-25 Tom Tromey <tromey@cygnus.com>
3264 * java/net/natInetAddress.cc: Include <sys/types.h> before
3266 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3269 * java/net/natInetAddress.cc: Declare gethostname if required.
3270 * include/config.h.in: Rebuilt.
3271 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3272 * configure: Rebuilt.
3273 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3274 declared in unistd.h.
3276 1999-02-24 Tom Tromey <tromey@cygnus.com>
3278 * Makefile.in: Rebuilt.
3279 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3280 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3281 from private to "none".
3283 * include/javaprims.h: Regenerated class declarations with new
3285 * classes.pl (scan): Only generate decls for java.lang, java.io,
3288 1999-02-24 Tom Tromey <tromey@cygnus.com>
3290 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3291 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3293 1999-02-23 Tom Tromey <tromey@cygnus.com>
3295 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3296 not already defined.
3297 * java/io/natFile.cc (_REENTRANT): Only define if not already
3299 * include/config.h.in: Rebuilt.
3300 * acconfig.h (HAVE_BOEHM_GC): New define.
3301 * configure: Rebuilt.
3302 * configure.in: Define HAVE_BOEHM_GC if using it.
3303 * posix-threads.cc: Include boehm-config.h and gc.h if
3305 * include/posix-threads.h: Added explanatory note about Boehm GC.
3307 * java/io/BufferedReader.java (readLine): Only return null when
3308 EOF seen before any characters read. (In particular, an empty
3309 line should not return null.)
3311 * java/io/BufferedInputStream.java (read): Only refill once per
3314 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3315 java.lang.Character.classify12, java.lang.String.hash,
3316 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3317 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3319 * java/text/StringCharacterIterator.java (setIndex): No error if
3321 (next): Check for `pos == end', not `end - 1'.
3322 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3323 for null text in each constructor.
3324 (clone): Fixed order of arguments to constructor.
3326 1999-02-22 Tom Tromey <tromey@cygnus.com>
3328 * include/config.h.in: Rebuilt.
3329 * acconfig.h (HAVE_INET6): New define.
3330 (HAVE_SOCKLEN_T): Likewise.
3331 * java/net/PlainSocketImpl.java: Added copyright header.
3332 * java/net/natPlainSocketImpl.cc: Added copyright header.
3333 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3335 (connect): Likewise.
3337 (socklen_t): New typedef.
3338 (accept): Use socklen_t.
3339 * java/net/natInetAddress.cc: Added copyright header.
3340 (HAVE_GETHOSTNAME): Don't define.
3341 (HAVE_INET_ADDR): Likewise.
3342 (lookup): Fixed typo.
3343 (aton): Don't use `address' as name of local variable.
3344 (lookup): Use HAVE_INET6, not AF_INET6.
3346 * configure: Rebuilt.
3347 * configure.in: Look for functions inet_aton, inet_addr,
3348 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3349 Check for socklen_t typedef.
3351 * exception.cc (__throw): Declare as __noreturn__.
3353 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3355 * Makefile.am, Makefile.in: Also build java/net.
3356 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3358 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3359 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3361 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3362 * include/cni.h (JvMalloc, JvFree): New inline functions.
3363 (JvThrow): Add __noreturn__ attribute.
3364 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3365 (_Jv_Throw): Add __noreturn__ attribute.
3367 * java/net/PlainSocketImpl.java: Init fnum to -1.
3368 * java/net/ServerSocket.java: Add missing throws clauses.
3369 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3370 don't call create on the latter. Instead, other constructors
3371 have to explicitly call SocketImpl.create.
3372 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3373 from size_t to int, to match ::accept prototype.
3374 * java/net/natInetAddress.cc: Use JvFree rather than free.
3377 1999-02-22 Tom Tromey <tromey@cygnus.com>
3379 * include/javaprims.h: Added new classes.
3380 * java/text/StringCharacterIterator.java: New file.
3381 * java/text/CharacterIterator.java: New file.
3383 * java/text/ParseException.java (errorOffset): Now private.
3385 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3387 * java/net: New package.
3388 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3389 Socket.java,SocketException.java,SocketImpl.java,
3390 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3391 natPlainSocketImpl.cc}: New classes.
3393 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3394 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3395 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3396 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3398 * classes.pl: Translate package into "namespace", not "class".
3399 * include/javaprims.h: Update class list, using "namespace".
3401 1999-02-21 Tom Tromey <tromey@cygnus.com>
3403 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3404 Define when appropriate.
3406 1999-02-20 Tom Tromey <tromey@cygnus.com>
3408 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3409 as a single byte and \u07ff as two bytes.
3410 (_Jv_GetStringUTFLength): Likewise.
3411 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3412 with 0x0f, not 0x1f.
3414 1999-02-19 Tom Tromey <tromey@cygnus.com>
3416 * java/io/DataOutputStream.java (writeUTF): When encoding
3417 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3418 * java/io/DataInputStream.java (readUTF): Mask second byte of
3419 3-byte character with 0x3f, not 0x1f.
3421 * java/io/DataInputStream.java (readLong): Cast result of
3422 readUnsignedByte to long before using.
3424 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3427 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3428 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3429 argument to avoid warning.
3430 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3431 argument to avoid warning.
3433 1999-02-18 Tom Tromey <tromey@cygnus.com>
3435 * mauve-libjava: Omit java.io.DataInputOutput and
3436 java.io.Utf8Encoding.
3438 1999-02-17 Tom Tromey <tromey@cygnus.com>
3440 * Makefile.in: Rebuilt.
3441 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3442 * java/io/natFileDescriptorPosix.cc: Include
3443 InterruptedIOException.h, Thread.h.
3444 (write): Throw InterruptedIOException when required.
3446 * posix-threads.cc: Include <signal.h>.
3447 (_Jv_ThreadInterrupt): New function.
3449 (handle_intr): New function.
3450 (_Jv_InitThreads): Register handle_intr via sigaction.
3451 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3452 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3453 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3454 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3456 1999-02-19 Andrew Haley <aph@cygnus.com>
3458 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3460 (ThreadGroup (int)): Set the maximum priority of the initial
3463 1999-02-18 Andrew Haley <aph@cygnus.com>
3465 * java/lang/natClass.cc (forName): Check for the case where a
3466 classname is the name of an array and call FindClassFromSignature
3469 1999-02-18 Andrew Haley <aph@cygnus.com>
3471 * java/lang/StringBuffer (insert (int, String)): Move up any
3472 characters above the insert position and increase the length of
3473 the string buffer by the length of the argument.
3474 (insert (int, char[])): Likewise.
3475 (insert (int, char)): Likewise.
3476 (StringBuffer (String)): The initial capacity of the string buffer
3477 is 16 plus the length of the argument.
3478 (getChars): Add a JDK 1.2 FIXME.
3480 1999-02-18 Andrew Haley <aph@cygnus.com>
3482 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3485 1999-02-18 Andrew Haley <aph@cygnus.com>
3487 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3488 instead of floating-point equality. This is necessary for
3489 correct floating-point Hashtables.
3490 * java/lang/Float.java (equals): Ditto.
3492 1999-02-16 Tom Tromey <tromey@cygnus.com>
3494 * java/util/Properties.java (list): Truncate value to 37
3495 characters and add "...".
3497 1999-02-16 Tom Tromey <tromey@cygnus.com>
3499 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3500 if initCap is negative.
3501 (contains): Implement JDK1.2-style handling of null argument.
3502 (removeElement): Likewise.
3503 (indexOf): Likewise. Also, correctly handle case where idx is
3505 (lastIndexOf): Likewise.
3507 1999-02-16 Tom Tromey <tromey@cygnus.com>
3509 * java/lang/natString.cc (init): Increment source pointer in
3512 1999-02-16 Tom Tromey <tromey@cygnus.com>
3514 * exception.cc: Include NullPointerException.h.
3515 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3517 1999-02-16 Tom Tromey <tromey@cygnus.com>
3519 * Makefile.in: Rebuilt.
3520 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3522 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3524 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3525 we're compiling canadian.
3526 * configure: Regenerated.
3528 1999-02-12 Andrew Haley <aph@cygnus.com>
3530 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3531 deleted from libgcj.
3533 1999-02-12 Tom Tromey <tromey@cygnus.com>
3535 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3536 (_Jv_eh_free): Don't call free.
3537 Don't declare malloc or free.
3539 1999-02-11 Tom Tromey <tromey@cygnus.com>
3541 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3543 1999-02-11 Andrew Haley <aph@cygnus.com>
3545 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3546 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3547 needed by java.lang.*.
3548 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3549 wf_fmod.o: Removed from libjava.a.
3551 1999-02-11 Tom Tromey <tromey@cygnus.com>
3553 * include/javaprims.h: Reverted previous change; with it
3554 exception.cc can't compile.
3556 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3558 * include/config.h.in: Rebuilt.
3559 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3561 * configure: Rebuilt.
3562 * configure.in: Check for sched_yield. Look in thread library for
3563 all thread functions.
3565 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3566 no recursive mutexes.
3567 (_Jv_MutexDestroy): Define when required.
3568 (_Jv_MutexLock): Likewise.
3569 (_Jv_MutexUnlock): Likewise.
3570 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3571 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3572 (_Jv_Mutex_t): New structure.
3573 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3574 (_Jv_MutexLock): Likewise.
3575 (_Jv_MutexUnlock): Likewise.
3577 1999-02-10 Tom Tromey <tromey@cygnus.com>
3579 * aclocal.m4, configure, Makefile.in: Rebuilt.
3580 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3582 * configure.in: Changed to track library changes.
3583 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3584 (AM_CXXFLAGS): Likewise.
3585 (data_DATA): Likewise.
3586 (AM_CFLAGS): Likewise.
3587 (JC1FLAGS): Likewise.
3588 (libgcj_a_SOURCES): Likewise.
3589 (EXTRA_libgcj_a_SOURCES): Likewise.
3590 (libgcj_a_DEPENDENCIES): Likewise.
3591 (libgcj_a_LIBADD): Likewise.
3592 (libgcj.zip): Likewise.
3593 (CLEANFILES): Likewise.
3594 ($(nat_headers)): Likewise.
3595 (java/lang/FirstThread.h): Likewise.
3596 (java/lang/ThreadGroup.h): Likewise.
3597 (java/lang/String.h): Likewise.
3598 (java/lang/reflect/Field.h): Likewise.
3599 (BUILT_SOURCES): Likewise.
3600 (maintainer-check): Likewise.
3601 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3602 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3604 * java/util/natGregorianCalendar.cc (computeFields): Only use
3605 gmtime_r and localtime_r when configured for posix threads.
3607 * java/io/natFile.cc (get_entry): Only use readdir_r when
3608 configured for posix threads.
3610 * java/util/natGregorianCalendar.cc: Update copyright notice.
3611 * java/util/TimeZone.java: Ditto.
3612 * java/util/SimpleTimeZone.java: Ditto.
3614 1999-02-08 Tom Tromey <tromey@cygnus.com>
3616 * java/io/PrintStream.java (line_separator): New constant.
3617 (print): Use line_separator, not `file.separator' property.
3618 (println): Use line_separator.
3620 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3621 when trying to instantiate Class.
3623 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3624 NullPointerException if argument is null.
3626 * java/lang/Thread.java (setName): Throw NullPointerException, not
3627 IllegalArgumentException.
3630 1999-02-08 Andrew Haley <aph@cygnus.com>
3632 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3633 create new Classes with Class.newInstance().
3635 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3636 semiciolon to end of an array Class's signature if the elements of
3637 the array aren't themselves arrays.
3639 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3640 array of objects is always sizeof(jobject), not the size of the
3641 object to which the reference points.
3643 1999-02-08 Tom Tromey <tromey@cygnus.com>
3645 * java/util/BitSet.java (and): Throw NullPointerException when
3650 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3651 if argument is negative.
3652 (clear): Correctly compute `offset'. Throw
3653 IndexOutOfBoundsException when required.
3655 (get): Likewise. Also, return correct value.
3656 (ensure): Changed meaning of argument.
3657 (toString): Wrap contents in `{}'; put spaces after commas.
3658 (hashCode): Don't try to examine elements off the end of array.
3659 (or): Correctly include bits past the end of this bit set.
3662 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3664 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3665 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3667 1999-02-04 Andrew Haley <aph@cygnus.com>
3669 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3670 '/' in signatures to '.'
3671 (Class::getName): Likewise,
3672 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3674 * java/lang/natFirstThread.cc (run): Change '/' in main's
3677 1999-02-03 Andrew Haley <aph@cygnus.com>
3679 * configure.host: -ffloat-store added when compiling libjava on
3680 x86. fdlibm apparently relies on this.
3682 * java/lang/ThreadGroup.java (add): throw an exception if the
3683 ThreadGroup has been destroyed.
3685 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3688 1999-01-27 Tom Tromey <tromey@cygnus.com>
3690 * java/lang/StringBuffer.java (StringBuffer): Handle null
3693 1999-01-21 Tom Tromey <tromey@cygnus.com>
3695 * java/lang/natFirstThread.cc (run): Don't require main to be
3698 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3700 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3702 1999-01-20 Tom Tromey <tromey@cygnus.com>
3704 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3708 (unintern): Likewise.
3709 (_Jv_NewStringUtf8Const): Likewise.
3711 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3712 Character.isLetter, to see if character is self-quoting. Also,
3713 correctly handle quoted characters.
3714 (parse): Fixed typo. Also now throws ParseException.
3716 1999-01-15 Tom Tromey <tromey@cygnus.com>
3718 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3720 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3721 _Jv_SyncInfo has `init' member.
3723 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3726 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3727 IllegalMonitorStateException if unlock fails.
3729 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3731 (_Jv_NewObjectArray): Likewise.
3733 1999-01-14 Tom Tromey <tromey@cygnus.com>
3735 * java/lang/Character.java (isJavaIdentifierPart): Allow
3736 LETTER_NUMBER characters.
3738 * chartables.pl (process_char): Fixed error messages.
3740 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3741 * chartables.pl: Updated comments. Changed detection of non-digit
3742 numeric values (no longer miss \u00b2 and friends).
3744 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3745 currency symbols and connector punctuation.
3746 (isIdentifierIgnorable): Make 7f-9f ignorable.
3748 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3749 (_Jv_NewPrimArray): Likewise.
3750 (SIZE_T_MAX): New define.
3752 * java/lang/ClassLoader.java (system): Now private and final.
3754 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3757 * configure: Rebuilt.
3758 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3760 * exception.cc: Include gansidecl.h.
3762 1999-01-14 Andrew Haley <aph@cygnus.com>
3764 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3765 corrected: they didn't treat -0.0 and NaNs correctly.
3767 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3769 * nogc.cc: Use calloc to zero out memory.
3771 1999-01-11 Tom Tromey <tromey@cygnus.com>
3773 * java/lang/natClass.cc (isInstance): Return false if this class
3774 is primitive, not if class of `obj' is primitive.
3775 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3777 * java/io/SequenceInputStream.java (close): Handle case where `in'
3780 * java/text/DateFormat.java (format): New method.
3782 * mauve-libjava: Omit java.text.DateFormat.
3784 1999-01-08 Tom Tromey <tromey@cygnus.com>
3786 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3788 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3790 (_Jv_CondNotifyAll): Likewise.
3792 * configure: Rebuilt.
3793 * configure.in: Change --enable-source-compilation logic to work
3796 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3798 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3799 and RUNTESTFLAGS from AM_MAKEFLAGS.
3800 * configure.in: AM_RUNTESTFLAGS added.
3801 * configure.host: AM_RUNTESTFLAGS added.
3802 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3803 * configure: rebuilt.
3804 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3806 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3807 argv[] made conditional because embedded targets may not have
3809 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3810 explanatory comments added in call to super.
3812 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3813 exception thrown in the test harness itself added.
3814 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3816 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3818 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3820 1999-01-06 Tom Tromey <tromey@cygnus.com>
3822 * java/io/natFile.cc (get_entry): New function.
3823 (performList): Use get_entry.
3824 * include/config.h.in: Rebuilt.
3825 * acconfig.h (HAVE_READDIR_R): New define.
3826 * configure: Rebuilt.
3827 * configure.in: Look for readdir_r.
3829 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3831 * java/util/natDate.cc: Added copyright header.
3833 1999-01-05 Tom Tromey <tromey@cygnus.com>
3835 * include/config.h.in: Rebuilt.
3836 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3837 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3838 * configure: Rebuilt.
3839 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3840 unlink, and realpath.
3841 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3842 (stat): Conditionalize on HAVE_STAT.
3844 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3845 (performMkdir): Conditionalize on HAVE_MKDIR.
3846 (performRenameTo): Conditionalize on HAVE_RENAME.
3847 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3849 * include/config.h.in: Rebuilt.
3850 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3851 * configure: Rebuilt.
3852 * configure.in: Check for gmtime_r and localtime_r. For cross
3853 builds, assume they exist.
3855 * mauve-libjava: Include java.text.DateFormatSymbols again.
3856 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3857 from setAmPmStrings.
3859 * mauve-libjava: Omit java.text.DateFormatSymbols.
3861 1999-01-04 Tom Tromey <tromey@cygnus.com>
3863 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3865 * java/io/LineNumberReader.java (read): Decrement `count' in
3868 * java/io/BufferedWriter.java (write): Correctly determine when
3869 incoming data would overrun buffer. Flush buffer if write causes
3872 * java/io/BufferedOutputStream.java (write): Increment `count'
3873 after copying data into buffer.
3875 * java/io/FilterOutputStream.java (close): Call flush first.
3877 * java/io/PipedReader.java (read): If read causes `out' to catch
3878 up with `in', then set `in' to -1.
3880 * java/io/LineNumberInputStream.java (read): If no bytes read,
3881 return -1. If no bytes requested, return 0.
3883 * java/lang/StringBuffer.java (insert): If `str' is null, use
3886 1998-12-30 Anthony Green <green@cygnus.com>
3889 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3891 1998-12-23 Tom Tromey <tromey@cygnus.com>
3893 * java/io/PushbackInputStream.java (read): `off' already includes
3896 1998-12-17 Tom Tromey <tromey@cygnus.com>
3898 * Makefile.in: Rebuilt.
3899 * Makefile.am (GCJ_canadian): Include target_alias.
3901 * java/lang/natFirstThread.cc (run): Require main's class to be
3904 1998-12-16 Tom Tromey <tromey@cygnus.com>
3906 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3908 * java/util/ResourceBundle.java (getBundle): Throw
3909 NullPointerException if locale argument is null.
3911 * java/lang/natClass.cc (forName): Throw NullPointerException if
3913 Include NullPointerException.h.
3915 1998-12-14 Tom Tromey <tromey@cygnus.com>
3917 * java/lang/Character.java (Character): Implement Comparable.
3918 (compareTo): New methods.
3920 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3921 correct country and language codes.
3922 (UK, US): New constants.
3923 (setDefault): Language codes are lower-case.
3925 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3926 (getDeclaredConstructors): Likewise.
3927 (getDeclaredField): Likewise.
3928 (getDeclaredFields): Likewise.
3929 (getDeclaredMethod): Likewise.
3930 (getDeclaredMethods): Likewise.
3931 (getField): Likewise.
3932 (getFields): Likewise.
3933 (getMethod): Likewise.
3934 (getMethods): Likewise.
3935 * java/lang/Class.java: Declare new methods.
3936 * java/lang/Class.h: Declare new methods.
3938 * java/lang/natString.cc: Removed `#pragma implementation'.
3939 * include/cni.h (_Jv_GetStringChars): New function.
3940 * Makefile.in: Rebuilt.
3941 * Makefile.am (java/lang/String.h): Don't generate definition for
3944 * java/lang/natString.cc: Added `#pragma implementation'.
3946 * Makefile.in: Rebuilt.
3947 * Makefile.am (libjava.zip): Put build directory first in class
3948 path to avoid bug in compiler.
3950 1998-12-14 Anthony Green <green@cygnus.com>
3952 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3954 * include/javaprims.h: Add EventObject, ListResourceBundle and
3957 1998-12-13 Anthony Green <green@cygnus.com>
3959 * mauve-libjava: Run the ResourceBundle tests.
3961 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3964 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3966 * configure.in, configure: Make --enable-gcj-classes and
3967 --enable-source-compilation the default. (Nervously...) Yeah!
3968 Based on a patch from Tom Tromey.
3970 1998-12-13 Tom Tromey <tromey@cygnus.com>
3972 * java/util/EventObject.java: New file.
3973 * java/util/EventListener.java: New file.
3975 * include/javaprims.h: Updated class declarations.
3976 * Makefile.in: Rebuilt.
3977 * Makefile.am (nat_headers): Added Constructor.h.
3978 (java/lang/String.h): Don't inline String::length().
3979 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3980 * java/lang/Class.java (initializeClass, hackRunInitializers,
3981 hackTrampoline): No need to mark `final'.
3982 (getConstructor, getConstructors): Declare.
3983 * java/lang/reflect/Field.java (equals): New method.
3984 * java/lang/natClass.cc (getConstructor): New method.
3985 (getConstructors): Likewise.
3986 Include Method.h, Field.h, Constructor.h.
3987 * java/lang/reflect/Constructor.java: New file.
3988 * java/lang/reflect/Method.java (toString): No space before open
3990 (equals): Simplified.
3992 1998-12-13 Anthony Green <green@cygnus.com>
3994 * java/util/ResourceBundle.java: New file.
3995 * java/util/ListResourceBundle.java: New file.
3997 1998-12-12 Tom Tromey <tromey@cygnus.com>
3999 * java/lang/System.java (in, out, err): Now buffered streams by
4002 * include/javaprims.h: Updated class declarations.
4003 * Makefile.in: Rebuilt.
4004 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4005 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4007 (nat_files): Added natMethod.o.
4008 * java/lang/reflect/natMethod.cc: New file.
4009 * java/lang/reflect/Field.java (Field): Now extends
4011 * java/lang/reflect/AccessibleObject.java: New file.
4012 * java/lang/reflect/InvocationTargetException.java: New file.
4014 1998-12-11 Tom Tromey <tromey@cygnus.com>
4016 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4017 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4018 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4020 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4022 1998-12-09 Tom Tromey <tromey@cygnus.com>
4024 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4027 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4028 character is already titlecase.
4030 * java/lang/Character.java (isJavaLetter): Follow spec.
4031 (isJavaLetterOrDigit): Likewise.
4033 * java/util/GregorianCalendar.java (gregorianCutover): Append
4036 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4038 1998-12-08 Tom Tromey <tromey@cygnus.com>
4040 * java/lang/reflect/Modifier.java (toString): Replace second
4041 `static' with `synchronized'.
4043 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4044 * java/lang/Object.h (Object::hack12_6): Declare.
4045 * java/lang/Object.java (hack12_6): New function.
4047 1998-12-07 Tom Tromey <tromey@cygnus.com>
4049 * include/java-array.h (__JArray::clone): Removed decl.
4050 * prims.cc (__JArray::clone): Removed.
4051 * java/lang/natObject.cc (clone): Incorporate code to clone an
4054 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4055 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4056 Correctly use dtable_method_count.
4058 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4060 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4063 1998-12-06 Anthony Green <green@cygnus.com>
4065 * mauve-libjava: Don't test ResourceBundle.
4067 1998-12-04 Tom Tromey <tromey@cygnus.com>
4069 More JDK 1.2 spec fixes:
4070 * java/util/Date.java (millis): Now private.
4071 * java/text/DateFormat.java (DateFormat): Constructor now
4073 * java/lang/Void.java (Void): New private constructor.
4074 * java/lang/System.java (System): New private constructor.
4075 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4077 (currentClassLoader): New method.
4078 (currentLoadedClass): New method.
4079 * java/lang/Math.java (Math): New private constructor.
4080 * java/lang/Compiler.java (Compiler): New private constructor.
4081 * java/lang/Class.java (Class): New private constructor.
4082 * java/lang/Double.java (toString): Removed access specifier from
4083 two-argument `toString' method.
4085 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4087 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4088 causes it to be flushed from an fp register (where it may be
4089 longer than double precision) to a double in memory. This is
4090 essential to ensure correct rounding behaviour.
4092 1998-12-04 Tom Tromey <tromey@cygnus.com>
4094 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4097 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4098 explaining apparent divergence from JDK 1.2.
4100 1998-12-04 Per Bothner <bothner@cygnus.com>
4102 * include/no-threads.h: Remove unused parameter names.
4103 This silences a bunch of warnings.
4105 1998-12-04 Tom Tromey <tromey@cygnus.com>
4107 * include/config.h.in: Rebuilt.
4108 * acconfig.h (HAVE_CTIME_R): New symbol.
4110 1998-12-03 Tom Tromey <tromey@cygnus.com>
4112 * mauve-libjava: Added many more categories to reject.
4114 Changes to follow JDK1.2 spec:
4115 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4116 setErr, setIn, setOut): No need to be `final'.
4117 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4118 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4119 * java/lang/Object.java (wait): `nanos' argument is an int.
4120 * java/lang/VirtualMachineError.java: Class is abstract.
4121 * java/lang/ThreadDeath.java: Made constructors public.
4122 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4125 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4127 * java/text/DateFormatSymbols.java (getAmPmStrings,
4128 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4130 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4132 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4133 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4134 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4137 * java/lang/IllegalThreadStateException.java
4138 (IllegalThreadStateException): Changed extending class to match spec.
4140 * java/lang/NumberFormatException.java
4141 (java/lang/NumberFormatException): Changed extending class to match
4144 * java/util/Observer.java (Observer): Changed sig to match JCL.
4146 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4148 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4149 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4150 signature to match JDK 1.1 and 1.2.
4152 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4154 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4155 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4156 * Makefile.in, configure: Rebuilt.
4158 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4161 1998-12-02 Tom Tromey <tromey@cygnus.com>
4163 * mauve-libjava: New file.
4165 The remaining `-W -Wall' fixes:
4166 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4168 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4170 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4172 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4174 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4176 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4178 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4180 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4182 * java/lang/mprec.c (Balloc): Removed unused variable.
4183 (mult): Added parentheses per gcc suggestion.
4184 (pow5mult): Likewise.
4189 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4190 suggestion. Added cast to `int' to avoid signed/unsigned
4192 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4194 (IsAssignableFrom): Likewise.
4195 (_Jv_JNI_GetObjectField): Likewise.
4196 (_Jv_JNI_GetByteField): Likewise.
4197 (_Jv_JNI_GetShortField): Likewise.
4198 (_Jv_JNI_GetIntField): Likewise.
4199 (_Jv_JNI_GetLongField): Likewise.
4200 (_Jv_JNI_GetStringLength): Likewise.
4201 (_Jv_JNI_ToReflectedField): Likewise.
4202 (_Jv_JNI_FromReflectedField): Likewise.
4203 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4205 * Makefile.in: Rebuilt.
4206 * Makefile.am (AM_CFLAGS): Define conditionally.
4207 (WARNINGS): New macro.
4208 (AM_CXXFLAGS): Include WARNINGS.
4209 * configure: Rebuilt.
4210 * configure.in (USING_GCC): New conditional.
4212 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4214 * java/lang/Character.java: Changed classification constants to
4215 type `byte' to match JDK 1.2 docs.
4217 1998-12-01 Tom Tromey <tromey@cygnus.com>
4219 Some fixes to be `-W -Wall' clean:
4220 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4221 (_Jv_MarkArray): Likewise.
4222 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4223 (to_upper_title): Likewise.
4224 (isTitleCase): Likewise.
4225 (toTitleCase): Likewise.
4226 (getNumericValue): Likewise.
4227 (isLowerCase): Likewise.
4228 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4229 (avoids compiler warning).
4230 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4232 (getDeclaringClass): Likewise.
4233 (_Jv_LookupInterfaceMethod): Likewise.
4234 (_Jv_NewClass): Removed name of unused parameter.
4235 * exception.cc (_Jv_type_matcher): Removed unused variable.
4236 (_Jv_setup_eh_info): Removed name of unused parameter.
4237 * prims.cc (_Jv_NewArray): Always return a value.
4238 (_Jv_FindClassFromSignature): Likewise.
4239 * include/java-field.h (getNameUtf8Const): Removed name of unused
4241 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4243 (_Jv_ThreadSetPriority): Likewise.
4245 * java/lang/natString.cc (hashChars): Now static.
4247 * java/lang/FirstThread.java (FirstThread): Now final.
4249 * java/io/File.java (performMkdir, performRenameTo): Now private.
4251 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4252 if no time function defined.
4254 * configure: Rebuilt.
4255 * configure.in: Look for ctime_r, ctime.
4256 * java/util/Date.java (toString): Now native.
4257 * java/util/natDate.cc (toString): Rewrote.
4259 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4261 * Add LDFLAGS line to allow TX39 test cases to link when cross
4264 1998-11-23 Anthony Green <green@cygnus.com>
4266 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4267 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4268 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4269 include/java-array.h, include/java-assert.h, include/java-field.h,
4270 include/javaprims.h, include/jni.h, include/jvm.h,
4271 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4272 include/quick-threads.h, java/io/BufferedInputStream.java,
4273 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4274 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4275 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4276 java/io/CharArrayWriter.java,
4277 java/io/CharConversionException.java, java/io/DataInput.java,
4278 java/io/DataInputStream.java, java/io/DataOutput.java,
4279 java/io/DataOutputStream.java, java/io/EOFException.java,
4280 java/io/File.java, java/io/FileDescriptor.java,
4281 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4282 java/io/FileOutputStream.java, java/io/FileReader.java,
4283 java/io/FileWriter.java, java/io/FilenameFilter.java,
4284 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4285 java/io/FilterReader.java, java/io/FilterWriter.java,
4286 java/io/IOException.java, java/io/InputStream.java,
4287 java/io/InputStreamReader.java,
4288 java/io/InterruptedIOException.java,
4289 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4290 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4291 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4292 java/io/PipedReader.java, java/io/PipedWriter.java,
4293 java/io/PrintStream.java, java/io/PrintWriter.java,
4294 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4295 java/io/RandomAccessFile.java, java/io/Reader.java,
4296 java/io/SequenceInputStream.java, java/io/Serializable.java,
4297 java/io/StreamTokenizer.java,
4298 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4299 java/io/StringWriter.java, java/io/SyncFailedException.java,
4300 java/io/UTFDataFormatException.java,
4301 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4302 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4303 java/io/natFileDescriptorPosix.cc,
4304 java/lang/AbstractMethodError.java,
4305 java/lang/ArithmeticException.java,
4306 java/lang/ArrayIndexOutOfBoundsException.java,
4307 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4308 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4309 java/lang/Class.java, java/lang/ClassCastException.java,
4310 java/lang/ClassCircularityError.java,
4311 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4312 java/lang/ClassNotFoundException.java,
4313 java/lang/CloneNotSupportedException.java,
4314 java/lang/Cloneable.java, java/lang/Comparable.java,
4315 java/lang/Compiler.java, java/lang/Double.java,
4316 java/lang/Error.java, java/lang/Exception.java,
4317 java/lang/ExceptionInInitializerError.java,
4318 java/lang/FirstThread.java, java/lang/Float.java,
4319 java/lang/IllegalAccessError.java,
4320 java/lang/IllegalAccessException.java,
4321 java/lang/IllegalArgumentException.java,
4322 java/lang/IllegalMonitorStateException.java,
4323 java/lang/IllegalStateException.java,
4324 java/lang/IllegalThreadStateException.java,
4325 java/lang/IncompatibleClassChangeError.java,
4326 java/lang/IndexOutOfBoundsException.java,
4327 java/lang/InstantiationError.java,
4328 java/lang/InstantiationException.java, java/lang/Integer.java,
4329 java/lang/InternalError.java, java/lang/InterruptedException.java,
4330 java/lang/LinkageError.java, java/lang/Long.java,
4331 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4332 java/lang/NoClassDefFoundError.java,
4333 java/lang/NoSuchFieldError.java,
4334 java/lang/NoSuchFieldException.java,
4335 java/lang/NoSuchMethodError.java,
4336 java/lang/NoSuchMethodException.java,
4337 java/lang/NullPointerException.java, java/lang/Number.java,
4338 java/lang/NumberFormatException.java, java/lang/Object.h,
4339 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4340 java/lang/Process.java, java/lang/Runnable.java,
4341 java/lang/Runtime.java, java/lang/RuntimeException.java,
4342 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4343 java/lang/Short.java, java/lang/StackOverflowError.java,
4344 java/lang/String.java, java/lang/StringBuffer.java,
4345 java/lang/StringIndexOutOfBoundsException.java,
4346 java/lang/System.java, java/lang/Thread.java,
4347 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4348 java/lang/Throwable.java, java/lang/UnknownError.java,
4349 java/lang/UnsatisfiedLinkError.java,
4350 java/lang/UnsupportedOperationException.java,
4351 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4352 java/lang/Void.java, java/lang/natCharacter.cc,
4353 java/lang/natClass.cc, java/lang/natDouble.cc,
4354 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4355 java/lang/natMath.cc, java/lang/natObject.cc,
4356 java/lang/natRuntime.cc, java/lang/natString.cc,
4357 java/lang/natSystem.cc, java/lang/natThread.cc,
4358 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4359 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4360 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4361 java/text/FieldPosition.java, java/text/Format.java,
4362 java/text/NumberFormat.java, java/text/ParseException.java,
4363 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4364 java/util/BitSet.java, java/util/Calendar.java,
4365 java/util/ConcurrentModificationException.java,
4366 java/util/Date.java, java/util/Dictionary.java,
4367 java/util/EmptyStackException.java, java/util/Enumeration.java,
4368 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4369 java/util/Locale.java, java/util/MissingResourceException.java,
4370 java/util/NoSuchElementException.java, java/util/Observable.java,
4371 java/util/Observer.java, java/util/Properties.java,
4372 java/util/Random.java, java/util/SimpleTimeZone.java,
4373 java/util/Stack.java, java/util/StringTokenizer.java,
4374 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4375 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4378 * exception.cc: Include eh-common.h instead of duplicating
4381 1998-11-23 Tom Tromey <tromey@cygnus.com>
4383 * configure.host: Don't add `-O2' to libjava_flags. Only add
4384 `-Os' to libjava_flags once.
4386 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4388 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4389 * Makefile.in: likewise
4390 * acconfig.h: add ECOS conditional for configure.h
4391 * config.h.in: likewise
4392 * configure: add test for --with-ecos
4393 * configure.in: likewise
4394 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4395 rename call to avoid name clash.
4396 * java/lang/natSystem.cc: add eCos clock support.
4397 * java/util/natGregorianCalendar.cc: add eCos support.
4399 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4401 * Makefile.am, Makefile.in, configure.host: tx39 build option
4404 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4406 * java/io/BufferedReader.java: Added more comments for clarity.
4407 (mark): Used more mnemonic name for local var extraBuffSpace.
4409 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4410 confusion with private method of same name in superclass.
4411 (skipRedundantLF): Set fields in special case to avoid infinite
4412 recursion. Check if markPos has been invalidated in special case.
4413 (readLine): Rewritten to use readLine method of superclass.
4414 (skip): Incorporated code from lineEnd.
4416 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4418 * java/io/BufferedReader.java (readLine): New method.
4419 (lineEnd): new private method.
4420 (mark): Track special case for readLine of getting '\r' at the
4427 * java/io/InputStreamReader.java (read): Return number chars skipped
4428 rather than requested.
4430 * java/lang/StringBuffer.java (append): Update count and differentiate
4431 between field and local variable.
4433 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4434 seconds. Deal with military style time.
4435 (parse): Consistently treat all timezones in minutes until final
4436 calculation. Flag as non-local timezone. Return value in milliseconds.
4437 (setTime): Adjust for year offset from 1900.
4438 (UTC): Adjust for year offset from 1900.
4440 1998-11-17 Tom Tromey <tromey@cygnus.com>
4442 * configure: Rebuilt.
4443 * configure.in: Switch on host, not target.
4445 * Makefile.in: Rebuilt.
4446 * Makefile.am (GCJ_no): New macro.
4447 (GCJ): Use @CANADIAN@.
4448 (GCJH_no): New macro
4449 (GCJH_canadian): New macro.
4450 (GCJH): Use @CANADIAN@.
4451 (ZIP_no): New macro.
4452 (ZIP_canadian): New macro.
4453 (ZIP): Use @CANADIAN@.
4454 * aclocal.m4, configure: Rebuilt.
4455 * configure.in (CANADIAN): Compute and subst.
4457 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4459 * java/io/FileDescriptor.java (finalize): Only close file
4460 descriptor if valid.
4462 1998-11-17 Tom Tromey <tromey@cygnus.com>
4464 * prims.cc (_Jv_InitRuntime): Removed.
4466 1998-11-16 Tom Tromey <tromey@cygnus.com>
4468 * java/io/FileOutputStream.java (close): Only close file
4469 descriptor if valid.
4470 (finalize): New method.
4472 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4473 (_Jv_NewPrimArray): Likewise.
4474 * boehm.cc (_Jv_RegisterFinalizer): Use
4475 GC_REGISTER_FINALIZER_NO_ORDER.
4476 (GC_GENERIC_MALLOC): New define.
4477 (_Jv_AllocObj): Use it.
4478 (_Jv_AllocArray): Likewise.
4479 (_Jv_AllocBytes): Likewise.
4480 (_Jv_MarkObj): Just return if vtbl not set.
4481 (_Jv_MarkArray): Likewise.
4482 (MAYBE_MARK): New macro; use everywhere.
4483 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4485 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4487 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4488 to a jlong before calculation to prevent overflow.
4490 1998-11-16 Tom Tromey <tromey@cygnus.com>
4492 * Makefile.in: Rebuilt.
4493 * Makefile.am (nat_headers): Fixed typo.
4495 1998-11-15 Tom Tromey <tromey@cygnus.com>
4497 * java/lang/Class.h (Class::getName): Removed definition.
4498 * Makefile.in: Rebuilt.
4499 * Makefile.am (nat_headers): Added InstantiationException.h,
4500 NoSuchMethodException.h.
4501 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4502 (init_name): New global.
4503 (hackRunInitializers): Use clinit_name.
4504 Include InstantiationException.h, NoSuchMethodException.h.
4505 (newInstance): Do some error checking (but not all). Call
4507 (forName): Throw exception if class not found.
4508 (getName): New method.
4509 (forName): Transform class name from external format to internal
4510 format before lookup.
4512 1998-11-15 Anthony Green <green@cygnus.com>
4514 * java/lang/Class.h (Class::forName): Method is static.
4516 * java/lang/natClass.cc (newInstance): Add simple implementation.
4519 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4521 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4522 int), for compatibility with jc1.
4524 1998-11-14 Tom Tromey <tromey@cygnus.com>
4526 * include/config.h.in: Rebuilt.
4527 * acconfig.h (LINUX_THREADS): New define.
4528 * configure: Rebuilt.
4529 * configure.in: Define LINUX_THREADS if using POSIX threads on
4530 Linux. Look for pthread_mutexattr_setkind_np function.
4531 * posix-threads.cc (throw_cleanup): New function.
4532 (really_start): Push cleanup function.
4533 (_Jv_ThreadCancel): New function.
4534 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4535 (_Jv_ThreadInitData): Set `exception' field in new structure.
4536 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4538 (_Jv_ThreadWait): New function.
4539 (_Jv_InitThreads): Initialize daemon globals.
4540 (FLAG_DAEMON): New macro.
4541 (really_start): Notify daemon_cond when non-daemon thread exits.
4542 Include <java/lang/System.h>.
4543 (struct starter): `object' field now a thread.
4544 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4545 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4546 (_Jv_ThreadWait): Removed definition.
4547 (_Jv_Thread_t): Added `exception' field.
4548 (_Jv_ThreadCancel): Removed definition.
4550 1998-11-13 Tom Tromey <tromey@cygnus.com>
4552 * Makefile.in: Rebuilt.
4553 * Makefile.am (libjava.zip): Compute javac before changing
4556 * Makefile.in: Rebuilt.
4557 * Makefile.am (libjava.zip): Include directory entries.
4559 * Makefile.in: Rebuilt.
4560 * Makefile.am (expanded): New macro.
4563 1998-11-12 Tom Tromey <tromey@cygnus.com>
4565 * prims.cc (clone): New function.
4566 * include/java-array.h (__JArray::clone): Removed definition.
4568 * java/lang/natObject.cc (clone): Don't assert that class is not
4569 an array; array's `clone' method just calls this one.
4571 * Makefile.in: Rebuilt.
4572 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4573 Now creates zip file. Changed all users.
4575 (data_DATA): New macro.
4577 1998-11-11 Tom Tromey <tromey@cygnus.com>
4579 * configure: Rebuilt.
4580 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4582 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4584 * java/io/InputStream.java (reset): Add msg to thrown exception.
4586 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4588 * java/io/LineNumberInputStream.java: Rewritten.
4590 * java/io/StringBufferInputStream.java: Removed extraneous import.
4592 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4594 * java/io/StringBufferInputStream.java: Rewritten.
4596 * java/util/Date.java (parseMonth): Optimize.
4597 (parseDayOfWeek): Created.
4598 (parse): Optimize to use parseDayOfWeek.
4600 1998-11-11 Tom Tromey <tromey@cygnus.com>
4602 * java/lang/StringBuffer.java (append): Handle case where STR is
4605 * include/javaprims.h: Regenerated class declarations.
4607 * configure: Rebuilt.
4608 * configure.in: Added --enable-gcj-classes,
4609 --enable-single-compilation, --enable-source-compilation flags.
4610 * Makefile.in: Rebuilt.
4611 * Makefile.am (java_io_files): New macro.
4612 (java_lang_files): Likewise.
4613 (java_text_files): Likewise.
4614 (java_util_files): Likewise.
4615 (java_files): Use new macros.
4616 (java-io.o): New target.
4617 (java-lang.o): Likewise.
4618 (java-text.o): Likewise.
4619 (java-util.o): Likewise.
4620 (src_io_files): New macro.
4621 (src_lang_files): Likewise.
4622 (src_text_files): Likewise.
4623 (src_util_files): Likewise.
4624 (class_io_files): New macro.
4625 (class_lang_files): Likewise.
4626 (class_text_files): Likewise.
4627 (class_util_files): Likewise.
4628 (class_files): Use new macros.
4629 (javao_files): Define conditionally.
4630 (.java.o): New target.
4631 ($(javao_files)): New target.
4633 (GCJH): Added $(EXEEXT).
4634 (CLASSPATH_ENV): Removed.
4635 (GCJCOMPILE): New macro.
4637 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4639 * java/util/Date.java (parse): Written from scratch.
4641 1998-11-11 Tom Tromey <tromey@cygnus.com>
4643 * java/lang/Throwable.java (toString): Correct sense of test for
4644 determining when to include detail message in result.
4646 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4649 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4651 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4653 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4654 (_Jv_RegisterClass): Use it.
4655 * include/jvm.h (_Jv_RegisterClasses): Declare.
4656 * java/lang/natObject.cc (init): Removed.
4657 (sync_init): Never call _Jv_InitializeSyncMutex.
4658 (_Jv_InitializeSyncMutex): Don't set `init'.
4659 * prims.cc (JvRunMain): Don't run init functions.
4661 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4663 * java/lang/natClass.cc (initializeClass): Set state before
4664 resolving constants.
4666 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4667 (STATE_RESOLVED): New macro.
4668 (initializeClass): Call resolveConstants.
4669 (hackRunInitializers): Don't call resolveConstants.
4670 (_Jv_FindArrayClass): Move short-circuit return for primitive
4671 element types earlier in function.
4673 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4675 * prims.cc (no_memory): New global.
4676 (_Jv_makeUtf8Const): Throw no_memory.
4677 (_Jv_AllocObject): Likewise.
4678 (_Jv_NewObjectArray): Likewise.
4679 (_Jv_NewPrimArray): Likewise.
4680 (JvRunMain): Initialize no_memory.
4682 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4684 * java/io/FileInputStream.java: Corrected date comment.
4685 * java/io/SequenceInputStream.java: Rewritten.
4687 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4689 * java/lang/FirstThread.java (die): New method.
4690 * java/lang/natFirstThread.cc (die): Removed.
4692 (run): Use `DIE', not `die'.
4694 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4696 * java/io/CharArrayReader.java (read): Move check into synchronized
4697 block to prevent a close while in progress.
4700 * java/io/PushbackReader.java (read): Ditto.
4703 * java/io/StringReader.java (mark): Ditto.
4708 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4710 * java/io/PipedInputStream.java: Updated status.
4711 (connect): Added code to prevent infinite recursion and to
4712 differentiate exception causes.
4713 (read): Added code to differentiate exception causes.
4714 (receive): Made exception pass string with the cause.
4716 * java/io/PipedOutputStream.java: Updated status.
4717 (connect): Added code to call connect at the other end of the pipe.
4719 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4721 * java/io/PipedInputStream.java (connect): Throw exception if
4722 already connected to the same output stream.
4723 (read): Do bounds checking first.
4725 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4727 * java/io/PipedInputStream.java: Added private boolean outClosed.
4728 (available): Removed check if output stream is open.
4729 (close): Mark the buffer as empty so available returns 0.
4730 (read): Check if the output stream was closed and then return EOF
4731 when the buffer is empty.
4732 (receive): Mark the output stream as closed when passed a -1.
4734 * java/io/PipedOutputStream.java (close): Notify the input stream
4735 that there's no more data coming.
4736 (connect): Added a FIXME comment to note more coordination needed
4737 with PipedInputStream.
4738 (flush): Added a FIXME comment to mark what this method might do
4741 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4743 * java/io/PipedInputStream.java: Rewritten.
4745 1998-10-30 Tom Tromey <tromey@cygnus.com>
4747 * java/lang/Throwable.java: Rewrote from scratch.
4749 * java/lang/Class.h (Class): Don't mention newMultiArray.
4750 * prims.cc (newMultiArray): Removed.
4751 (_Jv_NewMultiArray): Removed.
4752 (newArray): Removed.
4753 (new_multi_array): New function.
4754 (_Jv_NewMultiArray): Rewrote from scratch.
4756 * include/javaprims.h: Regenerated class declarations.
4757 * classes.pl (scan): Don't declare PrimClass.
4758 * include/cni.h (JvPrimClass): Use new names for classes.
4759 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4760 added _Jv_PrimClass.
4761 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4762 (_Jv_initPrimClass): Removed.
4763 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4764 (_Jv_AllocObject): Added comment.
4765 (_Jv_NewObjectArray): Likewise.
4766 (_Jv_NewPrimArray): Likewise.
4768 1998-10-29 Tom Tromey <tromey@cygnus.com>
4770 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4771 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4773 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4775 * java/lang/natObject.cc (init): New global.
4776 (sync_init): Call _Jv_InitializeSyncMutex if required.
4778 * Makefile.in: Rebuilt.
4779 * Makefile.am (nat_headers): Added ClassLoader.h.
4780 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4781 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4782 internalAddClass, lookupArray no longer friends.
4783 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4784 _Jv_FindArrayClass now friends.
4785 * java/lang/natClass.cc (HASH_LEN): New macro.
4786 (HASH_UTF): Likewise.
4787 (loaded_classes): New global.
4788 (_Jv_FindClass): New function.
4789 (ClassClass): New define.
4790 (_Jv_FindClassInCache): New function.
4791 (_Jv_RegisterClass): Likewise.
4792 (_Jv_NewClass): Likewise.
4794 (ObjectClass): New define.
4795 (CloneableClass): New define.
4796 * prims.cc (_Jv_FindClass): Removed.
4797 (simpleLookupClass): Removed.
4798 (insertClass): Removed.
4799 (CLASSHASHSZ): Removed.
4800 (classPool): Removed.
4801 (_Jv_RegisterClass): Removed.
4802 (internalAddClass): Removed.
4803 (ClassClass): Removed.
4804 (RuntimeClass): Removed.
4805 (lookupArray): Removed.
4806 (CloneableClass): Removed.
4807 (CLASSMAXSIG): Removed.
4808 Rearranged file to group related functions together.
4809 (_Jv_IsInstanceOf): Moved to natClass.cc.
4810 (abort_final): Removed.
4811 Removed some unused includes.
4812 (classFromSig): Removed.
4813 (_Jv_FindClassFromSignature): New function.
4814 (_Jv_initPrimClass): Renamed.
4815 (getClass): Removed.
4817 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4819 * java/io/FileDescriptor.java (finalize): Throws IOException
4820 instead of Throwable.
4822 * java/io/FileInputStream.java: Rewritten.
4824 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4825 at the end of a comment.
4827 1998-10-29 Tom Tromey <tromey@cygnus.com>
4829 * include/javaprims.h: Regenerated class declarations.
4830 * classes.pl (scan): Don't special-case ClassLoader.
4832 * prims.cc (processClass): Removed.
4833 (_Jv_InitClass): Removed.
4834 Removed all CSTATE_ macros.
4835 (resolveConstants): Removed.
4837 (_Jv_NewMultiArray): Cleaned up.
4838 * Makefile.in: Rebuilt.
4839 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4840 * java/lang/Class.h (Class): Declare new methods. processClass no
4842 * java/lang/Class.java (hackTrampoline): New method.
4843 (initializeClass): Declare.
4844 (hackRunInitializers): Declare.
4845 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4846 (initializeClass): New method.
4847 (hackRunInitializers): New method.
4848 (init_name, void_signature): Moved from prims.cc.
4849 (_Jv_InitClass): New function.
4850 (isAssignableFrom): Don't call processClass.
4851 (STATE_NOTHING): New macro.
4852 (resolveConstants): New function.
4854 (ErrorClass): New define.
4856 * java/lang/Class.java (getClassLoader): Declare.
4857 * java/lang/ClassLoader.java: Rewrote from scratch.
4859 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4860 AbstractMethodError.h, IllegalAccessError.h,
4861 NoClassDefFoundError.h.
4862 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4863 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4864 longer static. Changed return type.
4865 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4866 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4867 * prims.cc (findMethodLocal): Removed.
4868 (processClass): Use _Jv_GetMethodLocal.
4870 1998-10-28 Tom Tromey <tromey@cygnus.com>
4872 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4873 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4875 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4876 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4878 * include/jni.h: Added copyright header.
4879 * include/javaprims.h: Added copyright header.
4880 * include/java-field.h: Added copyright header.
4881 * include/java-array.h: Added copyright header.
4882 * include/cni.h: Added copyright header.
4884 * include/javaprims.h: Regenerated class declarations using
4885 classes.pl; now they are complete.
4886 * classes.pl: New file.
4888 * java/lang/natMath.cc: Include <config.h>.
4889 * java/lang/reflect/natField.cc: Include <config.h>.
4890 * java/util/NativeUtil.java: Removed.
4891 * Makefile.in: Rebuilt.
4892 * Makefile.am (nat_headers): Added Math.h.
4893 * java/lang/Math.h: Removed.
4894 * java/util/natGregorianCalendar.cc: Added copyright header.
4896 * java/lang/natFloat.cc: Added copyright header.
4897 * java/lang/Byte.java: Added copyright header.
4898 * java/lang/Void.java: Added copyright header.
4899 * java/lang/Short.java: Added copyright header.
4901 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4903 * include/javaprims.h (java::io): Added bunch of missing classes.
4905 * java/io/DataInputStream.java (readLine): Added a special case
4906 for handling BufferedInputStream data to reduce the likelihood
4907 of a pushback error.
4908 (skipBytes): Added code to handle negative number of skip bytes.
4910 * java/io/StreamTokenizer.java: Rewritten.
4912 1998-10-28 Tom Tromey <tromey@cygnus.com>
4914 * java/util/natGregorianCalendar.cc (computeFields): Call
4915 getRawOffset as a method.
4917 * include/javaprims.h (java::io): Added FilterOutputStream.
4918 * Makefile.in: Rebuilt.
4919 * Makefile.am (nat_headers): Added PrintStream.h,
4920 FilterOutputStream.h.
4921 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4923 (die): New function.
4924 (run): Die if `main' not found, is not public, or is not static.
4926 * boehm.cc (_Jv_MarkObj): Use new field names.
4927 * include/java-field.h (JvGetFirstInstanceField): Use new field
4929 (JvNumInstanceFields): Likewise.
4930 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4931 (getInterfaces): Likewise.
4932 * prims.cc (CLASS_CONSTANTS): Removed.
4933 (CLASS_CONST_SIZE): Likewise.
4934 (CLASS_CONST_TAG): Likewise.
4935 (CLASS_CONST_DATA): Likewise.
4936 (CLASS_CONST_UTF8): Likewise.
4937 (WORD2UTF): Likewise.
4938 (CLASS_CLASS): Likewise.
4939 (CLASS_PRIM_SIG): Likewise.
4940 (CLASS_ARRAY_CACHE): Likewise.
4941 (HASH_CHARS): Likewise.
4942 (hashClassName): Likewise.
4943 Many changes to use new field names.
4944 * java/lang/Class.h (Class): Renamed fields to track compiler.
4946 1998-10-27 Tom Tromey <tromey@cygnus.com>
4948 * java/lang/natClass.cc: Use #pragma implementation.
4949 (getComponentType): Moved into header.
4950 (getModifiers): Likewise.
4951 (getName): Likewise.
4952 (getSuperclass): Likewise.
4953 (isArray): Likewise.
4954 (isPrimitive): Likewise.
4955 * include/jvm.h (_Jv_FindClass): Declare.
4956 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4957 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4958 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4959 * java/lang/Class.h: Rewrote from scratch.
4960 * prims.cc: Many changes to work with new Class.h.
4961 * include/java-field.h (CLASS_FIELDS): Removed.
4962 (CLASS_SFIELDS): Likewise.
4963 (CLASS_IFIELDS): Likewise.
4964 (CLASS_NFIELDS): Likewise.
4965 (CLASS_NIFIELDS): Likewise.
4966 (CLASS_NSFIELDS): Likewise.
4967 (CLASS_FSIZE): Likewise.
4968 (JvGetFirstInstanceField): Rewrote.
4969 (JvNumInstanceFields): Likewise.
4971 * java/lang/Object.h: Added copyright comment.
4973 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4975 * java/text: New package directory.
4976 * java/text/FieldPosition.java: New class.
4977 * java/text/ParsePosition.java: New class.
4978 * java/text/ParseException.java: New Exception class.
4979 * java/text/Format.java: New class.
4980 * java/text/NumberFormat.java: New (empty placeholder) class.
4981 * java/text/DateFormatSymbols.java: New class (no Locales support).
4982 * java/text/DateFormat.java: New Format class (incomplete).
4983 * java/text/SimpleDateFormat.java: New DateFormat class.
4985 * include/javaprims.h (java::test): Added new package and classes.
4986 * java/util/Calendar.java (clone): New method.
4987 * java/util/Date.java (toString): Added non-native implementation.
4988 (parse): Made public instead of synchronized.
4989 * java/util/natDate.cc (toString): Removed.
4990 * java/util/natGregorianCalendar.cc (computeFields):
4991 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4993 1998-10-27 Tom Tromey <tromey@cygnus.com>
4995 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4997 * prims.cc (lookupArray): Added explanatory comment.
4998 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4999 class. Mark the class of each object.
5000 (_Jv_MarkArray): Mark the object's class.
5002 * configure: Rebuilt.
5003 * configure.in: Create java-gc.h.
5004 * include/boehm-gc.h: New file.
5005 * include/no-gc.h: New file.
5006 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5008 * java/lang/Object.h: Include java-gc.h.
5009 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5010 friends, if defined.
5011 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5013 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5015 1998-10-26 Tom Tromey <tromey@cygnus.com>
5017 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5018 paragraph separators, not numbers.
5020 * java/io/Writer.java (write): Removed write(char) to avoid
5022 * java/util/Properties.java: Rewrote from scratch.
5023 * include/javaprims.h (java::io): Added PrintWriter,
5024 BufferedWriter, PushbackReader.
5026 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5028 * java/lang/System.java: exit() is a static method.
5030 1998-10-26 Tom Tromey <tromey@cygnus.com>
5032 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5034 (_Jv_NewStringUtf8Const): Likewise.
5035 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5036 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5038 * java/lang/Object.h (Object): Add mark_array as friend function.
5039 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5040 _Jv_AllocBytes, to ensure that header is marked.
5041 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5043 (mark_array): Push sync_info field for array.
5045 1998-10-24 Tom Tromey <tromey@cygnus.com>
5047 * java/lang/String.java (String): Updated for StringBuffer
5049 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5051 * java/lang/StringBuffer.java: Renamed fields to conform to
5052 serialization spec: buffer->value, next->count, copy->shared.
5054 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5056 * java/util/TimeZone.java: New class.
5057 * java/util/SimpleTimeZone.java: New class.
5058 * java/util/Locale.java: New file.
5059 * java/util/Calendar.java: Make almost complete.
5060 * java/util/GregorianCalendar.java
5061 * java/util/natGregorianCalendar.cc: New file.
5062 * java/util/Date.java: Re-written from scratch.
5063 * java/util/natDate.cc (setTime): Removed - no longer native.
5064 * include/javaprims.h (java::util): Add new classes.
5065 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5066 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5068 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5070 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5071 returning it as a jint.
5073 1998-10-23 Tom Tromey <tromey@cygnus.com>
5075 * prims.cc (arg_vec, main_group, main_thread): New globals.
5076 (JvRunMain): Use them.
5078 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5080 * java/io/DataInputStream.java: Rewritten.
5082 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5083 tertiary bytes with 0x80 per spec.
5085 1998-10-23 Tom Tromey <tromey@cygnus.com>
5087 * java/lang/String.java (init): Changed name of `copy' argument.
5088 * java/lang/natString.cc (init): Inverted sense of `copy'
5091 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5092 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5093 * boehm.cc (ObjectClass): New define.
5094 (ClassClass): Likewise.
5095 (mark_obj): Special-case Object and Class.
5097 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5099 * java/util/BitSet.java: Rewrote from scratch.
5101 * prims.cc (lookupArray): Removed useless cast.
5103 * java/lang/natObject.cc: Use `#pragma implementation'.
5105 * java/lang/String.java (init): Added `copy' argument.
5106 (String): Look in StringBuffer to find char array.
5107 * java/lang/natString.cc (init): Added `copy' argument.
5108 * java/lang/StringBuffer.java: Rewrote from scratch.
5110 * java/lang/Compiler.java: Rewrote from scratch.
5111 * java/lang/Throwable.java: Don't use NativeLang.
5112 * include/javaprims.h (java::lang): Don't mention NativeLang.
5113 * java/lang/Process.java: Rewrote from scratch.
5114 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5116 (currentClassLoader): Likewise.
5117 (currentLoadedClass): Likewise.
5118 * java/lang/natClass.cc (getClassLoader): Commented out.
5119 * java/lang/Class.java (getClassLoader): Commented out.
5120 * java/lang/Compiler.java: Removed.
5121 * java/lang/NativeLang.java: Removed.
5123 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5124 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5125 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5126 (_Jv_hashUtf8String): Now static.
5127 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5128 name of return type.
5130 * java/lang/Class.h (Class): Declare checkMemberAccess.
5131 * Makefile.in: Rebuilt.
5132 * Makefile.am (nat_headers): Added Member.h.
5133 * java/lang/natClass.cc: Include Member.h.
5134 (getDeclaredClasses): Call checkMemberAccess.
5135 * java/lang/Class.java (checkMemberAccess): Call
5136 SecurityManager.checkMemberAccess.
5138 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5140 * java/lang/SecurityManager.java: Rewritten.
5142 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5144 * java/applet/Applet.java, java/applet/AppletContext.java,
5145 java/applet/AppletStub.java, java/applet/AudioClip.java,
5146 java/awt/AWTError.java, java/awt/AWTException.java,
5147 java/awt/BorderLayout.java, java/awt/Button.java,
5148 java/awt/Canvas.java, java/awt/CardLayout.java,
5149 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5150 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5151 java/awt/Color.java, java/awt/Component.java,
5152 java/awt/Container.java, java/awt/Dialog.java,
5153 java/awt/Dimension.java, java/awt/Event.java,
5154 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5155 java/awt/Font.java, java/awt/FontMetrics.java,
5156 java/awt/Frame.java, java/awt/Graphics.java,
5157 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5158 java/awt/GridLayout.java, java/awt/Image.java,
5159 java/awt/Insets.java, java/awt/Label.java,
5160 java/awt/LayoutManager.java, java/awt/List.java,
5161 java/awt/MediaTracker.java, java/awt/Menu.java,
5162 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5163 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5164 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5165 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5166 java/awt/TextArea.java, java/awt/TextComponent.java,
5167 java/awt/TextField.java, java/awt/Toolkit.java,
5168 java/awt/Window.java, java/awt/image/ColorModel.java,
5169 java/awt/image/CropImageFilter.java,
5170 java/awt/image/DirectColorModel.java,
5171 java/awt/image/FilteredImageSource.java,
5172 java/awt/image/ImageConsumer.java,
5173 java/awt/image/ImageFilter.java,
5174 java/awt/image/ImageObserver.java,
5175 java/awt/image/ImageProducer.java,
5176 java/awt/image/IndexColorModel.java,
5177 java/awt/image/MemoryImageSource.java,
5178 java/awt/image/PixelGrabber.java,
5179 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5180 java/awt/peer/CanvasPeer.java,
5181 java/awt/peer/CheckboxMenuItemPeer.java,
5182 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5183 java/awt/peer/ComponentPeer.java,
5184 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5185 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5186 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5187 java/awt/peer/MenuBarPeer.java,
5188 java/awt/peer/MenuComponentPeer.java,
5189 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5190 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5191 java/awt/peer/TextAreaPeer.java,
5192 java/awt/peer/TextComponentPeer.java,
5193 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5194 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5195 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5196 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5197 java/net/MalformedURLException.java, java/net/NativeNet.java,
5198 java/net/ProtocolException.java, java/net/ServerSocket.java,
5199 java/net/Socket.java, java/net/SocketException.java,
5200 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5201 java/net/URL.java, java/net/URLConnection.java,
5202 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5203 java/net/URLStreamHandlerFactory.java,
5204 java/net/UnknownHostException.java,
5205 java/net/UnknownServiceException.java: Removed.
5207 1998-10-22 Tom Tromey <tromey@cygnus.com>
5209 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5210 finalizer is not Object.finalize.
5211 (internalAddClass): Don't set `final' member of class.
5212 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5213 other places that know about finalize() location.
5214 * java/lang/Class.h (Class): Removed `final' field.
5216 * aclocal.m4, configure: Rebuilt.
5217 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5218 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5220 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5221 * Makefile.in: Rebuilt.
5222 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5224 1998-10-21 Tom Tromey <tromey@cygnus.com>
5226 * java/lang/Object.java (finalize): Move to be first method in
5229 * configure: Rebuilt.
5230 * configure.in (GCINCS): Include contents of boehm-cflags file.
5232 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5234 * java/lang/ArrayIndexOutOfBoundsException.java
5235 (ArrayIndexOutOfBoundsException): Fixed string literal.
5236 * java/lang/StringIndexOutOfBoundsException.java
5237 (StringIndexOutOfBoundsException): Fixed string literal.
5239 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5241 * natFileDescriptorEcos.cc added.
5242 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5244 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5246 * acconfig.h: test for __int32_t and __uint32_t added.
5247 * include/config.h.in: test for __int32_t and __uint32_t added.
5248 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5249 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5250 * configure.in: test for __int32_t and __uint32_t added.
5251 * configure: test for __int32_t and __uint32_t added.
5253 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5255 * configure.in: Test for --enable ecos and link
5256 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5257 natFileDescriptorPosix.cc
5259 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5261 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5263 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5266 * java/io/CharArrayReader.java (close): Synchronize on lock
5267 object per Reader contract.
5268 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5269 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5270 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5271 Ensure that arg passed in isn't negative.
5273 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5274 constructing the superclass.
5276 * java/io/PushbackReader.java (close): Synchronize on lock
5277 object per Reader contract.
5278 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5279 (ready): Synchronize on lock obj. Throw IOException if reader
5281 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5282 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5283 Ensure that arg passed in isn't negative.
5284 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5286 * java/io/StringReader.java: Created.
5288 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5290 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5292 (read): Removed synchronized modifier to match JCL.
5293 (reset): Removed synchronized modifier to match JCL.
5294 (skip): Removed synchronized modifier to match JCL.
5296 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5298 * java/io/PushbackReader.java (PushbackReader): Made
5299 constructors public.
5301 1998-10-17 Tom Tromey <tromey@cygnus.com>
5303 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5304 constructors public.
5306 1998-10-16 Anthony Green <green@cygnus.com>
5308 * aclocal.m4, configure: Rebuilt.
5309 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5311 * configure.host: Rewrote.
5312 * Makefile.in: Rebuilt.
5313 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5314 (AM_CFLAGS): New macro.
5315 ($(c_files)): Use COMPILE macro.
5316 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5317 automake problem(s).
5319 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5321 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5323 * java/io/CharArrayReader.java: Created.
5325 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5327 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5328 size check to allow 0 per JCL.
5330 * java/io/PushbackReader.java: Created.
5332 1998-10-16 Tom Tromey <tromey@cygnus.com>
5334 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5335 <sys/time.h> includes.
5336 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5337 * include/no-threads.h: Conditionalize <unistd.h> include on
5340 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5342 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5345 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5347 * java/io/FilterReader.java: Created.
5349 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5351 * java/io/PushbackInputStream.java: Rewritten.
5353 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5354 that size passed to constructor is legal.
5355 (read): Check that args passed in are legal.
5356 (skip): Rewritten to get rid of the temporary buffer.
5357 (refill): Added marklimit check to grow the buffer.
5359 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5361 (bytesAvail): Removed.
5362 (read): Changed bytesAvail to Math.min.
5363 (skip): Changed bytesAvail to Math.min.
5365 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5366 from the throws clause.
5367 (skip): Rewritten to use a temporary buffer.
5369 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5371 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5374 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5376 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5377 to write the double one word at a time.
5379 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5381 * java/io/BufferedInputStream.java: Rewritten.
5383 1998-10-12 Tom Tromey <tromey@cygnus.com>
5385 * jni.cc: Include config.h and stddef.h.
5387 * java/lang/Class.h (_dispatchTable): Removed again.
5388 Removed all ACC_* defines again.
5390 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5392 * Makefile.am (nat_files): Add netField.o.
5393 (libjava_a_SOURCES): Add jni.cc.
5394 (java/lang/reflect/Field.h): New rule.
5395 * Makefile.in: Re-generated.
5396 * include/javaprims.h: Add some extra class and typedefs.
5397 * include/jni.h: New file.
5400 * include/java-field.h: New file.
5401 * include/jvm.h: #include <java-field.h>.
5402 * boehm.cc: #include <java-field.h>.
5403 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5404 * java/lang/reflect/Member.java: New class.
5405 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5406 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5408 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5410 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5411 testsuite/Makefile.in: Rebuilt.
5412 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5413 * configure.host: Created.
5415 1998-10-10 Tom Tromey <tromey@cygnus.com>
5417 * java/lang/natObject.cc (sync_init): Always allocate a new
5420 1998-10-09 Tom Tromey <tromey@cygnus.com>
5422 * java/io/ByteArrayInputStream.java (mark): Renamed from
5425 * java/io/FileOutputStream.java (finalize): Removed.
5426 * java/io/FileDescriptor.java (finalize): New method.
5428 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5430 * ByteArrayInputStream.java: Corrected status comment.
5432 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5434 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5436 1998-10-08 Tom Tromey <tromey@cygnus.com>
5438 * prims.cc (lookupArray): Use static array to initialize list of
5441 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5443 * prims.cc (lookupArray): Initialize the msize for new
5446 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5448 * configure: Rebuilt.
5449 * configure.in: Check for fsync and sleep.
5450 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5452 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5453 HAVE_SLEEP. Include config.h.
5455 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5456 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5459 1998-10-08 Tom Tromey <tromey@cygnus.com>
5461 * java/io/natFile.cc: Don't include SecurityManager.h.
5462 (performList): Renamed.
5463 (performMkdir): Likewise.
5464 (performRenameTo): Likewise.
5465 (performDelete): Likewise.
5467 * java/io/File.java (performDelete): Renamed from natDelete.
5468 (list): Now written in Java.
5469 (performList): New method.
5470 (performMkdir): New method.
5471 (mkdir): Now written in Java.
5472 (performRenameTo): New method.
5473 (renameTo): Now written in Java.
5475 1998-10-06 Tom Tromey <tromey@cygnus.com>
5477 * Makefile.in: Rebuilt.
5478 * Makefile.am (ETAGS_ARGS): New macro.
5479 (TAGS_DEPENDENCIES): Likewise.
5481 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5483 * Makefile.in: Rebuilt.
5484 * Makefile.am: Use -classpath option with javac.
5486 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5488 * java/io/FileOutputStream.java (finalize): Call
5491 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5493 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5495 * java/lang/mprec.c: Ditto.
5497 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5500 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5502 * java/io/InputStream.java (skip): Make local var i a long.
5504 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5506 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5507 * prims.cc (lookupArray): Use memcpy, not memmove.
5508 * include/config.h.in: Rebuilt.
5509 * acconfig.h (HAVE_MEMCPY): Added.
5510 * configure: Rebuilt.
5511 * configure.in: Check for memcpy again.
5513 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5514 String.compareTo, not ==.
5516 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5517 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5518 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5519 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5520 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5521 into new array's dtable.
5522 (_Jv_AllocObject): Use _Jv_DispatchTable.
5523 (_Jv_NewPrimArray): Likewise.
5524 (_Jv_NewObjectArray): Likewise.
5526 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5528 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5529 offending index value.
5530 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5532 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5533 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5535 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5537 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5539 * java/io/OutputStream.java (write): Use off and len parameters to
5540 output partial byte array.
5542 * java/io/BufferedReader.java, java/io/FileReader.java,
5543 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5544 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5545 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5546 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5548 * include/javaprims.h (java::lang): Added
5549 ExceptionInInitializerError, IllegalStateException,
5550 NoSuchFieldException, and UnsupportedOperationException.
5552 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5554 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5557 * include/java-array.h (__JArray): Added clone method.
5558 * prims.cc (CloneableClass): New define.
5559 (lookupArray): Initialize array class to indicate that it
5560 implements Cloneable.
5562 * java/lang/Class.h: Removed all ACC_* defines.
5563 * prims.cc: Include Modifier.h.
5564 (_Jv_LookupInterfaceMethod): Use methods in
5565 java.lang.reflect.Modifier, not ACC_ defines.
5567 * java/lang/Class.h (Class): Declare getClasses,
5568 getDeclaredClasses, getDeclaringClass, getModifiers,
5569 * java/lang/Class.java: Rewrote from scratch.
5571 * include/javaprims.h (java::lang): Added reflect and
5573 * Makefile.in: Rebuilt.
5574 * Makefile.am (nat_headers): Added Modifier.h.
5576 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5579 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5581 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5582 instead of test and abort.
5584 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5585 remove compiler warning.
5587 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5589 * java/lang/natDouble.cc: zero terminate string.
5590 * strtod.c: Set errno if no digits are found in fraction.
5592 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5594 * java/lang/reflect/Modifier.java: New file.
5596 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5597 * java/lang/VerifyError.java: Rewrote from scratch.
5598 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5599 * java/lang/UnknownError.java: Rewrote from scratch.
5600 * java/lang/StackOverflowError.java: Rewrote from scratch.
5601 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5602 * java/lang/InternalError.java: Rewrote from scratch.
5603 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5604 * java/lang/ExceptionInInitializerError.java: New file.
5605 * java/lang/Error.java: Rewrote from scratch.
5606 * java/lang/ClassFormatError.java: Rewrote from scratch.
5607 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5608 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5609 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5610 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5611 * java/lang/LinkageError.java: Rewrote from scratch.
5612 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5614 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5616 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5617 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5619 * include/cni.h (JvAllocObject): Moved from prims.cc.
5621 * prims.cc (JvAllocObject): Moved to cni.h.
5622 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5623 (finalize_name): Removed.
5625 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5627 * java/lang/Class.h (Class): Added size() method.
5628 * prims.cc (_Jv_MonitorEnter): Removed.
5629 (_Jv_MonitorExit): Removed.
5630 * java/lang/Object.h (JvSyncInfo): Removed.
5631 * Makefile.in: Rebuilt.
5632 * Makefile.am (nat_headers): Added Cloneable.h,
5633 CloneNotSupportedException.h.
5634 * java/lang/Object.h: Rewrote.
5635 * java/lang/natObject.cc: Rewrote from scratch.
5636 * java/lang/Object.java: Rewrote from scratch.
5638 * java/io/natFile.cc: Conditionally include <dirent.h>.
5639 (list): If no <dirent.h>, always return NULL.
5640 * configure: Rebuilt.
5641 * configure.in: Check for dirent.h.
5643 * prims.cc (lookupArray): Don't use sprintf.
5645 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5652 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5653 name conflict with method.
5655 * include/javaprims.h (java::util): Added HashtableEntry.
5657 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5659 * java/util/Hashtable.java: Rewritten.
5661 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5663 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5667 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5670 * posix-threads.cc (_Jv_CondWait): Now returns int.
5671 * include/javaprims.h (java::lang): Added
5672 IllegalMonitorStateException.
5673 * Makefile.in: Rebuilt.
5674 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5675 * include/no-threads.h (_Jv_CondDestroy): Removed.
5676 (_Jv_MutexDestroy): Removed.
5677 (_Jv_CondWait): Now returns int.
5678 (_Jv_CondNotify): Likewise. Added mutex argument.
5679 (_Jv_CondNotifyAll): Likewise.
5680 (_Jv_MutexLock): Always succeed.
5681 (_Jv_MutexUnlock): Likewise.
5682 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5683 (_Jv_HaveMutexDestroy): Define.
5684 (_Jv_CondNotify): Now returns int. Added mutex argument.
5685 (_Jv_CondNotifyAll): Likewise.
5686 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5687 (_Jv_MutexDestroy): Removed.
5688 (_Jv_CondWait): Now returns int.
5689 (_Jv_CondNotify): Likewise. Added mutex argument.
5690 (_Jv_CondNotifyAll): Likewise.
5691 * java/lang/natObject.cc (finalize_sync_info): New function.
5692 (init_mutex): Initialize `init' and register finalizer if
5695 (init_mutex): Use it.
5697 (notifyAll): Use it.
5699 (notify): Throw IllegalMonitorStateException on failure.
5700 (notifyAll): Likewise.
5701 (wait): Likewise. Also, throw InterruptedException if
5703 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5704 InterruptedException.h, IllegalArgumentException.h.
5705 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5707 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5708 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5709 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5710 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5711 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5712 * quick-threads.cc: Renamed all `JvPriv' functions.
5713 * prims.cc: Renamed all `JvPriv' functions.
5714 * posix-threads.cc: Renamed all `JvPriv' functions.
5715 * nogc.cc: Renamed all `JvPriv' functions.
5716 * no-threads.cc: Renamed all `JvPriv' functions.
5717 * boehm.cc: Renamed all `JvPriv' functions.
5718 * include/quick-threads.h: Renamed all `JvPriv' functions.
5719 * include/posix-threads.h: Renamed all `JvPriv' functions.
5720 * include/no-threads.h: Renamed all `JvPriv' functions.
5721 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5723 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5725 (JvPrivCondNotify): Do nothing.
5726 (JvPrivCondNotifyAll): Do nothing.
5728 * prims.cc (processClass): Handle case where state is
5731 * java/lang/natFirstThread.cc: Include <stdlib.h>
5733 * configure: Rebuilt.
5734 * configure.in: Fixed sense of --enable-libjava-debug.
5736 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5737 it can be used afterward by the assertion.
5739 * configure: Rebuilt.
5740 * configure.in: When cross-compiling, assume alloca.
5742 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5743 __builtin_alloca (autoconf docs are wrong here).
5745 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5747 (available): Use `FD_ZERO' (typo fix).
5749 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5751 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5752 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5754 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5755 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5758 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5760 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5762 * java/lang/natDouble.cc: Declare alloca safely.
5764 * configure, include/config.h.in: Rebuilt.
5765 * configure.in: Add alloca check.
5767 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5769 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5770 condition while calling notify.
5771 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5772 (interrupt): Hold mutex for interrupt condition while calling
5775 * java/lang/natString.cc (init): Allocate and try to read `count'
5776 characters, not `count - offset' characters.
5778 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5779 Correctly compute `count'.
5781 * java/lang/Boolean.java (getBoolean): Return false if property
5784 * java/lang/System.java (setProperties): Set prop_init.
5786 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5788 * java/io/PrintStream.java (println): Use line.separator, not
5790 * java/lang/System.java (out, err): Make both autoflush streams.
5791 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5793 * include/config.h.in: Rebuilt.
5794 * acconfig.h (HAVE_MEMCPY): Removed.
5795 * configure: Rebuilt.
5796 * configure.in: Never define HAVE_MEMCPY.
5798 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5800 (_Jv_AllocString): Use JvAllocObject again.
5801 * java/lang/Class.h (thread): New field.
5802 (_Jv_AllocString): No longer a friend.
5803 * prims.cc (processClass): Removed dead code. Changed to more
5804 closely follow the Java Language Specification.
5805 (processClass): Return early if already at the right state.
5807 * prims.cc (JvNewStringUTF): Removed.
5808 * include/cni.h (JvNewStringUTF): New function.
5809 (_Jv_NewStringUTF): Declare as `extern "C"'.
5810 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5812 * java/lang/natDouble.cc: Added copyright info and header
5813 comment. Include <stdlib.h>.
5814 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5815 bytes as are chars in string.
5817 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5819 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5823 * java/lang/System.java (init_properties): Now native.
5824 * java/lang/natSystem.cc (init_properties): New method.
5825 Include java/util/Properties.h.
5827 * Makefile.in: Rebuilt.
5828 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5829 OutputStreamWriter.h, ByteArrayInputStream.h,
5830 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5831 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5832 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5833 Properties.h, Hashtable.h, Dictionary.h.
5836 * include/javaprims.h (java::io): Added Reader, Writer,
5837 InputStreamReader, OutputStreamWriter,
5838 UnsupportedEncodingException, ByteArrayInputStream,
5839 ByteArrayOutputStream, EOFException, SyncFailedException,
5840 PushbackInputStream.
5841 (java::lang): Added Cloneable.
5842 (java::util): Added NoSuchElementException, VectorEnumeration,
5843 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5845 * java/io/PipedReader.java: New file.
5847 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5849 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5852 * java/io/io-defs.h: Removed.
5854 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5855 (FileInputStream): Use new constructor. Can throw IOException.
5857 * java/lang/System.java (getProperty): Don't throw
5858 NullPointerException.
5860 * java/io/RandomAccessFile.java: Rewrote from scratch.
5862 * java/io/natFileDescriptor.cc: Include EOFException.h.
5864 (length): New method.
5865 (getFilePointer): New method.
5867 (available): New method.
5868 * java/io/FileDescriptor.java (SET, CUR): New constants.
5869 (seek, length, getFilePointer, read, available): New decls.
5871 * java/io/PipedWriter.java: New file.
5872 * java/io/StringWriter.java: New file.
5873 * java/io/CharArrayWriter.java: New file.
5874 * java/io/CharConversionException.java: New file.
5875 * java/io/BufferedWriter.java: New file.
5876 * java/io/FilterWriter.java: New file.
5877 * java/io/FileWriter.java: New file.
5879 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5880 OutputStreamWriter.h, NullPointerException.h,
5881 ByteArrayInputStream.h, InputStreamReader.h.
5882 (getBytes): New method.
5883 (init): Throw NullPointerException.
5884 (init): New function.
5885 * java/lang/String.java (getBytes): Added missing decl.
5886 (getBytes): New method.
5887 (String): Added byte[]-based constructors.
5888 (copyValueOf): Wrote.
5889 (init): Declare variant which takes byte array and encoding.
5890 Import java.io.UnsupportedEncodingException.
5892 * java/io/File.java: Rewrote from scratch.
5893 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5894 * java/io/FileDescriptor.java: Rewrote from scratch.
5895 * java/io/FilenameFilter.java: Rewrote from scratch.
5897 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5899 * java/io/SyncFailedException.java: New file.
5900 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5901 * java/io/InterruptedIOException.java: Rewrote from scratch.
5902 * java/io/FileNotFoundException.java: Rewrote from scratch.
5903 * java/io/EOFException.java: Rewrote from scratch.
5904 * java/io/IOException.java: Rewrote from scratch.
5905 * java/io/PrintStream.java: Rewrote from scratch.
5906 * java/io/DataOutputStream.java: Rewrote from scratch.
5907 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5908 * java/io/FilterOutputStream.java: Rewrote from scratch.
5909 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5910 * java/io/PipedOutputStream.java: Rewrote from scratch.
5911 * java/io/FileOutputStream.java: Rewrote from scratch.
5912 * java/io/OutputStream.java: Rewrote from scratch.
5913 * java/io/DataOutput.java: Rewrote from scratch.
5915 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5917 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5919 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5921 * configure.in: Add --enable-libjava-debug
5923 * Makefile.am (nat_headers): Add java/lang/Float.h and
5926 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5928 * Makefile.in, configure, include/config.h.in: Rebuilt.
5930 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5932 * java/lang/Float.java: Rewritten
5933 * java/lang/Double.java: Rewritten
5934 * java/lang/natFloat.cc: toString() added.
5935 * java/lang/natDouble.cc: toString() added.
5936 * java/lang/natDouble.cc: doubleValueOf() added.
5937 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5938 java/lang/strtod.c: added.
5939 * ieeefp.h: __sparc added.
5940 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5942 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5944 * include/javaprims.h (java::lang): Added
5945 CloneNotSupportedException.
5947 * java/lang/Object.java (clone): No longer native. Implemented.
5948 * java/lang/natObject.cc (clone): Removed.
5950 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5952 * prims.cc: Don't make definitions `extern "C"'.
5953 (_Jv_RegisterClass): Renamed from registerClass.
5954 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5955 (_Jv_NewArray): Likewise.
5956 (_Jv_NewMultiArray): Likewise.
5957 (_Jv_CheckCast): Likewise.
5958 (_Jv_LookupInterfaceMethod): Likewise.
5959 (_Jv_CheckArrayStore): Likewise.
5960 (_Jv_RegisterClass): Likewise.
5962 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5963 * configure: Rebuilt.
5964 * configure.in: Don't check for fmod; it is provided by the fdlibm
5966 * prims.cc (fmod): Removed.
5968 * java/lang/natString.cc (charAt): Use _Jv_uint.
5969 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5970 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5971 (equalUtf8Consts): Likewise.
5972 (internalAddClass): Use _Jv_uint.
5973 (processClass): Likewise.
5974 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5975 (_Jv_uint): Renamed from uint32.
5976 (struct _Jv_Utf8Const): Changed members to use new type names.
5978 * configure: Rebuilt.
5979 * configure.in: Don't check for memcpy. Require memmove and a way
5981 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5983 (currentTimeMillis): Don't use #error.
5985 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5987 * java/lang/Math.java: static member random renamed to random_ to
5988 avoid conflict with member function of the same name.
5989 * include/javaprims.h: java.util.Random added.
5991 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5993 * include/java-chartables.h: Regenerated.
5994 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5997 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5999 * java/lang/Math.java: Rewritten.
6000 * java/lang/natMath.cc: New file.
6001 * Files added from fdlibm:
6002 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6003 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6004 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6005 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6006 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6007 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6008 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6009 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6010 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6011 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6012 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6013 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6014 java/lang/k_cos.c, java/lang/sf_ceil.c,
6015 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6016 java/lang/ieeefp.h, java/lang/fdlibm.h
6017 * Makefile.am: rules added for compiling C files from fdlibm.
6019 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6021 * chartables.pl: Minor documentation fixes.
6023 * configure: Rebuilt.
6024 * configure.in: Fixed --help output for --enable-fast-character.
6026 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6028 * configure: Rebuilt.
6029 * configure.in: Recognize --enable-fast-character.
6030 * acconfig.h (COMPACT_CHARACTER): New define.
6031 * include/config.h.in: Rebuilt.
6032 * include/java-chartables.h: New file.
6033 * Makefile.in: Rebuilt.
6034 * Makefile.am (nat_files): Added natCharacter.o.
6035 * java/lang/natCharacter.cc: New file.
6036 * chartables.pl (set_attribute): New function.
6037 (@attributes, @second_attributes): New globals.
6038 ($ROMAN_START, $ROMAN_END): Likewise.
6039 (process_char): Call set_attribute when required.
6040 (print_char): Just print hex value.
6041 (print_block): Generate C++ syntax.
6042 (print_numerics): Likewise.
6043 (print_single_map): Likewise.
6044 (print_all_block): Likewise.
6045 (print_case_table): Likewise.
6046 (print_fast_tables): New function.
6047 Generate C++ code suitable for a header file.
6048 * java/lang/Character.java (table_search): Removed.
6049 (digit_value): Now native.
6050 (getNumericValue): Likewise.
6051 (getType): Likewise.
6052 Removed all automatically-generated tables.
6053 (Tamil_Digit_One): Removed.
6054 (isSpaceChar): Now native.
6055 (isTitleCase): Likewise.
6056 (isLowerCase): Likewise.
6057 (isUpperCase): Likewise.
6058 (toLowerCase): Likewise.
6059 (toTitleCase): Likewise.
6060 (toUpperCase): Likewise.
6061 (isDefined): Fixed sense of test.
6063 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6065 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6067 (regionMatches): Likewise.
6069 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6071 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6073 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6075 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6078 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6081 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6083 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6085 * prims.cc (instanceof_class): Removed.
6086 (instanceof_array): Likewise.
6087 (instanceof): Likewise.
6088 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6089 (_Jv_CheckCast): Likewise.
6090 * java/lang/natClass.cc (isAssignableFrom): New method.
6091 * java/lang/Class.java (isAssignableFrom): Now native.
6093 * include/cni.h (JvThrow): Use `extern inline'.
6094 (JvAllocObject): Likewise.
6095 (JvInitClass): Likewise.
6097 * java/lang/natSystem.cc (arraycopy): Only check class of source
6100 * prims.cc (_Jv_CheckArrayStore): Wrote.
6101 (_Jv_MonitorEnter): Prefer `JvThrow'.
6102 Include ArrayStoreException.h.
6103 (_Jv_CheckCast): Indentation cleanup.
6105 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6107 * chartables.pl: New file.
6108 * java/lang/Character.java: Rewrote from scratch.
6110 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6112 * java/lang/ArithmeticException.java,
6113 java/lang/ArrayIndexOutOfBoundsException.java,
6114 java/lang/ArrayStoreException.java,
6115 java/lang/ClassCastException.java,
6116 java/lang/ClassNotFoundException.java,
6117 java/lang/CloneNotSupportedException.java,
6118 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6119 java/lang/IllegalArgumentException.java,
6120 java/lang/IllegalMonitorStateException.java,
6121 java/lang/IllegalThreadStateException.java,
6122 java/lang/IndexOutOfBoundsException.java,
6123 java/lang/InstantiationException.java,
6124 java/lang/InterruptedException.java,
6125 java/lang/NegativeArraySizeException.java,
6126 java/lang/NoSuchMethodException.java,
6127 java/lang/NullPointerException.java,
6128 java/lang/NumberFormatException.java,
6129 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6130 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6132 * java/lang/IllegalStateException.java,
6133 java/lang/NoSuchFieldException.java,
6134 java/lang/UnsupportedOperationException.java: Created.
6136 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6138 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6139 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6141 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6143 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6145 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6147 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6149 * Makefile.in: Rebuilt.
6151 * include/javaprims.h (java::lang): Added
6152 StringIndexOutOfBoundsException.
6154 * java/lang/String.java: Added header comment and FIXME comment for
6155 missing constructors/methods.
6156 (endsWith): Adjusted offset into string to look at just the last chars.
6157 Commented out undocumented method.
6159 * java/lang/natString.cc: Added includes for
6160 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6161 (String::init): Throw StringIndexOutOfBoundsException.
6162 (String::charAt): Throw StringIndexOutOfBoundsException.
6163 (String::substring): Throw StringIndexOutOfBoundsException.
6164 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6165 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6166 (String::compareTo): Return difference/offset between chars/strings.
6168 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6170 * java/lang/Boolean.java (TYPE): Added comment.
6172 * java/lang/Byte.java (decode): Added - commented out until dependent
6173 code for Integer is written.
6174 (compareTo): JDK 1.2 methods written.
6175 (hashCode): Added comment to note that values have been verified.
6177 * java/lang/Short.java (decode): Added - commented out until dependent
6178 code for Integer is written.
6179 (compareTo): JDK 1.2 methods written.
6180 (hashCode): Added comment to note that values have been verified.
6182 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6184 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6186 * include/javaprims.h (java::lang): Added VirtualMachineError,
6188 * Makefile.in: Rebuilt.
6189 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6190 VirtualMachineError.h.
6191 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6192 (lookupArray): Likewise.
6193 (makeUtf8Const): Likewise.
6194 (_Jv_AllocObject): Likewise.
6195 (_Jv_NewObjectArray): Likewise.
6196 Include OutOfMemoryError.h.
6198 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6199 to use JvNewStringLatin1.
6201 * java/io/io-defs.h: Include java/lang/IOException.h.
6202 * Makefile.in: Rebuilt.
6203 * Makefile.am (nat_headers): Added
6204 ArrayIndexOutOfBoundsException.h,
6205 ClassFormatError.h,ClassNotFoundException.h,
6206 ClassCircularityError.h, ClassCastException.h,
6207 IncompatibleClassChangeError.h, AbstractMethodError.h,
6208 IllegalAccessError.h, LinkageError.h, Error.h,
6209 NegativeArraySizeException.h, IOException.h.
6210 * include/cni.h (SignalError): Removed declaration.
6211 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6212 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6213 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6214 (newInstance): Likewise.
6215 (forName): Likewise.
6216 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6218 (read): Use JvThrow, not SignalError.
6223 (open_read): Likewise.
6224 (open_write): Likewise.
6227 (newstr): New function.
6228 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6230 (lastModifiedUnchecked): Likewise.
6231 (lengthUnchecked): Likewise.
6232 * include/javaprims.h (sorry): Removed declaration.
6233 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6234 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6235 ClassCastException, IncompatibleClassChangeError,
6236 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6237 * prims.cc (instanceof_array): Use JvFail, not sorry.
6239 Include ArrayIndexOutOfBoundsException.h,
6240 ClassFormatError.h,ClassNotFoundException.h,
6241 ClassCircularityError.h, ClassCastException.h,
6242 IncompatibleClassChangeError.h, AbstractMethodError.h,
6243 IllegalAccessError.h, NegativeArraySizeException.h.
6244 (_Jv_ThrowBadArrayIndex): Implemented.
6245 (JvNewStringUTF): Use JvFail, not sorry.
6246 (_Jv_FindClass): Likewise.
6247 (_Jv_NewArray): Likewise.
6248 (throwException): Removed.
6249 (getClass): Use JvThrow.
6250 (processClass): Likewise.
6251 (_Jv_NewObjectArray): Likewise.
6252 (_Jv_NewMultiArray): Likewise.
6253 (_Jv_CheckCast): Likewise.
6254 (_Jv_LookupInterfaceMethod): Likewise.
6255 (SignalError): Removed.
6256 (getClass): Use _Jv_NewStringUtf8Const to create String.
6258 * java/lang/natSystem.cc (arraycopy): Throw
6259 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6261 * Makefile.in: Rebuilt.
6262 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6264 * include/java-array.h: Mention gcjh, not gjavah.
6266 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6267 (canReadUnchecked): Likewise.
6268 (canWriteUnchecked): Likewise.
6269 (isFileUnchecked): Likewise.
6270 * java/io/natFileDescriptor.cc: Don't include cni.h.
6272 * java/lang/Thread.java (run__): Declare.
6273 * java/lang/natThread.cc (run__): New method, to avoid compiler
6275 (start): Use run__, not run_.
6277 * java/io/io-defs.h: Include cni.h and jvm.h.
6279 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6281 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6282 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6283 to natString.cc (with suitable renaming, inlines etc).
6284 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6285 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6286 * java/lang/String.h: Removed - now generated using gjavah.
6287 * java/lang/String.java: Re-written from scratch. Many native methods.
6288 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6289 * java/lang/natString.cc: Many functions re-written for "compact
6290 strings" representation, or native java.lang.String methods added.
6291 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6292 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6293 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6294 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6295 * include/cni.h: Add inline method.
6296 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6297 * include/javaprims.h: Moved some stuff frm String.h.
6298 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6299 * Makefile.am (nat_header): Added Character.h and String.h.
6300 (String.h): Add new rule.
6302 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6304 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6306 * posix-threads.cc: Include cni.h, jvm.h.
6307 * quick-threads.cc: Include cni.h, jvm.h.
6308 * nogc.cc: Include cni.h, not javaprims.h.
6309 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6310 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6311 include java-assert.h.
6312 * java/lang/natSystem.cc: Include cni.h. Don't include
6314 * java/lang/natRuntime.cc: Include cni.h. Don't include
6316 * prims.cc: Rearranged #include ordering. Don't include
6317 java-array.h or java-assert.h.
6318 * boehm.cc: Include config.h, cni.h.
6319 * exception.cc: Include config.h, cni.h.
6320 * include/jvm.h: Include java-assert.h.
6321 * include/cni.h: Include java/lang/Object.h. Don't include
6322 java-threads.h or java-array.h.
6324 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6326 * java/lang/Boolean.java: Rewritten.
6328 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6330 * java/lang/natFirstThread.cc (main_func): New typedef.
6331 (run): Use main_func, not JvPrivThreadStartFunc.
6332 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6334 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6336 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6339 Can't throw Java exceptions with C++ `throw':
6340 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6341 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6342 (setPriority): Likewise.
6346 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6347 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6349 Can't catch Java exceptions from C++:
6350 * java/lang/natThread.cc (finish_): New method.
6352 * java/lang/Thread.java (run_): Rewrote in Java.
6353 (finish_): New native method.
6355 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6357 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6359 * include/javaprims.h (java::io): Added Serializable.
6361 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6363 * java/util/EmptyStackException.java,
6364 java/util/NoSuchElementException.java: Rewritten.
6366 * java/util/ConcurrentModificationException.java,
6367 java/util/MissingResourceException.java,
6368 java/util/TooManyListenersException.java: Created.
6370 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6372 * include/cni.h (JvThrow): New function.
6373 * include/javaprims.h (_Jv_Throw): Declare.
6375 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6377 * java/util/Observable.java: Rewritten.
6379 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6381 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6382 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6383 Include NullPointerException.h.
6385 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6387 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6388 assignability checks. Don't bother using memcpy.
6390 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6392 * include/quick-threads.h (JvPrivThreadWait): New function.
6393 * include/no-threads.h (JvPrivThreadWait): New function.
6394 * include/posix-threads.h (JvPrivThreadWait): New function.
6395 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6397 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6399 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6400 offsets by size of type that is being copied.
6402 * java/lang/natThread.cc (start): Don't pass `object' argument to
6404 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6405 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6407 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6408 always pass thread as object.
6409 * include/quick-threads.h, include/posix-threads.h,
6410 include/no-threads.h (JvPrivThreadStart): Removed `object'
6413 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6415 * java/util/Dictionary.java: Rewritten.
6417 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6419 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6420 (JvPrivThreadDestroy): Likewise.
6422 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6424 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6426 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6428 * java/lang/natSystem.cc: Rewrote from scratch.
6429 * java/lang/System.java: Rewrote from scratch.
6430 * java/lang/Class.h (Class): Declare isAssignableFrom.
6431 * include/javaprims.h (java::lang): Added ArrayStoreException,
6432 IndexOutOfBoundsException.
6433 * Makefile.in: Rebuilt.
6434 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6435 IndexOutOfBoundsException.h.
6436 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6437 * include/jvm.h (_Jv_HashCode): New function.
6439 * java/lang/natThread.cc (suspend): Call checkAccess.
6441 * java/lang/Thread.java (setDaemon): Call checkAccess.
6443 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6445 * java/lang/Runtime.java: Rewrote from scratch.
6446 * java/lang/natRuntime.cc: Rewrote from scratch.
6448 * nogc.cc (JvPrivGCTotalMemory): New function.
6449 (JvPrivGCFreeMemory): Likewise.
6450 (total): New global.
6451 (JvPrivAllocObj): Increment total.
6452 (JvPrivAllocArray): Likewise.
6453 (JvPrivAllocBytes): Likewise.
6454 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6455 * boehm.cc (JvPrivGCTotalMemory): New function.
6456 (sum_blocks): Likewise.
6457 (JvPrivGCFreeMemory): Likewise.
6459 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6461 * include/javaprims.h (java::lang): Added FirstThread.
6462 * java/lang/natFirstThread.cc: New file.
6463 * java/lang/FirstThread.java: New file.
6464 * prims.cc (main_signature): Removed.
6465 (main_name): Removed.
6466 #include FirstThread.h.
6467 * Makefile.in: Rebuilt.
6468 * Makefile.am (TFRIEND): Removed.
6469 (java/lang/Thread.h): Likewise.
6470 (FTFRIEND): New macro.
6471 (java/lang/FirstThread.h): New target.
6472 (nat_files): Added natFirstThread.o.
6473 (nat_headers): Added FirstThread.h.
6474 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6475 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6477 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6481 * java/lang/natThread.cc (start): Synchronize the thread.
6482 (stop): Synchronize the thread.
6484 * java/lang/ThreadDeath.java: Rewrote from scratch.
6486 * Makefile.in: Rebuilt.
6487 * Makefile.am (TGFRIEND): New macro.
6488 (java/lang/ThreadGroup.h): New target.
6489 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6491 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6493 * nogc.cc: Include config.h.
6495 * java/lang/ThreadGroup.java: Rewrote from scratch.
6497 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6499 * java/lang/Thread.java (checkAccess): Only call in to security
6500 manager if it exists.
6501 (Thread): Don't check access when creating the first thread. Add
6502 this thread to the appropriate ThreadGroup.
6504 * java/lang/natThread.cc (run_): Call uncaughtException method on
6507 * java/lang/Runnable.java: Rewrote from scratch.
6508 * java/lang/Thread.java: Updated copyright comment to correct
6511 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6513 * java/util/Random.java: Rewritten.
6515 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6517 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6518 trailing 0 in array[].
6520 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6522 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6523 and RUNTESTFLAGS from AM_MAKEFLAGS.
6524 (SUBDIRS): Conditionally include testsuite.
6525 * Makefile.in: Rebuilt.
6527 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6529 * java/lang/Object.h: Include java-assert.h.
6531 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6533 * Makefile.am: Add testsuite directory.
6534 * configure.in: Build testsuite/Makefile.
6535 * Makefile.in, configure: Rebuilt.
6537 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6539 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6540 * include/jvm.h (_Jv_StartFirstThread): Declare.
6542 * include/javaprims.h (java::lang): Added Exception,
6545 * Makefile.in: Rebuilt.
6546 * Makefile.am (nat_headers): Added NullPointerException.h,
6547 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6548 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6549 (java/lang/Thread.h): New target.
6550 (TFRIEND): New macro
6552 * include/java-assert.h (JvFail): Use 0 and not NULL.
6554 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6555 instead of assuming we are a friend of Thread.
6556 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6557 instead of assuming we are a friend of Thread.
6559 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6561 * java/lang/natThread.cc: Rewrote from scratch.
6562 * java/lang/Thread.java: Rewrote from scratch.
6563 * prims.cc (JvRunMain): Use new Thread constructor.
6564 * include/javaprims.h (java::lang): Added InterruptedException.
6565 * Makefile.in: Rebuilt.
6566 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6567 * java/lang/Thread.h: Removed.
6568 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6569 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6571 * posix-threads.cc (JvPrivThreadJoin): Removed.
6572 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6573 (really_start): Don't notify join_cond.
6574 (JvPrivThreadStart): Added `data' argument.
6575 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6576 (JvPrivThreadJoin): Likewise.
6577 Use JvFail instead of sorry.
6578 (JvPrivThreadSuspend): Removed.
6579 (JvPrivThreadResume): Removed.
6580 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6581 (JvPrivThreadJoin): Likewise.
6582 (JvPrivThreadSuspend): Use JvFail.
6583 (JvPrivThreadResume): Likewise.
6584 (JvPrivThreadSuspend): Removed.
6585 (JvPrivThreadResume): Likewise.
6586 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6587 (JvPrivThread_t): Removed join_mutex, join_cond.
6588 Use JvFail instead of sorry.
6589 (JvPrivThreadSuspend): Removed.
6590 (JvPrivThreadResume): Likewise.
6592 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6594 * java/util/Observer.java: Rewritten
6595 * java/util/Enumeration.java: Rewritten
6597 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6599 * java/util/StringTokenizer.java: Rewritten
6600 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6601 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6602 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6604 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6606 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6609 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6610 Include java-assert.h.
6611 * include/java-assert.h: New file.
6612 * prims.cc (_Jv_Abort): New function.
6613 Include java-assert.h, not assert.h.
6614 (_Jv_MonitorExit): Use JvAssert.
6615 (resolveConstants): Likewise.
6616 (processClass): Likewise.
6617 (JvRunMain): Assert that method is found.
6619 * configure: Rebuilt.
6620 * configure.in: Check for test subdir.
6621 * Makefile.in: Rebuilt.
6622 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6624 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6625 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6627 * prims.cc (resolveConstants): Removed unused variables.
6628 (processClass): Likewise.
6630 * include/quick-threads.h (JvPrivThreadCurrent): Use
6632 * quick-threads.cc (destroy_data): New function.
6633 (JvPrivInitThreads): Create key.
6634 (JvPrivThreadKey): New global.
6635 (JvPrivThreadStart): Use coop_setspecific.
6637 * include/quick-threads.h, include/posix-threads.h,
6638 include/no-threads.h, no-threads.cc, quick-threads.cc,
6639 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6641 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6643 * include/no-threads.h (JvPrivThreadInitData): Don't set
6646 * include/quick-threads.h (JvPrivCondWait): coop function now
6648 (JvPrivThreadJoin): Likewise.
6650 * java/lang/Thread.h (Thread): Updated declaration of
6652 * include/quick-threads.h, include/posix-threads.h: Updated
6653 declaration of JvPrivThreadStart.
6654 * include/no-threads.h (JvPrivThreadStart): Changed definition
6656 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6657 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6658 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6660 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6662 * quick-threads.cc (qthrow): New function.
6663 (JvPrivInitThreads): New function.
6664 (started): New global.
6665 (JvPrivThreadStart): Call coop_start if required.
6666 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6667 (JvPrivThreadDestroy): Likewise.
6668 (JvPrivInitThreads): Removed.
6669 * include/posix-threads.h (JvPrivThreadCancel): Added error
6671 * java/lang/natThread.cc (stop_): Pass exception to
6674 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6676 * include/javaprims.h (java::lang): Added
6677 IllegalArgumentException, IllegalThreadStateException, Math,
6678 NullPointerException, ThreadDeath.
6679 (java::util): Added Enumeration.
6681 * Makefile.in: Rebuilt.
6682 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6684 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6686 (threadsv): Renamed from threads to avoid clash in C++ header.
6687 (groupsv): Likewise.
6688 * include/no-threads.h (JvPrivThreadStart): Removed.
6689 * no-threads.cc (JvPrivThreadStart): New function.
6690 * java/lang/Thread.java (Thread): New constructor for internal use.
6691 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6692 (Thread): Declare constructor.
6693 * prims.cc (JvRunMain): Create the initial Thread and
6695 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6696 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6697 Removed `daemon' argument.
6699 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6700 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6702 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6704 * Makefile.in: Rebuilt.
6705 * Makefile.am (INCLUDES): Include THREADINCS.
6707 * configure: Rebuilt.
6708 * configure.in: Recognize `qt' as a threads package.
6710 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6712 * java/util/Stack.java (pop): Null out topmost node for robustness.
6714 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6716 * java/util/Stack.java: Rewritten.
6717 * java/util/Vector.java (isEmpty): Simplified expression.
6719 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6721 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6722 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6724 * include/java-array.h (JvNewObjectArray): Created inline to
6727 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6730 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6732 * java/util/Vector.java: Rewritten.
6733 * java/io/Serializable.java: Created.
6735 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6737 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6738 Infinity is 1/0, not 1/1.
6740 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6742 * configure: Rebuilt.
6743 * configure.in: Removed duplicate AC_ARG_WITH.
6745 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6747 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6749 (_Jv_InitClass): Renamed from soft_initialise_class.
6750 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6751 (_Jv_CheckCast): Renamed from soft_checkcast.
6752 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6753 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6754 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6755 * include/cni.h (JvInitClass): New function.
6756 (_Jv_InitClass): Renamed from soft_initialise_class.
6758 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6760 * configure: Rebuilt.
6761 * configure.in (CXX): Don't set.
6762 * Makefile.in: Rebuilt.
6763 * Makefile.am (AM_CXXFLAGS): New macro.
6765 * Makefile.in: Rebuilt.
6766 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6767 nogc.o): New target.
6769 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6771 (mark_array): Likewise.
6773 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6775 * java/lang/Class.h (JvMethod): Removed some unused fields.
6776 (JvField.info): Removed unused idx union variant.
6778 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6780 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6783 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6785 * configure.in, configure (CXX): Add -fvtable-thunks.
6787 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6789 * java/lang/Object.java (finalize): Move first.
6790 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6791 (Object): Re-arrange order to match Object.java.
6793 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6795 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6796 * java/lang/natString.cc (hashChars): Likewise.
6798 * prims.cc (RuntimeClass): New macro.
6799 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6801 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6803 * Makefile.in: Rebuilt.
6804 * Makefile.am (AM_MAKEFLAGS): New macro.
6806 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6808 * nogc.cc: Include <javaprims.h>.
6810 * Makefile.in: Rebuilt.
6811 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6813 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6815 * exception.cc (terminate): Removed.
6816 (unexpected): Removed.
6818 * configure: Rebuilt.
6819 * configure.in: Handle case where target subdir is ".".
6821 * configure: Rebuilt.
6822 * configure.in: Compute COMPPATH based on --with-target-subdir
6823 option. Added --with-target-subdir and --with-cross-host. Use
6824 --with-cross-host to determine when a cross compiler is in use.
6826 * Makefile.in: Rebuilt.
6827 * Makefile.am (GJAVAH): Include COMPPATH.
6828 * configure: Rebuilt.
6829 * configure.in: Subst COMPPATH.
6831 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6833 * prims.cc (lockMutex): Removed.
6834 (unlockMutex): Likewise.
6835 (processClass): Lock the class using a JvSynchronize object.
6837 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6839 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6840 (gc_free_fixed): Removed.
6841 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6842 freeing old value of strhash.
6844 * exception.cc (_Jv_type_matcher): Cast first argument to
6847 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6849 * include/java-array.h (jstringArray): New type.
6850 * java/lang/natSystem.cc (setProperty): Removed.
6851 (initProperties): Directly call JvNewStringLatin1 for arguments.
6852 * java/util/natDate.cc: Include java/util/Date.h, not
6855 * java/io/FileDescriptor.java (available): No longer static.
6856 * java/lang/natDouble.cc (Double): Removed class definition.
6857 * include/javaprims.h (java::lang::Number): Declare.
6858 (java::lang::NumberFormatException): Likewise.
6859 (java::io::FilenameFilter): Likewise.
6860 (java::lang::Character): Likewise.
6861 (java::lang::Error): Likewise.
6862 (java::lang::SecurityManager): Likewise.
6863 (java::util::Vector): Likewise.
6864 (java::io::FileNotFoundException): Likewise.
6865 (java::io::IOException): Likewise.
6866 (java::lang::NativeLang): Likewise.
6867 (java::lang::UnsatisfiedLinkError): Likewise.
6868 (java::util::StringTokenizer): Likewise.
6869 (java::io::InputStream, java::io::OutputStream): Likewise.
6870 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6871 (java::util::Hashtable): Likewise.
6872 * Makefile.in: Rebuilt.
6873 * Makefile.am (nat_headers): Added java/lang/Double.h,
6874 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6875 (MOSTLYCLEANFILES): Added nat_headers.
6876 * include/jvm.h: Moved many defines, declarations, and functions
6877 to java/lang/Class.h.
6878 (struct JvSyncInfo): Moved to java/lang/Object.h.
6879 (UTF8_GET): Moved to java/lang/String.h.
6881 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6883 * java/io/io-defs.h: Don't include java-io.h.
6884 * include/java-io.h: Removed.
6885 * include/javaprims.h: Include java::io.
6887 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6889 * include/java-io.h (File): Removed
6890 (FileDescriptor): Likewise.
6892 * java/io/io-defs.h: Include java/io/File.h and
6893 java/io/FileDescriptor.h.
6895 * Makefile.in: Rebuilt.
6896 * Makefile.am (GJAVAH): New macro.
6897 (.class.h): New rule.
6898 (SUFFIXES): Added .h.
6899 (nat_headers): New macro.
6900 ($(nat_headers)): New target.
6901 (BUILT_SOURCES): Added nat_headers.
6903 * include/java-util.h: Removed.
6905 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6907 * include/java-io.h: Changed to avoid java-lang.h.
6908 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6910 * java/lang/natSystem.cc: Include java/lang/System.h, not
6912 * java/lang/natString.cc: Include java/lang/String.h, not
6914 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6916 * java/lang/natClass.cc: Include java/lang/Class.h, not
6918 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6920 * java/lang/natObject.cc: Include java/lang/Object.h, not
6922 * exception.cc: Don't include java-lang.h.
6923 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6924 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6925 * nogc.cc: Don't include java-lang.h.
6926 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6927 * prims.cc (processClass): Don't use `init_type'; just cast to
6929 Include java/lang/Class.h and jvm.h, not java-lang.h.
6930 (JvAllocObject): Wrote single-argument version.
6931 (PrimClass): Inherit from Class.
6932 (initPrimClass): Removed.
6933 * include/java-lang.h: Removed.
6934 * include/jvm.h: Declare struct _dispatchTable.
6935 * include/cni.h: Don't declare _Jv_MonitorEnter,
6936 _Jv_MonitorExit, struct _dispatchTable.
6937 * include/javaprims.h: Moved all typedefs here, from cni.h.
6938 * java/lang/Class.h: New file.
6939 * include/java-array.h: New file.
6940 * java/lang/Object.h: New file.
6942 * prims.cc (classFromSig): Now static.
6944 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6946 * include/cni.h: Don't mention soft_new.
6947 * include/java-lang.h (Object): Don't mention soft_new. Mention
6948 _Jv_NewPrimArray, not newPrimArray.
6949 * prims.cc (soft_new): Removed.
6950 (_Jv_NewArray): Renamed from soft_newarray.
6951 (soft_anewarray): Use JvNewObjectArray.
6952 (newArray): Likewise.
6953 (newRefArray): Removed.
6954 (_Jv_NewPrimArray): Renamed from newPrimArray.
6955 (equalUtf8Consts): Now static.
6956 (soft_instanceof): Removed.
6957 * java/lang/natDouble.cc (doubleToString): Now static.
6959 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6960 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6963 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6965 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6967 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6969 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6970 (JvPrivMutexUnlock): Likewise.
6971 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6972 Return value now jint.
6973 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6976 * Makefile.in: Rebuilt.
6977 * Makefile.am: Don't allow `jV' names.
6978 (maintainer-check): Depend on libjava.a.
6979 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6981 * Makefile.in: Rebuilt.
6982 * Makefile.am (NM): New macro.
6983 (maintainer-check): New target.
6985 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6987 * configure: Rebuilt.
6988 * configure.in: Use --enable-threads, not --enable-gc. Fix
6989 documentation for --enable-threads. Changed option to work like
6990 identical option in gcc/configure.
6992 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6994 * boehm.cc (mark_array): Use JvGetArrayLength.
6996 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6998 * exception.cc: New file (mostly written by Andrew MacLeod),
6999 exception handling support.
7000 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7001 Remove -fexceptions - it is now the default.
7003 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7004 (JvAllocObject): Renamed to _Jv_AllocObject.
7005 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7006 (loadClass): Renamed to _Jv_FindClass.
7007 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7008 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7009 * include/java-lang.h (JvGetArrayLength): New CNI function.
7010 * include/jvm.h (_Jv_FindClass): Added declaration.
7012 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7014 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7016 * java/lang/natClass.cc (getName): Add implementation.
7017 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7019 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7021 * Makefile.in: Rebuilt.
7022 * Makefile.am (.class.o): Added -fexceptions.
7024 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7026 * configure: Rebuilt.
7027 * configure.in: Don't check for __nanosleep.
7028 * posix-threads.cc (nanosleep): Never define.
7030 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7032 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7035 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7037 * java/lang/natThread.cc (enumerate): Uncommented.
7038 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7039 (interrupt): Call it.
7041 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7043 * configure: Rebuilt.
7044 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7046 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7048 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7049 * include/java-lang.h (Thread): Added `interrupted_' method.
7050 * java/lang/Thread.java (interrupted_): New method.
7051 * java/lang/natThread.cc (join): Possibly throw interrupted
7052 exception after join finishes.
7053 (interrupted_): New method.
7054 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7056 (JvPrivThreadJoin): New function.
7057 (really_start): Notify all threads waiting for this thread.
7058 (struct starter): Added `data' member.
7059 (JvPrivThreadStart): Set it.
7060 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7062 (JvPrivThreadJoin): No longer inline.
7063 (JvPrivThreadInterrupt): New function.
7065 * include/no-threads.h (JvPrivThreadSleep): Removed.
7066 * posix-threads.cc (JvPrivThreadSleep): Removed.
7068 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7070 * configure: Rebuilt.
7071 * configure.in (THREADOBJS): Initialize to no-threads.o in
7073 * posix-threads.cc (key): New global.
7074 (JvPrivInitThreads): New function.
7075 (really_start): Set thread-specific data to point to object.
7076 (JvPrivThreadStart): Added `daemon' argument.
7077 (JvPrivThreadSleep): Added `data' argument.
7078 * include/posix-threads.h (JvPrivInitThreads): Removed
7080 (JvPrivThreadCurrent): New function.
7081 * include/no-threads.h (JvPrivThreadInitData): Initialize
7082 JvPrivOnlyThread. Added `thread' argument.
7083 (JvPrivThreadCurrent): New function.
7084 (JvPrivThreadStart): Added `daemon' argument.
7085 * no-threads.cc: New file.
7086 * java/lang/natThread.cc (init_data): New function.
7088 (start): Set `alive' member.
7089 (stop_): Clear `alive' member.
7090 (destroy): Likewise.
7091 (currentThread): Implemented.
7092 (start): Pass `daemon' argument to JvPrivThreadStart.
7094 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7095 (Thread): Added `init_data' method.
7096 * java/lang/Thread.java (alive, data): New instance variables.
7097 (init_data): New private method.
7098 (isAlive): No longer native.
7100 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7102 * include/java-lang.h (JvRunMain): Declare.
7103 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7104 * prims.cc (JvRunMain): New function.
7105 (main_signature, main_name): New globals.
7107 * boehm.cc (mark_array): Use `elements' function and not
7108 operator[] on jarray.
7110 * posix-threads.cc: Include <config.h>. Define nanosleep if
7113 * configure: Rebuilt.
7114 * configure.in: Check for _nanosleep.
7116 * configure: Rebuilt.
7117 * configure.in: Check for pthread_mutexattr_settype.
7119 * include/cni.h (class JvSynchronize): New class.
7120 * java/lang/Thread.java (sleep): Throws InterruptedException.
7121 (join): Throws InterruptedException.
7122 (resume): Not native.
7123 (resume_): New method.
7124 (start): Now synchronized.
7125 (stop_): New method.
7126 (Thread): Synchronize when accessing threadNumber.
7128 * java/lang/natThread.cc (throwException): New macro.
7129 (sleep): Throw InterruptedException.
7132 * include/java-lang.h (Runtime): Added interrupted().
7134 * boehm.cc (call_finalizer): Correctly initialize jobj.
7135 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7137 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7140 * configure: Rebuilt.
7141 * configure.in: Added support for --disable-threads.
7142 * include/no-threads.h: New file.
7144 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7146 * Makefile.in: Rebuilt.
7147 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7148 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7149 (libjava_a_LIBADD): Added THREADOBJS.
7150 * configure: Rebuilt.
7151 * configure.in: Added --with-threads option.
7152 * posix-threads.cc: New file.
7153 * include/posix-threads.h: New file.
7154 * include/java-lang.h (Object): Added static member sync_mutex,
7155 member sync_info, method init_mutex.
7156 (struct JvSyncInfo): New struct.
7157 Include "java-threads.h".
7158 * prims.cc (soft_monitorenter): Wrote.
7159 (soft_monitorexit): Likewise.
7160 * java/lang/natObject.cc (init_mutex): New method.
7164 (sync_mutex): Define.
7165 Include "java-threads.h".
7167 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7169 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7170 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7172 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7174 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7175 Added extern "Java" in places to tell G++ Object is a "Java" type.
7176 Other minor renaming and fixes.
7177 * include/java-io.h (FileDescriptor): Add friend class declarations.
7178 G++ no longer allows non-Java types in method parameters and results
7179 of Java classes. Converted most offending methods to friends.
7180 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7181 * java/lang/natSystem.cc (setProperty): Make friend.
7182 * java/lang/natString.cc, include/java-lang.h (String): Rename
7183 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7184 * include/java-lang.h (JArray): Remove getData and eoprator[].
7185 Add elements friend function instead.
7186 * java/lang/natSystem.cc (arraycopy): Use elements function.
7187 * java/io/natFileDescriptor.cc (read, write): Likewise.
7188 * include/java-lang.h (Object): Remove unused make method.
7189 (System::setProperty(char*,char*)): Turn into friend function.
7190 (Class): Rename newObject by JvAllocObject.
7191 * prims.cc: Update to use JvAllocObject, and elements.
7193 * java/lang/natDouble.cc: Fix double -> jdouble.
7195 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7197 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7199 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7201 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7202 * include/java-lang.h (Runtime): finalize_on_exit and
7203 runFinalizersOnExit now static.
7204 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7206 (finalize_on_exit): Now static.
7208 * boehm.cc (mark_obj): Get class using getClass() method on
7210 (_dispatchTable): Removed.
7212 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7214 * java/io/natFileDescriptor.cc (open_read): Only call open if
7216 (open_write): Likewise.
7218 * Makefile.in: Rebuilt.
7219 * Makefile.am ($(nat_files)): Depend on config.h.
7221 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7223 * prims.cc (ObjectClass): Now a macro; updated for new class name
7225 (StringClass): Likewise.
7226 (ClassClass): Likewise.
7228 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7230 * java/io/natFileDescriptor.cc (available): Do nothing unless
7231 HAVE_SELECT defined.
7232 * java/util/natDate.cc (setTime): Conditional on
7234 (toString): Conditional on HAVE_TIME.
7235 * aclocal.m4, configure: Rebuilt.
7236 * acinclude.m4: New file.
7237 * configure.in: Don't actually call AM_EXEEXT. Call
7238 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7239 --with-target-subdir option. Check for select and open
7242 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7244 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7245 (call_finalizer): Likewise.
7246 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7247 * prims.cc (newObject): Pass actual method pointer to
7248 JvPrivRegisterFinalizer.
7249 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7250 (JvPrivRegisterFinalizer): Changed interface.
7252 * Makefile.in: Rebuilt.
7253 * Makefile.am (MOSTLYCLEANFILES): New macro.
7254 (CLEANFILES): Removed javao_files.
7256 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7258 * nogc.cc: New file.
7259 * Makefile.in: Rebuilt.
7260 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7261 (EXTRA_libjava_a_SOURCES): New macro.
7262 (libjava_a_SOURCES): Removed boehm.cc.
7263 (libjava_a_DEPENDENCIES): Added GCOBJS.
7264 (libjava_a_LIBADD): Likewise.
7265 * configure: Rebuilt.
7266 * configure.in: Added code for --enable-gc=TYPE.
7268 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7270 * boehm.cc (mark_array): Don't further dereference pointer from
7273 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7274 * Makefile.in: Rebuilt.
7275 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7276 one for boehm-gc build directory.
7278 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7280 * include/java-lang.h (finalize_on_exit): New instance variable in
7281 java::lang::Runtime.
7282 (runFinalizersOnExit): New method.
7283 * java/lang/Runtime.java (finalize_on_exit): New instance
7285 (runAllFinalizers_): New private method.
7286 (runFinalizersOnExit): New method.
7287 * boehm.cc (JvPrivRunFinalizers): New function.
7288 (JvPrivRunAllFinalizers): Likewise.
7289 (JvPrivRunGC): Likewise.
7290 * java/lang/natRuntime.cc: Include "jvm.h".
7291 (gc): Call JvPrivRunGC.
7292 (runFinalization): Call JvPrivRunFinalizers.
7293 (runFinalizersOnExit): New method.
7294 (exit_): Call JvPrivRunAllFinalizers if required.
7295 * include/jvm.h: Declare JvPrivRunFinalizers,
7296 JvPrivRunAllFinalizers, JvPrivRunGC.
7298 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7300 * boehm.cc (JvPrivRegisterFinalizer): New function.
7301 (call_finalizer): Likewise.
7302 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7303 * prims.cc (finalize_name): New global.
7304 (newObject): Just call other newObject.
7305 (newObject): Register finalizer if it exists.
7307 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7309 * prims.cc (gc_malloc): Removed.
7310 (makeUtf8Const): Use JvPrivAllocBytes.
7311 (lookupArray): Likewise.
7312 (newPrimArray): Likewise.
7313 (JvNewObjectArray): Use JvPrivAllocArray.
7314 (newObject): Use JvPrivAllocObj.
7315 (newObject): Likewise.
7316 Changed Method -> JvMethod everywhere.
7317 Changed Field -> JvField everywhere.
7318 * include/java-lang.h (Object): Changed type of `fields' to
7320 (jmethodID, jfieldID): New typedefs.
7321 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7323 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7325 (METHOD_NATIVECODE): Moved from java-lang.h.
7326 (class JvField): New class.
7327 (JvGetFirstInstanceField): New function.
7328 (JvFieldIsRef): Likewise.
7329 (JvGetObjectField): Likewise.
7330 (JvNumInstanceFields): Likewise.
7332 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7334 * boehm.cc: New file.
7335 * Makefile.in: Rebuilt.
7336 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7337 (INCLUDES): Added -I options to find boehm-gc files.
7339 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7341 * configure: Rebuilt.
7342 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7344 * Makefile.in: Rebuilt.
7345 * Makefile.am (nat_files): New macro.
7346 (libjava_a_DEPENDENCIES): Use it.
7347 (libjava_a_LIBADD): Likewise.
7348 ($(nat_files)): New static pattern rule.
7349 (class_files): Run separate find to find .class files.
7350 (javao_files): Compute based on class_files.
7351 (BUILT_SOURCES): New macro.
7353 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7355 * Makefile.am (java_files): New macro.
7356 (class_files): Likewise.
7357 (javao_files): Likewise.
7358 (libjava_a_DEPENDENCIES): Include $(javao_files).
7359 (libjava_a_LIBADD): Likewise.
7360 (classes.stamp): Depend on $(java_files); only recompile changed
7363 (CLEANFILES): Don't run find; use macros. Don't mention
7365 (.class.o): New target.
7366 (compiled.stamp): Removed.
7368 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7370 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7371 LineNumberReader}>java: Newly-implemented standard classes.
7373 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7375 * Makefile.in: Rebuilt.
7376 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7378 * Makefile.in: Rebuilt.
7379 * Makefile.am (hack): New macro.
7380 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7382 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7384 * include/config.h.in: New file.
7385 * include/config.h: Removed.
7386 * acconfig.h: New file.
7387 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7388 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7389 libjava_a_LIBADD): New macros.
7390 (INCLUDES): New macro.
7393 (SUFFIXES): Removed.
7395 (libjava.a): Removed.
7397 * configure: Rebuilt.
7398 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7399 Look for headers and functions we require. Create
7402 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7404 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7405 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7406 soft_lookupinterfacemethod): New functions.
7407 (PrimClass): Actually initialize the primitive classes.
7408 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7410 * include/java-util.h: Removed java::util definition.
7411 * include/cni.h: Moved java::util here and added Properties.
7412 Added more function prototypes.
7413 * include/java-lang.h: Added mroe methods and friend declarations.
7414 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7415 * include/jvm.h (strLengthUtf8): Add declaration.
7417 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7419 * java/lang/{Byte,Short,Void}.java: New classes.
7420 * java/lang/Character.java (isJavaIdentifierStart,
7421 JavaIdentifierPart): New static methods.
7422 * java/lang/Number.java (byteValue, shortValue): New methods.
7424 * java/lang/String.java (intern, hashCode): Make native.
7425 * java/lang/natString.cc: New file. Handle the string pool.
7426 * Makefile.am: Build natString.o. Use CXXFLAGS.
7428 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7429 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7430 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7431 * java/lang/System.java (setProperty): New private method.
7432 (initProperties): Take argument, and make native.
7433 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7434 (currentTimeMillis): Make more robust.
7436 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7437 * java/io/UnsupportedEncodingException.java: New exception class.
7439 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7440 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7442 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7444 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7445 * prims.cc: Added bunch of stuff.
7446 * include/cni.h: Added various definitions.
7447 * include/java-lang.h: Added Method, various friends, some macros.
7449 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7450 * java/lang/System.java (arraycopy): Make native.
7452 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7454 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7455 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7456 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7457 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7459 * java/lang/Runtime.java: Declare methods as native instead of
7461 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7462 * java/lang/System.java: Comment out some stuff, for now.
7463 * java/lang/Thread.java: Re-write. Use native methods.
7464 * java/lang/NativeLang.java: Remove most of it.
7466 * java/util/natDate.cc: Native (C++) methods for Date.
7467 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7468 * java/util/Date.java: Complete re-write.
7470 * java/io/io-defs.h: New header file.
7471 * java/io/FileDescriptor.java: Add a bunch of private methods,
7472 mostly moved from NativeIO.java and natNativeIO.cc.
7473 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7474 * java/io/File.java: Use new code.
7475 * java/io/{FileInputStream.java.FileOutputStream.java,
7476 RandomAccessFile.java}: Use new private FileDescriptor methods.
7477 * java/io/NativeIO.java: Removed, no longer used.
7479 * java/io/StreamTokenizer.java (numericChars): Make char array.
7481 * include/*.h: Various header files used by the C++ native code.
7483 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7484 New autoconf+automake-based setup.
7485 * prims.cc: New file for Java "primitives".