1 2000-01-26 Tom Tromey <tromey@cygnus.com>
3 * gcj/method.h (JvNumMethods): Moved from Class.h.
4 (JvGetFirstMethod): Likewise.
5 * java/lang/Class.h (Object): Updated decl of
6 _Jv_JNI_ToReflectedField.
7 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
8 * Makefile.in: Rebuilt.
9 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
10 argument of _Jv_JNI_ToReflectedField.
11 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
13 (java/lang/reflect/Method.h): Likewise.
14 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
17 (struct JNINativeInterface): Correctly declare remaining entries.
18 * jni.cc: Include Class.h, ClassLoader.h.
19 (_Jv_JNI_FindClass): New function.
20 (_Jv_JNI_DefineClass): New function.
21 (_Jv_JNI_conversion_call): New function.
22 (_Jv_JNI_FindClass): Use current class loader to find class.
23 (_Jv_JNI_ExceptionCheck): New function.
24 (_Jv_JNI_FromReflectedField): Now static.
25 (MethodClass): New define.
26 (_Jv_JNI_FromReflectedMethod): New function.
27 (_Jv_JNI_ToReflectedMethod): Likewise.
29 (_Jv_JNI_IsAssignableFrom): Renamed.
30 (_Jv_JNI_GetStringRegion): New function.
31 Include StringIndexOutOfBoundsException.h.
32 (_Jv_JNI_GetStringUTFRegion): New function.
33 (_Jv_JNIFunctions): Updated for new functions.
34 (_Jv_JNI_GetPrimitiveArrayCritical): New function
35 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
36 (_Jv_JNI_GetStringCritical): New function.
37 (_Jv_JNI_ReleaseStringCritical): Likewise.
38 (get_throwable): Removed.
39 (GCJ_JV_JNIENV_FRIEND): Removed.
40 (__GCJ_JNI_IMPL__): Define.
43 * resolve.cc (get_ffi_type_from_signature): Handle case where
46 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
48 * interpret.cc (run): Don't call println.
49 Don't include PrintStream.h.
51 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
52 nameIndex. Use "jint" as type for boffset.
53 * java/lang/Class.h (struct _Jv_Method): Made accflags a
55 (Class): Likewise. Also changed type of method_count,
56 vtable_method_count, size_in_bytes, field_count,
57 static_field_count, interface_count.
58 * gcj/array.h (__JArray): Made `length' a const jsize, not an
61 2000-01-21 Tom Tromey <tromey@cygnus.com>
63 * java/lang/reflect/natConstructor.cc (newInstance): Use
65 * include/jvm.h: Declare _Jv_CallAnyMethodA.
66 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
67 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
70 (invoke): Use _Jv_CallAnyMethodA.
72 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
73 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
75 (struct _Jv_Method): Added getNextMethod method.
76 (JvNumMethods): New function.
77 (JvGetFirstMethod): Likewise.
78 * gcj/field.h (JvGetFirstStaticField): New function.
79 (JvNumStaticFields): Likewise.
80 (getNextField): Renamed from getNextInstanceField.
81 (struct _Jv_Field): New method getClass.
82 * jni.cc: Wrote many new functions.
83 * include/jni.h (JNI_TRUE): Define.
84 (JNI_FALSE): Likewise.
85 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
86 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
87 jcharArray, jfloatArray, jdoubleArray): New typedefs.
88 (jfieldID, jmethodID): Likewise.
89 (JNI_COMMIT, JNI_ABORT): New defines.
90 (JNINativeMethod): New struct.
91 (struct JNINativeInterface): Correctly declared more entries.
92 (class _Jv_JNIEnv): Added `ex' member.
93 (JNI_VERSION_1_1): New define.
94 (JNI_VERSION_1_2): Likewise.
96 * boehm.cc (_Jv_MarkObj): Use getNextField, not
99 2000-01-20 Tom Tromey <tromey@cygnus.com>
101 * resolve.cc (StringClass): Removed.
102 * defineclass.cc (StringClass): Removed.
104 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
108 2000-01-19 Tom Tromey <tromey@cygnus.com>
110 * interpret.cc (PC_REGISTER_ASM): Removed.
112 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
115 * All files: Updated copyright to reflect Cygnus purchase.
117 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
119 * configure: Rebuilt.
120 * configure.in: Recognize --disable-interpreter.
122 2000-01-18 Andrew Haley <aph@cygnus.com>
124 * name-finder.cc (lookup): Check for dladdr function.
125 acconfig.h (HAVE_DLADDR): Add.
126 configure.in: Check for HAVE_DLADDR
128 include/config.h.in: Rebuilt.
130 2000-01-17 Andrew Haley <aph@cygnus.com>
132 * prims.cc (_Jv_RunMain): Set the name of this executable.
134 2000-01-17 Tom Tromey <tromey@cygnus.com>
136 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
137 when backtrace can't be computed.
139 * configure: Rebuilt.
140 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
142 * java/lang/Runtime.java (loadLibraryInternal): Declare.
143 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
144 (_Jv_FindClassInCache): Likewise.
145 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
146 (findSystemClass): Try to load class from compiled module.
148 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
149 (loadLibrary): Likewise.
150 (lt_preloaded_symbols): Define.
151 (loadLibraryInternal): New method.
152 * include/config.h.in: Rebuilt.
153 * acconfig.h (USE_LTDL): Added.
154 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
155 (INCLUDES): Added $(INCLTDL).
156 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
157 (libgcj_la_LIBADD): Likewise.
158 * aclocal.m4, configure: Rebuilt.
159 * configure.in: Added libltdl support.
161 2000-01-15 Tom Tromey <tromey@cygnus.com>
163 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
165 2000-01-14 Andrew Haley <aph@cygnus.com>
167 * java/lang/natThrowable.cc: New file.
169 * java/lang/Throwable.java (fillInStackTrace): Make native.
170 (printStackTrace): Call native method to do this.
171 (Throwable): Call fillInStackTrace.
172 (stackTrace): New variable.
174 * include/jvm.h: Add _Jv_ThisExecutable functions.
176 * prims.cc: (_Jv_execName): New variable.
177 (catch_segv): Call fillInStackTrace.
179 (_Jv_ThisExecutable): New functions.
180 (JvRunMain): Set the name of this executable.
182 * Makefile.am: Add java/lang/natThrowable.cc.
184 * Makefile.in: Rebuilt.
186 * acconfig.h: Add HAVE_PROC_SELF_EXE.
188 * configure.in: Force link with __frame_state_for in
189 FORCELIBGCCSPEC. Add new checks for backtrace.
190 * include/config.h.in: Rebuilt.
192 * name-finder.cc: New file.
193 * include/name-finder.h: New file.
195 2000-01-16 Anthony Green <green@cygnus.com>
197 * java/lang/StringBuffer.java (StringBuffer): Don't special case
200 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
202 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
204 2000-01-13 Tom Tromey <tromey@cygnus.com>
206 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
207 not system loader, as initiating loader.
209 2000-01-11 Tom Tromey <tromey@cygnus.com>
211 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
212 HP/UX. From David Scott Urban.
214 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
216 * java/lang/natMath.cc (pow): Cast args to `double', not
219 (IEEEremainder): Likewise.
220 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
221 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
223 2000-01-09 Anthony Green <green@cygnus.com>
225 * java/lang/natString.cc (init): Test for overflow condition
226 during out of bounds check.
227 (getChars): Throw StringIndexOutOfBoundsException, not
228 ArrayIndexOutOfBoundsException.
230 (regionMatches): Obey case option during string comparison.
232 * configure.host (ligcj_interpreter): New variable. Enable
233 interpreter by default on IA-32.
234 * configure.in: Examine libgcj_interpreter.
235 * configure: Rebuilt.
237 2000-01-07 Tom Tromey <tromey@cygnus.com>
239 * mauve-libgcj: Don't disable ClassTest.
241 * java/lang/natClass.cc (getClasses): Wrote.
243 2000-01-06 Tom Tromey <tromey@cygnus.com>
245 * java/lang/natClass.cc (_getConstructors): Correctly check
246 whether method name is the init name.
247 (getMethod): Look at accflags on method in `klass', not `this'.
249 2000-01-05 Tom Tromey <tromey@cygnus.com>
251 * java/lang/natClass.cc (getMethod): Compute offset relative to
252 `klass's methods table, not `this's table.
254 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
255 In unwrapping/widening case, check whether `k' is null, not
256 whether it is primitive. Initialize `num' from `argelts', not
257 `paramelts'. Correct create and pass arguments to ffi_call.
258 Don't let presence of `this' argument affect index used to look in
260 (COPY): Set appropriate element in `values' vector.
262 * java/lang/natClass.cc: Include <gcj/method.h>.
264 * java/lang/Class.h (_getMethods): Correctly declare as private,
267 * java/lang/Class.h (_getMethods): Declare.
268 * java/lang/Class.java (_getMethods): Declare.
269 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
270 (getDeclaredClasses): Always return empty array.
271 (_getMethods): New method.
273 (getDeclaredMethod): Return `rmethod'.
274 (finit_name): New global.
275 (getDeclaredMethods): Check for finit_name.
276 (_getMethods): Likewise.
277 (getMethod): Only return public methods.
279 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
280 jboolean and select correct ffi type on that basis.
281 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
282 Constructor call always has `void' return type.
284 2000-01-04 Tom Tromey <tromey@cygnus.com>
286 * java/lang/Class.h (getSignature): Updated.
287 * java/lang/Class.java (getSignature): Updated.
288 * java/lang/natClass.cc (getSignature): Added `is_constructor'
290 (getConstructor): Ensure constructor is public.
291 (_getConstructors): Check for public-ness of constructor when
292 `declared' is false, not when it is true.
294 2000-01-04 Warren Levy <warrenl@cygnus.com>
296 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
298 (receive): Set the sender's address in the DatagramPacket.
300 2000-01-04 Tom Tromey <tromey@cygnus.com>
302 * java/lang/reflect/natConstructor.cc (newInstance): Pass
303 declaring class as return_type argument to
304 _Jv_CallNonvirtualMethodA.
305 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
306 constructor case, create object and use it as `this' argument.
307 * java/lang/Class.h (_getConstructors): Declare.
308 (_getFields): Declare.
309 * java/lang/Class.java (getConstructors): Wrote.
310 (_getConstructors): New native method.
311 (getDeclaredConstructors): Wrote.
312 (_getFields): Declare new native method.
313 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
315 (getMethod): Work correctly when class is primitive.
316 (getDeclaredMethods): Likewise. Compute offset using `method',
318 (getDeclaredMethod): Likewise.
319 (getConstructor): Wrote.
320 (ConstructorClass): New define.
321 (getDeclaredConstructor): Wrote.
322 (_getConstructors): New method.
323 (_getFields): New method.
326 * Makefile.in: Rebuilt.
327 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
329 * prims.cc: Remove `#pragma implementation'.
330 * gcj/array.h: Remove `#pragma interface'.
332 * prims.cc (_Jv_equaln): New function.
333 * java/lang/Class.java (getSignature): Declare.
334 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
335 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
337 (getSignature): New method.
338 (getDeclaredMethod): Wrote.
340 Include StringBuffer.h.
341 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
342 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
344 (getSignature): Declare.
345 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
346 (_Jv_equaln): Declare.
347 (_Jv_CallNonvirtualMethodA): Declare.
348 * Makefile.in: Rebuilt.
349 * Makefile.am (nat_source_files): Added natConstructor.cc.
350 (java/lang/reflect/Constructor.h): New target.
351 * java/lang/reflect/natConstructor.cc: New file.
352 * java/lang/reflect/Constructor.java (newInstance): Now native.
353 (declaringClass): Renamed from decl_class.
354 (offset): Renamed from index.
355 (getType): New native method.
356 (getModifiers): Now native.
357 (getParameterTypes): Call getType if required.
358 (hashCode): Include hash code from declaring class.
359 (modifiers): Removed.
360 (toString): Call getType if required.
361 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
362 * java/lang/reflect/natMethod.cc (hack_call): New method.
363 Removed `#if 0' around FFI code.
364 Include <gnu/gcj/RawData.h>.
365 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
366 IllegalArgumentException when argument object and class disagree.
367 (_Jv_GetTypesFromSignature): New function.
369 (ObjectClass): New define.
370 (_Jv_CallNonvirtualMethodA): New function.
371 * java/lang/reflect/Method.java (hack_trampoline): New method.
372 (hack_call): New native method.
374 1999-12-21 Per Bothner <per@bothner.com>
376 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
377 offset in new Method.
379 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
381 * java/lang/natObject.cc (notify): Throw message with
382 IllegalMonitorStateException.
385 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
386 (isInterrupted_): New function, which does clear interrupt_flag.
387 (interrupt): Use `isInterrupted_'.
388 * java/lang/natThread.cc (interrupt): Add comment.
389 (join): Set `prev' in joiner loop.
390 Change various calls to `isInterrupted' to use `isInterrupted_'.
391 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
392 on linux. Set result to 0 on an interrupt. Test interrupted status
393 of java Thread object directly.
394 FLAG_INTERRUPTED: removed.
395 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
396 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
397 (_Jv_InitThreads): Don't block SIGINT.
398 (_Jv_ThreadWait): Don't configure SIGINT handler.
400 1999-12-21 Tom Tromey <tromey@cygnus.com>
402 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
404 1999-12-20 Tom Tromey <tromey@cygnus.com>
406 * java/lang/reflect/Modifier.java (STRICT): New constant.
407 (isStrict): New method.
408 (toString): Added `strict'.
410 1999-12-23 Anthony Green <green@cygnus.com>
412 * configure: Rebuilt.
413 * configure.in (LIBDATASTARTSPEC): Force data_start in with
416 1999-12-19 Anthony Green <green@cygnus.com>
418 * libgcjdata.c: New file.
419 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
420 * configure: Rebuilt.
421 * configure.in (LIBDATASTARTSPEC): Force data with a known name
423 * Makefile.in: Rebuilt.
424 * Makefile.am: Build libgcjdata.a.
426 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
427 * configure: Rebuilt.
428 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
431 1999-12-17 Tom Tromey <tromey@cygnus.com>
433 * java/lang/reflect/Method.java (toString): Call getType if
434 required. Partial fix for PR libgcj/111. From Per Bothner.
436 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
438 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
440 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
441 null String constructor parameter.
442 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
443 for exception messages.
444 BooleanClass: declare.
445 (setOption): Use BooleanClass instead of Class.forName() for
447 (bind): Cast 4th parameter of setsockopt to `char *' for
448 compatibility with older Solaris headers.
449 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
450 sprintf calls for exception messages.
451 BooleanClass, IntegerClass: declare.
452 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
455 1999-12-15 Tom Tromey <tromey@cygnus.com>
457 * java/lang/natSystem.cc (init_properties): Don't set user.name or
458 user.home if NO_GETUID defined. Only set user.dir if getcwd
461 * include/config.h.in: Rebuilt.
462 * acconfig.h (NO_GETUID): New define.
463 * configure.in: Rebuilt.
464 * configure.in: Define NO_GETUID in cross case. Check for getcwd
467 1999-12-08 Tom Tromey <tromey@cygnus.com>
469 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
470 where no recursive mutexes exist. Fixes PR libgcj/117.
472 1999-12-05 Anthony Green <green@cygnus.com>
474 * include/jvm.h: Declare many functions with
475 __attribute__((__malloc__)).
476 * gcj/javaprims.h: Ditto.
478 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
480 * THANKS: Giving credit where credit is due.
482 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
484 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
486 * java/lang/natString.cc (equalsIgnoreCase): return false if
487 anotherString is null.
488 * java/lang/Boolean.java (valueOf): return FALSE if argument is
491 1999-11-30 Tom Tromey <tromey@cygnus.com>
493 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
494 mutex to initialize. Initialize `count' if required.
497 1999-11-27 Per Bothner <per@bothner.com>
499 * exception.cc: Remove prototype declarations for malloc and free.
500 These clash with recent versions of glibc, which specifies `throws ()'
501 when __cplusplus is defined. Instead, #include <stdlib.h>.
503 1999-11-24 Tom Tromey <tromey@cygnus.com>
505 * prims.cc (_Jv_NewObjectArray): Use
506 _Jv_GetArrayElementFromElementType.
507 (_Jv_NewPrimArray): Likewise.
508 * java/lang/natObject.cc (clone): Use
509 _Jv_GetArrayElementFromElementType instead of sizeof.
510 * java/lang/natSystem.cc (arraycopy): Use
511 _Jv_GetArrayElementFromElementType.
512 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
515 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
517 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
518 Exception messages. PR java.net/57.
519 (bind): set SO_REUSEADDR before bind.
520 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
521 overruns. PR java.net/57.
523 1999-11-19 Tom Tromey <tromey@cygnus.com>
525 * Makefile.am (DIVIDESPEC): Removed.
526 (EXCEPTIONSPEC): Removed.
528 1999-11-19 Andrew Haley <aph@cygnus.com>
530 * Makefile.am (JCFLAGS): Add -L$(here)
532 * Makefile.in: Rebuild.
534 1999-11-18 Tom Tromey <tromey@cygnus.com>
536 * java/lang/natDouble.cc: Include <config.h>.
538 * include/config.h.in: Rebuilt.
539 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
540 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
542 * configure: Rebuilt.
543 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
544 requested by configure.host. Don't put `-D' option into
545 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
547 * configure: Rebuilt.
548 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
551 1999-11-18 Andrew Haley <aph@cygnus.com>
553 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
554 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
556 * Makefile.in: Rebuild
557 * acconfig.h: remove SJLJ_EXCEPTIONS
558 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
559 Do not AC_DEFINE SJLJ_EXCEPTIONS.
560 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
561 * gcj/Makefile.in, include/Makefile.in: rebuild.
562 * include/config.h.in: remove SJLJ_EXCEPTIONS.
564 1999-11-18 Andrew Haley <aph@cygnus.com>
566 * gij.cc (main): Rename label to prevent conflict.
568 * exception.cc (_Jv_type_matcher): Don't check the table if we're
569 using setjmp/longjmp exceptions: there isn't one.
571 1999-11-17 Andrew Haley <aph@cygnus.com>
573 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
574 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
575 (__sjthrow): Add declaration.
576 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
580 * Makefile.in: Rebuild
581 * acconfig.h: Add SJLJ_EXCEPTIONS
582 * configure.in: Add SJLJ_EXCEPTIONS
583 * configure: Rebuild.
584 * gcj/Makefile.in: Rebuild.
585 * gcj/cni.h: Add support for sjlj-exceptions.
586 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
587 * include/Makefile.in: Rebuild.
588 * include/default-signal.h: Add support for sjlj-exceptions.
590 1999-11-18 Tom Tromey <tromey@cygnus.com>
592 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
594 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
596 (method_cache): Made larger.
598 1999-11-11 Tom Tromey <tromey@cygnus.com>
600 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
601 initializing mutex. Initialize `count' when required.
603 1999-11-07 Anthony Green <green@trip.cygnus.com>
605 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
608 1999-11-05 Tom Tromey <tromey@cygnus.com>
610 * java/lang/natThread.cc (destroy): Removed incorrect comment.
612 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
614 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
615 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
618 1999-11-05 Tom Tromey <tromey@cygnus.com>
620 * java/lang/natThread.cc (stop): Removed argument name.
622 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
623 `private'; now has default access.
624 * Makefile.in: Rebuilt.
625 * Makefile.am (java/lang/ThreadGroup.h): Removed.
627 1999-11-04 Tom Tromey <tromey@cygnus.com>
629 * java/lang/natClass.cc (method_cache_count): Removed.
630 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
631 (_Jv_AddMethodToCache): Don't loop.
633 * configure.in: Removed `qt' threads case.
634 * include/quick-threads.h: Removed.
635 * quick-threads.cc: Removed.
637 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
638 (_Jv_ThreadDestroy): Likewise.
639 * include/no-threads.h (_Jv_ThreadCancel): Removed.
640 (_Jv_ThreadDestroy): Likewise.
641 * include/posix-threads.h (struct _Jv_Thread_t): Removed
643 (_Jv_ThreadCancel): Removed decl.
644 (_Jv_ThreadDestroy): Removed.
645 * posix-threads.cc (_Jv_ThreadCancel): Removed.
646 (throw_cleanup): Removed.
647 (really_start): Don't push or pop cleanup.
648 (_Jv_ThreadInitData): Don't initialize `exception' field.
649 * java/lang/Thread.java (stop): Officially unimplemented.
650 * java/lang/natThread.cc (stop): Officially unimplemented.
652 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
654 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
657 1999-11-02 Tom Tromey <tromey@cygnus.com>
659 * boehm.cc: Don't include boehm-config.h.
661 1999-11-01 Tom Tromey <tromey@cygnus.com>
663 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
664 (sum_blocks): Removed.
665 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
667 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
669 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
671 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
672 * java/io/InputStreamReader (InputStreamReader): ditto.
674 1999-10-22 Tom Tromey <tromey@cygnus.com>
676 * Makefile.in: Rebuilt.
677 * Makefile.am (java/lang/ClassLoader.h): New target.
678 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
681 * include/java-props.h (_Jv_Compiler_Properties): Changed
683 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
684 * include/jvm.h (_Jv_GCSetInitialHeapSize,
685 _Jv_GCSetMaximumHeapSize): Declare.
686 (JvRunMain, _Jv_RunMain): Declare.
687 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
688 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
689 (_Jv_GCSetMaximumHeapSize): Likewise.
690 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
691 (_Jv_GCSetMaximumHeapSize): Likewise.
692 * prims.cc (parse_heap_size): New function.
693 (_Jv_SetInitialHeapSize): Likewise.
694 (_Jv_SetMaximumHeapSize): Likewise.
695 (_Jv_Compiler_Properties): New global.
696 * gij.cc (help): New function.
698 (heap_size): Likewise.
699 (heap_max_size): Likewise.
700 (main): Parse arguments. Set _Jv_Compiler_Properties.
701 Include <config.h>, <java-props.h>.
702 (_Jv_Compiler_Properties): Removed.
704 1999-10-18 Tom Tromey <tromey@cygnus.com>
706 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
708 (redirect): New static field.
709 * java/lang/ClassLoader.java (getSystemClassLoader): Now
711 (getVMClassLoader0): Removed.
712 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
714 (getSystemClassLoader): Implemented.
716 1999-10-16 Anthony Green <green@cygnus.com>
718 * java/lang/ClassLoader.java (getSystemResource): Use
719 getSystemClassLoader instead of ClassLoader.system.
720 (getSystemResourceAsStream): Ditto.
722 * java/lang/natClassLoader.cc (redirect): Make static and
723 remove #ifdef INTERPRETER so it is always defined.
724 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
725 returns a VMClassLoader.
727 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
728 PropertyResourceBundle if a properties file is found before a
729 ResourceBundle class.
731 1999-10-15 Tom Tromey <tromey@cygnus.com>
733 * gij.cc (main): Formatting fixes.
734 (_Jv_Compiler_Properties): Define.
735 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
737 (init_properties): Set properites from _Jv_Compiler_Properties.
738 * include/java-props.h (_Jv_Compiler_Properties,
739 _Jv_Environment_Properties): Declare.
741 * include/java-props.h: Added copyright.
743 1999-10-13 Anthony Green <green@cygnus.com>
745 * libtool-version: Catch up by incrementing current.
747 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
748 * configure, include/config.h.in: Rebuilt.
749 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
750 * configure.in: Added --disable-getenv-properties and new define
751 `DISABLE_GETENV_PROPERTIES'.
753 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
754 (next_property_key): New function.
755 (next_property_value): New function.
756 (process_gcj_properties): New function.
757 (JvRunMain): Call process_gcj_properties.
760 * java/lang/natSystem.cc (init_properties): Set properties defined
763 * include/java-props.h: New file.
765 * java/lang/natSystem.cc (init_properties): Add new properties to
766 conform with Java Product Versioning Specification.
768 1999-10-12 Tom Tromey <tromey@cygnus.com>
770 * configure: Rebuilt.
771 * configure.in: Fixed test for --disable-java-net.
773 1999-10-06 Tom Tromey <tromey@cygnus.com>
775 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
776 when building Canadian cross.
777 (NATIVE): Don't define when cross-compiling.
779 1999-10-04 Tom Tromey <tromey@cygnus.com>
781 * java/net/natPlainSocketImpl.cc: Don't include headers if
782 java.net is disabled.
784 * Makefile.in: Rebuilt.
785 * Makefile.am (ZINCS): Removed. This is defined in configure.in
786 when needed, and must be left empty when not needed.
788 1999-10-01 Anthony Green <green@cygnus.com>
790 * THANKS: Refreshed from htdocs version.
792 1999-10-01 Steve Chamberlain <sac@pobox.com>
794 * Makefile.in: Rebuilt.
795 * Makefile.am (ZINCS): Define
797 * configure: Rebuilt.
798 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
800 * java/lang/ieeefp.h: Add definitions for picoJava.
802 1999-10-01 Tom Tromey <tromey@cygnus.com>
804 * configure: Rebuilt.
805 * configure.in: Set classpath when invoking gcj. Use changequote
806 around sed invocation.
808 * java/net/natPlainSocketImpl.cc: Stub native functions if
809 DISABLE_JAVA_NET is defined.
810 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
811 typo in exception string.
812 (getTimeToLive): Likewise.
813 Stub native functions if DISABLE_JAVA_NET is defined.
814 * java/net/natInetAddress.cc: Stub native functions if
815 DISABLE_JAVA_NET is defined.
816 * configure.host: Disable java.net for mips-tx39.
817 * configure, include/config.h.in: Rebuilt.
818 * acconfig.h (DISABLE_JAVA_NET): Undefine.
819 * configure.in: Added --disable-java-net and new define
822 1999-09-30 Tom Tromey <tromey@cygnus.com>
824 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
826 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
830 1999-09-28 Tom Tromey <tromey@cygnus.com>
832 * configure: Rebuilt.
833 * configure.in (PROCESS): In POSIX case, only set if not already
835 * configure.host (PROCESS): Set in mips-tx39 case.
837 * aclocal.m4, configure: Rebuilt.
838 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
839 appropriate AC_PROG_ symbol.
841 1999-09-24 Tom Tromey <tromey@cygnus.com>
843 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
845 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
847 Fix for PR java.util/47:
848 * configure, include/config.h: Rebuilt.
849 * configure.in: Don't look for ctime or ctime_r.
850 * Makefile.in: Rebuilt.
851 * Makefile.am (nat_source_files): Don't mention natDate.cc.
852 * java/util/natDate.cc: Removed.
853 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
855 (getAvailableIDs): Rewrote.
856 (getTimeZone): Rewrote.
857 * java/util/Date.java (toGMTString): New method.
858 (toLocaleString): New method.
861 1999-09-23 Tom Tromey <tromey@cygnus.com>
863 * configure: Rebuilt.
864 * configure.in: Print message when checking to see if gcj can
865 handle -fuse-divide-subroutine.
867 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
869 * java/lang/FirstThread.java (run0): Renamed to `run'.
872 * prims.cc (main_init): New function.
873 (JvRunMain): Call it.
874 (_Jv_RunMain): Likewise.
876 (main_init): Ignore SIGPIPE. Fixes PR 51.
878 1999-09-22 Tom Tromey <tromey@cygnus.com>
880 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
882 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
884 * java/text/MessageFormat.java (MessageFormat(String)): Set the
886 * java/text/NumberFormat.java: Check that object is a Number. If
887 not, throw IllegialArgumentException.
889 1999-09-21 Tom Tromey <tromey@cygnus.com>
891 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
892 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
894 * include/posix-threads.h (_Jv_MutexDestroy): Use
896 (_Jv_MutexLock): Likewise.
897 (_Jv_MutexUnlock): Likewise.
899 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
900 previous patch; it too was incorrect.
901 * java/io/PrintStream.java (PrintStream): Likewise.
903 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
904 refer to `this' before calling superclass constructor.
905 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
906 before calling superclass constructor.
908 1999-09-20 Tom Tromey <tromey@cygnus.com>
910 * configure: Rebuilt.
911 * configure.in: Send output of `-fuse-divide-subroutine' test
912 compilation to /dev/null.
914 1999-09-14 Tom Tromey <tromey@cygnus.com>
916 * include/java-insns.h: Turned constants into an enum. Added
917 multiple-inclusion protection.
919 1999-09-10 Tom Tromey <tromey@cygnus.com>
921 * configure: Rebuilt.
922 * configure.in: Build include/Makefile.
923 * Makefile.in: Rebuilt.
924 * Makefile.am (SUBDIRS): Added gcj and include.
925 (install-data-local): New target.
926 (extra_headers): New macro.
927 * include/Makefile.in: New file.
928 * include/Makefile.am: New file.
930 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
931 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
933 * boehm.cc: Don't include java-threads.h or gcj/field.h.
934 * resolve.cc: Include config.h.
935 * defineclass.cc: Include config.h.
936 * include/java-interp.h: Don't include config.h.
937 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
940 * gcj/javaprims.h: Regenerated namespace decls.
941 * classes.pl (scan): Don't put `;' after closing brace.
943 * Makefile.in: Rebuilt.
944 * Makefile.am (INCLUDES): Added -I for top_srcdir.
945 * configure.in: Create gcj/Makefile.
946 * gcj/Makefile.in: New file.
947 * gcj/Makefile.am: New file.
948 * java/lang/Object.h: Don't include any other headers.
949 * gcj/array.h: Renamed from include/java-array.h.
950 * gcj/field.h: Renamed from include/java-field.h.
951 * gcj/method.h: Renamed from include/java-method.h.
952 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
953 Updated all files to reflect new include structure.
955 1999-09-09 Tom Tromey <tromey@cygnus.com>
957 * configure: Rebuilt.
958 * configure.in: Fixed typo; variable is THREADSPEC and not
961 1999-09-08 Tom Tromey <tromey@cygnus.com>
963 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
964 previous change and implemented a correct test in the __m_count
967 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
970 1999-09-07 Tom Tromey <tromey@cygnus.com>
972 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
973 code and don't set errno.
975 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
976 not `r'. Changed `done_sleeping' to a `bool'.
978 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
980 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
981 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
982 by another thread, rather than by the GC.
983 (_Jv_CondWait): Prevent premature thread wakeup by GC.
984 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
985 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
988 1999-09-03 Tom Tromey <tromey@cygnus.com>
990 * configure: Rebuilt.
991 * configure.in: Check for fstat function.
992 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
995 1999-09-02 Tom Tromey <tromey@cygnus.com>
997 * include/java-array.h (jobjectArrayjchar): Removed unused
1000 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1001 _Jv_PrepareCompiledClass while holding class mutex.
1003 1999-09-01 Tom Tromey <tromey@cygnus.com>
1005 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1006 (_Jv_PthreadGetMutex): Use it.
1007 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1008 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1009 (_Jv_MutexLock): Likewise.
1010 (_Jv_MutexUnlock): Likewise.
1011 * include/config.h.in: Rebuilt.
1012 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1013 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1014 * configure: Rebuilt.
1015 * libgcj.spec.in: Don't mention INTERPSPEC.
1016 * configure.in (INTERPSPEC): Removed.
1017 Only run pthreads-related checks when using POSIX threads. Check
1018 for m_count and __m_count in mutex structure.
1020 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1022 * java/lang/natClass.cc: Fixed notification of threads
1023 when class initialization is complete.
1025 1999-09-01 Tom Tromey <tromey@cygnus.com>
1027 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1028 * resolve.cc: Removed constants defined by
1029 java.lang.reflect.Modifier.
1030 Include <java/lang/reflect/Modifier.h>.
1031 (_Jv_ResolvePoolEntry): Use values from Modifier.
1032 (_Jv_DetermineVTableIndex): Likewise.
1033 (_Jv_PrepareClass): Likewise.
1035 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1036 java.lang.reflect.Modifier.
1037 Include <java/lang/reflect/Modifier.h>.
1038 (checkExtends): Use values from Modifier.
1039 (checkImplements): Likewise.
1040 (handleField): Likewise.
1041 (handleConstantValueAttribute): Likewise.
1042 (handleFieldsEnd): Likewise.
1043 (handleMethod ): Likewise.
1044 (handleMethodsEnd): Likewise.
1045 (handleClassBegin): Likewise.
1046 * interpret.cc: Removed constants defined by
1047 java.lang.reflect.Modifier.
1048 (continue1): Use values from Modifier.
1049 * java/lang/natClassLoader.cc: Removed constants defined by
1050 java.lang.reflect.Modifier.
1052 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1053 JV_STATE_NOTHING, not `0'.
1054 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1056 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1057 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1059 (_Jv_PthreadGetMutex): New function.
1060 (_Jv_PthreadCheckMonitor): Use it.
1061 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1062 (_Jv_MutexLock): Update `count'.
1063 (_Jv_MutexUnlock): Likewise.
1064 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1067 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1069 * Makefile.am (.java.lo): Add rule.
1071 * Makefile.in: Rebuilt.
1073 1999-09-01 Tom Tromey <tromey@cygnus.com>
1075 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1076 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1078 (_Jv_CondNotify): Use it.
1079 (_Jv_CondNotifyAll): Likewise.
1081 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1083 1999-08-31 Tom Tromey <tromey@cygnus.com>
1085 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1088 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1090 * posix-threads.cc: Include <errno.h>.
1092 1999-08-23 Tom Tromey <tromey@cygnus.com>
1094 * boehm.cc: Undefine TRUE and FALSE.
1096 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1098 1999-08-21 Tom Tromey <tromey@cygnus.com>
1100 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1103 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1105 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1107 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1108 (HAVE_STRUCT_IP_MREQ): Added.
1109 * configure, include/config.h.in: Rebuilt.
1110 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1112 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1113 Disable if ip_mreq is not available.
1115 * configure.in: Check types ssize_t and in_addr_t.
1116 * acconfig.h: Undefine them.
1117 * configure, include/config.h.in: Rebuilt.
1119 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1120 function that detects the signature of getpwuid_r.
1121 (init_properties): Use it.
1122 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1125 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1127 * interpret.cc (continue1): Implement explicit dispatch table.
1128 insn_target: Explicit interpreter switch table.
1129 SAVE_PC: New macro, moves pc saving code into instructions that
1131 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1132 PC_REGISTER_ASM: New macro.
1133 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1134 opcode: Remove local variable.
1135 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1136 (POKEI): Use _Jv_word.
1137 (iinc): Use _Jv_word.
1138 (dupx): Change reference argument (sp) to pointer.
1141 * interpret.cc: Remove instruction timing instrumentation.
1143 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1144 comment. Don't use _Jv_ClassNameSamePackage.
1146 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1147 URLPathEntry, CacheEntry}: Removed.
1149 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1151 (.java.lo): Rule removed.
1153 * Makefile.in: Rebuilt.
1155 1999-08-19 Tom Tromey <tromey@cygnus.com>
1157 * java/lang/natThread.cc (class locker): New class.
1158 (join): Use a locker around _Jv_CondWait.
1161 1999-08-18 Tom Tromey <tromey@cygnus.com>
1163 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1164 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1166 1999-08-18 Tom Tromey <tromey@cygnus.com>
1168 * include/javaprims.h ("Java"): Regenerated namespace decls.
1170 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1172 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1173 from _Jv_InternClassStrings.
1175 * prims.cc (_Jv_RunMain): New function.
1176 (JvRunMain): Remove gij-support.
1178 * gij.cc (main): Use _Jv_RunMain.
1180 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1182 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1183 argument in temp variable.
1184 (continue1): For all op_x2y insns, use temp variable for
1185 intermediate value. Also remove some comments.
1187 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1188 (forName): Don't call _Jv_InitClass.
1190 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1192 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1194 * java/util/jar/JarInputStream.java: New file.
1196 * java/util/jar/JarEntry.java: New file.
1198 * java/util/jar/JarFile.java: New file.
1200 * java/net/URLClassLoader.java: New file.
1202 * java/net/JarURLConnection.java: New file.
1204 * gnu/gcj/protocol/jar/Handler.java: New file.
1206 * gnu/gcj/protocol/jar/Connection.java: New file.
1208 * java/security/SecureClassLoader.java: New file.
1210 * java/lang/ClassLoader.java (parent): New variable.
1211 (ClassLoader (ClassLoader)): new constructor.
1212 (findClass): New method.
1213 (loadClass): Add default 1.2 implementation.
1214 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1215 (readfully): Removed.
1217 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1218 (findSystemClass): New method.
1219 (VMClassLoader): Constructor rewritten.
1221 All other methods removed.
1223 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1224 to gnu::gcj::runtime::VMClassLoader.
1225 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1227 (VMClassLoader::findSystemClass): renamed from findBootClass.
1229 * Makefile.am: Add new files.
1230 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1232 * Makefile.in: Rebuilt.
1234 1999-08-17 Tom Tromey <tromey@cygnus.com>
1236 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1238 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1241 1999-08-16 Tom Tromey <tromey@cygnus.com>
1243 * configure: Rebuilt.
1244 * configure.in: Set DIVIDESPEC to empty string if compiler does
1245 not support -fuse-divide-subroutine.
1247 1999-08-14 Per Bothner <per@bothner.com>
1249 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1250 * java/lang/natClass.cc (initializeClass): Likewise.
1251 * java/lang/ClassLoader.java (resolveClass0): New static method.
1252 (resolveClass): Call resolveClass0.
1253 (findSystemClass): No longer static.
1255 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1257 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1259 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1261 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1264 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1266 * Makefile: Rebuilt.
1267 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1270 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1273 * configure: Rebuilt.
1274 * configure.in: Properly align --help output, fix capitalization
1276 * acinclude.m4: Likewise.
1278 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1280 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1282 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1283 (_Jv_callInterpretedMethod): Unused. Remove.
1284 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1286 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1287 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1288 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1289 * interpret.cc: use _Jv_word.
1290 * defineclass.cc: use_Jv_word.
1291 * resolve.cc: Use _Jv_word.
1292 (_Jv_ResolvePoolEntry): Return _Jv_word.
1293 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1294 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1296 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1299 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1301 * configure: Rebuilt.
1302 * configure.in (sched_yield): Try librt first, then libposix4.
1303 Add -lrt, -lposix4 to THREADSPEC.
1305 1999-08-08 Anthony Green <green@cygnus.com>
1307 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1309 1999-08-08 Anthony Green <green@cygnus.com>
1311 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1314 1999-08-08 Anthony Green <green@cygnus.com>
1318 * include/config.h.in: Rebuilt.
1319 * acconfig.h: Add INTERPRETER.
1321 * Makefile.in: Rebuilt.
1322 * Makefile.am (libffi_files): Identify the libffi object files for
1323 inclusion in libgcj.
1324 (LIBFFIINCS): Define.
1326 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1327 Dummy definition for configurations without an interpreter.
1329 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1330 java::lang::Boolean constructor.
1332 * include/java-interp.h: Always include java-cpool.h.
1334 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1335 when INTERPRETER not defined.
1337 * java/lang/Class.h (finalize): Define.
1339 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1340 IOException from File.getCanonicalPath.
1341 (getStream): Likewise.
1344 * THANKS: More thanks.
1346 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1348 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1350 (_Jv_PrepareClass): Allow non-abstract classes to
1351 have abstract subclasses.
1352 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1354 * interpret.cc (continue1/perform_invoke): Don't sign extend
1356 (continue1/lshl,lshr): Push long, not int.
1357 (continue1/ulshr): Use UINT64, not long long.
1358 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1360 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1361 * java/lang/FirstThread.java (run): Add top-level exception
1363 (run0): Renamed from run.
1365 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1367 * configure.in (--with-interpreter): Added.
1368 * include/config.h.in (INTERPRETER): Added.
1370 * java/lang/ClassLoader.java: File replaced.
1371 * java/lang/VMClassLoader.java: New file.
1372 * java/lang/natClassLoader.cc: New file.
1373 * gnu/gcj/runtime/MethodInvocation.java: New file.
1374 * gnu/gcj/util/path/SearchPath.java: New file.
1375 * gnu/gcj/util/path/PathEntry.java: New file.
1376 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1377 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1378 * gnu/gcj/util/path/URLPathEntry.java: New file.
1379 * gnu/gcj/util/path/CacheEntry.java: New file.
1380 * include/java-interp.h: New file.
1381 * include/java-cpool.h: New file.
1382 * include/java-insns.h: New file.
1383 * defineclass.cc: New file.
1384 * interpret.cc: New file.
1385 * resolve.cc: New file.
1387 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1388 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1389 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1391 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1392 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1394 (initializeClass): Use new JV_ prefixed names. Also, call
1395 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1397 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1398 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1399 JV_STATE_LINKED): New.
1400 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1401 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1402 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1403 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1404 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1405 _Jv_InterpMethodInvocation): New friends for interpreter.
1407 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1408 include/java-cpool.h and renamed with JV_ prefix.
1410 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1412 (_Jv_UnregisterClass): New decl.
1414 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1415 class loader argument.
1416 (_Jv_FindClass): Use class loader.
1418 * prims.cc (_Jv_makeUtf8Const): New function.
1419 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1420 (_Jv_NewPrimArray): Ditto.
1421 (_Jv_FindClassFromSignature): Ditto.
1422 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1423 * java/lang/reflect/natMethod.cc (getType): Ditto.
1425 * include/java-field.h (_Jv_Field::isRef): Make robust for
1426 non-resolved contexts.
1428 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1429 Also, don't mark class->next field.
1431 * java/lang/VirtualMachineError.java: Added FIXME note.
1433 * configure.in (INTERPSPEC): New spec.
1434 * libgcj.spec.in: Added INTERPSPEC.
1435 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1436 gnu/gcj/runtime/MethodInvocation.
1437 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1438 (ordinary_java_source_files): Added above mentioned java classes.
1440 * configure: Rebuilt.
1441 * Makefile.in: Rebuilt.
1443 1999-08-06 Tom Tromey <tromey@cygnus.com>
1445 * configure: Rebuilt.
1446 * configure.in: Look for sched_yield in -lrt.
1448 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1450 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1451 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1452 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1454 (toString): Print correctly when `country' is empty.
1456 1999-08-04 Per Bothner <per@bothner.com>
1458 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1460 1999-08-02 Tom Tromey <tromey@cygnus.com>
1462 * aclocal.m4, configure: Rebuilt for new libtool.
1464 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1466 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1467 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1468 * java/net/ServerSocket.java: Define ANY_IF.
1469 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1470 all network interfaces.
1471 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1472 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1474 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1476 * java/io/natFile.cc (performMkdir): Remove FIXME.
1477 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1479 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1481 * configure.in: Check for bstring.h.
1482 * configure, include/config.h.in: Rebuilt.
1483 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1484 * java/net/natPlainSocketImpl.cc: Likewise.
1486 1999-07-31 Tom Tromey <tromey@cygnus.com>
1491 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1493 * configure.in: Check for struct hostent_data and need for
1494 -D_REENTRANT for gethostbyname_r declaration.
1495 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1496 (lookup): Use hostent_data for fixed_buffer.
1497 * configure, include/config.h.in: Rebuilt.
1499 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1501 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1502 available. Don't cast memmove args to (void*).
1503 * configure.in: Do not abort if memmove is not available.
1505 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1507 * java/lang/natString.cc (substring): optimize where substring is
1509 * java/io/File.java (getName): don't return separator with file name.
1510 * java/io/natFile.cc (attr): fix overflow.
1512 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1514 * mauve-libgcj: Disable Object Serialization tests.
1516 1999-07-20 Warren Levy <warrenl@cygnus.com>
1518 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1519 Default to using PlainDatagramSocketImpl.
1520 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1522 1999-07-19 Tom Tromey <tromey@cygnus.com>
1524 * include/stamp-h.in: New file.
1526 1999-07-12 Tom Tromey <tromey@cygnus.com>
1528 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1531 1999-07-07 Andrew Haley <aph@cygnus.com>
1533 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1534 bytes to make it point after the instruction where the trap
1536 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1538 1999-07-07 Tom Tromey <tromey@cygnus.com>
1540 * mauve-libgcj: Explicitly enable formerly disabled java.text
1543 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1546 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1548 * java/net/URL.java (equals): Compare strings using String.equals.
1549 * java/net/URL.java (sameFile): Ditto.
1551 1999-07-02 Warren Levy <warrenl@cygnus.com>
1553 * configure: Rebuilt.
1554 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1555 * include/config.h.in: Rebuilt.
1556 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1557 (mcastGrp): Updated FIXME comments.
1558 (setOption): Fixed typo.
1559 (getOption):Implemented IP_MULTICAST_IF.
1561 1999-07-02 Warren Levy <warrenl@cygnus.com>
1563 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1564 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1565 (getTimeToLive): Implemented.
1566 (setOption): Implemented IP_MULTICAST_IF.
1568 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1570 * java/lang/String.java (toString): Check for this == null and throw
1571 NullPointerException.
1573 1999-07-01 Warren Levy <warrenl@cygnus.com>
1575 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1576 to count and revised comments to match.
1577 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1578 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1579 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1580 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1581 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1582 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1584 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1586 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1587 properly as count rather than outlength.
1588 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1589 output on overflow rather than buffer fill.
1590 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1591 if markPos is 0 and there is still room in the buffer.
1593 1999-07-01 Andrew Haley <aph@cygnus.com>
1595 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1596 This is a workaround for a bug in glibc's pthreads package which
1597 doesn't deliver any sigcontext information to a signal handler.
1599 1999-06-24 Tom Tromey <tromey@cygnus.com>
1601 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1602 * java/lang/fdlibm.h (HUGE): Conditionally define.
1604 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1606 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1607 * java/lang/e_log.c: Don't use __uint32_t.
1609 1999-05-27 Eric Christopher <echristo@cygnus.com>
1611 * configure: Rebuilt
1612 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1613 * acconfig.h: Rebuilt
1614 * include/config.h.in: Rebuilt
1616 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1617 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1618 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1619 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1620 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1621 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1622 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1623 and namespace collision with __uint32_t
1625 1999-06-23 Tom Tromey <tromey@cygnus.com>
1627 * java/util/zip/InflaterInputStream.java (read): Throw
1628 ZipException if inflater throws a DataFormatException.
1630 1999-06-23 Warren Levy <warrenl@cygnus.com>
1632 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1633 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1634 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1635 is not final per JDK.
1636 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1638 * java/util/zip/DataFormatException.java: Class extends Exception.
1639 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1640 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1641 * java/util/zip/ZipInputStream.java: ditto.
1642 (closeEntry): Changed method name to match JDK spec.
1644 1999-06-21 Tom Tromey <tromey@cygnus.com>
1646 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1649 * Makefile.in: Rebuilt.
1650 * Makefile.am (toolexeclibdir): Define as libdir when
1652 * configure: Rebuilt.
1653 * configure.in (USE_LIBDIR): New conditional.
1655 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1657 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1658 hostname in returned InetAddress objects.
1659 (getLocalHostname): Fix typo.
1660 * java/net/InetAddress.java (getByName): Set hostname on return
1662 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1665 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1667 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1668 interfaces if host==NULL.
1669 (accept): Throw message with InterruptedIOException.
1670 (getOption): Cache localAddress.
1671 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1672 'address' for DatagramSocket.
1673 (setTimeToLive): Fix compiler warnings.
1674 (getOption): Cache localAddress.
1675 * java/net/Socket.java (getLocalAddress): Don't need local
1676 InetAddress object. Add FIXME comment about calling checkConnect().
1677 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1678 connection queue to 50 as per JDK 1.2 docs.
1679 (ServerSocket(int,int)): Listen on all network interfaces by
1680 default, per JDK 1.2 docs.
1681 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1682 Add localAddress caching.
1684 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1686 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1688 (write(byte[],int,int)): ditto.
1690 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1692 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1694 1999-06-11 Warren Levy <warrenl@cygnus.com>
1696 * mauve-libgcj: Activated java.net Mauve tests.
1698 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1700 * java/net/natInetAddress.cc (aton): Fix typos.
1701 (lookup): Use a bigger buffer size for gethostbyname_r on all
1702 versions of glibc. Updated FIXME comment explaining this.
1703 Modified while loops to not set herr = ERANGE to work around glibc
1704 problems. Use user specified hostname in InetAddress result when
1705 available (consistent with JDK).
1707 1999-06-10 Warren Levy <warrenl@cygnus.com>
1709 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1710 Throw FileNotFoundException instead of IOException.
1712 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1714 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1715 in static field name.
1716 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1717 throughout rather than ParseException.
1719 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1721 * java/lang/Runtime.java (exec): Convert prog name and arguments
1723 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1724 environment array conversion. Preserve current environment if envp
1725 not passed. Preserve PATH unless explicitly specified.
1726 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1727 followed by EOF. Set a flag when a line is terminated by '\r' and
1728 ignore following '\n' if set.
1730 1999-06-02 Warren Levy <warrenl@cygnus.com>
1732 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1733 Ignore context if spec is an absolute URL. Fix braindead
1735 (hashCode): Use JDK 1.2 style algorithm.
1736 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1737 context URL properly.
1739 1999-05-30 Anthony Green <green@cygnus.com>
1741 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1742 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1744 1999-05-28 Warren Levy <warrenl@cygnus.com>
1746 * java/net/DatagramSocket.java (laddr): Removed.
1747 (DatagramSocket): Removed attempts to get or set laddr if null.
1748 (getLocalAddress): Reimplemented per spec.
1749 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1751 (joinGroup): Throw NullPointerException if any argument is null.
1752 (leaveGroup): ditto.
1753 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1754 * java/net/PlainSocketImpl.java (timeout): Added.
1755 (getInputStream): Added FIXME comment on how to support timeouts
1757 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1758 * java/net/Socket.java: Added FIXME comments to identify
1759 conflicting specs between the JCL and JDK 1.2 documents.
1760 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1761 if host is null. Get localport value resolved by kernel if bind
1763 (receive): Implemented support for timeouts in UDP.
1764 (setOption): Implemented based on natPlainSocketImpl version.
1766 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1767 resolved by kernel if bind lport is 0.
1768 (connect): Get localport value resolved by kernel if bind wasn't
1769 done to set localport.
1770 (accept): Implemented support for timeouts for ServerSocket.
1771 (setOption): Save value for SO_TIMEOUT.
1772 (getOption): Return timeout for SO_TIMEOUT.
1774 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1776 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1777 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1778 (setOption): Made abstract.
1779 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1780 to avoid cpp conflicts in native code.
1781 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1782 cpp conflicts in native code.
1783 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1784 * java/net/Socket.java (getLocalAddress): Implemented.
1785 (setTcpNoDelay): Implemented.
1786 (getTcpNoDelay): Implemented.
1787 (setSoLinger): Implemented.
1788 (getSoLinger): Implemented.
1789 (getSoTimeout): Verify class type.
1790 (setSendBufferSize): Implemented.
1791 (getSendBufferSize): Implemented.
1792 (setReceiveBufferSize): Implemented.
1793 (getReceiveBufferSize): Implemented.
1794 (toString): Prepended "Socket".
1795 * java/net/SocketImpl.java (toString): Rewritten.
1796 (getOption): Made abstract.
1797 (setOption): Made abstract.
1798 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1799 (setOption): Implemented.
1800 (getOption): Implemented.
1802 1999-05-26 Warren Levy <warrenl@cygnus.com>
1804 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1805 address when null. Set SO_REUSEADDR for multicasts.
1806 (getSoTimeout): Implemented.
1807 (setSoTimeout): Implemented.
1808 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1809 * java/net/MulticastSocket.java (getInterface): Implemented.
1810 (setInterface): Implemented.
1811 (setTimeToLive): Check for invalid ttl.
1812 (joinGroup): Verify multicast address and security.
1813 (leaveGroup): Verify multicast address and security.
1814 (send): Implemented.
1815 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1821 (getTTL): Implemented as non-native.
1825 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1826 (getSoTimeout): Implemented.
1827 (setSocketFactory): Made synchronized.
1828 * java/net/Socket.java (setSoTimeout): Implemented.
1829 (getSoTimeout): Implemented.
1830 (close): Made synchronized.
1831 (setSocketImplFactory): Made synchronized.
1832 * java/net/SocketImpl.java: Implement SocketOptions interface.
1833 * java/net/natInetAddress.cc: Corrected module name at top of file.
1834 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1835 (bind): Added FIXME.
1836 (peek): Implemented.
1842 (setOption): Implemented for SO_REUSEADDR.
1843 (getOption): Implemented for SO_REUSEADDR.
1845 1999-05-24 Tom Tromey <tromey@cygnus.com>
1847 * java/util/ResourceBundle.java (getBundle): Throw
1848 NullPointerException if baseName is null.
1850 1999-05-22 Tom Tromey <tromey@cygnus.com>
1852 * java/util/zip/ZipInputStream.java (fill): New method.
1853 (compressed_len): New instance variable.
1854 (getNextStream): Set it.
1855 (read): Reset inflater on EOF. Only read via `super' if entry is
1857 (skip): Only skip via `super' if entry is deflated.
1858 * java/util/zip/Deflater.java (last_input_count): Removed.
1859 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1861 (needsInput): Don't use last_input_count.
1862 (setInput): Don't set last_input_count.
1863 * java/util/zip/natInflater.cc (getRemaining): Return correct
1865 (inflate): Return 0 if input array is length 0.
1866 (setInput): Don't set last_input_count.
1867 * java/util/zip/Inflater.java (last_input_count): Removed.
1869 1999-05-21 Tom Tromey <tromey@cygnus.com>
1871 * Makefile.in: Rebuilt.
1872 * Makefile.am (INCLUDES): Added $(ZINCS).
1873 * configure: Rebuilt.
1874 * configure.in (ZINCS): New subst.
1876 1999-05-21 Andrew Haley <aph@cygnus.com>
1878 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1879 to signal options to allow the same exceptions to be rethrown
1882 1999-05-20 Andrew Haley <aph@cygnus.com>
1884 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1886 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1887 (INIT_FPE): Exception string made more informative.
1888 * include/sparc-signal.h (INIT_FPE): Exception string made more
1890 * testsuite/libjava.lang/Divide_1.java: New file.
1891 * testsuite/libjava.lang/Divide_1.out: New file.
1893 1999-05-19 Tom Tromey <tromey@cygnus.com>
1895 * aclocal.m4, configure: Rebuilt.
1896 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1898 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1901 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1903 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1905 (update): Fail in default case. Always initialize `strat'.
1907 * mauve-libgcj: Enable java.util.zip.
1909 1999-05-18 Warren Levy <warrenl@cygnus.com>
1911 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1912 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1913 PlainDatagramSocketImpl.java, and SocketOptions.java.
1914 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1915 * Makefile.in: Rebuilt.
1917 * java/net/DatagramPacket.java: New file.
1918 * java/net/DatagramSocket.java: New file.
1919 * java/net/DatagramSocketImpl.java: New file.
1920 * java/net/MulticastSocket.java: New file.
1921 * java/net/PlainDatagramSocketImpl.java: New file.
1922 * java/net/SocketOptions.java: New file.
1923 * java/net/natPlainDatagramSocketImpl.cc: New file.
1925 1999-05-18 Tom Tromey <tromey@cygnus.com>
1927 * java/util/zip/ZipOutputStream.java (level): Initial value is
1928 Deflater.DEFAULT_COMPRESSION.
1929 (close): New method.
1930 (closeEntry): Likewise.
1932 (put_version): Likewise.
1933 (write_entry): Likewise.
1934 (put2, put4): Now return `int'.
1935 (comment): Default to empty string.
1936 (bytes_written): New instance variable.
1938 * java/util/zip/ZipEntry.java (setComment): Limit length of
1940 (setCrc): Check CRC validity.
1941 (setExtra): Check argument validity.
1942 (setMethod): Likewise.
1943 (setSize): Likewise.
1944 (ZipEntry): Likewise.
1945 * include/javaprims.h: Updated namespace declarations.
1946 * Makefile.in: Rebuilt.
1947 * Makefile.am (ordinary_java_source_files): Mention new files.
1948 (nat_source_files): Likewise.
1949 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1952 (getInputStream): Handle compressed entries.
1953 * java/util/zip/GZIPOutputStream.java: New file.
1954 * java/util/zip/GZIPInputStream.java: New file.
1955 * java/util/zip/DataFormatException.java: New file.
1956 * java/util/zip/CheckedInputStream.java: New file.
1957 * java/util/zip/CheckedOutputStream.java: New file.
1958 * java/util/zip/InflaterInputStream.java: Implemented.
1959 * java/util/zip/natInflater.cc: New file.
1960 * java/util/zip/Deflater.java: Implemented.
1961 * java/util/zip/natDeflater.cc: New file.
1962 * java/util/zip/DeflaterOutputStream.java: Implemented.
1964 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1965 ZipException, not IOException.
1966 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1969 1999-05-17 Tom Tromey <tromey@cygnus.com>
1971 * java/lang/natSystem.cc (init_properties): URL now points to
1974 1999-05-12 Per Bothner <bothner@cygnus.com>
1976 * java/util/Calendar.java (set): First call computeFields if needed.
1977 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1979 1999-05-12 Tom Tromey <tromey@cygnus.com>
1981 * configure: Rebuilt.
1982 * configure.in: Look for -ldl when using the Boehm collector.
1983 Look for sched_yield in -lposix4.
1985 1999-05-12 Per Bothner <bothner@cygnus.com>
1987 * java/io/File.java (mkdirs): Handle a null parent directory.
1989 1999-05-12 Tom Tromey <tromey@cygnus.com>
1991 * include/javaprims.h: Updated namespace declarations.
1992 * classes.pl (scan): Uniquify class list.
1993 * Makefile.in, configure: Rebuilt.
1994 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1995 (built_java_source_files): New macro.
1996 (nat_headers): Added built_java_source_files.
1997 (javao_files): Likewise.
1998 (EXTRA_libgcj_la_SOURCES): Likewise.
1999 (libgcj.zip): Create built class files.
2000 ($(built_java_source_files:.java=.class)): New target.
2001 (jv_convert_LDADD): Added -L$(here)/.libs.
2002 * configure.in: Create links for ConcreteProcess.java and
2003 natConcreteProcess.cc.
2004 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2005 * java/lang/natEcosProcess.cc: New file.
2006 * java/lang/EcosProcess.java: New file.
2007 * java/lang/PosixProcess.java: New file.
2008 * java/lang/natPosixProcess.cc: New file.
2010 1999-05-12 Warren Levy <warrenl@cygnus.com>
2012 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2013 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2014 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2015 (connect): Throw ConnectException.
2017 1999-05-11 Tom Tromey <tromey@cygnus.com>
2019 * Makefile.in: Rebuilt.
2020 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2021 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2024 * Makefile.in: Rebuilt.
2025 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2026 and it causes problems with libtool.
2028 * Makefile.in, configure: Rebuilt.
2029 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2030 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2031 (jv_convert_DEPENDENCIES): Added ZDEPS.
2032 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2034 (THREADSPEC): Added `-L' to point to qthreads build directory.
2038 * configure, Makefile.in: Rebuilt.
2039 * Makefile.am (toolexeclib_DATA): New macro.
2040 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2041 Recognize --with-system-zlib.
2042 (GCSPEC): New subst.
2043 (THREADSPEC): New subst.
2044 (SYSTEMSPEC): New subst.
2045 (ZLIBSPEC): New subst.
2046 * libgcj.spec.in: New file.
2048 1999-05-10 Tom Tromey <tromey@cygnus.com>
2050 * java/io/InputStreamReader.java (read): If length is 0, return
2051 0. Reset `wpos' and `wcount' when buffer has been filled and
2054 * java/util/Properties.java (save): Removed `FIXME' comment.
2055 (load): Invalid characters in \u now treated as terminators.
2056 Make sure to append character resulting from `\' handling.
2057 Cast to `char' when appending to key or value.
2058 (skip_ws): Inverted test for whitespace.
2060 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2062 (readLine): Likewise.
2063 (readFully): Implemented.
2065 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2067 * java/awt/natToolkit.cc: Added copyright header.
2068 * java/util/zip/InflaterInputStream.java: Added copyright header.
2070 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2072 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2074 (getNextStream): Likewise.
2076 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2078 (getBundle): Don't explicitly throw null pointer exception.
2080 * gnu/gcj/RawData.java: Added copyright header.
2082 * include/jni.h (_Jv_va_list): Always define as va_list.
2084 1999-05-9 Anthony Green <green@cygnus.com>
2086 * java/text/DateFormat.java (computeInstance): Separate time
2088 (getDateTimeInstance): Ditto.
2089 (getDateTimeInstance(int,int)): New method.
2091 * Makefile.in: Rebuilt.
2092 * Makefile.am (ordinary_java_source_files): Add new classes.
2094 * java/util/PropertyResourceBundle.java: New file.
2095 * gnu/gcj/util/EnumerationChain.java: New file.
2097 1999-05-07 Tom Tromey <tromey@cygnus.com>
2099 * acconfig.h (GCJVERSION): New undef.
2100 * java/lang/natSystem.cc (init_properties): Define java.version,
2101 java.class.version, os.name, os.arch, os.version.
2102 Include <sys/utsname.h> if required.
2103 * configure: Rebuilt.
2104 * configure.in: Compute and define GCJVERSION.
2106 * java/lang/natSystem.cc (default_file_encoding): Now static.
2108 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2110 * libtool-version: New file.
2111 * Makefile.in: Rebuilt.
2112 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2115 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2116 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2119 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2120 (we pick those up already).
2122 1999-05-05 Per Bothner <bothner@cygnus.com>
2124 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2125 stub classes. (This is enough to get Kawa to compile against libgcj.)
2127 * gnu/gcj/RawData.java: New class.
2128 * doc/cni.sgml: Document RawData.
2130 * java/util/zip/InflaterInputStream.java: New stub class.
2131 * java/util/zip/ZipInputStream.java: New class. Partly works.
2132 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2133 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2134 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2135 * java/util/zip/ZipOutputStream.java: Start implementation.
2137 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2138 (default_file_encoding): New global, initial value is above macro.
2139 (init_properties): Default file.encoding to default_file_encoding.
2141 * Makefile.am: Add new classes.
2143 1999-05-05 Tom Tromey <tromey@cygnus.com>
2145 * Makefile.in: Rebuilt.
2146 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2147 (clean-local): New target
2149 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2150 (load, loadLibrary): Now native.
2152 * java/lang/Runtime.java (load, loadLibrary): Now native.
2153 (init): New native method.
2154 (Runtime): Use init.
2155 * prims.cc: Include <ltdl.h> if required.
2156 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2158 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2160 * configure.in: Switch from irix threads to posix threads
2161 * configure: Regenerate.
2163 1999-04-30 Tom Tromey <tromey@cygnus.com>
2165 * Makefile.in: Rebuilt.
2166 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2168 1999-04-29 Tom Tromey <tromey@cygnus.com>
2170 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2173 * java/util/Locale.java (Locale(String,String)): Implement in
2174 terms of 3-argument version; variant now defaults to empty
2176 (toString): Assume variant is not null.
2177 (equals): Assume all strings are not null.
2178 (Locale): Throw NullPointerException if any argument is null.
2180 * java/util/ResourceBundle.java (getBundle): Don't try the base
2181 name; now implicit in partialGetBundle call.
2182 (trySomeGetBundle): Search for parent bundles and call setParent
2184 (partialGetBundle): Added `langStop' argument. Use
2185 `Locale.toString' to compute bundleName.
2186 (resource_cache): New static field.
2187 (partialGetBundle): Cache the returned resource bundle. Now
2190 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2193 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2194 * java/text/natCollator.cc (decomposeCharacter): `base' now
2196 * Makefile.in: Rebuilt.
2197 * Makefile.am (ordinary_java_source_files): Added
2198 CollationElementIterator, CollationKey, Collator,
2200 (nat_source_files): Added natCollator.cc.
2201 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2202 (compare): Pass `this' to CollationElementIterator constructor.
2203 (getCollationElementIterator): Likewise.
2204 (ceiNext): Fix off-by-one error when finding initial substring.
2205 (next): Correctly mask off bits when computing return value.
2206 Fixed return values when one string is shorter than the other.
2207 * java/text/CollationElementIterator.java (collator): New field.
2208 (CollationElementIterator): Added collator argument.
2209 (next): Call ceiNext on collator object.
2211 1999-04-26 Tom Tromey <tromey@cygnus.com>
2213 * natCollator.cc: New file.
2215 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2216 (GregorianCalendar): Use it in all constructors.
2217 * java/util/Calendar.java (Calendar): Changed argument name to
2218 `zone' to match code.
2220 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2221 * java/text/CollationKey.java: New file.
2222 * java/text/CollationElementIterator.java: New file.
2223 * java/text/Collator.java: New file.
2224 * java/text/RuleBasedCollator.java: New file.
2226 * Makefile.in: Rebuilt.
2227 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2228 (jv_convert_LDADD): Explicltly add -lm -lc.
2230 1999-04-26 Tom Tromey <tromey@cygnus.com>
2232 * configure, Makefile.in: Rebuilt.
2233 * configure.in: Added AM_PROG_LIBTOOL.
2234 (GCOBJS): Use `.lo' form of files.
2235 (THREADOBJS): Likewise.
2236 (GCDEPS): Use `.la' form of library.
2237 (GCLIBS): Set to be the same as GCDEPS.
2238 (THREADDEPS): Use `.la' form of library.
2239 (THREADLIBS): Set to be the same as THREADDEPS.
2240 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2241 toolexeclib_LIBRARIES.
2242 (libgcj_la_SOURCES): Renamed for libtoolization.
2243 (EXTRA_libgcj_la_SOURCES): Likewise.
2244 (libgcj_la_DEPENDENCIES): Likewise.
2245 (libgcj_la_LIBADD): Likewise.
2246 ($(nat_files)): Use LTCXXCOMPILE.
2247 ($(c_files)): Use LTCOMPILE.
2248 (GCJCOMPILE): New macro.
2250 (.java.o): Likewise.
2251 ($(javao_files)): Likewise.
2252 (jv_convert_LINK): Use LIBTOOL.
2253 (nat_files): Use `.lo' files.
2254 (c_files): Likewise.
2255 (javao_files): Likewise.
2256 (.class.lo): Renamed.
2257 (.java.lo): Likewise.
2258 ($(nat_files)): Depend on %.lo.
2259 ($(c_files)): Likewise.
2260 ($(javao_files)): Likewise.
2261 (jv_convert_LDADD): Link against .lo files.
2262 (jv_convert_DEPENDENCIES): Depend on .lo files.
2263 (maintainer-check): Depend on libgcj.la, but examine .a file.
2264 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2265 (libgcj_la_LDFLAGS): New macro.
2267 1999-04-23 Warren Levy <warrenl@cygnus.com>
2269 * Makefile.am: Added URLDecoder and URLEncoder.
2270 * Makefile.in: Rebuilt.
2272 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2273 setSocketImplFactory to match spec.
2274 * java/net/Socket.java (getSoLinger): Changed return type to
2277 * java/net/URLDecoder.java: New file.
2278 * java/net/URLEncoder.java: New file.
2280 1999-04-21 Tom Tromey <tromey@cygnus.com>
2282 * java/lang/natString.cc (getBytes): Reverted earlier change and
2283 applied correct fix from Per Bothner.
2285 * java/lang/String.java: Don't throw
2286 UnsupportedEncodingException.
2288 * java/lang/natString.cc (getBytes): Correctly size result
2289 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2291 1999-04-20 Andrew Haley <aph@cygnus.com>
2293 * include/sparc-signal.h: new file.
2294 * configure.in: include/sparc-signal.h added.
2295 * configure: regenerated.
2296 * prims.cc (JvRunMain): signal handling code rewritten to be more
2298 (catch_segv): ditto.
2300 * include/i386-signal.h: reorganized.
2301 * include/default-signal.h: reorganized.
2303 1999-04-19 Tom Tromey <tromey@cygnus.com>
2305 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2306 once. From Anthony Green.
2308 1999-04-19 Andrew Haley <aph@cygnus.com>
2310 * Makefile.in: Processed with new automake.
2312 1999-04-19 Tom Tromey <tromey@cygnus.com>
2314 * include/javaprims.h: Removed security namespace.
2316 1999-04-20 Anthony Green <green@cygnus.com>
2318 * java/io/PrintStream.java (println): Remove extra println.
2320 1999-04-19 Anthony Green <green@cygnus.com>
2322 * Makefile.in: Rebuilt.
2323 * Makefile.am (ordinary_java_source_files): Add new security files.
2325 * java/security/NoSuchAlgorithmException.java,
2326 java/security/MessageDigest.java: New files.
2328 * include/javaprims.h: Add security namespace.
2330 1999-04-16 Per Bothner <bothner@cygnus.com>
2332 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2333 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2334 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2335 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2336 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2337 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2338 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2339 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2340 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2341 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2342 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2343 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2344 * Makefile.am: Various changes for new files and conversions.
2346 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2347 New overloading, allows greater efficiency.
2348 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2349 New overloading (for efficiency - avoids copying).
2351 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2352 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2354 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2355 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2356 (writeChars): Don't be quite so eager to flush.
2357 * java/io/PrintStream.java: Rewrite. Now more similar to
2358 OutputStreamWriter, using explicit UnicodeToBytes converter.
2359 Also, autoflush does not need to flush so often.
2360 * java/lang/natString.cc (getBytes): More efficient algorithm.
2361 (init(jbyteArray,jint,jint,jstring)): More efficient.
2363 1999-04-15 Warren Levy <warrenl@cygnus.com>
2365 * Makefile.am (ordinary_java_source_files): Added new Connection
2366 and Handler classes in gnu.gcj.protocol.file package.
2367 * Makefile.in: Rebuilt.
2369 * gnu/gcj/protocol/file/Connection.java: New file.
2370 * gnu/gcj/protocol/file/Handler.java: New file.
2371 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2372 if doInput allows input.
2373 (getOutputStream): Check if doOutput allows output.
2374 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2376 1999-04-14 Tom Tromey <tromey@cygnus.com>
2378 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2379 buffer larger to work around bug.
2380 From Bryce McKinlay <bryce@albatross.co.nz>.
2382 1999-04-14 Andrew Haley <aph@cygnus.com>
2384 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2385 NaNs are always converted to the same long value.
2386 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2389 1999-04-13 Tom Tromey <tromey@cygnus.com>
2391 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2392 instead switch on actual element type.
2394 * Makefile.in: Rebuilt.
2395 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2397 1999-04-13 Andrew Haley <aph@cygnus.com>
2399 * include/i386-signal.h, include/default-signal.h: New files.
2400 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2402 (catch_fpe): New function.
2403 * configure.in: Make link to appropriate include/java-signal.h.
2404 * configure: Rebuilt.
2405 * Makefile.am: include/java-signal.h added to dependency list.
2406 * Makefile.in: Rebuilt.
2408 1999-04-12 Urban Widmark <urban@svenskatest.se>
2410 * java/io/DataInputStream.java (readLine): Corrected handling of
2411 empty lines, from null to "".
2413 1999-04-12 Tom Tromey <tromey@cygnus.com>
2415 * Makefile.in: Rebuilt.
2416 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2418 * java/lang/natSystem.cc (SystemClass): New define.
2419 (init_properties): Synchronize.
2421 1999-04-08 Geoff Berry <gcb@gnu.org>
2423 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2424 * natPlainSocketImpl.cc (accept): Add missing else if check
2427 1999-04-08 Tom Tromey <tromey@cygnus.com>
2429 * java/lang/Long.java (parseLong): Corrected overflow detection
2431 * java/lang/Integer.java (parseInt): Corrected overflow detection
2434 * java/io/PrintStream.java (print): Handle null string argument.
2435 (println): Likewise.
2437 1999-04-07 Warren Levy <warrenl@cygnus.com>
2439 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2440 Set count to 0 when InputStreamReader returns -1 for EOF.
2442 1999-04-07 Tom Tromey <tromey@cygnus.com>
2444 * mauve-libgcj: Omit java.text.Collator,
2445 java.text.RuleBasedCollator.
2447 1999-04-06 Tom Tromey <tromey@cygnus.com>
2449 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2450 IOException from getHttpHeaders().
2451 (getHeaderFieldKey): Likewise.
2453 * include/javaprims.h: Regenerated declarations.
2455 * Makefile.in: Rebuilt.
2456 * Makefile.am (ordinary_java_source_files): Updated for removed
2459 1999-04-06 Per Bothner <bothner@cygnus.com>
2461 * java/util/zip/Adler32.java: New class.
2462 * java/util/zip/CRC32.java: Add working method bodies.
2463 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2464 * Makefile.in: Re-generate.
2466 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2468 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2469 from version in removed www hierarchy.
2470 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2471 version in removed www hierarchy.
2473 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2474 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2475 * gnu/gcj/www/protocol/http: Removed dir.
2476 * gnu/gcj/www/protocol: Removed dir.
2477 * gnu/gcj/www: Removed dir.
2479 * java/net/HttpURLConnection.java: Revised comments to indicate
2480 missing JDK 1.2 methods.
2482 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2483 hierarchy rather than the gnu/gcj/www/protocol one.
2484 * java/net/URLConnection.java: Updated status comments.
2485 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2486 the gnu/gcj/www/content one.
2488 1999-04-06 Per Bothner <bothner@cygnus.com>
2490 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2491 The gen-from-JIS program is in $(CONVERT_DIR).
2493 1999-04-06 Tom Tromey <tromey@cygnus.com>
2495 * mauve-libgcj: Renamed from mauve-libjava.
2497 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2499 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2500 (getResponseMessage): Implemented.
2501 (getResponseVals): New private method.
2503 * java/net/URLConnection.java (getContent): Implemented.
2504 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2506 1999-04-05 Tom Tromey <tromey@cygnus.com>
2508 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2509 (jv_convert_SOURCES): Renamed.
2510 (EXTRA_jv_convert_SOURCES): Likewise.
2511 (jv_convert_LDFLAGS): Likewise.
2512 (jv_convert_LINK): Likewise.
2513 (jv_convert_LDADD): Likewise.
2514 (jv_convert_DEPENDENCIES): Likewise.
2516 * Makefile.in: Rebuilt.
2517 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2520 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2522 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2523 method for comparison.
2525 * java/net/URLConnection.java (getContentLength): Implemented.
2526 (getContentType): Implemented.
2527 (getContentEncoding): Implemented.
2528 (getExpiration): Implemented.
2529 (getDate): Implemented.
2530 (getLastModified): Implemented.
2531 (getHeaderFieldInt): Implemented.
2532 (getHeaderFieldDate): Implemented.
2534 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2536 * java/net/URLConnection.java (toString): Implemented.
2537 (setContentHandlerFactory): Implemented.
2538 (setContentHandler): Wrote new private helper method.
2540 1999-04-01 Tom Tromey <tromey@cygnus.com>
2542 * Makefile.in: Rebuilt.
2543 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2544 of 1999-03-31; we always want to build all the .class files.
2545 Depend on java_source_files, not libgcj.zip.
2546 (nat_headers): Define in terms of ordinary_java_source_files.
2548 1999-03-31 Tom Tromey <tromey@cygnus.com>
2550 * Makefile.in: Rebuilt.
2551 * Makefile.am (special_java_source_files): New macro.
2552 (java_source_files): Use it.
2553 (ordinary_java_source_files): New macro.
2554 (java_source_files): Use it.
2555 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2556 creating headers for those files with hand-maintained headers.
2558 * include/javaprims.h: Regenerated namespace declarations.
2559 * classes.pl (scan): Include [0-9] in regexp for matching class
2560 names; for java.util.zip.CRC32.
2562 * Makefile.in: Rebuilt.
2563 * Makefile.am (nat_headers): Redefined to generate all possible
2566 * java/util/zip/ZipException.java: In package java.util.zip, not
2569 1999-03-30 Tom Tromey <tromey@cygnus.com>
2571 * configure: Rebuilt.
2572 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2573 eh-common.h when not building in tree with gcc.
2575 * Makefile.in: Rebuilt.
2576 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2577 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2579 ($(java_source_files:.java=.class)): New target.
2581 * Makefile.in: Rebuilt.
2582 * Makefile.am (java_source_files): Added
2583 java/net/HttpURLConnection.java and
2584 gnu/gcj/www/protocol/http/Connection.java.
2586 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2588 * gnu/gcj/www/protocol/http/Connection.java: New file.
2589 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2590 * java/net/HttpURLConnection.java: New file.
2591 * java/net/URLConnection.java (getHeaderField): Implemented default.
2592 (getHeaderFieldKey): Implemented default method.
2594 1999-03-30 Tom Tromey <tromey@cygnus.com>
2596 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2598 * java/util/zip/Deflater.java: Added copyright header.
2599 * java/util/zip/CRC32.java: Added copyright header.
2601 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2602 that it is automatically generated.
2603 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2605 * gnu/gcj/convert/BytesToUnicode.java,
2606 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2607 gnu/gcj/convert/Input_EUCJIS.java,
2608 gnu/gcj/convert/Input_UTF8.java,
2609 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2610 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2611 gnu/gcj/convert/Output_8859_1.java,
2612 gnu/gcj/convert/Output_JavaSrc.java,
2613 gnu/gcj/convert/Output_UTF8.java,
2614 gnu/gcj/convert/UnicodeToBytes.java,
2615 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2617 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2619 * Makefile.in, configure: Rebuilt.
2620 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2621 not if test subdir exists.
2622 (--enable-gcj-classes): Removed; gcj always used to generate
2624 (JAVA, JAVAC): Removed.
2625 (--enable-single-compilation, --enable-source-compilation):
2628 (NATIVE): New conditional.
2629 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2630 `install-exec' to work.
2631 (toolexeclibdir): Likewise.
2632 (toollib_LIBRARIES): Likewise.
2633 (AM_MAKEFLAGS): Don't pass tooldir.
2635 (javao_files): Redefined.
2636 (java_source_files): New macro.
2637 (c_source_files): New macro.
2638 (c_files): Redefined in terms of c_source_files.
2639 (java_io_files, java_lang_files, java_net_files, java_text_files,
2640 java_util_files, gnu_files, java_files): Removed.
2641 (class_io_files, class_lang_files, class_net_files,
2642 class_text_files, class_util_files, class_gnu_files, class_files):
2644 (nat_source_files): New macro.
2645 (nat_files): Redefined in terms of nat_source_files.
2646 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2647 java_source_files. Removed no-such-file.c.
2649 (ETAGS_ARGS): Removed.
2650 (TAGS_DEPENDENCIES): Likewise.
2651 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2653 (src_io_files, src_lang_files, src_text_files, src_util_files,
2654 src_gnu_files): Removed.
2655 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2656 (BUILT_SOURCES): Removed.
2657 (header-check): New target.
2659 (noinst_PROGRAMS): New macro.
2660 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2662 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2663 (gen-from-JIS): Build in top directory.
2664 (convert_source_files): New macro.
2665 (convert_SOURCES): New macro.
2666 (convert_LDFLAGS): Likewise.
2667 (convert_LINK): Likewise.
2668 (convert_LDADD): Likewise.
2669 (convert_DEPENDENCIES): Likewise.
2671 (gen-from-JIS): Removed.
2672 (gen_from_JIS_SOURCES): New macro.
2673 (gen_from_JIS_LDADD): Likewise.
2674 (gen_from_JIS_DEPENDENCIES): Likewise.
2676 * configure: Rebuilt.
2677 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2678 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2679 when defining conditional.
2681 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2683 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2684 The Unicode Consortium does not permit their re-distribution.
2685 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2686 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2688 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2690 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2692 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2694 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2695 from Unicode Consortium.
2696 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2697 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2698 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2699 New tables, generated using gen-from-JIS.
2700 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2701 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2702 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2703 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2705 * gnu/gcj/convert/Convert.java: New application.
2706 * Makefile.am, Makefile.in (convert): New program, using Convert.
2707 Build the various JIS conversion tables (in maintainer mode).
2709 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2711 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2713 * java/net/URL.java (URL): Deal with null property value. Use "."
2714 as separator in building class name.
2715 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2716 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2717 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2718 beginning of the substring rather than 'start'.
2720 1999-03-26 Tom Tromey <tromey@cygnus.com>
2722 * include/java-chartables.h: Rebuilt.
2723 * include/java-chardecomp.h: New file.
2724 * chartables.pl: Generate output files directly. Added support
2725 for generating decomposition header.
2726 (canonical_decomposition, full_decomposition): New globals.
2727 (DECOMPOSITION): New constant.
2728 (process_char): Call add_decomposition.
2729 (add_decomposition): New sub.
2730 (write_decompositions): New sub.
2732 1999-03-25 Tom Tromey <tromey@cygnus.com>
2734 * java/text/CollationElementIterator.java: New file.
2736 * mauve-libjava: Omit StringTest.
2738 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2740 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2741 without a '/' when parsing protocol. Handle ref outside of parseURL.
2742 (hashCode): Implemented.
2743 (set): Don't expand -1 to default port.
2744 (getDefaultPort): Removed.
2746 * java/net/URLStreamHandler.java (parseURL): Implemented.
2747 (toExternalForm): Implemented.
2749 1999-03-23 Tom Tromey <tromey@cygnus.com>
2751 * java/text/BreakIterator.java (getSentenceInstance):
2753 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2755 * Makefile.in: Rebuilt.
2756 * Makefile.am (nat_headers): Added IllegalAccessException.
2757 * java/lang/natClass.cc (newInstance): Throw
2758 IllegalAccessException, not IllegalAccessError.
2759 Include IllegalAccessException.h.
2761 1999-03-22 Tom Tromey <tromey@cygnus.com>
2763 * gnu/gcj/text/LineBreakIterator.java: New file.
2764 * java/text/BreakIterator.java (getLineInstance): Implemented.
2766 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2767 copy constructor private.
2768 (previous, next): Removed erroneous comment about line
2770 (previous): Correctly recognize break between non-letter on the
2771 left and letter on the right. Handle apostrophes correctly.
2773 * java/text/BreakIterator.java (getWordInstance): Implemented.
2774 * gnu/gcj/text/WordBreakIterator.java: New file.
2775 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2777 * gnu/gcj/text/BaseBreakIterator.java: New file.
2779 1999-03-19 Tom Tromey <tromey@cygnus.com>
2781 * java/text/BreakIterator.java: New file (partially stubbed out).
2782 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2784 * include/config.h.in: Rebuilt.
2785 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2786 (HAVE_TIMEZONE): Likewise.
2787 * configure: Rebuilt.
2788 * configure.in: Added timezone checks.
2789 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2792 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2794 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2795 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2796 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2797 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2798 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2799 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2800 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2801 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2803 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2804 (BSD_COMP): Kludge needed for Solaris2.
2806 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2808 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2809 URL(java.net.URL, string, URLStreamHandler) and call it with a
2810 null handler. In latter constructor, added SecurityManager check.
2811 (set): Expect null handler on bad protocol rather than an exception.
2812 (setURLStreamHandler): Simplified exception handling; return null
2813 on invalid protocol.
2815 1999-03-18 Tom Tromey <tromey@cygnus.com>
2817 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2819 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2821 Include PrintStream.h, InputStream.h.
2822 * java/lang/System.java (ForwardingInputStream,
2823 ForwardingOutputStream): Removed.
2824 (setErr, setIn, setOut): Now native.
2826 Reverted patch from 1999-02-12 to work around problem in
2828 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2829 (_Jv_eh_free): Use free.
2831 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2832 for path name. Minor formatting fixes.
2834 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2836 * prims.cc (fail_on_finalization): New function.
2837 (_Jv_GCWatch): Likewise.
2839 * prims.cc (JvRunMain): Initialize `nullp'.
2840 (nullp): New global.
2841 (catch_segv): Throw nullp.
2843 * Makefile.in: Rebuilt.
2844 * Makefile.am (ZIP): In "null target" case, zip is found in the
2847 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2851 * java/lang/StringBuffer.java (StringBuffer): Don't use
2852 ensureCapacity to set initial capacity.
2853 (capacity): Subtract `length' from return result.
2855 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2857 * java/io/natFileDescriptorPosix.cc (open): Throw
2858 FileNotFoundException, but with filename and errno in msg.
2860 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2862 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2863 functionality folded into java/net/URL.java per spec.
2865 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2866 than EEXIST for throwing FileNotFoundException.
2868 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2869 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2871 * java/net/URLStreamHandler.java (parseURL): Added stub.
2873 1999-03-15 Andrew Haley <aph@cygnus.com>
2875 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2878 1999-03-15 Andrew Haley <aph@cygnus.com>
2880 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2883 1999-03-12 Tom Tromey <tromey@cygnus.com>
2885 * prims.cc (catch_segv): New function.
2886 Include <signal.h> if HANDLE_SEGV defined. Include
2887 NullPointerException.h.
2888 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2891 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2892 a SimpleDateFormat, not just a DateFormat.
2893 (defaultCenturyStart, formatData, pattern): Now private.
2894 (append): Now `final'. Use `NumberFormat.format'.
2896 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2898 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2901 * java/text/MessageFormat.java (format): Use default MessageFormat
2903 (parse, parseObject): Wrote.
2905 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2908 1999-03-12 Andrew Haley <aph@cygnus.com>
2910 * java/lang/String.java (indexOf): Replace with native method for
2912 * java/lang/natString.cc (IndexOf): As above.
2914 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2915 Argument check corrected.
2916 (init(jbyteArray,jint,jint,jstring)): Likewise.
2918 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2919 1.2 compliant method.
2921 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2923 * java/lang/Float.java (byteValue, shortValue): Likewise.
2925 1999-03-11 Tom Tromey <tromey@cygnus.com>
2927 * java/text/DecimalFormat.java (parse): Wrote.
2929 * java/text/ChoiceFormat.java (parse): Set error index on
2930 ParsePosition object.
2932 * java/lang/Integer.java (parseInt): Throw exception on overflow
2933 when intermediate result is most negative number. Changed
2934 overflow detection as well.
2935 * java/lang/Long.java (parseLong): Likewise.
2937 * configure, Makefile.in: Rebuilt.
2938 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2939 CANADIAN when building in source tree that doesn't include gcc.
2940 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2943 * java/text/ChoiceFormat.java (nextDouble): Correct some
2944 off-by-one errors when masking or adding.
2946 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2947 parameter, if given. Use `%', not IEEEremainder.
2948 (scanFix): Throw error if multiplier already set.
2949 (computePattern): Wrote.
2951 1999-03-11 Andrew Haley <aph@cygnus.com>
2953 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2955 (nextDouble): Corrected masking logic. Handle interaction between
2956 `next' and negative numbers.
2958 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2960 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2961 * java/net/URL.java: Added general comments.
2963 1999-03-10 Tom Tromey <tromey@cygnus.com>
2965 * java/text/ChoiceFormat.java (parse): Wrote.
2967 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2969 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2970 Create ChoiceFormat objects.
2971 (format): Special-case ChoiceFormat.
2972 (scanFormatElement): Include { and } in generated style string.
2974 1999-03-09 Tom Tromey <tromey@cygnus.com>
2976 * java/text/ChoiceFormat.java: New file.
2978 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2980 * java/net/BindException.java: Created.
2981 * java/net/ConnectException.java: Created.
2982 * java/net/ContentHandler.java: Created.
2983 * java/net/ContentHandlerFactory.java: Created.
2984 * java/net/FileNameMap.java: Created.
2985 * java/net/MalformedURLException.java: Created.
2986 * java/net/NoRouteToHostException.java: Created.
2987 * java/net/ProtocolException.java: Created.
2988 * java/net/ServerSocket.java (@author): Fixed typo.
2989 * java/net/Socket.java (@author): Fixed typo.
2990 * java/net/SocketImpl.java (@author): Fixed typo.
2991 * java/net/SocketImplFactory.java (@author): Fixed typo.
2992 * java/net/URL.java: Created - nearly complete.
2993 * java/net/URLConnection.java: Created - near-empty stub.
2994 * java/net/URLStreamHandler.java: Created - incomplete stub.
2995 * java/net/URLStreamHandlerFactory.java: Created.
2996 * java/net/UnknownServiceException.java: Created.
2998 1999-03-09 Tom Tromey <tromey@cygnus.com>
3000 * java/lang/System.java (ForwardingInputStream): New class.
3001 (ForwardingOutputStream): Likewise.
3002 (in, out, err): Now `final' forwarding streams.
3003 (setIn, setOut, setErr): Use appropriate method on forwarding
3006 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3009 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3011 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3012 * java/util/zip/Checksum.java: New interface (complete).
3013 * java/util/zip/Deflater.java: New class (near-empty stub).
3014 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3015 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3016 * java/util/zip/ZipEntry.java: New class (complete).
3017 * java/util/zip/ZipException.java: New class (complete).
3018 * java/util/zip/ZipFile.java: New class (incomplete stub).
3019 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3021 1999-03-09 Tom Tromey <tromey@cygnus.com>
3023 * java/text/MessageFormat.java (MessageFormatElement): Removed
3024 `public' specifiers.
3026 * java/text/DecimalFormat.java (scanFormat): Increment index
3027 before processing exponential format. Fixed a couple typos in
3029 (format): Correct normalization of exponent.
3031 1999-03-08 Tom Tromey <tromey@cygnus.com>
3033 * java/text/SimpleDateFormat.java (parse): Throw
3034 IllegalArgumentException, not ParseException.
3036 1999-03-05 Tom Tromey <tromey@cygnus.com>
3038 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3039 when constructing DateFormatSymbols. Initialize numberFormat
3040 field of superclass.
3042 * java/text/DateFormat.java (equals): Rewrote.
3043 (getAvailableLocales): New method.
3044 (getDateInstance): New methods.
3045 (getDateTimeInstance): Likewise.
3046 (getTimeInstance): Likewise.
3047 (getInstance): New method.
3048 (computeInstance): New method.
3050 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3052 (safeGetResource): New method.
3053 (DateFormatSymbols): Use Locale paramater.
3054 (equals): Now protected.
3055 Made instance variables private.
3057 1999-03-04 Tom Tromey <tromey@cygnus.com>
3059 * java/text/DecimalFormat.java: New file.
3061 * java/text/NumberFormat.java (groupingUsed,
3062 maximumFractionDigits, maximumIntegerDigits,
3063 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3065 (setDecimalSeparatorAlwaysShown, setMultiplier,
3066 setPositivePrefix): Removed.
3067 (setMinimumFractionDigits, setMaximumFractionDigits):
3069 (format): Now final.
3070 Added many new methods.
3072 * Makefile.in: Rebuilt.
3073 * Makefile.am (gnu_files): New macro.
3074 (java_files): Added gnu_files.
3075 (class_gnu_files): New macro.
3076 (class_files): Use it.
3077 (src_gnu_files): New macro.
3078 (gnu.o): New target.
3079 (javao_files): Added gnu.o.
3081 * gnu/gcj/text/LocaleData_en_US.java: New file.
3082 * gnu/gcj/text/LocaleData_en.java: New file.
3083 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3084 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3085 (safeGetString): New method.
3086 (safeGetChar): Likewise.
3088 1999-03-03 Tom Tromey <tromey@cygnus.com>
3090 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3093 * java/text/FieldPosition.java (equals): Don't check for null
3094 object; instanceof does this.
3096 * java/util/Locale.java (clone): New method.
3099 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3101 * doc/cni.sgml: New file.
3103 1999-03-03 Tom Tromey <tromey@cygnus.com>
3105 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3107 * java/text/DecimalFormatSymbols.java: New file.
3109 1999-03-02 Tom Tromey <tromey@cygnus.com>
3111 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3113 * configure: Rebuilt.
3114 * configure.in: Check for sys/filio.h.
3116 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3118 (load): Always throw UnsatisfiedLinkError.
3119 (loadLibrary): Likewise.
3121 1999-03-02 Anthony Green <green@cygnus.com>
3123 * LIBGCJ_LICENSE: New file.
3124 * LIBJAVA_LICENSE: Removed.
3125 * Many files: libjava now libgcj.
3127 1999-03-02 Tom Tromey <tromey@cygnus.com>
3129 * include/java-chartables.h: Rebuilt.
3130 * chartables.pl (print_block): Make table `const'.
3131 (print_numerics): Likewise.
3132 (print_single_map): Likewise.
3133 (print_all_block): Likewise.
3134 (print_case_table): Likewise.
3135 (print_fast_tables): Likewise.
3136 * java/lang/natCharacter.cc (table_search): `table' argument now
3139 1999-03-01 Tom Tromey <tromey@cygnus.com>
3141 * java/util/Date.java (before, after): Inverted logic.
3143 * java/util/Date.java (parse): Handle case where first character
3144 in string is open parenthesis.
3145 (skipParens): Rewrote.
3147 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3148 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3150 * java/util/Date.java (parse): Correctly compute beginning of
3153 * java/util/Hashtable.java (get): Throw NullPointerException if
3155 (containsKey): Likewise.
3157 * java/util/Properties.java (list): Truncate value to 37
3158 characters and add `...'.
3160 * java/lang/Byte.java (parseByte): Pass `radix' to
3163 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3165 Include System.h, PrintStream.h.
3167 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3170 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3172 * configure: Rebuilt.
3173 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3176 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3178 * java/lang/SecurityManager.java: Import java.net.*.
3179 (checkMulticast): New methods.
3181 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3183 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3184 (nat_files): Add java/lang/reflect/natArray.o.
3185 (nat_headers): Add Field.h and NoSuchFieldException.h.
3187 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3188 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3189 (_Jv_FromReflectedField): Fix buglet.
3190 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3191 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3192 * prims.cc (_Jv_Abort): Include message in print-out.
3194 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3195 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3196 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3198 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3199 * include/config.h.in (HAVE_PWD_H): New feature macro.
3200 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3201 user.name, user.home, user.dir.
3203 * java/lang/reflect/Array.java: New class.
3204 * java/lang/reflect/natArray.cc: New native methods.
3205 * include/javaprims.h: Declare java::lang::reflect::Array.
3207 * java/lang/Class.h (getField): New private method. Add friends.
3208 * java/lang/Class.java (getField): Add private overload.
3209 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3210 getDeclaredMethods): Add working implementations.
3211 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3212 Finish implementation, except for access control.
3214 * java/lang/reflect/Modifier.java (toString): New overload.
3215 * include/java-method.h: New file.
3216 * java/lang/reflect/Method.java (index): Replaced by offset field.
3217 Remove various private fields - get them from _Jv_Field instead.
3218 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3219 New method implementations.
3221 * java/text/NumberFormat.java: Add a bunch of methods.
3223 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3225 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3227 1999-02-26 Tom Tromey <tromey@cygnus.com>
3229 * include/config.h.in: Rebuilt.
3230 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3231 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3232 HAVE_GETHOSTBYADDR_R): New defines.
3233 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3234 gethostbyaddr_r if available.
3236 * configure: Rebuilt.
3237 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3239 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3243 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3244 * prims.cc (_Jv_AllocBytesChecked): New function.
3246 * Makefile.in: Rebuilt.
3247 * Makefile.am (SUBDIRS): Removed `test'.
3248 * configure: Rebuilt.
3249 * configure.in: Don't build test/Makefile.
3250 * test/*: Removed all files.
3252 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3254 * java/lang/reflect/Constructor.java: Make class final to match spec.
3255 * java/lang/reflect/Method.java: Ditto.
3257 1999-02-25 Tom Tromey <tromey@cygnus.com>
3259 * java/net/natInetAddress.cc: Include <sys/types.h> before
3261 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3264 * java/net/natInetAddress.cc: Declare gethostname if required.
3265 * include/config.h.in: Rebuilt.
3266 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3267 * configure: Rebuilt.
3268 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3269 declared in unistd.h.
3271 1999-02-24 Tom Tromey <tromey@cygnus.com>
3273 * Makefile.in: Rebuilt.
3274 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3275 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3276 from private to "none".
3278 * include/javaprims.h: Regenerated class declarations with new
3280 * classes.pl (scan): Only generate decls for java.lang, java.io,
3283 1999-02-24 Tom Tromey <tromey@cygnus.com>
3285 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3286 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3288 1999-02-23 Tom Tromey <tromey@cygnus.com>
3290 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3291 not already defined.
3292 * java/io/natFile.cc (_REENTRANT): Only define if not already
3294 * include/config.h.in: Rebuilt.
3295 * acconfig.h (HAVE_BOEHM_GC): New define.
3296 * configure: Rebuilt.
3297 * configure.in: Define HAVE_BOEHM_GC if using it.
3298 * posix-threads.cc: Include boehm-config.h and gc.h if
3300 * include/posix-threads.h: Added explanatory note about Boehm GC.
3302 * java/io/BufferedReader.java (readLine): Only return null when
3303 EOF seen before any characters read. (In particular, an empty
3304 line should not return null.)
3306 * java/io/BufferedInputStream.java (read): Only refill once per
3309 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3310 java.lang.Character.classify12, java.lang.String.hash,
3311 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3312 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3314 * java/text/StringCharacterIterator.java (setIndex): No error if
3316 (next): Check for `pos == end', not `end - 1'.
3317 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3318 for null text in each constructor.
3319 (clone): Fixed order of arguments to constructor.
3321 1999-02-22 Tom Tromey <tromey@cygnus.com>
3323 * include/config.h.in: Rebuilt.
3324 * acconfig.h (HAVE_INET6): New define.
3325 (HAVE_SOCKLEN_T): Likewise.
3326 * java/net/PlainSocketImpl.java: Added copyright header.
3327 * java/net/natPlainSocketImpl.cc: Added copyright header.
3328 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3330 (connect): Likewise.
3332 (socklen_t): New typedef.
3333 (accept): Use socklen_t.
3334 * java/net/natInetAddress.cc: Added copyright header.
3335 (HAVE_GETHOSTNAME): Don't define.
3336 (HAVE_INET_ADDR): Likewise.
3337 (lookup): Fixed typo.
3338 (aton): Don't use `address' as name of local variable.
3339 (lookup): Use HAVE_INET6, not AF_INET6.
3341 * configure: Rebuilt.
3342 * configure.in: Look for functions inet_aton, inet_addr,
3343 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3344 Check for socklen_t typedef.
3346 * exception.cc (__throw): Declare as __noreturn__.
3348 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3350 * Makefile.am, Makefile.in: Also build java/net.
3351 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3353 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3354 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3356 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3357 * include/cni.h (JvMalloc, JvFree): New inline functions.
3358 (JvThrow): Add __noreturn__ attribute.
3359 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3360 (_Jv_Throw): Add __noreturn__ attribute.
3362 * java/net/PlainSocketImpl.java: Init fnum to -1.
3363 * java/net/ServerSocket.java: Add missing throws clauses.
3364 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3365 don't call create on the latter. Instead, other constructors
3366 have to explicitly call SocketImpl.create.
3367 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3368 from size_t to int, to match ::accept prototype.
3369 * java/net/natInetAddress.cc: Use JvFree rather than free.
3372 1999-02-22 Tom Tromey <tromey@cygnus.com>
3374 * include/javaprims.h: Added new classes.
3375 * java/text/StringCharacterIterator.java: New file.
3376 * java/text/CharacterIterator.java: New file.
3378 * java/text/ParseException.java (errorOffset): Now private.
3380 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3382 * java/net: New package.
3383 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3384 Socket.java,SocketException.java,SocketImpl.java,
3385 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3386 natPlainSocketImpl.cc}: New classes.
3388 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3389 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3390 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3391 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3393 * classes.pl: Translate package into "namespace", not "class".
3394 * include/javaprims.h: Update class list, using "namespace".
3396 1999-02-21 Tom Tromey <tromey@cygnus.com>
3398 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3399 Define when appropriate.
3401 1999-02-20 Tom Tromey <tromey@cygnus.com>
3403 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3404 as a single byte and \u07ff as two bytes.
3405 (_Jv_GetStringUTFLength): Likewise.
3406 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3407 with 0x0f, not 0x1f.
3409 1999-02-19 Tom Tromey <tromey@cygnus.com>
3411 * java/io/DataOutputStream.java (writeUTF): When encoding
3412 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3413 * java/io/DataInputStream.java (readUTF): Mask second byte of
3414 3-byte character with 0x3f, not 0x1f.
3416 * java/io/DataInputStream.java (readLong): Cast result of
3417 readUnsignedByte to long before using.
3419 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3422 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3423 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3424 argument to avoid warning.
3425 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3426 argument to avoid warning.
3428 1999-02-18 Tom Tromey <tromey@cygnus.com>
3430 * mauve-libjava: Omit java.io.DataInputOutput and
3431 java.io.Utf8Encoding.
3433 1999-02-17 Tom Tromey <tromey@cygnus.com>
3435 * Makefile.in: Rebuilt.
3436 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3437 * java/io/natFileDescriptorPosix.cc: Include
3438 InterruptedIOException.h, Thread.h.
3439 (write): Throw InterruptedIOException when required.
3441 * posix-threads.cc: Include <signal.h>.
3442 (_Jv_ThreadInterrupt): New function.
3444 (handle_intr): New function.
3445 (_Jv_InitThreads): Register handle_intr via sigaction.
3446 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3447 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3448 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3449 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3451 1999-02-19 Andrew Haley <aph@cygnus.com>
3453 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3455 (ThreadGroup (int)): Set the maximum priority of the initial
3458 1999-02-18 Andrew Haley <aph@cygnus.com>
3460 * java/lang/natClass.cc (forName): Check for the case where a
3461 classname is the name of an array and call FindClassFromSignature
3464 1999-02-18 Andrew Haley <aph@cygnus.com>
3466 * java/lang/StringBuffer (insert (int, String)): Move up any
3467 characters above the insert position and increase the length of
3468 the string buffer by the length of the argument.
3469 (insert (int, char[])): Likewise.
3470 (insert (int, char)): Likewise.
3471 (StringBuffer (String)): The initial capacity of the string buffer
3472 is 16 plus the length of the argument.
3473 (getChars): Add a JDK 1.2 FIXME.
3475 1999-02-18 Andrew Haley <aph@cygnus.com>
3477 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3480 1999-02-18 Andrew Haley <aph@cygnus.com>
3482 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3483 instead of floating-point equality. This is necessary for
3484 correct floating-point Hashtables.
3485 * java/lang/Float.java (equals): Ditto.
3487 1999-02-16 Tom Tromey <tromey@cygnus.com>
3489 * java/util/Properties.java (list): Truncate value to 37
3490 characters and add "...".
3492 1999-02-16 Tom Tromey <tromey@cygnus.com>
3494 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3495 if initCap is negative.
3496 (contains): Implement JDK1.2-style handling of null argument.
3497 (removeElement): Likewise.
3498 (indexOf): Likewise. Also, correctly handle case where idx is
3500 (lastIndexOf): Likewise.
3502 1999-02-16 Tom Tromey <tromey@cygnus.com>
3504 * java/lang/natString.cc (init): Increment source pointer in
3507 1999-02-16 Tom Tromey <tromey@cygnus.com>
3509 * exception.cc: Include NullPointerException.h.
3510 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3512 1999-02-16 Tom Tromey <tromey@cygnus.com>
3514 * Makefile.in: Rebuilt.
3515 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3517 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3519 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3520 we're compiling canadian.
3521 * configure: Regenerated.
3523 1999-02-12 Andrew Haley <aph@cygnus.com>
3525 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3526 deleted from libgcj.
3528 1999-02-12 Tom Tromey <tromey@cygnus.com>
3530 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3531 (_Jv_eh_free): Don't call free.
3532 Don't declare malloc or free.
3534 1999-02-11 Tom Tromey <tromey@cygnus.com>
3536 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3538 1999-02-11 Andrew Haley <aph@cygnus.com>
3540 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3541 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3542 needed by java.lang.*.
3543 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3544 wf_fmod.o: Removed from libjava.a.
3546 1999-02-11 Tom Tromey <tromey@cygnus.com>
3548 * include/javaprims.h: Reverted previous change; with it
3549 exception.cc can't compile.
3551 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3553 * include/config.h.in: Rebuilt.
3554 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3556 * configure: Rebuilt.
3557 * configure.in: Check for sched_yield. Look in thread library for
3558 all thread functions.
3560 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3561 no recursive mutexes.
3562 (_Jv_MutexDestroy): Define when required.
3563 (_Jv_MutexLock): Likewise.
3564 (_Jv_MutexUnlock): Likewise.
3565 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3566 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3567 (_Jv_Mutex_t): New structure.
3568 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3569 (_Jv_MutexLock): Likewise.
3570 (_Jv_MutexUnlock): Likewise.
3572 1999-02-10 Tom Tromey <tromey@cygnus.com>
3574 * aclocal.m4, configure, Makefile.in: Rebuilt.
3575 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3577 * configure.in: Changed to track library changes.
3578 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3579 (AM_CXXFLAGS): Likewise.
3580 (data_DATA): Likewise.
3581 (AM_CFLAGS): Likewise.
3582 (JC1FLAGS): Likewise.
3583 (libgcj_a_SOURCES): Likewise.
3584 (EXTRA_libgcj_a_SOURCES): Likewise.
3585 (libgcj_a_DEPENDENCIES): Likewise.
3586 (libgcj_a_LIBADD): Likewise.
3587 (libgcj.zip): Likewise.
3588 (CLEANFILES): Likewise.
3589 ($(nat_headers)): Likewise.
3590 (java/lang/FirstThread.h): Likewise.
3591 (java/lang/ThreadGroup.h): Likewise.
3592 (java/lang/String.h): Likewise.
3593 (java/lang/reflect/Field.h): Likewise.
3594 (BUILT_SOURCES): Likewise.
3595 (maintainer-check): Likewise.
3596 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3597 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3599 * java/util/natGregorianCalendar.cc (computeFields): Only use
3600 gmtime_r and localtime_r when configured for posix threads.
3602 * java/io/natFile.cc (get_entry): Only use readdir_r when
3603 configured for posix threads.
3605 * java/util/natGregorianCalendar.cc: Update copyright notice.
3606 * java/util/TimeZone.java: Ditto.
3607 * java/util/SimpleTimeZone.java: Ditto.
3609 1999-02-08 Tom Tromey <tromey@cygnus.com>
3611 * java/io/PrintStream.java (line_separator): New constant.
3612 (print): Use line_separator, not `file.separator' property.
3613 (println): Use line_separator.
3615 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3616 when trying to instantiate Class.
3618 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3619 NullPointerException if argument is null.
3621 * java/lang/Thread.java (setName): Throw NullPointerException, not
3622 IllegalArgumentException.
3625 1999-02-08 Andrew Haley <aph@cygnus.com>
3627 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3628 create new Classes with Class.newInstance().
3630 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3631 semiciolon to end of an array Class's signature if the elements of
3632 the array aren't themselves arrays.
3634 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3635 array of objects is always sizeof(jobject), not the size of the
3636 object to which the reference points.
3638 1999-02-08 Tom Tromey <tromey@cygnus.com>
3640 * java/util/BitSet.java (and): Throw NullPointerException when
3645 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3646 if argument is negative.
3647 (clear): Correctly compute `offset'. Throw
3648 IndexOutOfBoundsException when required.
3650 (get): Likewise. Also, return correct value.
3651 (ensure): Changed meaning of argument.
3652 (toString): Wrap contents in `{}'; put spaces after commas.
3653 (hashCode): Don't try to examine elements off the end of array.
3654 (or): Correctly include bits past the end of this bit set.
3657 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3659 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3660 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3662 1999-02-04 Andrew Haley <aph@cygnus.com>
3664 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3665 '/' in signatures to '.'
3666 (Class::getName): Likewise,
3667 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3669 * java/lang/natFirstThread.cc (run): Change '/' in main's
3672 1999-02-03 Andrew Haley <aph@cygnus.com>
3674 * configure.host: -ffloat-store added when compiling libjava on
3675 x86. fdlibm apparently relies on this.
3677 * java/lang/ThreadGroup.java (add): throw an exception if the
3678 ThreadGroup has been destroyed.
3680 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3683 1999-01-27 Tom Tromey <tromey@cygnus.com>
3685 * java/lang/StringBuffer.java (StringBuffer): Handle null
3688 1999-01-21 Tom Tromey <tromey@cygnus.com>
3690 * java/lang/natFirstThread.cc (run): Don't require main to be
3693 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3695 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3697 1999-01-20 Tom Tromey <tromey@cygnus.com>
3699 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3703 (unintern): Likewise.
3704 (_Jv_NewStringUtf8Const): Likewise.
3706 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3707 Character.isLetter, to see if character is self-quoting. Also,
3708 correctly handle quoted characters.
3709 (parse): Fixed typo. Also now throws ParseException.
3711 1999-01-15 Tom Tromey <tromey@cygnus.com>
3713 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3715 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3716 _Jv_SyncInfo has `init' member.
3718 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3721 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3722 IllegalMonitorStateException if unlock fails.
3724 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3726 (_Jv_NewObjectArray): Likewise.
3728 1999-01-14 Tom Tromey <tromey@cygnus.com>
3730 * java/lang/Character.java (isJavaIdentifierPart): Allow
3731 LETTER_NUMBER characters.
3733 * chartables.pl (process_char): Fixed error messages.
3735 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3736 * chartables.pl: Updated comments. Changed detection of non-digit
3737 numeric values (no longer miss \u00b2 and friends).
3739 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3740 currency symbols and connector punctuation.
3741 (isIdentifierIgnorable): Make 7f-9f ignorable.
3743 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3744 (_Jv_NewPrimArray): Likewise.
3745 (SIZE_T_MAX): New define.
3747 * java/lang/ClassLoader.java (system): Now private and final.
3749 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3752 * configure: Rebuilt.
3753 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3755 * exception.cc: Include gansidecl.h.
3757 1999-01-14 Andrew Haley <aph@cygnus.com>
3759 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3760 corrected: they didn't treat -0.0 and NaNs correctly.
3762 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3764 * nogc.cc: Use calloc to zero out memory.
3766 1999-01-11 Tom Tromey <tromey@cygnus.com>
3768 * java/lang/natClass.cc (isInstance): Return false if this class
3769 is primitive, not if class of `obj' is primitive.
3770 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3772 * java/io/SequenceInputStream.java (close): Handle case where `in'
3775 * java/text/DateFormat.java (format): New method.
3777 * mauve-libjava: Omit java.text.DateFormat.
3779 1999-01-08 Tom Tromey <tromey@cygnus.com>
3781 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3783 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3785 (_Jv_CondNotifyAll): Likewise.
3787 * configure: Rebuilt.
3788 * configure.in: Change --enable-source-compilation logic to work
3791 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3793 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3794 and RUNTESTFLAGS from AM_MAKEFLAGS.
3795 * configure.in: AM_RUNTESTFLAGS added.
3796 * configure.host: AM_RUNTESTFLAGS added.
3797 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3798 * configure: rebuilt.
3799 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3801 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3802 argv[] made conditional because embedded targets may not have
3804 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3805 explanatory comments added in call to super.
3807 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3808 exception thrown in the test harness itself added.
3809 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3811 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3813 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3815 1999-01-06 Tom Tromey <tromey@cygnus.com>
3817 * java/io/natFile.cc (get_entry): New function.
3818 (performList): Use get_entry.
3819 * include/config.h.in: Rebuilt.
3820 * acconfig.h (HAVE_READDIR_R): New define.
3821 * configure: Rebuilt.
3822 * configure.in: Look for readdir_r.
3824 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3826 * java/util/natDate.cc: Added copyright header.
3828 1999-01-05 Tom Tromey <tromey@cygnus.com>
3830 * include/config.h.in: Rebuilt.
3831 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3832 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3833 * configure: Rebuilt.
3834 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3835 unlink, and realpath.
3836 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3837 (stat): Conditionalize on HAVE_STAT.
3839 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3840 (performMkdir): Conditionalize on HAVE_MKDIR.
3841 (performRenameTo): Conditionalize on HAVE_RENAME.
3842 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3844 * include/config.h.in: Rebuilt.
3845 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3846 * configure: Rebuilt.
3847 * configure.in: Check for gmtime_r and localtime_r. For cross
3848 builds, assume they exist.
3850 * mauve-libjava: Include java.text.DateFormatSymbols again.
3851 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3852 from setAmPmStrings.
3854 * mauve-libjava: Omit java.text.DateFormatSymbols.
3856 1999-01-04 Tom Tromey <tromey@cygnus.com>
3858 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3860 * java/io/LineNumberReader.java (read): Decrement `count' in
3863 * java/io/BufferedWriter.java (write): Correctly determine when
3864 incoming data would overrun buffer. Flush buffer if write causes
3867 * java/io/BufferedOutputStream.java (write): Increment `count'
3868 after copying data into buffer.
3870 * java/io/FilterOutputStream.java (close): Call flush first.
3872 * java/io/PipedReader.java (read): If read causes `out' to catch
3873 up with `in', then set `in' to -1.
3875 * java/io/LineNumberInputStream.java (read): If no bytes read,
3876 return -1. If no bytes requested, return 0.
3878 * java/lang/StringBuffer.java (insert): If `str' is null, use
3881 1998-12-30 Anthony Green <green@cygnus.com>
3884 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3886 1998-12-23 Tom Tromey <tromey@cygnus.com>
3888 * java/io/PushbackInputStream.java (read): `off' already includes
3891 1998-12-17 Tom Tromey <tromey@cygnus.com>
3893 * Makefile.in: Rebuilt.
3894 * Makefile.am (GCJ_canadian): Include target_alias.
3896 * java/lang/natFirstThread.cc (run): Require main's class to be
3899 1998-12-16 Tom Tromey <tromey@cygnus.com>
3901 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3903 * java/util/ResourceBundle.java (getBundle): Throw
3904 NullPointerException if locale argument is null.
3906 * java/lang/natClass.cc (forName): Throw NullPointerException if
3908 Include NullPointerException.h.
3910 1998-12-14 Tom Tromey <tromey@cygnus.com>
3912 * java/lang/Character.java (Character): Implement Comparable.
3913 (compareTo): New methods.
3915 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3916 correct country and language codes.
3917 (UK, US): New constants.
3918 (setDefault): Language codes are lower-case.
3920 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3921 (getDeclaredConstructors): Likewise.
3922 (getDeclaredField): Likewise.
3923 (getDeclaredFields): Likewise.
3924 (getDeclaredMethod): Likewise.
3925 (getDeclaredMethods): Likewise.
3926 (getField): Likewise.
3927 (getFields): Likewise.
3928 (getMethod): Likewise.
3929 (getMethods): Likewise.
3930 * java/lang/Class.java: Declare new methods.
3931 * java/lang/Class.h: Declare new methods.
3933 * java/lang/natString.cc: Removed `#pragma implementation'.
3934 * include/cni.h (_Jv_GetStringChars): New function.
3935 * Makefile.in: Rebuilt.
3936 * Makefile.am (java/lang/String.h): Don't generate definition for
3939 * java/lang/natString.cc: Added `#pragma implementation'.
3941 * Makefile.in: Rebuilt.
3942 * Makefile.am (libjava.zip): Put build directory first in class
3943 path to avoid bug in compiler.
3945 1998-12-14 Anthony Green <green@cygnus.com>
3947 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3949 * include/javaprims.h: Add EventObject, ListResourceBundle and
3952 1998-12-13 Anthony Green <green@cygnus.com>
3954 * mauve-libjava: Run the ResourceBundle tests.
3956 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3959 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3961 * configure.in, configure: Make --enable-gcj-classes and
3962 --enable-source-compilation the default. (Nervously...) Yeah!
3963 Based on a patch from Tom Tromey.
3965 1998-12-13 Tom Tromey <tromey@cygnus.com>
3967 * java/util/EventObject.java: New file.
3968 * java/util/EventListener.java: New file.
3970 * include/javaprims.h: Updated class declarations.
3971 * Makefile.in: Rebuilt.
3972 * Makefile.am (nat_headers): Added Constructor.h.
3973 (java/lang/String.h): Don't inline String::length().
3974 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3975 * java/lang/Class.java (initializeClass, hackRunInitializers,
3976 hackTrampoline): No need to mark `final'.
3977 (getConstructor, getConstructors): Declare.
3978 * java/lang/reflect/Field.java (equals): New method.
3979 * java/lang/natClass.cc (getConstructor): New method.
3980 (getConstructors): Likewise.
3981 Include Method.h, Field.h, Constructor.h.
3982 * java/lang/reflect/Constructor.java: New file.
3983 * java/lang/reflect/Method.java (toString): No space before open
3985 (equals): Simplified.
3987 1998-12-13 Anthony Green <green@cygnus.com>
3989 * java/util/ResourceBundle.java: New file.
3990 * java/util/ListResourceBundle.java: New file.
3992 1998-12-12 Tom Tromey <tromey@cygnus.com>
3994 * java/lang/System.java (in, out, err): Now buffered streams by
3997 * include/javaprims.h: Updated class declarations.
3998 * Makefile.in: Rebuilt.
3999 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4000 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4002 (nat_files): Added natMethod.o.
4003 * java/lang/reflect/natMethod.cc: New file.
4004 * java/lang/reflect/Field.java (Field): Now extends
4006 * java/lang/reflect/AccessibleObject.java: New file.
4007 * java/lang/reflect/InvocationTargetException.java: New file.
4009 1998-12-11 Tom Tromey <tromey@cygnus.com>
4011 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4012 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4013 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4015 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4017 1998-12-09 Tom Tromey <tromey@cygnus.com>
4019 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4022 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4023 character is already titlecase.
4025 * java/lang/Character.java (isJavaLetter): Follow spec.
4026 (isJavaLetterOrDigit): Likewise.
4028 * java/util/GregorianCalendar.java (gregorianCutover): Append
4031 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4033 1998-12-08 Tom Tromey <tromey@cygnus.com>
4035 * java/lang/reflect/Modifier.java (toString): Replace second
4036 `static' with `synchronized'.
4038 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4039 * java/lang/Object.h (Object::hack12_6): Declare.
4040 * java/lang/Object.java (hack12_6): New function.
4042 1998-12-07 Tom Tromey <tromey@cygnus.com>
4044 * include/java-array.h (__JArray::clone): Removed decl.
4045 * prims.cc (__JArray::clone): Removed.
4046 * java/lang/natObject.cc (clone): Incorporate code to clone an
4049 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4050 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4051 Correctly use dtable_method_count.
4053 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4055 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4058 1998-12-06 Anthony Green <green@cygnus.com>
4060 * mauve-libjava: Don't test ResourceBundle.
4062 1998-12-04 Tom Tromey <tromey@cygnus.com>
4064 More JDK 1.2 spec fixes:
4065 * java/util/Date.java (millis): Now private.
4066 * java/text/DateFormat.java (DateFormat): Constructor now
4068 * java/lang/Void.java (Void): New private constructor.
4069 * java/lang/System.java (System): New private constructor.
4070 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4072 (currentClassLoader): New method.
4073 (currentLoadedClass): New method.
4074 * java/lang/Math.java (Math): New private constructor.
4075 * java/lang/Compiler.java (Compiler): New private constructor.
4076 * java/lang/Class.java (Class): New private constructor.
4077 * java/lang/Double.java (toString): Removed access specifier from
4078 two-argument `toString' method.
4080 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4082 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4083 causes it to be flushed from an fp register (where it may be
4084 longer than double precision) to a double in memory. This is
4085 essential to ensure correct rounding behaviour.
4087 1998-12-04 Tom Tromey <tromey@cygnus.com>
4089 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4092 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4093 explaining apparent divergence from JDK 1.2.
4095 1998-12-04 Per Bothner <bothner@cygnus.com>
4097 * include/no-threads.h: Remove unused parameter names.
4098 This silences a bunch of warnings.
4100 1998-12-04 Tom Tromey <tromey@cygnus.com>
4102 * include/config.h.in: Rebuilt.
4103 * acconfig.h (HAVE_CTIME_R): New symbol.
4105 1998-12-03 Tom Tromey <tromey@cygnus.com>
4107 * mauve-libjava: Added many more categories to reject.
4109 Changes to follow JDK1.2 spec:
4110 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4111 setErr, setIn, setOut): No need to be `final'.
4112 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4113 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4114 * java/lang/Object.java (wait): `nanos' argument is an int.
4115 * java/lang/VirtualMachineError.java: Class is abstract.
4116 * java/lang/ThreadDeath.java: Made constructors public.
4117 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4120 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4122 * java/text/DateFormatSymbols.java (getAmPmStrings,
4123 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4125 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4127 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4128 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4129 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4132 * java/lang/IllegalThreadStateException.java
4133 (IllegalThreadStateException): Changed extending class to match spec.
4135 * java/lang/NumberFormatException.java
4136 (java/lang/NumberFormatException): Changed extending class to match
4139 * java/util/Observer.java (Observer): Changed sig to match JCL.
4141 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4143 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4144 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4145 signature to match JDK 1.1 and 1.2.
4147 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4149 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4150 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4151 * Makefile.in, configure: Rebuilt.
4153 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4156 1998-12-02 Tom Tromey <tromey@cygnus.com>
4158 * mauve-libjava: New file.
4160 The remaining `-W -Wall' fixes:
4161 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4163 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4165 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4167 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4169 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4171 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4173 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4175 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4177 * java/lang/mprec.c (Balloc): Removed unused variable.
4178 (mult): Added parentheses per gcc suggestion.
4179 (pow5mult): Likewise.
4184 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4185 suggestion. Added cast to `int' to avoid signed/unsigned
4187 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4189 (IsAssignableFrom): Likewise.
4190 (_Jv_JNI_GetObjectField): Likewise.
4191 (_Jv_JNI_GetByteField): Likewise.
4192 (_Jv_JNI_GetShortField): Likewise.
4193 (_Jv_JNI_GetIntField): Likewise.
4194 (_Jv_JNI_GetLongField): Likewise.
4195 (_Jv_JNI_GetStringLength): Likewise.
4196 (_Jv_JNI_ToReflectedField): Likewise.
4197 (_Jv_JNI_FromReflectedField): Likewise.
4198 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4200 * Makefile.in: Rebuilt.
4201 * Makefile.am (AM_CFLAGS): Define conditionally.
4202 (WARNINGS): New macro.
4203 (AM_CXXFLAGS): Include WARNINGS.
4204 * configure: Rebuilt.
4205 * configure.in (USING_GCC): New conditional.
4207 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4209 * java/lang/Character.java: Changed classification constants to
4210 type `byte' to match JDK 1.2 docs.
4212 1998-12-01 Tom Tromey <tromey@cygnus.com>
4214 Some fixes to be `-W -Wall' clean:
4215 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4216 (_Jv_MarkArray): Likewise.
4217 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4218 (to_upper_title): Likewise.
4219 (isTitleCase): Likewise.
4220 (toTitleCase): Likewise.
4221 (getNumericValue): Likewise.
4222 (isLowerCase): Likewise.
4223 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4224 (avoids compiler warning).
4225 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4227 (getDeclaringClass): Likewise.
4228 (_Jv_LookupInterfaceMethod): Likewise.
4229 (_Jv_NewClass): Removed name of unused parameter.
4230 * exception.cc (_Jv_type_matcher): Removed unused variable.
4231 (_Jv_setup_eh_info): Removed name of unused parameter.
4232 * prims.cc (_Jv_NewArray): Always return a value.
4233 (_Jv_FindClassFromSignature): Likewise.
4234 * include/java-field.h (getNameUtf8Const): Removed name of unused
4236 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4238 (_Jv_ThreadSetPriority): Likewise.
4240 * java/lang/natString.cc (hashChars): Now static.
4242 * java/lang/FirstThread.java (FirstThread): Now final.
4244 * java/io/File.java (performMkdir, performRenameTo): Now private.
4246 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4247 if no time function defined.
4249 * configure: Rebuilt.
4250 * configure.in: Look for ctime_r, ctime.
4251 * java/util/Date.java (toString): Now native.
4252 * java/util/natDate.cc (toString): Rewrote.
4254 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4256 * Add LDFLAGS line to allow TX39 test cases to link when cross
4259 1998-11-23 Anthony Green <green@cygnus.com>
4261 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4262 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4263 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4264 include/java-array.h, include/java-assert.h, include/java-field.h,
4265 include/javaprims.h, include/jni.h, include/jvm.h,
4266 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4267 include/quick-threads.h, java/io/BufferedInputStream.java,
4268 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4269 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4270 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4271 java/io/CharArrayWriter.java,
4272 java/io/CharConversionException.java, java/io/DataInput.java,
4273 java/io/DataInputStream.java, java/io/DataOutput.java,
4274 java/io/DataOutputStream.java, java/io/EOFException.java,
4275 java/io/File.java, java/io/FileDescriptor.java,
4276 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4277 java/io/FileOutputStream.java, java/io/FileReader.java,
4278 java/io/FileWriter.java, java/io/FilenameFilter.java,
4279 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4280 java/io/FilterReader.java, java/io/FilterWriter.java,
4281 java/io/IOException.java, java/io/InputStream.java,
4282 java/io/InputStreamReader.java,
4283 java/io/InterruptedIOException.java,
4284 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4285 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4286 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4287 java/io/PipedReader.java, java/io/PipedWriter.java,
4288 java/io/PrintStream.java, java/io/PrintWriter.java,
4289 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4290 java/io/RandomAccessFile.java, java/io/Reader.java,
4291 java/io/SequenceInputStream.java, java/io/Serializable.java,
4292 java/io/StreamTokenizer.java,
4293 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4294 java/io/StringWriter.java, java/io/SyncFailedException.java,
4295 java/io/UTFDataFormatException.java,
4296 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4297 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4298 java/io/natFileDescriptorPosix.cc,
4299 java/lang/AbstractMethodError.java,
4300 java/lang/ArithmeticException.java,
4301 java/lang/ArrayIndexOutOfBoundsException.java,
4302 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4303 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4304 java/lang/Class.java, java/lang/ClassCastException.java,
4305 java/lang/ClassCircularityError.java,
4306 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4307 java/lang/ClassNotFoundException.java,
4308 java/lang/CloneNotSupportedException.java,
4309 java/lang/Cloneable.java, java/lang/Comparable.java,
4310 java/lang/Compiler.java, java/lang/Double.java,
4311 java/lang/Error.java, java/lang/Exception.java,
4312 java/lang/ExceptionInInitializerError.java,
4313 java/lang/FirstThread.java, java/lang/Float.java,
4314 java/lang/IllegalAccessError.java,
4315 java/lang/IllegalAccessException.java,
4316 java/lang/IllegalArgumentException.java,
4317 java/lang/IllegalMonitorStateException.java,
4318 java/lang/IllegalStateException.java,
4319 java/lang/IllegalThreadStateException.java,
4320 java/lang/IncompatibleClassChangeError.java,
4321 java/lang/IndexOutOfBoundsException.java,
4322 java/lang/InstantiationError.java,
4323 java/lang/InstantiationException.java, java/lang/Integer.java,
4324 java/lang/InternalError.java, java/lang/InterruptedException.java,
4325 java/lang/LinkageError.java, java/lang/Long.java,
4326 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4327 java/lang/NoClassDefFoundError.java,
4328 java/lang/NoSuchFieldError.java,
4329 java/lang/NoSuchFieldException.java,
4330 java/lang/NoSuchMethodError.java,
4331 java/lang/NoSuchMethodException.java,
4332 java/lang/NullPointerException.java, java/lang/Number.java,
4333 java/lang/NumberFormatException.java, java/lang/Object.h,
4334 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4335 java/lang/Process.java, java/lang/Runnable.java,
4336 java/lang/Runtime.java, java/lang/RuntimeException.java,
4337 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4338 java/lang/Short.java, java/lang/StackOverflowError.java,
4339 java/lang/String.java, java/lang/StringBuffer.java,
4340 java/lang/StringIndexOutOfBoundsException.java,
4341 java/lang/System.java, java/lang/Thread.java,
4342 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4343 java/lang/Throwable.java, java/lang/UnknownError.java,
4344 java/lang/UnsatisfiedLinkError.java,
4345 java/lang/UnsupportedOperationException.java,
4346 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4347 java/lang/Void.java, java/lang/natCharacter.cc,
4348 java/lang/natClass.cc, java/lang/natDouble.cc,
4349 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4350 java/lang/natMath.cc, java/lang/natObject.cc,
4351 java/lang/natRuntime.cc, java/lang/natString.cc,
4352 java/lang/natSystem.cc, java/lang/natThread.cc,
4353 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4354 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4355 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4356 java/text/FieldPosition.java, java/text/Format.java,
4357 java/text/NumberFormat.java, java/text/ParseException.java,
4358 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4359 java/util/BitSet.java, java/util/Calendar.java,
4360 java/util/ConcurrentModificationException.java,
4361 java/util/Date.java, java/util/Dictionary.java,
4362 java/util/EmptyStackException.java, java/util/Enumeration.java,
4363 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4364 java/util/Locale.java, java/util/MissingResourceException.java,
4365 java/util/NoSuchElementException.java, java/util/Observable.java,
4366 java/util/Observer.java, java/util/Properties.java,
4367 java/util/Random.java, java/util/SimpleTimeZone.java,
4368 java/util/Stack.java, java/util/StringTokenizer.java,
4369 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4370 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4373 * exception.cc: Include eh-common.h instead of duplicating
4376 1998-11-23 Tom Tromey <tromey@cygnus.com>
4378 * configure.host: Don't add `-O2' to libjava_flags. Only add
4379 `-Os' to libjava_flags once.
4381 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4383 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4384 * Makefile.in: likewise
4385 * acconfig.h: add ECOS conditional for configure.h
4386 * config.h.in: likewise
4387 * configure: add test for --with-ecos
4388 * configure.in: likewise
4389 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4390 rename call to avoid name clash.
4391 * java/lang/natSystem.cc: add eCos clock support.
4392 * java/util/natGregorianCalendar.cc: add eCos support.
4394 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4396 * Makefile.am, Makefile.in, configure.host: tx39 build option
4399 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4401 * java/io/BufferedReader.java: Added more comments for clarity.
4402 (mark): Used more mnemonic name for local var extraBuffSpace.
4404 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4405 confusion with private method of same name in superclass.
4406 (skipRedundantLF): Set fields in special case to avoid infinite
4407 recursion. Check if markPos has been invalidated in special case.
4408 (readLine): Rewritten to use readLine method of superclass.
4409 (skip): Incorporated code from lineEnd.
4411 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4413 * java/io/BufferedReader.java (readLine): New method.
4414 (lineEnd): new private method.
4415 (mark): Track special case for readLine of getting '\r' at the
4422 * java/io/InputStreamReader.java (read): Return number chars skipped
4423 rather than requested.
4425 * java/lang/StringBuffer.java (append): Update count and differentiate
4426 between field and local variable.
4428 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4429 seconds. Deal with military style time.
4430 (parse): Consistently treat all timezones in minutes until final
4431 calculation. Flag as non-local timezone. Return value in milliseconds.
4432 (setTime): Adjust for year offset from 1900.
4433 (UTC): Adjust for year offset from 1900.
4435 1998-11-17 Tom Tromey <tromey@cygnus.com>
4437 * configure: Rebuilt.
4438 * configure.in: Switch on host, not target.
4440 * Makefile.in: Rebuilt.
4441 * Makefile.am (GCJ_no): New macro.
4442 (GCJ): Use @CANADIAN@.
4443 (GCJH_no): New macro
4444 (GCJH_canadian): New macro.
4445 (GCJH): Use @CANADIAN@.
4446 (ZIP_no): New macro.
4447 (ZIP_canadian): New macro.
4448 (ZIP): Use @CANADIAN@.
4449 * aclocal.m4, configure: Rebuilt.
4450 * configure.in (CANADIAN): Compute and subst.
4452 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4454 * java/io/FileDescriptor.java (finalize): Only close file
4455 descriptor if valid.
4457 1998-11-17 Tom Tromey <tromey@cygnus.com>
4459 * prims.cc (_Jv_InitRuntime): Removed.
4461 1998-11-16 Tom Tromey <tromey@cygnus.com>
4463 * java/io/FileOutputStream.java (close): Only close file
4464 descriptor if valid.
4465 (finalize): New method.
4467 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4468 (_Jv_NewPrimArray): Likewise.
4469 * boehm.cc (_Jv_RegisterFinalizer): Use
4470 GC_REGISTER_FINALIZER_NO_ORDER.
4471 (GC_GENERIC_MALLOC): New define.
4472 (_Jv_AllocObj): Use it.
4473 (_Jv_AllocArray): Likewise.
4474 (_Jv_AllocBytes): Likewise.
4475 (_Jv_MarkObj): Just return if vtbl not set.
4476 (_Jv_MarkArray): Likewise.
4477 (MAYBE_MARK): New macro; use everywhere.
4478 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4480 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4482 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4483 to a jlong before calculation to prevent overflow.
4485 1998-11-16 Tom Tromey <tromey@cygnus.com>
4487 * Makefile.in: Rebuilt.
4488 * Makefile.am (nat_headers): Fixed typo.
4490 1998-11-15 Tom Tromey <tromey@cygnus.com>
4492 * java/lang/Class.h (Class::getName): Removed definition.
4493 * Makefile.in: Rebuilt.
4494 * Makefile.am (nat_headers): Added InstantiationException.h,
4495 NoSuchMethodException.h.
4496 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4497 (init_name): New global.
4498 (hackRunInitializers): Use clinit_name.
4499 Include InstantiationException.h, NoSuchMethodException.h.
4500 (newInstance): Do some error checking (but not all). Call
4502 (forName): Throw exception if class not found.
4503 (getName): New method.
4504 (forName): Transform class name from external format to internal
4505 format before lookup.
4507 1998-11-15 Anthony Green <green@cygnus.com>
4509 * java/lang/Class.h (Class::forName): Method is static.
4511 * java/lang/natClass.cc (newInstance): Add simple implementation.
4514 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4516 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4517 int), for compatibility with jc1.
4519 1998-11-14 Tom Tromey <tromey@cygnus.com>
4521 * include/config.h.in: Rebuilt.
4522 * acconfig.h (LINUX_THREADS): New define.
4523 * configure: Rebuilt.
4524 * configure.in: Define LINUX_THREADS if using POSIX threads on
4525 Linux. Look for pthread_mutexattr_setkind_np function.
4526 * posix-threads.cc (throw_cleanup): New function.
4527 (really_start): Push cleanup function.
4528 (_Jv_ThreadCancel): New function.
4529 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4530 (_Jv_ThreadInitData): Set `exception' field in new structure.
4531 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4533 (_Jv_ThreadWait): New function.
4534 (_Jv_InitThreads): Initialize daemon globals.
4535 (FLAG_DAEMON): New macro.
4536 (really_start): Notify daemon_cond when non-daemon thread exits.
4537 Include <java/lang/System.h>.
4538 (struct starter): `object' field now a thread.
4539 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4540 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4541 (_Jv_ThreadWait): Removed definition.
4542 (_Jv_Thread_t): Added `exception' field.
4543 (_Jv_ThreadCancel): Removed definition.
4545 1998-11-13 Tom Tromey <tromey@cygnus.com>
4547 * Makefile.in: Rebuilt.
4548 * Makefile.am (libjava.zip): Compute javac before changing
4551 * Makefile.in: Rebuilt.
4552 * Makefile.am (libjava.zip): Include directory entries.
4554 * Makefile.in: Rebuilt.
4555 * Makefile.am (expanded): New macro.
4558 1998-11-12 Tom Tromey <tromey@cygnus.com>
4560 * prims.cc (clone): New function.
4561 * include/java-array.h (__JArray::clone): Removed definition.
4563 * java/lang/natObject.cc (clone): Don't assert that class is not
4564 an array; array's `clone' method just calls this one.
4566 * Makefile.in: Rebuilt.
4567 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4568 Now creates zip file. Changed all users.
4570 (data_DATA): New macro.
4572 1998-11-11 Tom Tromey <tromey@cygnus.com>
4574 * configure: Rebuilt.
4575 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4577 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4579 * java/io/InputStream.java (reset): Add msg to thrown exception.
4581 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4583 * java/io/LineNumberInputStream.java: Rewritten.
4585 * java/io/StringBufferInputStream.java: Removed extraneous import.
4587 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4589 * java/io/StringBufferInputStream.java: Rewritten.
4591 * java/util/Date.java (parseMonth): Optimize.
4592 (parseDayOfWeek): Created.
4593 (parse): Optimize to use parseDayOfWeek.
4595 1998-11-11 Tom Tromey <tromey@cygnus.com>
4597 * java/lang/StringBuffer.java (append): Handle case where STR is
4600 * include/javaprims.h: Regenerated class declarations.
4602 * configure: Rebuilt.
4603 * configure.in: Added --enable-gcj-classes,
4604 --enable-single-compilation, --enable-source-compilation flags.
4605 * Makefile.in: Rebuilt.
4606 * Makefile.am (java_io_files): New macro.
4607 (java_lang_files): Likewise.
4608 (java_text_files): Likewise.
4609 (java_util_files): Likewise.
4610 (java_files): Use new macros.
4611 (java-io.o): New target.
4612 (java-lang.o): Likewise.
4613 (java-text.o): Likewise.
4614 (java-util.o): Likewise.
4615 (src_io_files): New macro.
4616 (src_lang_files): Likewise.
4617 (src_text_files): Likewise.
4618 (src_util_files): Likewise.
4619 (class_io_files): New macro.
4620 (class_lang_files): Likewise.
4621 (class_text_files): Likewise.
4622 (class_util_files): Likewise.
4623 (class_files): Use new macros.
4624 (javao_files): Define conditionally.
4625 (.java.o): New target.
4626 ($(javao_files)): New target.
4628 (GCJH): Added $(EXEEXT).
4629 (CLASSPATH_ENV): Removed.
4630 (GCJCOMPILE): New macro.
4632 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4634 * java/util/Date.java (parse): Written from scratch.
4636 1998-11-11 Tom Tromey <tromey@cygnus.com>
4638 * java/lang/Throwable.java (toString): Correct sense of test for
4639 determining when to include detail message in result.
4641 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4644 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4646 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4648 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4649 (_Jv_RegisterClass): Use it.
4650 * include/jvm.h (_Jv_RegisterClasses): Declare.
4651 * java/lang/natObject.cc (init): Removed.
4652 (sync_init): Never call _Jv_InitializeSyncMutex.
4653 (_Jv_InitializeSyncMutex): Don't set `init'.
4654 * prims.cc (JvRunMain): Don't run init functions.
4656 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4658 * java/lang/natClass.cc (initializeClass): Set state before
4659 resolving constants.
4661 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4662 (STATE_RESOLVED): New macro.
4663 (initializeClass): Call resolveConstants.
4664 (hackRunInitializers): Don't call resolveConstants.
4665 (_Jv_FindArrayClass): Move short-circuit return for primitive
4666 element types earlier in function.
4668 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4670 * prims.cc (no_memory): New global.
4671 (_Jv_makeUtf8Const): Throw no_memory.
4672 (_Jv_AllocObject): Likewise.
4673 (_Jv_NewObjectArray): Likewise.
4674 (_Jv_NewPrimArray): Likewise.
4675 (JvRunMain): Initialize no_memory.
4677 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4679 * java/io/FileInputStream.java: Corrected date comment.
4680 * java/io/SequenceInputStream.java: Rewritten.
4682 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4684 * java/lang/FirstThread.java (die): New method.
4685 * java/lang/natFirstThread.cc (die): Removed.
4687 (run): Use `DIE', not `die'.
4689 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4691 * java/io/CharArrayReader.java (read): Move check into synchronized
4692 block to prevent a close while in progress.
4695 * java/io/PushbackReader.java (read): Ditto.
4698 * java/io/StringReader.java (mark): Ditto.
4703 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4705 * java/io/PipedInputStream.java: Updated status.
4706 (connect): Added code to prevent infinite recursion and to
4707 differentiate exception causes.
4708 (read): Added code to differentiate exception causes.
4709 (receive): Made exception pass string with the cause.
4711 * java/io/PipedOutputStream.java: Updated status.
4712 (connect): Added code to call connect at the other end of the pipe.
4714 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4716 * java/io/PipedInputStream.java (connect): Throw exception if
4717 already connected to the same output stream.
4718 (read): Do bounds checking first.
4720 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4722 * java/io/PipedInputStream.java: Added private boolean outClosed.
4723 (available): Removed check if output stream is open.
4724 (close): Mark the buffer as empty so available returns 0.
4725 (read): Check if the output stream was closed and then return EOF
4726 when the buffer is empty.
4727 (receive): Mark the output stream as closed when passed a -1.
4729 * java/io/PipedOutputStream.java (close): Notify the input stream
4730 that there's no more data coming.
4731 (connect): Added a FIXME comment to note more coordination needed
4732 with PipedInputStream.
4733 (flush): Added a FIXME comment to mark what this method might do
4736 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4738 * java/io/PipedInputStream.java: Rewritten.
4740 1998-10-30 Tom Tromey <tromey@cygnus.com>
4742 * java/lang/Throwable.java: Rewrote from scratch.
4744 * java/lang/Class.h (Class): Don't mention newMultiArray.
4745 * prims.cc (newMultiArray): Removed.
4746 (_Jv_NewMultiArray): Removed.
4747 (newArray): Removed.
4748 (new_multi_array): New function.
4749 (_Jv_NewMultiArray): Rewrote from scratch.
4751 * include/javaprims.h: Regenerated class declarations.
4752 * classes.pl (scan): Don't declare PrimClass.
4753 * include/cni.h (JvPrimClass): Use new names for classes.
4754 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4755 added _Jv_PrimClass.
4756 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4757 (_Jv_initPrimClass): Removed.
4758 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4759 (_Jv_AllocObject): Added comment.
4760 (_Jv_NewObjectArray): Likewise.
4761 (_Jv_NewPrimArray): Likewise.
4763 1998-10-29 Tom Tromey <tromey@cygnus.com>
4765 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4766 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4768 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4770 * java/lang/natObject.cc (init): New global.
4771 (sync_init): Call _Jv_InitializeSyncMutex if required.
4773 * Makefile.in: Rebuilt.
4774 * Makefile.am (nat_headers): Added ClassLoader.h.
4775 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4776 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4777 internalAddClass, lookupArray no longer friends.
4778 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4779 _Jv_FindArrayClass now friends.
4780 * java/lang/natClass.cc (HASH_LEN): New macro.
4781 (HASH_UTF): Likewise.
4782 (loaded_classes): New global.
4783 (_Jv_FindClass): New function.
4784 (ClassClass): New define.
4785 (_Jv_FindClassInCache): New function.
4786 (_Jv_RegisterClass): Likewise.
4787 (_Jv_NewClass): Likewise.
4789 (ObjectClass): New define.
4790 (CloneableClass): New define.
4791 * prims.cc (_Jv_FindClass): Removed.
4792 (simpleLookupClass): Removed.
4793 (insertClass): Removed.
4794 (CLASSHASHSZ): Removed.
4795 (classPool): Removed.
4796 (_Jv_RegisterClass): Removed.
4797 (internalAddClass): Removed.
4798 (ClassClass): Removed.
4799 (RuntimeClass): Removed.
4800 (lookupArray): Removed.
4801 (CloneableClass): Removed.
4802 (CLASSMAXSIG): Removed.
4803 Rearranged file to group related functions together.
4804 (_Jv_IsInstanceOf): Moved to natClass.cc.
4805 (abort_final): Removed.
4806 Removed some unused includes.
4807 (classFromSig): Removed.
4808 (_Jv_FindClassFromSignature): New function.
4809 (_Jv_initPrimClass): Renamed.
4810 (getClass): Removed.
4812 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4814 * java/io/FileDescriptor.java (finalize): Throws IOException
4815 instead of Throwable.
4817 * java/io/FileInputStream.java: Rewritten.
4819 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4820 at the end of a comment.
4822 1998-10-29 Tom Tromey <tromey@cygnus.com>
4824 * include/javaprims.h: Regenerated class declarations.
4825 * classes.pl (scan): Don't special-case ClassLoader.
4827 * prims.cc (processClass): Removed.
4828 (_Jv_InitClass): Removed.
4829 Removed all CSTATE_ macros.
4830 (resolveConstants): Removed.
4832 (_Jv_NewMultiArray): Cleaned up.
4833 * Makefile.in: Rebuilt.
4834 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4835 * java/lang/Class.h (Class): Declare new methods. processClass no
4837 * java/lang/Class.java (hackTrampoline): New method.
4838 (initializeClass): Declare.
4839 (hackRunInitializers): Declare.
4840 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4841 (initializeClass): New method.
4842 (hackRunInitializers): New method.
4843 (init_name, void_signature): Moved from prims.cc.
4844 (_Jv_InitClass): New function.
4845 (isAssignableFrom): Don't call processClass.
4846 (STATE_NOTHING): New macro.
4847 (resolveConstants): New function.
4849 (ErrorClass): New define.
4851 * java/lang/Class.java (getClassLoader): Declare.
4852 * java/lang/ClassLoader.java: Rewrote from scratch.
4854 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4855 AbstractMethodError.h, IllegalAccessError.h,
4856 NoClassDefFoundError.h.
4857 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4858 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4859 longer static. Changed return type.
4860 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4861 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4862 * prims.cc (findMethodLocal): Removed.
4863 (processClass): Use _Jv_GetMethodLocal.
4865 1998-10-28 Tom Tromey <tromey@cygnus.com>
4867 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4868 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4870 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4871 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4873 * include/jni.h: Added copyright header.
4874 * include/javaprims.h: Added copyright header.
4875 * include/java-field.h: Added copyright header.
4876 * include/java-array.h: Added copyright header.
4877 * include/cni.h: Added copyright header.
4879 * include/javaprims.h: Regenerated class declarations using
4880 classes.pl; now they are complete.
4881 * classes.pl: New file.
4883 * java/lang/natMath.cc: Include <config.h>.
4884 * java/lang/reflect/natField.cc: Include <config.h>.
4885 * java/util/NativeUtil.java: Removed.
4886 * Makefile.in: Rebuilt.
4887 * Makefile.am (nat_headers): Added Math.h.
4888 * java/lang/Math.h: Removed.
4889 * java/util/natGregorianCalendar.cc: Added copyright header.
4891 * java/lang/natFloat.cc: Added copyright header.
4892 * java/lang/Byte.java: Added copyright header.
4893 * java/lang/Void.java: Added copyright header.
4894 * java/lang/Short.java: Added copyright header.
4896 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4898 * include/javaprims.h (java::io): Added bunch of missing classes.
4900 * java/io/DataInputStream.java (readLine): Added a special case
4901 for handling BufferedInputStream data to reduce the likelihood
4902 of a pushback error.
4903 (skipBytes): Added code to handle negative number of skip bytes.
4905 * java/io/StreamTokenizer.java: Rewritten.
4907 1998-10-28 Tom Tromey <tromey@cygnus.com>
4909 * java/util/natGregorianCalendar.cc (computeFields): Call
4910 getRawOffset as a method.
4912 * include/javaprims.h (java::io): Added FilterOutputStream.
4913 * Makefile.in: Rebuilt.
4914 * Makefile.am (nat_headers): Added PrintStream.h,
4915 FilterOutputStream.h.
4916 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4918 (die): New function.
4919 (run): Die if `main' not found, is not public, or is not static.
4921 * boehm.cc (_Jv_MarkObj): Use new field names.
4922 * include/java-field.h (JvGetFirstInstanceField): Use new field
4924 (JvNumInstanceFields): Likewise.
4925 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4926 (getInterfaces): Likewise.
4927 * prims.cc (CLASS_CONSTANTS): Removed.
4928 (CLASS_CONST_SIZE): Likewise.
4929 (CLASS_CONST_TAG): Likewise.
4930 (CLASS_CONST_DATA): Likewise.
4931 (CLASS_CONST_UTF8): Likewise.
4932 (WORD2UTF): Likewise.
4933 (CLASS_CLASS): Likewise.
4934 (CLASS_PRIM_SIG): Likewise.
4935 (CLASS_ARRAY_CACHE): Likewise.
4936 (HASH_CHARS): Likewise.
4937 (hashClassName): Likewise.
4938 Many changes to use new field names.
4939 * java/lang/Class.h (Class): Renamed fields to track compiler.
4941 1998-10-27 Tom Tromey <tromey@cygnus.com>
4943 * java/lang/natClass.cc: Use #pragma implementation.
4944 (getComponentType): Moved into header.
4945 (getModifiers): Likewise.
4946 (getName): Likewise.
4947 (getSuperclass): Likewise.
4948 (isArray): Likewise.
4949 (isPrimitive): Likewise.
4950 * include/jvm.h (_Jv_FindClass): Declare.
4951 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4952 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4953 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4954 * java/lang/Class.h: Rewrote from scratch.
4955 * prims.cc: Many changes to work with new Class.h.
4956 * include/java-field.h (CLASS_FIELDS): Removed.
4957 (CLASS_SFIELDS): Likewise.
4958 (CLASS_IFIELDS): Likewise.
4959 (CLASS_NFIELDS): Likewise.
4960 (CLASS_NIFIELDS): Likewise.
4961 (CLASS_NSFIELDS): Likewise.
4962 (CLASS_FSIZE): Likewise.
4963 (JvGetFirstInstanceField): Rewrote.
4964 (JvNumInstanceFields): Likewise.
4966 * java/lang/Object.h: Added copyright comment.
4968 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4970 * java/text: New package directory.
4971 * java/text/FieldPosition.java: New class.
4972 * java/text/ParsePosition.java: New class.
4973 * java/text/ParseException.java: New Exception class.
4974 * java/text/Format.java: New class.
4975 * java/text/NumberFormat.java: New (empty placeholder) class.
4976 * java/text/DateFormatSymbols.java: New class (no Locales support).
4977 * java/text/DateFormat.java: New Format class (incomplete).
4978 * java/text/SimpleDateFormat.java: New DateFormat class.
4980 * include/javaprims.h (java::test): Added new package and classes.
4981 * java/util/Calendar.java (clone): New method.
4982 * java/util/Date.java (toString): Added non-native implementation.
4983 (parse): Made public instead of synchronized.
4984 * java/util/natDate.cc (toString): Removed.
4985 * java/util/natGregorianCalendar.cc (computeFields):
4986 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4988 1998-10-27 Tom Tromey <tromey@cygnus.com>
4990 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4992 * prims.cc (lookupArray): Added explanatory comment.
4993 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4994 class. Mark the class of each object.
4995 (_Jv_MarkArray): Mark the object's class.
4997 * configure: Rebuilt.
4998 * configure.in: Create java-gc.h.
4999 * include/boehm-gc.h: New file.
5000 * include/no-gc.h: New file.
5001 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5003 * java/lang/Object.h: Include java-gc.h.
5004 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5005 friends, if defined.
5006 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5008 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5010 1998-10-26 Tom Tromey <tromey@cygnus.com>
5012 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5013 paragraph separators, not numbers.
5015 * java/io/Writer.java (write): Removed write(char) to avoid
5017 * java/util/Properties.java: Rewrote from scratch.
5018 * include/javaprims.h (java::io): Added PrintWriter,
5019 BufferedWriter, PushbackReader.
5021 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5023 * java/lang/System.java: exit() is a static method.
5025 1998-10-26 Tom Tromey <tromey@cygnus.com>
5027 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5029 (_Jv_NewStringUtf8Const): Likewise.
5030 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5031 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5033 * java/lang/Object.h (Object): Add mark_array as friend function.
5034 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5035 _Jv_AllocBytes, to ensure that header is marked.
5036 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5038 (mark_array): Push sync_info field for array.
5040 1998-10-24 Tom Tromey <tromey@cygnus.com>
5042 * java/lang/String.java (String): Updated for StringBuffer
5044 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5046 * java/lang/StringBuffer.java: Renamed fields to conform to
5047 serialization spec: buffer->value, next->count, copy->shared.
5049 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5051 * java/util/TimeZone.java: New class.
5052 * java/util/SimpleTimeZone.java: New class.
5053 * java/util/Locale.java: New file.
5054 * java/util/Calendar.java: Make almost complete.
5055 * java/util/GregorianCalendar.java
5056 * java/util/natGregorianCalendar.cc: New file.
5057 * java/util/Date.java: Re-written from scratch.
5058 * java/util/natDate.cc (setTime): Removed - no longer native.
5059 * include/javaprims.h (java::util): Add new classes.
5060 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5061 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5063 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5065 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5066 returning it as a jint.
5068 1998-10-23 Tom Tromey <tromey@cygnus.com>
5070 * prims.cc (arg_vec, main_group, main_thread): New globals.
5071 (JvRunMain): Use them.
5073 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5075 * java/io/DataInputStream.java: Rewritten.
5077 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5078 tertiary bytes with 0x80 per spec.
5080 1998-10-23 Tom Tromey <tromey@cygnus.com>
5082 * java/lang/String.java (init): Changed name of `copy' argument.
5083 * java/lang/natString.cc (init): Inverted sense of `copy'
5086 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5087 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5088 * boehm.cc (ObjectClass): New define.
5089 (ClassClass): Likewise.
5090 (mark_obj): Special-case Object and Class.
5092 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5094 * java/util/BitSet.java: Rewrote from scratch.
5096 * prims.cc (lookupArray): Removed useless cast.
5098 * java/lang/natObject.cc: Use `#pragma implementation'.
5100 * java/lang/String.java (init): Added `copy' argument.
5101 (String): Look in StringBuffer to find char array.
5102 * java/lang/natString.cc (init): Added `copy' argument.
5103 * java/lang/StringBuffer.java: Rewrote from scratch.
5105 * java/lang/Compiler.java: Rewrote from scratch.
5106 * java/lang/Throwable.java: Don't use NativeLang.
5107 * include/javaprims.h (java::lang): Don't mention NativeLang.
5108 * java/lang/Process.java: Rewrote from scratch.
5109 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5111 (currentClassLoader): Likewise.
5112 (currentLoadedClass): Likewise.
5113 * java/lang/natClass.cc (getClassLoader): Commented out.
5114 * java/lang/Class.java (getClassLoader): Commented out.
5115 * java/lang/Compiler.java: Removed.
5116 * java/lang/NativeLang.java: Removed.
5118 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5119 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5120 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5121 (_Jv_hashUtf8String): Now static.
5122 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5123 name of return type.
5125 * java/lang/Class.h (Class): Declare checkMemberAccess.
5126 * Makefile.in: Rebuilt.
5127 * Makefile.am (nat_headers): Added Member.h.
5128 * java/lang/natClass.cc: Include Member.h.
5129 (getDeclaredClasses): Call checkMemberAccess.
5130 * java/lang/Class.java (checkMemberAccess): Call
5131 SecurityManager.checkMemberAccess.
5133 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5135 * java/lang/SecurityManager.java: Rewritten.
5137 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5139 * java/applet/Applet.java, java/applet/AppletContext.java,
5140 java/applet/AppletStub.java, java/applet/AudioClip.java,
5141 java/awt/AWTError.java, java/awt/AWTException.java,
5142 java/awt/BorderLayout.java, java/awt/Button.java,
5143 java/awt/Canvas.java, java/awt/CardLayout.java,
5144 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5145 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5146 java/awt/Color.java, java/awt/Component.java,
5147 java/awt/Container.java, java/awt/Dialog.java,
5148 java/awt/Dimension.java, java/awt/Event.java,
5149 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5150 java/awt/Font.java, java/awt/FontMetrics.java,
5151 java/awt/Frame.java, java/awt/Graphics.java,
5152 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5153 java/awt/GridLayout.java, java/awt/Image.java,
5154 java/awt/Insets.java, java/awt/Label.java,
5155 java/awt/LayoutManager.java, java/awt/List.java,
5156 java/awt/MediaTracker.java, java/awt/Menu.java,
5157 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5158 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5159 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5160 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5161 java/awt/TextArea.java, java/awt/TextComponent.java,
5162 java/awt/TextField.java, java/awt/Toolkit.java,
5163 java/awt/Window.java, java/awt/image/ColorModel.java,
5164 java/awt/image/CropImageFilter.java,
5165 java/awt/image/DirectColorModel.java,
5166 java/awt/image/FilteredImageSource.java,
5167 java/awt/image/ImageConsumer.java,
5168 java/awt/image/ImageFilter.java,
5169 java/awt/image/ImageObserver.java,
5170 java/awt/image/ImageProducer.java,
5171 java/awt/image/IndexColorModel.java,
5172 java/awt/image/MemoryImageSource.java,
5173 java/awt/image/PixelGrabber.java,
5174 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5175 java/awt/peer/CanvasPeer.java,
5176 java/awt/peer/CheckboxMenuItemPeer.java,
5177 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5178 java/awt/peer/ComponentPeer.java,
5179 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5180 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5181 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5182 java/awt/peer/MenuBarPeer.java,
5183 java/awt/peer/MenuComponentPeer.java,
5184 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5185 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5186 java/awt/peer/TextAreaPeer.java,
5187 java/awt/peer/TextComponentPeer.java,
5188 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5189 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5190 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5191 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5192 java/net/MalformedURLException.java, java/net/NativeNet.java,
5193 java/net/ProtocolException.java, java/net/ServerSocket.java,
5194 java/net/Socket.java, java/net/SocketException.java,
5195 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5196 java/net/URL.java, java/net/URLConnection.java,
5197 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5198 java/net/URLStreamHandlerFactory.java,
5199 java/net/UnknownHostException.java,
5200 java/net/UnknownServiceException.java: Removed.
5202 1998-10-22 Tom Tromey <tromey@cygnus.com>
5204 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5205 finalizer is not Object.finalize.
5206 (internalAddClass): Don't set `final' member of class.
5207 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5208 other places that know about finalize() location.
5209 * java/lang/Class.h (Class): Removed `final' field.
5211 * aclocal.m4, configure: Rebuilt.
5212 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5213 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5215 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5216 * Makefile.in: Rebuilt.
5217 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5219 1998-10-21 Tom Tromey <tromey@cygnus.com>
5221 * java/lang/Object.java (finalize): Move to be first method in
5224 * configure: Rebuilt.
5225 * configure.in (GCINCS): Include contents of boehm-cflags file.
5227 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5229 * java/lang/ArrayIndexOutOfBoundsException.java
5230 (ArrayIndexOutOfBoundsException): Fixed string literal.
5231 * java/lang/StringIndexOutOfBoundsException.java
5232 (StringIndexOutOfBoundsException): Fixed string literal.
5234 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5236 * natFileDescriptorEcos.cc added.
5237 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5239 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5241 * acconfig.h: test for __int32_t and __uint32_t added.
5242 * include/config.h.in: test for __int32_t and __uint32_t added.
5243 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5244 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5245 * configure.in: test for __int32_t and __uint32_t added.
5246 * configure: test for __int32_t and __uint32_t added.
5248 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5250 * configure.in: Test for --enable ecos and link
5251 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5252 natFileDescriptorPosix.cc
5254 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5256 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5258 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5261 * java/io/CharArrayReader.java (close): Synchronize on lock
5262 object per Reader contract.
5263 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5264 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5265 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5266 Ensure that arg passed in isn't negative.
5268 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5269 constructing the superclass.
5271 * java/io/PushbackReader.java (close): Synchronize on lock
5272 object per Reader contract.
5273 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5274 (ready): Synchronize on lock obj. Throw IOException if reader
5276 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5277 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5278 Ensure that arg passed in isn't negative.
5279 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5281 * java/io/StringReader.java: Created.
5283 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5285 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5287 (read): Removed synchronized modifier to match JCL.
5288 (reset): Removed synchronized modifier to match JCL.
5289 (skip): Removed synchronized modifier to match JCL.
5291 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5293 * java/io/PushbackReader.java (PushbackReader): Made
5294 constructors public.
5296 1998-10-17 Tom Tromey <tromey@cygnus.com>
5298 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5299 constructors public.
5301 1998-10-16 Anthony Green <green@cygnus.com>
5303 * aclocal.m4, configure: Rebuilt.
5304 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5306 * configure.host: Rewrote.
5307 * Makefile.in: Rebuilt.
5308 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5309 (AM_CFLAGS): New macro.
5310 ($(c_files)): Use COMPILE macro.
5311 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5312 automake problem(s).
5314 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5316 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5318 * java/io/CharArrayReader.java: Created.
5320 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5322 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5323 size check to allow 0 per JCL.
5325 * java/io/PushbackReader.java: Created.
5327 1998-10-16 Tom Tromey <tromey@cygnus.com>
5329 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5330 <sys/time.h> includes.
5331 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5332 * include/no-threads.h: Conditionalize <unistd.h> include on
5335 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5337 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5340 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5342 * java/io/FilterReader.java: Created.
5344 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5346 * java/io/PushbackInputStream.java: Rewritten.
5348 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5349 that size passed to constructor is legal.
5350 (read): Check that args passed in are legal.
5351 (skip): Rewritten to get rid of the temporary buffer.
5352 (refill): Added marklimit check to grow the buffer.
5354 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5356 (bytesAvail): Removed.
5357 (read): Changed bytesAvail to Math.min.
5358 (skip): Changed bytesAvail to Math.min.
5360 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5361 from the throws clause.
5362 (skip): Rewritten to use a temporary buffer.
5364 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5366 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5369 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5371 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5372 to write the double one word at a time.
5374 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5376 * java/io/BufferedInputStream.java: Rewritten.
5378 1998-10-12 Tom Tromey <tromey@cygnus.com>
5380 * jni.cc: Include config.h and stddef.h.
5382 * java/lang/Class.h (_dispatchTable): Removed again.
5383 Removed all ACC_* defines again.
5385 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5387 * Makefile.am (nat_files): Add netField.o.
5388 (libjava_a_SOURCES): Add jni.cc.
5389 (java/lang/reflect/Field.h): New rule.
5390 * Makefile.in: Re-generated.
5391 * include/javaprims.h: Add some extra class and typedefs.
5392 * include/jni.h: New file.
5395 * include/java-field.h: New file.
5396 * include/jvm.h: #include <java-field.h>.
5397 * boehm.cc: #include <java-field.h>.
5398 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5399 * java/lang/reflect/Member.java: New class.
5400 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5401 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5403 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5405 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5406 testsuite/Makefile.in: Rebuilt.
5407 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5408 * configure.host: Created.
5410 1998-10-10 Tom Tromey <tromey@cygnus.com>
5412 * java/lang/natObject.cc (sync_init): Always allocate a new
5415 1998-10-09 Tom Tromey <tromey@cygnus.com>
5417 * java/io/ByteArrayInputStream.java (mark): Renamed from
5420 * java/io/FileOutputStream.java (finalize): Removed.
5421 * java/io/FileDescriptor.java (finalize): New method.
5423 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5425 * ByteArrayInputStream.java: Corrected status comment.
5427 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5429 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5431 1998-10-08 Tom Tromey <tromey@cygnus.com>
5433 * prims.cc (lookupArray): Use static array to initialize list of
5436 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5438 * prims.cc (lookupArray): Initialize the msize for new
5441 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5443 * configure: Rebuilt.
5444 * configure.in: Check for fsync and sleep.
5445 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5447 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5448 HAVE_SLEEP. Include config.h.
5450 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5451 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5454 1998-10-08 Tom Tromey <tromey@cygnus.com>
5456 * java/io/natFile.cc: Don't include SecurityManager.h.
5457 (performList): Renamed.
5458 (performMkdir): Likewise.
5459 (performRenameTo): Likewise.
5460 (performDelete): Likewise.
5462 * java/io/File.java (performDelete): Renamed from natDelete.
5463 (list): Now written in Java.
5464 (performList): New method.
5465 (performMkdir): New method.
5466 (mkdir): Now written in Java.
5467 (performRenameTo): New method.
5468 (renameTo): Now written in Java.
5470 1998-10-06 Tom Tromey <tromey@cygnus.com>
5472 * Makefile.in: Rebuilt.
5473 * Makefile.am (ETAGS_ARGS): New macro.
5474 (TAGS_DEPENDENCIES): Likewise.
5476 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5478 * Makefile.in: Rebuilt.
5479 * Makefile.am: Use -classpath option with javac.
5481 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5483 * java/io/FileOutputStream.java (finalize): Call
5486 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5488 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5490 * java/lang/mprec.c: Ditto.
5492 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5495 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5497 * java/io/InputStream.java (skip): Make local var i a long.
5499 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5501 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5502 * prims.cc (lookupArray): Use memcpy, not memmove.
5503 * include/config.h.in: Rebuilt.
5504 * acconfig.h (HAVE_MEMCPY): Added.
5505 * configure: Rebuilt.
5506 * configure.in: Check for memcpy again.
5508 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5509 String.compareTo, not ==.
5511 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5512 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5513 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5514 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5515 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5516 into new array's dtable.
5517 (_Jv_AllocObject): Use _Jv_DispatchTable.
5518 (_Jv_NewPrimArray): Likewise.
5519 (_Jv_NewObjectArray): Likewise.
5521 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5523 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5524 offending index value.
5525 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5527 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5528 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5530 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5532 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5534 * java/io/OutputStream.java (write): Use off and len parameters to
5535 output partial byte array.
5537 * java/io/BufferedReader.java, java/io/FileReader.java,
5538 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5539 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5540 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5541 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5543 * include/javaprims.h (java::lang): Added
5544 ExceptionInInitializerError, IllegalStateException,
5545 NoSuchFieldException, and UnsupportedOperationException.
5547 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5549 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5552 * include/java-array.h (__JArray): Added clone method.
5553 * prims.cc (CloneableClass): New define.
5554 (lookupArray): Initialize array class to indicate that it
5555 implements Cloneable.
5557 * java/lang/Class.h: Removed all ACC_* defines.
5558 * prims.cc: Include Modifier.h.
5559 (_Jv_LookupInterfaceMethod): Use methods in
5560 java.lang.reflect.Modifier, not ACC_ defines.
5562 * java/lang/Class.h (Class): Declare getClasses,
5563 getDeclaredClasses, getDeclaringClass, getModifiers,
5564 * java/lang/Class.java: Rewrote from scratch.
5566 * include/javaprims.h (java::lang): Added reflect and
5568 * Makefile.in: Rebuilt.
5569 * Makefile.am (nat_headers): Added Modifier.h.
5571 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5574 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5576 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5577 instead of test and abort.
5579 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5580 remove compiler warning.
5582 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5584 * java/lang/natDouble.cc: zero terminate string.
5585 * strtod.c: Set errno if no digits are found in fraction.
5587 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5589 * java/lang/reflect/Modifier.java: New file.
5591 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5592 * java/lang/VerifyError.java: Rewrote from scratch.
5593 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5594 * java/lang/UnknownError.java: Rewrote from scratch.
5595 * java/lang/StackOverflowError.java: Rewrote from scratch.
5596 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5597 * java/lang/InternalError.java: Rewrote from scratch.
5598 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5599 * java/lang/ExceptionInInitializerError.java: New file.
5600 * java/lang/Error.java: Rewrote from scratch.
5601 * java/lang/ClassFormatError.java: Rewrote from scratch.
5602 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5603 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5604 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5605 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5606 * java/lang/LinkageError.java: Rewrote from scratch.
5607 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5609 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5611 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5612 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5614 * include/cni.h (JvAllocObject): Moved from prims.cc.
5616 * prims.cc (JvAllocObject): Moved to cni.h.
5617 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5618 (finalize_name): Removed.
5620 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5622 * java/lang/Class.h (Class): Added size() method.
5623 * prims.cc (_Jv_MonitorEnter): Removed.
5624 (_Jv_MonitorExit): Removed.
5625 * java/lang/Object.h (JvSyncInfo): Removed.
5626 * Makefile.in: Rebuilt.
5627 * Makefile.am (nat_headers): Added Cloneable.h,
5628 CloneNotSupportedException.h.
5629 * java/lang/Object.h: Rewrote.
5630 * java/lang/natObject.cc: Rewrote from scratch.
5631 * java/lang/Object.java: Rewrote from scratch.
5633 * java/io/natFile.cc: Conditionally include <dirent.h>.
5634 (list): If no <dirent.h>, always return NULL.
5635 * configure: Rebuilt.
5636 * configure.in: Check for dirent.h.
5638 * prims.cc (lookupArray): Don't use sprintf.
5640 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5647 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5648 name conflict with method.
5650 * include/javaprims.h (java::util): Added HashtableEntry.
5652 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5654 * java/util/Hashtable.java: Rewritten.
5656 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5658 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5662 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5665 * posix-threads.cc (_Jv_CondWait): Now returns int.
5666 * include/javaprims.h (java::lang): Added
5667 IllegalMonitorStateException.
5668 * Makefile.in: Rebuilt.
5669 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5670 * include/no-threads.h (_Jv_CondDestroy): Removed.
5671 (_Jv_MutexDestroy): Removed.
5672 (_Jv_CondWait): Now returns int.
5673 (_Jv_CondNotify): Likewise. Added mutex argument.
5674 (_Jv_CondNotifyAll): Likewise.
5675 (_Jv_MutexLock): Always succeed.
5676 (_Jv_MutexUnlock): Likewise.
5677 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5678 (_Jv_HaveMutexDestroy): Define.
5679 (_Jv_CondNotify): Now returns int. Added mutex argument.
5680 (_Jv_CondNotifyAll): Likewise.
5681 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5682 (_Jv_MutexDestroy): Removed.
5683 (_Jv_CondWait): Now returns int.
5684 (_Jv_CondNotify): Likewise. Added mutex argument.
5685 (_Jv_CondNotifyAll): Likewise.
5686 * java/lang/natObject.cc (finalize_sync_info): New function.
5687 (init_mutex): Initialize `init' and register finalizer if
5690 (init_mutex): Use it.
5692 (notifyAll): Use it.
5694 (notify): Throw IllegalMonitorStateException on failure.
5695 (notifyAll): Likewise.
5696 (wait): Likewise. Also, throw InterruptedException if
5698 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5699 InterruptedException.h, IllegalArgumentException.h.
5700 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5702 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5703 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5704 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5705 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5706 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5707 * quick-threads.cc: Renamed all `JvPriv' functions.
5708 * prims.cc: Renamed all `JvPriv' functions.
5709 * posix-threads.cc: Renamed all `JvPriv' functions.
5710 * nogc.cc: Renamed all `JvPriv' functions.
5711 * no-threads.cc: Renamed all `JvPriv' functions.
5712 * boehm.cc: Renamed all `JvPriv' functions.
5713 * include/quick-threads.h: Renamed all `JvPriv' functions.
5714 * include/posix-threads.h: Renamed all `JvPriv' functions.
5715 * include/no-threads.h: Renamed all `JvPriv' functions.
5716 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5718 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5720 (JvPrivCondNotify): Do nothing.
5721 (JvPrivCondNotifyAll): Do nothing.
5723 * prims.cc (processClass): Handle case where state is
5726 * java/lang/natFirstThread.cc: Include <stdlib.h>
5728 * configure: Rebuilt.
5729 * configure.in: Fixed sense of --enable-libjava-debug.
5731 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5732 it can be used afterward by the assertion.
5734 * configure: Rebuilt.
5735 * configure.in: When cross-compiling, assume alloca.
5737 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5738 __builtin_alloca (autoconf docs are wrong here).
5740 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5742 (available): Use `FD_ZERO' (typo fix).
5744 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5746 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5747 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5749 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5750 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5753 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5755 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5757 * java/lang/natDouble.cc: Declare alloca safely.
5759 * configure, include/config.h.in: Rebuilt.
5760 * configure.in: Add alloca check.
5762 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5764 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5765 condition while calling notify.
5766 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5767 (interrupt): Hold mutex for interrupt condition while calling
5770 * java/lang/natString.cc (init): Allocate and try to read `count'
5771 characters, not `count - offset' characters.
5773 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5774 Correctly compute `count'.
5776 * java/lang/Boolean.java (getBoolean): Return false if property
5779 * java/lang/System.java (setProperties): Set prop_init.
5781 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5783 * java/io/PrintStream.java (println): Use line.separator, not
5785 * java/lang/System.java (out, err): Make both autoflush streams.
5786 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5788 * include/config.h.in: Rebuilt.
5789 * acconfig.h (HAVE_MEMCPY): Removed.
5790 * configure: Rebuilt.
5791 * configure.in: Never define HAVE_MEMCPY.
5793 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5795 (_Jv_AllocString): Use JvAllocObject again.
5796 * java/lang/Class.h (thread): New field.
5797 (_Jv_AllocString): No longer a friend.
5798 * prims.cc (processClass): Removed dead code. Changed to more
5799 closely follow the Java Language Specification.
5800 (processClass): Return early if already at the right state.
5802 * prims.cc (JvNewStringUTF): Removed.
5803 * include/cni.h (JvNewStringUTF): New function.
5804 (_Jv_NewStringUTF): Declare as `extern "C"'.
5805 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5807 * java/lang/natDouble.cc: Added copyright info and header
5808 comment. Include <stdlib.h>.
5809 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5810 bytes as are chars in string.
5812 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5814 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5818 * java/lang/System.java (init_properties): Now native.
5819 * java/lang/natSystem.cc (init_properties): New method.
5820 Include java/util/Properties.h.
5822 * Makefile.in: Rebuilt.
5823 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5824 OutputStreamWriter.h, ByteArrayInputStream.h,
5825 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5826 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5827 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5828 Properties.h, Hashtable.h, Dictionary.h.
5831 * include/javaprims.h (java::io): Added Reader, Writer,
5832 InputStreamReader, OutputStreamWriter,
5833 UnsupportedEncodingException, ByteArrayInputStream,
5834 ByteArrayOutputStream, EOFException, SyncFailedException,
5835 PushbackInputStream.
5836 (java::lang): Added Cloneable.
5837 (java::util): Added NoSuchElementException, VectorEnumeration,
5838 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5840 * java/io/PipedReader.java: New file.
5842 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5844 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5847 * java/io/io-defs.h: Removed.
5849 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5850 (FileInputStream): Use new constructor. Can throw IOException.
5852 * java/lang/System.java (getProperty): Don't throw
5853 NullPointerException.
5855 * java/io/RandomAccessFile.java: Rewrote from scratch.
5857 * java/io/natFileDescriptor.cc: Include EOFException.h.
5859 (length): New method.
5860 (getFilePointer): New method.
5862 (available): New method.
5863 * java/io/FileDescriptor.java (SET, CUR): New constants.
5864 (seek, length, getFilePointer, read, available): New decls.
5866 * java/io/PipedWriter.java: New file.
5867 * java/io/StringWriter.java: New file.
5868 * java/io/CharArrayWriter.java: New file.
5869 * java/io/CharConversionException.java: New file.
5870 * java/io/BufferedWriter.java: New file.
5871 * java/io/FilterWriter.java: New file.
5872 * java/io/FileWriter.java: New file.
5874 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5875 OutputStreamWriter.h, NullPointerException.h,
5876 ByteArrayInputStream.h, InputStreamReader.h.
5877 (getBytes): New method.
5878 (init): Throw NullPointerException.
5879 (init): New function.
5880 * java/lang/String.java (getBytes): Added missing decl.
5881 (getBytes): New method.
5882 (String): Added byte[]-based constructors.
5883 (copyValueOf): Wrote.
5884 (init): Declare variant which takes byte array and encoding.
5885 Import java.io.UnsupportedEncodingException.
5887 * java/io/File.java: Rewrote from scratch.
5888 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5889 * java/io/FileDescriptor.java: Rewrote from scratch.
5890 * java/io/FilenameFilter.java: Rewrote from scratch.
5892 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5894 * java/io/SyncFailedException.java: New file.
5895 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5896 * java/io/InterruptedIOException.java: Rewrote from scratch.
5897 * java/io/FileNotFoundException.java: Rewrote from scratch.
5898 * java/io/EOFException.java: Rewrote from scratch.
5899 * java/io/IOException.java: Rewrote from scratch.
5900 * java/io/PrintStream.java: Rewrote from scratch.
5901 * java/io/DataOutputStream.java: Rewrote from scratch.
5902 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5903 * java/io/FilterOutputStream.java: Rewrote from scratch.
5904 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5905 * java/io/PipedOutputStream.java: Rewrote from scratch.
5906 * java/io/FileOutputStream.java: Rewrote from scratch.
5907 * java/io/OutputStream.java: Rewrote from scratch.
5908 * java/io/DataOutput.java: Rewrote from scratch.
5910 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5912 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5914 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5916 * configure.in: Add --enable-libjava-debug
5918 * Makefile.am (nat_headers): Add java/lang/Float.h and
5921 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5923 * Makefile.in, configure, include/config.h.in: Rebuilt.
5925 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5927 * java/lang/Float.java: Rewritten
5928 * java/lang/Double.java: Rewritten
5929 * java/lang/natFloat.cc: toString() added.
5930 * java/lang/natDouble.cc: toString() added.
5931 * java/lang/natDouble.cc: doubleValueOf() added.
5932 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5933 java/lang/strtod.c: added.
5934 * ieeefp.h: __sparc added.
5935 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5937 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5939 * include/javaprims.h (java::lang): Added
5940 CloneNotSupportedException.
5942 * java/lang/Object.java (clone): No longer native. Implemented.
5943 * java/lang/natObject.cc (clone): Removed.
5945 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5947 * prims.cc: Don't make definitions `extern "C"'.
5948 (_Jv_RegisterClass): Renamed from registerClass.
5949 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5950 (_Jv_NewArray): Likewise.
5951 (_Jv_NewMultiArray): Likewise.
5952 (_Jv_CheckCast): Likewise.
5953 (_Jv_LookupInterfaceMethod): Likewise.
5954 (_Jv_CheckArrayStore): Likewise.
5955 (_Jv_RegisterClass): Likewise.
5957 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5958 * configure: Rebuilt.
5959 * configure.in: Don't check for fmod; it is provided by the fdlibm
5961 * prims.cc (fmod): Removed.
5963 * java/lang/natString.cc (charAt): Use _Jv_uint.
5964 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5965 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5966 (equalUtf8Consts): Likewise.
5967 (internalAddClass): Use _Jv_uint.
5968 (processClass): Likewise.
5969 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5970 (_Jv_uint): Renamed from uint32.
5971 (struct _Jv_Utf8Const): Changed members to use new type names.
5973 * configure: Rebuilt.
5974 * configure.in: Don't check for memcpy. Require memmove and a way
5976 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5978 (currentTimeMillis): Don't use #error.
5980 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5982 * java/lang/Math.java: static member random renamed to random_ to
5983 avoid conflict with member function of the same name.
5984 * include/javaprims.h: java.util.Random added.
5986 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5988 * include/java-chartables.h: Regenerated.
5989 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5992 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5994 * java/lang/Math.java: Rewritten.
5995 * java/lang/natMath.cc: New file.
5996 * Files added from fdlibm:
5997 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5998 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5999 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6000 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6001 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6002 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6003 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6004 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6005 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6006 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6007 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6008 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6009 java/lang/k_cos.c, java/lang/sf_ceil.c,
6010 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6011 java/lang/ieeefp.h, java/lang/fdlibm.h
6012 * Makefile.am: rules added for compiling C files from fdlibm.
6014 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6016 * chartables.pl: Minor documentation fixes.
6018 * configure: Rebuilt.
6019 * configure.in: Fixed --help output for --enable-fast-character.
6021 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6023 * configure: Rebuilt.
6024 * configure.in: Recognize --enable-fast-character.
6025 * acconfig.h (COMPACT_CHARACTER): New define.
6026 * include/config.h.in: Rebuilt.
6027 * include/java-chartables.h: New file.
6028 * Makefile.in: Rebuilt.
6029 * Makefile.am (nat_files): Added natCharacter.o.
6030 * java/lang/natCharacter.cc: New file.
6031 * chartables.pl (set_attribute): New function.
6032 (@attributes, @second_attributes): New globals.
6033 ($ROMAN_START, $ROMAN_END): Likewise.
6034 (process_char): Call set_attribute when required.
6035 (print_char): Just print hex value.
6036 (print_block): Generate C++ syntax.
6037 (print_numerics): Likewise.
6038 (print_single_map): Likewise.
6039 (print_all_block): Likewise.
6040 (print_case_table): Likewise.
6041 (print_fast_tables): New function.
6042 Generate C++ code suitable for a header file.
6043 * java/lang/Character.java (table_search): Removed.
6044 (digit_value): Now native.
6045 (getNumericValue): Likewise.
6046 (getType): Likewise.
6047 Removed all automatically-generated tables.
6048 (Tamil_Digit_One): Removed.
6049 (isSpaceChar): Now native.
6050 (isTitleCase): Likewise.
6051 (isLowerCase): Likewise.
6052 (isUpperCase): Likewise.
6053 (toLowerCase): Likewise.
6054 (toTitleCase): Likewise.
6055 (toUpperCase): Likewise.
6056 (isDefined): Fixed sense of test.
6058 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6060 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6062 (regionMatches): Likewise.
6064 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6066 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6068 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6070 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6073 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6076 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6078 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6080 * prims.cc (instanceof_class): Removed.
6081 (instanceof_array): Likewise.
6082 (instanceof): Likewise.
6083 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6084 (_Jv_CheckCast): Likewise.
6085 * java/lang/natClass.cc (isAssignableFrom): New method.
6086 * java/lang/Class.java (isAssignableFrom): Now native.
6088 * include/cni.h (JvThrow): Use `extern inline'.
6089 (JvAllocObject): Likewise.
6090 (JvInitClass): Likewise.
6092 * java/lang/natSystem.cc (arraycopy): Only check class of source
6095 * prims.cc (_Jv_CheckArrayStore): Wrote.
6096 (_Jv_MonitorEnter): Prefer `JvThrow'.
6097 Include ArrayStoreException.h.
6098 (_Jv_CheckCast): Indentation cleanup.
6100 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6102 * chartables.pl: New file.
6103 * java/lang/Character.java: Rewrote from scratch.
6105 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6107 * java/lang/ArithmeticException.java,
6108 java/lang/ArrayIndexOutOfBoundsException.java,
6109 java/lang/ArrayStoreException.java,
6110 java/lang/ClassCastException.java,
6111 java/lang/ClassNotFoundException.java,
6112 java/lang/CloneNotSupportedException.java,
6113 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6114 java/lang/IllegalArgumentException.java,
6115 java/lang/IllegalMonitorStateException.java,
6116 java/lang/IllegalThreadStateException.java,
6117 java/lang/IndexOutOfBoundsException.java,
6118 java/lang/InstantiationException.java,
6119 java/lang/InterruptedException.java,
6120 java/lang/NegativeArraySizeException.java,
6121 java/lang/NoSuchMethodException.java,
6122 java/lang/NullPointerException.java,
6123 java/lang/NumberFormatException.java,
6124 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6125 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6127 * java/lang/IllegalStateException.java,
6128 java/lang/NoSuchFieldException.java,
6129 java/lang/UnsupportedOperationException.java: Created.
6131 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6133 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6134 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6136 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6138 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6140 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6142 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6144 * Makefile.in: Rebuilt.
6146 * include/javaprims.h (java::lang): Added
6147 StringIndexOutOfBoundsException.
6149 * java/lang/String.java: Added header comment and FIXME comment for
6150 missing constructors/methods.
6151 (endsWith): Adjusted offset into string to look at just the last chars.
6152 Commented out undocumented method.
6154 * java/lang/natString.cc: Added includes for
6155 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6156 (String::init): Throw StringIndexOutOfBoundsException.
6157 (String::charAt): Throw StringIndexOutOfBoundsException.
6158 (String::substring): Throw StringIndexOutOfBoundsException.
6159 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6160 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6161 (String::compareTo): Return difference/offset between chars/strings.
6163 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6165 * java/lang/Boolean.java (TYPE): Added comment.
6167 * java/lang/Byte.java (decode): Added - commented out until dependent
6168 code for Integer is written.
6169 (compareTo): JDK 1.2 methods written.
6170 (hashCode): Added comment to note that values have been verified.
6172 * java/lang/Short.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/Comparable.java: Created - JDK 1.2 interface.
6179 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6181 * include/javaprims.h (java::lang): Added VirtualMachineError,
6183 * Makefile.in: Rebuilt.
6184 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6185 VirtualMachineError.h.
6186 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6187 (lookupArray): Likewise.
6188 (makeUtf8Const): Likewise.
6189 (_Jv_AllocObject): Likewise.
6190 (_Jv_NewObjectArray): Likewise.
6191 Include OutOfMemoryError.h.
6193 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6194 to use JvNewStringLatin1.
6196 * java/io/io-defs.h: Include java/lang/IOException.h.
6197 * Makefile.in: Rebuilt.
6198 * Makefile.am (nat_headers): Added
6199 ArrayIndexOutOfBoundsException.h,
6200 ClassFormatError.h,ClassNotFoundException.h,
6201 ClassCircularityError.h, ClassCastException.h,
6202 IncompatibleClassChangeError.h, AbstractMethodError.h,
6203 IllegalAccessError.h, LinkageError.h, Error.h,
6204 NegativeArraySizeException.h, IOException.h.
6205 * include/cni.h (SignalError): Removed declaration.
6206 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6207 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6208 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6209 (newInstance): Likewise.
6210 (forName): Likewise.
6211 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6213 (read): Use JvThrow, not SignalError.
6218 (open_read): Likewise.
6219 (open_write): Likewise.
6222 (newstr): New function.
6223 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6225 (lastModifiedUnchecked): Likewise.
6226 (lengthUnchecked): Likewise.
6227 * include/javaprims.h (sorry): Removed declaration.
6228 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6229 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6230 ClassCastException, IncompatibleClassChangeError,
6231 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6232 * prims.cc (instanceof_array): Use JvFail, not sorry.
6234 Include ArrayIndexOutOfBoundsException.h,
6235 ClassFormatError.h,ClassNotFoundException.h,
6236 ClassCircularityError.h, ClassCastException.h,
6237 IncompatibleClassChangeError.h, AbstractMethodError.h,
6238 IllegalAccessError.h, NegativeArraySizeException.h.
6239 (_Jv_ThrowBadArrayIndex): Implemented.
6240 (JvNewStringUTF): Use JvFail, not sorry.
6241 (_Jv_FindClass): Likewise.
6242 (_Jv_NewArray): Likewise.
6243 (throwException): Removed.
6244 (getClass): Use JvThrow.
6245 (processClass): Likewise.
6246 (_Jv_NewObjectArray): Likewise.
6247 (_Jv_NewMultiArray): Likewise.
6248 (_Jv_CheckCast): Likewise.
6249 (_Jv_LookupInterfaceMethod): Likewise.
6250 (SignalError): Removed.
6251 (getClass): Use _Jv_NewStringUtf8Const to create String.
6253 * java/lang/natSystem.cc (arraycopy): Throw
6254 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6256 * Makefile.in: Rebuilt.
6257 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6259 * include/java-array.h: Mention gcjh, not gjavah.
6261 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6262 (canReadUnchecked): Likewise.
6263 (canWriteUnchecked): Likewise.
6264 (isFileUnchecked): Likewise.
6265 * java/io/natFileDescriptor.cc: Don't include cni.h.
6267 * java/lang/Thread.java (run__): Declare.
6268 * java/lang/natThread.cc (run__): New method, to avoid compiler
6270 (start): Use run__, not run_.
6272 * java/io/io-defs.h: Include cni.h and jvm.h.
6274 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6276 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6277 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6278 to natString.cc (with suitable renaming, inlines etc).
6279 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6280 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6281 * java/lang/String.h: Removed - now generated using gjavah.
6282 * java/lang/String.java: Re-written from scratch. Many native methods.
6283 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6284 * java/lang/natString.cc: Many functions re-written for "compact
6285 strings" representation, or native java.lang.String methods added.
6286 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6287 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6288 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6289 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6290 * include/cni.h: Add inline method.
6291 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6292 * include/javaprims.h: Moved some stuff frm String.h.
6293 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6294 * Makefile.am (nat_header): Added Character.h and String.h.
6295 (String.h): Add new rule.
6297 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6299 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6301 * posix-threads.cc: Include cni.h, jvm.h.
6302 * quick-threads.cc: Include cni.h, jvm.h.
6303 * nogc.cc: Include cni.h, not javaprims.h.
6304 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6305 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6306 include java-assert.h.
6307 * java/lang/natSystem.cc: Include cni.h. Don't include
6309 * java/lang/natRuntime.cc: Include cni.h. Don't include
6311 * prims.cc: Rearranged #include ordering. Don't include
6312 java-array.h or java-assert.h.
6313 * boehm.cc: Include config.h, cni.h.
6314 * exception.cc: Include config.h, cni.h.
6315 * include/jvm.h: Include java-assert.h.
6316 * include/cni.h: Include java/lang/Object.h. Don't include
6317 java-threads.h or java-array.h.
6319 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6321 * java/lang/Boolean.java: Rewritten.
6323 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6325 * java/lang/natFirstThread.cc (main_func): New typedef.
6326 (run): Use main_func, not JvPrivThreadStartFunc.
6327 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6329 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6331 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6334 Can't throw Java exceptions with C++ `throw':
6335 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6336 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6337 (setPriority): Likewise.
6341 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6342 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6344 Can't catch Java exceptions from C++:
6345 * java/lang/natThread.cc (finish_): New method.
6347 * java/lang/Thread.java (run_): Rewrote in Java.
6348 (finish_): New native method.
6350 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6352 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6354 * include/javaprims.h (java::io): Added Serializable.
6356 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6358 * java/util/EmptyStackException.java,
6359 java/util/NoSuchElementException.java: Rewritten.
6361 * java/util/ConcurrentModificationException.java,
6362 java/util/MissingResourceException.java,
6363 java/util/TooManyListenersException.java: Created.
6365 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6367 * include/cni.h (JvThrow): New function.
6368 * include/javaprims.h (_Jv_Throw): Declare.
6370 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6372 * java/util/Observable.java: Rewritten.
6374 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6376 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6377 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6378 Include NullPointerException.h.
6380 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6382 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6383 assignability checks. Don't bother using memcpy.
6385 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6387 * include/quick-threads.h (JvPrivThreadWait): New function.
6388 * include/no-threads.h (JvPrivThreadWait): New function.
6389 * include/posix-threads.h (JvPrivThreadWait): New function.
6390 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6392 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6394 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6395 offsets by size of type that is being copied.
6397 * java/lang/natThread.cc (start): Don't pass `object' argument to
6399 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6400 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6402 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6403 always pass thread as object.
6404 * include/quick-threads.h, include/posix-threads.h,
6405 include/no-threads.h (JvPrivThreadStart): Removed `object'
6408 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6410 * java/util/Dictionary.java: Rewritten.
6412 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6414 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6415 (JvPrivThreadDestroy): Likewise.
6417 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6419 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6421 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6423 * java/lang/natSystem.cc: Rewrote from scratch.
6424 * java/lang/System.java: Rewrote from scratch.
6425 * java/lang/Class.h (Class): Declare isAssignableFrom.
6426 * include/javaprims.h (java::lang): Added ArrayStoreException,
6427 IndexOutOfBoundsException.
6428 * Makefile.in: Rebuilt.
6429 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6430 IndexOutOfBoundsException.h.
6431 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6432 * include/jvm.h (_Jv_HashCode): New function.
6434 * java/lang/natThread.cc (suspend): Call checkAccess.
6436 * java/lang/Thread.java (setDaemon): Call checkAccess.
6438 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6440 * java/lang/Runtime.java: Rewrote from scratch.
6441 * java/lang/natRuntime.cc: Rewrote from scratch.
6443 * nogc.cc (JvPrivGCTotalMemory): New function.
6444 (JvPrivGCFreeMemory): Likewise.
6445 (total): New global.
6446 (JvPrivAllocObj): Increment total.
6447 (JvPrivAllocArray): Likewise.
6448 (JvPrivAllocBytes): Likewise.
6449 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6450 * boehm.cc (JvPrivGCTotalMemory): New function.
6451 (sum_blocks): Likewise.
6452 (JvPrivGCFreeMemory): Likewise.
6454 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6456 * include/javaprims.h (java::lang): Added FirstThread.
6457 * java/lang/natFirstThread.cc: New file.
6458 * java/lang/FirstThread.java: New file.
6459 * prims.cc (main_signature): Removed.
6460 (main_name): Removed.
6461 #include FirstThread.h.
6462 * Makefile.in: Rebuilt.
6463 * Makefile.am (TFRIEND): Removed.
6464 (java/lang/Thread.h): Likewise.
6465 (FTFRIEND): New macro.
6466 (java/lang/FirstThread.h): New target.
6467 (nat_files): Added natFirstThread.o.
6468 (nat_headers): Added FirstThread.h.
6469 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6470 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6472 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6476 * java/lang/natThread.cc (start): Synchronize the thread.
6477 (stop): Synchronize the thread.
6479 * java/lang/ThreadDeath.java: Rewrote from scratch.
6481 * Makefile.in: Rebuilt.
6482 * Makefile.am (TGFRIEND): New macro.
6483 (java/lang/ThreadGroup.h): New target.
6484 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6486 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6488 * nogc.cc: Include config.h.
6490 * java/lang/ThreadGroup.java: Rewrote from scratch.
6492 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6494 * java/lang/Thread.java (checkAccess): Only call in to security
6495 manager if it exists.
6496 (Thread): Don't check access when creating the first thread. Add
6497 this thread to the appropriate ThreadGroup.
6499 * java/lang/natThread.cc (run_): Call uncaughtException method on
6502 * java/lang/Runnable.java: Rewrote from scratch.
6503 * java/lang/Thread.java: Updated copyright comment to correct
6506 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6508 * java/util/Random.java: Rewritten.
6510 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6512 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6513 trailing 0 in array[].
6515 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6517 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6518 and RUNTESTFLAGS from AM_MAKEFLAGS.
6519 (SUBDIRS): Conditionally include testsuite.
6520 * Makefile.in: Rebuilt.
6522 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6524 * java/lang/Object.h: Include java-assert.h.
6526 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6528 * Makefile.am: Add testsuite directory.
6529 * configure.in: Build testsuite/Makefile.
6530 * Makefile.in, configure: Rebuilt.
6532 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6534 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6535 * include/jvm.h (_Jv_StartFirstThread): Declare.
6537 * include/javaprims.h (java::lang): Added Exception,
6540 * Makefile.in: Rebuilt.
6541 * Makefile.am (nat_headers): Added NullPointerException.h,
6542 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6543 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6544 (java/lang/Thread.h): New target.
6545 (TFRIEND): New macro
6547 * include/java-assert.h (JvFail): Use 0 and not NULL.
6549 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6550 instead of assuming we are a friend of Thread.
6551 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6552 instead of assuming we are a friend of Thread.
6554 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6556 * java/lang/natThread.cc: Rewrote from scratch.
6557 * java/lang/Thread.java: Rewrote from scratch.
6558 * prims.cc (JvRunMain): Use new Thread constructor.
6559 * include/javaprims.h (java::lang): Added InterruptedException.
6560 * Makefile.in: Rebuilt.
6561 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6562 * java/lang/Thread.h: Removed.
6563 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6564 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6566 * posix-threads.cc (JvPrivThreadJoin): Removed.
6567 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6568 (really_start): Don't notify join_cond.
6569 (JvPrivThreadStart): Added `data' argument.
6570 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6571 (JvPrivThreadJoin): Likewise.
6572 Use JvFail instead of sorry.
6573 (JvPrivThreadSuspend): Removed.
6574 (JvPrivThreadResume): Removed.
6575 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6576 (JvPrivThreadJoin): Likewise.
6577 (JvPrivThreadSuspend): Use JvFail.
6578 (JvPrivThreadResume): Likewise.
6579 (JvPrivThreadSuspend): Removed.
6580 (JvPrivThreadResume): Likewise.
6581 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6582 (JvPrivThread_t): Removed join_mutex, join_cond.
6583 Use JvFail instead of sorry.
6584 (JvPrivThreadSuspend): Removed.
6585 (JvPrivThreadResume): Likewise.
6587 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6589 * java/util/Observer.java: Rewritten
6590 * java/util/Enumeration.java: Rewritten
6592 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6594 * java/util/StringTokenizer.java: Rewritten
6595 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6596 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6597 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6599 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6601 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6604 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6605 Include java-assert.h.
6606 * include/java-assert.h: New file.
6607 * prims.cc (_Jv_Abort): New function.
6608 Include java-assert.h, not assert.h.
6609 (_Jv_MonitorExit): Use JvAssert.
6610 (resolveConstants): Likewise.
6611 (processClass): Likewise.
6612 (JvRunMain): Assert that method is found.
6614 * configure: Rebuilt.
6615 * configure.in: Check for test subdir.
6616 * Makefile.in: Rebuilt.
6617 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6619 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6620 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6622 * prims.cc (resolveConstants): Removed unused variables.
6623 (processClass): Likewise.
6625 * include/quick-threads.h (JvPrivThreadCurrent): Use
6627 * quick-threads.cc (destroy_data): New function.
6628 (JvPrivInitThreads): Create key.
6629 (JvPrivThreadKey): New global.
6630 (JvPrivThreadStart): Use coop_setspecific.
6632 * include/quick-threads.h, include/posix-threads.h,
6633 include/no-threads.h, no-threads.cc, quick-threads.cc,
6634 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6636 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6638 * include/no-threads.h (JvPrivThreadInitData): Don't set
6641 * include/quick-threads.h (JvPrivCondWait): coop function now
6643 (JvPrivThreadJoin): Likewise.
6645 * java/lang/Thread.h (Thread): Updated declaration of
6647 * include/quick-threads.h, include/posix-threads.h: Updated
6648 declaration of JvPrivThreadStart.
6649 * include/no-threads.h (JvPrivThreadStart): Changed definition
6651 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6652 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6653 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6655 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6657 * quick-threads.cc (qthrow): New function.
6658 (JvPrivInitThreads): New function.
6659 (started): New global.
6660 (JvPrivThreadStart): Call coop_start if required.
6661 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6662 (JvPrivThreadDestroy): Likewise.
6663 (JvPrivInitThreads): Removed.
6664 * include/posix-threads.h (JvPrivThreadCancel): Added error
6666 * java/lang/natThread.cc (stop_): Pass exception to
6669 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6671 * include/javaprims.h (java::lang): Added
6672 IllegalArgumentException, IllegalThreadStateException, Math,
6673 NullPointerException, ThreadDeath.
6674 (java::util): Added Enumeration.
6676 * Makefile.in: Rebuilt.
6677 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6679 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6681 (threadsv): Renamed from threads to avoid clash in C++ header.
6682 (groupsv): Likewise.
6683 * include/no-threads.h (JvPrivThreadStart): Removed.
6684 * no-threads.cc (JvPrivThreadStart): New function.
6685 * java/lang/Thread.java (Thread): New constructor for internal use.
6686 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6687 (Thread): Declare constructor.
6688 * prims.cc (JvRunMain): Create the initial Thread and
6690 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6691 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6692 Removed `daemon' argument.
6694 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6695 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6697 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6699 * Makefile.in: Rebuilt.
6700 * Makefile.am (INCLUDES): Include THREADINCS.
6702 * configure: Rebuilt.
6703 * configure.in: Recognize `qt' as a threads package.
6705 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6707 * java/util/Stack.java (pop): Null out topmost node for robustness.
6709 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6711 * java/util/Stack.java: Rewritten.
6712 * java/util/Vector.java (isEmpty): Simplified expression.
6714 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6716 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6717 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6719 * include/java-array.h (JvNewObjectArray): Created inline to
6722 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6725 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6727 * java/util/Vector.java: Rewritten.
6728 * java/io/Serializable.java: Created.
6730 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6732 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6733 Infinity is 1/0, not 1/1.
6735 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6737 * configure: Rebuilt.
6738 * configure.in: Removed duplicate AC_ARG_WITH.
6740 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6742 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6744 (_Jv_InitClass): Renamed from soft_initialise_class.
6745 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6746 (_Jv_CheckCast): Renamed from soft_checkcast.
6747 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6748 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6749 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6750 * include/cni.h (JvInitClass): New function.
6751 (_Jv_InitClass): Renamed from soft_initialise_class.
6753 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6755 * configure: Rebuilt.
6756 * configure.in (CXX): Don't set.
6757 * Makefile.in: Rebuilt.
6758 * Makefile.am (AM_CXXFLAGS): New macro.
6760 * Makefile.in: Rebuilt.
6761 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6762 nogc.o): New target.
6764 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6766 (mark_array): Likewise.
6768 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6770 * java/lang/Class.h (JvMethod): Removed some unused fields.
6771 (JvField.info): Removed unused idx union variant.
6773 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6775 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6778 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6780 * configure.in, configure (CXX): Add -fvtable-thunks.
6782 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6784 * java/lang/Object.java (finalize): Move first.
6785 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6786 (Object): Re-arrange order to match Object.java.
6788 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6790 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6791 * java/lang/natString.cc (hashChars): Likewise.
6793 * prims.cc (RuntimeClass): New macro.
6794 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6796 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6798 * Makefile.in: Rebuilt.
6799 * Makefile.am (AM_MAKEFLAGS): New macro.
6801 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6803 * nogc.cc: Include <javaprims.h>.
6805 * Makefile.in: Rebuilt.
6806 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6808 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6810 * exception.cc (terminate): Removed.
6811 (unexpected): Removed.
6813 * configure: Rebuilt.
6814 * configure.in: Handle case where target subdir is ".".
6816 * configure: Rebuilt.
6817 * configure.in: Compute COMPPATH based on --with-target-subdir
6818 option. Added --with-target-subdir and --with-cross-host. Use
6819 --with-cross-host to determine when a cross compiler is in use.
6821 * Makefile.in: Rebuilt.
6822 * Makefile.am (GJAVAH): Include COMPPATH.
6823 * configure: Rebuilt.
6824 * configure.in: Subst COMPPATH.
6826 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6828 * prims.cc (lockMutex): Removed.
6829 (unlockMutex): Likewise.
6830 (processClass): Lock the class using a JvSynchronize object.
6832 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6834 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6835 (gc_free_fixed): Removed.
6836 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6837 freeing old value of strhash.
6839 * exception.cc (_Jv_type_matcher): Cast first argument to
6842 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6844 * include/java-array.h (jstringArray): New type.
6845 * java/lang/natSystem.cc (setProperty): Removed.
6846 (initProperties): Directly call JvNewStringLatin1 for arguments.
6847 * java/util/natDate.cc: Include java/util/Date.h, not
6850 * java/io/FileDescriptor.java (available): No longer static.
6851 * java/lang/natDouble.cc (Double): Removed class definition.
6852 * include/javaprims.h (java::lang::Number): Declare.
6853 (java::lang::NumberFormatException): Likewise.
6854 (java::io::FilenameFilter): Likewise.
6855 (java::lang::Character): Likewise.
6856 (java::lang::Error): Likewise.
6857 (java::lang::SecurityManager): Likewise.
6858 (java::util::Vector): Likewise.
6859 (java::io::FileNotFoundException): Likewise.
6860 (java::io::IOException): Likewise.
6861 (java::lang::NativeLang): Likewise.
6862 (java::lang::UnsatisfiedLinkError): Likewise.
6863 (java::util::StringTokenizer): Likewise.
6864 (java::io::InputStream, java::io::OutputStream): Likewise.
6865 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6866 (java::util::Hashtable): Likewise.
6867 * Makefile.in: Rebuilt.
6868 * Makefile.am (nat_headers): Added java/lang/Double.h,
6869 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6870 (MOSTLYCLEANFILES): Added nat_headers.
6871 * include/jvm.h: Moved many defines, declarations, and functions
6872 to java/lang/Class.h.
6873 (struct JvSyncInfo): Moved to java/lang/Object.h.
6874 (UTF8_GET): Moved to java/lang/String.h.
6876 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6878 * java/io/io-defs.h: Don't include java-io.h.
6879 * include/java-io.h: Removed.
6880 * include/javaprims.h: Include java::io.
6882 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6884 * include/java-io.h (File): Removed
6885 (FileDescriptor): Likewise.
6887 * java/io/io-defs.h: Include java/io/File.h and
6888 java/io/FileDescriptor.h.
6890 * Makefile.in: Rebuilt.
6891 * Makefile.am (GJAVAH): New macro.
6892 (.class.h): New rule.
6893 (SUFFIXES): Added .h.
6894 (nat_headers): New macro.
6895 ($(nat_headers)): New target.
6896 (BUILT_SOURCES): Added nat_headers.
6898 * include/java-util.h: Removed.
6900 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6902 * include/java-io.h: Changed to avoid java-lang.h.
6903 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6905 * java/lang/natSystem.cc: Include java/lang/System.h, not
6907 * java/lang/natString.cc: Include java/lang/String.h, not
6909 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6911 * java/lang/natClass.cc: Include java/lang/Class.h, not
6913 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6915 * java/lang/natObject.cc: Include java/lang/Object.h, not
6917 * exception.cc: Don't include java-lang.h.
6918 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6919 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6920 * nogc.cc: Don't include java-lang.h.
6921 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6922 * prims.cc (processClass): Don't use `init_type'; just cast to
6924 Include java/lang/Class.h and jvm.h, not java-lang.h.
6925 (JvAllocObject): Wrote single-argument version.
6926 (PrimClass): Inherit from Class.
6927 (initPrimClass): Removed.
6928 * include/java-lang.h: Removed.
6929 * include/jvm.h: Declare struct _dispatchTable.
6930 * include/cni.h: Don't declare _Jv_MonitorEnter,
6931 _Jv_MonitorExit, struct _dispatchTable.
6932 * include/javaprims.h: Moved all typedefs here, from cni.h.
6933 * java/lang/Class.h: New file.
6934 * include/java-array.h: New file.
6935 * java/lang/Object.h: New file.
6937 * prims.cc (classFromSig): Now static.
6939 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6941 * include/cni.h: Don't mention soft_new.
6942 * include/java-lang.h (Object): Don't mention soft_new. Mention
6943 _Jv_NewPrimArray, not newPrimArray.
6944 * prims.cc (soft_new): Removed.
6945 (_Jv_NewArray): Renamed from soft_newarray.
6946 (soft_anewarray): Use JvNewObjectArray.
6947 (newArray): Likewise.
6948 (newRefArray): Removed.
6949 (_Jv_NewPrimArray): Renamed from newPrimArray.
6950 (equalUtf8Consts): Now static.
6951 (soft_instanceof): Removed.
6952 * java/lang/natDouble.cc (doubleToString): Now static.
6954 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6955 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6958 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6960 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6962 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6964 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6965 (JvPrivMutexUnlock): Likewise.
6966 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6967 Return value now jint.
6968 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6971 * Makefile.in: Rebuilt.
6972 * Makefile.am: Don't allow `jV' names.
6973 (maintainer-check): Depend on libjava.a.
6974 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6976 * Makefile.in: Rebuilt.
6977 * Makefile.am (NM): New macro.
6978 (maintainer-check): New target.
6980 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6982 * configure: Rebuilt.
6983 * configure.in: Use --enable-threads, not --enable-gc. Fix
6984 documentation for --enable-threads. Changed option to work like
6985 identical option in gcc/configure.
6987 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6989 * boehm.cc (mark_array): Use JvGetArrayLength.
6991 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6993 * exception.cc: New file (mostly written by Andrew MacLeod),
6994 exception handling support.
6995 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6996 Remove -fexceptions - it is now the default.
6998 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6999 (JvAllocObject): Renamed to _Jv_AllocObject.
7000 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7001 (loadClass): Renamed to _Jv_FindClass.
7002 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7003 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7004 * include/java-lang.h (JvGetArrayLength): New CNI function.
7005 * include/jvm.h (_Jv_FindClass): Added declaration.
7007 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7009 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7011 * java/lang/natClass.cc (getName): Add implementation.
7012 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7014 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7016 * Makefile.in: Rebuilt.
7017 * Makefile.am (.class.o): Added -fexceptions.
7019 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7021 * configure: Rebuilt.
7022 * configure.in: Don't check for __nanosleep.
7023 * posix-threads.cc (nanosleep): Never define.
7025 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7027 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7030 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7032 * java/lang/natThread.cc (enumerate): Uncommented.
7033 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7034 (interrupt): Call it.
7036 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7038 * configure: Rebuilt.
7039 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7041 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7043 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7044 * include/java-lang.h (Thread): Added `interrupted_' method.
7045 * java/lang/Thread.java (interrupted_): New method.
7046 * java/lang/natThread.cc (join): Possibly throw interrupted
7047 exception after join finishes.
7048 (interrupted_): New method.
7049 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7051 (JvPrivThreadJoin): New function.
7052 (really_start): Notify all threads waiting for this thread.
7053 (struct starter): Added `data' member.
7054 (JvPrivThreadStart): Set it.
7055 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7057 (JvPrivThreadJoin): No longer inline.
7058 (JvPrivThreadInterrupt): New function.
7060 * include/no-threads.h (JvPrivThreadSleep): Removed.
7061 * posix-threads.cc (JvPrivThreadSleep): Removed.
7063 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7065 * configure: Rebuilt.
7066 * configure.in (THREADOBJS): Initialize to no-threads.o in
7068 * posix-threads.cc (key): New global.
7069 (JvPrivInitThreads): New function.
7070 (really_start): Set thread-specific data to point to object.
7071 (JvPrivThreadStart): Added `daemon' argument.
7072 (JvPrivThreadSleep): Added `data' argument.
7073 * include/posix-threads.h (JvPrivInitThreads): Removed
7075 (JvPrivThreadCurrent): New function.
7076 * include/no-threads.h (JvPrivThreadInitData): Initialize
7077 JvPrivOnlyThread. Added `thread' argument.
7078 (JvPrivThreadCurrent): New function.
7079 (JvPrivThreadStart): Added `daemon' argument.
7080 * no-threads.cc: New file.
7081 * java/lang/natThread.cc (init_data): New function.
7083 (start): Set `alive' member.
7084 (stop_): Clear `alive' member.
7085 (destroy): Likewise.
7086 (currentThread): Implemented.
7087 (start): Pass `daemon' argument to JvPrivThreadStart.
7089 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7090 (Thread): Added `init_data' method.
7091 * java/lang/Thread.java (alive, data): New instance variables.
7092 (init_data): New private method.
7093 (isAlive): No longer native.
7095 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7097 * include/java-lang.h (JvRunMain): Declare.
7098 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7099 * prims.cc (JvRunMain): New function.
7100 (main_signature, main_name): New globals.
7102 * boehm.cc (mark_array): Use `elements' function and not
7103 operator[] on jarray.
7105 * posix-threads.cc: Include <config.h>. Define nanosleep if
7108 * configure: Rebuilt.
7109 * configure.in: Check for _nanosleep.
7111 * configure: Rebuilt.
7112 * configure.in: Check for pthread_mutexattr_settype.
7114 * include/cni.h (class JvSynchronize): New class.
7115 * java/lang/Thread.java (sleep): Throws InterruptedException.
7116 (join): Throws InterruptedException.
7117 (resume): Not native.
7118 (resume_): New method.
7119 (start): Now synchronized.
7120 (stop_): New method.
7121 (Thread): Synchronize when accessing threadNumber.
7123 * java/lang/natThread.cc (throwException): New macro.
7124 (sleep): Throw InterruptedException.
7127 * include/java-lang.h (Runtime): Added interrupted().
7129 * boehm.cc (call_finalizer): Correctly initialize jobj.
7130 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7132 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7135 * configure: Rebuilt.
7136 * configure.in: Added support for --disable-threads.
7137 * include/no-threads.h: New file.
7139 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7141 * Makefile.in: Rebuilt.
7142 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7143 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7144 (libjava_a_LIBADD): Added THREADOBJS.
7145 * configure: Rebuilt.
7146 * configure.in: Added --with-threads option.
7147 * posix-threads.cc: New file.
7148 * include/posix-threads.h: New file.
7149 * include/java-lang.h (Object): Added static member sync_mutex,
7150 member sync_info, method init_mutex.
7151 (struct JvSyncInfo): New struct.
7152 Include "java-threads.h".
7153 * prims.cc (soft_monitorenter): Wrote.
7154 (soft_monitorexit): Likewise.
7155 * java/lang/natObject.cc (init_mutex): New method.
7159 (sync_mutex): Define.
7160 Include "java-threads.h".
7162 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7164 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7165 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7167 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7169 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7170 Added extern "Java" in places to tell G++ Object is a "Java" type.
7171 Other minor renaming and fixes.
7172 * include/java-io.h (FileDescriptor): Add friend class declarations.
7173 G++ no longer allows non-Java types in method parameters and results
7174 of Java classes. Converted most offending methods to friends.
7175 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7176 * java/lang/natSystem.cc (setProperty): Make friend.
7177 * java/lang/natString.cc, include/java-lang.h (String): Rename
7178 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7179 * include/java-lang.h (JArray): Remove getData and eoprator[].
7180 Add elements friend function instead.
7181 * java/lang/natSystem.cc (arraycopy): Use elements function.
7182 * java/io/natFileDescriptor.cc (read, write): Likewise.
7183 * include/java-lang.h (Object): Remove unused make method.
7184 (System::setProperty(char*,char*)): Turn into friend function.
7185 (Class): Rename newObject by JvAllocObject.
7186 * prims.cc: Update to use JvAllocObject, and elements.
7188 * java/lang/natDouble.cc: Fix double -> jdouble.
7190 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7192 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7194 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7196 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7197 * include/java-lang.h (Runtime): finalize_on_exit and
7198 runFinalizersOnExit now static.
7199 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7201 (finalize_on_exit): Now static.
7203 * boehm.cc (mark_obj): Get class using getClass() method on
7205 (_dispatchTable): Removed.
7207 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7209 * java/io/natFileDescriptor.cc (open_read): Only call open if
7211 (open_write): Likewise.
7213 * Makefile.in: Rebuilt.
7214 * Makefile.am ($(nat_files)): Depend on config.h.
7216 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7218 * prims.cc (ObjectClass): Now a macro; updated for new class name
7220 (StringClass): Likewise.
7221 (ClassClass): Likewise.
7223 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7225 * java/io/natFileDescriptor.cc (available): Do nothing unless
7226 HAVE_SELECT defined.
7227 * java/util/natDate.cc (setTime): Conditional on
7229 (toString): Conditional on HAVE_TIME.
7230 * aclocal.m4, configure: Rebuilt.
7231 * acinclude.m4: New file.
7232 * configure.in: Don't actually call AM_EXEEXT. Call
7233 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7234 --with-target-subdir option. Check for select and open
7237 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7239 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7240 (call_finalizer): Likewise.
7241 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7242 * prims.cc (newObject): Pass actual method pointer to
7243 JvPrivRegisterFinalizer.
7244 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7245 (JvPrivRegisterFinalizer): Changed interface.
7247 * Makefile.in: Rebuilt.
7248 * Makefile.am (MOSTLYCLEANFILES): New macro.
7249 (CLEANFILES): Removed javao_files.
7251 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7253 * nogc.cc: New file.
7254 * Makefile.in: Rebuilt.
7255 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7256 (EXTRA_libjava_a_SOURCES): New macro.
7257 (libjava_a_SOURCES): Removed boehm.cc.
7258 (libjava_a_DEPENDENCIES): Added GCOBJS.
7259 (libjava_a_LIBADD): Likewise.
7260 * configure: Rebuilt.
7261 * configure.in: Added code for --enable-gc=TYPE.
7263 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7265 * boehm.cc (mark_array): Don't further dereference pointer from
7268 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7269 * Makefile.in: Rebuilt.
7270 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7271 one for boehm-gc build directory.
7273 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7275 * include/java-lang.h (finalize_on_exit): New instance variable in
7276 java::lang::Runtime.
7277 (runFinalizersOnExit): New method.
7278 * java/lang/Runtime.java (finalize_on_exit): New instance
7280 (runAllFinalizers_): New private method.
7281 (runFinalizersOnExit): New method.
7282 * boehm.cc (JvPrivRunFinalizers): New function.
7283 (JvPrivRunAllFinalizers): Likewise.
7284 (JvPrivRunGC): Likewise.
7285 * java/lang/natRuntime.cc: Include "jvm.h".
7286 (gc): Call JvPrivRunGC.
7287 (runFinalization): Call JvPrivRunFinalizers.
7288 (runFinalizersOnExit): New method.
7289 (exit_): Call JvPrivRunAllFinalizers if required.
7290 * include/jvm.h: Declare JvPrivRunFinalizers,
7291 JvPrivRunAllFinalizers, JvPrivRunGC.
7293 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7295 * boehm.cc (JvPrivRegisterFinalizer): New function.
7296 (call_finalizer): Likewise.
7297 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7298 * prims.cc (finalize_name): New global.
7299 (newObject): Just call other newObject.
7300 (newObject): Register finalizer if it exists.
7302 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7304 * prims.cc (gc_malloc): Removed.
7305 (makeUtf8Const): Use JvPrivAllocBytes.
7306 (lookupArray): Likewise.
7307 (newPrimArray): Likewise.
7308 (JvNewObjectArray): Use JvPrivAllocArray.
7309 (newObject): Use JvPrivAllocObj.
7310 (newObject): Likewise.
7311 Changed Method -> JvMethod everywhere.
7312 Changed Field -> JvField everywhere.
7313 * include/java-lang.h (Object): Changed type of `fields' to
7315 (jmethodID, jfieldID): New typedefs.
7316 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7318 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7320 (METHOD_NATIVECODE): Moved from java-lang.h.
7321 (class JvField): New class.
7322 (JvGetFirstInstanceField): New function.
7323 (JvFieldIsRef): Likewise.
7324 (JvGetObjectField): Likewise.
7325 (JvNumInstanceFields): Likewise.
7327 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7329 * boehm.cc: New file.
7330 * Makefile.in: Rebuilt.
7331 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7332 (INCLUDES): Added -I options to find boehm-gc files.
7334 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7336 * configure: Rebuilt.
7337 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7339 * Makefile.in: Rebuilt.
7340 * Makefile.am (nat_files): New macro.
7341 (libjava_a_DEPENDENCIES): Use it.
7342 (libjava_a_LIBADD): Likewise.
7343 ($(nat_files)): New static pattern rule.
7344 (class_files): Run separate find to find .class files.
7345 (javao_files): Compute based on class_files.
7346 (BUILT_SOURCES): New macro.
7348 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7350 * Makefile.am (java_files): New macro.
7351 (class_files): Likewise.
7352 (javao_files): Likewise.
7353 (libjava_a_DEPENDENCIES): Include $(javao_files).
7354 (libjava_a_LIBADD): Likewise.
7355 (classes.stamp): Depend on $(java_files); only recompile changed
7358 (CLEANFILES): Don't run find; use macros. Don't mention
7360 (.class.o): New target.
7361 (compiled.stamp): Removed.
7363 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7365 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7366 LineNumberReader}>java: Newly-implemented standard classes.
7368 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7370 * Makefile.in: Rebuilt.
7371 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7373 * Makefile.in: Rebuilt.
7374 * Makefile.am (hack): New macro.
7375 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7377 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7379 * include/config.h.in: New file.
7380 * include/config.h: Removed.
7381 * acconfig.h: New file.
7382 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7383 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7384 libjava_a_LIBADD): New macros.
7385 (INCLUDES): New macro.
7388 (SUFFIXES): Removed.
7390 (libjava.a): Removed.
7392 * configure: Rebuilt.
7393 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7394 Look for headers and functions we require. Create
7397 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7399 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7400 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7401 soft_lookupinterfacemethod): New functions.
7402 (PrimClass): Actually initialize the primitive classes.
7403 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7405 * include/java-util.h: Removed java::util definition.
7406 * include/cni.h: Moved java::util here and added Properties.
7407 Added more function prototypes.
7408 * include/java-lang.h: Added mroe methods and friend declarations.
7409 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7410 * include/jvm.h (strLengthUtf8): Add declaration.
7412 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7414 * java/lang/{Byte,Short,Void}.java: New classes.
7415 * java/lang/Character.java (isJavaIdentifierStart,
7416 JavaIdentifierPart): New static methods.
7417 * java/lang/Number.java (byteValue, shortValue): New methods.
7419 * java/lang/String.java (intern, hashCode): Make native.
7420 * java/lang/natString.cc: New file. Handle the string pool.
7421 * Makefile.am: Build natString.o. Use CXXFLAGS.
7423 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7424 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7425 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7426 * java/lang/System.java (setProperty): New private method.
7427 (initProperties): Take argument, and make native.
7428 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7429 (currentTimeMillis): Make more robust.
7431 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7432 * java/io/UnsupportedEncodingException.java: New exception class.
7434 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7435 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7437 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7439 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7440 * prims.cc: Added bunch of stuff.
7441 * include/cni.h: Added various definitions.
7442 * include/java-lang.h: Added Method, various friends, some macros.
7444 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7445 * java/lang/System.java (arraycopy): Make native.
7447 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7449 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7450 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7451 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7452 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7454 * java/lang/Runtime.java: Declare methods as native instead of
7456 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7457 * java/lang/System.java: Comment out some stuff, for now.
7458 * java/lang/Thread.java: Re-write. Use native methods.
7459 * java/lang/NativeLang.java: Remove most of it.
7461 * java/util/natDate.cc: Native (C++) methods for Date.
7462 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7463 * java/util/Date.java: Complete re-write.
7465 * java/io/io-defs.h: New header file.
7466 * java/io/FileDescriptor.java: Add a bunch of private methods,
7467 mostly moved from NativeIO.java and natNativeIO.cc.
7468 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7469 * java/io/File.java: Use new code.
7470 * java/io/{FileInputStream.java.FileOutputStream.java,
7471 RandomAccessFile.java}: Use new private FileDescriptor methods.
7472 * java/io/NativeIO.java: Removed, no longer used.
7474 * java/io/StreamTokenizer.java (numericChars): Make char array.
7476 * include/*.h: Various header files used by the C++ native code.
7478 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7479 New autoconf+automake-based setup.
7480 * prims.cc: New file for Java "primitives".