1 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
3 * interpret.cc (run): Don't call println.
4 Don't include PrintStream.h.
6 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7 nameIndex. Use "jint" as type for boffset.
8 * java/lang/Class.h (struct _Jv_Method): Made accflags a
10 (Class): Likewise. Also changed type of method_count,
11 vtable_method_count, size_in_bytes, field_count,
12 static_field_count, interface_count.
13 * gcj/array.h (__JArray): Made `length' a const jsize, not an
16 2000-01-21 Tom Tromey <tromey@cygnus.com>
18 * java/lang/reflect/natConstructor.cc (newInstance): Use
20 * include/jvm.h: Declare _Jv_CallAnyMethodA.
21 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
22 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
25 (invoke): Use _Jv_CallAnyMethodA.
27 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
28 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
30 (struct _Jv_Method): Added getNextMethod method.
31 (JvNumMethods): New function.
32 (JvGetFirstMethod): Likewise.
33 * gcj/field.h (JvGetFirstStaticField): New function.
34 (JvNumStaticFields): Likewise.
35 (getNextField): Renamed from getNextInstanceField.
36 (struct _Jv_Field): New method getClass.
37 * jni.cc: Wrote many new functions.
38 * include/jni.h (JNI_TRUE): Define.
39 (JNI_FALSE): Likewise.
40 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
41 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
42 jcharArray, jfloatArray, jdoubleArray): New typedefs.
43 (jfieldID, jmethodID): Likewise.
44 (JNI_COMMIT, JNI_ABORT): New defines.
45 (JNINativeMethod): New struct.
46 (struct JNINativeInterface): Correctly declared more entries.
47 (class _Jv_JNIEnv): Added `ex' member.
48 (JNI_VERSION_1_1): New define.
49 (JNI_VERSION_1_2): Likewise.
51 * boehm.cc (_Jv_MarkObj): Use getNextField, not
54 2000-01-20 Tom Tromey <tromey@cygnus.com>
56 * resolve.cc (StringClass): Removed.
57 * defineclass.cc (StringClass): Removed.
59 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
63 2000-01-19 Tom Tromey <tromey@cygnus.com>
65 * interpret.cc (PC_REGISTER_ASM): Removed.
67 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
70 * All files: Updated copyright to reflect Cygnus purchase.
72 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
75 * configure.in: Recognize --disable-interpreter.
77 2000-01-18 Andrew Haley <aph@cygnus.com>
79 * name-finder.cc (lookup): Check for dladdr function.
80 acconfig.h (HAVE_DLADDR): Add.
81 configure.in: Check for HAVE_DLADDR
83 include/config.h.in: Rebuilt.
85 2000-01-17 Andrew Haley <aph@cygnus.com>
87 * prims.cc (_Jv_RunMain): Set the name of this executable.
89 2000-01-17 Tom Tromey <tromey@cygnus.com>
91 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
92 when backtrace can't be computed.
95 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
97 * java/lang/Runtime.java (loadLibraryInternal): Declare.
98 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
99 (_Jv_FindClassInCache): Likewise.
100 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
101 (findSystemClass): Try to load class from compiled module.
103 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
104 (loadLibrary): Likewise.
105 (lt_preloaded_symbols): Define.
106 (loadLibraryInternal): New method.
107 * include/config.h.in: Rebuilt.
108 * acconfig.h (USE_LTDL): Added.
109 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
110 (INCLUDES): Added $(INCLTDL).
111 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
112 (libgcj_la_LIBADD): Likewise.
113 * aclocal.m4, configure: Rebuilt.
114 * configure.in: Added libltdl support.
116 2000-01-15 Tom Tromey <tromey@cygnus.com>
118 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
120 2000-01-14 Andrew Haley <aph@cygnus.com>
122 * java/lang/natThrowable.cc: New file.
124 * java/lang/Throwable.java (fillInStackTrace): Make native.
125 (printStackTrace): Call native method to do this.
126 (Throwable): Call fillInStackTrace.
127 (stackTrace): New variable.
129 * include/jvm.h: Add _Jv_ThisExecutable functions.
131 * prims.cc: (_Jv_execName): New variable.
132 (catch_segv): Call fillInStackTrace.
134 (_Jv_ThisExecutable): New functions.
135 (JvRunMain): Set the name of this executable.
137 * Makefile.am: Add java/lang/natThrowable.cc.
139 * Makefile.in: Rebuilt.
141 * acconfig.h: Add HAVE_PROC_SELF_EXE.
143 * configure.in: Force link with __frame_state_for in
144 FORCELIBGCCSPEC. Add new checks for backtrace.
145 * include/config.h.in: Rebuilt.
147 * name-finder.cc: New file.
148 * include/name-finder.h: New file.
150 2000-01-16 Anthony Green <green@cygnus.com>
152 * java/lang/StringBuffer.java (StringBuffer): Don't special case
155 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
157 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
159 2000-01-13 Tom Tromey <tromey@cygnus.com>
161 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
162 not system loader, as initiating loader.
164 2000-01-11 Tom Tromey <tromey@cygnus.com>
166 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
167 HP/UX. From David Scott Urban.
169 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
171 * java/lang/natMath.cc (pow): Cast args to `double', not
174 (IEEEremainder): Likewise.
175 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
176 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
178 2000-01-09 Anthony Green <green@cygnus.com>
180 * java/lang/natString.cc (init): Test for overflow condition
181 during out of bounds check.
182 (getChars): Throw StringIndexOutOfBoundsException, not
183 ArrayIndexOutOfBoundsException.
185 (regionMatches): Obey case option during string comparison.
187 * configure.host (ligcj_interpreter): New variable. Enable
188 interpreter by default on IA-32.
189 * configure.in: Examine libgcj_interpreter.
190 * configure: Rebuilt.
192 2000-01-07 Tom Tromey <tromey@cygnus.com>
194 * mauve-libgcj: Don't disable ClassTest.
196 * java/lang/natClass.cc (getClasses): Wrote.
198 2000-01-06 Tom Tromey <tromey@cygnus.com>
200 * java/lang/natClass.cc (_getConstructors): Correctly check
201 whether method name is the init name.
202 (getMethod): Look at accflags on method in `klass', not `this'.
204 2000-01-05 Tom Tromey <tromey@cygnus.com>
206 * java/lang/natClass.cc (getMethod): Compute offset relative to
207 `klass's methods table, not `this's table.
209 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
210 In unwrapping/widening case, check whether `k' is null, not
211 whether it is primitive. Initialize `num' from `argelts', not
212 `paramelts'. Correct create and pass arguments to ffi_call.
213 Don't let presence of `this' argument affect index used to look in
215 (COPY): Set appropriate element in `values' vector.
217 * java/lang/natClass.cc: Include <gcj/method.h>.
219 * java/lang/Class.h (_getMethods): Correctly declare as private,
222 * java/lang/Class.h (_getMethods): Declare.
223 * java/lang/Class.java (_getMethods): Declare.
224 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
225 (getDeclaredClasses): Always return empty array.
226 (_getMethods): New method.
228 (getDeclaredMethod): Return `rmethod'.
229 (finit_name): New global.
230 (getDeclaredMethods): Check for finit_name.
231 (_getMethods): Likewise.
232 (getMethod): Only return public methods.
234 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
235 jboolean and select correct ffi type on that basis.
236 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
237 Constructor call always has `void' return type.
239 2000-01-04 Tom Tromey <tromey@cygnus.com>
241 * java/lang/Class.h (getSignature): Updated.
242 * java/lang/Class.java (getSignature): Updated.
243 * java/lang/natClass.cc (getSignature): Added `is_constructor'
245 (getConstructor): Ensure constructor is public.
246 (_getConstructors): Check for public-ness of constructor when
247 `declared' is false, not when it is true.
249 2000-01-04 Warren Levy <warrenl@cygnus.com>
251 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
253 (receive): Set the sender's address in the DatagramPacket.
255 2000-01-04 Tom Tromey <tromey@cygnus.com>
257 * java/lang/reflect/natConstructor.cc (newInstance): Pass
258 declaring class as return_type argument to
259 _Jv_CallNonvirtualMethodA.
260 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
261 constructor case, create object and use it as `this' argument.
262 * java/lang/Class.h (_getConstructors): Declare.
263 (_getFields): Declare.
264 * java/lang/Class.java (getConstructors): Wrote.
265 (_getConstructors): New native method.
266 (getDeclaredConstructors): Wrote.
267 (_getFields): Declare new native method.
268 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
270 (getMethod): Work correctly when class is primitive.
271 (getDeclaredMethods): Likewise. Compute offset using `method',
273 (getDeclaredMethod): Likewise.
274 (getConstructor): Wrote.
275 (ConstructorClass): New define.
276 (getDeclaredConstructor): Wrote.
277 (_getConstructors): New method.
278 (_getFields): New method.
281 * Makefile.in: Rebuilt.
282 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
284 * prims.cc: Remove `#pragma implementation'.
285 * gcj/array.h: Remove `#pragma interface'.
287 * prims.cc (_Jv_equaln): New function.
288 * java/lang/Class.java (getSignature): Declare.
289 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
290 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
292 (getSignature): New method.
293 (getDeclaredMethod): Wrote.
295 Include StringBuffer.h.
296 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
297 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
299 (getSignature): Declare.
300 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
301 (_Jv_equaln): Declare.
302 (_Jv_CallNonvirtualMethodA): Declare.
303 * Makefile.in: Rebuilt.
304 * Makefile.am (nat_source_files): Added natConstructor.cc.
305 (java/lang/reflect/Constructor.h): New target.
306 * java/lang/reflect/natConstructor.cc: New file.
307 * java/lang/reflect/Constructor.java (newInstance): Now native.
308 (declaringClass): Renamed from decl_class.
309 (offset): Renamed from index.
310 (getType): New native method.
311 (getModifiers): Now native.
312 (getParameterTypes): Call getType if required.
313 (hashCode): Include hash code from declaring class.
314 (modifiers): Removed.
315 (toString): Call getType if required.
316 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
317 * java/lang/reflect/natMethod.cc (hack_call): New method.
318 Removed `#if 0' around FFI code.
319 Include <gnu/gcj/RawData.h>.
320 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
321 IllegalArgumentException when argument object and class disagree.
322 (_Jv_GetTypesFromSignature): New function.
324 (ObjectClass): New define.
325 (_Jv_CallNonvirtualMethodA): New function.
326 * java/lang/reflect/Method.java (hack_trampoline): New method.
327 (hack_call): New native method.
329 1999-12-21 Per Bothner <per@bothner.com>
331 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
332 offset in new Method.
334 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
336 * java/lang/natObject.cc (notify): Throw message with
337 IllegalMonitorStateException.
340 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
341 (isInterrupted_): New function, which does clear interrupt_flag.
342 (interrupt): Use `isInterrupted_'.
343 * java/lang/natThread.cc (interrupt): Add comment.
344 (join): Set `prev' in joiner loop.
345 Change various calls to `isInterrupted' to use `isInterrupted_'.
346 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
347 on linux. Set result to 0 on an interrupt. Test interrupted status
348 of java Thread object directly.
349 FLAG_INTERRUPTED: removed.
350 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
351 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
352 (_Jv_InitThreads): Don't block SIGINT.
353 (_Jv_ThreadWait): Don't configure SIGINT handler.
355 1999-12-21 Tom Tromey <tromey@cygnus.com>
357 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
359 1999-12-20 Tom Tromey <tromey@cygnus.com>
361 * java/lang/reflect/Modifier.java (STRICT): New constant.
362 (isStrict): New method.
363 (toString): Added `strict'.
365 1999-12-23 Anthony Green <green@cygnus.com>
367 * configure: Rebuilt.
368 * configure.in (LIBDATASTARTSPEC): Force data_start in with
371 1999-12-19 Anthony Green <green@cygnus.com>
373 * libgcjdata.c: New file.
374 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
375 * configure: Rebuilt.
376 * configure.in (LIBDATASTARTSPEC): Force data with a known name
378 * Makefile.in: Rebuilt.
379 * Makefile.am: Build libgcjdata.a.
381 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
382 * configure: Rebuilt.
383 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
386 1999-12-17 Tom Tromey <tromey@cygnus.com>
388 * java/lang/reflect/Method.java (toString): Call getType if
389 required. Partial fix for PR libgcj/111. From Per Bothner.
391 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
393 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
395 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
396 null String constructor parameter.
397 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
398 for exception messages.
399 BooleanClass: declare.
400 (setOption): Use BooleanClass instead of Class.forName() for
402 (bind): Cast 4th parameter of setsockopt to `char *' for
403 compatibility with older Solaris headers.
404 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
405 sprintf calls for exception messages.
406 BooleanClass, IntegerClass: declare.
407 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
410 1999-12-15 Tom Tromey <tromey@cygnus.com>
412 * java/lang/natSystem.cc (init_properties): Don't set user.name or
413 user.home if NO_GETUID defined. Only set user.dir if getcwd
416 * include/config.h.in: Rebuilt.
417 * acconfig.h (NO_GETUID): New define.
418 * configure.in: Rebuilt.
419 * configure.in: Define NO_GETUID in cross case. Check for getcwd
422 1999-12-08 Tom Tromey <tromey@cygnus.com>
424 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
425 where no recursive mutexes exist. Fixes PR libgcj/117.
427 1999-12-05 Anthony Green <green@cygnus.com>
429 * include/jvm.h: Declare many functions with
430 __attribute__((__malloc__)).
431 * gcj/javaprims.h: Ditto.
433 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
435 * THANKS: Giving credit where credit is due.
437 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
439 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
441 * java/lang/natString.cc (equalsIgnoreCase): return false if
442 anotherString is null.
443 * java/lang/Boolean.java (valueOf): return FALSE if argument is
446 1999-11-30 Tom Tromey <tromey@cygnus.com>
448 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
449 mutex to initialize. Initialize `count' if required.
452 1999-11-27 Per Bothner <per@bothner.com>
454 * exception.cc: Remove prototype declarations for malloc and free.
455 These clash with recent versions of glibc, which specifies `throws ()'
456 when __cplusplus is defined. Instead, #include <stdlib.h>.
458 1999-11-24 Tom Tromey <tromey@cygnus.com>
460 * prims.cc (_Jv_NewObjectArray): Use
461 _Jv_GetArrayElementFromElementType.
462 (_Jv_NewPrimArray): Likewise.
463 * java/lang/natObject.cc (clone): Use
464 _Jv_GetArrayElementFromElementType instead of sizeof.
465 * java/lang/natSystem.cc (arraycopy): Use
466 _Jv_GetArrayElementFromElementType.
467 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
470 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
472 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
473 Exception messages. PR java.net/57.
474 (bind): set SO_REUSEADDR before bind.
475 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
476 overruns. PR java.net/57.
478 1999-11-19 Tom Tromey <tromey@cygnus.com>
480 * Makefile.am (DIVIDESPEC): Removed.
481 (EXCEPTIONSPEC): Removed.
483 1999-11-19 Andrew Haley <aph@cygnus.com>
485 * Makefile.am (JCFLAGS): Add -L$(here)
487 * Makefile.in: Rebuild.
489 1999-11-18 Tom Tromey <tromey@cygnus.com>
491 * java/lang/natDouble.cc: Include <config.h>.
493 * include/config.h.in: Rebuilt.
494 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
495 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
497 * configure: Rebuilt.
498 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
499 requested by configure.host. Don't put `-D' option into
500 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
502 * configure: Rebuilt.
503 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
506 1999-11-18 Andrew Haley <aph@cygnus.com>
508 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
509 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
511 * Makefile.in: Rebuild
512 * acconfig.h: remove SJLJ_EXCEPTIONS
513 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
514 Do not AC_DEFINE SJLJ_EXCEPTIONS.
515 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
516 * gcj/Makefile.in, include/Makefile.in: rebuild.
517 * include/config.h.in: remove SJLJ_EXCEPTIONS.
519 1999-11-18 Andrew Haley <aph@cygnus.com>
521 * gij.cc (main): Rename label to prevent conflict.
523 * exception.cc (_Jv_type_matcher): Don't check the table if we're
524 using setjmp/longjmp exceptions: there isn't one.
526 1999-11-17 Andrew Haley <aph@cygnus.com>
528 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
529 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
530 (__sjthrow): Add declaration.
531 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
535 * Makefile.in: Rebuild
536 * acconfig.h: Add SJLJ_EXCEPTIONS
537 * configure.in: Add SJLJ_EXCEPTIONS
538 * configure: Rebuild.
539 * gcj/Makefile.in: Rebuild.
540 * gcj/cni.h: Add support for sjlj-exceptions.
541 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
542 * include/Makefile.in: Rebuild.
543 * include/default-signal.h: Add support for sjlj-exceptions.
545 1999-11-18 Tom Tromey <tromey@cygnus.com>
547 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
549 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
551 (method_cache): Made larger.
553 1999-11-11 Tom Tromey <tromey@cygnus.com>
555 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
556 initializing mutex. Initialize `count' when required.
558 1999-11-07 Anthony Green <green@trip.cygnus.com>
560 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
563 1999-11-05 Tom Tromey <tromey@cygnus.com>
565 * java/lang/natThread.cc (destroy): Removed incorrect comment.
567 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
569 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
570 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
573 1999-11-05 Tom Tromey <tromey@cygnus.com>
575 * java/lang/natThread.cc (stop): Removed argument name.
577 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
578 `private'; now has default access.
579 * Makefile.in: Rebuilt.
580 * Makefile.am (java/lang/ThreadGroup.h): Removed.
582 1999-11-04 Tom Tromey <tromey@cygnus.com>
584 * java/lang/natClass.cc (method_cache_count): Removed.
585 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
586 (_Jv_AddMethodToCache): Don't loop.
588 * configure.in: Removed `qt' threads case.
589 * include/quick-threads.h: Removed.
590 * quick-threads.cc: Removed.
592 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
593 (_Jv_ThreadDestroy): Likewise.
594 * include/no-threads.h (_Jv_ThreadCancel): Removed.
595 (_Jv_ThreadDestroy): Likewise.
596 * include/posix-threads.h (struct _Jv_Thread_t): Removed
598 (_Jv_ThreadCancel): Removed decl.
599 (_Jv_ThreadDestroy): Removed.
600 * posix-threads.cc (_Jv_ThreadCancel): Removed.
601 (throw_cleanup): Removed.
602 (really_start): Don't push or pop cleanup.
603 (_Jv_ThreadInitData): Don't initialize `exception' field.
604 * java/lang/Thread.java (stop): Officially unimplemented.
605 * java/lang/natThread.cc (stop): Officially unimplemented.
607 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
609 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
612 1999-11-02 Tom Tromey <tromey@cygnus.com>
614 * boehm.cc: Don't include boehm-config.h.
616 1999-11-01 Tom Tromey <tromey@cygnus.com>
618 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
619 (sum_blocks): Removed.
620 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
622 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
624 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
626 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
627 * java/io/InputStreamReader (InputStreamReader): ditto.
629 1999-10-22 Tom Tromey <tromey@cygnus.com>
631 * Makefile.in: Rebuilt.
632 * Makefile.am (java/lang/ClassLoader.h): New target.
633 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
636 * include/java-props.h (_Jv_Compiler_Properties): Changed
638 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
639 * include/jvm.h (_Jv_GCSetInitialHeapSize,
640 _Jv_GCSetMaximumHeapSize): Declare.
641 (JvRunMain, _Jv_RunMain): Declare.
642 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
643 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
644 (_Jv_GCSetMaximumHeapSize): Likewise.
645 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
646 (_Jv_GCSetMaximumHeapSize): Likewise.
647 * prims.cc (parse_heap_size): New function.
648 (_Jv_SetInitialHeapSize): Likewise.
649 (_Jv_SetMaximumHeapSize): Likewise.
650 (_Jv_Compiler_Properties): New global.
651 * gij.cc (help): New function.
653 (heap_size): Likewise.
654 (heap_max_size): Likewise.
655 (main): Parse arguments. Set _Jv_Compiler_Properties.
656 Include <config.h>, <java-props.h>.
657 (_Jv_Compiler_Properties): Removed.
659 1999-10-18 Tom Tromey <tromey@cygnus.com>
661 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
663 (redirect): New static field.
664 * java/lang/ClassLoader.java (getSystemClassLoader): Now
666 (getVMClassLoader0): Removed.
667 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
669 (getSystemClassLoader): Implemented.
671 1999-10-16 Anthony Green <green@cygnus.com>
673 * java/lang/ClassLoader.java (getSystemResource): Use
674 getSystemClassLoader instead of ClassLoader.system.
675 (getSystemResourceAsStream): Ditto.
677 * java/lang/natClassLoader.cc (redirect): Make static and
678 remove #ifdef INTERPRETER so it is always defined.
679 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
680 returns a VMClassLoader.
682 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
683 PropertyResourceBundle if a properties file is found before a
684 ResourceBundle class.
686 1999-10-15 Tom Tromey <tromey@cygnus.com>
688 * gij.cc (main): Formatting fixes.
689 (_Jv_Compiler_Properties): Define.
690 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
692 (init_properties): Set properites from _Jv_Compiler_Properties.
693 * include/java-props.h (_Jv_Compiler_Properties,
694 _Jv_Environment_Properties): Declare.
696 * include/java-props.h: Added copyright.
698 1999-10-13 Anthony Green <green@cygnus.com>
700 * libtool-version: Catch up by incrementing current.
702 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
703 * configure, include/config.h.in: Rebuilt.
704 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
705 * configure.in: Added --disable-getenv-properties and new define
706 `DISABLE_GETENV_PROPERTIES'.
708 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
709 (next_property_key): New function.
710 (next_property_value): New function.
711 (process_gcj_properties): New function.
712 (JvRunMain): Call process_gcj_properties.
715 * java/lang/natSystem.cc (init_properties): Set properties defined
718 * include/java-props.h: New file.
720 * java/lang/natSystem.cc (init_properties): Add new properties to
721 conform with Java Product Versioning Specification.
723 1999-10-12 Tom Tromey <tromey@cygnus.com>
725 * configure: Rebuilt.
726 * configure.in: Fixed test for --disable-java-net.
728 1999-10-06 Tom Tromey <tromey@cygnus.com>
730 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
731 when building Canadian cross.
732 (NATIVE): Don't define when cross-compiling.
734 1999-10-04 Tom Tromey <tromey@cygnus.com>
736 * java/net/natPlainSocketImpl.cc: Don't include headers if
737 java.net is disabled.
739 * Makefile.in: Rebuilt.
740 * Makefile.am (ZINCS): Removed. This is defined in configure.in
741 when needed, and must be left empty when not needed.
743 1999-10-01 Anthony Green <green@cygnus.com>
745 * THANKS: Refreshed from htdocs version.
747 1999-10-01 Steve Chamberlain <sac@pobox.com>
749 * Makefile.in: Rebuilt.
750 * Makefile.am (ZINCS): Define
752 * configure: Rebuilt.
753 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
755 * java/lang/ieeefp.h: Add definitions for picoJava.
757 1999-10-01 Tom Tromey <tromey@cygnus.com>
759 * configure: Rebuilt.
760 * configure.in: Set classpath when invoking gcj. Use changequote
761 around sed invocation.
763 * java/net/natPlainSocketImpl.cc: Stub native functions if
764 DISABLE_JAVA_NET is defined.
765 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
766 typo in exception string.
767 (getTimeToLive): Likewise.
768 Stub native functions if DISABLE_JAVA_NET is defined.
769 * java/net/natInetAddress.cc: Stub native functions if
770 DISABLE_JAVA_NET is defined.
771 * configure.host: Disable java.net for mips-tx39.
772 * configure, include/config.h.in: Rebuilt.
773 * acconfig.h (DISABLE_JAVA_NET): Undefine.
774 * configure.in: Added --disable-java-net and new define
777 1999-09-30 Tom Tromey <tromey@cygnus.com>
779 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
781 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
785 1999-09-28 Tom Tromey <tromey@cygnus.com>
787 * configure: Rebuilt.
788 * configure.in (PROCESS): In POSIX case, only set if not already
790 * configure.host (PROCESS): Set in mips-tx39 case.
792 * aclocal.m4, configure: Rebuilt.
793 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
794 appropriate AC_PROG_ symbol.
796 1999-09-24 Tom Tromey <tromey@cygnus.com>
798 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
800 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
802 Fix for PR java.util/47:
803 * configure, include/config.h: Rebuilt.
804 * configure.in: Don't look for ctime or ctime_r.
805 * Makefile.in: Rebuilt.
806 * Makefile.am (nat_source_files): Don't mention natDate.cc.
807 * java/util/natDate.cc: Removed.
808 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
810 (getAvailableIDs): Rewrote.
811 (getTimeZone): Rewrote.
812 * java/util/Date.java (toGMTString): New method.
813 (toLocaleString): New method.
816 1999-09-23 Tom Tromey <tromey@cygnus.com>
818 * configure: Rebuilt.
819 * configure.in: Print message when checking to see if gcj can
820 handle -fuse-divide-subroutine.
822 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
824 * java/lang/FirstThread.java (run0): Renamed to `run'.
827 * prims.cc (main_init): New function.
828 (JvRunMain): Call it.
829 (_Jv_RunMain): Likewise.
831 (main_init): Ignore SIGPIPE. Fixes PR 51.
833 1999-09-22 Tom Tromey <tromey@cygnus.com>
835 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
837 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
839 * java/text/MessageFormat.java (MessageFormat(String)): Set the
841 * java/text/NumberFormat.java: Check that object is a Number. If
842 not, throw IllegialArgumentException.
844 1999-09-21 Tom Tromey <tromey@cygnus.com>
846 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
847 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
849 * include/posix-threads.h (_Jv_MutexDestroy): Use
851 (_Jv_MutexLock): Likewise.
852 (_Jv_MutexUnlock): Likewise.
854 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
855 previous patch; it too was incorrect.
856 * java/io/PrintStream.java (PrintStream): Likewise.
858 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
859 refer to `this' before calling superclass constructor.
860 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
861 before calling superclass constructor.
863 1999-09-20 Tom Tromey <tromey@cygnus.com>
865 * configure: Rebuilt.
866 * configure.in: Send output of `-fuse-divide-subroutine' test
867 compilation to /dev/null.
869 1999-09-14 Tom Tromey <tromey@cygnus.com>
871 * include/java-insns.h: Turned constants into an enum. Added
872 multiple-inclusion protection.
874 1999-09-10 Tom Tromey <tromey@cygnus.com>
876 * configure: Rebuilt.
877 * configure.in: Build include/Makefile.
878 * Makefile.in: Rebuilt.
879 * Makefile.am (SUBDIRS): Added gcj and include.
880 (install-data-local): New target.
881 (extra_headers): New macro.
882 * include/Makefile.in: New file.
883 * include/Makefile.am: New file.
885 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
886 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
888 * boehm.cc: Don't include java-threads.h or gcj/field.h.
889 * resolve.cc: Include config.h.
890 * defineclass.cc: Include config.h.
891 * include/java-interp.h: Don't include config.h.
892 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
895 * gcj/javaprims.h: Regenerated namespace decls.
896 * classes.pl (scan): Don't put `;' after closing brace.
898 * Makefile.in: Rebuilt.
899 * Makefile.am (INCLUDES): Added -I for top_srcdir.
900 * configure.in: Create gcj/Makefile.
901 * gcj/Makefile.in: New file.
902 * gcj/Makefile.am: New file.
903 * java/lang/Object.h: Don't include any other headers.
904 * gcj/array.h: Renamed from include/java-array.h.
905 * gcj/field.h: Renamed from include/java-field.h.
906 * gcj/method.h: Renamed from include/java-method.h.
907 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
908 Updated all files to reflect new include structure.
910 1999-09-09 Tom Tromey <tromey@cygnus.com>
912 * configure: Rebuilt.
913 * configure.in: Fixed typo; variable is THREADSPEC and not
916 1999-09-08 Tom Tromey <tromey@cygnus.com>
918 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
919 previous change and implemented a correct test in the __m_count
922 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
925 1999-09-07 Tom Tromey <tromey@cygnus.com>
927 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
928 code and don't set errno.
930 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
931 not `r'. Changed `done_sleeping' to a `bool'.
933 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
935 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
936 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
937 by another thread, rather than by the GC.
938 (_Jv_CondWait): Prevent premature thread wakeup by GC.
939 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
940 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
943 1999-09-03 Tom Tromey <tromey@cygnus.com>
945 * configure: Rebuilt.
946 * configure.in: Check for fstat function.
947 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
950 1999-09-02 Tom Tromey <tromey@cygnus.com>
952 * include/java-array.h (jobjectArrayjchar): Removed unused
955 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
956 _Jv_PrepareCompiledClass while holding class mutex.
958 1999-09-01 Tom Tromey <tromey@cygnus.com>
960 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
961 (_Jv_PthreadGetMutex): Use it.
962 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
963 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
964 (_Jv_MutexLock): Likewise.
965 (_Jv_MutexUnlock): Likewise.
966 * include/config.h.in: Rebuilt.
967 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
968 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
969 * configure: Rebuilt.
970 * libgcj.spec.in: Don't mention INTERPSPEC.
971 * configure.in (INTERPSPEC): Removed.
972 Only run pthreads-related checks when using POSIX threads. Check
973 for m_count and __m_count in mutex structure.
975 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
977 * java/lang/natClass.cc: Fixed notification of threads
978 when class initialization is complete.
980 1999-09-01 Tom Tromey <tromey@cygnus.com>
982 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
983 * resolve.cc: Removed constants defined by
984 java.lang.reflect.Modifier.
985 Include <java/lang/reflect/Modifier.h>.
986 (_Jv_ResolvePoolEntry): Use values from Modifier.
987 (_Jv_DetermineVTableIndex): Likewise.
988 (_Jv_PrepareClass): Likewise.
990 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
991 java.lang.reflect.Modifier.
992 Include <java/lang/reflect/Modifier.h>.
993 (checkExtends): Use values from Modifier.
994 (checkImplements): Likewise.
995 (handleField): Likewise.
996 (handleConstantValueAttribute): Likewise.
997 (handleFieldsEnd): Likewise.
998 (handleMethod ): Likewise.
999 (handleMethodsEnd): Likewise.
1000 (handleClassBegin): Likewise.
1001 * interpret.cc: Removed constants defined by
1002 java.lang.reflect.Modifier.
1003 (continue1): Use values from Modifier.
1004 * java/lang/natClassLoader.cc: Removed constants defined by
1005 java.lang.reflect.Modifier.
1007 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1008 JV_STATE_NOTHING, not `0'.
1009 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1011 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1012 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1014 (_Jv_PthreadGetMutex): New function.
1015 (_Jv_PthreadCheckMonitor): Use it.
1016 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1017 (_Jv_MutexLock): Update `count'.
1018 (_Jv_MutexUnlock): Likewise.
1019 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1022 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1024 * Makefile.am (.java.lo): Add rule.
1026 * Makefile.in: Rebuilt.
1028 1999-09-01 Tom Tromey <tromey@cygnus.com>
1030 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1031 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1033 (_Jv_CondNotify): Use it.
1034 (_Jv_CondNotifyAll): Likewise.
1036 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1038 1999-08-31 Tom Tromey <tromey@cygnus.com>
1040 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1043 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1045 * posix-threads.cc: Include <errno.h>.
1047 1999-08-23 Tom Tromey <tromey@cygnus.com>
1049 * boehm.cc: Undefine TRUE and FALSE.
1051 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1053 1999-08-21 Tom Tromey <tromey@cygnus.com>
1055 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1058 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1060 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1062 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1063 (HAVE_STRUCT_IP_MREQ): Added.
1064 * configure, include/config.h.in: Rebuilt.
1065 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1067 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1068 Disable if ip_mreq is not available.
1070 * configure.in: Check types ssize_t and in_addr_t.
1071 * acconfig.h: Undefine them.
1072 * configure, include/config.h.in: Rebuilt.
1074 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1075 function that detects the signature of getpwuid_r.
1076 (init_properties): Use it.
1077 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1080 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1082 * interpret.cc (continue1): Implement explicit dispatch table.
1083 insn_target: Explicit interpreter switch table.
1084 SAVE_PC: New macro, moves pc saving code into instructions that
1086 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1087 PC_REGISTER_ASM: New macro.
1088 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1089 opcode: Remove local variable.
1090 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1091 (POKEI): Use _Jv_word.
1092 (iinc): Use _Jv_word.
1093 (dupx): Change reference argument (sp) to pointer.
1096 * interpret.cc: Remove instruction timing instrumentation.
1098 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1099 comment. Don't use _Jv_ClassNameSamePackage.
1101 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1102 URLPathEntry, CacheEntry}: Removed.
1104 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1106 (.java.lo): Rule removed.
1108 * Makefile.in: Rebuilt.
1110 1999-08-19 Tom Tromey <tromey@cygnus.com>
1112 * java/lang/natThread.cc (class locker): New class.
1113 (join): Use a locker around _Jv_CondWait.
1116 1999-08-18 Tom Tromey <tromey@cygnus.com>
1118 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1119 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1121 1999-08-18 Tom Tromey <tromey@cygnus.com>
1123 * include/javaprims.h ("Java"): Regenerated namespace decls.
1125 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1127 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1128 from _Jv_InternClassStrings.
1130 * prims.cc (_Jv_RunMain): New function.
1131 (JvRunMain): Remove gij-support.
1133 * gij.cc (main): Use _Jv_RunMain.
1135 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1137 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1138 argument in temp variable.
1139 (continue1): For all op_x2y insns, use temp variable for
1140 intermediate value. Also remove some comments.
1142 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1143 (forName): Don't call _Jv_InitClass.
1145 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1147 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1149 * java/util/jar/JarInputStream.java: New file.
1151 * java/util/jar/JarEntry.java: New file.
1153 * java/util/jar/JarFile.java: New file.
1155 * java/net/URLClassLoader.java: New file.
1157 * java/net/JarURLConnection.java: New file.
1159 * gnu/gcj/protocol/jar/Handler.java: New file.
1161 * gnu/gcj/protocol/jar/Connection.java: New file.
1163 * java/security/SecureClassLoader.java: New file.
1165 * java/lang/ClassLoader.java (parent): New variable.
1166 (ClassLoader (ClassLoader)): new constructor.
1167 (findClass): New method.
1168 (loadClass): Add default 1.2 implementation.
1169 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1170 (readfully): Removed.
1172 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1173 (findSystemClass): New method.
1174 (VMClassLoader): Constructor rewritten.
1176 All other methods removed.
1178 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1179 to gnu::gcj::runtime::VMClassLoader.
1180 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1182 (VMClassLoader::findSystemClass): renamed from findBootClass.
1184 * Makefile.am: Add new files.
1185 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1187 * Makefile.in: Rebuilt.
1189 1999-08-17 Tom Tromey <tromey@cygnus.com>
1191 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1193 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1196 1999-08-16 Tom Tromey <tromey@cygnus.com>
1198 * configure: Rebuilt.
1199 * configure.in: Set DIVIDESPEC to empty string if compiler does
1200 not support -fuse-divide-subroutine.
1202 1999-08-14 Per Bothner <per@bothner.com>
1204 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1205 * java/lang/natClass.cc (initializeClass): Likewise.
1206 * java/lang/ClassLoader.java (resolveClass0): New static method.
1207 (resolveClass): Call resolveClass0.
1208 (findSystemClass): No longer static.
1210 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1212 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1214 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1216 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1219 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1221 * Makefile: Rebuilt.
1222 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1225 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1228 * configure: Rebuilt.
1229 * configure.in: Properly align --help output, fix capitalization
1231 * acinclude.m4: Likewise.
1233 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1235 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1237 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1238 (_Jv_callInterpretedMethod): Unused. Remove.
1239 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1241 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1242 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1243 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1244 * interpret.cc: use _Jv_word.
1245 * defineclass.cc: use_Jv_word.
1246 * resolve.cc: Use _Jv_word.
1247 (_Jv_ResolvePoolEntry): Return _Jv_word.
1248 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1249 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1251 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1254 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1256 * configure: Rebuilt.
1257 * configure.in (sched_yield): Try librt first, then libposix4.
1258 Add -lrt, -lposix4 to THREADSPEC.
1260 1999-08-08 Anthony Green <green@cygnus.com>
1262 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1264 1999-08-08 Anthony Green <green@cygnus.com>
1266 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1269 1999-08-08 Anthony Green <green@cygnus.com>
1273 * include/config.h.in: Rebuilt.
1274 * acconfig.h: Add INTERPRETER.
1276 * Makefile.in: Rebuilt.
1277 * Makefile.am (libffi_files): Identify the libffi object files for
1278 inclusion in libgcj.
1279 (LIBFFIINCS): Define.
1281 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1282 Dummy definition for configurations without an interpreter.
1284 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1285 java::lang::Boolean constructor.
1287 * include/java-interp.h: Always include java-cpool.h.
1289 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1290 when INTERPRETER not defined.
1292 * java/lang/Class.h (finalize): Define.
1294 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1295 IOException from File.getCanonicalPath.
1296 (getStream): Likewise.
1299 * THANKS: More thanks.
1301 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1303 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1305 (_Jv_PrepareClass): Allow non-abstract classes to
1306 have abstract subclasses.
1307 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1309 * interpret.cc (continue1/perform_invoke): Don't sign extend
1311 (continue1/lshl,lshr): Push long, not int.
1312 (continue1/ulshr): Use UINT64, not long long.
1313 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1315 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1316 * java/lang/FirstThread.java (run): Add top-level exception
1318 (run0): Renamed from run.
1320 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1322 * configure.in (--with-interpreter): Added.
1323 * include/config.h.in (INTERPRETER): Added.
1325 * java/lang/ClassLoader.java: File replaced.
1326 * java/lang/VMClassLoader.java: New file.
1327 * java/lang/natClassLoader.cc: New file.
1328 * gnu/gcj/runtime/MethodInvocation.java: New file.
1329 * gnu/gcj/util/path/SearchPath.java: New file.
1330 * gnu/gcj/util/path/PathEntry.java: New file.
1331 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1332 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1333 * gnu/gcj/util/path/URLPathEntry.java: New file.
1334 * gnu/gcj/util/path/CacheEntry.java: New file.
1335 * include/java-interp.h: New file.
1336 * include/java-cpool.h: New file.
1337 * include/java-insns.h: New file.
1338 * defineclass.cc: New file.
1339 * interpret.cc: New file.
1340 * resolve.cc: New file.
1342 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1343 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1344 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1346 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1347 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1349 (initializeClass): Use new JV_ prefixed names. Also, call
1350 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1352 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1353 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1354 JV_STATE_LINKED): New.
1355 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1356 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1357 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1358 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1359 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1360 _Jv_InterpMethodInvocation): New friends for interpreter.
1362 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1363 include/java-cpool.h and renamed with JV_ prefix.
1365 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1367 (_Jv_UnregisterClass): New decl.
1369 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1370 class loader argument.
1371 (_Jv_FindClass): Use class loader.
1373 * prims.cc (_Jv_makeUtf8Const): New function.
1374 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1375 (_Jv_NewPrimArray): Ditto.
1376 (_Jv_FindClassFromSignature): Ditto.
1377 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1378 * java/lang/reflect/natMethod.cc (getType): Ditto.
1380 * include/java-field.h (_Jv_Field::isRef): Make robust for
1381 non-resolved contexts.
1383 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1384 Also, don't mark class->next field.
1386 * java/lang/VirtualMachineError.java: Added FIXME note.
1388 * configure.in (INTERPSPEC): New spec.
1389 * libgcj.spec.in: Added INTERPSPEC.
1390 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1391 gnu/gcj/runtime/MethodInvocation.
1392 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1393 (ordinary_java_source_files): Added above mentioned java classes.
1395 * configure: Rebuilt.
1396 * Makefile.in: Rebuilt.
1398 1999-08-06 Tom Tromey <tromey@cygnus.com>
1400 * configure: Rebuilt.
1401 * configure.in: Look for sched_yield in -lrt.
1403 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1405 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1406 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1407 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1409 (toString): Print correctly when `country' is empty.
1411 1999-08-04 Per Bothner <per@bothner.com>
1413 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1415 1999-08-02 Tom Tromey <tromey@cygnus.com>
1417 * aclocal.m4, configure: Rebuilt for new libtool.
1419 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1421 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1422 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1423 * java/net/ServerSocket.java: Define ANY_IF.
1424 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1425 all network interfaces.
1426 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1427 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1429 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1431 * java/io/natFile.cc (performMkdir): Remove FIXME.
1432 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1434 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1436 * configure.in: Check for bstring.h.
1437 * configure, include/config.h.in: Rebuilt.
1438 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1439 * java/net/natPlainSocketImpl.cc: Likewise.
1441 1999-07-31 Tom Tromey <tromey@cygnus.com>
1446 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1448 * configure.in: Check for struct hostent_data and need for
1449 -D_REENTRANT for gethostbyname_r declaration.
1450 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1451 (lookup): Use hostent_data for fixed_buffer.
1452 * configure, include/config.h.in: Rebuilt.
1454 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1456 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1457 available. Don't cast memmove args to (void*).
1458 * configure.in: Do not abort if memmove is not available.
1460 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1462 * java/lang/natString.cc (substring): optimize where substring is
1464 * java/io/File.java (getName): don't return separator with file name.
1465 * java/io/natFile.cc (attr): fix overflow.
1467 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1469 * mauve-libgcj: Disable Object Serialization tests.
1471 1999-07-20 Warren Levy <warrenl@cygnus.com>
1473 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1474 Default to using PlainDatagramSocketImpl.
1475 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1477 1999-07-19 Tom Tromey <tromey@cygnus.com>
1479 * include/stamp-h.in: New file.
1481 1999-07-12 Tom Tromey <tromey@cygnus.com>
1483 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1486 1999-07-07 Andrew Haley <aph@cygnus.com>
1488 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1489 bytes to make it point after the instruction where the trap
1491 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1493 1999-07-07 Tom Tromey <tromey@cygnus.com>
1495 * mauve-libgcj: Explicitly enable formerly disabled java.text
1498 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1501 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1503 * java/net/URL.java (equals): Compare strings using String.equals.
1504 * java/net/URL.java (sameFile): Ditto.
1506 1999-07-02 Warren Levy <warrenl@cygnus.com>
1508 * configure: Rebuilt.
1509 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1510 * include/config.h.in: Rebuilt.
1511 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1512 (mcastGrp): Updated FIXME comments.
1513 (setOption): Fixed typo.
1514 (getOption):Implemented IP_MULTICAST_IF.
1516 1999-07-02 Warren Levy <warrenl@cygnus.com>
1518 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1519 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1520 (getTimeToLive): Implemented.
1521 (setOption): Implemented IP_MULTICAST_IF.
1523 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1525 * java/lang/String.java (toString): Check for this == null and throw
1526 NullPointerException.
1528 1999-07-01 Warren Levy <warrenl@cygnus.com>
1530 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1531 to count and revised comments to match.
1532 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1533 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1534 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1535 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1536 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1537 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1539 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1541 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1542 properly as count rather than outlength.
1543 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1544 output on overflow rather than buffer fill.
1545 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1546 if markPos is 0 and there is still room in the buffer.
1548 1999-07-01 Andrew Haley <aph@cygnus.com>
1550 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1551 This is a workaround for a bug in glibc's pthreads package which
1552 doesn't deliver any sigcontext information to a signal handler.
1554 1999-06-24 Tom Tromey <tromey@cygnus.com>
1556 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1557 * java/lang/fdlibm.h (HUGE): Conditionally define.
1559 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1561 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1562 * java/lang/e_log.c: Don't use __uint32_t.
1564 1999-05-27 Eric Christopher <echristo@cygnus.com>
1566 * configure: Rebuilt
1567 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1568 * acconfig.h: Rebuilt
1569 * include/config.h.in: Rebuilt
1571 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1572 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1573 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1574 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1575 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1576 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1577 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1578 and namespace collision with __uint32_t
1580 1999-06-23 Tom Tromey <tromey@cygnus.com>
1582 * java/util/zip/InflaterInputStream.java (read): Throw
1583 ZipException if inflater throws a DataFormatException.
1585 1999-06-23 Warren Levy <warrenl@cygnus.com>
1587 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1588 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1589 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1590 is not final per JDK.
1591 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1593 * java/util/zip/DataFormatException.java: Class extends Exception.
1594 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1595 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1596 * java/util/zip/ZipInputStream.java: ditto.
1597 (closeEntry): Changed method name to match JDK spec.
1599 1999-06-21 Tom Tromey <tromey@cygnus.com>
1601 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1604 * Makefile.in: Rebuilt.
1605 * Makefile.am (toolexeclibdir): Define as libdir when
1607 * configure: Rebuilt.
1608 * configure.in (USE_LIBDIR): New conditional.
1610 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1612 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1613 hostname in returned InetAddress objects.
1614 (getLocalHostname): Fix typo.
1615 * java/net/InetAddress.java (getByName): Set hostname on return
1617 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1620 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1622 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1623 interfaces if host==NULL.
1624 (accept): Throw message with InterruptedIOException.
1625 (getOption): Cache localAddress.
1626 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1627 'address' for DatagramSocket.
1628 (setTimeToLive): Fix compiler warnings.
1629 (getOption): Cache localAddress.
1630 * java/net/Socket.java (getLocalAddress): Don't need local
1631 InetAddress object. Add FIXME comment about calling checkConnect().
1632 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1633 connection queue to 50 as per JDK 1.2 docs.
1634 (ServerSocket(int,int)): Listen on all network interfaces by
1635 default, per JDK 1.2 docs.
1636 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1637 Add localAddress caching.
1639 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1641 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1643 (write(byte[],int,int)): ditto.
1645 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1647 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1649 1999-06-11 Warren Levy <warrenl@cygnus.com>
1651 * mauve-libgcj: Activated java.net Mauve tests.
1653 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1655 * java/net/natInetAddress.cc (aton): Fix typos.
1656 (lookup): Use a bigger buffer size for gethostbyname_r on all
1657 versions of glibc. Updated FIXME comment explaining this.
1658 Modified while loops to not set herr = ERANGE to work around glibc
1659 problems. Use user specified hostname in InetAddress result when
1660 available (consistent with JDK).
1662 1999-06-10 Warren Levy <warrenl@cygnus.com>
1664 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1665 Throw FileNotFoundException instead of IOException.
1667 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1669 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1670 in static field name.
1671 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1672 throughout rather than ParseException.
1674 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1676 * java/lang/Runtime.java (exec): Convert prog name and arguments
1678 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1679 environment array conversion. Preserve current environment if envp
1680 not passed. Preserve PATH unless explicitly specified.
1681 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1682 followed by EOF. Set a flag when a line is terminated by '\r' and
1683 ignore following '\n' if set.
1685 1999-06-02 Warren Levy <warrenl@cygnus.com>
1687 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1688 Ignore context if spec is an absolute URL. Fix braindead
1690 (hashCode): Use JDK 1.2 style algorithm.
1691 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1692 context URL properly.
1694 1999-05-30 Anthony Green <green@cygnus.com>
1696 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1697 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1699 1999-05-28 Warren Levy <warrenl@cygnus.com>
1701 * java/net/DatagramSocket.java (laddr): Removed.
1702 (DatagramSocket): Removed attempts to get or set laddr if null.
1703 (getLocalAddress): Reimplemented per spec.
1704 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1706 (joinGroup): Throw NullPointerException if any argument is null.
1707 (leaveGroup): ditto.
1708 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1709 * java/net/PlainSocketImpl.java (timeout): Added.
1710 (getInputStream): Added FIXME comment on how to support timeouts
1712 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1713 * java/net/Socket.java: Added FIXME comments to identify
1714 conflicting specs between the JCL and JDK 1.2 documents.
1715 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1716 if host is null. Get localport value resolved by kernel if bind
1718 (receive): Implemented support for timeouts in UDP.
1719 (setOption): Implemented based on natPlainSocketImpl version.
1721 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1722 resolved by kernel if bind lport is 0.
1723 (connect): Get localport value resolved by kernel if bind wasn't
1724 done to set localport.
1725 (accept): Implemented support for timeouts for ServerSocket.
1726 (setOption): Save value for SO_TIMEOUT.
1727 (getOption): Return timeout for SO_TIMEOUT.
1729 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1731 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1732 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1733 (setOption): Made abstract.
1734 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1735 to avoid cpp conflicts in native code.
1736 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1737 cpp conflicts in native code.
1738 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1739 * java/net/Socket.java (getLocalAddress): Implemented.
1740 (setTcpNoDelay): Implemented.
1741 (getTcpNoDelay): Implemented.
1742 (setSoLinger): Implemented.
1743 (getSoLinger): Implemented.
1744 (getSoTimeout): Verify class type.
1745 (setSendBufferSize): Implemented.
1746 (getSendBufferSize): Implemented.
1747 (setReceiveBufferSize): Implemented.
1748 (getReceiveBufferSize): Implemented.
1749 (toString): Prepended "Socket".
1750 * java/net/SocketImpl.java (toString): Rewritten.
1751 (getOption): Made abstract.
1752 (setOption): Made abstract.
1753 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1754 (setOption): Implemented.
1755 (getOption): Implemented.
1757 1999-05-26 Warren Levy <warrenl@cygnus.com>
1759 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1760 address when null. Set SO_REUSEADDR for multicasts.
1761 (getSoTimeout): Implemented.
1762 (setSoTimeout): Implemented.
1763 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1764 * java/net/MulticastSocket.java (getInterface): Implemented.
1765 (setInterface): Implemented.
1766 (setTimeToLive): Check for invalid ttl.
1767 (joinGroup): Verify multicast address and security.
1768 (leaveGroup): Verify multicast address and security.
1769 (send): Implemented.
1770 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1776 (getTTL): Implemented as non-native.
1780 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1781 (getSoTimeout): Implemented.
1782 (setSocketFactory): Made synchronized.
1783 * java/net/Socket.java (setSoTimeout): Implemented.
1784 (getSoTimeout): Implemented.
1785 (close): Made synchronized.
1786 (setSocketImplFactory): Made synchronized.
1787 * java/net/SocketImpl.java: Implement SocketOptions interface.
1788 * java/net/natInetAddress.cc: Corrected module name at top of file.
1789 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1790 (bind): Added FIXME.
1791 (peek): Implemented.
1797 (setOption): Implemented for SO_REUSEADDR.
1798 (getOption): Implemented for SO_REUSEADDR.
1800 1999-05-24 Tom Tromey <tromey@cygnus.com>
1802 * java/util/ResourceBundle.java (getBundle): Throw
1803 NullPointerException if baseName is null.
1805 1999-05-22 Tom Tromey <tromey@cygnus.com>
1807 * java/util/zip/ZipInputStream.java (fill): New method.
1808 (compressed_len): New instance variable.
1809 (getNextStream): Set it.
1810 (read): Reset inflater on EOF. Only read via `super' if entry is
1812 (skip): Only skip via `super' if entry is deflated.
1813 * java/util/zip/Deflater.java (last_input_count): Removed.
1814 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1816 (needsInput): Don't use last_input_count.
1817 (setInput): Don't set last_input_count.
1818 * java/util/zip/natInflater.cc (getRemaining): Return correct
1820 (inflate): Return 0 if input array is length 0.
1821 (setInput): Don't set last_input_count.
1822 * java/util/zip/Inflater.java (last_input_count): Removed.
1824 1999-05-21 Tom Tromey <tromey@cygnus.com>
1826 * Makefile.in: Rebuilt.
1827 * Makefile.am (INCLUDES): Added $(ZINCS).
1828 * configure: Rebuilt.
1829 * configure.in (ZINCS): New subst.
1831 1999-05-21 Andrew Haley <aph@cygnus.com>
1833 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1834 to signal options to allow the same exceptions to be rethrown
1837 1999-05-20 Andrew Haley <aph@cygnus.com>
1839 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1841 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1842 (INIT_FPE): Exception string made more informative.
1843 * include/sparc-signal.h (INIT_FPE): Exception string made more
1845 * testsuite/libjava.lang/Divide_1.java: New file.
1846 * testsuite/libjava.lang/Divide_1.out: New file.
1848 1999-05-19 Tom Tromey <tromey@cygnus.com>
1850 * aclocal.m4, configure: Rebuilt.
1851 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1853 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1856 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1858 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1860 (update): Fail in default case. Always initialize `strat'.
1862 * mauve-libgcj: Enable java.util.zip.
1864 1999-05-18 Warren Levy <warrenl@cygnus.com>
1866 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1867 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1868 PlainDatagramSocketImpl.java, and SocketOptions.java.
1869 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1870 * Makefile.in: Rebuilt.
1872 * java/net/DatagramPacket.java: New file.
1873 * java/net/DatagramSocket.java: New file.
1874 * java/net/DatagramSocketImpl.java: New file.
1875 * java/net/MulticastSocket.java: New file.
1876 * java/net/PlainDatagramSocketImpl.java: New file.
1877 * java/net/SocketOptions.java: New file.
1878 * java/net/natPlainDatagramSocketImpl.cc: New file.
1880 1999-05-18 Tom Tromey <tromey@cygnus.com>
1882 * java/util/zip/ZipOutputStream.java (level): Initial value is
1883 Deflater.DEFAULT_COMPRESSION.
1884 (close): New method.
1885 (closeEntry): Likewise.
1887 (put_version): Likewise.
1888 (write_entry): Likewise.
1889 (put2, put4): Now return `int'.
1890 (comment): Default to empty string.
1891 (bytes_written): New instance variable.
1893 * java/util/zip/ZipEntry.java (setComment): Limit length of
1895 (setCrc): Check CRC validity.
1896 (setExtra): Check argument validity.
1897 (setMethod): Likewise.
1898 (setSize): Likewise.
1899 (ZipEntry): Likewise.
1900 * include/javaprims.h: Updated namespace declarations.
1901 * Makefile.in: Rebuilt.
1902 * Makefile.am (ordinary_java_source_files): Mention new files.
1903 (nat_source_files): Likewise.
1904 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1907 (getInputStream): Handle compressed entries.
1908 * java/util/zip/GZIPOutputStream.java: New file.
1909 * java/util/zip/GZIPInputStream.java: New file.
1910 * java/util/zip/DataFormatException.java: New file.
1911 * java/util/zip/CheckedInputStream.java: New file.
1912 * java/util/zip/CheckedOutputStream.java: New file.
1913 * java/util/zip/InflaterInputStream.java: Implemented.
1914 * java/util/zip/natInflater.cc: New file.
1915 * java/util/zip/Deflater.java: Implemented.
1916 * java/util/zip/natDeflater.cc: New file.
1917 * java/util/zip/DeflaterOutputStream.java: Implemented.
1919 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1920 ZipException, not IOException.
1921 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1924 1999-05-17 Tom Tromey <tromey@cygnus.com>
1926 * java/lang/natSystem.cc (init_properties): URL now points to
1929 1999-05-12 Per Bothner <bothner@cygnus.com>
1931 * java/util/Calendar.java (set): First call computeFields if needed.
1932 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1934 1999-05-12 Tom Tromey <tromey@cygnus.com>
1936 * configure: Rebuilt.
1937 * configure.in: Look for -ldl when using the Boehm collector.
1938 Look for sched_yield in -lposix4.
1940 1999-05-12 Per Bothner <bothner@cygnus.com>
1942 * java/io/File.java (mkdirs): Handle a null parent directory.
1944 1999-05-12 Tom Tromey <tromey@cygnus.com>
1946 * include/javaprims.h: Updated namespace declarations.
1947 * classes.pl (scan): Uniquify class list.
1948 * Makefile.in, configure: Rebuilt.
1949 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1950 (built_java_source_files): New macro.
1951 (nat_headers): Added built_java_source_files.
1952 (javao_files): Likewise.
1953 (EXTRA_libgcj_la_SOURCES): Likewise.
1954 (libgcj.zip): Create built class files.
1955 ($(built_java_source_files:.java=.class)): New target.
1956 (jv_convert_LDADD): Added -L$(here)/.libs.
1957 * configure.in: Create links for ConcreteProcess.java and
1958 natConcreteProcess.cc.
1959 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1960 * java/lang/natEcosProcess.cc: New file.
1961 * java/lang/EcosProcess.java: New file.
1962 * java/lang/PosixProcess.java: New file.
1963 * java/lang/natPosixProcess.cc: New file.
1965 1999-05-12 Warren Levy <warrenl@cygnus.com>
1967 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1968 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1969 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1970 (connect): Throw ConnectException.
1972 1999-05-11 Tom Tromey <tromey@cygnus.com>
1974 * Makefile.in: Rebuilt.
1975 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1976 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1979 * Makefile.in: Rebuilt.
1980 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1981 and it causes problems with libtool.
1983 * Makefile.in, configure: Rebuilt.
1984 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1985 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1986 (jv_convert_DEPENDENCIES): Added ZDEPS.
1987 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1989 (THREADSPEC): Added `-L' to point to qthreads build directory.
1993 * configure, Makefile.in: Rebuilt.
1994 * Makefile.am (toolexeclib_DATA): New macro.
1995 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1996 Recognize --with-system-zlib.
1997 (GCSPEC): New subst.
1998 (THREADSPEC): New subst.
1999 (SYSTEMSPEC): New subst.
2000 (ZLIBSPEC): New subst.
2001 * libgcj.spec.in: New file.
2003 1999-05-10 Tom Tromey <tromey@cygnus.com>
2005 * java/io/InputStreamReader.java (read): If length is 0, return
2006 0. Reset `wpos' and `wcount' when buffer has been filled and
2009 * java/util/Properties.java (save): Removed `FIXME' comment.
2010 (load): Invalid characters in \u now treated as terminators.
2011 Make sure to append character resulting from `\' handling.
2012 Cast to `char' when appending to key or value.
2013 (skip_ws): Inverted test for whitespace.
2015 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2017 (readLine): Likewise.
2018 (readFully): Implemented.
2020 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2022 * java/awt/natToolkit.cc: Added copyright header.
2023 * java/util/zip/InflaterInputStream.java: Added copyright header.
2025 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2027 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2029 (getNextStream): Likewise.
2031 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2033 (getBundle): Don't explicitly throw null pointer exception.
2035 * gnu/gcj/RawData.java: Added copyright header.
2037 * include/jni.h (_Jv_va_list): Always define as va_list.
2039 1999-05-9 Anthony Green <green@cygnus.com>
2041 * java/text/DateFormat.java (computeInstance): Separate time
2043 (getDateTimeInstance): Ditto.
2044 (getDateTimeInstance(int,int)): New method.
2046 * Makefile.in: Rebuilt.
2047 * Makefile.am (ordinary_java_source_files): Add new classes.
2049 * java/util/PropertyResourceBundle.java: New file.
2050 * gnu/gcj/util/EnumerationChain.java: New file.
2052 1999-05-07 Tom Tromey <tromey@cygnus.com>
2054 * acconfig.h (GCJVERSION): New undef.
2055 * java/lang/natSystem.cc (init_properties): Define java.version,
2056 java.class.version, os.name, os.arch, os.version.
2057 Include <sys/utsname.h> if required.
2058 * configure: Rebuilt.
2059 * configure.in: Compute and define GCJVERSION.
2061 * java/lang/natSystem.cc (default_file_encoding): Now static.
2063 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2065 * libtool-version: New file.
2066 * Makefile.in: Rebuilt.
2067 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2070 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2071 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2074 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2075 (we pick those up already).
2077 1999-05-05 Per Bothner <bothner@cygnus.com>
2079 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2080 stub classes. (This is enough to get Kawa to compile against libgcj.)
2082 * gnu/gcj/RawData.java: New class.
2083 * doc/cni.sgml: Document RawData.
2085 * java/util/zip/InflaterInputStream.java: New stub class.
2086 * java/util/zip/ZipInputStream.java: New class. Partly works.
2087 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2088 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2089 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2090 * java/util/zip/ZipOutputStream.java: Start implementation.
2092 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2093 (default_file_encoding): New global, initial value is above macro.
2094 (init_properties): Default file.encoding to default_file_encoding.
2096 * Makefile.am: Add new classes.
2098 1999-05-05 Tom Tromey <tromey@cygnus.com>
2100 * Makefile.in: Rebuilt.
2101 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2102 (clean-local): New target
2104 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2105 (load, loadLibrary): Now native.
2107 * java/lang/Runtime.java (load, loadLibrary): Now native.
2108 (init): New native method.
2109 (Runtime): Use init.
2110 * prims.cc: Include <ltdl.h> if required.
2111 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2113 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2115 * configure.in: Switch from irix threads to posix threads
2116 * configure: Regenerate.
2118 1999-04-30 Tom Tromey <tromey@cygnus.com>
2120 * Makefile.in: Rebuilt.
2121 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2123 1999-04-29 Tom Tromey <tromey@cygnus.com>
2125 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2128 * java/util/Locale.java (Locale(String,String)): Implement in
2129 terms of 3-argument version; variant now defaults to empty
2131 (toString): Assume variant is not null.
2132 (equals): Assume all strings are not null.
2133 (Locale): Throw NullPointerException if any argument is null.
2135 * java/util/ResourceBundle.java (getBundle): Don't try the base
2136 name; now implicit in partialGetBundle call.
2137 (trySomeGetBundle): Search for parent bundles and call setParent
2139 (partialGetBundle): Added `langStop' argument. Use
2140 `Locale.toString' to compute bundleName.
2141 (resource_cache): New static field.
2142 (partialGetBundle): Cache the returned resource bundle. Now
2145 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2148 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2149 * java/text/natCollator.cc (decomposeCharacter): `base' now
2151 * Makefile.in: Rebuilt.
2152 * Makefile.am (ordinary_java_source_files): Added
2153 CollationElementIterator, CollationKey, Collator,
2155 (nat_source_files): Added natCollator.cc.
2156 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2157 (compare): Pass `this' to CollationElementIterator constructor.
2158 (getCollationElementIterator): Likewise.
2159 (ceiNext): Fix off-by-one error when finding initial substring.
2160 (next): Correctly mask off bits when computing return value.
2161 Fixed return values when one string is shorter than the other.
2162 * java/text/CollationElementIterator.java (collator): New field.
2163 (CollationElementIterator): Added collator argument.
2164 (next): Call ceiNext on collator object.
2166 1999-04-26 Tom Tromey <tromey@cygnus.com>
2168 * natCollator.cc: New file.
2170 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2171 (GregorianCalendar): Use it in all constructors.
2172 * java/util/Calendar.java (Calendar): Changed argument name to
2173 `zone' to match code.
2175 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2176 * java/text/CollationKey.java: New file.
2177 * java/text/CollationElementIterator.java: New file.
2178 * java/text/Collator.java: New file.
2179 * java/text/RuleBasedCollator.java: New file.
2181 * Makefile.in: Rebuilt.
2182 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2183 (jv_convert_LDADD): Explicltly add -lm -lc.
2185 1999-04-26 Tom Tromey <tromey@cygnus.com>
2187 * configure, Makefile.in: Rebuilt.
2188 * configure.in: Added AM_PROG_LIBTOOL.
2189 (GCOBJS): Use `.lo' form of files.
2190 (THREADOBJS): Likewise.
2191 (GCDEPS): Use `.la' form of library.
2192 (GCLIBS): Set to be the same as GCDEPS.
2193 (THREADDEPS): Use `.la' form of library.
2194 (THREADLIBS): Set to be the same as THREADDEPS.
2195 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2196 toolexeclib_LIBRARIES.
2197 (libgcj_la_SOURCES): Renamed for libtoolization.
2198 (EXTRA_libgcj_la_SOURCES): Likewise.
2199 (libgcj_la_DEPENDENCIES): Likewise.
2200 (libgcj_la_LIBADD): Likewise.
2201 ($(nat_files)): Use LTCXXCOMPILE.
2202 ($(c_files)): Use LTCOMPILE.
2203 (GCJCOMPILE): New macro.
2205 (.java.o): Likewise.
2206 ($(javao_files)): Likewise.
2207 (jv_convert_LINK): Use LIBTOOL.
2208 (nat_files): Use `.lo' files.
2209 (c_files): Likewise.
2210 (javao_files): Likewise.
2211 (.class.lo): Renamed.
2212 (.java.lo): Likewise.
2213 ($(nat_files)): Depend on %.lo.
2214 ($(c_files)): Likewise.
2215 ($(javao_files)): Likewise.
2216 (jv_convert_LDADD): Link against .lo files.
2217 (jv_convert_DEPENDENCIES): Depend on .lo files.
2218 (maintainer-check): Depend on libgcj.la, but examine .a file.
2219 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2220 (libgcj_la_LDFLAGS): New macro.
2222 1999-04-23 Warren Levy <warrenl@cygnus.com>
2224 * Makefile.am: Added URLDecoder and URLEncoder.
2225 * Makefile.in: Rebuilt.
2227 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2228 setSocketImplFactory to match spec.
2229 * java/net/Socket.java (getSoLinger): Changed return type to
2232 * java/net/URLDecoder.java: New file.
2233 * java/net/URLEncoder.java: New file.
2235 1999-04-21 Tom Tromey <tromey@cygnus.com>
2237 * java/lang/natString.cc (getBytes): Reverted earlier change and
2238 applied correct fix from Per Bothner.
2240 * java/lang/String.java: Don't throw
2241 UnsupportedEncodingException.
2243 * java/lang/natString.cc (getBytes): Correctly size result
2244 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2246 1999-04-20 Andrew Haley <aph@cygnus.com>
2248 * include/sparc-signal.h: new file.
2249 * configure.in: include/sparc-signal.h added.
2250 * configure: regenerated.
2251 * prims.cc (JvRunMain): signal handling code rewritten to be more
2253 (catch_segv): ditto.
2255 * include/i386-signal.h: reorganized.
2256 * include/default-signal.h: reorganized.
2258 1999-04-19 Tom Tromey <tromey@cygnus.com>
2260 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2261 once. From Anthony Green.
2263 1999-04-19 Andrew Haley <aph@cygnus.com>
2265 * Makefile.in: Processed with new automake.
2267 1999-04-19 Tom Tromey <tromey@cygnus.com>
2269 * include/javaprims.h: Removed security namespace.
2271 1999-04-20 Anthony Green <green@cygnus.com>
2273 * java/io/PrintStream.java (println): Remove extra println.
2275 1999-04-19 Anthony Green <green@cygnus.com>
2277 * Makefile.in: Rebuilt.
2278 * Makefile.am (ordinary_java_source_files): Add new security files.
2280 * java/security/NoSuchAlgorithmException.java,
2281 java/security/MessageDigest.java: New files.
2283 * include/javaprims.h: Add security namespace.
2285 1999-04-16 Per Bothner <bothner@cygnus.com>
2287 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2288 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2289 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2290 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2291 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2292 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2293 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2294 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2295 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2296 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2297 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2298 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2299 * Makefile.am: Various changes for new files and conversions.
2301 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2302 New overloading, allows greater efficiency.
2303 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2304 New overloading (for efficiency - avoids copying).
2306 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2307 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2309 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2310 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2311 (writeChars): Don't be quite so eager to flush.
2312 * java/io/PrintStream.java: Rewrite. Now more similar to
2313 OutputStreamWriter, using explicit UnicodeToBytes converter.
2314 Also, autoflush does not need to flush so often.
2315 * java/lang/natString.cc (getBytes): More efficient algorithm.
2316 (init(jbyteArray,jint,jint,jstring)): More efficient.
2318 1999-04-15 Warren Levy <warrenl@cygnus.com>
2320 * Makefile.am (ordinary_java_source_files): Added new Connection
2321 and Handler classes in gnu.gcj.protocol.file package.
2322 * Makefile.in: Rebuilt.
2324 * gnu/gcj/protocol/file/Connection.java: New file.
2325 * gnu/gcj/protocol/file/Handler.java: New file.
2326 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2327 if doInput allows input.
2328 (getOutputStream): Check if doOutput allows output.
2329 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2331 1999-04-14 Tom Tromey <tromey@cygnus.com>
2333 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2334 buffer larger to work around bug.
2335 From Bryce McKinlay <bryce@albatross.co.nz>.
2337 1999-04-14 Andrew Haley <aph@cygnus.com>
2339 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2340 NaNs are always converted to the same long value.
2341 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2344 1999-04-13 Tom Tromey <tromey@cygnus.com>
2346 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2347 instead switch on actual element type.
2349 * Makefile.in: Rebuilt.
2350 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2352 1999-04-13 Andrew Haley <aph@cygnus.com>
2354 * include/i386-signal.h, include/default-signal.h: New files.
2355 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2357 (catch_fpe): New function.
2358 * configure.in: Make link to appropriate include/java-signal.h.
2359 * configure: Rebuilt.
2360 * Makefile.am: include/java-signal.h added to dependency list.
2361 * Makefile.in: Rebuilt.
2363 1999-04-12 Urban Widmark <urban@svenskatest.se>
2365 * java/io/DataInputStream.java (readLine): Corrected handling of
2366 empty lines, from null to "".
2368 1999-04-12 Tom Tromey <tromey@cygnus.com>
2370 * Makefile.in: Rebuilt.
2371 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2373 * java/lang/natSystem.cc (SystemClass): New define.
2374 (init_properties): Synchronize.
2376 1999-04-08 Geoff Berry <gcb@gnu.org>
2378 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2379 * natPlainSocketImpl.cc (accept): Add missing else if check
2382 1999-04-08 Tom Tromey <tromey@cygnus.com>
2384 * java/lang/Long.java (parseLong): Corrected overflow detection
2386 * java/lang/Integer.java (parseInt): Corrected overflow detection
2389 * java/io/PrintStream.java (print): Handle null string argument.
2390 (println): Likewise.
2392 1999-04-07 Warren Levy <warrenl@cygnus.com>
2394 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2395 Set count to 0 when InputStreamReader returns -1 for EOF.
2397 1999-04-07 Tom Tromey <tromey@cygnus.com>
2399 * mauve-libgcj: Omit java.text.Collator,
2400 java.text.RuleBasedCollator.
2402 1999-04-06 Tom Tromey <tromey@cygnus.com>
2404 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2405 IOException from getHttpHeaders().
2406 (getHeaderFieldKey): Likewise.
2408 * include/javaprims.h: Regenerated declarations.
2410 * Makefile.in: Rebuilt.
2411 * Makefile.am (ordinary_java_source_files): Updated for removed
2414 1999-04-06 Per Bothner <bothner@cygnus.com>
2416 * java/util/zip/Adler32.java: New class.
2417 * java/util/zip/CRC32.java: Add working method bodies.
2418 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2419 * Makefile.in: Re-generate.
2421 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2423 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2424 from version in removed www hierarchy.
2425 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2426 version in removed www hierarchy.
2428 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2429 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2430 * gnu/gcj/www/protocol/http: Removed dir.
2431 * gnu/gcj/www/protocol: Removed dir.
2432 * gnu/gcj/www: Removed dir.
2434 * java/net/HttpURLConnection.java: Revised comments to indicate
2435 missing JDK 1.2 methods.
2437 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2438 hierarchy rather than the gnu/gcj/www/protocol one.
2439 * java/net/URLConnection.java: Updated status comments.
2440 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2441 the gnu/gcj/www/content one.
2443 1999-04-06 Per Bothner <bothner@cygnus.com>
2445 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2446 The gen-from-JIS program is in $(CONVERT_DIR).
2448 1999-04-06 Tom Tromey <tromey@cygnus.com>
2450 * mauve-libgcj: Renamed from mauve-libjava.
2452 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2454 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2455 (getResponseMessage): Implemented.
2456 (getResponseVals): New private method.
2458 * java/net/URLConnection.java (getContent): Implemented.
2459 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2461 1999-04-05 Tom Tromey <tromey@cygnus.com>
2463 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2464 (jv_convert_SOURCES): Renamed.
2465 (EXTRA_jv_convert_SOURCES): Likewise.
2466 (jv_convert_LDFLAGS): Likewise.
2467 (jv_convert_LINK): Likewise.
2468 (jv_convert_LDADD): Likewise.
2469 (jv_convert_DEPENDENCIES): Likewise.
2471 * Makefile.in: Rebuilt.
2472 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2475 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2477 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2478 method for comparison.
2480 * java/net/URLConnection.java (getContentLength): Implemented.
2481 (getContentType): Implemented.
2482 (getContentEncoding): Implemented.
2483 (getExpiration): Implemented.
2484 (getDate): Implemented.
2485 (getLastModified): Implemented.
2486 (getHeaderFieldInt): Implemented.
2487 (getHeaderFieldDate): Implemented.
2489 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2491 * java/net/URLConnection.java (toString): Implemented.
2492 (setContentHandlerFactory): Implemented.
2493 (setContentHandler): Wrote new private helper method.
2495 1999-04-01 Tom Tromey <tromey@cygnus.com>
2497 * Makefile.in: Rebuilt.
2498 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2499 of 1999-03-31; we always want to build all the .class files.
2500 Depend on java_source_files, not libgcj.zip.
2501 (nat_headers): Define in terms of ordinary_java_source_files.
2503 1999-03-31 Tom Tromey <tromey@cygnus.com>
2505 * Makefile.in: Rebuilt.
2506 * Makefile.am (special_java_source_files): New macro.
2507 (java_source_files): Use it.
2508 (ordinary_java_source_files): New macro.
2509 (java_source_files): Use it.
2510 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2511 creating headers for those files with hand-maintained headers.
2513 * include/javaprims.h: Regenerated namespace declarations.
2514 * classes.pl (scan): Include [0-9] in regexp for matching class
2515 names; for java.util.zip.CRC32.
2517 * Makefile.in: Rebuilt.
2518 * Makefile.am (nat_headers): Redefined to generate all possible
2521 * java/util/zip/ZipException.java: In package java.util.zip, not
2524 1999-03-30 Tom Tromey <tromey@cygnus.com>
2526 * configure: Rebuilt.
2527 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2528 eh-common.h when not building in tree with gcc.
2530 * Makefile.in: Rebuilt.
2531 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2532 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2534 ($(java_source_files:.java=.class)): New target.
2536 * Makefile.in: Rebuilt.
2537 * Makefile.am (java_source_files): Added
2538 java/net/HttpURLConnection.java and
2539 gnu/gcj/www/protocol/http/Connection.java.
2541 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2543 * gnu/gcj/www/protocol/http/Connection.java: New file.
2544 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2545 * java/net/HttpURLConnection.java: New file.
2546 * java/net/URLConnection.java (getHeaderField): Implemented default.
2547 (getHeaderFieldKey): Implemented default method.
2549 1999-03-30 Tom Tromey <tromey@cygnus.com>
2551 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2553 * java/util/zip/Deflater.java: Added copyright header.
2554 * java/util/zip/CRC32.java: Added copyright header.
2556 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2557 that it is automatically generated.
2558 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2560 * gnu/gcj/convert/BytesToUnicode.java,
2561 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2562 gnu/gcj/convert/Input_EUCJIS.java,
2563 gnu/gcj/convert/Input_UTF8.java,
2564 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2565 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2566 gnu/gcj/convert/Output_8859_1.java,
2567 gnu/gcj/convert/Output_JavaSrc.java,
2568 gnu/gcj/convert/Output_UTF8.java,
2569 gnu/gcj/convert/UnicodeToBytes.java,
2570 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2572 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2574 * Makefile.in, configure: Rebuilt.
2575 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2576 not if test subdir exists.
2577 (--enable-gcj-classes): Removed; gcj always used to generate
2579 (JAVA, JAVAC): Removed.
2580 (--enable-single-compilation, --enable-source-compilation):
2583 (NATIVE): New conditional.
2584 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2585 `install-exec' to work.
2586 (toolexeclibdir): Likewise.
2587 (toollib_LIBRARIES): Likewise.
2588 (AM_MAKEFLAGS): Don't pass tooldir.
2590 (javao_files): Redefined.
2591 (java_source_files): New macro.
2592 (c_source_files): New macro.
2593 (c_files): Redefined in terms of c_source_files.
2594 (java_io_files, java_lang_files, java_net_files, java_text_files,
2595 java_util_files, gnu_files, java_files): Removed.
2596 (class_io_files, class_lang_files, class_net_files,
2597 class_text_files, class_util_files, class_gnu_files, class_files):
2599 (nat_source_files): New macro.
2600 (nat_files): Redefined in terms of nat_source_files.
2601 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2602 java_source_files. Removed no-such-file.c.
2604 (ETAGS_ARGS): Removed.
2605 (TAGS_DEPENDENCIES): Likewise.
2606 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2608 (src_io_files, src_lang_files, src_text_files, src_util_files,
2609 src_gnu_files): Removed.
2610 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2611 (BUILT_SOURCES): Removed.
2612 (header-check): New target.
2614 (noinst_PROGRAMS): New macro.
2615 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2617 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2618 (gen-from-JIS): Build in top directory.
2619 (convert_source_files): New macro.
2620 (convert_SOURCES): New macro.
2621 (convert_LDFLAGS): Likewise.
2622 (convert_LINK): Likewise.
2623 (convert_LDADD): Likewise.
2624 (convert_DEPENDENCIES): Likewise.
2626 (gen-from-JIS): Removed.
2627 (gen_from_JIS_SOURCES): New macro.
2628 (gen_from_JIS_LDADD): Likewise.
2629 (gen_from_JIS_DEPENDENCIES): Likewise.
2631 * configure: Rebuilt.
2632 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2633 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2634 when defining conditional.
2636 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2638 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2639 The Unicode Consortium does not permit their re-distribution.
2640 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2641 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2643 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2645 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2647 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2649 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2650 from Unicode Consortium.
2651 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2652 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2653 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2654 New tables, generated using gen-from-JIS.
2655 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2656 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2657 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2658 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2660 * gnu/gcj/convert/Convert.java: New application.
2661 * Makefile.am, Makefile.in (convert): New program, using Convert.
2662 Build the various JIS conversion tables (in maintainer mode).
2664 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2666 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2668 * java/net/URL.java (URL): Deal with null property value. Use "."
2669 as separator in building class name.
2670 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2671 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2672 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2673 beginning of the substring rather than 'start'.
2675 1999-03-26 Tom Tromey <tromey@cygnus.com>
2677 * include/java-chartables.h: Rebuilt.
2678 * include/java-chardecomp.h: New file.
2679 * chartables.pl: Generate output files directly. Added support
2680 for generating decomposition header.
2681 (canonical_decomposition, full_decomposition): New globals.
2682 (DECOMPOSITION): New constant.
2683 (process_char): Call add_decomposition.
2684 (add_decomposition): New sub.
2685 (write_decompositions): New sub.
2687 1999-03-25 Tom Tromey <tromey@cygnus.com>
2689 * java/text/CollationElementIterator.java: New file.
2691 * mauve-libjava: Omit StringTest.
2693 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2695 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2696 without a '/' when parsing protocol. Handle ref outside of parseURL.
2697 (hashCode): Implemented.
2698 (set): Don't expand -1 to default port.
2699 (getDefaultPort): Removed.
2701 * java/net/URLStreamHandler.java (parseURL): Implemented.
2702 (toExternalForm): Implemented.
2704 1999-03-23 Tom Tromey <tromey@cygnus.com>
2706 * java/text/BreakIterator.java (getSentenceInstance):
2708 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2710 * Makefile.in: Rebuilt.
2711 * Makefile.am (nat_headers): Added IllegalAccessException.
2712 * java/lang/natClass.cc (newInstance): Throw
2713 IllegalAccessException, not IllegalAccessError.
2714 Include IllegalAccessException.h.
2716 1999-03-22 Tom Tromey <tromey@cygnus.com>
2718 * gnu/gcj/text/LineBreakIterator.java: New file.
2719 * java/text/BreakIterator.java (getLineInstance): Implemented.
2721 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2722 copy constructor private.
2723 (previous, next): Removed erroneous comment about line
2725 (previous): Correctly recognize break between non-letter on the
2726 left and letter on the right. Handle apostrophes correctly.
2728 * java/text/BreakIterator.java (getWordInstance): Implemented.
2729 * gnu/gcj/text/WordBreakIterator.java: New file.
2730 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2732 * gnu/gcj/text/BaseBreakIterator.java: New file.
2734 1999-03-19 Tom Tromey <tromey@cygnus.com>
2736 * java/text/BreakIterator.java: New file (partially stubbed out).
2737 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2739 * include/config.h.in: Rebuilt.
2740 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2741 (HAVE_TIMEZONE): Likewise.
2742 * configure: Rebuilt.
2743 * configure.in: Added timezone checks.
2744 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2747 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2749 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2750 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2751 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2752 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2753 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2754 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2755 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2756 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2758 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2759 (BSD_COMP): Kludge needed for Solaris2.
2761 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2763 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2764 URL(java.net.URL, string, URLStreamHandler) and call it with a
2765 null handler. In latter constructor, added SecurityManager check.
2766 (set): Expect null handler on bad protocol rather than an exception.
2767 (setURLStreamHandler): Simplified exception handling; return null
2768 on invalid protocol.
2770 1999-03-18 Tom Tromey <tromey@cygnus.com>
2772 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2774 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2776 Include PrintStream.h, InputStream.h.
2777 * java/lang/System.java (ForwardingInputStream,
2778 ForwardingOutputStream): Removed.
2779 (setErr, setIn, setOut): Now native.
2781 Reverted patch from 1999-02-12 to work around problem in
2783 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2784 (_Jv_eh_free): Use free.
2786 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2787 for path name. Minor formatting fixes.
2789 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2791 * prims.cc (fail_on_finalization): New function.
2792 (_Jv_GCWatch): Likewise.
2794 * prims.cc (JvRunMain): Initialize `nullp'.
2795 (nullp): New global.
2796 (catch_segv): Throw nullp.
2798 * Makefile.in: Rebuilt.
2799 * Makefile.am (ZIP): In "null target" case, zip is found in the
2802 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2806 * java/lang/StringBuffer.java (StringBuffer): Don't use
2807 ensureCapacity to set initial capacity.
2808 (capacity): Subtract `length' from return result.
2810 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2812 * java/io/natFileDescriptorPosix.cc (open): Throw
2813 FileNotFoundException, but with filename and errno in msg.
2815 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2817 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2818 functionality folded into java/net/URL.java per spec.
2820 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2821 than EEXIST for throwing FileNotFoundException.
2823 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2824 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2826 * java/net/URLStreamHandler.java (parseURL): Added stub.
2828 1999-03-15 Andrew Haley <aph@cygnus.com>
2830 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2833 1999-03-15 Andrew Haley <aph@cygnus.com>
2835 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2838 1999-03-12 Tom Tromey <tromey@cygnus.com>
2840 * prims.cc (catch_segv): New function.
2841 Include <signal.h> if HANDLE_SEGV defined. Include
2842 NullPointerException.h.
2843 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2846 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2847 a SimpleDateFormat, not just a DateFormat.
2848 (defaultCenturyStart, formatData, pattern): Now private.
2849 (append): Now `final'. Use `NumberFormat.format'.
2851 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2853 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2856 * java/text/MessageFormat.java (format): Use default MessageFormat
2858 (parse, parseObject): Wrote.
2860 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2863 1999-03-12 Andrew Haley <aph@cygnus.com>
2865 * java/lang/String.java (indexOf): Replace with native method for
2867 * java/lang/natString.cc (IndexOf): As above.
2869 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2870 Argument check corrected.
2871 (init(jbyteArray,jint,jint,jstring)): Likewise.
2873 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2874 1.2 compliant method.
2876 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2878 * java/lang/Float.java (byteValue, shortValue): Likewise.
2880 1999-03-11 Tom Tromey <tromey@cygnus.com>
2882 * java/text/DecimalFormat.java (parse): Wrote.
2884 * java/text/ChoiceFormat.java (parse): Set error index on
2885 ParsePosition object.
2887 * java/lang/Integer.java (parseInt): Throw exception on overflow
2888 when intermediate result is most negative number. Changed
2889 overflow detection as well.
2890 * java/lang/Long.java (parseLong): Likewise.
2892 * configure, Makefile.in: Rebuilt.
2893 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2894 CANADIAN when building in source tree that doesn't include gcc.
2895 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2898 * java/text/ChoiceFormat.java (nextDouble): Correct some
2899 off-by-one errors when masking or adding.
2901 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2902 parameter, if given. Use `%', not IEEEremainder.
2903 (scanFix): Throw error if multiplier already set.
2904 (computePattern): Wrote.
2906 1999-03-11 Andrew Haley <aph@cygnus.com>
2908 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2910 (nextDouble): Corrected masking logic. Handle interaction between
2911 `next' and negative numbers.
2913 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2915 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2916 * java/net/URL.java: Added general comments.
2918 1999-03-10 Tom Tromey <tromey@cygnus.com>
2920 * java/text/ChoiceFormat.java (parse): Wrote.
2922 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2924 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2925 Create ChoiceFormat objects.
2926 (format): Special-case ChoiceFormat.
2927 (scanFormatElement): Include { and } in generated style string.
2929 1999-03-09 Tom Tromey <tromey@cygnus.com>
2931 * java/text/ChoiceFormat.java: New file.
2933 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2935 * java/net/BindException.java: Created.
2936 * java/net/ConnectException.java: Created.
2937 * java/net/ContentHandler.java: Created.
2938 * java/net/ContentHandlerFactory.java: Created.
2939 * java/net/FileNameMap.java: Created.
2940 * java/net/MalformedURLException.java: Created.
2941 * java/net/NoRouteToHostException.java: Created.
2942 * java/net/ProtocolException.java: Created.
2943 * java/net/ServerSocket.java (@author): Fixed typo.
2944 * java/net/Socket.java (@author): Fixed typo.
2945 * java/net/SocketImpl.java (@author): Fixed typo.
2946 * java/net/SocketImplFactory.java (@author): Fixed typo.
2947 * java/net/URL.java: Created - nearly complete.
2948 * java/net/URLConnection.java: Created - near-empty stub.
2949 * java/net/URLStreamHandler.java: Created - incomplete stub.
2950 * java/net/URLStreamHandlerFactory.java: Created.
2951 * java/net/UnknownServiceException.java: Created.
2953 1999-03-09 Tom Tromey <tromey@cygnus.com>
2955 * java/lang/System.java (ForwardingInputStream): New class.
2956 (ForwardingOutputStream): Likewise.
2957 (in, out, err): Now `final' forwarding streams.
2958 (setIn, setOut, setErr): Use appropriate method on forwarding
2961 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2964 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2966 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2967 * java/util/zip/Checksum.java: New interface (complete).
2968 * java/util/zip/Deflater.java: New class (near-empty stub).
2969 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2970 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2971 * java/util/zip/ZipEntry.java: New class (complete).
2972 * java/util/zip/ZipException.java: New class (complete).
2973 * java/util/zip/ZipFile.java: New class (incomplete stub).
2974 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2976 1999-03-09 Tom Tromey <tromey@cygnus.com>
2978 * java/text/MessageFormat.java (MessageFormatElement): Removed
2979 `public' specifiers.
2981 * java/text/DecimalFormat.java (scanFormat): Increment index
2982 before processing exponential format. Fixed a couple typos in
2984 (format): Correct normalization of exponent.
2986 1999-03-08 Tom Tromey <tromey@cygnus.com>
2988 * java/text/SimpleDateFormat.java (parse): Throw
2989 IllegalArgumentException, not ParseException.
2991 1999-03-05 Tom Tromey <tromey@cygnus.com>
2993 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2994 when constructing DateFormatSymbols. Initialize numberFormat
2995 field of superclass.
2997 * java/text/DateFormat.java (equals): Rewrote.
2998 (getAvailableLocales): New method.
2999 (getDateInstance): New methods.
3000 (getDateTimeInstance): Likewise.
3001 (getTimeInstance): Likewise.
3002 (getInstance): New method.
3003 (computeInstance): New method.
3005 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3007 (safeGetResource): New method.
3008 (DateFormatSymbols): Use Locale paramater.
3009 (equals): Now protected.
3010 Made instance variables private.
3012 1999-03-04 Tom Tromey <tromey@cygnus.com>
3014 * java/text/DecimalFormat.java: New file.
3016 * java/text/NumberFormat.java (groupingUsed,
3017 maximumFractionDigits, maximumIntegerDigits,
3018 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3020 (setDecimalSeparatorAlwaysShown, setMultiplier,
3021 setPositivePrefix): Removed.
3022 (setMinimumFractionDigits, setMaximumFractionDigits):
3024 (format): Now final.
3025 Added many new methods.
3027 * Makefile.in: Rebuilt.
3028 * Makefile.am (gnu_files): New macro.
3029 (java_files): Added gnu_files.
3030 (class_gnu_files): New macro.
3031 (class_files): Use it.
3032 (src_gnu_files): New macro.
3033 (gnu.o): New target.
3034 (javao_files): Added gnu.o.
3036 * gnu/gcj/text/LocaleData_en_US.java: New file.
3037 * gnu/gcj/text/LocaleData_en.java: New file.
3038 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3039 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3040 (safeGetString): New method.
3041 (safeGetChar): Likewise.
3043 1999-03-03 Tom Tromey <tromey@cygnus.com>
3045 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3048 * java/text/FieldPosition.java (equals): Don't check for null
3049 object; instanceof does this.
3051 * java/util/Locale.java (clone): New method.
3054 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3056 * doc/cni.sgml: New file.
3058 1999-03-03 Tom Tromey <tromey@cygnus.com>
3060 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3062 * java/text/DecimalFormatSymbols.java: New file.
3064 1999-03-02 Tom Tromey <tromey@cygnus.com>
3066 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3068 * configure: Rebuilt.
3069 * configure.in: Check for sys/filio.h.
3071 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3073 (load): Always throw UnsatisfiedLinkError.
3074 (loadLibrary): Likewise.
3076 1999-03-02 Anthony Green <green@cygnus.com>
3078 * LIBGCJ_LICENSE: New file.
3079 * LIBJAVA_LICENSE: Removed.
3080 * Many files: libjava now libgcj.
3082 1999-03-02 Tom Tromey <tromey@cygnus.com>
3084 * include/java-chartables.h: Rebuilt.
3085 * chartables.pl (print_block): Make table `const'.
3086 (print_numerics): Likewise.
3087 (print_single_map): Likewise.
3088 (print_all_block): Likewise.
3089 (print_case_table): Likewise.
3090 (print_fast_tables): Likewise.
3091 * java/lang/natCharacter.cc (table_search): `table' argument now
3094 1999-03-01 Tom Tromey <tromey@cygnus.com>
3096 * java/util/Date.java (before, after): Inverted logic.
3098 * java/util/Date.java (parse): Handle case where first character
3099 in string is open parenthesis.
3100 (skipParens): Rewrote.
3102 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3103 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3105 * java/util/Date.java (parse): Correctly compute beginning of
3108 * java/util/Hashtable.java (get): Throw NullPointerException if
3110 (containsKey): Likewise.
3112 * java/util/Properties.java (list): Truncate value to 37
3113 characters and add `...'.
3115 * java/lang/Byte.java (parseByte): Pass `radix' to
3118 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3120 Include System.h, PrintStream.h.
3122 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3125 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3127 * configure: Rebuilt.
3128 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3131 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3133 * java/lang/SecurityManager.java: Import java.net.*.
3134 (checkMulticast): New methods.
3136 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3138 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3139 (nat_files): Add java/lang/reflect/natArray.o.
3140 (nat_headers): Add Field.h and NoSuchFieldException.h.
3142 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3143 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3144 (_Jv_FromReflectedField): Fix buglet.
3145 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3146 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3147 * prims.cc (_Jv_Abort): Include message in print-out.
3149 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3150 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3151 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3153 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3154 * include/config.h.in (HAVE_PWD_H): New feature macro.
3155 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3156 user.name, user.home, user.dir.
3158 * java/lang/reflect/Array.java: New class.
3159 * java/lang/reflect/natArray.cc: New native methods.
3160 * include/javaprims.h: Declare java::lang::reflect::Array.
3162 * java/lang/Class.h (getField): New private method. Add friends.
3163 * java/lang/Class.java (getField): Add private overload.
3164 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3165 getDeclaredMethods): Add working implementations.
3166 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3167 Finish implementation, except for access control.
3169 * java/lang/reflect/Modifier.java (toString): New overload.
3170 * include/java-method.h: New file.
3171 * java/lang/reflect/Method.java (index): Replaced by offset field.
3172 Remove various private fields - get them from _Jv_Field instead.
3173 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3174 New method implementations.
3176 * java/text/NumberFormat.java: Add a bunch of methods.
3178 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3180 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3182 1999-02-26 Tom Tromey <tromey@cygnus.com>
3184 * include/config.h.in: Rebuilt.
3185 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3186 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3187 HAVE_GETHOSTBYADDR_R): New defines.
3188 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3189 gethostbyaddr_r if available.
3191 * configure: Rebuilt.
3192 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3194 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3198 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3199 * prims.cc (_Jv_AllocBytesChecked): New function.
3201 * Makefile.in: Rebuilt.
3202 * Makefile.am (SUBDIRS): Removed `test'.
3203 * configure: Rebuilt.
3204 * configure.in: Don't build test/Makefile.
3205 * test/*: Removed all files.
3207 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3209 * java/lang/reflect/Constructor.java: Make class final to match spec.
3210 * java/lang/reflect/Method.java: Ditto.
3212 1999-02-25 Tom Tromey <tromey@cygnus.com>
3214 * java/net/natInetAddress.cc: Include <sys/types.h> before
3216 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3219 * java/net/natInetAddress.cc: Declare gethostname if required.
3220 * include/config.h.in: Rebuilt.
3221 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3222 * configure: Rebuilt.
3223 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3224 declared in unistd.h.
3226 1999-02-24 Tom Tromey <tromey@cygnus.com>
3228 * Makefile.in: Rebuilt.
3229 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3230 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3231 from private to "none".
3233 * include/javaprims.h: Regenerated class declarations with new
3235 * classes.pl (scan): Only generate decls for java.lang, java.io,
3238 1999-02-24 Tom Tromey <tromey@cygnus.com>
3240 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3241 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3243 1999-02-23 Tom Tromey <tromey@cygnus.com>
3245 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3246 not already defined.
3247 * java/io/natFile.cc (_REENTRANT): Only define if not already
3249 * include/config.h.in: Rebuilt.
3250 * acconfig.h (HAVE_BOEHM_GC): New define.
3251 * configure: Rebuilt.
3252 * configure.in: Define HAVE_BOEHM_GC if using it.
3253 * posix-threads.cc: Include boehm-config.h and gc.h if
3255 * include/posix-threads.h: Added explanatory note about Boehm GC.
3257 * java/io/BufferedReader.java (readLine): Only return null when
3258 EOF seen before any characters read. (In particular, an empty
3259 line should not return null.)
3261 * java/io/BufferedInputStream.java (read): Only refill once per
3264 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3265 java.lang.Character.classify12, java.lang.String.hash,
3266 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3267 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3269 * java/text/StringCharacterIterator.java (setIndex): No error if
3271 (next): Check for `pos == end', not `end - 1'.
3272 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3273 for null text in each constructor.
3274 (clone): Fixed order of arguments to constructor.
3276 1999-02-22 Tom Tromey <tromey@cygnus.com>
3278 * include/config.h.in: Rebuilt.
3279 * acconfig.h (HAVE_INET6): New define.
3280 (HAVE_SOCKLEN_T): Likewise.
3281 * java/net/PlainSocketImpl.java: Added copyright header.
3282 * java/net/natPlainSocketImpl.cc: Added copyright header.
3283 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3285 (connect): Likewise.
3287 (socklen_t): New typedef.
3288 (accept): Use socklen_t.
3289 * java/net/natInetAddress.cc: Added copyright header.
3290 (HAVE_GETHOSTNAME): Don't define.
3291 (HAVE_INET_ADDR): Likewise.
3292 (lookup): Fixed typo.
3293 (aton): Don't use `address' as name of local variable.
3294 (lookup): Use HAVE_INET6, not AF_INET6.
3296 * configure: Rebuilt.
3297 * configure.in: Look for functions inet_aton, inet_addr,
3298 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3299 Check for socklen_t typedef.
3301 * exception.cc (__throw): Declare as __noreturn__.
3303 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3305 * Makefile.am, Makefile.in: Also build java/net.
3306 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3308 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3309 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3311 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3312 * include/cni.h (JvMalloc, JvFree): New inline functions.
3313 (JvThrow): Add __noreturn__ attribute.
3314 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3315 (_Jv_Throw): Add __noreturn__ attribute.
3317 * java/net/PlainSocketImpl.java: Init fnum to -1.
3318 * java/net/ServerSocket.java: Add missing throws clauses.
3319 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3320 don't call create on the latter. Instead, other constructors
3321 have to explicitly call SocketImpl.create.
3322 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3323 from size_t to int, to match ::accept prototype.
3324 * java/net/natInetAddress.cc: Use JvFree rather than free.
3327 1999-02-22 Tom Tromey <tromey@cygnus.com>
3329 * include/javaprims.h: Added new classes.
3330 * java/text/StringCharacterIterator.java: New file.
3331 * java/text/CharacterIterator.java: New file.
3333 * java/text/ParseException.java (errorOffset): Now private.
3335 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3337 * java/net: New package.
3338 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3339 Socket.java,SocketException.java,SocketImpl.java,
3340 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3341 natPlainSocketImpl.cc}: New classes.
3343 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3344 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3345 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3346 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3348 * classes.pl: Translate package into "namespace", not "class".
3349 * include/javaprims.h: Update class list, using "namespace".
3351 1999-02-21 Tom Tromey <tromey@cygnus.com>
3353 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3354 Define when appropriate.
3356 1999-02-20 Tom Tromey <tromey@cygnus.com>
3358 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3359 as a single byte and \u07ff as two bytes.
3360 (_Jv_GetStringUTFLength): Likewise.
3361 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3362 with 0x0f, not 0x1f.
3364 1999-02-19 Tom Tromey <tromey@cygnus.com>
3366 * java/io/DataOutputStream.java (writeUTF): When encoding
3367 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3368 * java/io/DataInputStream.java (readUTF): Mask second byte of
3369 3-byte character with 0x3f, not 0x1f.
3371 * java/io/DataInputStream.java (readLong): Cast result of
3372 readUnsignedByte to long before using.
3374 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3377 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3378 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3379 argument to avoid warning.
3380 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3381 argument to avoid warning.
3383 1999-02-18 Tom Tromey <tromey@cygnus.com>
3385 * mauve-libjava: Omit java.io.DataInputOutput and
3386 java.io.Utf8Encoding.
3388 1999-02-17 Tom Tromey <tromey@cygnus.com>
3390 * Makefile.in: Rebuilt.
3391 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3392 * java/io/natFileDescriptorPosix.cc: Include
3393 InterruptedIOException.h, Thread.h.
3394 (write): Throw InterruptedIOException when required.
3396 * posix-threads.cc: Include <signal.h>.
3397 (_Jv_ThreadInterrupt): New function.
3399 (handle_intr): New function.
3400 (_Jv_InitThreads): Register handle_intr via sigaction.
3401 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3402 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3403 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3404 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3406 1999-02-19 Andrew Haley <aph@cygnus.com>
3408 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3410 (ThreadGroup (int)): Set the maximum priority of the initial
3413 1999-02-18 Andrew Haley <aph@cygnus.com>
3415 * java/lang/natClass.cc (forName): Check for the case where a
3416 classname is the name of an array and call FindClassFromSignature
3419 1999-02-18 Andrew Haley <aph@cygnus.com>
3421 * java/lang/StringBuffer (insert (int, String)): Move up any
3422 characters above the insert position and increase the length of
3423 the string buffer by the length of the argument.
3424 (insert (int, char[])): Likewise.
3425 (insert (int, char)): Likewise.
3426 (StringBuffer (String)): The initial capacity of the string buffer
3427 is 16 plus the length of the argument.
3428 (getChars): Add a JDK 1.2 FIXME.
3430 1999-02-18 Andrew Haley <aph@cygnus.com>
3432 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3435 1999-02-18 Andrew Haley <aph@cygnus.com>
3437 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3438 instead of floating-point equality. This is necessary for
3439 correct floating-point Hashtables.
3440 * java/lang/Float.java (equals): Ditto.
3442 1999-02-16 Tom Tromey <tromey@cygnus.com>
3444 * java/util/Properties.java (list): Truncate value to 37
3445 characters and add "...".
3447 1999-02-16 Tom Tromey <tromey@cygnus.com>
3449 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3450 if initCap is negative.
3451 (contains): Implement JDK1.2-style handling of null argument.
3452 (removeElement): Likewise.
3453 (indexOf): Likewise. Also, correctly handle case where idx is
3455 (lastIndexOf): Likewise.
3457 1999-02-16 Tom Tromey <tromey@cygnus.com>
3459 * java/lang/natString.cc (init): Increment source pointer in
3462 1999-02-16 Tom Tromey <tromey@cygnus.com>
3464 * exception.cc: Include NullPointerException.h.
3465 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3467 1999-02-16 Tom Tromey <tromey@cygnus.com>
3469 * Makefile.in: Rebuilt.
3470 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3472 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3474 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3475 we're compiling canadian.
3476 * configure: Regenerated.
3478 1999-02-12 Andrew Haley <aph@cygnus.com>
3480 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3481 deleted from libgcj.
3483 1999-02-12 Tom Tromey <tromey@cygnus.com>
3485 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3486 (_Jv_eh_free): Don't call free.
3487 Don't declare malloc or free.
3489 1999-02-11 Tom Tromey <tromey@cygnus.com>
3491 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3493 1999-02-11 Andrew Haley <aph@cygnus.com>
3495 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3496 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3497 needed by java.lang.*.
3498 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3499 wf_fmod.o: Removed from libjava.a.
3501 1999-02-11 Tom Tromey <tromey@cygnus.com>
3503 * include/javaprims.h: Reverted previous change; with it
3504 exception.cc can't compile.
3506 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3508 * include/config.h.in: Rebuilt.
3509 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3511 * configure: Rebuilt.
3512 * configure.in: Check for sched_yield. Look in thread library for
3513 all thread functions.
3515 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3516 no recursive mutexes.
3517 (_Jv_MutexDestroy): Define when required.
3518 (_Jv_MutexLock): Likewise.
3519 (_Jv_MutexUnlock): Likewise.
3520 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3521 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3522 (_Jv_Mutex_t): New structure.
3523 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3524 (_Jv_MutexLock): Likewise.
3525 (_Jv_MutexUnlock): Likewise.
3527 1999-02-10 Tom Tromey <tromey@cygnus.com>
3529 * aclocal.m4, configure, Makefile.in: Rebuilt.
3530 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3532 * configure.in: Changed to track library changes.
3533 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3534 (AM_CXXFLAGS): Likewise.
3535 (data_DATA): Likewise.
3536 (AM_CFLAGS): Likewise.
3537 (JC1FLAGS): Likewise.
3538 (libgcj_a_SOURCES): Likewise.
3539 (EXTRA_libgcj_a_SOURCES): Likewise.
3540 (libgcj_a_DEPENDENCIES): Likewise.
3541 (libgcj_a_LIBADD): Likewise.
3542 (libgcj.zip): Likewise.
3543 (CLEANFILES): Likewise.
3544 ($(nat_headers)): Likewise.
3545 (java/lang/FirstThread.h): Likewise.
3546 (java/lang/ThreadGroup.h): Likewise.
3547 (java/lang/String.h): Likewise.
3548 (java/lang/reflect/Field.h): Likewise.
3549 (BUILT_SOURCES): Likewise.
3550 (maintainer-check): Likewise.
3551 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3552 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3554 * java/util/natGregorianCalendar.cc (computeFields): Only use
3555 gmtime_r and localtime_r when configured for posix threads.
3557 * java/io/natFile.cc (get_entry): Only use readdir_r when
3558 configured for posix threads.
3560 * java/util/natGregorianCalendar.cc: Update copyright notice.
3561 * java/util/TimeZone.java: Ditto.
3562 * java/util/SimpleTimeZone.java: Ditto.
3564 1999-02-08 Tom Tromey <tromey@cygnus.com>
3566 * java/io/PrintStream.java (line_separator): New constant.
3567 (print): Use line_separator, not `file.separator' property.
3568 (println): Use line_separator.
3570 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3571 when trying to instantiate Class.
3573 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3574 NullPointerException if argument is null.
3576 * java/lang/Thread.java (setName): Throw NullPointerException, not
3577 IllegalArgumentException.
3580 1999-02-08 Andrew Haley <aph@cygnus.com>
3582 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3583 create new Classes with Class.newInstance().
3585 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3586 semiciolon to end of an array Class's signature if the elements of
3587 the array aren't themselves arrays.
3589 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3590 array of objects is always sizeof(jobject), not the size of the
3591 object to which the reference points.
3593 1999-02-08 Tom Tromey <tromey@cygnus.com>
3595 * java/util/BitSet.java (and): Throw NullPointerException when
3600 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3601 if argument is negative.
3602 (clear): Correctly compute `offset'. Throw
3603 IndexOutOfBoundsException when required.
3605 (get): Likewise. Also, return correct value.
3606 (ensure): Changed meaning of argument.
3607 (toString): Wrap contents in `{}'; put spaces after commas.
3608 (hashCode): Don't try to examine elements off the end of array.
3609 (or): Correctly include bits past the end of this bit set.
3612 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3614 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3615 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3617 1999-02-04 Andrew Haley <aph@cygnus.com>
3619 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3620 '/' in signatures to '.'
3621 (Class::getName): Likewise,
3622 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3624 * java/lang/natFirstThread.cc (run): Change '/' in main's
3627 1999-02-03 Andrew Haley <aph@cygnus.com>
3629 * configure.host: -ffloat-store added when compiling libjava on
3630 x86. fdlibm apparently relies on this.
3632 * java/lang/ThreadGroup.java (add): throw an exception if the
3633 ThreadGroup has been destroyed.
3635 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3638 1999-01-27 Tom Tromey <tromey@cygnus.com>
3640 * java/lang/StringBuffer.java (StringBuffer): Handle null
3643 1999-01-21 Tom Tromey <tromey@cygnus.com>
3645 * java/lang/natFirstThread.cc (run): Don't require main to be
3648 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3650 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3652 1999-01-20 Tom Tromey <tromey@cygnus.com>
3654 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3658 (unintern): Likewise.
3659 (_Jv_NewStringUtf8Const): Likewise.
3661 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3662 Character.isLetter, to see if character is self-quoting. Also,
3663 correctly handle quoted characters.
3664 (parse): Fixed typo. Also now throws ParseException.
3666 1999-01-15 Tom Tromey <tromey@cygnus.com>
3668 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3670 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3671 _Jv_SyncInfo has `init' member.
3673 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3676 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3677 IllegalMonitorStateException if unlock fails.
3679 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3681 (_Jv_NewObjectArray): Likewise.
3683 1999-01-14 Tom Tromey <tromey@cygnus.com>
3685 * java/lang/Character.java (isJavaIdentifierPart): Allow
3686 LETTER_NUMBER characters.
3688 * chartables.pl (process_char): Fixed error messages.
3690 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3691 * chartables.pl: Updated comments. Changed detection of non-digit
3692 numeric values (no longer miss \u00b2 and friends).
3694 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3695 currency symbols and connector punctuation.
3696 (isIdentifierIgnorable): Make 7f-9f ignorable.
3698 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3699 (_Jv_NewPrimArray): Likewise.
3700 (SIZE_T_MAX): New define.
3702 * java/lang/ClassLoader.java (system): Now private and final.
3704 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3707 * configure: Rebuilt.
3708 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3710 * exception.cc: Include gansidecl.h.
3712 1999-01-14 Andrew Haley <aph@cygnus.com>
3714 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3715 corrected: they didn't treat -0.0 and NaNs correctly.
3717 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3719 * nogc.cc: Use calloc to zero out memory.
3721 1999-01-11 Tom Tromey <tromey@cygnus.com>
3723 * java/lang/natClass.cc (isInstance): Return false if this class
3724 is primitive, not if class of `obj' is primitive.
3725 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3727 * java/io/SequenceInputStream.java (close): Handle case where `in'
3730 * java/text/DateFormat.java (format): New method.
3732 * mauve-libjava: Omit java.text.DateFormat.
3734 1999-01-08 Tom Tromey <tromey@cygnus.com>
3736 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3738 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3740 (_Jv_CondNotifyAll): Likewise.
3742 * configure: Rebuilt.
3743 * configure.in: Change --enable-source-compilation logic to work
3746 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3748 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3749 and RUNTESTFLAGS from AM_MAKEFLAGS.
3750 * configure.in: AM_RUNTESTFLAGS added.
3751 * configure.host: AM_RUNTESTFLAGS added.
3752 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3753 * configure: rebuilt.
3754 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3756 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3757 argv[] made conditional because embedded targets may not have
3759 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3760 explanatory comments added in call to super.
3762 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3763 exception thrown in the test harness itself added.
3764 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3766 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3768 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3770 1999-01-06 Tom Tromey <tromey@cygnus.com>
3772 * java/io/natFile.cc (get_entry): New function.
3773 (performList): Use get_entry.
3774 * include/config.h.in: Rebuilt.
3775 * acconfig.h (HAVE_READDIR_R): New define.
3776 * configure: Rebuilt.
3777 * configure.in: Look for readdir_r.
3779 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3781 * java/util/natDate.cc: Added copyright header.
3783 1999-01-05 Tom Tromey <tromey@cygnus.com>
3785 * include/config.h.in: Rebuilt.
3786 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3787 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3788 * configure: Rebuilt.
3789 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3790 unlink, and realpath.
3791 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3792 (stat): Conditionalize on HAVE_STAT.
3794 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3795 (performMkdir): Conditionalize on HAVE_MKDIR.
3796 (performRenameTo): Conditionalize on HAVE_RENAME.
3797 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3799 * include/config.h.in: Rebuilt.
3800 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3801 * configure: Rebuilt.
3802 * configure.in: Check for gmtime_r and localtime_r. For cross
3803 builds, assume they exist.
3805 * mauve-libjava: Include java.text.DateFormatSymbols again.
3806 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3807 from setAmPmStrings.
3809 * mauve-libjava: Omit java.text.DateFormatSymbols.
3811 1999-01-04 Tom Tromey <tromey@cygnus.com>
3813 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3815 * java/io/LineNumberReader.java (read): Decrement `count' in
3818 * java/io/BufferedWriter.java (write): Correctly determine when
3819 incoming data would overrun buffer. Flush buffer if write causes
3822 * java/io/BufferedOutputStream.java (write): Increment `count'
3823 after copying data into buffer.
3825 * java/io/FilterOutputStream.java (close): Call flush first.
3827 * java/io/PipedReader.java (read): If read causes `out' to catch
3828 up with `in', then set `in' to -1.
3830 * java/io/LineNumberInputStream.java (read): If no bytes read,
3831 return -1. If no bytes requested, return 0.
3833 * java/lang/StringBuffer.java (insert): If `str' is null, use
3836 1998-12-30 Anthony Green <green@cygnus.com>
3839 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3841 1998-12-23 Tom Tromey <tromey@cygnus.com>
3843 * java/io/PushbackInputStream.java (read): `off' already includes
3846 1998-12-17 Tom Tromey <tromey@cygnus.com>
3848 * Makefile.in: Rebuilt.
3849 * Makefile.am (GCJ_canadian): Include target_alias.
3851 * java/lang/natFirstThread.cc (run): Require main's class to be
3854 1998-12-16 Tom Tromey <tromey@cygnus.com>
3856 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3858 * java/util/ResourceBundle.java (getBundle): Throw
3859 NullPointerException if locale argument is null.
3861 * java/lang/natClass.cc (forName): Throw NullPointerException if
3863 Include NullPointerException.h.
3865 1998-12-14 Tom Tromey <tromey@cygnus.com>
3867 * java/lang/Character.java (Character): Implement Comparable.
3868 (compareTo): New methods.
3870 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3871 correct country and language codes.
3872 (UK, US): New constants.
3873 (setDefault): Language codes are lower-case.
3875 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3876 (getDeclaredConstructors): Likewise.
3877 (getDeclaredField): Likewise.
3878 (getDeclaredFields): Likewise.
3879 (getDeclaredMethod): Likewise.
3880 (getDeclaredMethods): Likewise.
3881 (getField): Likewise.
3882 (getFields): Likewise.
3883 (getMethod): Likewise.
3884 (getMethods): Likewise.
3885 * java/lang/Class.java: Declare new methods.
3886 * java/lang/Class.h: Declare new methods.
3888 * java/lang/natString.cc: Removed `#pragma implementation'.
3889 * include/cni.h (_Jv_GetStringChars): New function.
3890 * Makefile.in: Rebuilt.
3891 * Makefile.am (java/lang/String.h): Don't generate definition for
3894 * java/lang/natString.cc: Added `#pragma implementation'.
3896 * Makefile.in: Rebuilt.
3897 * Makefile.am (libjava.zip): Put build directory first in class
3898 path to avoid bug in compiler.
3900 1998-12-14 Anthony Green <green@cygnus.com>
3902 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3904 * include/javaprims.h: Add EventObject, ListResourceBundle and
3907 1998-12-13 Anthony Green <green@cygnus.com>
3909 * mauve-libjava: Run the ResourceBundle tests.
3911 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3914 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3916 * configure.in, configure: Make --enable-gcj-classes and
3917 --enable-source-compilation the default. (Nervously...) Yeah!
3918 Based on a patch from Tom Tromey.
3920 1998-12-13 Tom Tromey <tromey@cygnus.com>
3922 * java/util/EventObject.java: New file.
3923 * java/util/EventListener.java: New file.
3925 * include/javaprims.h: Updated class declarations.
3926 * Makefile.in: Rebuilt.
3927 * Makefile.am (nat_headers): Added Constructor.h.
3928 (java/lang/String.h): Don't inline String::length().
3929 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3930 * java/lang/Class.java (initializeClass, hackRunInitializers,
3931 hackTrampoline): No need to mark `final'.
3932 (getConstructor, getConstructors): Declare.
3933 * java/lang/reflect/Field.java (equals): New method.
3934 * java/lang/natClass.cc (getConstructor): New method.
3935 (getConstructors): Likewise.
3936 Include Method.h, Field.h, Constructor.h.
3937 * java/lang/reflect/Constructor.java: New file.
3938 * java/lang/reflect/Method.java (toString): No space before open
3940 (equals): Simplified.
3942 1998-12-13 Anthony Green <green@cygnus.com>
3944 * java/util/ResourceBundle.java: New file.
3945 * java/util/ListResourceBundle.java: New file.
3947 1998-12-12 Tom Tromey <tromey@cygnus.com>
3949 * java/lang/System.java (in, out, err): Now buffered streams by
3952 * include/javaprims.h: Updated class declarations.
3953 * Makefile.in: Rebuilt.
3954 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3955 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3957 (nat_files): Added natMethod.o.
3958 * java/lang/reflect/natMethod.cc: New file.
3959 * java/lang/reflect/Field.java (Field): Now extends
3961 * java/lang/reflect/AccessibleObject.java: New file.
3962 * java/lang/reflect/InvocationTargetException.java: New file.
3964 1998-12-11 Tom Tromey <tromey@cygnus.com>
3966 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3967 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3968 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3970 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3972 1998-12-09 Tom Tromey <tromey@cygnus.com>
3974 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3977 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3978 character is already titlecase.
3980 * java/lang/Character.java (isJavaLetter): Follow spec.
3981 (isJavaLetterOrDigit): Likewise.
3983 * java/util/GregorianCalendar.java (gregorianCutover): Append
3986 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3988 1998-12-08 Tom Tromey <tromey@cygnus.com>
3990 * java/lang/reflect/Modifier.java (toString): Replace second
3991 `static' with `synchronized'.
3993 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3994 * java/lang/Object.h (Object::hack12_6): Declare.
3995 * java/lang/Object.java (hack12_6): New function.
3997 1998-12-07 Tom Tromey <tromey@cygnus.com>
3999 * include/java-array.h (__JArray::clone): Removed decl.
4000 * prims.cc (__JArray::clone): Removed.
4001 * java/lang/natObject.cc (clone): Incorporate code to clone an
4004 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4005 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4006 Correctly use dtable_method_count.
4008 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4010 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4013 1998-12-06 Anthony Green <green@cygnus.com>
4015 * mauve-libjava: Don't test ResourceBundle.
4017 1998-12-04 Tom Tromey <tromey@cygnus.com>
4019 More JDK 1.2 spec fixes:
4020 * java/util/Date.java (millis): Now private.
4021 * java/text/DateFormat.java (DateFormat): Constructor now
4023 * java/lang/Void.java (Void): New private constructor.
4024 * java/lang/System.java (System): New private constructor.
4025 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4027 (currentClassLoader): New method.
4028 (currentLoadedClass): New method.
4029 * java/lang/Math.java (Math): New private constructor.
4030 * java/lang/Compiler.java (Compiler): New private constructor.
4031 * java/lang/Class.java (Class): New private constructor.
4032 * java/lang/Double.java (toString): Removed access specifier from
4033 two-argument `toString' method.
4035 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4037 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4038 causes it to be flushed from an fp register (where it may be
4039 longer than double precision) to a double in memory. This is
4040 essential to ensure correct rounding behaviour.
4042 1998-12-04 Tom Tromey <tromey@cygnus.com>
4044 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4047 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4048 explaining apparent divergence from JDK 1.2.
4050 1998-12-04 Per Bothner <bothner@cygnus.com>
4052 * include/no-threads.h: Remove unused parameter names.
4053 This silences a bunch of warnings.
4055 1998-12-04 Tom Tromey <tromey@cygnus.com>
4057 * include/config.h.in: Rebuilt.
4058 * acconfig.h (HAVE_CTIME_R): New symbol.
4060 1998-12-03 Tom Tromey <tromey@cygnus.com>
4062 * mauve-libjava: Added many more categories to reject.
4064 Changes to follow JDK1.2 spec:
4065 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4066 setErr, setIn, setOut): No need to be `final'.
4067 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4068 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4069 * java/lang/Object.java (wait): `nanos' argument is an int.
4070 * java/lang/VirtualMachineError.java: Class is abstract.
4071 * java/lang/ThreadDeath.java: Made constructors public.
4072 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4075 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4077 * java/text/DateFormatSymbols.java (getAmPmStrings,
4078 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4080 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4082 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4083 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4084 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4087 * java/lang/IllegalThreadStateException.java
4088 (IllegalThreadStateException): Changed extending class to match spec.
4090 * java/lang/NumberFormatException.java
4091 (java/lang/NumberFormatException): Changed extending class to match
4094 * java/util/Observer.java (Observer): Changed sig to match JCL.
4096 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4098 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4099 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4100 signature to match JDK 1.1 and 1.2.
4102 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4104 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4105 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4106 * Makefile.in, configure: Rebuilt.
4108 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4111 1998-12-02 Tom Tromey <tromey@cygnus.com>
4113 * mauve-libjava: New file.
4115 The remaining `-W -Wall' fixes:
4116 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4118 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4120 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4122 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4124 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4126 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4128 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4130 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4132 * java/lang/mprec.c (Balloc): Removed unused variable.
4133 (mult): Added parentheses per gcc suggestion.
4134 (pow5mult): Likewise.
4139 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4140 suggestion. Added cast to `int' to avoid signed/unsigned
4142 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4144 (IsAssignableFrom): Likewise.
4145 (_Jv_JNI_GetObjectField): Likewise.
4146 (_Jv_JNI_GetByteField): Likewise.
4147 (_Jv_JNI_GetShortField): Likewise.
4148 (_Jv_JNI_GetIntField): Likewise.
4149 (_Jv_JNI_GetLongField): Likewise.
4150 (_Jv_JNI_GetStringLength): Likewise.
4151 (_Jv_JNI_ToReflectedField): Likewise.
4152 (_Jv_JNI_FromReflectedField): Likewise.
4153 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4155 * Makefile.in: Rebuilt.
4156 * Makefile.am (AM_CFLAGS): Define conditionally.
4157 (WARNINGS): New macro.
4158 (AM_CXXFLAGS): Include WARNINGS.
4159 * configure: Rebuilt.
4160 * configure.in (USING_GCC): New conditional.
4162 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4164 * java/lang/Character.java: Changed classification constants to
4165 type `byte' to match JDK 1.2 docs.
4167 1998-12-01 Tom Tromey <tromey@cygnus.com>
4169 Some fixes to be `-W -Wall' clean:
4170 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4171 (_Jv_MarkArray): Likewise.
4172 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4173 (to_upper_title): Likewise.
4174 (isTitleCase): Likewise.
4175 (toTitleCase): Likewise.
4176 (getNumericValue): Likewise.
4177 (isLowerCase): Likewise.
4178 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4179 (avoids compiler warning).
4180 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4182 (getDeclaringClass): Likewise.
4183 (_Jv_LookupInterfaceMethod): Likewise.
4184 (_Jv_NewClass): Removed name of unused parameter.
4185 * exception.cc (_Jv_type_matcher): Removed unused variable.
4186 (_Jv_setup_eh_info): Removed name of unused parameter.
4187 * prims.cc (_Jv_NewArray): Always return a value.
4188 (_Jv_FindClassFromSignature): Likewise.
4189 * include/java-field.h (getNameUtf8Const): Removed name of unused
4191 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4193 (_Jv_ThreadSetPriority): Likewise.
4195 * java/lang/natString.cc (hashChars): Now static.
4197 * java/lang/FirstThread.java (FirstThread): Now final.
4199 * java/io/File.java (performMkdir, performRenameTo): Now private.
4201 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4202 if no time function defined.
4204 * configure: Rebuilt.
4205 * configure.in: Look for ctime_r, ctime.
4206 * java/util/Date.java (toString): Now native.
4207 * java/util/natDate.cc (toString): Rewrote.
4209 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4211 * Add LDFLAGS line to allow TX39 test cases to link when cross
4214 1998-11-23 Anthony Green <green@cygnus.com>
4216 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4217 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4218 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4219 include/java-array.h, include/java-assert.h, include/java-field.h,
4220 include/javaprims.h, include/jni.h, include/jvm.h,
4221 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4222 include/quick-threads.h, java/io/BufferedInputStream.java,
4223 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4224 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4225 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4226 java/io/CharArrayWriter.java,
4227 java/io/CharConversionException.java, java/io/DataInput.java,
4228 java/io/DataInputStream.java, java/io/DataOutput.java,
4229 java/io/DataOutputStream.java, java/io/EOFException.java,
4230 java/io/File.java, java/io/FileDescriptor.java,
4231 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4232 java/io/FileOutputStream.java, java/io/FileReader.java,
4233 java/io/FileWriter.java, java/io/FilenameFilter.java,
4234 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4235 java/io/FilterReader.java, java/io/FilterWriter.java,
4236 java/io/IOException.java, java/io/InputStream.java,
4237 java/io/InputStreamReader.java,
4238 java/io/InterruptedIOException.java,
4239 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4240 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4241 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4242 java/io/PipedReader.java, java/io/PipedWriter.java,
4243 java/io/PrintStream.java, java/io/PrintWriter.java,
4244 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4245 java/io/RandomAccessFile.java, java/io/Reader.java,
4246 java/io/SequenceInputStream.java, java/io/Serializable.java,
4247 java/io/StreamTokenizer.java,
4248 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4249 java/io/StringWriter.java, java/io/SyncFailedException.java,
4250 java/io/UTFDataFormatException.java,
4251 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4252 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4253 java/io/natFileDescriptorPosix.cc,
4254 java/lang/AbstractMethodError.java,
4255 java/lang/ArithmeticException.java,
4256 java/lang/ArrayIndexOutOfBoundsException.java,
4257 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4258 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4259 java/lang/Class.java, java/lang/ClassCastException.java,
4260 java/lang/ClassCircularityError.java,
4261 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4262 java/lang/ClassNotFoundException.java,
4263 java/lang/CloneNotSupportedException.java,
4264 java/lang/Cloneable.java, java/lang/Comparable.java,
4265 java/lang/Compiler.java, java/lang/Double.java,
4266 java/lang/Error.java, java/lang/Exception.java,
4267 java/lang/ExceptionInInitializerError.java,
4268 java/lang/FirstThread.java, java/lang/Float.java,
4269 java/lang/IllegalAccessError.java,
4270 java/lang/IllegalAccessException.java,
4271 java/lang/IllegalArgumentException.java,
4272 java/lang/IllegalMonitorStateException.java,
4273 java/lang/IllegalStateException.java,
4274 java/lang/IllegalThreadStateException.java,
4275 java/lang/IncompatibleClassChangeError.java,
4276 java/lang/IndexOutOfBoundsException.java,
4277 java/lang/InstantiationError.java,
4278 java/lang/InstantiationException.java, java/lang/Integer.java,
4279 java/lang/InternalError.java, java/lang/InterruptedException.java,
4280 java/lang/LinkageError.java, java/lang/Long.java,
4281 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4282 java/lang/NoClassDefFoundError.java,
4283 java/lang/NoSuchFieldError.java,
4284 java/lang/NoSuchFieldException.java,
4285 java/lang/NoSuchMethodError.java,
4286 java/lang/NoSuchMethodException.java,
4287 java/lang/NullPointerException.java, java/lang/Number.java,
4288 java/lang/NumberFormatException.java, java/lang/Object.h,
4289 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4290 java/lang/Process.java, java/lang/Runnable.java,
4291 java/lang/Runtime.java, java/lang/RuntimeException.java,
4292 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4293 java/lang/Short.java, java/lang/StackOverflowError.java,
4294 java/lang/String.java, java/lang/StringBuffer.java,
4295 java/lang/StringIndexOutOfBoundsException.java,
4296 java/lang/System.java, java/lang/Thread.java,
4297 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4298 java/lang/Throwable.java, java/lang/UnknownError.java,
4299 java/lang/UnsatisfiedLinkError.java,
4300 java/lang/UnsupportedOperationException.java,
4301 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4302 java/lang/Void.java, java/lang/natCharacter.cc,
4303 java/lang/natClass.cc, java/lang/natDouble.cc,
4304 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4305 java/lang/natMath.cc, java/lang/natObject.cc,
4306 java/lang/natRuntime.cc, java/lang/natString.cc,
4307 java/lang/natSystem.cc, java/lang/natThread.cc,
4308 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4309 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4310 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4311 java/text/FieldPosition.java, java/text/Format.java,
4312 java/text/NumberFormat.java, java/text/ParseException.java,
4313 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4314 java/util/BitSet.java, java/util/Calendar.java,
4315 java/util/ConcurrentModificationException.java,
4316 java/util/Date.java, java/util/Dictionary.java,
4317 java/util/EmptyStackException.java, java/util/Enumeration.java,
4318 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4319 java/util/Locale.java, java/util/MissingResourceException.java,
4320 java/util/NoSuchElementException.java, java/util/Observable.java,
4321 java/util/Observer.java, java/util/Properties.java,
4322 java/util/Random.java, java/util/SimpleTimeZone.java,
4323 java/util/Stack.java, java/util/StringTokenizer.java,
4324 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4325 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4328 * exception.cc: Include eh-common.h instead of duplicating
4331 1998-11-23 Tom Tromey <tromey@cygnus.com>
4333 * configure.host: Don't add `-O2' to libjava_flags. Only add
4334 `-Os' to libjava_flags once.
4336 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4338 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4339 * Makefile.in: likewise
4340 * acconfig.h: add ECOS conditional for configure.h
4341 * config.h.in: likewise
4342 * configure: add test for --with-ecos
4343 * configure.in: likewise
4344 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4345 rename call to avoid name clash.
4346 * java/lang/natSystem.cc: add eCos clock support.
4347 * java/util/natGregorianCalendar.cc: add eCos support.
4349 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4351 * Makefile.am, Makefile.in, configure.host: tx39 build option
4354 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4356 * java/io/BufferedReader.java: Added more comments for clarity.
4357 (mark): Used more mnemonic name for local var extraBuffSpace.
4359 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4360 confusion with private method of same name in superclass.
4361 (skipRedundantLF): Set fields in special case to avoid infinite
4362 recursion. Check if markPos has been invalidated in special case.
4363 (readLine): Rewritten to use readLine method of superclass.
4364 (skip): Incorporated code from lineEnd.
4366 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4368 * java/io/BufferedReader.java (readLine): New method.
4369 (lineEnd): new private method.
4370 (mark): Track special case for readLine of getting '\r' at the
4377 * java/io/InputStreamReader.java (read): Return number chars skipped
4378 rather than requested.
4380 * java/lang/StringBuffer.java (append): Update count and differentiate
4381 between field and local variable.
4383 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4384 seconds. Deal with military style time.
4385 (parse): Consistently treat all timezones in minutes until final
4386 calculation. Flag as non-local timezone. Return value in milliseconds.
4387 (setTime): Adjust for year offset from 1900.
4388 (UTC): Adjust for year offset from 1900.
4390 1998-11-17 Tom Tromey <tromey@cygnus.com>
4392 * configure: Rebuilt.
4393 * configure.in: Switch on host, not target.
4395 * Makefile.in: Rebuilt.
4396 * Makefile.am (GCJ_no): New macro.
4397 (GCJ): Use @CANADIAN@.
4398 (GCJH_no): New macro
4399 (GCJH_canadian): New macro.
4400 (GCJH): Use @CANADIAN@.
4401 (ZIP_no): New macro.
4402 (ZIP_canadian): New macro.
4403 (ZIP): Use @CANADIAN@.
4404 * aclocal.m4, configure: Rebuilt.
4405 * configure.in (CANADIAN): Compute and subst.
4407 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4409 * java/io/FileDescriptor.java (finalize): Only close file
4410 descriptor if valid.
4412 1998-11-17 Tom Tromey <tromey@cygnus.com>
4414 * prims.cc (_Jv_InitRuntime): Removed.
4416 1998-11-16 Tom Tromey <tromey@cygnus.com>
4418 * java/io/FileOutputStream.java (close): Only close file
4419 descriptor if valid.
4420 (finalize): New method.
4422 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4423 (_Jv_NewPrimArray): Likewise.
4424 * boehm.cc (_Jv_RegisterFinalizer): Use
4425 GC_REGISTER_FINALIZER_NO_ORDER.
4426 (GC_GENERIC_MALLOC): New define.
4427 (_Jv_AllocObj): Use it.
4428 (_Jv_AllocArray): Likewise.
4429 (_Jv_AllocBytes): Likewise.
4430 (_Jv_MarkObj): Just return if vtbl not set.
4431 (_Jv_MarkArray): Likewise.
4432 (MAYBE_MARK): New macro; use everywhere.
4433 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4435 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4437 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4438 to a jlong before calculation to prevent overflow.
4440 1998-11-16 Tom Tromey <tromey@cygnus.com>
4442 * Makefile.in: Rebuilt.
4443 * Makefile.am (nat_headers): Fixed typo.
4445 1998-11-15 Tom Tromey <tromey@cygnus.com>
4447 * java/lang/Class.h (Class::getName): Removed definition.
4448 * Makefile.in: Rebuilt.
4449 * Makefile.am (nat_headers): Added InstantiationException.h,
4450 NoSuchMethodException.h.
4451 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4452 (init_name): New global.
4453 (hackRunInitializers): Use clinit_name.
4454 Include InstantiationException.h, NoSuchMethodException.h.
4455 (newInstance): Do some error checking (but not all). Call
4457 (forName): Throw exception if class not found.
4458 (getName): New method.
4459 (forName): Transform class name from external format to internal
4460 format before lookup.
4462 1998-11-15 Anthony Green <green@cygnus.com>
4464 * java/lang/Class.h (Class::forName): Method is static.
4466 * java/lang/natClass.cc (newInstance): Add simple implementation.
4469 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4471 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4472 int), for compatibility with jc1.
4474 1998-11-14 Tom Tromey <tromey@cygnus.com>
4476 * include/config.h.in: Rebuilt.
4477 * acconfig.h (LINUX_THREADS): New define.
4478 * configure: Rebuilt.
4479 * configure.in: Define LINUX_THREADS if using POSIX threads on
4480 Linux. Look for pthread_mutexattr_setkind_np function.
4481 * posix-threads.cc (throw_cleanup): New function.
4482 (really_start): Push cleanup function.
4483 (_Jv_ThreadCancel): New function.
4484 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4485 (_Jv_ThreadInitData): Set `exception' field in new structure.
4486 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4488 (_Jv_ThreadWait): New function.
4489 (_Jv_InitThreads): Initialize daemon globals.
4490 (FLAG_DAEMON): New macro.
4491 (really_start): Notify daemon_cond when non-daemon thread exits.
4492 Include <java/lang/System.h>.
4493 (struct starter): `object' field now a thread.
4494 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4495 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4496 (_Jv_ThreadWait): Removed definition.
4497 (_Jv_Thread_t): Added `exception' field.
4498 (_Jv_ThreadCancel): Removed definition.
4500 1998-11-13 Tom Tromey <tromey@cygnus.com>
4502 * Makefile.in: Rebuilt.
4503 * Makefile.am (libjava.zip): Compute javac before changing
4506 * Makefile.in: Rebuilt.
4507 * Makefile.am (libjava.zip): Include directory entries.
4509 * Makefile.in: Rebuilt.
4510 * Makefile.am (expanded): New macro.
4513 1998-11-12 Tom Tromey <tromey@cygnus.com>
4515 * prims.cc (clone): New function.
4516 * include/java-array.h (__JArray::clone): Removed definition.
4518 * java/lang/natObject.cc (clone): Don't assert that class is not
4519 an array; array's `clone' method just calls this one.
4521 * Makefile.in: Rebuilt.
4522 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4523 Now creates zip file. Changed all users.
4525 (data_DATA): New macro.
4527 1998-11-11 Tom Tromey <tromey@cygnus.com>
4529 * configure: Rebuilt.
4530 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4532 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4534 * java/io/InputStream.java (reset): Add msg to thrown exception.
4536 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4538 * java/io/LineNumberInputStream.java: Rewritten.
4540 * java/io/StringBufferInputStream.java: Removed extraneous import.
4542 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4544 * java/io/StringBufferInputStream.java: Rewritten.
4546 * java/util/Date.java (parseMonth): Optimize.
4547 (parseDayOfWeek): Created.
4548 (parse): Optimize to use parseDayOfWeek.
4550 1998-11-11 Tom Tromey <tromey@cygnus.com>
4552 * java/lang/StringBuffer.java (append): Handle case where STR is
4555 * include/javaprims.h: Regenerated class declarations.
4557 * configure: Rebuilt.
4558 * configure.in: Added --enable-gcj-classes,
4559 --enable-single-compilation, --enable-source-compilation flags.
4560 * Makefile.in: Rebuilt.
4561 * Makefile.am (java_io_files): New macro.
4562 (java_lang_files): Likewise.
4563 (java_text_files): Likewise.
4564 (java_util_files): Likewise.
4565 (java_files): Use new macros.
4566 (java-io.o): New target.
4567 (java-lang.o): Likewise.
4568 (java-text.o): Likewise.
4569 (java-util.o): Likewise.
4570 (src_io_files): New macro.
4571 (src_lang_files): Likewise.
4572 (src_text_files): Likewise.
4573 (src_util_files): Likewise.
4574 (class_io_files): New macro.
4575 (class_lang_files): Likewise.
4576 (class_text_files): Likewise.
4577 (class_util_files): Likewise.
4578 (class_files): Use new macros.
4579 (javao_files): Define conditionally.
4580 (.java.o): New target.
4581 ($(javao_files)): New target.
4583 (GCJH): Added $(EXEEXT).
4584 (CLASSPATH_ENV): Removed.
4585 (GCJCOMPILE): New macro.
4587 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4589 * java/util/Date.java (parse): Written from scratch.
4591 1998-11-11 Tom Tromey <tromey@cygnus.com>
4593 * java/lang/Throwable.java (toString): Correct sense of test for
4594 determining when to include detail message in result.
4596 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4599 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4601 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4603 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4604 (_Jv_RegisterClass): Use it.
4605 * include/jvm.h (_Jv_RegisterClasses): Declare.
4606 * java/lang/natObject.cc (init): Removed.
4607 (sync_init): Never call _Jv_InitializeSyncMutex.
4608 (_Jv_InitializeSyncMutex): Don't set `init'.
4609 * prims.cc (JvRunMain): Don't run init functions.
4611 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4613 * java/lang/natClass.cc (initializeClass): Set state before
4614 resolving constants.
4616 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4617 (STATE_RESOLVED): New macro.
4618 (initializeClass): Call resolveConstants.
4619 (hackRunInitializers): Don't call resolveConstants.
4620 (_Jv_FindArrayClass): Move short-circuit return for primitive
4621 element types earlier in function.
4623 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4625 * prims.cc (no_memory): New global.
4626 (_Jv_makeUtf8Const): Throw no_memory.
4627 (_Jv_AllocObject): Likewise.
4628 (_Jv_NewObjectArray): Likewise.
4629 (_Jv_NewPrimArray): Likewise.
4630 (JvRunMain): Initialize no_memory.
4632 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4634 * java/io/FileInputStream.java: Corrected date comment.
4635 * java/io/SequenceInputStream.java: Rewritten.
4637 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4639 * java/lang/FirstThread.java (die): New method.
4640 * java/lang/natFirstThread.cc (die): Removed.
4642 (run): Use `DIE', not `die'.
4644 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4646 * java/io/CharArrayReader.java (read): Move check into synchronized
4647 block to prevent a close while in progress.
4650 * java/io/PushbackReader.java (read): Ditto.
4653 * java/io/StringReader.java (mark): Ditto.
4658 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4660 * java/io/PipedInputStream.java: Updated status.
4661 (connect): Added code to prevent infinite recursion and to
4662 differentiate exception causes.
4663 (read): Added code to differentiate exception causes.
4664 (receive): Made exception pass string with the cause.
4666 * java/io/PipedOutputStream.java: Updated status.
4667 (connect): Added code to call connect at the other end of the pipe.
4669 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4671 * java/io/PipedInputStream.java (connect): Throw exception if
4672 already connected to the same output stream.
4673 (read): Do bounds checking first.
4675 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4677 * java/io/PipedInputStream.java: Added private boolean outClosed.
4678 (available): Removed check if output stream is open.
4679 (close): Mark the buffer as empty so available returns 0.
4680 (read): Check if the output stream was closed and then return EOF
4681 when the buffer is empty.
4682 (receive): Mark the output stream as closed when passed a -1.
4684 * java/io/PipedOutputStream.java (close): Notify the input stream
4685 that there's no more data coming.
4686 (connect): Added a FIXME comment to note more coordination needed
4687 with PipedInputStream.
4688 (flush): Added a FIXME comment to mark what this method might do
4691 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4693 * java/io/PipedInputStream.java: Rewritten.
4695 1998-10-30 Tom Tromey <tromey@cygnus.com>
4697 * java/lang/Throwable.java: Rewrote from scratch.
4699 * java/lang/Class.h (Class): Don't mention newMultiArray.
4700 * prims.cc (newMultiArray): Removed.
4701 (_Jv_NewMultiArray): Removed.
4702 (newArray): Removed.
4703 (new_multi_array): New function.
4704 (_Jv_NewMultiArray): Rewrote from scratch.
4706 * include/javaprims.h: Regenerated class declarations.
4707 * classes.pl (scan): Don't declare PrimClass.
4708 * include/cni.h (JvPrimClass): Use new names for classes.
4709 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4710 added _Jv_PrimClass.
4711 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4712 (_Jv_initPrimClass): Removed.
4713 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4714 (_Jv_AllocObject): Added comment.
4715 (_Jv_NewObjectArray): Likewise.
4716 (_Jv_NewPrimArray): Likewise.
4718 1998-10-29 Tom Tromey <tromey@cygnus.com>
4720 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4721 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4723 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4725 * java/lang/natObject.cc (init): New global.
4726 (sync_init): Call _Jv_InitializeSyncMutex if required.
4728 * Makefile.in: Rebuilt.
4729 * Makefile.am (nat_headers): Added ClassLoader.h.
4730 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4731 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4732 internalAddClass, lookupArray no longer friends.
4733 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4734 _Jv_FindArrayClass now friends.
4735 * java/lang/natClass.cc (HASH_LEN): New macro.
4736 (HASH_UTF): Likewise.
4737 (loaded_classes): New global.
4738 (_Jv_FindClass): New function.
4739 (ClassClass): New define.
4740 (_Jv_FindClassInCache): New function.
4741 (_Jv_RegisterClass): Likewise.
4742 (_Jv_NewClass): Likewise.
4744 (ObjectClass): New define.
4745 (CloneableClass): New define.
4746 * prims.cc (_Jv_FindClass): Removed.
4747 (simpleLookupClass): Removed.
4748 (insertClass): Removed.
4749 (CLASSHASHSZ): Removed.
4750 (classPool): Removed.
4751 (_Jv_RegisterClass): Removed.
4752 (internalAddClass): Removed.
4753 (ClassClass): Removed.
4754 (RuntimeClass): Removed.
4755 (lookupArray): Removed.
4756 (CloneableClass): Removed.
4757 (CLASSMAXSIG): Removed.
4758 Rearranged file to group related functions together.
4759 (_Jv_IsInstanceOf): Moved to natClass.cc.
4760 (abort_final): Removed.
4761 Removed some unused includes.
4762 (classFromSig): Removed.
4763 (_Jv_FindClassFromSignature): New function.
4764 (_Jv_initPrimClass): Renamed.
4765 (getClass): Removed.
4767 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4769 * java/io/FileDescriptor.java (finalize): Throws IOException
4770 instead of Throwable.
4772 * java/io/FileInputStream.java: Rewritten.
4774 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4775 at the end of a comment.
4777 1998-10-29 Tom Tromey <tromey@cygnus.com>
4779 * include/javaprims.h: Regenerated class declarations.
4780 * classes.pl (scan): Don't special-case ClassLoader.
4782 * prims.cc (processClass): Removed.
4783 (_Jv_InitClass): Removed.
4784 Removed all CSTATE_ macros.
4785 (resolveConstants): Removed.
4787 (_Jv_NewMultiArray): Cleaned up.
4788 * Makefile.in: Rebuilt.
4789 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4790 * java/lang/Class.h (Class): Declare new methods. processClass no
4792 * java/lang/Class.java (hackTrampoline): New method.
4793 (initializeClass): Declare.
4794 (hackRunInitializers): Declare.
4795 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4796 (initializeClass): New method.
4797 (hackRunInitializers): New method.
4798 (init_name, void_signature): Moved from prims.cc.
4799 (_Jv_InitClass): New function.
4800 (isAssignableFrom): Don't call processClass.
4801 (STATE_NOTHING): New macro.
4802 (resolveConstants): New function.
4804 (ErrorClass): New define.
4806 * java/lang/Class.java (getClassLoader): Declare.
4807 * java/lang/ClassLoader.java: Rewrote from scratch.
4809 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4810 AbstractMethodError.h, IllegalAccessError.h,
4811 NoClassDefFoundError.h.
4812 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4813 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4814 longer static. Changed return type.
4815 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4816 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4817 * prims.cc (findMethodLocal): Removed.
4818 (processClass): Use _Jv_GetMethodLocal.
4820 1998-10-28 Tom Tromey <tromey@cygnus.com>
4822 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4823 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4825 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4826 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4828 * include/jni.h: Added copyright header.
4829 * include/javaprims.h: Added copyright header.
4830 * include/java-field.h: Added copyright header.
4831 * include/java-array.h: Added copyright header.
4832 * include/cni.h: Added copyright header.
4834 * include/javaprims.h: Regenerated class declarations using
4835 classes.pl; now they are complete.
4836 * classes.pl: New file.
4838 * java/lang/natMath.cc: Include <config.h>.
4839 * java/lang/reflect/natField.cc: Include <config.h>.
4840 * java/util/NativeUtil.java: Removed.
4841 * Makefile.in: Rebuilt.
4842 * Makefile.am (nat_headers): Added Math.h.
4843 * java/lang/Math.h: Removed.
4844 * java/util/natGregorianCalendar.cc: Added copyright header.
4846 * java/lang/natFloat.cc: Added copyright header.
4847 * java/lang/Byte.java: Added copyright header.
4848 * java/lang/Void.java: Added copyright header.
4849 * java/lang/Short.java: Added copyright header.
4851 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4853 * include/javaprims.h (java::io): Added bunch of missing classes.
4855 * java/io/DataInputStream.java (readLine): Added a special case
4856 for handling BufferedInputStream data to reduce the likelihood
4857 of a pushback error.
4858 (skipBytes): Added code to handle negative number of skip bytes.
4860 * java/io/StreamTokenizer.java: Rewritten.
4862 1998-10-28 Tom Tromey <tromey@cygnus.com>
4864 * java/util/natGregorianCalendar.cc (computeFields): Call
4865 getRawOffset as a method.
4867 * include/javaprims.h (java::io): Added FilterOutputStream.
4868 * Makefile.in: Rebuilt.
4869 * Makefile.am (nat_headers): Added PrintStream.h,
4870 FilterOutputStream.h.
4871 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4873 (die): New function.
4874 (run): Die if `main' not found, is not public, or is not static.
4876 * boehm.cc (_Jv_MarkObj): Use new field names.
4877 * include/java-field.h (JvGetFirstInstanceField): Use new field
4879 (JvNumInstanceFields): Likewise.
4880 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4881 (getInterfaces): Likewise.
4882 * prims.cc (CLASS_CONSTANTS): Removed.
4883 (CLASS_CONST_SIZE): Likewise.
4884 (CLASS_CONST_TAG): Likewise.
4885 (CLASS_CONST_DATA): Likewise.
4886 (CLASS_CONST_UTF8): Likewise.
4887 (WORD2UTF): Likewise.
4888 (CLASS_CLASS): Likewise.
4889 (CLASS_PRIM_SIG): Likewise.
4890 (CLASS_ARRAY_CACHE): Likewise.
4891 (HASH_CHARS): Likewise.
4892 (hashClassName): Likewise.
4893 Many changes to use new field names.
4894 * java/lang/Class.h (Class): Renamed fields to track compiler.
4896 1998-10-27 Tom Tromey <tromey@cygnus.com>
4898 * java/lang/natClass.cc: Use #pragma implementation.
4899 (getComponentType): Moved into header.
4900 (getModifiers): Likewise.
4901 (getName): Likewise.
4902 (getSuperclass): Likewise.
4903 (isArray): Likewise.
4904 (isPrimitive): Likewise.
4905 * include/jvm.h (_Jv_FindClass): Declare.
4906 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4907 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4908 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4909 * java/lang/Class.h: Rewrote from scratch.
4910 * prims.cc: Many changes to work with new Class.h.
4911 * include/java-field.h (CLASS_FIELDS): Removed.
4912 (CLASS_SFIELDS): Likewise.
4913 (CLASS_IFIELDS): Likewise.
4914 (CLASS_NFIELDS): Likewise.
4915 (CLASS_NIFIELDS): Likewise.
4916 (CLASS_NSFIELDS): Likewise.
4917 (CLASS_FSIZE): Likewise.
4918 (JvGetFirstInstanceField): Rewrote.
4919 (JvNumInstanceFields): Likewise.
4921 * java/lang/Object.h: Added copyright comment.
4923 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4925 * java/text: New package directory.
4926 * java/text/FieldPosition.java: New class.
4927 * java/text/ParsePosition.java: New class.
4928 * java/text/ParseException.java: New Exception class.
4929 * java/text/Format.java: New class.
4930 * java/text/NumberFormat.java: New (empty placeholder) class.
4931 * java/text/DateFormatSymbols.java: New class (no Locales support).
4932 * java/text/DateFormat.java: New Format class (incomplete).
4933 * java/text/SimpleDateFormat.java: New DateFormat class.
4935 * include/javaprims.h (java::test): Added new package and classes.
4936 * java/util/Calendar.java (clone): New method.
4937 * java/util/Date.java (toString): Added non-native implementation.
4938 (parse): Made public instead of synchronized.
4939 * java/util/natDate.cc (toString): Removed.
4940 * java/util/natGregorianCalendar.cc (computeFields):
4941 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4943 1998-10-27 Tom Tromey <tromey@cygnus.com>
4945 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4947 * prims.cc (lookupArray): Added explanatory comment.
4948 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4949 class. Mark the class of each object.
4950 (_Jv_MarkArray): Mark the object's class.
4952 * configure: Rebuilt.
4953 * configure.in: Create java-gc.h.
4954 * include/boehm-gc.h: New file.
4955 * include/no-gc.h: New file.
4956 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4958 * java/lang/Object.h: Include java-gc.h.
4959 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4960 friends, if defined.
4961 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4963 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4965 1998-10-26 Tom Tromey <tromey@cygnus.com>
4967 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4968 paragraph separators, not numbers.
4970 * java/io/Writer.java (write): Removed write(char) to avoid
4972 * java/util/Properties.java: Rewrote from scratch.
4973 * include/javaprims.h (java::io): Added PrintWriter,
4974 BufferedWriter, PushbackReader.
4976 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4978 * java/lang/System.java: exit() is a static method.
4980 1998-10-26 Tom Tromey <tromey@cygnus.com>
4982 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4984 (_Jv_NewStringUtf8Const): Likewise.
4985 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4986 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4988 * java/lang/Object.h (Object): Add mark_array as friend function.
4989 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4990 _Jv_AllocBytes, to ensure that header is marked.
4991 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4993 (mark_array): Push sync_info field for array.
4995 1998-10-24 Tom Tromey <tromey@cygnus.com>
4997 * java/lang/String.java (String): Updated for StringBuffer
4999 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5001 * java/lang/StringBuffer.java: Renamed fields to conform to
5002 serialization spec: buffer->value, next->count, copy->shared.
5004 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5006 * java/util/TimeZone.java: New class.
5007 * java/util/SimpleTimeZone.java: New class.
5008 * java/util/Locale.java: New file.
5009 * java/util/Calendar.java: Make almost complete.
5010 * java/util/GregorianCalendar.java
5011 * java/util/natGregorianCalendar.cc: New file.
5012 * java/util/Date.java: Re-written from scratch.
5013 * java/util/natDate.cc (setTime): Removed - no longer native.
5014 * include/javaprims.h (java::util): Add new classes.
5015 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5016 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5018 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5020 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5021 returning it as a jint.
5023 1998-10-23 Tom Tromey <tromey@cygnus.com>
5025 * prims.cc (arg_vec, main_group, main_thread): New globals.
5026 (JvRunMain): Use them.
5028 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5030 * java/io/DataInputStream.java: Rewritten.
5032 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5033 tertiary bytes with 0x80 per spec.
5035 1998-10-23 Tom Tromey <tromey@cygnus.com>
5037 * java/lang/String.java (init): Changed name of `copy' argument.
5038 * java/lang/natString.cc (init): Inverted sense of `copy'
5041 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5042 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5043 * boehm.cc (ObjectClass): New define.
5044 (ClassClass): Likewise.
5045 (mark_obj): Special-case Object and Class.
5047 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5049 * java/util/BitSet.java: Rewrote from scratch.
5051 * prims.cc (lookupArray): Removed useless cast.
5053 * java/lang/natObject.cc: Use `#pragma implementation'.
5055 * java/lang/String.java (init): Added `copy' argument.
5056 (String): Look in StringBuffer to find char array.
5057 * java/lang/natString.cc (init): Added `copy' argument.
5058 * java/lang/StringBuffer.java: Rewrote from scratch.
5060 * java/lang/Compiler.java: Rewrote from scratch.
5061 * java/lang/Throwable.java: Don't use NativeLang.
5062 * include/javaprims.h (java::lang): Don't mention NativeLang.
5063 * java/lang/Process.java: Rewrote from scratch.
5064 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5066 (currentClassLoader): Likewise.
5067 (currentLoadedClass): Likewise.
5068 * java/lang/natClass.cc (getClassLoader): Commented out.
5069 * java/lang/Class.java (getClassLoader): Commented out.
5070 * java/lang/Compiler.java: Removed.
5071 * java/lang/NativeLang.java: Removed.
5073 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5074 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5075 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5076 (_Jv_hashUtf8String): Now static.
5077 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5078 name of return type.
5080 * java/lang/Class.h (Class): Declare checkMemberAccess.
5081 * Makefile.in: Rebuilt.
5082 * Makefile.am (nat_headers): Added Member.h.
5083 * java/lang/natClass.cc: Include Member.h.
5084 (getDeclaredClasses): Call checkMemberAccess.
5085 * java/lang/Class.java (checkMemberAccess): Call
5086 SecurityManager.checkMemberAccess.
5088 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5090 * java/lang/SecurityManager.java: Rewritten.
5092 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5094 * java/applet/Applet.java, java/applet/AppletContext.java,
5095 java/applet/AppletStub.java, java/applet/AudioClip.java,
5096 java/awt/AWTError.java, java/awt/AWTException.java,
5097 java/awt/BorderLayout.java, java/awt/Button.java,
5098 java/awt/Canvas.java, java/awt/CardLayout.java,
5099 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5100 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5101 java/awt/Color.java, java/awt/Component.java,
5102 java/awt/Container.java, java/awt/Dialog.java,
5103 java/awt/Dimension.java, java/awt/Event.java,
5104 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5105 java/awt/Font.java, java/awt/FontMetrics.java,
5106 java/awt/Frame.java, java/awt/Graphics.java,
5107 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5108 java/awt/GridLayout.java, java/awt/Image.java,
5109 java/awt/Insets.java, java/awt/Label.java,
5110 java/awt/LayoutManager.java, java/awt/List.java,
5111 java/awt/MediaTracker.java, java/awt/Menu.java,
5112 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5113 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5114 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5115 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5116 java/awt/TextArea.java, java/awt/TextComponent.java,
5117 java/awt/TextField.java, java/awt/Toolkit.java,
5118 java/awt/Window.java, java/awt/image/ColorModel.java,
5119 java/awt/image/CropImageFilter.java,
5120 java/awt/image/DirectColorModel.java,
5121 java/awt/image/FilteredImageSource.java,
5122 java/awt/image/ImageConsumer.java,
5123 java/awt/image/ImageFilter.java,
5124 java/awt/image/ImageObserver.java,
5125 java/awt/image/ImageProducer.java,
5126 java/awt/image/IndexColorModel.java,
5127 java/awt/image/MemoryImageSource.java,
5128 java/awt/image/PixelGrabber.java,
5129 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5130 java/awt/peer/CanvasPeer.java,
5131 java/awt/peer/CheckboxMenuItemPeer.java,
5132 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5133 java/awt/peer/ComponentPeer.java,
5134 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5135 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5136 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5137 java/awt/peer/MenuBarPeer.java,
5138 java/awt/peer/MenuComponentPeer.java,
5139 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5140 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5141 java/awt/peer/TextAreaPeer.java,
5142 java/awt/peer/TextComponentPeer.java,
5143 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5144 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5145 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5146 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5147 java/net/MalformedURLException.java, java/net/NativeNet.java,
5148 java/net/ProtocolException.java, java/net/ServerSocket.java,
5149 java/net/Socket.java, java/net/SocketException.java,
5150 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5151 java/net/URL.java, java/net/URLConnection.java,
5152 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5153 java/net/URLStreamHandlerFactory.java,
5154 java/net/UnknownHostException.java,
5155 java/net/UnknownServiceException.java: Removed.
5157 1998-10-22 Tom Tromey <tromey@cygnus.com>
5159 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5160 finalizer is not Object.finalize.
5161 (internalAddClass): Don't set `final' member of class.
5162 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5163 other places that know about finalize() location.
5164 * java/lang/Class.h (Class): Removed `final' field.
5166 * aclocal.m4, configure: Rebuilt.
5167 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5168 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5170 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5171 * Makefile.in: Rebuilt.
5172 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5174 1998-10-21 Tom Tromey <tromey@cygnus.com>
5176 * java/lang/Object.java (finalize): Move to be first method in
5179 * configure: Rebuilt.
5180 * configure.in (GCINCS): Include contents of boehm-cflags file.
5182 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5184 * java/lang/ArrayIndexOutOfBoundsException.java
5185 (ArrayIndexOutOfBoundsException): Fixed string literal.
5186 * java/lang/StringIndexOutOfBoundsException.java
5187 (StringIndexOutOfBoundsException): Fixed string literal.
5189 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5191 * natFileDescriptorEcos.cc added.
5192 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5194 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5196 * acconfig.h: test for __int32_t and __uint32_t added.
5197 * include/config.h.in: test for __int32_t and __uint32_t added.
5198 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5199 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5200 * configure.in: test for __int32_t and __uint32_t added.
5201 * configure: test for __int32_t and __uint32_t added.
5203 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5205 * configure.in: Test for --enable ecos and link
5206 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5207 natFileDescriptorPosix.cc
5209 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5211 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5213 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5216 * java/io/CharArrayReader.java (close): Synchronize on lock
5217 object per Reader contract.
5218 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5219 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5220 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5221 Ensure that arg passed in isn't negative.
5223 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5224 constructing the superclass.
5226 * java/io/PushbackReader.java (close): Synchronize on lock
5227 object per Reader contract.
5228 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5229 (ready): Synchronize on lock obj. Throw IOException if reader
5231 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5232 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5233 Ensure that arg passed in isn't negative.
5234 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5236 * java/io/StringReader.java: Created.
5238 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5240 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5242 (read): Removed synchronized modifier to match JCL.
5243 (reset): Removed synchronized modifier to match JCL.
5244 (skip): Removed synchronized modifier to match JCL.
5246 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5248 * java/io/PushbackReader.java (PushbackReader): Made
5249 constructors public.
5251 1998-10-17 Tom Tromey <tromey@cygnus.com>
5253 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5254 constructors public.
5256 1998-10-16 Anthony Green <green@cygnus.com>
5258 * aclocal.m4, configure: Rebuilt.
5259 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5261 * configure.host: Rewrote.
5262 * Makefile.in: Rebuilt.
5263 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5264 (AM_CFLAGS): New macro.
5265 ($(c_files)): Use COMPILE macro.
5266 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5267 automake problem(s).
5269 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5271 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5273 * java/io/CharArrayReader.java: Created.
5275 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5277 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5278 size check to allow 0 per JCL.
5280 * java/io/PushbackReader.java: Created.
5282 1998-10-16 Tom Tromey <tromey@cygnus.com>
5284 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5285 <sys/time.h> includes.
5286 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5287 * include/no-threads.h: Conditionalize <unistd.h> include on
5290 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5292 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5295 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5297 * java/io/FilterReader.java: Created.
5299 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5301 * java/io/PushbackInputStream.java: Rewritten.
5303 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5304 that size passed to constructor is legal.
5305 (read): Check that args passed in are legal.
5306 (skip): Rewritten to get rid of the temporary buffer.
5307 (refill): Added marklimit check to grow the buffer.
5309 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5311 (bytesAvail): Removed.
5312 (read): Changed bytesAvail to Math.min.
5313 (skip): Changed bytesAvail to Math.min.
5315 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5316 from the throws clause.
5317 (skip): Rewritten to use a temporary buffer.
5319 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5321 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5324 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5326 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5327 to write the double one word at a time.
5329 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5331 * java/io/BufferedInputStream.java: Rewritten.
5333 1998-10-12 Tom Tromey <tromey@cygnus.com>
5335 * jni.cc: Include config.h and stddef.h.
5337 * java/lang/Class.h (_dispatchTable): Removed again.
5338 Removed all ACC_* defines again.
5340 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5342 * Makefile.am (nat_files): Add netField.o.
5343 (libjava_a_SOURCES): Add jni.cc.
5344 (java/lang/reflect/Field.h): New rule.
5345 * Makefile.in: Re-generated.
5346 * include/javaprims.h: Add some extra class and typedefs.
5347 * include/jni.h: New file.
5350 * include/java-field.h: New file.
5351 * include/jvm.h: #include <java-field.h>.
5352 * boehm.cc: #include <java-field.h>.
5353 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5354 * java/lang/reflect/Member.java: New class.
5355 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5356 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5358 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5360 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5361 testsuite/Makefile.in: Rebuilt.
5362 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5363 * configure.host: Created.
5365 1998-10-10 Tom Tromey <tromey@cygnus.com>
5367 * java/lang/natObject.cc (sync_init): Always allocate a new
5370 1998-10-09 Tom Tromey <tromey@cygnus.com>
5372 * java/io/ByteArrayInputStream.java (mark): Renamed from
5375 * java/io/FileOutputStream.java (finalize): Removed.
5376 * java/io/FileDescriptor.java (finalize): New method.
5378 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5380 * ByteArrayInputStream.java: Corrected status comment.
5382 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5384 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5386 1998-10-08 Tom Tromey <tromey@cygnus.com>
5388 * prims.cc (lookupArray): Use static array to initialize list of
5391 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5393 * prims.cc (lookupArray): Initialize the msize for new
5396 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5398 * configure: Rebuilt.
5399 * configure.in: Check for fsync and sleep.
5400 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5402 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5403 HAVE_SLEEP. Include config.h.
5405 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5406 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5409 1998-10-08 Tom Tromey <tromey@cygnus.com>
5411 * java/io/natFile.cc: Don't include SecurityManager.h.
5412 (performList): Renamed.
5413 (performMkdir): Likewise.
5414 (performRenameTo): Likewise.
5415 (performDelete): Likewise.
5417 * java/io/File.java (performDelete): Renamed from natDelete.
5418 (list): Now written in Java.
5419 (performList): New method.
5420 (performMkdir): New method.
5421 (mkdir): Now written in Java.
5422 (performRenameTo): New method.
5423 (renameTo): Now written in Java.
5425 1998-10-06 Tom Tromey <tromey@cygnus.com>
5427 * Makefile.in: Rebuilt.
5428 * Makefile.am (ETAGS_ARGS): New macro.
5429 (TAGS_DEPENDENCIES): Likewise.
5431 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5433 * Makefile.in: Rebuilt.
5434 * Makefile.am: Use -classpath option with javac.
5436 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5438 * java/io/FileOutputStream.java (finalize): Call
5441 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5443 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5445 * java/lang/mprec.c: Ditto.
5447 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5450 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5452 * java/io/InputStream.java (skip): Make local var i a long.
5454 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5456 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5457 * prims.cc (lookupArray): Use memcpy, not memmove.
5458 * include/config.h.in: Rebuilt.
5459 * acconfig.h (HAVE_MEMCPY): Added.
5460 * configure: Rebuilt.
5461 * configure.in: Check for memcpy again.
5463 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5464 String.compareTo, not ==.
5466 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5467 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5468 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5469 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5470 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5471 into new array's dtable.
5472 (_Jv_AllocObject): Use _Jv_DispatchTable.
5473 (_Jv_NewPrimArray): Likewise.
5474 (_Jv_NewObjectArray): Likewise.
5476 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5478 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5479 offending index value.
5480 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5482 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5483 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5485 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5487 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5489 * java/io/OutputStream.java (write): Use off and len parameters to
5490 output partial byte array.
5492 * java/io/BufferedReader.java, java/io/FileReader.java,
5493 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5494 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5495 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5496 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5498 * include/javaprims.h (java::lang): Added
5499 ExceptionInInitializerError, IllegalStateException,
5500 NoSuchFieldException, and UnsupportedOperationException.
5502 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5504 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5507 * include/java-array.h (__JArray): Added clone method.
5508 * prims.cc (CloneableClass): New define.
5509 (lookupArray): Initialize array class to indicate that it
5510 implements Cloneable.
5512 * java/lang/Class.h: Removed all ACC_* defines.
5513 * prims.cc: Include Modifier.h.
5514 (_Jv_LookupInterfaceMethod): Use methods in
5515 java.lang.reflect.Modifier, not ACC_ defines.
5517 * java/lang/Class.h (Class): Declare getClasses,
5518 getDeclaredClasses, getDeclaringClass, getModifiers,
5519 * java/lang/Class.java: Rewrote from scratch.
5521 * include/javaprims.h (java::lang): Added reflect and
5523 * Makefile.in: Rebuilt.
5524 * Makefile.am (nat_headers): Added Modifier.h.
5526 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5529 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5531 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5532 instead of test and abort.
5534 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5535 remove compiler warning.
5537 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5539 * java/lang/natDouble.cc: zero terminate string.
5540 * strtod.c: Set errno if no digits are found in fraction.
5542 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5544 * java/lang/reflect/Modifier.java: New file.
5546 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5547 * java/lang/VerifyError.java: Rewrote from scratch.
5548 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5549 * java/lang/UnknownError.java: Rewrote from scratch.
5550 * java/lang/StackOverflowError.java: Rewrote from scratch.
5551 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5552 * java/lang/InternalError.java: Rewrote from scratch.
5553 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5554 * java/lang/ExceptionInInitializerError.java: New file.
5555 * java/lang/Error.java: Rewrote from scratch.
5556 * java/lang/ClassFormatError.java: Rewrote from scratch.
5557 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5558 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5559 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5560 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5561 * java/lang/LinkageError.java: Rewrote from scratch.
5562 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5564 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5566 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5567 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5569 * include/cni.h (JvAllocObject): Moved from prims.cc.
5571 * prims.cc (JvAllocObject): Moved to cni.h.
5572 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5573 (finalize_name): Removed.
5575 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5577 * java/lang/Class.h (Class): Added size() method.
5578 * prims.cc (_Jv_MonitorEnter): Removed.
5579 (_Jv_MonitorExit): Removed.
5580 * java/lang/Object.h (JvSyncInfo): Removed.
5581 * Makefile.in: Rebuilt.
5582 * Makefile.am (nat_headers): Added Cloneable.h,
5583 CloneNotSupportedException.h.
5584 * java/lang/Object.h: Rewrote.
5585 * java/lang/natObject.cc: Rewrote from scratch.
5586 * java/lang/Object.java: Rewrote from scratch.
5588 * java/io/natFile.cc: Conditionally include <dirent.h>.
5589 (list): If no <dirent.h>, always return NULL.
5590 * configure: Rebuilt.
5591 * configure.in: Check for dirent.h.
5593 * prims.cc (lookupArray): Don't use sprintf.
5595 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5602 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5603 name conflict with method.
5605 * include/javaprims.h (java::util): Added HashtableEntry.
5607 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5609 * java/util/Hashtable.java: Rewritten.
5611 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5613 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5617 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5620 * posix-threads.cc (_Jv_CondWait): Now returns int.
5621 * include/javaprims.h (java::lang): Added
5622 IllegalMonitorStateException.
5623 * Makefile.in: Rebuilt.
5624 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5625 * include/no-threads.h (_Jv_CondDestroy): Removed.
5626 (_Jv_MutexDestroy): Removed.
5627 (_Jv_CondWait): Now returns int.
5628 (_Jv_CondNotify): Likewise. Added mutex argument.
5629 (_Jv_CondNotifyAll): Likewise.
5630 (_Jv_MutexLock): Always succeed.
5631 (_Jv_MutexUnlock): Likewise.
5632 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5633 (_Jv_HaveMutexDestroy): Define.
5634 (_Jv_CondNotify): Now returns int. Added mutex argument.
5635 (_Jv_CondNotifyAll): Likewise.
5636 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5637 (_Jv_MutexDestroy): Removed.
5638 (_Jv_CondWait): Now returns int.
5639 (_Jv_CondNotify): Likewise. Added mutex argument.
5640 (_Jv_CondNotifyAll): Likewise.
5641 * java/lang/natObject.cc (finalize_sync_info): New function.
5642 (init_mutex): Initialize `init' and register finalizer if
5645 (init_mutex): Use it.
5647 (notifyAll): Use it.
5649 (notify): Throw IllegalMonitorStateException on failure.
5650 (notifyAll): Likewise.
5651 (wait): Likewise. Also, throw InterruptedException if
5653 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5654 InterruptedException.h, IllegalArgumentException.h.
5655 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5657 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5658 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5659 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5660 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5661 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5662 * quick-threads.cc: Renamed all `JvPriv' functions.
5663 * prims.cc: Renamed all `JvPriv' functions.
5664 * posix-threads.cc: Renamed all `JvPriv' functions.
5665 * nogc.cc: Renamed all `JvPriv' functions.
5666 * no-threads.cc: Renamed all `JvPriv' functions.
5667 * boehm.cc: Renamed all `JvPriv' functions.
5668 * include/quick-threads.h: Renamed all `JvPriv' functions.
5669 * include/posix-threads.h: Renamed all `JvPriv' functions.
5670 * include/no-threads.h: Renamed all `JvPriv' functions.
5671 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5673 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5675 (JvPrivCondNotify): Do nothing.
5676 (JvPrivCondNotifyAll): Do nothing.
5678 * prims.cc (processClass): Handle case where state is
5681 * java/lang/natFirstThread.cc: Include <stdlib.h>
5683 * configure: Rebuilt.
5684 * configure.in: Fixed sense of --enable-libjava-debug.
5686 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5687 it can be used afterward by the assertion.
5689 * configure: Rebuilt.
5690 * configure.in: When cross-compiling, assume alloca.
5692 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5693 __builtin_alloca (autoconf docs are wrong here).
5695 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5697 (available): Use `FD_ZERO' (typo fix).
5699 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5701 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5702 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5704 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5705 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5708 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5710 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5712 * java/lang/natDouble.cc: Declare alloca safely.
5714 * configure, include/config.h.in: Rebuilt.
5715 * configure.in: Add alloca check.
5717 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5719 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5720 condition while calling notify.
5721 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5722 (interrupt): Hold mutex for interrupt condition while calling
5725 * java/lang/natString.cc (init): Allocate and try to read `count'
5726 characters, not `count - offset' characters.
5728 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5729 Correctly compute `count'.
5731 * java/lang/Boolean.java (getBoolean): Return false if property
5734 * java/lang/System.java (setProperties): Set prop_init.
5736 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5738 * java/io/PrintStream.java (println): Use line.separator, not
5740 * java/lang/System.java (out, err): Make both autoflush streams.
5741 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5743 * include/config.h.in: Rebuilt.
5744 * acconfig.h (HAVE_MEMCPY): Removed.
5745 * configure: Rebuilt.
5746 * configure.in: Never define HAVE_MEMCPY.
5748 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5750 (_Jv_AllocString): Use JvAllocObject again.
5751 * java/lang/Class.h (thread): New field.
5752 (_Jv_AllocString): No longer a friend.
5753 * prims.cc (processClass): Removed dead code. Changed to more
5754 closely follow the Java Language Specification.
5755 (processClass): Return early if already at the right state.
5757 * prims.cc (JvNewStringUTF): Removed.
5758 * include/cni.h (JvNewStringUTF): New function.
5759 (_Jv_NewStringUTF): Declare as `extern "C"'.
5760 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5762 * java/lang/natDouble.cc: Added copyright info and header
5763 comment. Include <stdlib.h>.
5764 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5765 bytes as are chars in string.
5767 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5769 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5773 * java/lang/System.java (init_properties): Now native.
5774 * java/lang/natSystem.cc (init_properties): New method.
5775 Include java/util/Properties.h.
5777 * Makefile.in: Rebuilt.
5778 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5779 OutputStreamWriter.h, ByteArrayInputStream.h,
5780 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5781 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5782 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5783 Properties.h, Hashtable.h, Dictionary.h.
5786 * include/javaprims.h (java::io): Added Reader, Writer,
5787 InputStreamReader, OutputStreamWriter,
5788 UnsupportedEncodingException, ByteArrayInputStream,
5789 ByteArrayOutputStream, EOFException, SyncFailedException,
5790 PushbackInputStream.
5791 (java::lang): Added Cloneable.
5792 (java::util): Added NoSuchElementException, VectorEnumeration,
5793 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5795 * java/io/PipedReader.java: New file.
5797 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5799 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5802 * java/io/io-defs.h: Removed.
5804 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5805 (FileInputStream): Use new constructor. Can throw IOException.
5807 * java/lang/System.java (getProperty): Don't throw
5808 NullPointerException.
5810 * java/io/RandomAccessFile.java: Rewrote from scratch.
5812 * java/io/natFileDescriptor.cc: Include EOFException.h.
5814 (length): New method.
5815 (getFilePointer): New method.
5817 (available): New method.
5818 * java/io/FileDescriptor.java (SET, CUR): New constants.
5819 (seek, length, getFilePointer, read, available): New decls.
5821 * java/io/PipedWriter.java: New file.
5822 * java/io/StringWriter.java: New file.
5823 * java/io/CharArrayWriter.java: New file.
5824 * java/io/CharConversionException.java: New file.
5825 * java/io/BufferedWriter.java: New file.
5826 * java/io/FilterWriter.java: New file.
5827 * java/io/FileWriter.java: New file.
5829 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5830 OutputStreamWriter.h, NullPointerException.h,
5831 ByteArrayInputStream.h, InputStreamReader.h.
5832 (getBytes): New method.
5833 (init): Throw NullPointerException.
5834 (init): New function.
5835 * java/lang/String.java (getBytes): Added missing decl.
5836 (getBytes): New method.
5837 (String): Added byte[]-based constructors.
5838 (copyValueOf): Wrote.
5839 (init): Declare variant which takes byte array and encoding.
5840 Import java.io.UnsupportedEncodingException.
5842 * java/io/File.java: Rewrote from scratch.
5843 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5844 * java/io/FileDescriptor.java: Rewrote from scratch.
5845 * java/io/FilenameFilter.java: Rewrote from scratch.
5847 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5849 * java/io/SyncFailedException.java: New file.
5850 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5851 * java/io/InterruptedIOException.java: Rewrote from scratch.
5852 * java/io/FileNotFoundException.java: Rewrote from scratch.
5853 * java/io/EOFException.java: Rewrote from scratch.
5854 * java/io/IOException.java: Rewrote from scratch.
5855 * java/io/PrintStream.java: Rewrote from scratch.
5856 * java/io/DataOutputStream.java: Rewrote from scratch.
5857 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5858 * java/io/FilterOutputStream.java: Rewrote from scratch.
5859 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5860 * java/io/PipedOutputStream.java: Rewrote from scratch.
5861 * java/io/FileOutputStream.java: Rewrote from scratch.
5862 * java/io/OutputStream.java: Rewrote from scratch.
5863 * java/io/DataOutput.java: Rewrote from scratch.
5865 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5867 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5869 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5871 * configure.in: Add --enable-libjava-debug
5873 * Makefile.am (nat_headers): Add java/lang/Float.h and
5876 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5878 * Makefile.in, configure, include/config.h.in: Rebuilt.
5880 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5882 * java/lang/Float.java: Rewritten
5883 * java/lang/Double.java: Rewritten
5884 * java/lang/natFloat.cc: toString() added.
5885 * java/lang/natDouble.cc: toString() added.
5886 * java/lang/natDouble.cc: doubleValueOf() added.
5887 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5888 java/lang/strtod.c: added.
5889 * ieeefp.h: __sparc added.
5890 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5892 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5894 * include/javaprims.h (java::lang): Added
5895 CloneNotSupportedException.
5897 * java/lang/Object.java (clone): No longer native. Implemented.
5898 * java/lang/natObject.cc (clone): Removed.
5900 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5902 * prims.cc: Don't make definitions `extern "C"'.
5903 (_Jv_RegisterClass): Renamed from registerClass.
5904 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5905 (_Jv_NewArray): Likewise.
5906 (_Jv_NewMultiArray): Likewise.
5907 (_Jv_CheckCast): Likewise.
5908 (_Jv_LookupInterfaceMethod): Likewise.
5909 (_Jv_CheckArrayStore): Likewise.
5910 (_Jv_RegisterClass): Likewise.
5912 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5913 * configure: Rebuilt.
5914 * configure.in: Don't check for fmod; it is provided by the fdlibm
5916 * prims.cc (fmod): Removed.
5918 * java/lang/natString.cc (charAt): Use _Jv_uint.
5919 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5920 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5921 (equalUtf8Consts): Likewise.
5922 (internalAddClass): Use _Jv_uint.
5923 (processClass): Likewise.
5924 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5925 (_Jv_uint): Renamed from uint32.
5926 (struct _Jv_Utf8Const): Changed members to use new type names.
5928 * configure: Rebuilt.
5929 * configure.in: Don't check for memcpy. Require memmove and a way
5931 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5933 (currentTimeMillis): Don't use #error.
5935 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5937 * java/lang/Math.java: static member random renamed to random_ to
5938 avoid conflict with member function of the same name.
5939 * include/javaprims.h: java.util.Random added.
5941 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5943 * include/java-chartables.h: Regenerated.
5944 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5947 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5949 * java/lang/Math.java: Rewritten.
5950 * java/lang/natMath.cc: New file.
5951 * Files added from fdlibm:
5952 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5953 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5954 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5955 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5956 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5957 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5958 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5959 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5960 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5961 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5962 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5963 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5964 java/lang/k_cos.c, java/lang/sf_ceil.c,
5965 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5966 java/lang/ieeefp.h, java/lang/fdlibm.h
5967 * Makefile.am: rules added for compiling C files from fdlibm.
5969 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5971 * chartables.pl: Minor documentation fixes.
5973 * configure: Rebuilt.
5974 * configure.in: Fixed --help output for --enable-fast-character.
5976 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5978 * configure: Rebuilt.
5979 * configure.in: Recognize --enable-fast-character.
5980 * acconfig.h (COMPACT_CHARACTER): New define.
5981 * include/config.h.in: Rebuilt.
5982 * include/java-chartables.h: New file.
5983 * Makefile.in: Rebuilt.
5984 * Makefile.am (nat_files): Added natCharacter.o.
5985 * java/lang/natCharacter.cc: New file.
5986 * chartables.pl (set_attribute): New function.
5987 (@attributes, @second_attributes): New globals.
5988 ($ROMAN_START, $ROMAN_END): Likewise.
5989 (process_char): Call set_attribute when required.
5990 (print_char): Just print hex value.
5991 (print_block): Generate C++ syntax.
5992 (print_numerics): Likewise.
5993 (print_single_map): Likewise.
5994 (print_all_block): Likewise.
5995 (print_case_table): Likewise.
5996 (print_fast_tables): New function.
5997 Generate C++ code suitable for a header file.
5998 * java/lang/Character.java (table_search): Removed.
5999 (digit_value): Now native.
6000 (getNumericValue): Likewise.
6001 (getType): Likewise.
6002 Removed all automatically-generated tables.
6003 (Tamil_Digit_One): Removed.
6004 (isSpaceChar): Now native.
6005 (isTitleCase): Likewise.
6006 (isLowerCase): Likewise.
6007 (isUpperCase): Likewise.
6008 (toLowerCase): Likewise.
6009 (toTitleCase): Likewise.
6010 (toUpperCase): Likewise.
6011 (isDefined): Fixed sense of test.
6013 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6015 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6017 (regionMatches): Likewise.
6019 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6021 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6023 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6025 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6028 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6031 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6033 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6035 * prims.cc (instanceof_class): Removed.
6036 (instanceof_array): Likewise.
6037 (instanceof): Likewise.
6038 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6039 (_Jv_CheckCast): Likewise.
6040 * java/lang/natClass.cc (isAssignableFrom): New method.
6041 * java/lang/Class.java (isAssignableFrom): Now native.
6043 * include/cni.h (JvThrow): Use `extern inline'.
6044 (JvAllocObject): Likewise.
6045 (JvInitClass): Likewise.
6047 * java/lang/natSystem.cc (arraycopy): Only check class of source
6050 * prims.cc (_Jv_CheckArrayStore): Wrote.
6051 (_Jv_MonitorEnter): Prefer `JvThrow'.
6052 Include ArrayStoreException.h.
6053 (_Jv_CheckCast): Indentation cleanup.
6055 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6057 * chartables.pl: New file.
6058 * java/lang/Character.java: Rewrote from scratch.
6060 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6062 * java/lang/ArithmeticException.java,
6063 java/lang/ArrayIndexOutOfBoundsException.java,
6064 java/lang/ArrayStoreException.java,
6065 java/lang/ClassCastException.java,
6066 java/lang/ClassNotFoundException.java,
6067 java/lang/CloneNotSupportedException.java,
6068 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6069 java/lang/IllegalArgumentException.java,
6070 java/lang/IllegalMonitorStateException.java,
6071 java/lang/IllegalThreadStateException.java,
6072 java/lang/IndexOutOfBoundsException.java,
6073 java/lang/InstantiationException.java,
6074 java/lang/InterruptedException.java,
6075 java/lang/NegativeArraySizeException.java,
6076 java/lang/NoSuchMethodException.java,
6077 java/lang/NullPointerException.java,
6078 java/lang/NumberFormatException.java,
6079 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6080 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6082 * java/lang/IllegalStateException.java,
6083 java/lang/NoSuchFieldException.java,
6084 java/lang/UnsupportedOperationException.java: Created.
6086 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6088 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6089 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6091 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6093 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6095 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6097 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6099 * Makefile.in: Rebuilt.
6101 * include/javaprims.h (java::lang): Added
6102 StringIndexOutOfBoundsException.
6104 * java/lang/String.java: Added header comment and FIXME comment for
6105 missing constructors/methods.
6106 (endsWith): Adjusted offset into string to look at just the last chars.
6107 Commented out undocumented method.
6109 * java/lang/natString.cc: Added includes for
6110 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6111 (String::init): Throw StringIndexOutOfBoundsException.
6112 (String::charAt): Throw StringIndexOutOfBoundsException.
6113 (String::substring): Throw StringIndexOutOfBoundsException.
6114 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6115 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6116 (String::compareTo): Return difference/offset between chars/strings.
6118 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6120 * java/lang/Boolean.java (TYPE): Added comment.
6122 * java/lang/Byte.java (decode): Added - commented out until dependent
6123 code for Integer is written.
6124 (compareTo): JDK 1.2 methods written.
6125 (hashCode): Added comment to note that values have been verified.
6127 * java/lang/Short.java (decode): Added - commented out until dependent
6128 code for Integer is written.
6129 (compareTo): JDK 1.2 methods written.
6130 (hashCode): Added comment to note that values have been verified.
6132 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6134 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6136 * include/javaprims.h (java::lang): Added VirtualMachineError,
6138 * Makefile.in: Rebuilt.
6139 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6140 VirtualMachineError.h.
6141 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6142 (lookupArray): Likewise.
6143 (makeUtf8Const): Likewise.
6144 (_Jv_AllocObject): Likewise.
6145 (_Jv_NewObjectArray): Likewise.
6146 Include OutOfMemoryError.h.
6148 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6149 to use JvNewStringLatin1.
6151 * java/io/io-defs.h: Include java/lang/IOException.h.
6152 * Makefile.in: Rebuilt.
6153 * Makefile.am (nat_headers): Added
6154 ArrayIndexOutOfBoundsException.h,
6155 ClassFormatError.h,ClassNotFoundException.h,
6156 ClassCircularityError.h, ClassCastException.h,
6157 IncompatibleClassChangeError.h, AbstractMethodError.h,
6158 IllegalAccessError.h, LinkageError.h, Error.h,
6159 NegativeArraySizeException.h, IOException.h.
6160 * include/cni.h (SignalError): Removed declaration.
6161 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6162 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6163 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6164 (newInstance): Likewise.
6165 (forName): Likewise.
6166 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6168 (read): Use JvThrow, not SignalError.
6173 (open_read): Likewise.
6174 (open_write): Likewise.
6177 (newstr): New function.
6178 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6180 (lastModifiedUnchecked): Likewise.
6181 (lengthUnchecked): Likewise.
6182 * include/javaprims.h (sorry): Removed declaration.
6183 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6184 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6185 ClassCastException, IncompatibleClassChangeError,
6186 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6187 * prims.cc (instanceof_array): Use JvFail, not sorry.
6189 Include ArrayIndexOutOfBoundsException.h,
6190 ClassFormatError.h,ClassNotFoundException.h,
6191 ClassCircularityError.h, ClassCastException.h,
6192 IncompatibleClassChangeError.h, AbstractMethodError.h,
6193 IllegalAccessError.h, NegativeArraySizeException.h.
6194 (_Jv_ThrowBadArrayIndex): Implemented.
6195 (JvNewStringUTF): Use JvFail, not sorry.
6196 (_Jv_FindClass): Likewise.
6197 (_Jv_NewArray): Likewise.
6198 (throwException): Removed.
6199 (getClass): Use JvThrow.
6200 (processClass): Likewise.
6201 (_Jv_NewObjectArray): Likewise.
6202 (_Jv_NewMultiArray): Likewise.
6203 (_Jv_CheckCast): Likewise.
6204 (_Jv_LookupInterfaceMethod): Likewise.
6205 (SignalError): Removed.
6206 (getClass): Use _Jv_NewStringUtf8Const to create String.
6208 * java/lang/natSystem.cc (arraycopy): Throw
6209 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6211 * Makefile.in: Rebuilt.
6212 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6214 * include/java-array.h: Mention gcjh, not gjavah.
6216 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6217 (canReadUnchecked): Likewise.
6218 (canWriteUnchecked): Likewise.
6219 (isFileUnchecked): Likewise.
6220 * java/io/natFileDescriptor.cc: Don't include cni.h.
6222 * java/lang/Thread.java (run__): Declare.
6223 * java/lang/natThread.cc (run__): New method, to avoid compiler
6225 (start): Use run__, not run_.
6227 * java/io/io-defs.h: Include cni.h and jvm.h.
6229 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6231 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6232 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6233 to natString.cc (with suitable renaming, inlines etc).
6234 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6235 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6236 * java/lang/String.h: Removed - now generated using gjavah.
6237 * java/lang/String.java: Re-written from scratch. Many native methods.
6238 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6239 * java/lang/natString.cc: Many functions re-written for "compact
6240 strings" representation, or native java.lang.String methods added.
6241 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6242 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6243 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6244 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6245 * include/cni.h: Add inline method.
6246 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6247 * include/javaprims.h: Moved some stuff frm String.h.
6248 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6249 * Makefile.am (nat_header): Added Character.h and String.h.
6250 (String.h): Add new rule.
6252 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6254 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6256 * posix-threads.cc: Include cni.h, jvm.h.
6257 * quick-threads.cc: Include cni.h, jvm.h.
6258 * nogc.cc: Include cni.h, not javaprims.h.
6259 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6260 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6261 include java-assert.h.
6262 * java/lang/natSystem.cc: Include cni.h. Don't include
6264 * java/lang/natRuntime.cc: Include cni.h. Don't include
6266 * prims.cc: Rearranged #include ordering. Don't include
6267 java-array.h or java-assert.h.
6268 * boehm.cc: Include config.h, cni.h.
6269 * exception.cc: Include config.h, cni.h.
6270 * include/jvm.h: Include java-assert.h.
6271 * include/cni.h: Include java/lang/Object.h. Don't include
6272 java-threads.h or java-array.h.
6274 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6276 * java/lang/Boolean.java: Rewritten.
6278 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6280 * java/lang/natFirstThread.cc (main_func): New typedef.
6281 (run): Use main_func, not JvPrivThreadStartFunc.
6282 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6284 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6286 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6289 Can't throw Java exceptions with C++ `throw':
6290 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6291 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6292 (setPriority): Likewise.
6296 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6297 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6299 Can't catch Java exceptions from C++:
6300 * java/lang/natThread.cc (finish_): New method.
6302 * java/lang/Thread.java (run_): Rewrote in Java.
6303 (finish_): New native method.
6305 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6307 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6309 * include/javaprims.h (java::io): Added Serializable.
6311 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6313 * java/util/EmptyStackException.java,
6314 java/util/NoSuchElementException.java: Rewritten.
6316 * java/util/ConcurrentModificationException.java,
6317 java/util/MissingResourceException.java,
6318 java/util/TooManyListenersException.java: Created.
6320 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6322 * include/cni.h (JvThrow): New function.
6323 * include/javaprims.h (_Jv_Throw): Declare.
6325 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6327 * java/util/Observable.java: Rewritten.
6329 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6331 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6332 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6333 Include NullPointerException.h.
6335 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6337 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6338 assignability checks. Don't bother using memcpy.
6340 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6342 * include/quick-threads.h (JvPrivThreadWait): New function.
6343 * include/no-threads.h (JvPrivThreadWait): New function.
6344 * include/posix-threads.h (JvPrivThreadWait): New function.
6345 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6347 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6349 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6350 offsets by size of type that is being copied.
6352 * java/lang/natThread.cc (start): Don't pass `object' argument to
6354 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6355 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6357 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6358 always pass thread as object.
6359 * include/quick-threads.h, include/posix-threads.h,
6360 include/no-threads.h (JvPrivThreadStart): Removed `object'
6363 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6365 * java/util/Dictionary.java: Rewritten.
6367 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6369 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6370 (JvPrivThreadDestroy): Likewise.
6372 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6374 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6376 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6378 * java/lang/natSystem.cc: Rewrote from scratch.
6379 * java/lang/System.java: Rewrote from scratch.
6380 * java/lang/Class.h (Class): Declare isAssignableFrom.
6381 * include/javaprims.h (java::lang): Added ArrayStoreException,
6382 IndexOutOfBoundsException.
6383 * Makefile.in: Rebuilt.
6384 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6385 IndexOutOfBoundsException.h.
6386 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6387 * include/jvm.h (_Jv_HashCode): New function.
6389 * java/lang/natThread.cc (suspend): Call checkAccess.
6391 * java/lang/Thread.java (setDaemon): Call checkAccess.
6393 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6395 * java/lang/Runtime.java: Rewrote from scratch.
6396 * java/lang/natRuntime.cc: Rewrote from scratch.
6398 * nogc.cc (JvPrivGCTotalMemory): New function.
6399 (JvPrivGCFreeMemory): Likewise.
6400 (total): New global.
6401 (JvPrivAllocObj): Increment total.
6402 (JvPrivAllocArray): Likewise.
6403 (JvPrivAllocBytes): Likewise.
6404 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6405 * boehm.cc (JvPrivGCTotalMemory): New function.
6406 (sum_blocks): Likewise.
6407 (JvPrivGCFreeMemory): Likewise.
6409 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6411 * include/javaprims.h (java::lang): Added FirstThread.
6412 * java/lang/natFirstThread.cc: New file.
6413 * java/lang/FirstThread.java: New file.
6414 * prims.cc (main_signature): Removed.
6415 (main_name): Removed.
6416 #include FirstThread.h.
6417 * Makefile.in: Rebuilt.
6418 * Makefile.am (TFRIEND): Removed.
6419 (java/lang/Thread.h): Likewise.
6420 (FTFRIEND): New macro.
6421 (java/lang/FirstThread.h): New target.
6422 (nat_files): Added natFirstThread.o.
6423 (nat_headers): Added FirstThread.h.
6424 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6425 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6427 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6431 * java/lang/natThread.cc (start): Synchronize the thread.
6432 (stop): Synchronize the thread.
6434 * java/lang/ThreadDeath.java: Rewrote from scratch.
6436 * Makefile.in: Rebuilt.
6437 * Makefile.am (TGFRIEND): New macro.
6438 (java/lang/ThreadGroup.h): New target.
6439 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6441 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6443 * nogc.cc: Include config.h.
6445 * java/lang/ThreadGroup.java: Rewrote from scratch.
6447 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6449 * java/lang/Thread.java (checkAccess): Only call in to security
6450 manager if it exists.
6451 (Thread): Don't check access when creating the first thread. Add
6452 this thread to the appropriate ThreadGroup.
6454 * java/lang/natThread.cc (run_): Call uncaughtException method on
6457 * java/lang/Runnable.java: Rewrote from scratch.
6458 * java/lang/Thread.java: Updated copyright comment to correct
6461 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6463 * java/util/Random.java: Rewritten.
6465 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6467 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6468 trailing 0 in array[].
6470 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6472 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6473 and RUNTESTFLAGS from AM_MAKEFLAGS.
6474 (SUBDIRS): Conditionally include testsuite.
6475 * Makefile.in: Rebuilt.
6477 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6479 * java/lang/Object.h: Include java-assert.h.
6481 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6483 * Makefile.am: Add testsuite directory.
6484 * configure.in: Build testsuite/Makefile.
6485 * Makefile.in, configure: Rebuilt.
6487 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6489 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6490 * include/jvm.h (_Jv_StartFirstThread): Declare.
6492 * include/javaprims.h (java::lang): Added Exception,
6495 * Makefile.in: Rebuilt.
6496 * Makefile.am (nat_headers): Added NullPointerException.h,
6497 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6498 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6499 (java/lang/Thread.h): New target.
6500 (TFRIEND): New macro
6502 * include/java-assert.h (JvFail): Use 0 and not NULL.
6504 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6505 instead of assuming we are a friend of Thread.
6506 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6507 instead of assuming we are a friend of Thread.
6509 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6511 * java/lang/natThread.cc: Rewrote from scratch.
6512 * java/lang/Thread.java: Rewrote from scratch.
6513 * prims.cc (JvRunMain): Use new Thread constructor.
6514 * include/javaprims.h (java::lang): Added InterruptedException.
6515 * Makefile.in: Rebuilt.
6516 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6517 * java/lang/Thread.h: Removed.
6518 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6519 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6521 * posix-threads.cc (JvPrivThreadJoin): Removed.
6522 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6523 (really_start): Don't notify join_cond.
6524 (JvPrivThreadStart): Added `data' argument.
6525 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6526 (JvPrivThreadJoin): Likewise.
6527 Use JvFail instead of sorry.
6528 (JvPrivThreadSuspend): Removed.
6529 (JvPrivThreadResume): Removed.
6530 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6531 (JvPrivThreadJoin): Likewise.
6532 (JvPrivThreadSuspend): Use JvFail.
6533 (JvPrivThreadResume): Likewise.
6534 (JvPrivThreadSuspend): Removed.
6535 (JvPrivThreadResume): Likewise.
6536 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6537 (JvPrivThread_t): Removed join_mutex, join_cond.
6538 Use JvFail instead of sorry.
6539 (JvPrivThreadSuspend): Removed.
6540 (JvPrivThreadResume): Likewise.
6542 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6544 * java/util/Observer.java: Rewritten
6545 * java/util/Enumeration.java: Rewritten
6547 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6549 * java/util/StringTokenizer.java: Rewritten
6550 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6551 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6552 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6554 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6556 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6559 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6560 Include java-assert.h.
6561 * include/java-assert.h: New file.
6562 * prims.cc (_Jv_Abort): New function.
6563 Include java-assert.h, not assert.h.
6564 (_Jv_MonitorExit): Use JvAssert.
6565 (resolveConstants): Likewise.
6566 (processClass): Likewise.
6567 (JvRunMain): Assert that method is found.
6569 * configure: Rebuilt.
6570 * configure.in: Check for test subdir.
6571 * Makefile.in: Rebuilt.
6572 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6574 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6575 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6577 * prims.cc (resolveConstants): Removed unused variables.
6578 (processClass): Likewise.
6580 * include/quick-threads.h (JvPrivThreadCurrent): Use
6582 * quick-threads.cc (destroy_data): New function.
6583 (JvPrivInitThreads): Create key.
6584 (JvPrivThreadKey): New global.
6585 (JvPrivThreadStart): Use coop_setspecific.
6587 * include/quick-threads.h, include/posix-threads.h,
6588 include/no-threads.h, no-threads.cc, quick-threads.cc,
6589 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6591 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6593 * include/no-threads.h (JvPrivThreadInitData): Don't set
6596 * include/quick-threads.h (JvPrivCondWait): coop function now
6598 (JvPrivThreadJoin): Likewise.
6600 * java/lang/Thread.h (Thread): Updated declaration of
6602 * include/quick-threads.h, include/posix-threads.h: Updated
6603 declaration of JvPrivThreadStart.
6604 * include/no-threads.h (JvPrivThreadStart): Changed definition
6606 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6607 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6608 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6610 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6612 * quick-threads.cc (qthrow): New function.
6613 (JvPrivInitThreads): New function.
6614 (started): New global.
6615 (JvPrivThreadStart): Call coop_start if required.
6616 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6617 (JvPrivThreadDestroy): Likewise.
6618 (JvPrivInitThreads): Removed.
6619 * include/posix-threads.h (JvPrivThreadCancel): Added error
6621 * java/lang/natThread.cc (stop_): Pass exception to
6624 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6626 * include/javaprims.h (java::lang): Added
6627 IllegalArgumentException, IllegalThreadStateException, Math,
6628 NullPointerException, ThreadDeath.
6629 (java::util): Added Enumeration.
6631 * Makefile.in: Rebuilt.
6632 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6634 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6636 (threadsv): Renamed from threads to avoid clash in C++ header.
6637 (groupsv): Likewise.
6638 * include/no-threads.h (JvPrivThreadStart): Removed.
6639 * no-threads.cc (JvPrivThreadStart): New function.
6640 * java/lang/Thread.java (Thread): New constructor for internal use.
6641 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6642 (Thread): Declare constructor.
6643 * prims.cc (JvRunMain): Create the initial Thread and
6645 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6646 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6647 Removed `daemon' argument.
6649 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6650 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6652 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6654 * Makefile.in: Rebuilt.
6655 * Makefile.am (INCLUDES): Include THREADINCS.
6657 * configure: Rebuilt.
6658 * configure.in: Recognize `qt' as a threads package.
6660 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6662 * java/util/Stack.java (pop): Null out topmost node for robustness.
6664 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6666 * java/util/Stack.java: Rewritten.
6667 * java/util/Vector.java (isEmpty): Simplified expression.
6669 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6671 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6672 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6674 * include/java-array.h (JvNewObjectArray): Created inline to
6677 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6680 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6682 * java/util/Vector.java: Rewritten.
6683 * java/io/Serializable.java: Created.
6685 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6687 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6688 Infinity is 1/0, not 1/1.
6690 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6692 * configure: Rebuilt.
6693 * configure.in: Removed duplicate AC_ARG_WITH.
6695 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6697 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6699 (_Jv_InitClass): Renamed from soft_initialise_class.
6700 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6701 (_Jv_CheckCast): Renamed from soft_checkcast.
6702 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6703 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6704 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6705 * include/cni.h (JvInitClass): New function.
6706 (_Jv_InitClass): Renamed from soft_initialise_class.
6708 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6710 * configure: Rebuilt.
6711 * configure.in (CXX): Don't set.
6712 * Makefile.in: Rebuilt.
6713 * Makefile.am (AM_CXXFLAGS): New macro.
6715 * Makefile.in: Rebuilt.
6716 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6717 nogc.o): New target.
6719 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6721 (mark_array): Likewise.
6723 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6725 * java/lang/Class.h (JvMethod): Removed some unused fields.
6726 (JvField.info): Removed unused idx union variant.
6728 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6730 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6733 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6735 * configure.in, configure (CXX): Add -fvtable-thunks.
6737 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6739 * java/lang/Object.java (finalize): Move first.
6740 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6741 (Object): Re-arrange order to match Object.java.
6743 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6745 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6746 * java/lang/natString.cc (hashChars): Likewise.
6748 * prims.cc (RuntimeClass): New macro.
6749 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6751 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6753 * Makefile.in: Rebuilt.
6754 * Makefile.am (AM_MAKEFLAGS): New macro.
6756 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6758 * nogc.cc: Include <javaprims.h>.
6760 * Makefile.in: Rebuilt.
6761 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6763 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6765 * exception.cc (terminate): Removed.
6766 (unexpected): Removed.
6768 * configure: Rebuilt.
6769 * configure.in: Handle case where target subdir is ".".
6771 * configure: Rebuilt.
6772 * configure.in: Compute COMPPATH based on --with-target-subdir
6773 option. Added --with-target-subdir and --with-cross-host. Use
6774 --with-cross-host to determine when a cross compiler is in use.
6776 * Makefile.in: Rebuilt.
6777 * Makefile.am (GJAVAH): Include COMPPATH.
6778 * configure: Rebuilt.
6779 * configure.in: Subst COMPPATH.
6781 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6783 * prims.cc (lockMutex): Removed.
6784 (unlockMutex): Likewise.
6785 (processClass): Lock the class using a JvSynchronize object.
6787 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6789 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6790 (gc_free_fixed): Removed.
6791 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6792 freeing old value of strhash.
6794 * exception.cc (_Jv_type_matcher): Cast first argument to
6797 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6799 * include/java-array.h (jstringArray): New type.
6800 * java/lang/natSystem.cc (setProperty): Removed.
6801 (initProperties): Directly call JvNewStringLatin1 for arguments.
6802 * java/util/natDate.cc: Include java/util/Date.h, not
6805 * java/io/FileDescriptor.java (available): No longer static.
6806 * java/lang/natDouble.cc (Double): Removed class definition.
6807 * include/javaprims.h (java::lang::Number): Declare.
6808 (java::lang::NumberFormatException): Likewise.
6809 (java::io::FilenameFilter): Likewise.
6810 (java::lang::Character): Likewise.
6811 (java::lang::Error): Likewise.
6812 (java::lang::SecurityManager): Likewise.
6813 (java::util::Vector): Likewise.
6814 (java::io::FileNotFoundException): Likewise.
6815 (java::io::IOException): Likewise.
6816 (java::lang::NativeLang): Likewise.
6817 (java::lang::UnsatisfiedLinkError): Likewise.
6818 (java::util::StringTokenizer): Likewise.
6819 (java::io::InputStream, java::io::OutputStream): Likewise.
6820 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6821 (java::util::Hashtable): Likewise.
6822 * Makefile.in: Rebuilt.
6823 * Makefile.am (nat_headers): Added java/lang/Double.h,
6824 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6825 (MOSTLYCLEANFILES): Added nat_headers.
6826 * include/jvm.h: Moved many defines, declarations, and functions
6827 to java/lang/Class.h.
6828 (struct JvSyncInfo): Moved to java/lang/Object.h.
6829 (UTF8_GET): Moved to java/lang/String.h.
6831 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6833 * java/io/io-defs.h: Don't include java-io.h.
6834 * include/java-io.h: Removed.
6835 * include/javaprims.h: Include java::io.
6837 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6839 * include/java-io.h (File): Removed
6840 (FileDescriptor): Likewise.
6842 * java/io/io-defs.h: Include java/io/File.h and
6843 java/io/FileDescriptor.h.
6845 * Makefile.in: Rebuilt.
6846 * Makefile.am (GJAVAH): New macro.
6847 (.class.h): New rule.
6848 (SUFFIXES): Added .h.
6849 (nat_headers): New macro.
6850 ($(nat_headers)): New target.
6851 (BUILT_SOURCES): Added nat_headers.
6853 * include/java-util.h: Removed.
6855 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6857 * include/java-io.h: Changed to avoid java-lang.h.
6858 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6860 * java/lang/natSystem.cc: Include java/lang/System.h, not
6862 * java/lang/natString.cc: Include java/lang/String.h, not
6864 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6866 * java/lang/natClass.cc: Include java/lang/Class.h, not
6868 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6870 * java/lang/natObject.cc: Include java/lang/Object.h, not
6872 * exception.cc: Don't include java-lang.h.
6873 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6874 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6875 * nogc.cc: Don't include java-lang.h.
6876 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6877 * prims.cc (processClass): Don't use `init_type'; just cast to
6879 Include java/lang/Class.h and jvm.h, not java-lang.h.
6880 (JvAllocObject): Wrote single-argument version.
6881 (PrimClass): Inherit from Class.
6882 (initPrimClass): Removed.
6883 * include/java-lang.h: Removed.
6884 * include/jvm.h: Declare struct _dispatchTable.
6885 * include/cni.h: Don't declare _Jv_MonitorEnter,
6886 _Jv_MonitorExit, struct _dispatchTable.
6887 * include/javaprims.h: Moved all typedefs here, from cni.h.
6888 * java/lang/Class.h: New file.
6889 * include/java-array.h: New file.
6890 * java/lang/Object.h: New file.
6892 * prims.cc (classFromSig): Now static.
6894 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6896 * include/cni.h: Don't mention soft_new.
6897 * include/java-lang.h (Object): Don't mention soft_new. Mention
6898 _Jv_NewPrimArray, not newPrimArray.
6899 * prims.cc (soft_new): Removed.
6900 (_Jv_NewArray): Renamed from soft_newarray.
6901 (soft_anewarray): Use JvNewObjectArray.
6902 (newArray): Likewise.
6903 (newRefArray): Removed.
6904 (_Jv_NewPrimArray): Renamed from newPrimArray.
6905 (equalUtf8Consts): Now static.
6906 (soft_instanceof): Removed.
6907 * java/lang/natDouble.cc (doubleToString): Now static.
6909 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6910 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6913 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6915 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6917 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6919 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6920 (JvPrivMutexUnlock): Likewise.
6921 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6922 Return value now jint.
6923 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6926 * Makefile.in: Rebuilt.
6927 * Makefile.am: Don't allow `jV' names.
6928 (maintainer-check): Depend on libjava.a.
6929 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6931 * Makefile.in: Rebuilt.
6932 * Makefile.am (NM): New macro.
6933 (maintainer-check): New target.
6935 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6937 * configure: Rebuilt.
6938 * configure.in: Use --enable-threads, not --enable-gc. Fix
6939 documentation for --enable-threads. Changed option to work like
6940 identical option in gcc/configure.
6942 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6944 * boehm.cc (mark_array): Use JvGetArrayLength.
6946 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6948 * exception.cc: New file (mostly written by Andrew MacLeod),
6949 exception handling support.
6950 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6951 Remove -fexceptions - it is now the default.
6953 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6954 (JvAllocObject): Renamed to _Jv_AllocObject.
6955 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6956 (loadClass): Renamed to _Jv_FindClass.
6957 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6958 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6959 * include/java-lang.h (JvGetArrayLength): New CNI function.
6960 * include/jvm.h (_Jv_FindClass): Added declaration.
6962 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6964 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6966 * java/lang/natClass.cc (getName): Add implementation.
6967 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6969 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6971 * Makefile.in: Rebuilt.
6972 * Makefile.am (.class.o): Added -fexceptions.
6974 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6976 * configure: Rebuilt.
6977 * configure.in: Don't check for __nanosleep.
6978 * posix-threads.cc (nanosleep): Never define.
6980 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6982 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6985 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6987 * java/lang/natThread.cc (enumerate): Uncommented.
6988 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6989 (interrupt): Call it.
6991 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6993 * configure: Rebuilt.
6994 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6996 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6998 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6999 * include/java-lang.h (Thread): Added `interrupted_' method.
7000 * java/lang/Thread.java (interrupted_): New method.
7001 * java/lang/natThread.cc (join): Possibly throw interrupted
7002 exception after join finishes.
7003 (interrupted_): New method.
7004 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7006 (JvPrivThreadJoin): New function.
7007 (really_start): Notify all threads waiting for this thread.
7008 (struct starter): Added `data' member.
7009 (JvPrivThreadStart): Set it.
7010 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7012 (JvPrivThreadJoin): No longer inline.
7013 (JvPrivThreadInterrupt): New function.
7015 * include/no-threads.h (JvPrivThreadSleep): Removed.
7016 * posix-threads.cc (JvPrivThreadSleep): Removed.
7018 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7020 * configure: Rebuilt.
7021 * configure.in (THREADOBJS): Initialize to no-threads.o in
7023 * posix-threads.cc (key): New global.
7024 (JvPrivInitThreads): New function.
7025 (really_start): Set thread-specific data to point to object.
7026 (JvPrivThreadStart): Added `daemon' argument.
7027 (JvPrivThreadSleep): Added `data' argument.
7028 * include/posix-threads.h (JvPrivInitThreads): Removed
7030 (JvPrivThreadCurrent): New function.
7031 * include/no-threads.h (JvPrivThreadInitData): Initialize
7032 JvPrivOnlyThread. Added `thread' argument.
7033 (JvPrivThreadCurrent): New function.
7034 (JvPrivThreadStart): Added `daemon' argument.
7035 * no-threads.cc: New file.
7036 * java/lang/natThread.cc (init_data): New function.
7038 (start): Set `alive' member.
7039 (stop_): Clear `alive' member.
7040 (destroy): Likewise.
7041 (currentThread): Implemented.
7042 (start): Pass `daemon' argument to JvPrivThreadStart.
7044 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7045 (Thread): Added `init_data' method.
7046 * java/lang/Thread.java (alive, data): New instance variables.
7047 (init_data): New private method.
7048 (isAlive): No longer native.
7050 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7052 * include/java-lang.h (JvRunMain): Declare.
7053 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7054 * prims.cc (JvRunMain): New function.
7055 (main_signature, main_name): New globals.
7057 * boehm.cc (mark_array): Use `elements' function and not
7058 operator[] on jarray.
7060 * posix-threads.cc: Include <config.h>. Define nanosleep if
7063 * configure: Rebuilt.
7064 * configure.in: Check for _nanosleep.
7066 * configure: Rebuilt.
7067 * configure.in: Check for pthread_mutexattr_settype.
7069 * include/cni.h (class JvSynchronize): New class.
7070 * java/lang/Thread.java (sleep): Throws InterruptedException.
7071 (join): Throws InterruptedException.
7072 (resume): Not native.
7073 (resume_): New method.
7074 (start): Now synchronized.
7075 (stop_): New method.
7076 (Thread): Synchronize when accessing threadNumber.
7078 * java/lang/natThread.cc (throwException): New macro.
7079 (sleep): Throw InterruptedException.
7082 * include/java-lang.h (Runtime): Added interrupted().
7084 * boehm.cc (call_finalizer): Correctly initialize jobj.
7085 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7087 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7090 * configure: Rebuilt.
7091 * configure.in: Added support for --disable-threads.
7092 * include/no-threads.h: New file.
7094 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7096 * Makefile.in: Rebuilt.
7097 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7098 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7099 (libjava_a_LIBADD): Added THREADOBJS.
7100 * configure: Rebuilt.
7101 * configure.in: Added --with-threads option.
7102 * posix-threads.cc: New file.
7103 * include/posix-threads.h: New file.
7104 * include/java-lang.h (Object): Added static member sync_mutex,
7105 member sync_info, method init_mutex.
7106 (struct JvSyncInfo): New struct.
7107 Include "java-threads.h".
7108 * prims.cc (soft_monitorenter): Wrote.
7109 (soft_monitorexit): Likewise.
7110 * java/lang/natObject.cc (init_mutex): New method.
7114 (sync_mutex): Define.
7115 Include "java-threads.h".
7117 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7119 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7120 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7122 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7124 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7125 Added extern "Java" in places to tell G++ Object is a "Java" type.
7126 Other minor renaming and fixes.
7127 * include/java-io.h (FileDescriptor): Add friend class declarations.
7128 G++ no longer allows non-Java types in method parameters and results
7129 of Java classes. Converted most offending methods to friends.
7130 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7131 * java/lang/natSystem.cc (setProperty): Make friend.
7132 * java/lang/natString.cc, include/java-lang.h (String): Rename
7133 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7134 * include/java-lang.h (JArray): Remove getData and eoprator[].
7135 Add elements friend function instead.
7136 * java/lang/natSystem.cc (arraycopy): Use elements function.
7137 * java/io/natFileDescriptor.cc (read, write): Likewise.
7138 * include/java-lang.h (Object): Remove unused make method.
7139 (System::setProperty(char*,char*)): Turn into friend function.
7140 (Class): Rename newObject by JvAllocObject.
7141 * prims.cc: Update to use JvAllocObject, and elements.
7143 * java/lang/natDouble.cc: Fix double -> jdouble.
7145 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7147 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7149 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7151 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7152 * include/java-lang.h (Runtime): finalize_on_exit and
7153 runFinalizersOnExit now static.
7154 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7156 (finalize_on_exit): Now static.
7158 * boehm.cc (mark_obj): Get class using getClass() method on
7160 (_dispatchTable): Removed.
7162 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7164 * java/io/natFileDescriptor.cc (open_read): Only call open if
7166 (open_write): Likewise.
7168 * Makefile.in: Rebuilt.
7169 * Makefile.am ($(nat_files)): Depend on config.h.
7171 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7173 * prims.cc (ObjectClass): Now a macro; updated for new class name
7175 (StringClass): Likewise.
7176 (ClassClass): Likewise.
7178 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7180 * java/io/natFileDescriptor.cc (available): Do nothing unless
7181 HAVE_SELECT defined.
7182 * java/util/natDate.cc (setTime): Conditional on
7184 (toString): Conditional on HAVE_TIME.
7185 * aclocal.m4, configure: Rebuilt.
7186 * acinclude.m4: New file.
7187 * configure.in: Don't actually call AM_EXEEXT. Call
7188 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7189 --with-target-subdir option. Check for select and open
7192 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7194 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7195 (call_finalizer): Likewise.
7196 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7197 * prims.cc (newObject): Pass actual method pointer to
7198 JvPrivRegisterFinalizer.
7199 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7200 (JvPrivRegisterFinalizer): Changed interface.
7202 * Makefile.in: Rebuilt.
7203 * Makefile.am (MOSTLYCLEANFILES): New macro.
7204 (CLEANFILES): Removed javao_files.
7206 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7208 * nogc.cc: New file.
7209 * Makefile.in: Rebuilt.
7210 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7211 (EXTRA_libjava_a_SOURCES): New macro.
7212 (libjava_a_SOURCES): Removed boehm.cc.
7213 (libjava_a_DEPENDENCIES): Added GCOBJS.
7214 (libjava_a_LIBADD): Likewise.
7215 * configure: Rebuilt.
7216 * configure.in: Added code for --enable-gc=TYPE.
7218 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7220 * boehm.cc (mark_array): Don't further dereference pointer from
7223 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7224 * Makefile.in: Rebuilt.
7225 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7226 one for boehm-gc build directory.
7228 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7230 * include/java-lang.h (finalize_on_exit): New instance variable in
7231 java::lang::Runtime.
7232 (runFinalizersOnExit): New method.
7233 * java/lang/Runtime.java (finalize_on_exit): New instance
7235 (runAllFinalizers_): New private method.
7236 (runFinalizersOnExit): New method.
7237 * boehm.cc (JvPrivRunFinalizers): New function.
7238 (JvPrivRunAllFinalizers): Likewise.
7239 (JvPrivRunGC): Likewise.
7240 * java/lang/natRuntime.cc: Include "jvm.h".
7241 (gc): Call JvPrivRunGC.
7242 (runFinalization): Call JvPrivRunFinalizers.
7243 (runFinalizersOnExit): New method.
7244 (exit_): Call JvPrivRunAllFinalizers if required.
7245 * include/jvm.h: Declare JvPrivRunFinalizers,
7246 JvPrivRunAllFinalizers, JvPrivRunGC.
7248 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7250 * boehm.cc (JvPrivRegisterFinalizer): New function.
7251 (call_finalizer): Likewise.
7252 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7253 * prims.cc (finalize_name): New global.
7254 (newObject): Just call other newObject.
7255 (newObject): Register finalizer if it exists.
7257 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7259 * prims.cc (gc_malloc): Removed.
7260 (makeUtf8Const): Use JvPrivAllocBytes.
7261 (lookupArray): Likewise.
7262 (newPrimArray): Likewise.
7263 (JvNewObjectArray): Use JvPrivAllocArray.
7264 (newObject): Use JvPrivAllocObj.
7265 (newObject): Likewise.
7266 Changed Method -> JvMethod everywhere.
7267 Changed Field -> JvField everywhere.
7268 * include/java-lang.h (Object): Changed type of `fields' to
7270 (jmethodID, jfieldID): New typedefs.
7271 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7273 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7275 (METHOD_NATIVECODE): Moved from java-lang.h.
7276 (class JvField): New class.
7277 (JvGetFirstInstanceField): New function.
7278 (JvFieldIsRef): Likewise.
7279 (JvGetObjectField): Likewise.
7280 (JvNumInstanceFields): Likewise.
7282 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7284 * boehm.cc: New file.
7285 * Makefile.in: Rebuilt.
7286 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7287 (INCLUDES): Added -I options to find boehm-gc files.
7289 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7291 * configure: Rebuilt.
7292 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7294 * Makefile.in: Rebuilt.
7295 * Makefile.am (nat_files): New macro.
7296 (libjava_a_DEPENDENCIES): Use it.
7297 (libjava_a_LIBADD): Likewise.
7298 ($(nat_files)): New static pattern rule.
7299 (class_files): Run separate find to find .class files.
7300 (javao_files): Compute based on class_files.
7301 (BUILT_SOURCES): New macro.
7303 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7305 * Makefile.am (java_files): New macro.
7306 (class_files): Likewise.
7307 (javao_files): Likewise.
7308 (libjava_a_DEPENDENCIES): Include $(javao_files).
7309 (libjava_a_LIBADD): Likewise.
7310 (classes.stamp): Depend on $(java_files); only recompile changed
7313 (CLEANFILES): Don't run find; use macros. Don't mention
7315 (.class.o): New target.
7316 (compiled.stamp): Removed.
7318 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7320 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7321 LineNumberReader}>java: Newly-implemented standard classes.
7323 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7325 * Makefile.in: Rebuilt.
7326 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7328 * Makefile.in: Rebuilt.
7329 * Makefile.am (hack): New macro.
7330 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7332 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7334 * include/config.h.in: New file.
7335 * include/config.h: Removed.
7336 * acconfig.h: New file.
7337 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7338 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7339 libjava_a_LIBADD): New macros.
7340 (INCLUDES): New macro.
7343 (SUFFIXES): Removed.
7345 (libjava.a): Removed.
7347 * configure: Rebuilt.
7348 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7349 Look for headers and functions we require. Create
7352 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7354 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7355 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7356 soft_lookupinterfacemethod): New functions.
7357 (PrimClass): Actually initialize the primitive classes.
7358 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7360 * include/java-util.h: Removed java::util definition.
7361 * include/cni.h: Moved java::util here and added Properties.
7362 Added more function prototypes.
7363 * include/java-lang.h: Added mroe methods and friend declarations.
7364 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7365 * include/jvm.h (strLengthUtf8): Add declaration.
7367 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7369 * java/lang/{Byte,Short,Void}.java: New classes.
7370 * java/lang/Character.java (isJavaIdentifierStart,
7371 JavaIdentifierPart): New static methods.
7372 * java/lang/Number.java (byteValue, shortValue): New methods.
7374 * java/lang/String.java (intern, hashCode): Make native.
7375 * java/lang/natString.cc: New file. Handle the string pool.
7376 * Makefile.am: Build natString.o. Use CXXFLAGS.
7378 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7379 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7380 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7381 * java/lang/System.java (setProperty): New private method.
7382 (initProperties): Take argument, and make native.
7383 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7384 (currentTimeMillis): Make more robust.
7386 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7387 * java/io/UnsupportedEncodingException.java: New exception class.
7389 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7390 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7392 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7394 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7395 * prims.cc: Added bunch of stuff.
7396 * include/cni.h: Added various definitions.
7397 * include/java-lang.h: Added Method, various friends, some macros.
7399 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7400 * java/lang/System.java (arraycopy): Make native.
7402 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7404 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7405 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7406 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7407 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7409 * java/lang/Runtime.java: Declare methods as native instead of
7411 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7412 * java/lang/System.java: Comment out some stuff, for now.
7413 * java/lang/Thread.java: Re-write. Use native methods.
7414 * java/lang/NativeLang.java: Remove most of it.
7416 * java/util/natDate.cc: Native (C++) methods for Date.
7417 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7418 * java/util/Date.java: Complete re-write.
7420 * java/io/io-defs.h: New header file.
7421 * java/io/FileDescriptor.java: Add a bunch of private methods,
7422 mostly moved from NativeIO.java and natNativeIO.cc.
7423 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7424 * java/io/File.java: Use new code.
7425 * java/io/{FileInputStream.java.FileOutputStream.java,
7426 RandomAccessFile.java}: Use new private FileDescriptor methods.
7427 * java/io/NativeIO.java: Removed, no longer used.
7429 * java/io/StreamTokenizer.java (numericChars): Make char array.
7431 * include/*.h: Various header files used by the C++ native code.
7433 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7434 New autoconf+automake-based setup.
7435 * prims.cc: New file for Java "primitives".