1 1999-12-19 Anthony Green <green@cygnus.com>
3 * libgcjdata.c: New file.
4 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
6 * configure.in (LIBDATASTARTSPEC): Force data with a known name
8 * Makefile.in: Rebuilt.
9 * Makefile.am: Build libgcjdata.a.
11 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
13 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
16 1999-12-17 Tom Tromey <tromey@cygnus.com>
18 * java/lang/reflect/Method.java (toString): Call getType if
19 required. Partial fix for PR libgcj/111. From Per Bothner.
21 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
23 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
25 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
26 null String constructor parameter.
27 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
28 for exception messages.
29 BooleanClass: declare.
30 (setOption): Use BooleanClass instead of Class.forName() for
32 (bind): Cast 4th parameter of setsockopt to `char *' for
33 compatibility with older Solaris headers.
34 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
35 sprintf calls for exception messages.
36 BooleanClass, IntegerClass: declare.
37 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
40 1999-12-15 Tom Tromey <tromey@cygnus.com>
42 * java/lang/natSystem.cc (init_properties): Don't set user.name or
43 user.home if NO_GETUID defined. Only set user.dir if getcwd
46 * include/config.h.in: Rebuilt.
47 * acconfig.h (NO_GETUID): New define.
48 * configure.in: Rebuilt.
49 * configure.in: Define NO_GETUID in cross case. Check for getcwd
52 1999-12-08 Tom Tromey <tromey@cygnus.com>
54 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
55 where no recursive mutexes exist. Fixes PR libgcj/117.
57 1999-12-05 Anthony Green <green@cygnus.com>
59 * include/jvm.h: Declare many functions with
60 __attribute__((__malloc__)).
61 * gcj/javaprims.h: Ditto.
63 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
65 * THANKS: Giving credit where credit is due.
67 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
69 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
71 * java/lang/natString.cc (equalsIgnoreCase): return false if
72 anotherString is null.
73 * java/lang/Boolean.java (valueOf): return FALSE if argument is
76 1999-11-30 Tom Tromey <tromey@cygnus.com>
78 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
79 mutex to initialize. Initialize `count' if required.
82 1999-11-27 Per Bothner <per@bothner.com>
84 * exception.cc: Remove prototype declarations for malloc and free.
85 These clash with recent versions of glibc, which specifies `throws ()'
86 when __cplusplus is defined. Instead, #include <stdlib.h>.
88 1999-11-24 Tom Tromey <tromey@cygnus.com>
90 * prims.cc (_Jv_NewObjectArray): Use
91 _Jv_GetArrayElementFromElementType.
92 (_Jv_NewPrimArray): Likewise.
93 * java/lang/natObject.cc (clone): Use
94 _Jv_GetArrayElementFromElementType instead of sizeof.
95 * java/lang/natSystem.cc (arraycopy): Use
96 _Jv_GetArrayElementFromElementType.
97 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
100 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
102 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
103 Exception messages. PR java.net/57.
104 (bind): set SO_REUSEADDR before bind.
105 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
106 overruns. PR java.net/57.
108 1999-11-19 Tom Tromey <tromey@cygnus.com>
110 * Makefile.am (DIVIDESPEC): Removed.
111 (EXCEPTIONSPEC): Removed.
113 1999-11-19 Andrew Haley <aph@cygnus.com>
115 * Makefile.am (JCFLAGS): Add -L$(here)
117 * Makefile.in: Rebuild.
119 1999-11-18 Tom Tromey <tromey@cygnus.com>
121 * java/lang/natDouble.cc: Include <config.h>.
123 * include/config.h.in: Rebuilt.
124 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
125 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
127 * configure: Rebuilt.
128 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
129 requested by configure.host. Don't put `-D' option into
130 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
132 * configure: Rebuilt.
133 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
136 1999-11-18 Andrew Haley <aph@cygnus.com>
138 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
139 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
141 * Makefile.in: Rebuild
142 * acconfig.h: remove SJLJ_EXCEPTIONS
143 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
144 Do not AC_DEFINE SJLJ_EXCEPTIONS.
145 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
146 * gcj/Makefile.in, include/Makefile.in: rebuild.
147 * include/config.h.in: remove SJLJ_EXCEPTIONS.
149 1999-11-18 Andrew Haley <aph@cygnus.com>
151 * gij.cc (main): Rename label to prevent conflict.
153 * exception.cc (_Jv_type_matcher): Don't check the table if we're
154 using setjmp/longjmp exceptions: there isn't one.
156 1999-11-17 Andrew Haley <aph@cygnus.com>
158 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
159 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
160 (__sjthrow): Add declaration.
161 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
165 * Makefile.in: Rebuild
166 * acconfig.h: Add SJLJ_EXCEPTIONS
167 * configure.in: Add SJLJ_EXCEPTIONS
168 * configure: Rebuild.
169 * gcj/Makefile.in: Rebuild.
170 * gcj/cni.h: Add support for sjlj-exceptions.
171 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
172 * include/Makefile.in: Rebuild.
173 * include/default-signal.h: Add support for sjlj-exceptions.
175 1999-11-18 Tom Tromey <tromey@cygnus.com>
177 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
179 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
181 (method_cache): Made larger.
183 1999-11-11 Tom Tromey <tromey@cygnus.com>
185 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
186 initializing mutex. Initialize `count' when required.
188 1999-11-07 Anthony Green <green@trip.cygnus.com>
190 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
193 1999-11-05 Tom Tromey <tromey@cygnus.com>
195 * java/lang/natThread.cc (destroy): Removed incorrect comment.
197 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
199 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
200 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
203 1999-11-05 Tom Tromey <tromey@cygnus.com>
205 * java/lang/natThread.cc (stop): Removed argument name.
207 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
208 `private'; now has default access.
209 * Makefile.in: Rebuilt.
210 * Makefile.am (java/lang/ThreadGroup.h): Removed.
212 1999-11-04 Tom Tromey <tromey@cygnus.com>
214 * java/lang/natClass.cc (method_cache_count): Removed.
215 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
216 (_Jv_AddMethodToCache): Don't loop.
218 * configure.in: Removed `qt' threads case.
219 * include/quick-threads.h: Removed.
220 * quick-threads.cc: Removed.
222 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
223 (_Jv_ThreadDestroy): Likewise.
224 * include/no-threads.h (_Jv_ThreadCancel): Removed.
225 (_Jv_ThreadDestroy): Likewise.
226 * include/posix-threads.h (struct _Jv_Thread_t): Removed
228 (_Jv_ThreadCancel): Removed decl.
229 (_Jv_ThreadDestroy): Removed.
230 * posix-threads.cc (_Jv_ThreadCancel): Removed.
231 (throw_cleanup): Removed.
232 (really_start): Don't push or pop cleanup.
233 (_Jv_ThreadInitData): Don't initialize `exception' field.
234 * java/lang/Thread.java (stop): Officially unimplemented.
235 * java/lang/natThread.cc (stop): Officially unimplemented.
237 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
239 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
242 1999-11-02 Tom Tromey <tromey@cygnus.com>
244 * boehm.cc: Don't include boehm-config.h.
246 1999-11-01 Tom Tromey <tromey@cygnus.com>
248 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
249 (sum_blocks): Removed.
250 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
252 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
254 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
256 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
257 * java/io/InputStreamReader (InputStreamReader): ditto.
259 1999-10-22 Tom Tromey <tromey@cygnus.com>
261 * Makefile.in: Rebuilt.
262 * Makefile.am (java/lang/ClassLoader.h): New target.
263 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
266 * include/java-props.h (_Jv_Compiler_Properties): Changed
268 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
269 * include/jvm.h (_Jv_GCSetInitialHeapSize,
270 _Jv_GCSetMaximumHeapSize): Declare.
271 (JvRunMain, _Jv_RunMain): Declare.
272 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
273 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
274 (_Jv_GCSetMaximumHeapSize): Likewise.
275 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
276 (_Jv_GCSetMaximumHeapSize): Likewise.
277 * prims.cc (parse_heap_size): New function.
278 (_Jv_SetInitialHeapSize): Likewise.
279 (_Jv_SetMaximumHeapSize): Likewise.
280 (_Jv_Compiler_Properties): New global.
281 * gij.cc (help): New function.
283 (heap_size): Likewise.
284 (heap_max_size): Likewise.
285 (main): Parse arguments. Set _Jv_Compiler_Properties.
286 Include <config.h>, <java-props.h>.
287 (_Jv_Compiler_Properties): Removed.
289 1999-10-18 Tom Tromey <tromey@cygnus.com>
291 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
293 (redirect): New static field.
294 * java/lang/ClassLoader.java (getSystemClassLoader): Now
296 (getVMClassLoader0): Removed.
297 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
299 (getSystemClassLoader): Implemented.
301 1999-10-16 Anthony Green <green@cygnus.com>
303 * java/lang/ClassLoader.java (getSystemResource): Use
304 getSystemClassLoader instead of ClassLoader.system.
305 (getSystemResourceAsStream): Ditto.
307 * java/lang/natClassLoader.cc (redirect): Make static and
308 remove #ifdef INTERPRETER so it is always defined.
309 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
310 returns a VMClassLoader.
312 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
313 PropertyResourceBundle if a properties file is found before a
314 ResourceBundle class.
316 1999-10-15 Tom Tromey <tromey@cygnus.com>
318 * gij.cc (main): Formatting fixes.
319 (_Jv_Compiler_Properties): Define.
320 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
322 (init_properties): Set properites from _Jv_Compiler_Properties.
323 * include/java-props.h (_Jv_Compiler_Properties,
324 _Jv_Environment_Properties): Declare.
326 * include/java-props.h: Added copyright.
328 1999-10-13 Anthony Green <green@cygnus.com>
330 * libtool-version: Catch up by incrementing current.
332 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
333 * configure, include/config.h.in: Rebuilt.
334 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
335 * configure.in: Added --disable-getenv-properties and new define
336 `DISABLE_GETENV_PROPERTIES'.
338 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
339 (next_property_key): New function.
340 (next_property_value): New function.
341 (process_gcj_properties): New function.
342 (JvRunMain): Call process_gcj_properties.
345 * java/lang/natSystem.cc (init_properties): Set properties defined
348 * include/java-props.h: New file.
350 * java/lang/natSystem.cc (init_properties): Add new properties to
351 conform with Java Product Versioning Specification.
353 1999-10-12 Tom Tromey <tromey@cygnus.com>
355 * configure: Rebuilt.
356 * configure.in: Fixed test for --disable-java-net.
358 1999-10-06 Tom Tromey <tromey@cygnus.com>
360 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
361 when building Canadian cross.
362 (NATIVE): Don't define when cross-compiling.
364 1999-10-04 Tom Tromey <tromey@cygnus.com>
366 * java/net/natPlainSocketImpl.cc: Don't include headers if
367 java.net is disabled.
369 * Makefile.in: Rebuilt.
370 * Makefile.am (ZINCS): Removed. This is defined in configure.in
371 when needed, and must be left empty when not needed.
373 1999-10-01 Anthony Green <green@cygnus.com>
375 * THANKS: Refreshed from htdocs version.
377 1999-10-01 Steve Chamberlain <sac@pobox.com>
379 * Makefile.in: Rebuilt.
380 * Makefile.am (ZINCS): Define
382 * configure: Rebuilt.
383 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
385 * java/lang/ieeefp.h: Add definitions for picoJava.
387 1999-10-01 Tom Tromey <tromey@cygnus.com>
389 * configure: Rebuilt.
390 * configure.in: Set classpath when invoking gcj. Use changequote
391 around sed invocation.
393 * java/net/natPlainSocketImpl.cc: Stub native functions if
394 DISABLE_JAVA_NET is defined.
395 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
396 typo in exception string.
397 (getTimeToLive): Likewise.
398 Stub native functions if DISABLE_JAVA_NET is defined.
399 * java/net/natInetAddress.cc: Stub native functions if
400 DISABLE_JAVA_NET is defined.
401 * configure.host: Disable java.net for mips-tx39.
402 * configure, include/config.h.in: Rebuilt.
403 * acconfig.h (DISABLE_JAVA_NET): Undefine.
404 * configure.in: Added --disable-java-net and new define
407 1999-09-30 Tom Tromey <tromey@cygnus.com>
409 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
411 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
415 1999-09-28 Tom Tromey <tromey@cygnus.com>
417 * configure: Rebuilt.
418 * configure.in (PROCESS): In POSIX case, only set if not already
420 * configure.host (PROCESS): Set in mips-tx39 case.
422 * aclocal.m4, configure: Rebuilt.
423 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
424 appropriate AC_PROG_ symbol.
426 1999-09-24 Tom Tromey <tromey@cygnus.com>
428 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
430 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
432 Fix for PR java.util/47:
433 * configure, include/config.h: Rebuilt.
434 * configure.in: Don't look for ctime or ctime_r.
435 * Makefile.in: Rebuilt.
436 * Makefile.am (nat_source_files): Don't mention natDate.cc.
437 * java/util/natDate.cc: Removed.
438 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
440 (getAvailableIDs): Rewrote.
441 (getTimeZone): Rewrote.
442 * java/util/Date.java (toGMTString): New method.
443 (toLocaleString): New method.
446 1999-09-23 Tom Tromey <tromey@cygnus.com>
448 * configure: Rebuilt.
449 * configure.in: Print message when checking to see if gcj can
450 handle -fuse-divide-subroutine.
452 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
454 * java/lang/FirstThread.java (run0): Renamed to `run'.
457 * prims.cc (main_init): New function.
458 (JvRunMain): Call it.
459 (_Jv_RunMain): Likewise.
461 (main_init): Ignore SIGPIPE. Fixes PR 51.
463 1999-09-22 Tom Tromey <tromey@cygnus.com>
465 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
467 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
469 * java/text/MessageFormat.java (MessageFormat(String)): Set the
471 * java/text/NumberFormat.java: Check that object is a Number. If
472 not, throw IllegialArgumentException.
474 1999-09-21 Tom Tromey <tromey@cygnus.com>
476 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
477 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
479 * include/posix-threads.h (_Jv_MutexDestroy): Use
481 (_Jv_MutexLock): Likewise.
482 (_Jv_MutexUnlock): Likewise.
484 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
485 previous patch; it too was incorrect.
486 * java/io/PrintStream.java (PrintStream): Likewise.
488 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
489 refer to `this' before calling superclass constructor.
490 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
491 before calling superclass constructor.
493 1999-09-20 Tom Tromey <tromey@cygnus.com>
495 * configure: Rebuilt.
496 * configure.in: Send output of `-fuse-divide-subroutine' test
497 compilation to /dev/null.
499 1999-09-14 Tom Tromey <tromey@cygnus.com>
501 * include/java-insns.h: Turned constants into an enum. Added
502 multiple-inclusion protection.
504 1999-09-10 Tom Tromey <tromey@cygnus.com>
506 * configure: Rebuilt.
507 * configure.in: Build include/Makefile.
508 * Makefile.in: Rebuilt.
509 * Makefile.am (SUBDIRS): Added gcj and include.
510 (install-data-local): New target.
511 (extra_headers): New macro.
512 * include/Makefile.in: New file.
513 * include/Makefile.am: New file.
515 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
516 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
518 * boehm.cc: Don't include java-threads.h or gcj/field.h.
519 * resolve.cc: Include config.h.
520 * defineclass.cc: Include config.h.
521 * include/java-interp.h: Don't include config.h.
522 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
525 * gcj/javaprims.h: Regenerated namespace decls.
526 * classes.pl (scan): Don't put `;' after closing brace.
528 * Makefile.in: Rebuilt.
529 * Makefile.am (INCLUDES): Added -I for top_srcdir.
530 * configure.in: Create gcj/Makefile.
531 * gcj/Makefile.in: New file.
532 * gcj/Makefile.am: New file.
533 * java/lang/Object.h: Don't include any other headers.
534 * gcj/array.h: Renamed from include/java-array.h.
535 * gcj/field.h: Renamed from include/java-field.h.
536 * gcj/method.h: Renamed from include/java-method.h.
537 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
538 Updated all files to reflect new include structure.
540 1999-09-09 Tom Tromey <tromey@cygnus.com>
542 * configure: Rebuilt.
543 * configure.in: Fixed typo; variable is THREADSPEC and not
546 1999-09-08 Tom Tromey <tromey@cygnus.com>
548 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
549 previous change and implemented a correct test in the __m_count
552 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
555 1999-09-07 Tom Tromey <tromey@cygnus.com>
557 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
558 code and don't set errno.
560 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
561 not `r'. Changed `done_sleeping' to a `bool'.
563 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
565 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
566 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
567 by another thread, rather than by the GC.
568 (_Jv_CondWait): Prevent premature thread wakeup by GC.
569 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
570 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
573 1999-09-03 Tom Tromey <tromey@cygnus.com>
575 * configure: Rebuilt.
576 * configure.in: Check for fstat function.
577 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
580 1999-09-02 Tom Tromey <tromey@cygnus.com>
582 * include/java-array.h (jobjectArrayjchar): Removed unused
585 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
586 _Jv_PrepareCompiledClass while holding class mutex.
588 1999-09-01 Tom Tromey <tromey@cygnus.com>
590 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
591 (_Jv_PthreadGetMutex): Use it.
592 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
593 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
594 (_Jv_MutexLock): Likewise.
595 (_Jv_MutexUnlock): Likewise.
596 * include/config.h.in: Rebuilt.
597 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
598 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
599 * configure: Rebuilt.
600 * libgcj.spec.in: Don't mention INTERPSPEC.
601 * configure.in (INTERPSPEC): Removed.
602 Only run pthreads-related checks when using POSIX threads. Check
603 for m_count and __m_count in mutex structure.
605 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
607 * java/lang/natClass.cc: Fixed notification of threads
608 when class initialization is complete.
610 1999-09-01 Tom Tromey <tromey@cygnus.com>
612 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
613 * resolve.cc: Removed constants defined by
614 java.lang.reflect.Modifier.
615 Include <java/lang/reflect/Modifier.h>.
616 (_Jv_ResolvePoolEntry): Use values from Modifier.
617 (_Jv_DetermineVTableIndex): Likewise.
618 (_Jv_PrepareClass): Likewise.
620 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
621 java.lang.reflect.Modifier.
622 Include <java/lang/reflect/Modifier.h>.
623 (checkExtends): Use values from Modifier.
624 (checkImplements): Likewise.
625 (handleField): Likewise.
626 (handleConstantValueAttribute): Likewise.
627 (handleFieldsEnd): Likewise.
628 (handleMethod ): Likewise.
629 (handleMethodsEnd): Likewise.
630 (handleClassBegin): Likewise.
631 * interpret.cc: Removed constants defined by
632 java.lang.reflect.Modifier.
633 (continue1): Use values from Modifier.
634 * java/lang/natClassLoader.cc: Removed constants defined by
635 java.lang.reflect.Modifier.
637 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
638 JV_STATE_NOTHING, not `0'.
639 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
641 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
642 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
644 (_Jv_PthreadGetMutex): New function.
645 (_Jv_PthreadCheckMonitor): Use it.
646 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
647 (_Jv_MutexLock): Update `count'.
648 (_Jv_MutexUnlock): Likewise.
649 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
652 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
654 * Makefile.am (.java.lo): Add rule.
656 * Makefile.in: Rebuilt.
658 1999-09-01 Tom Tromey <tromey@cygnus.com>
660 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
661 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
663 (_Jv_CondNotify): Use it.
664 (_Jv_CondNotifyAll): Likewise.
666 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
668 1999-08-31 Tom Tromey <tromey@cygnus.com>
670 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
673 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
675 * posix-threads.cc: Include <errno.h>.
677 1999-08-23 Tom Tromey <tromey@cygnus.com>
679 * boehm.cc: Undefine TRUE and FALSE.
681 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
683 1999-08-21 Tom Tromey <tromey@cygnus.com>
685 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
688 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
690 * configure.in: Check for in_addr_t in netinet/in.h too. Check
692 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
693 (HAVE_STRUCT_IP_MREQ): Added.
694 * configure, include/config.h.in: Rebuilt.
695 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
697 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
698 Disable if ip_mreq is not available.
700 * configure.in: Check types ssize_t and in_addr_t.
701 * acconfig.h: Undefine them.
702 * configure, include/config.h.in: Rebuilt.
704 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
705 function that detects the signature of getpwuid_r.
706 (init_properties): Use it.
707 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
710 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
712 * interpret.cc (continue1): Implement explicit dispatch table.
713 insn_target: Explicit interpreter switch table.
714 SAVE_PC: New macro, moves pc saving code into instructions that
716 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
717 PC_REGISTER_ASM: New macro.
718 INLINE_SWITCH: New macro. Constrols dispatching strategy.
719 opcode: Remove local variable.
720 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
721 (POKEI): Use _Jv_word.
722 (iinc): Use _Jv_word.
723 (dupx): Change reference argument (sp) to pointer.
726 * interpret.cc: Remove instruction timing instrumentation.
728 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
729 comment. Don't use _Jv_ClassNameSamePackage.
731 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
732 URLPathEntry, CacheEntry}: Removed.
734 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
736 (.java.lo): Rule removed.
738 * Makefile.in: Rebuilt.
740 1999-08-19 Tom Tromey <tromey@cygnus.com>
742 * java/lang/natThread.cc (class locker): New class.
743 (join): Use a locker around _Jv_CondWait.
746 1999-08-18 Tom Tromey <tromey@cygnus.com>
748 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
749 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
751 1999-08-18 Tom Tromey <tromey@cygnus.com>
753 * include/javaprims.h ("Java"): Regenerated namespace decls.
755 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
757 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
758 from _Jv_InternClassStrings.
760 * prims.cc (_Jv_RunMain): New function.
761 (JvRunMain): Remove gij-support.
763 * gij.cc (main): Use _Jv_RunMain.
765 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
767 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
768 argument in temp variable.
769 (continue1): For all op_x2y insns, use temp variable for
770 intermediate value. Also remove some comments.
772 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
773 (forName): Don't call _Jv_InitClass.
775 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
777 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
779 * java/util/jar/JarInputStream.java: New file.
781 * java/util/jar/JarEntry.java: New file.
783 * java/util/jar/JarFile.java: New file.
785 * java/net/URLClassLoader.java: New file.
787 * java/net/JarURLConnection.java: New file.
789 * gnu/gcj/protocol/jar/Handler.java: New file.
791 * gnu/gcj/protocol/jar/Connection.java: New file.
793 * java/security/SecureClassLoader.java: New file.
795 * java/lang/ClassLoader.java (parent): New variable.
796 (ClassLoader (ClassLoader)): new constructor.
797 (findClass): New method.
798 (loadClass): Add default 1.2 implementation.
799 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
800 (readfully): Removed.
802 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
803 (findSystemClass): New method.
804 (VMClassLoader): Constructor rewritten.
806 All other methods removed.
808 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
809 to gnu::gcj::runtime::VMClassLoader.
810 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
812 (VMClassLoader::findSystemClass): renamed from findBootClass.
814 * Makefile.am: Add new files.
815 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
817 * Makefile.in: Rebuilt.
819 1999-08-17 Tom Tromey <tromey@cygnus.com>
821 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
823 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
826 1999-08-16 Tom Tromey <tromey@cygnus.com>
828 * configure: Rebuilt.
829 * configure.in: Set DIVIDESPEC to empty string if compiler does
830 not support -fuse-divide-subroutine.
832 1999-08-14 Per Bothner <per@bothner.com>
834 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
835 * java/lang/natClass.cc (initializeClass): Likewise.
836 * java/lang/ClassLoader.java (resolveClass0): New static method.
837 (resolveClass): Call resolveClass0.
838 (findSystemClass): No longer static.
840 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
842 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
844 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
846 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
849 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
852 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
855 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
858 * configure: Rebuilt.
859 * configure.in: Properly align --help output, fix capitalization
861 * acinclude.m4: Likewise.
863 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
865 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
867 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
868 (_Jv_callInterpretedMethod): Unused. Remove.
869 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
871 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
872 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
873 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
874 * interpret.cc: use _Jv_word.
875 * defineclass.cc: use_Jv_word.
876 * resolve.cc: Use _Jv_word.
877 (_Jv_ResolvePoolEntry): Return _Jv_word.
878 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
879 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
881 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
884 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
886 * configure: Rebuilt.
887 * configure.in (sched_yield): Try librt first, then libposix4.
888 Add -lrt, -lposix4 to THREADSPEC.
890 1999-08-08 Anthony Green <green@cygnus.com>
892 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
894 1999-08-08 Anthony Green <green@cygnus.com>
896 * defineclass.cc (_Jv_VerifyClassName): Verify array names
899 1999-08-08 Anthony Green <green@cygnus.com>
903 * include/config.h.in: Rebuilt.
904 * acconfig.h: Add INTERPRETER.
906 * Makefile.in: Rebuilt.
907 * Makefile.am (libffi_files): Identify the libffi object files for
909 (LIBFFIINCS): Define.
911 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
912 Dummy definition for configurations without an interpreter.
914 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
915 java::lang::Boolean constructor.
917 * include/java-interp.h: Always include java-cpool.h.
919 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
920 when INTERPRETER not defined.
922 * java/lang/Class.h (finalize): Define.
924 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
925 IOException from File.getCanonicalPath.
926 (getStream): Likewise.
929 * THANKS: More thanks.
931 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
933 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
935 (_Jv_PrepareClass): Allow non-abstract classes to
936 have abstract subclasses.
937 (_Jv_ResolvePoolEntry): Revert subclass check for protected
939 * interpret.cc (continue1/perform_invoke): Don't sign extend
941 (continue1/lshl,lshr): Push long, not int.
942 (continue1/ulshr): Use UINT64, not long long.
943 * defineclass.cc (handleFieldsEnd): Handle case when all fields
945 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
946 * java/lang/FirstThread.java (run): Add top-level exception
948 (run0): Renamed from run.
950 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
952 * configure.in (--with-interpreter): Added.
953 * include/config.h.in (INTERPRETER): Added.
955 * java/lang/ClassLoader.java: File replaced.
956 * java/lang/VMClassLoader.java: New file.
957 * java/lang/natClassLoader.cc: New file.
958 * gnu/gcj/runtime/MethodInvocation.java: New file.
959 * gnu/gcj/util/path/SearchPath.java: New file.
960 * gnu/gcj/util/path/PathEntry.java: New file.
961 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
962 * gnu/gcj/util/path/ZipPathEntry.java: New file.
963 * gnu/gcj/util/path/URLPathEntry.java: New file.
964 * gnu/gcj/util/path/CacheEntry.java: New file.
965 * include/java-interp.h: New file.
966 * include/java-cpool.h: New file.
967 * include/java-insns.h: New file.
968 * defineclass.cc: New file.
969 * interpret.cc: New file.
970 * resolve.cc: New file.
972 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
973 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
974 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
976 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
977 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
979 (initializeClass): Use new JV_ prefixed names. Also, call
980 ClassLoader::resolveClass instead of _Jv_ResolveClass.
982 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
983 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
984 JV_STATE_LINKED): New.
985 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
986 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
987 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
988 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
989 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
990 _Jv_InterpMethodInvocation): New friends for interpreter.
992 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
993 include/java-cpool.h and renamed with JV_ prefix.
995 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
997 (_Jv_UnregisterClass): New decl.
999 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1000 class loader argument.
1001 (_Jv_FindClass): Use class loader.
1003 * prims.cc (_Jv_makeUtf8Const): New function.
1004 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1005 (_Jv_NewPrimArray): Ditto.
1006 (_Jv_FindClassFromSignature): Ditto.
1007 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1008 * java/lang/reflect/natMethod.cc (getType): Ditto.
1010 * include/java-field.h (_Jv_Field::isRef): Make robust for
1011 non-resolved contexts.
1013 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1014 Also, don't mark class->next field.
1016 * java/lang/VirtualMachineError.java: Added FIXME note.
1018 * configure.in (INTERPSPEC): New spec.
1019 * libgcj.spec.in: Added INTERPSPEC.
1020 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1021 gnu/gcj/runtime/MethodInvocation.
1022 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1023 (ordinary_java_source_files): Added above mentioned java classes.
1025 * configure: Rebuilt.
1026 * Makefile.in: Rebuilt.
1028 1999-08-06 Tom Tromey <tromey@cygnus.com>
1030 * configure: Rebuilt.
1031 * configure.in: Look for sched_yield in -lrt.
1033 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1035 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1036 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1037 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1039 (toString): Print correctly when `country' is empty.
1041 1999-08-04 Per Bothner <per@bothner.com>
1043 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1045 1999-08-02 Tom Tromey <tromey@cygnus.com>
1047 * aclocal.m4, configure: Rebuilt for new libtool.
1049 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1051 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1052 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1053 * java/net/ServerSocket.java: Define ANY_IF.
1054 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1055 all network interfaces.
1056 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1057 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1059 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1061 * java/io/natFile.cc (performMkdir): Remove FIXME.
1062 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1064 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1066 * configure.in: Check for bstring.h.
1067 * configure, include/config.h.in: Rebuilt.
1068 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1069 * java/net/natPlainSocketImpl.cc: Likewise.
1071 1999-07-31 Tom Tromey <tromey@cygnus.com>
1076 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1078 * configure.in: Check for struct hostent_data and need for
1079 -D_REENTRANT for gethostbyname_r declaration.
1080 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1081 (lookup): Use hostent_data for fixed_buffer.
1082 * configure, include/config.h.in: Rebuilt.
1084 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1086 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1087 available. Don't cast memmove args to (void*).
1088 * configure.in: Do not abort if memmove is not available.
1090 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1092 * java/lang/natString.cc (substring): optimize where substring is
1094 * java/io/File.java (getName): don't return separator with file name.
1095 * java/io/natFile.cc (attr): fix overflow.
1097 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1099 * mauve-libgcj: Disable Object Serialization tests.
1101 1999-07-20 Warren Levy <warrenl@cygnus.com>
1103 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1104 Default to using PlainDatagramSocketImpl.
1105 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1107 1999-07-19 Tom Tromey <tromey@cygnus.com>
1109 * include/stamp-h.in: New file.
1111 1999-07-12 Tom Tromey <tromey@cygnus.com>
1113 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1116 1999-07-07 Andrew Haley <aph@cygnus.com>
1118 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1119 bytes to make it point after the instruction where the trap
1121 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1123 1999-07-07 Tom Tromey <tromey@cygnus.com>
1125 * mauve-libgcj: Explicitly enable formerly disabled java.text
1128 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1131 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1133 * java/net/URL.java (equals): Compare strings using String.equals.
1134 * java/net/URL.java (sameFile): Ditto.
1136 1999-07-02 Warren Levy <warrenl@cygnus.com>
1138 * configure: Rebuilt.
1139 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1140 * include/config.h.in: Rebuilt.
1141 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1142 (mcastGrp): Updated FIXME comments.
1143 (setOption): Fixed typo.
1144 (getOption):Implemented IP_MULTICAST_IF.
1146 1999-07-02 Warren Levy <warrenl@cygnus.com>
1148 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1149 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1150 (getTimeToLive): Implemented.
1151 (setOption): Implemented IP_MULTICAST_IF.
1153 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1155 * java/lang/String.java (toString): Check for this == null and throw
1156 NullPointerException.
1158 1999-07-01 Warren Levy <warrenl@cygnus.com>
1160 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1161 to count and revised comments to match.
1162 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1163 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1164 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1165 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1166 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1167 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1169 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1171 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1172 properly as count rather than outlength.
1173 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1174 output on overflow rather than buffer fill.
1175 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1176 if markPos is 0 and there is still room in the buffer.
1178 1999-07-01 Andrew Haley <aph@cygnus.com>
1180 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1181 This is a workaround for a bug in glibc's pthreads package which
1182 doesn't deliver any sigcontext information to a signal handler.
1184 1999-06-24 Tom Tromey <tromey@cygnus.com>
1186 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1187 * java/lang/fdlibm.h (HUGE): Conditionally define.
1189 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1191 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1192 * java/lang/e_log.c: Don't use __uint32_t.
1194 1999-05-27 Eric Christopher <echristo@cygnus.com>
1196 * configure: Rebuilt
1197 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1198 * acconfig.h: Rebuilt
1199 * include/config.h.in: Rebuilt
1201 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1202 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1203 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1204 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1205 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1206 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1207 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1208 and namespace collision with __uint32_t
1210 1999-06-23 Tom Tromey <tromey@cygnus.com>
1212 * java/util/zip/InflaterInputStream.java (read): Throw
1213 ZipException if inflater throws a DataFormatException.
1215 1999-06-23 Warren Levy <warrenl@cygnus.com>
1217 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1218 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1219 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1220 is not final per JDK.
1221 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1223 * java/util/zip/DataFormatException.java: Class extends Exception.
1224 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1225 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1226 * java/util/zip/ZipInputStream.java: ditto.
1227 (closeEntry): Changed method name to match JDK spec.
1229 1999-06-21 Tom Tromey <tromey@cygnus.com>
1231 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1234 * Makefile.in: Rebuilt.
1235 * Makefile.am (toolexeclibdir): Define as libdir when
1237 * configure: Rebuilt.
1238 * configure.in (USE_LIBDIR): New conditional.
1240 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1242 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1243 hostname in returned InetAddress objects.
1244 (getLocalHostname): Fix typo.
1245 * java/net/InetAddress.java (getByName): Set hostname on return
1247 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1250 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1252 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1253 interfaces if host==NULL.
1254 (accept): Throw message with InterruptedIOException.
1255 (getOption): Cache localAddress.
1256 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1257 'address' for DatagramSocket.
1258 (setTimeToLive): Fix compiler warnings.
1259 (getOption): Cache localAddress.
1260 * java/net/Socket.java (getLocalAddress): Don't need local
1261 InetAddress object. Add FIXME comment about calling checkConnect().
1262 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1263 connection queue to 50 as per JDK 1.2 docs.
1264 (ServerSocket(int,int)): Listen on all network interfaces by
1265 default, per JDK 1.2 docs.
1266 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1267 Add localAddress caching.
1269 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1271 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1273 (write(byte[],int,int)): ditto.
1275 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1277 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1279 1999-06-11 Warren Levy <warrenl@cygnus.com>
1281 * mauve-libgcj: Activated java.net Mauve tests.
1283 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1285 * java/net/natInetAddress.cc (aton): Fix typos.
1286 (lookup): Use a bigger buffer size for gethostbyname_r on all
1287 versions of glibc. Updated FIXME comment explaining this.
1288 Modified while loops to not set herr = ERANGE to work around glibc
1289 problems. Use user specified hostname in InetAddress result when
1290 available (consistent with JDK).
1292 1999-06-10 Warren Levy <warrenl@cygnus.com>
1294 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1295 Throw FileNotFoundException instead of IOException.
1297 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1299 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1300 in static field name.
1301 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1302 throughout rather than ParseException.
1304 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1306 * java/lang/Runtime.java (exec): Convert prog name and arguments
1308 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1309 environment array conversion. Preserve current environment if envp
1310 not passed. Preserve PATH unless explicitly specified.
1311 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1312 followed by EOF. Set a flag when a line is terminated by '\r' and
1313 ignore following '\n' if set.
1315 1999-06-02 Warren Levy <warrenl@cygnus.com>
1317 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1318 Ignore context if spec is an absolute URL. Fix braindead
1320 (hashCode): Use JDK 1.2 style algorithm.
1321 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1322 context URL properly.
1324 1999-05-30 Anthony Green <green@cygnus.com>
1326 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1327 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1329 1999-05-28 Warren Levy <warrenl@cygnus.com>
1331 * java/net/DatagramSocket.java (laddr): Removed.
1332 (DatagramSocket): Removed attempts to get or set laddr if null.
1333 (getLocalAddress): Reimplemented per spec.
1334 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1336 (joinGroup): Throw NullPointerException if any argument is null.
1337 (leaveGroup): ditto.
1338 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1339 * java/net/PlainSocketImpl.java (timeout): Added.
1340 (getInputStream): Added FIXME comment on how to support timeouts
1342 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1343 * java/net/Socket.java: Added FIXME comments to identify
1344 conflicting specs between the JCL and JDK 1.2 documents.
1345 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1346 if host is null. Get localport value resolved by kernel if bind
1348 (receive): Implemented support for timeouts in UDP.
1349 (setOption): Implemented based on natPlainSocketImpl version.
1351 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1352 resolved by kernel if bind lport is 0.
1353 (connect): Get localport value resolved by kernel if bind wasn't
1354 done to set localport.
1355 (accept): Implemented support for timeouts for ServerSocket.
1356 (setOption): Save value for SO_TIMEOUT.
1357 (getOption): Return timeout for SO_TIMEOUT.
1359 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1361 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1362 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1363 (setOption): Made abstract.
1364 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1365 to avoid cpp conflicts in native code.
1366 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1367 cpp conflicts in native code.
1368 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1369 * java/net/Socket.java (getLocalAddress): Implemented.
1370 (setTcpNoDelay): Implemented.
1371 (getTcpNoDelay): Implemented.
1372 (setSoLinger): Implemented.
1373 (getSoLinger): Implemented.
1374 (getSoTimeout): Verify class type.
1375 (setSendBufferSize): Implemented.
1376 (getSendBufferSize): Implemented.
1377 (setReceiveBufferSize): Implemented.
1378 (getReceiveBufferSize): Implemented.
1379 (toString): Prepended "Socket".
1380 * java/net/SocketImpl.java (toString): Rewritten.
1381 (getOption): Made abstract.
1382 (setOption): Made abstract.
1383 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1384 (setOption): Implemented.
1385 (getOption): Implemented.
1387 1999-05-26 Warren Levy <warrenl@cygnus.com>
1389 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1390 address when null. Set SO_REUSEADDR for multicasts.
1391 (getSoTimeout): Implemented.
1392 (setSoTimeout): Implemented.
1393 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1394 * java/net/MulticastSocket.java (getInterface): Implemented.
1395 (setInterface): Implemented.
1396 (setTimeToLive): Check for invalid ttl.
1397 (joinGroup): Verify multicast address and security.
1398 (leaveGroup): Verify multicast address and security.
1399 (send): Implemented.
1400 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1406 (getTTL): Implemented as non-native.
1410 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1411 (getSoTimeout): Implemented.
1412 (setSocketFactory): Made synchronized.
1413 * java/net/Socket.java (setSoTimeout): Implemented.
1414 (getSoTimeout): Implemented.
1415 (close): Made synchronized.
1416 (setSocketImplFactory): Made synchronized.
1417 * java/net/SocketImpl.java: Implement SocketOptions interface.
1418 * java/net/natInetAddress.cc: Corrected module name at top of file.
1419 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1420 (bind): Added FIXME.
1421 (peek): Implemented.
1427 (setOption): Implemented for SO_REUSEADDR.
1428 (getOption): Implemented for SO_REUSEADDR.
1430 1999-05-24 Tom Tromey <tromey@cygnus.com>
1432 * java/util/ResourceBundle.java (getBundle): Throw
1433 NullPointerException if baseName is null.
1435 1999-05-22 Tom Tromey <tromey@cygnus.com>
1437 * java/util/zip/ZipInputStream.java (fill): New method.
1438 (compressed_len): New instance variable.
1439 (getNextStream): Set it.
1440 (read): Reset inflater on EOF. Only read via `super' if entry is
1442 (skip): Only skip via `super' if entry is deflated.
1443 * java/util/zip/Deflater.java (last_input_count): Removed.
1444 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1446 (needsInput): Don't use last_input_count.
1447 (setInput): Don't set last_input_count.
1448 * java/util/zip/natInflater.cc (getRemaining): Return correct
1450 (inflate): Return 0 if input array is length 0.
1451 (setInput): Don't set last_input_count.
1452 * java/util/zip/Inflater.java (last_input_count): Removed.
1454 1999-05-21 Tom Tromey <tromey@cygnus.com>
1456 * Makefile.in: Rebuilt.
1457 * Makefile.am (INCLUDES): Added $(ZINCS).
1458 * configure: Rebuilt.
1459 * configure.in (ZINCS): New subst.
1461 1999-05-21 Andrew Haley <aph@cygnus.com>
1463 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1464 to signal options to allow the same exceptions to be rethrown
1467 1999-05-20 Andrew Haley <aph@cygnus.com>
1469 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1471 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1472 (INIT_FPE): Exception string made more informative.
1473 * include/sparc-signal.h (INIT_FPE): Exception string made more
1475 * testsuite/libjava.lang/Divide_1.java: New file.
1476 * testsuite/libjava.lang/Divide_1.out: New file.
1478 1999-05-19 Tom Tromey <tromey@cygnus.com>
1480 * aclocal.m4, configure: Rebuilt.
1481 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1483 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1486 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1488 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1490 (update): Fail in default case. Always initialize `strat'.
1492 * mauve-libgcj: Enable java.util.zip.
1494 1999-05-18 Warren Levy <warrenl@cygnus.com>
1496 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1497 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1498 PlainDatagramSocketImpl.java, and SocketOptions.java.
1499 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1500 * Makefile.in: Rebuilt.
1502 * java/net/DatagramPacket.java: New file.
1503 * java/net/DatagramSocket.java: New file.
1504 * java/net/DatagramSocketImpl.java: New file.
1505 * java/net/MulticastSocket.java: New file.
1506 * java/net/PlainDatagramSocketImpl.java: New file.
1507 * java/net/SocketOptions.java: New file.
1508 * java/net/natPlainDatagramSocketImpl.cc: New file.
1510 1999-05-18 Tom Tromey <tromey@cygnus.com>
1512 * java/util/zip/ZipOutputStream.java (level): Initial value is
1513 Deflater.DEFAULT_COMPRESSION.
1514 (close): New method.
1515 (closeEntry): Likewise.
1517 (put_version): Likewise.
1518 (write_entry): Likewise.
1519 (put2, put4): Now return `int'.
1520 (comment): Default to empty string.
1521 (bytes_written): New instance variable.
1523 * java/util/zip/ZipEntry.java (setComment): Limit length of
1525 (setCrc): Check CRC validity.
1526 (setExtra): Check argument validity.
1527 (setMethod): Likewise.
1528 (setSize): Likewise.
1529 (ZipEntry): Likewise.
1530 * include/javaprims.h: Updated namespace declarations.
1531 * Makefile.in: Rebuilt.
1532 * Makefile.am (ordinary_java_source_files): Mention new files.
1533 (nat_source_files): Likewise.
1534 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1537 (getInputStream): Handle compressed entries.
1538 * java/util/zip/GZIPOutputStream.java: New file.
1539 * java/util/zip/GZIPInputStream.java: New file.
1540 * java/util/zip/DataFormatException.java: New file.
1541 * java/util/zip/CheckedInputStream.java: New file.
1542 * java/util/zip/CheckedOutputStream.java: New file.
1543 * java/util/zip/InflaterInputStream.java: Implemented.
1544 * java/util/zip/natInflater.cc: New file.
1545 * java/util/zip/Deflater.java: Implemented.
1546 * java/util/zip/natDeflater.cc: New file.
1547 * java/util/zip/DeflaterOutputStream.java: Implemented.
1549 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1550 ZipException, not IOException.
1551 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1554 1999-05-17 Tom Tromey <tromey@cygnus.com>
1556 * java/lang/natSystem.cc (init_properties): URL now points to
1559 1999-05-12 Per Bothner <bothner@cygnus.com>
1561 * java/util/Calendar.java (set): First call computeFields if needed.
1562 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1564 1999-05-12 Tom Tromey <tromey@cygnus.com>
1566 * configure: Rebuilt.
1567 * configure.in: Look for -ldl when using the Boehm collector.
1568 Look for sched_yield in -lposix4.
1570 1999-05-12 Per Bothner <bothner@cygnus.com>
1572 * java/io/File.java (mkdirs): Handle a null parent directory.
1574 1999-05-12 Tom Tromey <tromey@cygnus.com>
1576 * include/javaprims.h: Updated namespace declarations.
1577 * classes.pl (scan): Uniquify class list.
1578 * Makefile.in, configure: Rebuilt.
1579 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1580 (built_java_source_files): New macro.
1581 (nat_headers): Added built_java_source_files.
1582 (javao_files): Likewise.
1583 (EXTRA_libgcj_la_SOURCES): Likewise.
1584 (libgcj.zip): Create built class files.
1585 ($(built_java_source_files:.java=.class)): New target.
1586 (jv_convert_LDADD): Added -L$(here)/.libs.
1587 * configure.in: Create links for ConcreteProcess.java and
1588 natConcreteProcess.cc.
1589 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1590 * java/lang/natEcosProcess.cc: New file.
1591 * java/lang/EcosProcess.java: New file.
1592 * java/lang/PosixProcess.java: New file.
1593 * java/lang/natPosixProcess.cc: New file.
1595 1999-05-12 Warren Levy <warrenl@cygnus.com>
1597 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1598 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1599 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1600 (connect): Throw ConnectException.
1602 1999-05-11 Tom Tromey <tromey@cygnus.com>
1604 * Makefile.in: Rebuilt.
1605 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1606 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1609 * Makefile.in: Rebuilt.
1610 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1611 and it causes problems with libtool.
1613 * Makefile.in, configure: Rebuilt.
1614 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1615 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1616 (jv_convert_DEPENDENCIES): Added ZDEPS.
1617 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1619 (THREADSPEC): Added `-L' to point to qthreads build directory.
1623 * configure, Makefile.in: Rebuilt.
1624 * Makefile.am (toolexeclib_DATA): New macro.
1625 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1626 Recognize --with-system-zlib.
1627 (GCSPEC): New subst.
1628 (THREADSPEC): New subst.
1629 (SYSTEMSPEC): New subst.
1630 (ZLIBSPEC): New subst.
1631 * libgcj.spec.in: New file.
1633 1999-05-10 Tom Tromey <tromey@cygnus.com>
1635 * java/io/InputStreamReader.java (read): If length is 0, return
1636 0. Reset `wpos' and `wcount' when buffer has been filled and
1639 * java/util/Properties.java (save): Removed `FIXME' comment.
1640 (load): Invalid characters in \u now treated as terminators.
1641 Make sure to append character resulting from `\' handling.
1642 Cast to `char' when appending to key or value.
1643 (skip_ws): Inverted test for whitespace.
1645 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1647 (readLine): Likewise.
1648 (readFully): Implemented.
1650 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1652 * java/awt/natToolkit.cc: Added copyright header.
1653 * java/util/zip/InflaterInputStream.java: Added copyright header.
1655 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1657 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1659 (getNextStream): Likewise.
1661 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1663 (getBundle): Don't explicitly throw null pointer exception.
1665 * gnu/gcj/RawData.java: Added copyright header.
1667 * include/jni.h (_Jv_va_list): Always define as va_list.
1669 1999-05-9 Anthony Green <green@cygnus.com>
1671 * java/text/DateFormat.java (computeInstance): Separate time
1673 (getDateTimeInstance): Ditto.
1674 (getDateTimeInstance(int,int)): New method.
1676 * Makefile.in: Rebuilt.
1677 * Makefile.am (ordinary_java_source_files): Add new classes.
1679 * java/util/PropertyResourceBundle.java: New file.
1680 * gnu/gcj/util/EnumerationChain.java: New file.
1682 1999-05-07 Tom Tromey <tromey@cygnus.com>
1684 * acconfig.h (GCJVERSION): New undef.
1685 * java/lang/natSystem.cc (init_properties): Define java.version,
1686 java.class.version, os.name, os.arch, os.version.
1687 Include <sys/utsname.h> if required.
1688 * configure: Rebuilt.
1689 * configure.in: Compute and define GCJVERSION.
1691 * java/lang/natSystem.cc (default_file_encoding): Now static.
1693 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1695 * libtool-version: New file.
1696 * Makefile.in: Rebuilt.
1697 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1700 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1701 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1704 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1705 (we pick those up already).
1707 1999-05-05 Per Bothner <bothner@cygnus.com>
1709 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1710 stub classes. (This is enough to get Kawa to compile against libgcj.)
1712 * gnu/gcj/RawData.java: New class.
1713 * doc/cni.sgml: Document RawData.
1715 * java/util/zip/InflaterInputStream.java: New stub class.
1716 * java/util/zip/ZipInputStream.java: New class. Partly works.
1717 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1718 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1719 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1720 * java/util/zip/ZipOutputStream.java: Start implementation.
1722 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1723 (default_file_encoding): New global, initial value is above macro.
1724 (init_properties): Default file.encoding to default_file_encoding.
1726 * Makefile.am: Add new classes.
1728 1999-05-05 Tom Tromey <tromey@cygnus.com>
1730 * Makefile.in: Rebuilt.
1731 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1732 (clean-local): New target
1734 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1735 (load, loadLibrary): Now native.
1737 * java/lang/Runtime.java (load, loadLibrary): Now native.
1738 (init): New native method.
1739 (Runtime): Use init.
1740 * prims.cc: Include <ltdl.h> if required.
1741 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1743 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1745 * configure.in: Switch from irix threads to posix threads
1746 * configure: Regenerate.
1748 1999-04-30 Tom Tromey <tromey@cygnus.com>
1750 * Makefile.in: Rebuilt.
1751 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1753 1999-04-29 Tom Tromey <tromey@cygnus.com>
1755 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1758 * java/util/Locale.java (Locale(String,String)): Implement in
1759 terms of 3-argument version; variant now defaults to empty
1761 (toString): Assume variant is not null.
1762 (equals): Assume all strings are not null.
1763 (Locale): Throw NullPointerException if any argument is null.
1765 * java/util/ResourceBundle.java (getBundle): Don't try the base
1766 name; now implicit in partialGetBundle call.
1767 (trySomeGetBundle): Search for parent bundles and call setParent
1769 (partialGetBundle): Added `langStop' argument. Use
1770 `Locale.toString' to compute bundleName.
1771 (resource_cache): New static field.
1772 (partialGetBundle): Cache the returned resource bundle. Now
1775 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1778 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1779 * java/text/natCollator.cc (decomposeCharacter): `base' now
1781 * Makefile.in: Rebuilt.
1782 * Makefile.am (ordinary_java_source_files): Added
1783 CollationElementIterator, CollationKey, Collator,
1785 (nat_source_files): Added natCollator.cc.
1786 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1787 (compare): Pass `this' to CollationElementIterator constructor.
1788 (getCollationElementIterator): Likewise.
1789 (ceiNext): Fix off-by-one error when finding initial substring.
1790 (next): Correctly mask off bits when computing return value.
1791 Fixed return values when one string is shorter than the other.
1792 * java/text/CollationElementIterator.java (collator): New field.
1793 (CollationElementIterator): Added collator argument.
1794 (next): Call ceiNext on collator object.
1796 1999-04-26 Tom Tromey <tromey@cygnus.com>
1798 * natCollator.cc: New file.
1800 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1801 (GregorianCalendar): Use it in all constructors.
1802 * java/util/Calendar.java (Calendar): Changed argument name to
1803 `zone' to match code.
1805 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1806 * java/text/CollationKey.java: New file.
1807 * java/text/CollationElementIterator.java: New file.
1808 * java/text/Collator.java: New file.
1809 * java/text/RuleBasedCollator.java: New file.
1811 * Makefile.in: Rebuilt.
1812 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1813 (jv_convert_LDADD): Explicltly add -lm -lc.
1815 1999-04-26 Tom Tromey <tromey@cygnus.com>
1817 * configure, Makefile.in: Rebuilt.
1818 * configure.in: Added AM_PROG_LIBTOOL.
1819 (GCOBJS): Use `.lo' form of files.
1820 (THREADOBJS): Likewise.
1821 (GCDEPS): Use `.la' form of library.
1822 (GCLIBS): Set to be the same as GCDEPS.
1823 (THREADDEPS): Use `.la' form of library.
1824 (THREADLIBS): Set to be the same as THREADDEPS.
1825 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1826 toolexeclib_LIBRARIES.
1827 (libgcj_la_SOURCES): Renamed for libtoolization.
1828 (EXTRA_libgcj_la_SOURCES): Likewise.
1829 (libgcj_la_DEPENDENCIES): Likewise.
1830 (libgcj_la_LIBADD): Likewise.
1831 ($(nat_files)): Use LTCXXCOMPILE.
1832 ($(c_files)): Use LTCOMPILE.
1833 (GCJCOMPILE): New macro.
1835 (.java.o): Likewise.
1836 ($(javao_files)): Likewise.
1837 (jv_convert_LINK): Use LIBTOOL.
1838 (nat_files): Use `.lo' files.
1839 (c_files): Likewise.
1840 (javao_files): Likewise.
1841 (.class.lo): Renamed.
1842 (.java.lo): Likewise.
1843 ($(nat_files)): Depend on %.lo.
1844 ($(c_files)): Likewise.
1845 ($(javao_files)): Likewise.
1846 (jv_convert_LDADD): Link against .lo files.
1847 (jv_convert_DEPENDENCIES): Depend on .lo files.
1848 (maintainer-check): Depend on libgcj.la, but examine .a file.
1849 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1850 (libgcj_la_LDFLAGS): New macro.
1852 1999-04-23 Warren Levy <warrenl@cygnus.com>
1854 * Makefile.am: Added URLDecoder and URLEncoder.
1855 * Makefile.in: Rebuilt.
1857 * java/net/ServerSocket.java (setSocketFactory): Renamed from
1858 setSocketImplFactory to match spec.
1859 * java/net/Socket.java (getSoLinger): Changed return type to
1862 * java/net/URLDecoder.java: New file.
1863 * java/net/URLEncoder.java: New file.
1865 1999-04-21 Tom Tromey <tromey@cygnus.com>
1867 * java/lang/natString.cc (getBytes): Reverted earlier change and
1868 applied correct fix from Per Bothner.
1870 * java/lang/String.java: Don't throw
1871 UnsupportedEncodingException.
1873 * java/lang/natString.cc (getBytes): Correctly size result
1874 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
1876 1999-04-20 Andrew Haley <aph@cygnus.com>
1878 * include/sparc-signal.h: new file.
1879 * configure.in: include/sparc-signal.h added.
1880 * configure: regenerated.
1881 * prims.cc (JvRunMain): signal handling code rewritten to be more
1883 (catch_segv): ditto.
1885 * include/i386-signal.h: reorganized.
1886 * include/default-signal.h: reorganized.
1888 1999-04-19 Tom Tromey <tromey@cygnus.com>
1890 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1891 once. From Anthony Green.
1893 1999-04-19 Andrew Haley <aph@cygnus.com>
1895 * Makefile.in: Processed with new automake.
1897 1999-04-19 Tom Tromey <tromey@cygnus.com>
1899 * include/javaprims.h: Removed security namespace.
1901 1999-04-20 Anthony Green <green@cygnus.com>
1903 * java/io/PrintStream.java (println): Remove extra println.
1905 1999-04-19 Anthony Green <green@cygnus.com>
1907 * Makefile.in: Rebuilt.
1908 * Makefile.am (ordinary_java_source_files): Add new security files.
1910 * java/security/NoSuchAlgorithmException.java,
1911 java/security/MessageDigest.java: New files.
1913 * include/javaprims.h: Add security namespace.
1915 1999-04-16 Per Bothner <bothner@cygnus.com>
1917 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
1918 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1919 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1920 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
1921 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
1922 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
1923 * gnu/gcj/convert/natInput_SJIS.cc: New file.
1924 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
1925 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
1926 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
1927 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
1928 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
1929 * Makefile.am: Various changes for new files and conversions.
1931 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1932 New overloading, allows greater efficiency.
1933 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1934 New overloading (for efficiency - avoids copying).
1936 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
1937 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
1939 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
1940 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
1941 (writeChars): Don't be quite so eager to flush.
1942 * java/io/PrintStream.java: Rewrite. Now more similar to
1943 OutputStreamWriter, using explicit UnicodeToBytes converter.
1944 Also, autoflush does not need to flush so often.
1945 * java/lang/natString.cc (getBytes): More efficient algorithm.
1946 (init(jbyteArray,jint,jint,jstring)): More efficient.
1948 1999-04-15 Warren Levy <warrenl@cygnus.com>
1950 * Makefile.am (ordinary_java_source_files): Added new Connection
1951 and Handler classes in gnu.gcj.protocol.file package.
1952 * Makefile.in: Rebuilt.
1954 * gnu/gcj/protocol/file/Connection.java: New file.
1955 * gnu/gcj/protocol/file/Handler.java: New file.
1956 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1957 if doInput allows input.
1958 (getOutputStream): Check if doOutput allows output.
1959 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
1961 1999-04-14 Tom Tromey <tromey@cygnus.com>
1963 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
1964 buffer larger to work around bug.
1965 From Bryce McKinlay <bryce@albatross.co.nz>.
1967 1999-04-14 Andrew Haley <aph@cygnus.com>
1969 * java/lang/natDouble.java (doubleToLongBits): ensure that all
1970 NaNs are always converted to the same long value.
1971 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
1974 1999-04-13 Tom Tromey <tromey@cygnus.com>
1976 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
1977 instead switch on actual element type.
1979 * Makefile.in: Rebuilt.
1980 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
1982 1999-04-13 Andrew Haley <aph@cygnus.com>
1984 * include/i386-signal.h, include/default-signal.h: New files.
1985 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
1987 (catch_fpe): New function.
1988 * configure.in: Make link to appropriate include/java-signal.h.
1989 * configure: Rebuilt.
1990 * Makefile.am: include/java-signal.h added to dependency list.
1991 * Makefile.in: Rebuilt.
1993 1999-04-12 Urban Widmark <urban@svenskatest.se>
1995 * java/io/DataInputStream.java (readLine): Corrected handling of
1996 empty lines, from null to "".
1998 1999-04-12 Tom Tromey <tromey@cygnus.com>
2000 * Makefile.in: Rebuilt.
2001 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2003 * java/lang/natSystem.cc (SystemClass): New define.
2004 (init_properties): Synchronize.
2006 1999-04-08 Geoff Berry <gcb@gnu.org>
2008 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2009 * natPlainSocketImpl.cc (accept): Add missing else if check
2012 1999-04-08 Tom Tromey <tromey@cygnus.com>
2014 * java/lang/Long.java (parseLong): Corrected overflow detection
2016 * java/lang/Integer.java (parseInt): Corrected overflow detection
2019 * java/io/PrintStream.java (print): Handle null string argument.
2020 (println): Likewise.
2022 1999-04-07 Warren Levy <warrenl@cygnus.com>
2024 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2025 Set count to 0 when InputStreamReader returns -1 for EOF.
2027 1999-04-07 Tom Tromey <tromey@cygnus.com>
2029 * mauve-libgcj: Omit java.text.Collator,
2030 java.text.RuleBasedCollator.
2032 1999-04-06 Tom Tromey <tromey@cygnus.com>
2034 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2035 IOException from getHttpHeaders().
2036 (getHeaderFieldKey): Likewise.
2038 * include/javaprims.h: Regenerated declarations.
2040 * Makefile.in: Rebuilt.
2041 * Makefile.am (ordinary_java_source_files): Updated for removed
2044 1999-04-06 Per Bothner <bothner@cygnus.com>
2046 * java/util/zip/Adler32.java: New class.
2047 * java/util/zip/CRC32.java: Add working method bodies.
2048 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2049 * Makefile.in: Re-generate.
2051 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2053 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2054 from version in removed www hierarchy.
2055 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2056 version in removed www hierarchy.
2058 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2059 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2060 * gnu/gcj/www/protocol/http: Removed dir.
2061 * gnu/gcj/www/protocol: Removed dir.
2062 * gnu/gcj/www: Removed dir.
2064 * java/net/HttpURLConnection.java: Revised comments to indicate
2065 missing JDK 1.2 methods.
2067 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2068 hierarchy rather than the gnu/gcj/www/protocol one.
2069 * java/net/URLConnection.java: Updated status comments.
2070 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2071 the gnu/gcj/www/content one.
2073 1999-04-06 Per Bothner <bothner@cygnus.com>
2075 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2076 The gen-from-JIS program is in $(CONVERT_DIR).
2078 1999-04-06 Tom Tromey <tromey@cygnus.com>
2080 * mauve-libgcj: Renamed from mauve-libjava.
2082 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2084 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2085 (getResponseMessage): Implemented.
2086 (getResponseVals): New private method.
2088 * java/net/URLConnection.java (getContent): Implemented.
2089 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2091 1999-04-05 Tom Tromey <tromey@cygnus.com>
2093 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2094 (jv_convert_SOURCES): Renamed.
2095 (EXTRA_jv_convert_SOURCES): Likewise.
2096 (jv_convert_LDFLAGS): Likewise.
2097 (jv_convert_LINK): Likewise.
2098 (jv_convert_LDADD): Likewise.
2099 (jv_convert_DEPENDENCIES): Likewise.
2101 * Makefile.in: Rebuilt.
2102 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2105 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2107 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2108 method for comparison.
2110 * java/net/URLConnection.java (getContentLength): Implemented.
2111 (getContentType): Implemented.
2112 (getContentEncoding): Implemented.
2113 (getExpiration): Implemented.
2114 (getDate): Implemented.
2115 (getLastModified): Implemented.
2116 (getHeaderFieldInt): Implemented.
2117 (getHeaderFieldDate): Implemented.
2119 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2121 * java/net/URLConnection.java (toString): Implemented.
2122 (setContentHandlerFactory): Implemented.
2123 (setContentHandler): Wrote new private helper method.
2125 1999-04-01 Tom Tromey <tromey@cygnus.com>
2127 * Makefile.in: Rebuilt.
2128 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2129 of 1999-03-31; we always want to build all the .class files.
2130 Depend on java_source_files, not libgcj.zip.
2131 (nat_headers): Define in terms of ordinary_java_source_files.
2133 1999-03-31 Tom Tromey <tromey@cygnus.com>
2135 * Makefile.in: Rebuilt.
2136 * Makefile.am (special_java_source_files): New macro.
2137 (java_source_files): Use it.
2138 (ordinary_java_source_files): New macro.
2139 (java_source_files): Use it.
2140 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2141 creating headers for those files with hand-maintained headers.
2143 * include/javaprims.h: Regenerated namespace declarations.
2144 * classes.pl (scan): Include [0-9] in regexp for matching class
2145 names; for java.util.zip.CRC32.
2147 * Makefile.in: Rebuilt.
2148 * Makefile.am (nat_headers): Redefined to generate all possible
2151 * java/util/zip/ZipException.java: In package java.util.zip, not
2154 1999-03-30 Tom Tromey <tromey@cygnus.com>
2156 * configure: Rebuilt.
2157 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2158 eh-common.h when not building in tree with gcc.
2160 * Makefile.in: Rebuilt.
2161 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2162 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2164 ($(java_source_files:.java=.class)): New target.
2166 * Makefile.in: Rebuilt.
2167 * Makefile.am (java_source_files): Added
2168 java/net/HttpURLConnection.java and
2169 gnu/gcj/www/protocol/http/Connection.java.
2171 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2173 * gnu/gcj/www/protocol/http/Connection.java: New file.
2174 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2175 * java/net/HttpURLConnection.java: New file.
2176 * java/net/URLConnection.java (getHeaderField): Implemented default.
2177 (getHeaderFieldKey): Implemented default method.
2179 1999-03-30 Tom Tromey <tromey@cygnus.com>
2181 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2183 * java/util/zip/Deflater.java: Added copyright header.
2184 * java/util/zip/CRC32.java: Added copyright header.
2186 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2187 that it is automatically generated.
2188 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2190 * gnu/gcj/convert/BytesToUnicode.java,
2191 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2192 gnu/gcj/convert/Input_EUCJIS.java,
2193 gnu/gcj/convert/Input_UTF8.java,
2194 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2195 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2196 gnu/gcj/convert/Output_8859_1.java,
2197 gnu/gcj/convert/Output_JavaSrc.java,
2198 gnu/gcj/convert/Output_UTF8.java,
2199 gnu/gcj/convert/UnicodeToBytes.java,
2200 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2202 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2204 * Makefile.in, configure: Rebuilt.
2205 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2206 not if test subdir exists.
2207 (--enable-gcj-classes): Removed; gcj always used to generate
2209 (JAVA, JAVAC): Removed.
2210 (--enable-single-compilation, --enable-source-compilation):
2213 (NATIVE): New conditional.
2214 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2215 `install-exec' to work.
2216 (toolexeclibdir): Likewise.
2217 (toollib_LIBRARIES): Likewise.
2218 (AM_MAKEFLAGS): Don't pass tooldir.
2220 (javao_files): Redefined.
2221 (java_source_files): New macro.
2222 (c_source_files): New macro.
2223 (c_files): Redefined in terms of c_source_files.
2224 (java_io_files, java_lang_files, java_net_files, java_text_files,
2225 java_util_files, gnu_files, java_files): Removed.
2226 (class_io_files, class_lang_files, class_net_files,
2227 class_text_files, class_util_files, class_gnu_files, class_files):
2229 (nat_source_files): New macro.
2230 (nat_files): Redefined in terms of nat_source_files.
2231 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2232 java_source_files. Removed no-such-file.c.
2234 (ETAGS_ARGS): Removed.
2235 (TAGS_DEPENDENCIES): Likewise.
2236 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2238 (src_io_files, src_lang_files, src_text_files, src_util_files,
2239 src_gnu_files): Removed.
2240 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2241 (BUILT_SOURCES): Removed.
2242 (header-check): New target.
2244 (noinst_PROGRAMS): New macro.
2245 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2247 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2248 (gen-from-JIS): Build in top directory.
2249 (convert_source_files): New macro.
2250 (convert_SOURCES): New macro.
2251 (convert_LDFLAGS): Likewise.
2252 (convert_LINK): Likewise.
2253 (convert_LDADD): Likewise.
2254 (convert_DEPENDENCIES): Likewise.
2256 (gen-from-JIS): Removed.
2257 (gen_from_JIS_SOURCES): New macro.
2258 (gen_from_JIS_LDADD): Likewise.
2259 (gen_from_JIS_DEPENDENCIES): Likewise.
2261 * configure: Rebuilt.
2262 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2263 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2264 when defining conditional.
2266 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2268 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2269 The Unicode Consortium does not permit their re-distribution.
2270 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2271 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2273 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2275 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2277 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2279 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2280 from Unicode Consortium.
2281 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2282 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2283 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2284 New tables, generated using gen-from-JIS.
2285 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2286 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2287 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2288 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2290 * gnu/gcj/convert/Convert.java: New application.
2291 * Makefile.am, Makefile.in (convert): New program, using Convert.
2292 Build the various JIS conversion tables (in maintainer mode).
2294 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2296 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2298 * java/net/URL.java (URL): Deal with null property value. Use "."
2299 as separator in building class name.
2300 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2301 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2302 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2303 beginning of the substring rather than 'start'.
2305 1999-03-26 Tom Tromey <tromey@cygnus.com>
2307 * include/java-chartables.h: Rebuilt.
2308 * include/java-chardecomp.h: New file.
2309 * chartables.pl: Generate output files directly. Added support
2310 for generating decomposition header.
2311 (canonical_decomposition, full_decomposition): New globals.
2312 (DECOMPOSITION): New constant.
2313 (process_char): Call add_decomposition.
2314 (add_decomposition): New sub.
2315 (write_decompositions): New sub.
2317 1999-03-25 Tom Tromey <tromey@cygnus.com>
2319 * java/text/CollationElementIterator.java: New file.
2321 * mauve-libjava: Omit StringTest.
2323 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2325 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2326 without a '/' when parsing protocol. Handle ref outside of parseURL.
2327 (hashCode): Implemented.
2328 (set): Don't expand -1 to default port.
2329 (getDefaultPort): Removed.
2331 * java/net/URLStreamHandler.java (parseURL): Implemented.
2332 (toExternalForm): Implemented.
2334 1999-03-23 Tom Tromey <tromey@cygnus.com>
2336 * java/text/BreakIterator.java (getSentenceInstance):
2338 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2340 * Makefile.in: Rebuilt.
2341 * Makefile.am (nat_headers): Added IllegalAccessException.
2342 * java/lang/natClass.cc (newInstance): Throw
2343 IllegalAccessException, not IllegalAccessError.
2344 Include IllegalAccessException.h.
2346 1999-03-22 Tom Tromey <tromey@cygnus.com>
2348 * gnu/gcj/text/LineBreakIterator.java: New file.
2349 * java/text/BreakIterator.java (getLineInstance): Implemented.
2351 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2352 copy constructor private.
2353 (previous, next): Removed erroneous comment about line
2355 (previous): Correctly recognize break between non-letter on the
2356 left and letter on the right. Handle apostrophes correctly.
2358 * java/text/BreakIterator.java (getWordInstance): Implemented.
2359 * gnu/gcj/text/WordBreakIterator.java: New file.
2360 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2362 * gnu/gcj/text/BaseBreakIterator.java: New file.
2364 1999-03-19 Tom Tromey <tromey@cygnus.com>
2366 * java/text/BreakIterator.java: New file (partially stubbed out).
2367 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2369 * include/config.h.in: Rebuilt.
2370 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2371 (HAVE_TIMEZONE): Likewise.
2372 * configure: Rebuilt.
2373 * configure.in: Added timezone checks.
2374 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2377 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2379 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2380 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2381 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2382 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2383 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2384 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2385 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2386 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2388 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2389 (BSD_COMP): Kludge needed for Solaris2.
2391 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2393 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2394 URL(java.net.URL, string, URLStreamHandler) and call it with a
2395 null handler. In latter constructor, added SecurityManager check.
2396 (set): Expect null handler on bad protocol rather than an exception.
2397 (setURLStreamHandler): Simplified exception handling; return null
2398 on invalid protocol.
2400 1999-03-18 Tom Tromey <tromey@cygnus.com>
2402 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2404 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2406 Include PrintStream.h, InputStream.h.
2407 * java/lang/System.java (ForwardingInputStream,
2408 ForwardingOutputStream): Removed.
2409 (setErr, setIn, setOut): Now native.
2411 Reverted patch from 1999-02-12 to work around problem in
2413 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2414 (_Jv_eh_free): Use free.
2416 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2417 for path name. Minor formatting fixes.
2419 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2421 * prims.cc (fail_on_finalization): New function.
2422 (_Jv_GCWatch): Likewise.
2424 * prims.cc (JvRunMain): Initialize `nullp'.
2425 (nullp): New global.
2426 (catch_segv): Throw nullp.
2428 * Makefile.in: Rebuilt.
2429 * Makefile.am (ZIP): In "null target" case, zip is found in the
2432 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2436 * java/lang/StringBuffer.java (StringBuffer): Don't use
2437 ensureCapacity to set initial capacity.
2438 (capacity): Subtract `length' from return result.
2440 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2442 * java/io/natFileDescriptorPosix.cc (open): Throw
2443 FileNotFoundException, but with filename and errno in msg.
2445 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2447 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2448 functionality folded into java/net/URL.java per spec.
2450 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2451 than EEXIST for throwing FileNotFoundException.
2453 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2454 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2456 * java/net/URLStreamHandler.java (parseURL): Added stub.
2458 1999-03-15 Andrew Haley <aph@cygnus.com>
2460 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2463 1999-03-15 Andrew Haley <aph@cygnus.com>
2465 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2468 1999-03-12 Tom Tromey <tromey@cygnus.com>
2470 * prims.cc (catch_segv): New function.
2471 Include <signal.h> if HANDLE_SEGV defined. Include
2472 NullPointerException.h.
2473 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2476 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2477 a SimpleDateFormat, not just a DateFormat.
2478 (defaultCenturyStart, formatData, pattern): Now private.
2479 (append): Now `final'. Use `NumberFormat.format'.
2481 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2483 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2486 * java/text/MessageFormat.java (format): Use default MessageFormat
2488 (parse, parseObject): Wrote.
2490 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2493 1999-03-12 Andrew Haley <aph@cygnus.com>
2495 * java/lang/String.java (indexOf): Replace with native method for
2497 * java/lang/natString.cc (IndexOf): As above.
2499 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2500 Argument check corrected.
2501 (init(jbyteArray,jint,jint,jstring)): Likewise.
2503 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2504 1.2 compliant method.
2506 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2508 * java/lang/Float.java (byteValue, shortValue): Likewise.
2510 1999-03-11 Tom Tromey <tromey@cygnus.com>
2512 * java/text/DecimalFormat.java (parse): Wrote.
2514 * java/text/ChoiceFormat.java (parse): Set error index on
2515 ParsePosition object.
2517 * java/lang/Integer.java (parseInt): Throw exception on overflow
2518 when intermediate result is most negative number. Changed
2519 overflow detection as well.
2520 * java/lang/Long.java (parseLong): Likewise.
2522 * configure, Makefile.in: Rebuilt.
2523 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2524 CANADIAN when building in source tree that doesn't include gcc.
2525 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2528 * java/text/ChoiceFormat.java (nextDouble): Correct some
2529 off-by-one errors when masking or adding.
2531 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2532 parameter, if given. Use `%', not IEEEremainder.
2533 (scanFix): Throw error if multiplier already set.
2534 (computePattern): Wrote.
2536 1999-03-11 Andrew Haley <aph@cygnus.com>
2538 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2540 (nextDouble): Corrected masking logic. Handle interaction between
2541 `next' and negative numbers.
2543 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2545 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2546 * java/net/URL.java: Added general comments.
2548 1999-03-10 Tom Tromey <tromey@cygnus.com>
2550 * java/text/ChoiceFormat.java (parse): Wrote.
2552 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2554 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2555 Create ChoiceFormat objects.
2556 (format): Special-case ChoiceFormat.
2557 (scanFormatElement): Include { and } in generated style string.
2559 1999-03-09 Tom Tromey <tromey@cygnus.com>
2561 * java/text/ChoiceFormat.java: New file.
2563 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2565 * java/net/BindException.java: Created.
2566 * java/net/ConnectException.java: Created.
2567 * java/net/ContentHandler.java: Created.
2568 * java/net/ContentHandlerFactory.java: Created.
2569 * java/net/FileNameMap.java: Created.
2570 * java/net/MalformedURLException.java: Created.
2571 * java/net/NoRouteToHostException.java: Created.
2572 * java/net/ProtocolException.java: Created.
2573 * java/net/ServerSocket.java (@author): Fixed typo.
2574 * java/net/Socket.java (@author): Fixed typo.
2575 * java/net/SocketImpl.java (@author): Fixed typo.
2576 * java/net/SocketImplFactory.java (@author): Fixed typo.
2577 * java/net/URL.java: Created - nearly complete.
2578 * java/net/URLConnection.java: Created - near-empty stub.
2579 * java/net/URLStreamHandler.java: Created - incomplete stub.
2580 * java/net/URLStreamHandlerFactory.java: Created.
2581 * java/net/UnknownServiceException.java: Created.
2583 1999-03-09 Tom Tromey <tromey@cygnus.com>
2585 * java/lang/System.java (ForwardingInputStream): New class.
2586 (ForwardingOutputStream): Likewise.
2587 (in, out, err): Now `final' forwarding streams.
2588 (setIn, setOut, setErr): Use appropriate method on forwarding
2591 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2594 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2596 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2597 * java/util/zip/Checksum.java: New interface (complete).
2598 * java/util/zip/Deflater.java: New class (near-empty stub).
2599 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2600 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2601 * java/util/zip/ZipEntry.java: New class (complete).
2602 * java/util/zip/ZipException.java: New class (complete).
2603 * java/util/zip/ZipFile.java: New class (incomplete stub).
2604 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2606 1999-03-09 Tom Tromey <tromey@cygnus.com>
2608 * java/text/MessageFormat.java (MessageFormatElement): Removed
2609 `public' specifiers.
2611 * java/text/DecimalFormat.java (scanFormat): Increment index
2612 before processing exponential format. Fixed a couple typos in
2614 (format): Correct normalization of exponent.
2616 1999-03-08 Tom Tromey <tromey@cygnus.com>
2618 * java/text/SimpleDateFormat.java (parse): Throw
2619 IllegalArgumentException, not ParseException.
2621 1999-03-05 Tom Tromey <tromey@cygnus.com>
2623 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2624 when constructing DateFormatSymbols. Initialize numberFormat
2625 field of superclass.
2627 * java/text/DateFormat.java (equals): Rewrote.
2628 (getAvailableLocales): New method.
2629 (getDateInstance): New methods.
2630 (getDateTimeInstance): Likewise.
2631 (getTimeInstance): Likewise.
2632 (getInstance): New method.
2633 (computeInstance): New method.
2635 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2637 (safeGetResource): New method.
2638 (DateFormatSymbols): Use Locale paramater.
2639 (equals): Now protected.
2640 Made instance variables private.
2642 1999-03-04 Tom Tromey <tromey@cygnus.com>
2644 * java/text/DecimalFormat.java: New file.
2646 * java/text/NumberFormat.java (groupingUsed,
2647 maximumFractionDigits, maximumIntegerDigits,
2648 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2650 (setDecimalSeparatorAlwaysShown, setMultiplier,
2651 setPositivePrefix): Removed.
2652 (setMinimumFractionDigits, setMaximumFractionDigits):
2654 (format): Now final.
2655 Added many new methods.
2657 * Makefile.in: Rebuilt.
2658 * Makefile.am (gnu_files): New macro.
2659 (java_files): Added gnu_files.
2660 (class_gnu_files): New macro.
2661 (class_files): Use it.
2662 (src_gnu_files): New macro.
2663 (gnu.o): New target.
2664 (javao_files): Added gnu.o.
2666 * gnu/gcj/text/LocaleData_en_US.java: New file.
2667 * gnu/gcj/text/LocaleData_en.java: New file.
2668 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2669 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2670 (safeGetString): New method.
2671 (safeGetChar): Likewise.
2673 1999-03-03 Tom Tromey <tromey@cygnus.com>
2675 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2678 * java/text/FieldPosition.java (equals): Don't check for null
2679 object; instanceof does this.
2681 * java/util/Locale.java (clone): New method.
2684 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2686 * doc/cni.sgml: New file.
2688 1999-03-03 Tom Tromey <tromey@cygnus.com>
2690 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2692 * java/text/DecimalFormatSymbols.java: New file.
2694 1999-03-02 Tom Tromey <tromey@cygnus.com>
2696 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2698 * configure: Rebuilt.
2699 * configure.in: Check for sys/filio.h.
2701 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2703 (load): Always throw UnsatisfiedLinkError.
2704 (loadLibrary): Likewise.
2706 1999-03-02 Anthony Green <green@cygnus.com>
2708 * LIBGCJ_LICENSE: New file.
2709 * LIBJAVA_LICENSE: Removed.
2710 * Many files: libjava now libgcj.
2712 1999-03-02 Tom Tromey <tromey@cygnus.com>
2714 * include/java-chartables.h: Rebuilt.
2715 * chartables.pl (print_block): Make table `const'.
2716 (print_numerics): Likewise.
2717 (print_single_map): Likewise.
2718 (print_all_block): Likewise.
2719 (print_case_table): Likewise.
2720 (print_fast_tables): Likewise.
2721 * java/lang/natCharacter.cc (table_search): `table' argument now
2724 1999-03-01 Tom Tromey <tromey@cygnus.com>
2726 * java/util/Date.java (before, after): Inverted logic.
2728 * java/util/Date.java (parse): Handle case where first character
2729 in string is open parenthesis.
2730 (skipParens): Rewrote.
2732 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2733 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2735 * java/util/Date.java (parse): Correctly compute beginning of
2738 * java/util/Hashtable.java (get): Throw NullPointerException if
2740 (containsKey): Likewise.
2742 * java/util/Properties.java (list): Truncate value to 37
2743 characters and add `...'.
2745 * java/lang/Byte.java (parseByte): Pass `radix' to
2748 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2750 Include System.h, PrintStream.h.
2752 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2755 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2757 * configure: Rebuilt.
2758 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2761 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2763 * java/lang/SecurityManager.java: Import java.net.*.
2764 (checkMulticast): New methods.
2766 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2768 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2769 (nat_files): Add java/lang/reflect/natArray.o.
2770 (nat_headers): Add Field.h and NoSuchFieldException.h.
2772 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2773 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2774 (_Jv_FromReflectedField): Fix buglet.
2775 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2776 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2777 * prims.cc (_Jv_Abort): Include message in print-out.
2779 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2780 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2781 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2783 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2784 * include/config.h.in (HAVE_PWD_H): New feature macro.
2785 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2786 user.name, user.home, user.dir.
2788 * java/lang/reflect/Array.java: New class.
2789 * java/lang/reflect/natArray.cc: New native methods.
2790 * include/javaprims.h: Declare java::lang::reflect::Array.
2792 * java/lang/Class.h (getField): New private method. Add friends.
2793 * java/lang/Class.java (getField): Add private overload.
2794 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2795 getDeclaredMethods): Add working implementations.
2796 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2797 Finish implementation, except for access control.
2799 * java/lang/reflect/Modifier.java (toString): New overload.
2800 * include/java-method.h: New file.
2801 * java/lang/reflect/Method.java (index): Replaced by offset field.
2802 Remove various private fields - get them from _Jv_Field instead.
2803 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2804 New method implementations.
2806 * java/text/NumberFormat.java: Add a bunch of methods.
2808 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2810 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2812 1999-02-26 Tom Tromey <tromey@cygnus.com>
2814 * include/config.h.in: Rebuilt.
2815 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2816 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2817 HAVE_GETHOSTBYADDR_R): New defines.
2818 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2819 gethostbyaddr_r if available.
2821 * configure: Rebuilt.
2822 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2824 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2828 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2829 * prims.cc (_Jv_AllocBytesChecked): New function.
2831 * Makefile.in: Rebuilt.
2832 * Makefile.am (SUBDIRS): Removed `test'.
2833 * configure: Rebuilt.
2834 * configure.in: Don't build test/Makefile.
2835 * test/*: Removed all files.
2837 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
2839 * java/lang/reflect/Constructor.java: Make class final to match spec.
2840 * java/lang/reflect/Method.java: Ditto.
2842 1999-02-25 Tom Tromey <tromey@cygnus.com>
2844 * java/net/natInetAddress.cc: Include <sys/types.h> before
2846 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2849 * java/net/natInetAddress.cc: Declare gethostname if required.
2850 * include/config.h.in: Rebuilt.
2851 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2852 * configure: Rebuilt.
2853 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2854 declared in unistd.h.
2856 1999-02-24 Tom Tromey <tromey@cygnus.com>
2858 * Makefile.in: Rebuilt.
2859 * Makefile.am (java/io/FileDescriptor.h): Removed target.
2860 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2861 from private to "none".
2863 * include/javaprims.h: Regenerated class declarations with new
2865 * classes.pl (scan): Only generate decls for java.lang, java.io,
2868 1999-02-24 Tom Tromey <tromey@cygnus.com>
2870 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2871 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2873 1999-02-23 Tom Tromey <tromey@cygnus.com>
2875 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2876 not already defined.
2877 * java/io/natFile.cc (_REENTRANT): Only define if not already
2879 * include/config.h.in: Rebuilt.
2880 * acconfig.h (HAVE_BOEHM_GC): New define.
2881 * configure: Rebuilt.
2882 * configure.in: Define HAVE_BOEHM_GC if using it.
2883 * posix-threads.cc: Include boehm-config.h and gc.h if
2885 * include/posix-threads.h: Added explanatory note about Boehm GC.
2887 * java/io/BufferedReader.java (readLine): Only return null when
2888 EOF seen before any characters read. (In particular, an empty
2889 line should not return null.)
2891 * java/io/BufferedInputStream.java (read): Only refill once per
2894 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2895 java.lang.Character.classify12, java.lang.String.hash,
2896 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2897 java.text.SimpleDateFormat.getAndSet2DigitYearStart
2899 * java/text/StringCharacterIterator.java (setIndex): No error if
2901 (next): Check for `pos == end', not `end - 1'.
2902 (StringCharacterIterator): Allow `pos == end'. Explicitly check
2903 for null text in each constructor.
2904 (clone): Fixed order of arguments to constructor.
2906 1999-02-22 Tom Tromey <tromey@cygnus.com>
2908 * include/config.h.in: Rebuilt.
2909 * acconfig.h (HAVE_INET6): New define.
2910 (HAVE_SOCKLEN_T): Likewise.
2911 * java/net/PlainSocketImpl.java: Added copyright header.
2912 * java/net/natPlainSocketImpl.cc: Added copyright header.
2913 (union SockAddr): Use HAVE_INET6, not AF_INET6.
2915 (connect): Likewise.
2917 (socklen_t): New typedef.
2918 (accept): Use socklen_t.
2919 * java/net/natInetAddress.cc: Added copyright header.
2920 (HAVE_GETHOSTNAME): Don't define.
2921 (HAVE_INET_ADDR): Likewise.
2922 (lookup): Fixed typo.
2923 (aton): Don't use `address' as name of local variable.
2924 (lookup): Use HAVE_INET6, not AF_INET6.
2926 * configure: Rebuilt.
2927 * configure.in: Look for functions inet_aton, inet_addr,
2928 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
2929 Check for socklen_t typedef.
2931 * exception.cc (__throw): Declare as __noreturn__.
2933 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
2935 * Makefile.am, Makefile.in: Also build java/net.
2936 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
2938 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2939 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
2941 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
2942 * include/cni.h (JvMalloc, JvFree): New inline functions.
2943 (JvThrow): Add __noreturn__ attribute.
2944 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
2945 (_Jv_Throw): Add __noreturn__ attribute.
2947 * java/net/PlainSocketImpl.java: Init fnum to -1.
2948 * java/net/ServerSocket.java: Add missing throws clauses.
2949 * java/lang/Socket.java: For the constructor taking a SocketImpl,
2950 don't call create on the latter. Instead, other constructors
2951 have to explicitly call SocketImpl.create.
2952 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
2953 from size_t to int, to match ::accept prototype.
2954 * java/net/natInetAddress.cc: Use JvFree rather than free.
2957 1999-02-22 Tom Tromey <tromey@cygnus.com>
2959 * include/javaprims.h: Added new classes.
2960 * java/text/StringCharacterIterator.java: New file.
2961 * java/text/CharacterIterator.java: New file.
2963 * java/text/ParseException.java (errorOffset): Now private.
2965 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
2967 * java/net: New package.
2968 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
2969 Socket.java,SocketException.java,SocketImpl.java,
2970 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
2971 natPlainSocketImpl.cc}: New classes.
2973 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
2974 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
2975 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
2976 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
2978 * classes.pl: Translate package into "namespace", not "class".
2979 * include/javaprims.h: Update class list, using "namespace".
2981 1999-02-21 Tom Tromey <tromey@cygnus.com>
2983 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
2984 Define when appropriate.
2986 1999-02-20 Tom Tromey <tromey@cygnus.com>
2988 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
2989 as a single byte and \u07ff as two bytes.
2990 (_Jv_GetStringUTFLength): Likewise.
2991 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
2992 with 0x0f, not 0x1f.
2994 1999-02-19 Tom Tromey <tromey@cygnus.com>
2996 * java/io/DataOutputStream.java (writeUTF): When encoding
2997 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
2998 * java/io/DataInputStream.java (readUTF): Mask second byte of
2999 3-byte character with 0x3f, not 0x1f.
3001 * java/io/DataInputStream.java (readLong): Cast result of
3002 readUnsignedByte to long before using.
3004 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3007 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3008 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3009 argument to avoid warning.
3010 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3011 argument to avoid warning.
3013 1999-02-18 Tom Tromey <tromey@cygnus.com>
3015 * mauve-libjava: Omit java.io.DataInputOutput and
3016 java.io.Utf8Encoding.
3018 1999-02-17 Tom Tromey <tromey@cygnus.com>
3020 * Makefile.in: Rebuilt.
3021 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3022 * java/io/natFileDescriptorPosix.cc: Include
3023 InterruptedIOException.h, Thread.h.
3024 (write): Throw InterruptedIOException when required.
3026 * posix-threads.cc: Include <signal.h>.
3027 (_Jv_ThreadInterrupt): New function.
3029 (handle_intr): New function.
3030 (_Jv_InitThreads): Register handle_intr via sigaction.
3031 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3032 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3033 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3034 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3036 1999-02-19 Andrew Haley <aph@cygnus.com>
3038 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3040 (ThreadGroup (int)): Set the maximum priority of the initial
3043 1999-02-18 Andrew Haley <aph@cygnus.com>
3045 * java/lang/natClass.cc (forName): Check for the case where a
3046 classname is the name of an array and call FindClassFromSignature
3049 1999-02-18 Andrew Haley <aph@cygnus.com>
3051 * java/lang/StringBuffer (insert (int, String)): Move up any
3052 characters above the insert position and increase the length of
3053 the string buffer by the length of the argument.
3054 (insert (int, char[])): Likewise.
3055 (insert (int, char)): Likewise.
3056 (StringBuffer (String)): The initial capacity of the string buffer
3057 is 16 plus the length of the argument.
3058 (getChars): Add a JDK 1.2 FIXME.
3060 1999-02-18 Andrew Haley <aph@cygnus.com>
3062 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3065 1999-02-18 Andrew Haley <aph@cygnus.com>
3067 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3068 instead of floating-point equality. This is necessary for
3069 correct floating-point Hashtables.
3070 * java/lang/Float.java (equals): Ditto.
3072 1999-02-16 Tom Tromey <tromey@cygnus.com>
3074 * java/util/Properties.java (list): Truncate value to 37
3075 characters and add "...".
3077 1999-02-16 Tom Tromey <tromey@cygnus.com>
3079 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3080 if initCap is negative.
3081 (contains): Implement JDK1.2-style handling of null argument.
3082 (removeElement): Likewise.
3083 (indexOf): Likewise. Also, correctly handle case where idx is
3085 (lastIndexOf): Likewise.
3087 1999-02-16 Tom Tromey <tromey@cygnus.com>
3089 * java/lang/natString.cc (init): Increment source pointer in
3092 1999-02-16 Tom Tromey <tromey@cygnus.com>
3094 * exception.cc: Include NullPointerException.h.
3095 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3097 1999-02-16 Tom Tromey <tromey@cygnus.com>
3099 * Makefile.in: Rebuilt.
3100 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3102 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3104 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3105 we're compiling canadian.
3106 * configure: Regenerated.
3108 1999-02-12 Andrew Haley <aph@cygnus.com>
3110 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3111 deleted from libgcj.
3113 1999-02-12 Tom Tromey <tromey@cygnus.com>
3115 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3116 (_Jv_eh_free): Don't call free.
3117 Don't declare malloc or free.
3119 1999-02-11 Tom Tromey <tromey@cygnus.com>
3121 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3123 1999-02-11 Andrew Haley <aph@cygnus.com>
3125 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3126 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3127 needed by java.lang.*.
3128 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3129 wf_fmod.o: Removed from libjava.a.
3131 1999-02-11 Tom Tromey <tromey@cygnus.com>
3133 * include/javaprims.h: Reverted previous change; with it
3134 exception.cc can't compile.
3136 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3138 * include/config.h.in: Rebuilt.
3139 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3141 * configure: Rebuilt.
3142 * configure.in: Check for sched_yield. Look in thread library for
3143 all thread functions.
3145 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3146 no recursive mutexes.
3147 (_Jv_MutexDestroy): Define when required.
3148 (_Jv_MutexLock): Likewise.
3149 (_Jv_MutexUnlock): Likewise.
3150 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3151 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3152 (_Jv_Mutex_t): New structure.
3153 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3154 (_Jv_MutexLock): Likewise.
3155 (_Jv_MutexUnlock): Likewise.
3157 1999-02-10 Tom Tromey <tromey@cygnus.com>
3159 * aclocal.m4, configure, Makefile.in: Rebuilt.
3160 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3162 * configure.in: Changed to track library changes.
3163 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3164 (AM_CXXFLAGS): Likewise.
3165 (data_DATA): Likewise.
3166 (AM_CFLAGS): Likewise.
3167 (JC1FLAGS): Likewise.
3168 (libgcj_a_SOURCES): Likewise.
3169 (EXTRA_libgcj_a_SOURCES): Likewise.
3170 (libgcj_a_DEPENDENCIES): Likewise.
3171 (libgcj_a_LIBADD): Likewise.
3172 (libgcj.zip): Likewise.
3173 (CLEANFILES): Likewise.
3174 ($(nat_headers)): Likewise.
3175 (java/lang/FirstThread.h): Likewise.
3176 (java/lang/ThreadGroup.h): Likewise.
3177 (java/lang/String.h): Likewise.
3178 (java/lang/reflect/Field.h): Likewise.
3179 (BUILT_SOURCES): Likewise.
3180 (maintainer-check): Likewise.
3181 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3182 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3184 * java/util/natGregorianCalendar.cc (computeFields): Only use
3185 gmtime_r and localtime_r when configured for posix threads.
3187 * java/io/natFile.cc (get_entry): Only use readdir_r when
3188 configured for posix threads.
3190 * java/util/natGregorianCalendar.cc: Update copyright notice.
3191 * java/util/TimeZone.java: Ditto.
3192 * java/util/SimpleTimeZone.java: Ditto.
3194 1999-02-08 Tom Tromey <tromey@cygnus.com>
3196 * java/io/PrintStream.java (line_separator): New constant.
3197 (print): Use line_separator, not `file.separator' property.
3198 (println): Use line_separator.
3200 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3201 when trying to instantiate Class.
3203 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3204 NullPointerException if argument is null.
3206 * java/lang/Thread.java (setName): Throw NullPointerException, not
3207 IllegalArgumentException.
3210 1999-02-08 Andrew Haley <aph@cygnus.com>
3212 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3213 create new Classes with Class.newInstance().
3215 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3216 semiciolon to end of an array Class's signature if the elements of
3217 the array aren't themselves arrays.
3219 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3220 array of objects is always sizeof(jobject), not the size of the
3221 object to which the reference points.
3223 1999-02-08 Tom Tromey <tromey@cygnus.com>
3225 * java/util/BitSet.java (and): Throw NullPointerException when
3230 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3231 if argument is negative.
3232 (clear): Correctly compute `offset'. Throw
3233 IndexOutOfBoundsException when required.
3235 (get): Likewise. Also, return correct value.
3236 (ensure): Changed meaning of argument.
3237 (toString): Wrap contents in `{}'; put spaces after commas.
3238 (hashCode): Don't try to examine elements off the end of array.
3239 (or): Correctly include bits past the end of this bit set.
3242 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3244 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3245 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3247 1999-02-04 Andrew Haley <aph@cygnus.com>
3249 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3250 '/' in signatures to '.'
3251 (Class::getName): Likewise,
3252 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3254 * java/lang/natFirstThread.cc (run): Change '/' in main's
3257 1999-02-03 Andrew Haley <aph@cygnus.com>
3259 * configure.host: -ffloat-store added when compiling libjava on
3260 x86. fdlibm apparently relies on this.
3262 * java/lang/ThreadGroup.java (add): throw an exception if the
3263 ThreadGroup has been destroyed.
3265 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3268 1999-01-27 Tom Tromey <tromey@cygnus.com>
3270 * java/lang/StringBuffer.java (StringBuffer): Handle null
3273 1999-01-21 Tom Tromey <tromey@cygnus.com>
3275 * java/lang/natFirstThread.cc (run): Don't require main to be
3278 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3280 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3282 1999-01-20 Tom Tromey <tromey@cygnus.com>
3284 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3288 (unintern): Likewise.
3289 (_Jv_NewStringUtf8Const): Likewise.
3291 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3292 Character.isLetter, to see if character is self-quoting. Also,
3293 correctly handle quoted characters.
3294 (parse): Fixed typo. Also now throws ParseException.
3296 1999-01-15 Tom Tromey <tromey@cygnus.com>
3298 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3300 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3301 _Jv_SyncInfo has `init' member.
3303 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3306 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3307 IllegalMonitorStateException if unlock fails.
3309 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3311 (_Jv_NewObjectArray): Likewise.
3313 1999-01-14 Tom Tromey <tromey@cygnus.com>
3315 * java/lang/Character.java (isJavaIdentifierPart): Allow
3316 LETTER_NUMBER characters.
3318 * chartables.pl (process_char): Fixed error messages.
3320 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3321 * chartables.pl: Updated comments. Changed detection of non-digit
3322 numeric values (no longer miss \u00b2 and friends).
3324 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3325 currency symbols and connector punctuation.
3326 (isIdentifierIgnorable): Make 7f-9f ignorable.
3328 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3329 (_Jv_NewPrimArray): Likewise.
3330 (SIZE_T_MAX): New define.
3332 * java/lang/ClassLoader.java (system): Now private and final.
3334 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3337 * configure: Rebuilt.
3338 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3340 * exception.cc: Include gansidecl.h.
3342 1999-01-14 Andrew Haley <aph@cygnus.com>
3344 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3345 corrected: they didn't treat -0.0 and NaNs correctly.
3347 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3349 * nogc.cc: Use calloc to zero out memory.
3351 1999-01-11 Tom Tromey <tromey@cygnus.com>
3353 * java/lang/natClass.cc (isInstance): Return false if this class
3354 is primitive, not if class of `obj' is primitive.
3355 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3357 * java/io/SequenceInputStream.java (close): Handle case where `in'
3360 * java/text/DateFormat.java (format): New method.
3362 * mauve-libjava: Omit java.text.DateFormat.
3364 1999-01-08 Tom Tromey <tromey@cygnus.com>
3366 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3368 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3370 (_Jv_CondNotifyAll): Likewise.
3372 * configure: Rebuilt.
3373 * configure.in: Change --enable-source-compilation logic to work
3376 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3378 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3379 and RUNTESTFLAGS from AM_MAKEFLAGS.
3380 * configure.in: AM_RUNTESTFLAGS added.
3381 * configure.host: AM_RUNTESTFLAGS added.
3382 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3383 * configure: rebuilt.
3384 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3386 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3387 argv[] made conditional because embedded targets may not have
3389 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3390 explanatory comments added in call to super.
3392 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3393 exception thrown in the test harness itself added.
3394 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3396 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3398 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3400 1999-01-06 Tom Tromey <tromey@cygnus.com>
3402 * java/io/natFile.cc (get_entry): New function.
3403 (performList): Use get_entry.
3404 * include/config.h.in: Rebuilt.
3405 * acconfig.h (HAVE_READDIR_R): New define.
3406 * configure: Rebuilt.
3407 * configure.in: Look for readdir_r.
3409 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3411 * java/util/natDate.cc: Added copyright header.
3413 1999-01-05 Tom Tromey <tromey@cygnus.com>
3415 * include/config.h.in: Rebuilt.
3416 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3417 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3418 * configure: Rebuilt.
3419 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3420 unlink, and realpath.
3421 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3422 (stat): Conditionalize on HAVE_STAT.
3424 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3425 (performMkdir): Conditionalize on HAVE_MKDIR.
3426 (performRenameTo): Conditionalize on HAVE_RENAME.
3427 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3429 * include/config.h.in: Rebuilt.
3430 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3431 * configure: Rebuilt.
3432 * configure.in: Check for gmtime_r and localtime_r. For cross
3433 builds, assume they exist.
3435 * mauve-libjava: Include java.text.DateFormatSymbols again.
3436 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3437 from setAmPmStrings.
3439 * mauve-libjava: Omit java.text.DateFormatSymbols.
3441 1999-01-04 Tom Tromey <tromey@cygnus.com>
3443 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3445 * java/io/LineNumberReader.java (read): Decrement `count' in
3448 * java/io/BufferedWriter.java (write): Correctly determine when
3449 incoming data would overrun buffer. Flush buffer if write causes
3452 * java/io/BufferedOutputStream.java (write): Increment `count'
3453 after copying data into buffer.
3455 * java/io/FilterOutputStream.java (close): Call flush first.
3457 * java/io/PipedReader.java (read): If read causes `out' to catch
3458 up with `in', then set `in' to -1.
3460 * java/io/LineNumberInputStream.java (read): If no bytes read,
3461 return -1. If no bytes requested, return 0.
3463 * java/lang/StringBuffer.java (insert): If `str' is null, use
3466 1998-12-30 Anthony Green <green@cygnus.com>
3469 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3471 1998-12-23 Tom Tromey <tromey@cygnus.com>
3473 * java/io/PushbackInputStream.java (read): `off' already includes
3476 1998-12-17 Tom Tromey <tromey@cygnus.com>
3478 * Makefile.in: Rebuilt.
3479 * Makefile.am (GCJ_canadian): Include target_alias.
3481 * java/lang/natFirstThread.cc (run): Require main's class to be
3484 1998-12-16 Tom Tromey <tromey@cygnus.com>
3486 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3488 * java/util/ResourceBundle.java (getBundle): Throw
3489 NullPointerException if locale argument is null.
3491 * java/lang/natClass.cc (forName): Throw NullPointerException if
3493 Include NullPointerException.h.
3495 1998-12-14 Tom Tromey <tromey@cygnus.com>
3497 * java/lang/Character.java (Character): Implement Comparable.
3498 (compareTo): New methods.
3500 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3501 correct country and language codes.
3502 (UK, US): New constants.
3503 (setDefault): Language codes are lower-case.
3505 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3506 (getDeclaredConstructors): Likewise.
3507 (getDeclaredField): Likewise.
3508 (getDeclaredFields): Likewise.
3509 (getDeclaredMethod): Likewise.
3510 (getDeclaredMethods): Likewise.
3511 (getField): Likewise.
3512 (getFields): Likewise.
3513 (getMethod): Likewise.
3514 (getMethods): Likewise.
3515 * java/lang/Class.java: Declare new methods.
3516 * java/lang/Class.h: Declare new methods.
3518 * java/lang/natString.cc: Removed `#pragma implementation'.
3519 * include/cni.h (_Jv_GetStringChars): New function.
3520 * Makefile.in: Rebuilt.
3521 * Makefile.am (java/lang/String.h): Don't generate definition for
3524 * java/lang/natString.cc: Added `#pragma implementation'.
3526 * Makefile.in: Rebuilt.
3527 * Makefile.am (libjava.zip): Put build directory first in class
3528 path to avoid bug in compiler.
3530 1998-12-14 Anthony Green <green@cygnus.com>
3532 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3534 * include/javaprims.h: Add EventObject, ListResourceBundle and
3537 1998-12-13 Anthony Green <green@cygnus.com>
3539 * mauve-libjava: Run the ResourceBundle tests.
3541 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3544 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3546 * configure.in, configure: Make --enable-gcj-classes and
3547 --enable-source-compilation the default. (Nervously...) Yeah!
3548 Based on a patch from Tom Tromey.
3550 1998-12-13 Tom Tromey <tromey@cygnus.com>
3552 * java/util/EventObject.java: New file.
3553 * java/util/EventListener.java: New file.
3555 * include/javaprims.h: Updated class declarations.
3556 * Makefile.in: Rebuilt.
3557 * Makefile.am (nat_headers): Added Constructor.h.
3558 (java/lang/String.h): Don't inline String::length().
3559 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3560 * java/lang/Class.java (initializeClass, hackRunInitializers,
3561 hackTrampoline): No need to mark `final'.
3562 (getConstructor, getConstructors): Declare.
3563 * java/lang/reflect/Field.java (equals): New method.
3564 * java/lang/natClass.cc (getConstructor): New method.
3565 (getConstructors): Likewise.
3566 Include Method.h, Field.h, Constructor.h.
3567 * java/lang/reflect/Constructor.java: New file.
3568 * java/lang/reflect/Method.java (toString): No space before open
3570 (equals): Simplified.
3572 1998-12-13 Anthony Green <green@cygnus.com>
3574 * java/util/ResourceBundle.java: New file.
3575 * java/util/ListResourceBundle.java: New file.
3577 1998-12-12 Tom Tromey <tromey@cygnus.com>
3579 * java/lang/System.java (in, out, err): Now buffered streams by
3582 * include/javaprims.h: Updated class declarations.
3583 * Makefile.in: Rebuilt.
3584 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3585 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3587 (nat_files): Added natMethod.o.
3588 * java/lang/reflect/natMethod.cc: New file.
3589 * java/lang/reflect/Field.java (Field): Now extends
3591 * java/lang/reflect/AccessibleObject.java: New file.
3592 * java/lang/reflect/InvocationTargetException.java: New file.
3594 1998-12-11 Tom Tromey <tromey@cygnus.com>
3596 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3597 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3598 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3600 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3602 1998-12-09 Tom Tromey <tromey@cygnus.com>
3604 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3607 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3608 character is already titlecase.
3610 * java/lang/Character.java (isJavaLetter): Follow spec.
3611 (isJavaLetterOrDigit): Likewise.
3613 * java/util/GregorianCalendar.java (gregorianCutover): Append
3616 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3618 1998-12-08 Tom Tromey <tromey@cygnus.com>
3620 * java/lang/reflect/Modifier.java (toString): Replace second
3621 `static' with `synchronized'.
3623 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3624 * java/lang/Object.h (Object::hack12_6): Declare.
3625 * java/lang/Object.java (hack12_6): New function.
3627 1998-12-07 Tom Tromey <tromey@cygnus.com>
3629 * include/java-array.h (__JArray::clone): Removed decl.
3630 * prims.cc (__JArray::clone): Removed.
3631 * java/lang/natObject.cc (clone): Incorporate code to clone an
3634 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3635 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3636 Correctly use dtable_method_count.
3638 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3640 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3643 1998-12-06 Anthony Green <green@cygnus.com>
3645 * mauve-libjava: Don't test ResourceBundle.
3647 1998-12-04 Tom Tromey <tromey@cygnus.com>
3649 More JDK 1.2 spec fixes:
3650 * java/util/Date.java (millis): Now private.
3651 * java/text/DateFormat.java (DateFormat): Constructor now
3653 * java/lang/Void.java (Void): New private constructor.
3654 * java/lang/System.java (System): New private constructor.
3655 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3657 (currentClassLoader): New method.
3658 (currentLoadedClass): New method.
3659 * java/lang/Math.java (Math): New private constructor.
3660 * java/lang/Compiler.java (Compiler): New private constructor.
3661 * java/lang/Class.java (Class): New private constructor.
3662 * java/lang/Double.java (toString): Removed access specifier from
3663 two-argument `toString' method.
3665 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3667 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3668 causes it to be flushed from an fp register (where it may be
3669 longer than double precision) to a double in memory. This is
3670 essential to ensure correct rounding behaviour.
3672 1998-12-04 Tom Tromey <tromey@cygnus.com>
3674 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3677 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3678 explaining apparent divergence from JDK 1.2.
3680 1998-12-04 Per Bothner <bothner@cygnus.com>
3682 * include/no-threads.h: Remove unused parameter names.
3683 This silences a bunch of warnings.
3685 1998-12-04 Tom Tromey <tromey@cygnus.com>
3687 * include/config.h.in: Rebuilt.
3688 * acconfig.h (HAVE_CTIME_R): New symbol.
3690 1998-12-03 Tom Tromey <tromey@cygnus.com>
3692 * mauve-libjava: Added many more categories to reject.
3694 Changes to follow JDK1.2 spec:
3695 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3696 setErr, setIn, setOut): No need to be `final'.
3697 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3698 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3699 * java/lang/Object.java (wait): `nanos' argument is an int.
3700 * java/lang/VirtualMachineError.java: Class is abstract.
3701 * java/lang/ThreadDeath.java: Made constructors public.
3702 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3705 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3707 * java/text/DateFormatSymbols.java (getAmPmStrings,
3708 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3710 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3712 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3713 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3714 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3717 * java/lang/IllegalThreadStateException.java
3718 (IllegalThreadStateException): Changed extending class to match spec.
3720 * java/lang/NumberFormatException.java
3721 (java/lang/NumberFormatException): Changed extending class to match
3724 * java/util/Observer.java (Observer): Changed sig to match JCL.
3726 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3728 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3729 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3730 signature to match JDK 1.1 and 1.2.
3732 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3734 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3735 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3736 * Makefile.in, configure: Rebuilt.
3738 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3741 1998-12-02 Tom Tromey <tromey@cygnus.com>
3743 * mauve-libjava: New file.
3745 The remaining `-W -Wall' fixes:
3746 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3748 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3750 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3752 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3754 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3756 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3758 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3760 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3762 * java/lang/mprec.c (Balloc): Removed unused variable.
3763 (mult): Added parentheses per gcc suggestion.
3764 (pow5mult): Likewise.
3769 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3770 suggestion. Added cast to `int' to avoid signed/unsigned
3772 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3774 (IsAssignableFrom): Likewise.
3775 (_Jv_JNI_GetObjectField): Likewise.
3776 (_Jv_JNI_GetByteField): Likewise.
3777 (_Jv_JNI_GetShortField): Likewise.
3778 (_Jv_JNI_GetIntField): Likewise.
3779 (_Jv_JNI_GetLongField): Likewise.
3780 (_Jv_JNI_GetStringLength): Likewise.
3781 (_Jv_JNI_ToReflectedField): Likewise.
3782 (_Jv_JNI_FromReflectedField): Likewise.
3783 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3785 * Makefile.in: Rebuilt.
3786 * Makefile.am (AM_CFLAGS): Define conditionally.
3787 (WARNINGS): New macro.
3788 (AM_CXXFLAGS): Include WARNINGS.
3789 * configure: Rebuilt.
3790 * configure.in (USING_GCC): New conditional.
3792 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3794 * java/lang/Character.java: Changed classification constants to
3795 type `byte' to match JDK 1.2 docs.
3797 1998-12-01 Tom Tromey <tromey@cygnus.com>
3799 Some fixes to be `-W -Wall' clean:
3800 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3801 (_Jv_MarkArray): Likewise.
3802 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3803 (to_upper_title): Likewise.
3804 (isTitleCase): Likewise.
3805 (toTitleCase): Likewise.
3806 (getNumericValue): Likewise.
3807 (isLowerCase): Likewise.
3808 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3809 (avoids compiler warning).
3810 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3812 (getDeclaringClass): Likewise.
3813 (_Jv_LookupInterfaceMethod): Likewise.
3814 (_Jv_NewClass): Removed name of unused parameter.
3815 * exception.cc (_Jv_type_matcher): Removed unused variable.
3816 (_Jv_setup_eh_info): Removed name of unused parameter.
3817 * prims.cc (_Jv_NewArray): Always return a value.
3818 (_Jv_FindClassFromSignature): Likewise.
3819 * include/java-field.h (getNameUtf8Const): Removed name of unused
3821 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3823 (_Jv_ThreadSetPriority): Likewise.
3825 * java/lang/natString.cc (hashChars): Now static.
3827 * java/lang/FirstThread.java (FirstThread): Now final.
3829 * java/io/File.java (performMkdir, performRenameTo): Now private.
3831 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3832 if no time function defined.
3834 * configure: Rebuilt.
3835 * configure.in: Look for ctime_r, ctime.
3836 * java/util/Date.java (toString): Now native.
3837 * java/util/natDate.cc (toString): Rewrote.
3839 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
3841 * Add LDFLAGS line to allow TX39 test cases to link when cross
3844 1998-11-23 Anthony Green <green@cygnus.com>
3846 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3847 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3848 quick-threads.cc, include/boehm-gc.h, include/cni.h,
3849 include/java-array.h, include/java-assert.h, include/java-field.h,
3850 include/javaprims.h, include/jni.h, include/jvm.h,
3851 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3852 include/quick-threads.h, java/io/BufferedInputStream.java,
3853 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3854 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3855 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3856 java/io/CharArrayWriter.java,
3857 java/io/CharConversionException.java, java/io/DataInput.java,
3858 java/io/DataInputStream.java, java/io/DataOutput.java,
3859 java/io/DataOutputStream.java, java/io/EOFException.java,
3860 java/io/File.java, java/io/FileDescriptor.java,
3861 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3862 java/io/FileOutputStream.java, java/io/FileReader.java,
3863 java/io/FileWriter.java, java/io/FilenameFilter.java,
3864 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3865 java/io/FilterReader.java, java/io/FilterWriter.java,
3866 java/io/IOException.java, java/io/InputStream.java,
3867 java/io/InputStreamReader.java,
3868 java/io/InterruptedIOException.java,
3869 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3870 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3871 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3872 java/io/PipedReader.java, java/io/PipedWriter.java,
3873 java/io/PrintStream.java, java/io/PrintWriter.java,
3874 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3875 java/io/RandomAccessFile.java, java/io/Reader.java,
3876 java/io/SequenceInputStream.java, java/io/Serializable.java,
3877 java/io/StreamTokenizer.java,
3878 java/io/StringBufferInputStream.java, java/io/StringReader.java,
3879 java/io/StringWriter.java, java/io/SyncFailedException.java,
3880 java/io/UTFDataFormatException.java,
3881 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3882 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3883 java/io/natFileDescriptorPosix.cc,
3884 java/lang/AbstractMethodError.java,
3885 java/lang/ArithmeticException.java,
3886 java/lang/ArrayIndexOutOfBoundsException.java,
3887 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3888 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3889 java/lang/Class.java, java/lang/ClassCastException.java,
3890 java/lang/ClassCircularityError.java,
3891 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3892 java/lang/ClassNotFoundException.java,
3893 java/lang/CloneNotSupportedException.java,
3894 java/lang/Cloneable.java, java/lang/Comparable.java,
3895 java/lang/Compiler.java, java/lang/Double.java,
3896 java/lang/Error.java, java/lang/Exception.java,
3897 java/lang/ExceptionInInitializerError.java,
3898 java/lang/FirstThread.java, java/lang/Float.java,
3899 java/lang/IllegalAccessError.java,
3900 java/lang/IllegalAccessException.java,
3901 java/lang/IllegalArgumentException.java,
3902 java/lang/IllegalMonitorStateException.java,
3903 java/lang/IllegalStateException.java,
3904 java/lang/IllegalThreadStateException.java,
3905 java/lang/IncompatibleClassChangeError.java,
3906 java/lang/IndexOutOfBoundsException.java,
3907 java/lang/InstantiationError.java,
3908 java/lang/InstantiationException.java, java/lang/Integer.java,
3909 java/lang/InternalError.java, java/lang/InterruptedException.java,
3910 java/lang/LinkageError.java, java/lang/Long.java,
3911 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3912 java/lang/NoClassDefFoundError.java,
3913 java/lang/NoSuchFieldError.java,
3914 java/lang/NoSuchFieldException.java,
3915 java/lang/NoSuchMethodError.java,
3916 java/lang/NoSuchMethodException.java,
3917 java/lang/NullPointerException.java, java/lang/Number.java,
3918 java/lang/NumberFormatException.java, java/lang/Object.h,
3919 java/lang/Object.java, java/lang/OutOfMemoryError.java,
3920 java/lang/Process.java, java/lang/Runnable.java,
3921 java/lang/Runtime.java, java/lang/RuntimeException.java,
3922 java/lang/SecurityException.java, java/lang/SecurityManager.java,
3923 java/lang/Short.java, java/lang/StackOverflowError.java,
3924 java/lang/String.java, java/lang/StringBuffer.java,
3925 java/lang/StringIndexOutOfBoundsException.java,
3926 java/lang/System.java, java/lang/Thread.java,
3927 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3928 java/lang/Throwable.java, java/lang/UnknownError.java,
3929 java/lang/UnsatisfiedLinkError.java,
3930 java/lang/UnsupportedOperationException.java,
3931 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3932 java/lang/Void.java, java/lang/natCharacter.cc,
3933 java/lang/natClass.cc, java/lang/natDouble.cc,
3934 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3935 java/lang/natMath.cc, java/lang/natObject.cc,
3936 java/lang/natRuntime.cc, java/lang/natString.cc,
3937 java/lang/natSystem.cc, java/lang/natThread.cc,
3938 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3939 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3940 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3941 java/text/FieldPosition.java, java/text/Format.java,
3942 java/text/NumberFormat.java, java/text/ParseException.java,
3943 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3944 java/util/BitSet.java, java/util/Calendar.java,
3945 java/util/ConcurrentModificationException.java,
3946 java/util/Date.java, java/util/Dictionary.java,
3947 java/util/EmptyStackException.java, java/util/Enumeration.java,
3948 java/util/GregorianCalendar.java, java/util/Hashtable.java,
3949 java/util/Locale.java, java/util/MissingResourceException.java,
3950 java/util/NoSuchElementException.java, java/util/Observable.java,
3951 java/util/Observer.java, java/util/Properties.java,
3952 java/util/Random.java, java/util/SimpleTimeZone.java,
3953 java/util/Stack.java, java/util/StringTokenizer.java,
3954 java/util/TimeZone.java, java/util/TooManyListenersException.java,
3955 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
3958 * exception.cc: Include eh-common.h instead of duplicating
3961 1998-11-23 Tom Tromey <tromey@cygnus.com>
3963 * configure.host: Don't add `-O2' to libjava_flags. Only add
3964 `-Os' to libjava_flags once.
3966 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
3968 * Makefile.am: add LIBJAVA_JAVAFLAGS.
3969 * Makefile.in: likewise
3970 * acconfig.h: add ECOS conditional for configure.h
3971 * config.h.in: likewise
3972 * configure: add test for --with-ecos
3973 * configure.in: likewise
3974 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
3975 rename call to avoid name clash.
3976 * java/lang/natSystem.cc: add eCos clock support.
3977 * java/util/natGregorianCalendar.cc: add eCos support.
3979 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3981 * Makefile.am, Makefile.in, configure.host: tx39 build option
3984 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
3986 * java/io/BufferedReader.java: Added more comments for clarity.
3987 (mark): Used more mnemonic name for local var extraBuffSpace.
3989 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
3990 confusion with private method of same name in superclass.
3991 (skipRedundantLF): Set fields in special case to avoid infinite
3992 recursion. Check if markPos has been invalidated in special case.
3993 (readLine): Rewritten to use readLine method of superclass.
3994 (skip): Incorporated code from lineEnd.
3996 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
3998 * java/io/BufferedReader.java (readLine): New method.
3999 (lineEnd): new private method.
4000 (mark): Track special case for readLine of getting '\r' at the
4007 * java/io/InputStreamReader.java (read): Return number chars skipped
4008 rather than requested.
4010 * java/lang/StringBuffer.java (append): Update count and differentiate
4011 between field and local variable.
4013 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4014 seconds. Deal with military style time.
4015 (parse): Consistently treat all timezones in minutes until final
4016 calculation. Flag as non-local timezone. Return value in milliseconds.
4017 (setTime): Adjust for year offset from 1900.
4018 (UTC): Adjust for year offset from 1900.
4020 1998-11-17 Tom Tromey <tromey@cygnus.com>
4022 * configure: Rebuilt.
4023 * configure.in: Switch on host, not target.
4025 * Makefile.in: Rebuilt.
4026 * Makefile.am (GCJ_no): New macro.
4027 (GCJ): Use @CANADIAN@.
4028 (GCJH_no): New macro
4029 (GCJH_canadian): New macro.
4030 (GCJH): Use @CANADIAN@.
4031 (ZIP_no): New macro.
4032 (ZIP_canadian): New macro.
4033 (ZIP): Use @CANADIAN@.
4034 * aclocal.m4, configure: Rebuilt.
4035 * configure.in (CANADIAN): Compute and subst.
4037 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4039 * java/io/FileDescriptor.java (finalize): Only close file
4040 descriptor if valid.
4042 1998-11-17 Tom Tromey <tromey@cygnus.com>
4044 * prims.cc (_Jv_InitRuntime): Removed.
4046 1998-11-16 Tom Tromey <tromey@cygnus.com>
4048 * java/io/FileOutputStream.java (close): Only close file
4049 descriptor if valid.
4050 (finalize): New method.
4052 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4053 (_Jv_NewPrimArray): Likewise.
4054 * boehm.cc (_Jv_RegisterFinalizer): Use
4055 GC_REGISTER_FINALIZER_NO_ORDER.
4056 (GC_GENERIC_MALLOC): New define.
4057 (_Jv_AllocObj): Use it.
4058 (_Jv_AllocArray): Likewise.
4059 (_Jv_AllocBytes): Likewise.
4060 (_Jv_MarkObj): Just return if vtbl not set.
4061 (_Jv_MarkArray): Likewise.
4062 (MAYBE_MARK): New macro; use everywhere.
4063 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4065 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4067 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4068 to a jlong before calculation to prevent overflow.
4070 1998-11-16 Tom Tromey <tromey@cygnus.com>
4072 * Makefile.in: Rebuilt.
4073 * Makefile.am (nat_headers): Fixed typo.
4075 1998-11-15 Tom Tromey <tromey@cygnus.com>
4077 * java/lang/Class.h (Class::getName): Removed definition.
4078 * Makefile.in: Rebuilt.
4079 * Makefile.am (nat_headers): Added InstantiationException.h,
4080 NoSuchMethodException.h.
4081 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4082 (init_name): New global.
4083 (hackRunInitializers): Use clinit_name.
4084 Include InstantiationException.h, NoSuchMethodException.h.
4085 (newInstance): Do some error checking (but not all). Call
4087 (forName): Throw exception if class not found.
4088 (getName): New method.
4089 (forName): Transform class name from external format to internal
4090 format before lookup.
4092 1998-11-15 Anthony Green <green@cygnus.com>
4094 * java/lang/Class.h (Class::forName): Method is static.
4096 * java/lang/natClass.cc (newInstance): Add simple implementation.
4099 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4101 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4102 int), for compatibility with jc1.
4104 1998-11-14 Tom Tromey <tromey@cygnus.com>
4106 * include/config.h.in: Rebuilt.
4107 * acconfig.h (LINUX_THREADS): New define.
4108 * configure: Rebuilt.
4109 * configure.in: Define LINUX_THREADS if using POSIX threads on
4110 Linux. Look for pthread_mutexattr_setkind_np function.
4111 * posix-threads.cc (throw_cleanup): New function.
4112 (really_start): Push cleanup function.
4113 (_Jv_ThreadCancel): New function.
4114 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4115 (_Jv_ThreadInitData): Set `exception' field in new structure.
4116 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4118 (_Jv_ThreadWait): New function.
4119 (_Jv_InitThreads): Initialize daemon globals.
4120 (FLAG_DAEMON): New macro.
4121 (really_start): Notify daemon_cond when non-daemon thread exits.
4122 Include <java/lang/System.h>.
4123 (struct starter): `object' field now a thread.
4124 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4125 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4126 (_Jv_ThreadWait): Removed definition.
4127 (_Jv_Thread_t): Added `exception' field.
4128 (_Jv_ThreadCancel): Removed definition.
4130 1998-11-13 Tom Tromey <tromey@cygnus.com>
4132 * Makefile.in: Rebuilt.
4133 * Makefile.am (libjava.zip): Compute javac before changing
4136 * Makefile.in: Rebuilt.
4137 * Makefile.am (libjava.zip): Include directory entries.
4139 * Makefile.in: Rebuilt.
4140 * Makefile.am (expanded): New macro.
4143 1998-11-12 Tom Tromey <tromey@cygnus.com>
4145 * prims.cc (clone): New function.
4146 * include/java-array.h (__JArray::clone): Removed definition.
4148 * java/lang/natObject.cc (clone): Don't assert that class is not
4149 an array; array's `clone' method just calls this one.
4151 * Makefile.in: Rebuilt.
4152 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4153 Now creates zip file. Changed all users.
4155 (data_DATA): New macro.
4157 1998-11-11 Tom Tromey <tromey@cygnus.com>
4159 * configure: Rebuilt.
4160 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4162 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4164 * java/io/InputStream.java (reset): Add msg to thrown exception.
4166 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4168 * java/io/LineNumberInputStream.java: Rewritten.
4170 * java/io/StringBufferInputStream.java: Removed extraneous import.
4172 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4174 * java/io/StringBufferInputStream.java: Rewritten.
4176 * java/util/Date.java (parseMonth): Optimize.
4177 (parseDayOfWeek): Created.
4178 (parse): Optimize to use parseDayOfWeek.
4180 1998-11-11 Tom Tromey <tromey@cygnus.com>
4182 * java/lang/StringBuffer.java (append): Handle case where STR is
4185 * include/javaprims.h: Regenerated class declarations.
4187 * configure: Rebuilt.
4188 * configure.in: Added --enable-gcj-classes,
4189 --enable-single-compilation, --enable-source-compilation flags.
4190 * Makefile.in: Rebuilt.
4191 * Makefile.am (java_io_files): New macro.
4192 (java_lang_files): Likewise.
4193 (java_text_files): Likewise.
4194 (java_util_files): Likewise.
4195 (java_files): Use new macros.
4196 (java-io.o): New target.
4197 (java-lang.o): Likewise.
4198 (java-text.o): Likewise.
4199 (java-util.o): Likewise.
4200 (src_io_files): New macro.
4201 (src_lang_files): Likewise.
4202 (src_text_files): Likewise.
4203 (src_util_files): Likewise.
4204 (class_io_files): New macro.
4205 (class_lang_files): Likewise.
4206 (class_text_files): Likewise.
4207 (class_util_files): Likewise.
4208 (class_files): Use new macros.
4209 (javao_files): Define conditionally.
4210 (.java.o): New target.
4211 ($(javao_files)): New target.
4213 (GCJH): Added $(EXEEXT).
4214 (CLASSPATH_ENV): Removed.
4215 (GCJCOMPILE): New macro.
4217 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4219 * java/util/Date.java (parse): Written from scratch.
4221 1998-11-11 Tom Tromey <tromey@cygnus.com>
4223 * java/lang/Throwable.java (toString): Correct sense of test for
4224 determining when to include detail message in result.
4226 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4229 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4231 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4233 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4234 (_Jv_RegisterClass): Use it.
4235 * include/jvm.h (_Jv_RegisterClasses): Declare.
4236 * java/lang/natObject.cc (init): Removed.
4237 (sync_init): Never call _Jv_InitializeSyncMutex.
4238 (_Jv_InitializeSyncMutex): Don't set `init'.
4239 * prims.cc (JvRunMain): Don't run init functions.
4241 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4243 * java/lang/natClass.cc (initializeClass): Set state before
4244 resolving constants.
4246 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4247 (STATE_RESOLVED): New macro.
4248 (initializeClass): Call resolveConstants.
4249 (hackRunInitializers): Don't call resolveConstants.
4250 (_Jv_FindArrayClass): Move short-circuit return for primitive
4251 element types earlier in function.
4253 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4255 * prims.cc (no_memory): New global.
4256 (_Jv_makeUtf8Const): Throw no_memory.
4257 (_Jv_AllocObject): Likewise.
4258 (_Jv_NewObjectArray): Likewise.
4259 (_Jv_NewPrimArray): Likewise.
4260 (JvRunMain): Initialize no_memory.
4262 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4264 * java/io/FileInputStream.java: Corrected date comment.
4265 * java/io/SequenceInputStream.java: Rewritten.
4267 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4269 * java/lang/FirstThread.java (die): New method.
4270 * java/lang/natFirstThread.cc (die): Removed.
4272 (run): Use `DIE', not `die'.
4274 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4276 * java/io/CharArrayReader.java (read): Move check into synchronized
4277 block to prevent a close while in progress.
4280 * java/io/PushbackReader.java (read): Ditto.
4283 * java/io/StringReader.java (mark): Ditto.
4288 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4290 * java/io/PipedInputStream.java: Updated status.
4291 (connect): Added code to prevent infinite recursion and to
4292 differentiate exception causes.
4293 (read): Added code to differentiate exception causes.
4294 (receive): Made exception pass string with the cause.
4296 * java/io/PipedOutputStream.java: Updated status.
4297 (connect): Added code to call connect at the other end of the pipe.
4299 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4301 * java/io/PipedInputStream.java (connect): Throw exception if
4302 already connected to the same output stream.
4303 (read): Do bounds checking first.
4305 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4307 * java/io/PipedInputStream.java: Added private boolean outClosed.
4308 (available): Removed check if output stream is open.
4309 (close): Mark the buffer as empty so available returns 0.
4310 (read): Check if the output stream was closed and then return EOF
4311 when the buffer is empty.
4312 (receive): Mark the output stream as closed when passed a -1.
4314 * java/io/PipedOutputStream.java (close): Notify the input stream
4315 that there's no more data coming.
4316 (connect): Added a FIXME comment to note more coordination needed
4317 with PipedInputStream.
4318 (flush): Added a FIXME comment to mark what this method might do
4321 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4323 * java/io/PipedInputStream.java: Rewritten.
4325 1998-10-30 Tom Tromey <tromey@cygnus.com>
4327 * java/lang/Throwable.java: Rewrote from scratch.
4329 * java/lang/Class.h (Class): Don't mention newMultiArray.
4330 * prims.cc (newMultiArray): Removed.
4331 (_Jv_NewMultiArray): Removed.
4332 (newArray): Removed.
4333 (new_multi_array): New function.
4334 (_Jv_NewMultiArray): Rewrote from scratch.
4336 * include/javaprims.h: Regenerated class declarations.
4337 * classes.pl (scan): Don't declare PrimClass.
4338 * include/cni.h (JvPrimClass): Use new names for classes.
4339 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4340 added _Jv_PrimClass.
4341 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4342 (_Jv_initPrimClass): Removed.
4343 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4344 (_Jv_AllocObject): Added comment.
4345 (_Jv_NewObjectArray): Likewise.
4346 (_Jv_NewPrimArray): Likewise.
4348 1998-10-29 Tom Tromey <tromey@cygnus.com>
4350 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4351 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4353 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4355 * java/lang/natObject.cc (init): New global.
4356 (sync_init): Call _Jv_InitializeSyncMutex if required.
4358 * Makefile.in: Rebuilt.
4359 * Makefile.am (nat_headers): Added ClassLoader.h.
4360 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4361 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4362 internalAddClass, lookupArray no longer friends.
4363 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4364 _Jv_FindArrayClass now friends.
4365 * java/lang/natClass.cc (HASH_LEN): New macro.
4366 (HASH_UTF): Likewise.
4367 (loaded_classes): New global.
4368 (_Jv_FindClass): New function.
4369 (ClassClass): New define.
4370 (_Jv_FindClassInCache): New function.
4371 (_Jv_RegisterClass): Likewise.
4372 (_Jv_NewClass): Likewise.
4374 (ObjectClass): New define.
4375 (CloneableClass): New define.
4376 * prims.cc (_Jv_FindClass): Removed.
4377 (simpleLookupClass): Removed.
4378 (insertClass): Removed.
4379 (CLASSHASHSZ): Removed.
4380 (classPool): Removed.
4381 (_Jv_RegisterClass): Removed.
4382 (internalAddClass): Removed.
4383 (ClassClass): Removed.
4384 (RuntimeClass): Removed.
4385 (lookupArray): Removed.
4386 (CloneableClass): Removed.
4387 (CLASSMAXSIG): Removed.
4388 Rearranged file to group related functions together.
4389 (_Jv_IsInstanceOf): Moved to natClass.cc.
4390 (abort_final): Removed.
4391 Removed some unused includes.
4392 (classFromSig): Removed.
4393 (_Jv_FindClassFromSignature): New function.
4394 (_Jv_initPrimClass): Renamed.
4395 (getClass): Removed.
4397 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4399 * java/io/FileDescriptor.java (finalize): Throws IOException
4400 instead of Throwable.
4402 * java/io/FileInputStream.java: Rewritten.
4404 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4405 at the end of a comment.
4407 1998-10-29 Tom Tromey <tromey@cygnus.com>
4409 * include/javaprims.h: Regenerated class declarations.
4410 * classes.pl (scan): Don't special-case ClassLoader.
4412 * prims.cc (processClass): Removed.
4413 (_Jv_InitClass): Removed.
4414 Removed all CSTATE_ macros.
4415 (resolveConstants): Removed.
4417 (_Jv_NewMultiArray): Cleaned up.
4418 * Makefile.in: Rebuilt.
4419 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4420 * java/lang/Class.h (Class): Declare new methods. processClass no
4422 * java/lang/Class.java (hackTrampoline): New method.
4423 (initializeClass): Declare.
4424 (hackRunInitializers): Declare.
4425 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4426 (initializeClass): New method.
4427 (hackRunInitializers): New method.
4428 (init_name, void_signature): Moved from prims.cc.
4429 (_Jv_InitClass): New function.
4430 (isAssignableFrom): Don't call processClass.
4431 (STATE_NOTHING): New macro.
4432 (resolveConstants): New function.
4434 (ErrorClass): New define.
4436 * java/lang/Class.java (getClassLoader): Declare.
4437 * java/lang/ClassLoader.java: Rewrote from scratch.
4439 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4440 AbstractMethodError.h, IllegalAccessError.h,
4441 NoClassDefFoundError.h.
4442 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4443 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4444 longer static. Changed return type.
4445 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4446 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4447 * prims.cc (findMethodLocal): Removed.
4448 (processClass): Use _Jv_GetMethodLocal.
4450 1998-10-28 Tom Tromey <tromey@cygnus.com>
4452 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4453 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4455 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4456 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4458 * include/jni.h: Added copyright header.
4459 * include/javaprims.h: Added copyright header.
4460 * include/java-field.h: Added copyright header.
4461 * include/java-array.h: Added copyright header.
4462 * include/cni.h: Added copyright header.
4464 * include/javaprims.h: Regenerated class declarations using
4465 classes.pl; now they are complete.
4466 * classes.pl: New file.
4468 * java/lang/natMath.cc: Include <config.h>.
4469 * java/lang/reflect/natField.cc: Include <config.h>.
4470 * java/util/NativeUtil.java: Removed.
4471 * Makefile.in: Rebuilt.
4472 * Makefile.am (nat_headers): Added Math.h.
4473 * java/lang/Math.h: Removed.
4474 * java/util/natGregorianCalendar.cc: Added copyright header.
4476 * java/lang/natFloat.cc: Added copyright header.
4477 * java/lang/Byte.java: Added copyright header.
4478 * java/lang/Void.java: Added copyright header.
4479 * java/lang/Short.java: Added copyright header.
4481 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4483 * include/javaprims.h (java::io): Added bunch of missing classes.
4485 * java/io/DataInputStream.java (readLine): Added a special case
4486 for handling BufferedInputStream data to reduce the likelihood
4487 of a pushback error.
4488 (skipBytes): Added code to handle negative number of skip bytes.
4490 * java/io/StreamTokenizer.java: Rewritten.
4492 1998-10-28 Tom Tromey <tromey@cygnus.com>
4494 * java/util/natGregorianCalendar.cc (computeFields): Call
4495 getRawOffset as a method.
4497 * include/javaprims.h (java::io): Added FilterOutputStream.
4498 * Makefile.in: Rebuilt.
4499 * Makefile.am (nat_headers): Added PrintStream.h,
4500 FilterOutputStream.h.
4501 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4503 (die): New function.
4504 (run): Die if `main' not found, is not public, or is not static.
4506 * boehm.cc (_Jv_MarkObj): Use new field names.
4507 * include/java-field.h (JvGetFirstInstanceField): Use new field
4509 (JvNumInstanceFields): Likewise.
4510 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4511 (getInterfaces): Likewise.
4512 * prims.cc (CLASS_CONSTANTS): Removed.
4513 (CLASS_CONST_SIZE): Likewise.
4514 (CLASS_CONST_TAG): Likewise.
4515 (CLASS_CONST_DATA): Likewise.
4516 (CLASS_CONST_UTF8): Likewise.
4517 (WORD2UTF): Likewise.
4518 (CLASS_CLASS): Likewise.
4519 (CLASS_PRIM_SIG): Likewise.
4520 (CLASS_ARRAY_CACHE): Likewise.
4521 (HASH_CHARS): Likewise.
4522 (hashClassName): Likewise.
4523 Many changes to use new field names.
4524 * java/lang/Class.h (Class): Renamed fields to track compiler.
4526 1998-10-27 Tom Tromey <tromey@cygnus.com>
4528 * java/lang/natClass.cc: Use #pragma implementation.
4529 (getComponentType): Moved into header.
4530 (getModifiers): Likewise.
4531 (getName): Likewise.
4532 (getSuperclass): Likewise.
4533 (isArray): Likewise.
4534 (isPrimitive): Likewise.
4535 * include/jvm.h (_Jv_FindClass): Declare.
4536 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4537 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4538 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4539 * java/lang/Class.h: Rewrote from scratch.
4540 * prims.cc: Many changes to work with new Class.h.
4541 * include/java-field.h (CLASS_FIELDS): Removed.
4542 (CLASS_SFIELDS): Likewise.
4543 (CLASS_IFIELDS): Likewise.
4544 (CLASS_NFIELDS): Likewise.
4545 (CLASS_NIFIELDS): Likewise.
4546 (CLASS_NSFIELDS): Likewise.
4547 (CLASS_FSIZE): Likewise.
4548 (JvGetFirstInstanceField): Rewrote.
4549 (JvNumInstanceFields): Likewise.
4551 * java/lang/Object.h: Added copyright comment.
4553 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4555 * java/text: New package directory.
4556 * java/text/FieldPosition.java: New class.
4557 * java/text/ParsePosition.java: New class.
4558 * java/text/ParseException.java: New Exception class.
4559 * java/text/Format.java: New class.
4560 * java/text/NumberFormat.java: New (empty placeholder) class.
4561 * java/text/DateFormatSymbols.java: New class (no Locales support).
4562 * java/text/DateFormat.java: New Format class (incomplete).
4563 * java/text/SimpleDateFormat.java: New DateFormat class.
4565 * include/javaprims.h (java::test): Added new package and classes.
4566 * java/util/Calendar.java (clone): New method.
4567 * java/util/Date.java (toString): Added non-native implementation.
4568 (parse): Made public instead of synchronized.
4569 * java/util/natDate.cc (toString): Removed.
4570 * java/util/natGregorianCalendar.cc (computeFields):
4571 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4573 1998-10-27 Tom Tromey <tromey@cygnus.com>
4575 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4577 * prims.cc (lookupArray): Added explanatory comment.
4578 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4579 class. Mark the class of each object.
4580 (_Jv_MarkArray): Mark the object's class.
4582 * configure: Rebuilt.
4583 * configure.in: Create java-gc.h.
4584 * include/boehm-gc.h: New file.
4585 * include/no-gc.h: New file.
4586 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4588 * java/lang/Object.h: Include java-gc.h.
4589 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4590 friends, if defined.
4591 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4593 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4595 1998-10-26 Tom Tromey <tromey@cygnus.com>
4597 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4598 paragraph separators, not numbers.
4600 * java/io/Writer.java (write): Removed write(char) to avoid
4602 * java/util/Properties.java: Rewrote from scratch.
4603 * include/javaprims.h (java::io): Added PrintWriter,
4604 BufferedWriter, PushbackReader.
4606 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4608 * java/lang/System.java: exit() is a static method.
4610 1998-10-26 Tom Tromey <tromey@cygnus.com>
4612 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4614 (_Jv_NewStringUtf8Const): Likewise.
4615 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4616 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4618 * java/lang/Object.h (Object): Add mark_array as friend function.
4619 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4620 _Jv_AllocBytes, to ensure that header is marked.
4621 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4623 (mark_array): Push sync_info field for array.
4625 1998-10-24 Tom Tromey <tromey@cygnus.com>
4627 * java/lang/String.java (String): Updated for StringBuffer
4629 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4631 * java/lang/StringBuffer.java: Renamed fields to conform to
4632 serialization spec: buffer->value, next->count, copy->shared.
4634 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4636 * java/util/TimeZone.java: New class.
4637 * java/util/SimpleTimeZone.java: New class.
4638 * java/util/Locale.java: New file.
4639 * java/util/Calendar.java: Make almost complete.
4640 * java/util/GregorianCalendar.java
4641 * java/util/natGregorianCalendar.cc: New file.
4642 * java/util/Date.java: Re-written from scratch.
4643 * java/util/natDate.cc (setTime): Removed - no longer native.
4644 * include/javaprims.h (java::util): Add new classes.
4645 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4646 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4648 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4650 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4651 returning it as a jint.
4653 1998-10-23 Tom Tromey <tromey@cygnus.com>
4655 * prims.cc (arg_vec, main_group, main_thread): New globals.
4656 (JvRunMain): Use them.
4658 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4660 * java/io/DataInputStream.java: Rewritten.
4662 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4663 tertiary bytes with 0x80 per spec.
4665 1998-10-23 Tom Tromey <tromey@cygnus.com>
4667 * java/lang/String.java (init): Changed name of `copy' argument.
4668 * java/lang/natString.cc (init): Inverted sense of `copy'
4671 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4672 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4673 * boehm.cc (ObjectClass): New define.
4674 (ClassClass): Likewise.
4675 (mark_obj): Special-case Object and Class.
4677 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4679 * java/util/BitSet.java: Rewrote from scratch.
4681 * prims.cc (lookupArray): Removed useless cast.
4683 * java/lang/natObject.cc: Use `#pragma implementation'.
4685 * java/lang/String.java (init): Added `copy' argument.
4686 (String): Look in StringBuffer to find char array.
4687 * java/lang/natString.cc (init): Added `copy' argument.
4688 * java/lang/StringBuffer.java: Rewrote from scratch.
4690 * java/lang/Compiler.java: Rewrote from scratch.
4691 * java/lang/Throwable.java: Don't use NativeLang.
4692 * include/javaprims.h (java::lang): Don't mention NativeLang.
4693 * java/lang/Process.java: Rewrote from scratch.
4694 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4696 (currentClassLoader): Likewise.
4697 (currentLoadedClass): Likewise.
4698 * java/lang/natClass.cc (getClassLoader): Commented out.
4699 * java/lang/Class.java (getClassLoader): Commented out.
4700 * java/lang/Compiler.java: Removed.
4701 * java/lang/NativeLang.java: Removed.
4703 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4704 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4705 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4706 (_Jv_hashUtf8String): Now static.
4707 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4708 name of return type.
4710 * java/lang/Class.h (Class): Declare checkMemberAccess.
4711 * Makefile.in: Rebuilt.
4712 * Makefile.am (nat_headers): Added Member.h.
4713 * java/lang/natClass.cc: Include Member.h.
4714 (getDeclaredClasses): Call checkMemberAccess.
4715 * java/lang/Class.java (checkMemberAccess): Call
4716 SecurityManager.checkMemberAccess.
4718 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4720 * java/lang/SecurityManager.java: Rewritten.
4722 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4724 * java/applet/Applet.java, java/applet/AppletContext.java,
4725 java/applet/AppletStub.java, java/applet/AudioClip.java,
4726 java/awt/AWTError.java, java/awt/AWTException.java,
4727 java/awt/BorderLayout.java, java/awt/Button.java,
4728 java/awt/Canvas.java, java/awt/CardLayout.java,
4729 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4730 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4731 java/awt/Color.java, java/awt/Component.java,
4732 java/awt/Container.java, java/awt/Dialog.java,
4733 java/awt/Dimension.java, java/awt/Event.java,
4734 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4735 java/awt/Font.java, java/awt/FontMetrics.java,
4736 java/awt/Frame.java, java/awt/Graphics.java,
4737 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4738 java/awt/GridLayout.java, java/awt/Image.java,
4739 java/awt/Insets.java, java/awt/Label.java,
4740 java/awt/LayoutManager.java, java/awt/List.java,
4741 java/awt/MediaTracker.java, java/awt/Menu.java,
4742 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4743 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4744 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4745 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4746 java/awt/TextArea.java, java/awt/TextComponent.java,
4747 java/awt/TextField.java, java/awt/Toolkit.java,
4748 java/awt/Window.java, java/awt/image/ColorModel.java,
4749 java/awt/image/CropImageFilter.java,
4750 java/awt/image/DirectColorModel.java,
4751 java/awt/image/FilteredImageSource.java,
4752 java/awt/image/ImageConsumer.java,
4753 java/awt/image/ImageFilter.java,
4754 java/awt/image/ImageObserver.java,
4755 java/awt/image/ImageProducer.java,
4756 java/awt/image/IndexColorModel.java,
4757 java/awt/image/MemoryImageSource.java,
4758 java/awt/image/PixelGrabber.java,
4759 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4760 java/awt/peer/CanvasPeer.java,
4761 java/awt/peer/CheckboxMenuItemPeer.java,
4762 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4763 java/awt/peer/ComponentPeer.java,
4764 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4765 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4766 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4767 java/awt/peer/MenuBarPeer.java,
4768 java/awt/peer/MenuComponentPeer.java,
4769 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4770 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4771 java/awt/peer/TextAreaPeer.java,
4772 java/awt/peer/TextComponentPeer.java,
4773 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4774 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4775 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4776 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4777 java/net/MalformedURLException.java, java/net/NativeNet.java,
4778 java/net/ProtocolException.java, java/net/ServerSocket.java,
4779 java/net/Socket.java, java/net/SocketException.java,
4780 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4781 java/net/URL.java, java/net/URLConnection.java,
4782 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4783 java/net/URLStreamHandlerFactory.java,
4784 java/net/UnknownHostException.java,
4785 java/net/UnknownServiceException.java: Removed.
4787 1998-10-22 Tom Tromey <tromey@cygnus.com>
4789 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4790 finalizer is not Object.finalize.
4791 (internalAddClass): Don't set `final' member of class.
4792 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4793 other places that know about finalize() location.
4794 * java/lang/Class.h (Class): Removed `final' field.
4796 * aclocal.m4, configure: Rebuilt.
4797 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4798 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4800 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4801 * Makefile.in: Rebuilt.
4802 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4804 1998-10-21 Tom Tromey <tromey@cygnus.com>
4806 * java/lang/Object.java (finalize): Move to be first method in
4809 * configure: Rebuilt.
4810 * configure.in (GCINCS): Include contents of boehm-cflags file.
4812 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4814 * java/lang/ArrayIndexOutOfBoundsException.java
4815 (ArrayIndexOutOfBoundsException): Fixed string literal.
4816 * java/lang/StringIndexOutOfBoundsException.java
4817 (StringIndexOutOfBoundsException): Fixed string literal.
4819 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4821 * natFileDescriptorEcos.cc added.
4822 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4824 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4826 * acconfig.h: test for __int32_t and __uint32_t added.
4827 * include/config.h.in: test for __int32_t and __uint32_t added.
4828 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4829 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4830 * configure.in: test for __int32_t and __uint32_t added.
4831 * configure: test for __int32_t and __uint32_t added.
4833 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4835 * configure.in: Test for --enable ecos and link
4836 natFileDescriptor.cc to natFileDescriptorEcos.cc or
4837 natFileDescriptorPosix.cc
4839 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4841 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
4843 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4846 * java/io/CharArrayReader.java (close): Synchronize on lock
4847 object per Reader contract.
4848 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4849 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4850 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4851 Ensure that arg passed in isn't negative.
4853 * java/io/FilterReader.java (FilterReader): Use the lock obj when
4854 constructing the superclass.
4856 * java/io/PushbackReader.java (close): Synchronize on lock
4857 object per Reader contract.
4858 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4859 (ready): Synchronize on lock obj. Throw IOException if reader
4861 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4862 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4863 Ensure that arg passed in isn't negative.
4864 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
4866 * java/io/StringReader.java: Created.
4868 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
4870 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4872 (read): Removed synchronized modifier to match JCL.
4873 (reset): Removed synchronized modifier to match JCL.
4874 (skip): Removed synchronized modifier to match JCL.
4876 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
4878 * java/io/PushbackReader.java (PushbackReader): Made
4879 constructors public.
4881 1998-10-17 Tom Tromey <tromey@cygnus.com>
4883 * java/io/PushbackInputStream.java (PushbackInputStream): Made
4884 constructors public.
4886 1998-10-16 Anthony Green <green@cygnus.com>
4888 * aclocal.m4, configure: Rebuilt.
4889 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4891 * configure.host: Rewrote.
4892 * Makefile.in: Rebuilt.
4893 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4894 (AM_CFLAGS): New macro.
4895 ($(c_files)): Use COMPILE macro.
4896 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4897 automake problem(s).
4899 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
4901 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4903 * java/io/CharArrayReader.java: Created.
4905 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
4907 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4908 size check to allow 0 per JCL.
4910 * java/io/PushbackReader.java: Created.
4912 1998-10-16 Tom Tromey <tromey@cygnus.com>
4914 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4915 <sys/time.h> includes.
4916 * java/io/natFile.cc: Conditionalize <unistd.h> include.
4917 * include/no-threads.h: Conditionalize <unistd.h> include on
4920 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4922 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4925 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
4927 * java/io/FilterReader.java: Created.
4929 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
4931 * java/io/PushbackInputStream.java: Rewritten.
4933 * java/io/BufferedInputStream.java (BufferedInputStream): Check
4934 that size passed to constructor is legal.
4935 (read): Check that args passed in are legal.
4936 (skip): Rewritten to get rid of the temporary buffer.
4937 (refill): Added marklimit check to grow the buffer.
4939 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4941 (bytesAvail): Removed.
4942 (read): Changed bytesAvail to Math.min.
4943 (skip): Changed bytesAvail to Math.min.
4945 * java/io/InputStream.java (read): Got rid of extraneous exceptions
4946 from the throws clause.
4947 (skip): Rewritten to use a temporary buffer.
4949 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4951 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4954 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4956 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4957 to write the double one word at a time.
4959 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
4961 * java/io/BufferedInputStream.java: Rewritten.
4963 1998-10-12 Tom Tromey <tromey@cygnus.com>
4965 * jni.cc: Include config.h and stddef.h.
4967 * java/lang/Class.h (_dispatchTable): Removed again.
4968 Removed all ACC_* defines again.
4970 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
4972 * Makefile.am (nat_files): Add netField.o.
4973 (libjava_a_SOURCES): Add jni.cc.
4974 (java/lang/reflect/Field.h): New rule.
4975 * Makefile.in: Re-generated.
4976 * include/javaprims.h: Add some extra class and typedefs.
4977 * include/jni.h: New file.
4980 * include/java-field.h: New file.
4981 * include/jvm.h: #include <java-field.h>.
4982 * boehm.cc: #include <java-field.h>.
4983 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
4984 * java/lang/reflect/Member.java: New class.
4985 * java/lang/reflect/Field.java: New class. (Very incomplete.)
4986 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
4988 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
4990 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
4991 testsuite/Makefile.in: Rebuilt.
4992 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
4993 * configure.host: Created.
4995 1998-10-10 Tom Tromey <tromey@cygnus.com>
4997 * java/lang/natObject.cc (sync_init): Always allocate a new
5000 1998-10-09 Tom Tromey <tromey@cygnus.com>
5002 * java/io/ByteArrayInputStream.java (mark): Renamed from
5005 * java/io/FileOutputStream.java (finalize): Removed.
5006 * java/io/FileDescriptor.java (finalize): New method.
5008 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5010 * ByteArrayInputStream.java: Corrected status comment.
5012 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5014 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5016 1998-10-08 Tom Tromey <tromey@cygnus.com>
5018 * prims.cc (lookupArray): Use static array to initialize list of
5021 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5023 * prims.cc (lookupArray): Initialize the msize for new
5026 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5028 * configure: Rebuilt.
5029 * configure.in: Check for fsync and sleep.
5030 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5032 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5033 HAVE_SLEEP. Include config.h.
5035 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5036 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5039 1998-10-08 Tom Tromey <tromey@cygnus.com>
5041 * java/io/natFile.cc: Don't include SecurityManager.h.
5042 (performList): Renamed.
5043 (performMkdir): Likewise.
5044 (performRenameTo): Likewise.
5045 (performDelete): Likewise.
5047 * java/io/File.java (performDelete): Renamed from natDelete.
5048 (list): Now written in Java.
5049 (performList): New method.
5050 (performMkdir): New method.
5051 (mkdir): Now written in Java.
5052 (performRenameTo): New method.
5053 (renameTo): Now written in Java.
5055 1998-10-06 Tom Tromey <tromey@cygnus.com>
5057 * Makefile.in: Rebuilt.
5058 * Makefile.am (ETAGS_ARGS): New macro.
5059 (TAGS_DEPENDENCIES): Likewise.
5061 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5063 * Makefile.in: Rebuilt.
5064 * Makefile.am: Use -classpath option with javac.
5066 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5068 * java/io/FileOutputStream.java (finalize): Call
5071 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5073 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5075 * java/lang/mprec.c: Ditto.
5077 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5080 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5082 * java/io/InputStream.java (skip): Make local var i a long.
5084 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5086 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5087 * prims.cc (lookupArray): Use memcpy, not memmove.
5088 * include/config.h.in: Rebuilt.
5089 * acconfig.h (HAVE_MEMCPY): Added.
5090 * configure: Rebuilt.
5091 * configure.in: Check for memcpy again.
5093 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5094 String.compareTo, not ==.
5096 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5097 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5098 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5099 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5100 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5101 into new array's dtable.
5102 (_Jv_AllocObject): Use _Jv_DispatchTable.
5103 (_Jv_NewPrimArray): Likewise.
5104 (_Jv_NewObjectArray): Likewise.
5106 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5108 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5109 offending index value.
5110 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5112 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5113 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5115 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5117 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5119 * java/io/OutputStream.java (write): Use off and len parameters to
5120 output partial byte array.
5122 * java/io/BufferedReader.java, java/io/FileReader.java,
5123 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5124 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5125 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5126 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5128 * include/javaprims.h (java::lang): Added
5129 ExceptionInInitializerError, IllegalStateException,
5130 NoSuchFieldException, and UnsupportedOperationException.
5132 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5134 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5137 * include/java-array.h (__JArray): Added clone method.
5138 * prims.cc (CloneableClass): New define.
5139 (lookupArray): Initialize array class to indicate that it
5140 implements Cloneable.
5142 * java/lang/Class.h: Removed all ACC_* defines.
5143 * prims.cc: Include Modifier.h.
5144 (_Jv_LookupInterfaceMethod): Use methods in
5145 java.lang.reflect.Modifier, not ACC_ defines.
5147 * java/lang/Class.h (Class): Declare getClasses,
5148 getDeclaredClasses, getDeclaringClass, getModifiers,
5149 * java/lang/Class.java: Rewrote from scratch.
5151 * include/javaprims.h (java::lang): Added reflect and
5153 * Makefile.in: Rebuilt.
5154 * Makefile.am (nat_headers): Added Modifier.h.
5156 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5159 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5161 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5162 instead of test and abort.
5164 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5165 remove compiler warning.
5167 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5169 * java/lang/natDouble.cc: zero terminate string.
5170 * strtod.c: Set errno if no digits are found in fraction.
5172 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5174 * java/lang/reflect/Modifier.java: New file.
5176 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5177 * java/lang/VerifyError.java: Rewrote from scratch.
5178 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5179 * java/lang/UnknownError.java: Rewrote from scratch.
5180 * java/lang/StackOverflowError.java: Rewrote from scratch.
5181 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5182 * java/lang/InternalError.java: Rewrote from scratch.
5183 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5184 * java/lang/ExceptionInInitializerError.java: New file.
5185 * java/lang/Error.java: Rewrote from scratch.
5186 * java/lang/ClassFormatError.java: Rewrote from scratch.
5187 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5188 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5189 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5190 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5191 * java/lang/LinkageError.java: Rewrote from scratch.
5192 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5194 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5196 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5197 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5199 * include/cni.h (JvAllocObject): Moved from prims.cc.
5201 * prims.cc (JvAllocObject): Moved to cni.h.
5202 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5203 (finalize_name): Removed.
5205 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5207 * java/lang/Class.h (Class): Added size() method.
5208 * prims.cc (_Jv_MonitorEnter): Removed.
5209 (_Jv_MonitorExit): Removed.
5210 * java/lang/Object.h (JvSyncInfo): Removed.
5211 * Makefile.in: Rebuilt.
5212 * Makefile.am (nat_headers): Added Cloneable.h,
5213 CloneNotSupportedException.h.
5214 * java/lang/Object.h: Rewrote.
5215 * java/lang/natObject.cc: Rewrote from scratch.
5216 * java/lang/Object.java: Rewrote from scratch.
5218 * java/io/natFile.cc: Conditionally include <dirent.h>.
5219 (list): If no <dirent.h>, always return NULL.
5220 * configure: Rebuilt.
5221 * configure.in: Check for dirent.h.
5223 * prims.cc (lookupArray): Don't use sprintf.
5225 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5232 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5233 name conflict with method.
5235 * include/javaprims.h (java::util): Added HashtableEntry.
5237 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5239 * java/util/Hashtable.java: Rewritten.
5241 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5243 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5247 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5250 * posix-threads.cc (_Jv_CondWait): Now returns int.
5251 * include/javaprims.h (java::lang): Added
5252 IllegalMonitorStateException.
5253 * Makefile.in: Rebuilt.
5254 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5255 * include/no-threads.h (_Jv_CondDestroy): Removed.
5256 (_Jv_MutexDestroy): Removed.
5257 (_Jv_CondWait): Now returns int.
5258 (_Jv_CondNotify): Likewise. Added mutex argument.
5259 (_Jv_CondNotifyAll): Likewise.
5260 (_Jv_MutexLock): Always succeed.
5261 (_Jv_MutexUnlock): Likewise.
5262 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5263 (_Jv_HaveMutexDestroy): Define.
5264 (_Jv_CondNotify): Now returns int. Added mutex argument.
5265 (_Jv_CondNotifyAll): Likewise.
5266 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5267 (_Jv_MutexDestroy): Removed.
5268 (_Jv_CondWait): Now returns int.
5269 (_Jv_CondNotify): Likewise. Added mutex argument.
5270 (_Jv_CondNotifyAll): Likewise.
5271 * java/lang/natObject.cc (finalize_sync_info): New function.
5272 (init_mutex): Initialize `init' and register finalizer if
5275 (init_mutex): Use it.
5277 (notifyAll): Use it.
5279 (notify): Throw IllegalMonitorStateException on failure.
5280 (notifyAll): Likewise.
5281 (wait): Likewise. Also, throw InterruptedException if
5283 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5284 InterruptedException.h, IllegalArgumentException.h.
5285 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5287 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5288 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5289 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5290 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5291 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5292 * quick-threads.cc: Renamed all `JvPriv' functions.
5293 * prims.cc: Renamed all `JvPriv' functions.
5294 * posix-threads.cc: Renamed all `JvPriv' functions.
5295 * nogc.cc: Renamed all `JvPriv' functions.
5296 * no-threads.cc: Renamed all `JvPriv' functions.
5297 * boehm.cc: Renamed all `JvPriv' functions.
5298 * include/quick-threads.h: Renamed all `JvPriv' functions.
5299 * include/posix-threads.h: Renamed all `JvPriv' functions.
5300 * include/no-threads.h: Renamed all `JvPriv' functions.
5301 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5303 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5305 (JvPrivCondNotify): Do nothing.
5306 (JvPrivCondNotifyAll): Do nothing.
5308 * prims.cc (processClass): Handle case where state is
5311 * java/lang/natFirstThread.cc: Include <stdlib.h>
5313 * configure: Rebuilt.
5314 * configure.in: Fixed sense of --enable-libjava-debug.
5316 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5317 it can be used afterward by the assertion.
5319 * configure: Rebuilt.
5320 * configure.in: When cross-compiling, assume alloca.
5322 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5323 __builtin_alloca (autoconf docs are wrong here).
5325 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5327 (available): Use `FD_ZERO' (typo fix).
5329 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5331 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5332 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5334 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5335 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5338 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5340 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5342 * java/lang/natDouble.cc: Declare alloca safely.
5344 * configure, include/config.h.in: Rebuilt.
5345 * configure.in: Add alloca check.
5347 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5349 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5350 condition while calling notify.
5351 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5352 (interrupt): Hold mutex for interrupt condition while calling
5355 * java/lang/natString.cc (init): Allocate and try to read `count'
5356 characters, not `count - offset' characters.
5358 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5359 Correctly compute `count'.
5361 * java/lang/Boolean.java (getBoolean): Return false if property
5364 * java/lang/System.java (setProperties): Set prop_init.
5366 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5368 * java/io/PrintStream.java (println): Use line.separator, not
5370 * java/lang/System.java (out, err): Make both autoflush streams.
5371 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5373 * include/config.h.in: Rebuilt.
5374 * acconfig.h (HAVE_MEMCPY): Removed.
5375 * configure: Rebuilt.
5376 * configure.in: Never define HAVE_MEMCPY.
5378 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5380 (_Jv_AllocString): Use JvAllocObject again.
5381 * java/lang/Class.h (thread): New field.
5382 (_Jv_AllocString): No longer a friend.
5383 * prims.cc (processClass): Removed dead code. Changed to more
5384 closely follow the Java Language Specification.
5385 (processClass): Return early if already at the right state.
5387 * prims.cc (JvNewStringUTF): Removed.
5388 * include/cni.h (JvNewStringUTF): New function.
5389 (_Jv_NewStringUTF): Declare as `extern "C"'.
5390 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5392 * java/lang/natDouble.cc: Added copyright info and header
5393 comment. Include <stdlib.h>.
5394 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5395 bytes as are chars in string.
5397 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5399 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5403 * java/lang/System.java (init_properties): Now native.
5404 * java/lang/natSystem.cc (init_properties): New method.
5405 Include java/util/Properties.h.
5407 * Makefile.in: Rebuilt.
5408 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5409 OutputStreamWriter.h, ByteArrayInputStream.h,
5410 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5411 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5412 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5413 Properties.h, Hashtable.h, Dictionary.h.
5416 * include/javaprims.h (java::io): Added Reader, Writer,
5417 InputStreamReader, OutputStreamWriter,
5418 UnsupportedEncodingException, ByteArrayInputStream,
5419 ByteArrayOutputStream, EOFException, SyncFailedException,
5420 PushbackInputStream.
5421 (java::lang): Added Cloneable.
5422 (java::util): Added NoSuchElementException, VectorEnumeration,
5423 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5425 * java/io/PipedReader.java: New file.
5427 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5429 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5432 * java/io/io-defs.h: Removed.
5434 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5435 (FileInputStream): Use new constructor. Can throw IOException.
5437 * java/lang/System.java (getProperty): Don't throw
5438 NullPointerException.
5440 * java/io/RandomAccessFile.java: Rewrote from scratch.
5442 * java/io/natFileDescriptor.cc: Include EOFException.h.
5444 (length): New method.
5445 (getFilePointer): New method.
5447 (available): New method.
5448 * java/io/FileDescriptor.java (SET, CUR): New constants.
5449 (seek, length, getFilePointer, read, available): New decls.
5451 * java/io/PipedWriter.java: New file.
5452 * java/io/StringWriter.java: New file.
5453 * java/io/CharArrayWriter.java: New file.
5454 * java/io/CharConversionException.java: New file.
5455 * java/io/BufferedWriter.java: New file.
5456 * java/io/FilterWriter.java: New file.
5457 * java/io/FileWriter.java: New file.
5459 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5460 OutputStreamWriter.h, NullPointerException.h,
5461 ByteArrayInputStream.h, InputStreamReader.h.
5462 (getBytes): New method.
5463 (init): Throw NullPointerException.
5464 (init): New function.
5465 * java/lang/String.java (getBytes): Added missing decl.
5466 (getBytes): New method.
5467 (String): Added byte[]-based constructors.
5468 (copyValueOf): Wrote.
5469 (init): Declare variant which takes byte array and encoding.
5470 Import java.io.UnsupportedEncodingException.
5472 * java/io/File.java: Rewrote from scratch.
5473 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5474 * java/io/FileDescriptor.java: Rewrote from scratch.
5475 * java/io/FilenameFilter.java: Rewrote from scratch.
5477 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5479 * java/io/SyncFailedException.java: New file.
5480 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5481 * java/io/InterruptedIOException.java: Rewrote from scratch.
5482 * java/io/FileNotFoundException.java: Rewrote from scratch.
5483 * java/io/EOFException.java: Rewrote from scratch.
5484 * java/io/IOException.java: Rewrote from scratch.
5485 * java/io/PrintStream.java: Rewrote from scratch.
5486 * java/io/DataOutputStream.java: Rewrote from scratch.
5487 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5488 * java/io/FilterOutputStream.java: Rewrote from scratch.
5489 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5490 * java/io/PipedOutputStream.java: Rewrote from scratch.
5491 * java/io/FileOutputStream.java: Rewrote from scratch.
5492 * java/io/OutputStream.java: Rewrote from scratch.
5493 * java/io/DataOutput.java: Rewrote from scratch.
5495 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5497 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5499 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5501 * configure.in: Add --enable-libjava-debug
5503 * Makefile.am (nat_headers): Add java/lang/Float.h and
5506 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5508 * Makefile.in, configure, include/config.h.in: Rebuilt.
5510 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5512 * java/lang/Float.java: Rewritten
5513 * java/lang/Double.java: Rewritten
5514 * java/lang/natFloat.cc: toString() added.
5515 * java/lang/natDouble.cc: toString() added.
5516 * java/lang/natDouble.cc: doubleValueOf() added.
5517 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5518 java/lang/strtod.c: added.
5519 * ieeefp.h: __sparc added.
5520 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5522 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5524 * include/javaprims.h (java::lang): Added
5525 CloneNotSupportedException.
5527 * java/lang/Object.java (clone): No longer native. Implemented.
5528 * java/lang/natObject.cc (clone): Removed.
5530 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5532 * prims.cc: Don't make definitions `extern "C"'.
5533 (_Jv_RegisterClass): Renamed from registerClass.
5534 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5535 (_Jv_NewArray): Likewise.
5536 (_Jv_NewMultiArray): Likewise.
5537 (_Jv_CheckCast): Likewise.
5538 (_Jv_LookupInterfaceMethod): Likewise.
5539 (_Jv_CheckArrayStore): Likewise.
5540 (_Jv_RegisterClass): Likewise.
5542 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5543 * configure: Rebuilt.
5544 * configure.in: Don't check for fmod; it is provided by the fdlibm
5546 * prims.cc (fmod): Removed.
5548 * java/lang/natString.cc (charAt): Use _Jv_uint.
5549 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5550 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5551 (equalUtf8Consts): Likewise.
5552 (internalAddClass): Use _Jv_uint.
5553 (processClass): Likewise.
5554 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5555 (_Jv_uint): Renamed from uint32.
5556 (struct _Jv_Utf8Const): Changed members to use new type names.
5558 * configure: Rebuilt.
5559 * configure.in: Don't check for memcpy. Require memmove and a way
5561 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5563 (currentTimeMillis): Don't use #error.
5565 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5567 * java/lang/Math.java: static member random renamed to random_ to
5568 avoid conflict with member function of the same name.
5569 * include/javaprims.h: java.util.Random added.
5571 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5573 * include/java-chartables.h: Regenerated.
5574 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5577 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5579 * java/lang/Math.java: Rewritten.
5580 * java/lang/natMath.cc: New file.
5581 * Files added from fdlibm:
5582 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5583 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5584 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5585 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5586 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5587 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5588 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5589 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5590 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5591 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5592 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5593 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5594 java/lang/k_cos.c, java/lang/sf_ceil.c,
5595 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5596 java/lang/ieeefp.h, java/lang/fdlibm.h
5597 * Makefile.am: rules added for compiling C files from fdlibm.
5599 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5601 * chartables.pl: Minor documentation fixes.
5603 * configure: Rebuilt.
5604 * configure.in: Fixed --help output for --enable-fast-character.
5606 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5608 * configure: Rebuilt.
5609 * configure.in: Recognize --enable-fast-character.
5610 * acconfig.h (COMPACT_CHARACTER): New define.
5611 * include/config.h.in: Rebuilt.
5612 * include/java-chartables.h: New file.
5613 * Makefile.in: Rebuilt.
5614 * Makefile.am (nat_files): Added natCharacter.o.
5615 * java/lang/natCharacter.cc: New file.
5616 * chartables.pl (set_attribute): New function.
5617 (@attributes, @second_attributes): New globals.
5618 ($ROMAN_START, $ROMAN_END): Likewise.
5619 (process_char): Call set_attribute when required.
5620 (print_char): Just print hex value.
5621 (print_block): Generate C++ syntax.
5622 (print_numerics): Likewise.
5623 (print_single_map): Likewise.
5624 (print_all_block): Likewise.
5625 (print_case_table): Likewise.
5626 (print_fast_tables): New function.
5627 Generate C++ code suitable for a header file.
5628 * java/lang/Character.java (table_search): Removed.
5629 (digit_value): Now native.
5630 (getNumericValue): Likewise.
5631 (getType): Likewise.
5632 Removed all automatically-generated tables.
5633 (Tamil_Digit_One): Removed.
5634 (isSpaceChar): Now native.
5635 (isTitleCase): Likewise.
5636 (isLowerCase): Likewise.
5637 (isUpperCase): Likewise.
5638 (toLowerCase): Likewise.
5639 (toTitleCase): Likewise.
5640 (toUpperCase): Likewise.
5641 (isDefined): Fixed sense of test.
5643 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5645 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5647 (regionMatches): Likewise.
5649 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5651 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5653 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5655 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5658 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5661 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5663 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5665 * prims.cc (instanceof_class): Removed.
5666 (instanceof_array): Likewise.
5667 (instanceof): Likewise.
5668 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5669 (_Jv_CheckCast): Likewise.
5670 * java/lang/natClass.cc (isAssignableFrom): New method.
5671 * java/lang/Class.java (isAssignableFrom): Now native.
5673 * include/cni.h (JvThrow): Use `extern inline'.
5674 (JvAllocObject): Likewise.
5675 (JvInitClass): Likewise.
5677 * java/lang/natSystem.cc (arraycopy): Only check class of source
5680 * prims.cc (_Jv_CheckArrayStore): Wrote.
5681 (_Jv_MonitorEnter): Prefer `JvThrow'.
5682 Include ArrayStoreException.h.
5683 (_Jv_CheckCast): Indentation cleanup.
5685 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5687 * chartables.pl: New file.
5688 * java/lang/Character.java: Rewrote from scratch.
5690 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5692 * java/lang/ArithmeticException.java,
5693 java/lang/ArrayIndexOutOfBoundsException.java,
5694 java/lang/ArrayStoreException.java,
5695 java/lang/ClassCastException.java,
5696 java/lang/ClassNotFoundException.java,
5697 java/lang/CloneNotSupportedException.java,
5698 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5699 java/lang/IllegalArgumentException.java,
5700 java/lang/IllegalMonitorStateException.java,
5701 java/lang/IllegalThreadStateException.java,
5702 java/lang/IndexOutOfBoundsException.java,
5703 java/lang/InstantiationException.java,
5704 java/lang/InterruptedException.java,
5705 java/lang/NegativeArraySizeException.java,
5706 java/lang/NoSuchMethodException.java,
5707 java/lang/NullPointerException.java,
5708 java/lang/NumberFormatException.java,
5709 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5710 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5712 * java/lang/IllegalStateException.java,
5713 java/lang/NoSuchFieldException.java,
5714 java/lang/UnsupportedOperationException.java: Created.
5716 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5718 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5719 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5721 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5723 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5725 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5727 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5729 * Makefile.in: Rebuilt.
5731 * include/javaprims.h (java::lang): Added
5732 StringIndexOutOfBoundsException.
5734 * java/lang/String.java: Added header comment and FIXME comment for
5735 missing constructors/methods.
5736 (endsWith): Adjusted offset into string to look at just the last chars.
5737 Commented out undocumented method.
5739 * java/lang/natString.cc: Added includes for
5740 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5741 (String::init): Throw StringIndexOutOfBoundsException.
5742 (String::charAt): Throw StringIndexOutOfBoundsException.
5743 (String::substring): Throw StringIndexOutOfBoundsException.
5744 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5745 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5746 (String::compareTo): Return difference/offset between chars/strings.
5748 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5750 * java/lang/Boolean.java (TYPE): Added comment.
5752 * java/lang/Byte.java (decode): Added - commented out until dependent
5753 code for Integer is written.
5754 (compareTo): JDK 1.2 methods written.
5755 (hashCode): Added comment to note that values have been verified.
5757 * java/lang/Short.java (decode): Added - commented out until dependent
5758 code for Integer is written.
5759 (compareTo): JDK 1.2 methods written.
5760 (hashCode): Added comment to note that values have been verified.
5762 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5764 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5766 * include/javaprims.h (java::lang): Added VirtualMachineError,
5768 * Makefile.in: Rebuilt.
5769 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5770 VirtualMachineError.h.
5771 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5772 (lookupArray): Likewise.
5773 (makeUtf8Const): Likewise.
5774 (_Jv_AllocObject): Likewise.
5775 (_Jv_NewObjectArray): Likewise.
5776 Include OutOfMemoryError.h.
5778 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5779 to use JvNewStringLatin1.
5781 * java/io/io-defs.h: Include java/lang/IOException.h.
5782 * Makefile.in: Rebuilt.
5783 * Makefile.am (nat_headers): Added
5784 ArrayIndexOutOfBoundsException.h,
5785 ClassFormatError.h,ClassNotFoundException.h,
5786 ClassCircularityError.h, ClassCastException.h,
5787 IncompatibleClassChangeError.h, AbstractMethodError.h,
5788 IllegalAccessError.h, LinkageError.h, Error.h,
5789 NegativeArraySizeException.h, IOException.h.
5790 * include/cni.h (SignalError): Removed declaration.
5791 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5792 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5793 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5794 (newInstance): Likewise.
5795 (forName): Likewise.
5796 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5798 (read): Use JvThrow, not SignalError.
5803 (open_read): Likewise.
5804 (open_write): Likewise.
5807 (newstr): New function.
5808 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5810 (lastModifiedUnchecked): Likewise.
5811 (lengthUnchecked): Likewise.
5812 * include/javaprims.h (sorry): Removed declaration.
5813 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5814 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5815 ClassCastException, IncompatibleClassChangeError,
5816 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5817 * prims.cc (instanceof_array): Use JvFail, not sorry.
5819 Include ArrayIndexOutOfBoundsException.h,
5820 ClassFormatError.h,ClassNotFoundException.h,
5821 ClassCircularityError.h, ClassCastException.h,
5822 IncompatibleClassChangeError.h, AbstractMethodError.h,
5823 IllegalAccessError.h, NegativeArraySizeException.h.
5824 (_Jv_ThrowBadArrayIndex): Implemented.
5825 (JvNewStringUTF): Use JvFail, not sorry.
5826 (_Jv_FindClass): Likewise.
5827 (_Jv_NewArray): Likewise.
5828 (throwException): Removed.
5829 (getClass): Use JvThrow.
5830 (processClass): Likewise.
5831 (_Jv_NewObjectArray): Likewise.
5832 (_Jv_NewMultiArray): Likewise.
5833 (_Jv_CheckCast): Likewise.
5834 (_Jv_LookupInterfaceMethod): Likewise.
5835 (SignalError): Removed.
5836 (getClass): Use _Jv_NewStringUtf8Const to create String.
5838 * java/lang/natSystem.cc (arraycopy): Throw
5839 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5841 * Makefile.in: Rebuilt.
5842 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
5844 * include/java-array.h: Mention gcjh, not gjavah.
5846 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5847 (canReadUnchecked): Likewise.
5848 (canWriteUnchecked): Likewise.
5849 (isFileUnchecked): Likewise.
5850 * java/io/natFileDescriptor.cc: Don't include cni.h.
5852 * java/lang/Thread.java (run__): Declare.
5853 * java/lang/natThread.cc (run__): New method, to avoid compiler
5855 (start): Use run__, not run_.
5857 * java/io/io-defs.h: Include cni.h and jvm.h.
5859 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
5861 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5862 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
5863 to natString.cc (with suitable renaming, inlines etc).
5864 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
5865 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
5866 * java/lang/String.h: Removed - now generated using gjavah.
5867 * java/lang/String.java: Re-written from scratch. Many native methods.
5868 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
5869 * java/lang/natString.cc: Many functions re-written for "compact
5870 strings" representation, or native java.lang.String methods added.
5871 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
5872 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
5873 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
5874 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
5875 * include/cni.h: Add inline method.
5876 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
5877 * include/javaprims.h: Moved some stuff frm String.h.
5878 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
5879 * Makefile.am (nat_header): Added Character.h and String.h.
5880 (String.h): Add new rule.
5882 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5884 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
5886 * posix-threads.cc: Include cni.h, jvm.h.
5887 * quick-threads.cc: Include cni.h, jvm.h.
5888 * nogc.cc: Include cni.h, not javaprims.h.
5889 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5890 * java/lang/natThread.cc: Rearranged #include ordering. Don't
5891 include java-assert.h.
5892 * java/lang/natSystem.cc: Include cni.h. Don't include
5894 * java/lang/natRuntime.cc: Include cni.h. Don't include
5896 * prims.cc: Rearranged #include ordering. Don't include
5897 java-array.h or java-assert.h.
5898 * boehm.cc: Include config.h, cni.h.
5899 * exception.cc: Include config.h, cni.h.
5900 * include/jvm.h: Include java-assert.h.
5901 * include/cni.h: Include java/lang/Object.h. Don't include
5902 java-threads.h or java-array.h.
5904 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
5906 * java/lang/Boolean.java: Rewritten.
5908 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5910 * java/lang/natFirstThread.cc (main_func): New typedef.
5911 (run): Use main_func, not JvPrivThreadStartFunc.
5912 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5914 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5916 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5919 Can't throw Java exceptions with C++ `throw':
5920 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5921 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5922 (setPriority): Likewise.
5926 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5927 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5929 Can't catch Java exceptions from C++:
5930 * java/lang/natThread.cc (finish_): New method.
5932 * java/lang/Thread.java (run_): Rewrote in Java.
5933 (finish_): New native method.
5935 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
5937 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5939 * include/javaprims.h (java::io): Added Serializable.
5941 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
5943 * java/util/EmptyStackException.java,
5944 java/util/NoSuchElementException.java: Rewritten.
5946 * java/util/ConcurrentModificationException.java,
5947 java/util/MissingResourceException.java,
5948 java/util/TooManyListenersException.java: Created.
5950 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5952 * include/cni.h (JvThrow): New function.
5953 * include/javaprims.h (_Jv_Throw): Declare.
5955 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
5957 * java/util/Observable.java: Rewritten.
5959 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5961 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
5962 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
5963 Include NullPointerException.h.
5965 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
5967 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
5968 assignability checks. Don't bother using memcpy.
5970 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
5972 * include/quick-threads.h (JvPrivThreadWait): New function.
5973 * include/no-threads.h (JvPrivThreadWait): New function.
5974 * include/posix-threads.h (JvPrivThreadWait): New function.
5975 * prims.cc (JvRunMain): Call JvPrivThreadWait.
5977 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
5979 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
5980 offsets by size of type that is being copied.
5982 * java/lang/natThread.cc (start): Don't pass `object' argument to
5984 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
5985 * posix-threads.cc (JvPrivThreadStart): Removed `object'
5987 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
5988 always pass thread as object.
5989 * include/quick-threads.h, include/posix-threads.h,
5990 include/no-threads.h (JvPrivThreadStart): Removed `object'
5993 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
5995 * java/util/Dictionary.java: Rewritten.
5997 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
5999 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6000 (JvPrivThreadDestroy): Likewise.
6002 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6004 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6006 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6008 * java/lang/natSystem.cc: Rewrote from scratch.
6009 * java/lang/System.java: Rewrote from scratch.
6010 * java/lang/Class.h (Class): Declare isAssignableFrom.
6011 * include/javaprims.h (java::lang): Added ArrayStoreException,
6012 IndexOutOfBoundsException.
6013 * Makefile.in: Rebuilt.
6014 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6015 IndexOutOfBoundsException.h.
6016 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6017 * include/jvm.h (_Jv_HashCode): New function.
6019 * java/lang/natThread.cc (suspend): Call checkAccess.
6021 * java/lang/Thread.java (setDaemon): Call checkAccess.
6023 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6025 * java/lang/Runtime.java: Rewrote from scratch.
6026 * java/lang/natRuntime.cc: Rewrote from scratch.
6028 * nogc.cc (JvPrivGCTotalMemory): New function.
6029 (JvPrivGCFreeMemory): Likewise.
6030 (total): New global.
6031 (JvPrivAllocObj): Increment total.
6032 (JvPrivAllocArray): Likewise.
6033 (JvPrivAllocBytes): Likewise.
6034 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6035 * boehm.cc (JvPrivGCTotalMemory): New function.
6036 (sum_blocks): Likewise.
6037 (JvPrivGCFreeMemory): Likewise.
6039 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6041 * include/javaprims.h (java::lang): Added FirstThread.
6042 * java/lang/natFirstThread.cc: New file.
6043 * java/lang/FirstThread.java: New file.
6044 * prims.cc (main_signature): Removed.
6045 (main_name): Removed.
6046 #include FirstThread.h.
6047 * Makefile.in: Rebuilt.
6048 * Makefile.am (TFRIEND): Removed.
6049 (java/lang/Thread.h): Likewise.
6050 (FTFRIEND): New macro.
6051 (java/lang/FirstThread.h): New target.
6052 (nat_files): Added natFirstThread.o.
6053 (nat_headers): Added FirstThread.h.
6054 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6055 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6057 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6061 * java/lang/natThread.cc (start): Synchronize the thread.
6062 (stop): Synchronize the thread.
6064 * java/lang/ThreadDeath.java: Rewrote from scratch.
6066 * Makefile.in: Rebuilt.
6067 * Makefile.am (TGFRIEND): New macro.
6068 (java/lang/ThreadGroup.h): New target.
6069 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6071 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6073 * nogc.cc: Include config.h.
6075 * java/lang/ThreadGroup.java: Rewrote from scratch.
6077 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6079 * java/lang/Thread.java (checkAccess): Only call in to security
6080 manager if it exists.
6081 (Thread): Don't check access when creating the first thread. Add
6082 this thread to the appropriate ThreadGroup.
6084 * java/lang/natThread.cc (run_): Call uncaughtException method on
6087 * java/lang/Runnable.java: Rewrote from scratch.
6088 * java/lang/Thread.java: Updated copyright comment to correct
6091 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6093 * java/util/Random.java: Rewritten.
6095 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6097 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6098 trailing 0 in array[].
6100 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6102 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6103 and RUNTESTFLAGS from AM_MAKEFLAGS.
6104 (SUBDIRS): Conditionally include testsuite.
6105 * Makefile.in: Rebuilt.
6107 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6109 * java/lang/Object.h: Include java-assert.h.
6111 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6113 * Makefile.am: Add testsuite directory.
6114 * configure.in: Build testsuite/Makefile.
6115 * Makefile.in, configure: Rebuilt.
6117 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6119 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6120 * include/jvm.h (_Jv_StartFirstThread): Declare.
6122 * include/javaprims.h (java::lang): Added Exception,
6125 * Makefile.in: Rebuilt.
6126 * Makefile.am (nat_headers): Added NullPointerException.h,
6127 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6128 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6129 (java/lang/Thread.h): New target.
6130 (TFRIEND): New macro
6132 * include/java-assert.h (JvFail): Use 0 and not NULL.
6134 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6135 instead of assuming we are a friend of Thread.
6136 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6137 instead of assuming we are a friend of Thread.
6139 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6141 * java/lang/natThread.cc: Rewrote from scratch.
6142 * java/lang/Thread.java: Rewrote from scratch.
6143 * prims.cc (JvRunMain): Use new Thread constructor.
6144 * include/javaprims.h (java::lang): Added InterruptedException.
6145 * Makefile.in: Rebuilt.
6146 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6147 * java/lang/Thread.h: Removed.
6148 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6149 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6151 * posix-threads.cc (JvPrivThreadJoin): Removed.
6152 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6153 (really_start): Don't notify join_cond.
6154 (JvPrivThreadStart): Added `data' argument.
6155 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6156 (JvPrivThreadJoin): Likewise.
6157 Use JvFail instead of sorry.
6158 (JvPrivThreadSuspend): Removed.
6159 (JvPrivThreadResume): Removed.
6160 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6161 (JvPrivThreadJoin): Likewise.
6162 (JvPrivThreadSuspend): Use JvFail.
6163 (JvPrivThreadResume): Likewise.
6164 (JvPrivThreadSuspend): Removed.
6165 (JvPrivThreadResume): Likewise.
6166 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6167 (JvPrivThread_t): Removed join_mutex, join_cond.
6168 Use JvFail instead of sorry.
6169 (JvPrivThreadSuspend): Removed.
6170 (JvPrivThreadResume): Likewise.
6172 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6174 * java/util/Observer.java: Rewritten
6175 * java/util/Enumeration.java: Rewritten
6177 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6179 * java/util/StringTokenizer.java: Rewritten
6180 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6181 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6182 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6184 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6186 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6189 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6190 Include java-assert.h.
6191 * include/java-assert.h: New file.
6192 * prims.cc (_Jv_Abort): New function.
6193 Include java-assert.h, not assert.h.
6194 (_Jv_MonitorExit): Use JvAssert.
6195 (resolveConstants): Likewise.
6196 (processClass): Likewise.
6197 (JvRunMain): Assert that method is found.
6199 * configure: Rebuilt.
6200 * configure.in: Check for test subdir.
6201 * Makefile.in: Rebuilt.
6202 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6204 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6205 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6207 * prims.cc (resolveConstants): Removed unused variables.
6208 (processClass): Likewise.
6210 * include/quick-threads.h (JvPrivThreadCurrent): Use
6212 * quick-threads.cc (destroy_data): New function.
6213 (JvPrivInitThreads): Create key.
6214 (JvPrivThreadKey): New global.
6215 (JvPrivThreadStart): Use coop_setspecific.
6217 * include/quick-threads.h, include/posix-threads.h,
6218 include/no-threads.h, no-threads.cc, quick-threads.cc,
6219 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6221 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6223 * include/no-threads.h (JvPrivThreadInitData): Don't set
6226 * include/quick-threads.h (JvPrivCondWait): coop function now
6228 (JvPrivThreadJoin): Likewise.
6230 * java/lang/Thread.h (Thread): Updated declaration of
6232 * include/quick-threads.h, include/posix-threads.h: Updated
6233 declaration of JvPrivThreadStart.
6234 * include/no-threads.h (JvPrivThreadStart): Changed definition
6236 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6237 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6238 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6240 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6242 * quick-threads.cc (qthrow): New function.
6243 (JvPrivInitThreads): New function.
6244 (started): New global.
6245 (JvPrivThreadStart): Call coop_start if required.
6246 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6247 (JvPrivThreadDestroy): Likewise.
6248 (JvPrivInitThreads): Removed.
6249 * include/posix-threads.h (JvPrivThreadCancel): Added error
6251 * java/lang/natThread.cc (stop_): Pass exception to
6254 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6256 * include/javaprims.h (java::lang): Added
6257 IllegalArgumentException, IllegalThreadStateException, Math,
6258 NullPointerException, ThreadDeath.
6259 (java::util): Added Enumeration.
6261 * Makefile.in: Rebuilt.
6262 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6264 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6266 (threadsv): Renamed from threads to avoid clash in C++ header.
6267 (groupsv): Likewise.
6268 * include/no-threads.h (JvPrivThreadStart): Removed.
6269 * no-threads.cc (JvPrivThreadStart): New function.
6270 * java/lang/Thread.java (Thread): New constructor for internal use.
6271 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6272 (Thread): Declare constructor.
6273 * prims.cc (JvRunMain): Create the initial Thread and
6275 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6276 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6277 Removed `daemon' argument.
6279 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6280 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6282 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6284 * Makefile.in: Rebuilt.
6285 * Makefile.am (INCLUDES): Include THREADINCS.
6287 * configure: Rebuilt.
6288 * configure.in: Recognize `qt' as a threads package.
6290 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6292 * java/util/Stack.java (pop): Null out topmost node for robustness.
6294 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6296 * java/util/Stack.java: Rewritten.
6297 * java/util/Vector.java (isEmpty): Simplified expression.
6299 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6301 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6302 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6304 * include/java-array.h (JvNewObjectArray): Created inline to
6307 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6310 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6312 * java/util/Vector.java: Rewritten.
6313 * java/io/Serializable.java: Created.
6315 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6317 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6318 Infinity is 1/0, not 1/1.
6320 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6322 * configure: Rebuilt.
6323 * configure.in: Removed duplicate AC_ARG_WITH.
6325 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6327 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6329 (_Jv_InitClass): Renamed from soft_initialise_class.
6330 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6331 (_Jv_CheckCast): Renamed from soft_checkcast.
6332 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6333 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6334 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6335 * include/cni.h (JvInitClass): New function.
6336 (_Jv_InitClass): Renamed from soft_initialise_class.
6338 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6340 * configure: Rebuilt.
6341 * configure.in (CXX): Don't set.
6342 * Makefile.in: Rebuilt.
6343 * Makefile.am (AM_CXXFLAGS): New macro.
6345 * Makefile.in: Rebuilt.
6346 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6347 nogc.o): New target.
6349 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6351 (mark_array): Likewise.
6353 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6355 * java/lang/Class.h (JvMethod): Removed some unused fields.
6356 (JvField.info): Removed unused idx union variant.
6358 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6360 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6363 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6365 * configure.in, configure (CXX): Add -fvtable-thunks.
6367 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6369 * java/lang/Object.java (finalize): Move first.
6370 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6371 (Object): Re-arrange order to match Object.java.
6373 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6375 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6376 * java/lang/natString.cc (hashChars): Likewise.
6378 * prims.cc (RuntimeClass): New macro.
6379 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6381 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6383 * Makefile.in: Rebuilt.
6384 * Makefile.am (AM_MAKEFLAGS): New macro.
6386 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6388 * nogc.cc: Include <javaprims.h>.
6390 * Makefile.in: Rebuilt.
6391 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6393 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6395 * exception.cc (terminate): Removed.
6396 (unexpected): Removed.
6398 * configure: Rebuilt.
6399 * configure.in: Handle case where target subdir is ".".
6401 * configure: Rebuilt.
6402 * configure.in: Compute COMPPATH based on --with-target-subdir
6403 option. Added --with-target-subdir and --with-cross-host. Use
6404 --with-cross-host to determine when a cross compiler is in use.
6406 * Makefile.in: Rebuilt.
6407 * Makefile.am (GJAVAH): Include COMPPATH.
6408 * configure: Rebuilt.
6409 * configure.in: Subst COMPPATH.
6411 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6413 * prims.cc (lockMutex): Removed.
6414 (unlockMutex): Likewise.
6415 (processClass): Lock the class using a JvSynchronize object.
6417 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6419 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6420 (gc_free_fixed): Removed.
6421 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6422 freeing old value of strhash.
6424 * exception.cc (_Jv_type_matcher): Cast first argument to
6427 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6429 * include/java-array.h (jstringArray): New type.
6430 * java/lang/natSystem.cc (setProperty): Removed.
6431 (initProperties): Directly call JvNewStringLatin1 for arguments.
6432 * java/util/natDate.cc: Include java/util/Date.h, not
6435 * java/io/FileDescriptor.java (available): No longer static.
6436 * java/lang/natDouble.cc (Double): Removed class definition.
6437 * include/javaprims.h (java::lang::Number): Declare.
6438 (java::lang::NumberFormatException): Likewise.
6439 (java::io::FilenameFilter): Likewise.
6440 (java::lang::Character): Likewise.
6441 (java::lang::Error): Likewise.
6442 (java::lang::SecurityManager): Likewise.
6443 (java::util::Vector): Likewise.
6444 (java::io::FileNotFoundException): Likewise.
6445 (java::io::IOException): Likewise.
6446 (java::lang::NativeLang): Likewise.
6447 (java::lang::UnsatisfiedLinkError): Likewise.
6448 (java::util::StringTokenizer): Likewise.
6449 (java::io::InputStream, java::io::OutputStream): Likewise.
6450 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6451 (java::util::Hashtable): Likewise.
6452 * Makefile.in: Rebuilt.
6453 * Makefile.am (nat_headers): Added java/lang/Double.h,
6454 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6455 (MOSTLYCLEANFILES): Added nat_headers.
6456 * include/jvm.h: Moved many defines, declarations, and functions
6457 to java/lang/Class.h.
6458 (struct JvSyncInfo): Moved to java/lang/Object.h.
6459 (UTF8_GET): Moved to java/lang/String.h.
6461 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6463 * java/io/io-defs.h: Don't include java-io.h.
6464 * include/java-io.h: Removed.
6465 * include/javaprims.h: Include java::io.
6467 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6469 * include/java-io.h (File): Removed
6470 (FileDescriptor): Likewise.
6472 * java/io/io-defs.h: Include java/io/File.h and
6473 java/io/FileDescriptor.h.
6475 * Makefile.in: Rebuilt.
6476 * Makefile.am (GJAVAH): New macro.
6477 (.class.h): New rule.
6478 (SUFFIXES): Added .h.
6479 (nat_headers): New macro.
6480 ($(nat_headers)): New target.
6481 (BUILT_SOURCES): Added nat_headers.
6483 * include/java-util.h: Removed.
6485 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6487 * include/java-io.h: Changed to avoid java-lang.h.
6488 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6490 * java/lang/natSystem.cc: Include java/lang/System.h, not
6492 * java/lang/natString.cc: Include java/lang/String.h, not
6494 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6496 * java/lang/natClass.cc: Include java/lang/Class.h, not
6498 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6500 * java/lang/natObject.cc: Include java/lang/Object.h, not
6502 * exception.cc: Don't include java-lang.h.
6503 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6504 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6505 * nogc.cc: Don't include java-lang.h.
6506 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6507 * prims.cc (processClass): Don't use `init_type'; just cast to
6509 Include java/lang/Class.h and jvm.h, not java-lang.h.
6510 (JvAllocObject): Wrote single-argument version.
6511 (PrimClass): Inherit from Class.
6512 (initPrimClass): Removed.
6513 * include/java-lang.h: Removed.
6514 * include/jvm.h: Declare struct _dispatchTable.
6515 * include/cni.h: Don't declare _Jv_MonitorEnter,
6516 _Jv_MonitorExit, struct _dispatchTable.
6517 * include/javaprims.h: Moved all typedefs here, from cni.h.
6518 * java/lang/Class.h: New file.
6519 * include/java-array.h: New file.
6520 * java/lang/Object.h: New file.
6522 * prims.cc (classFromSig): Now static.
6524 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6526 * include/cni.h: Don't mention soft_new.
6527 * include/java-lang.h (Object): Don't mention soft_new. Mention
6528 _Jv_NewPrimArray, not newPrimArray.
6529 * prims.cc (soft_new): Removed.
6530 (_Jv_NewArray): Renamed from soft_newarray.
6531 (soft_anewarray): Use JvNewObjectArray.
6532 (newArray): Likewise.
6533 (newRefArray): Removed.
6534 (_Jv_NewPrimArray): Renamed from newPrimArray.
6535 (equalUtf8Consts): Now static.
6536 (soft_instanceof): Removed.
6537 * java/lang/natDouble.cc (doubleToString): Now static.
6539 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6540 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6543 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6545 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6547 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6549 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6550 (JvPrivMutexUnlock): Likewise.
6551 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6552 Return value now jint.
6553 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6556 * Makefile.in: Rebuilt.
6557 * Makefile.am: Don't allow `jV' names.
6558 (maintainer-check): Depend on libjava.a.
6559 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6561 * Makefile.in: Rebuilt.
6562 * Makefile.am (NM): New macro.
6563 (maintainer-check): New target.
6565 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6567 * configure: Rebuilt.
6568 * configure.in: Use --enable-threads, not --enable-gc. Fix
6569 documentation for --enable-threads. Changed option to work like
6570 identical option in gcc/configure.
6572 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6574 * boehm.cc (mark_array): Use JvGetArrayLength.
6576 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6578 * exception.cc: New file (mostly written by Andrew MacLeod),
6579 exception handling support.
6580 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6581 Remove -fexceptions - it is now the default.
6583 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6584 (JvAllocObject): Renamed to _Jv_AllocObject.
6585 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6586 (loadClass): Renamed to _Jv_FindClass.
6587 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6588 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6589 * include/java-lang.h (JvGetArrayLength): New CNI function.
6590 * include/jvm.h (_Jv_FindClass): Added declaration.
6592 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6594 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6596 * java/lang/natClass.cc (getName): Add implementation.
6597 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6599 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6601 * Makefile.in: Rebuilt.
6602 * Makefile.am (.class.o): Added -fexceptions.
6604 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6606 * configure: Rebuilt.
6607 * configure.in: Don't check for __nanosleep.
6608 * posix-threads.cc (nanosleep): Never define.
6610 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6612 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6615 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6617 * java/lang/natThread.cc (enumerate): Uncommented.
6618 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6619 (interrupt): Call it.
6621 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6623 * configure: Rebuilt.
6624 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6626 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6628 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6629 * include/java-lang.h (Thread): Added `interrupted_' method.
6630 * java/lang/Thread.java (interrupted_): New method.
6631 * java/lang/natThread.cc (join): Possibly throw interrupted
6632 exception after join finishes.
6633 (interrupted_): New method.
6634 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6636 (JvPrivThreadJoin): New function.
6637 (really_start): Notify all threads waiting for this thread.
6638 (struct starter): Added `data' member.
6639 (JvPrivThreadStart): Set it.
6640 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6642 (JvPrivThreadJoin): No longer inline.
6643 (JvPrivThreadInterrupt): New function.
6645 * include/no-threads.h (JvPrivThreadSleep): Removed.
6646 * posix-threads.cc (JvPrivThreadSleep): Removed.
6648 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6650 * configure: Rebuilt.
6651 * configure.in (THREADOBJS): Initialize to no-threads.o in
6653 * posix-threads.cc (key): New global.
6654 (JvPrivInitThreads): New function.
6655 (really_start): Set thread-specific data to point to object.
6656 (JvPrivThreadStart): Added `daemon' argument.
6657 (JvPrivThreadSleep): Added `data' argument.
6658 * include/posix-threads.h (JvPrivInitThreads): Removed
6660 (JvPrivThreadCurrent): New function.
6661 * include/no-threads.h (JvPrivThreadInitData): Initialize
6662 JvPrivOnlyThread. Added `thread' argument.
6663 (JvPrivThreadCurrent): New function.
6664 (JvPrivThreadStart): Added `daemon' argument.
6665 * no-threads.cc: New file.
6666 * java/lang/natThread.cc (init_data): New function.
6668 (start): Set `alive' member.
6669 (stop_): Clear `alive' member.
6670 (destroy): Likewise.
6671 (currentThread): Implemented.
6672 (start): Pass `daemon' argument to JvPrivThreadStart.
6674 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6675 (Thread): Added `init_data' method.
6676 * java/lang/Thread.java (alive, data): New instance variables.
6677 (init_data): New private method.
6678 (isAlive): No longer native.
6680 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6682 * include/java-lang.h (JvRunMain): Declare.
6683 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6684 * prims.cc (JvRunMain): New function.
6685 (main_signature, main_name): New globals.
6687 * boehm.cc (mark_array): Use `elements' function and not
6688 operator[] on jarray.
6690 * posix-threads.cc: Include <config.h>. Define nanosleep if
6693 * configure: Rebuilt.
6694 * configure.in: Check for _nanosleep.
6696 * configure: Rebuilt.
6697 * configure.in: Check for pthread_mutexattr_settype.
6699 * include/cni.h (class JvSynchronize): New class.
6700 * java/lang/Thread.java (sleep): Throws InterruptedException.
6701 (join): Throws InterruptedException.
6702 (resume): Not native.
6703 (resume_): New method.
6704 (start): Now synchronized.
6705 (stop_): New method.
6706 (Thread): Synchronize when accessing threadNumber.
6708 * java/lang/natThread.cc (throwException): New macro.
6709 (sleep): Throw InterruptedException.
6712 * include/java-lang.h (Runtime): Added interrupted().
6714 * boehm.cc (call_finalizer): Correctly initialize jobj.
6715 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6717 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6720 * configure: Rebuilt.
6721 * configure.in: Added support for --disable-threads.
6722 * include/no-threads.h: New file.
6724 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6726 * Makefile.in: Rebuilt.
6727 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6728 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6729 (libjava_a_LIBADD): Added THREADOBJS.
6730 * configure: Rebuilt.
6731 * configure.in: Added --with-threads option.
6732 * posix-threads.cc: New file.
6733 * include/posix-threads.h: New file.
6734 * include/java-lang.h (Object): Added static member sync_mutex,
6735 member sync_info, method init_mutex.
6736 (struct JvSyncInfo): New struct.
6737 Include "java-threads.h".
6738 * prims.cc (soft_monitorenter): Wrote.
6739 (soft_monitorexit): Likewise.
6740 * java/lang/natObject.cc (init_mutex): New method.
6744 (sync_mutex): Define.
6745 Include "java-threads.h".
6747 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6749 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6750 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6752 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6754 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6755 Added extern "Java" in places to tell G++ Object is a "Java" type.
6756 Other minor renaming and fixes.
6757 * include/java-io.h (FileDescriptor): Add friend class declarations.
6758 G++ no longer allows non-Java types in method parameters and results
6759 of Java classes. Converted most offending methods to friends.
6760 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6761 * java/lang/natSystem.cc (setProperty): Make friend.
6762 * java/lang/natString.cc, include/java-lang.h (String): Rename
6763 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6764 * include/java-lang.h (JArray): Remove getData and eoprator[].
6765 Add elements friend function instead.
6766 * java/lang/natSystem.cc (arraycopy): Use elements function.
6767 * java/io/natFileDescriptor.cc (read, write): Likewise.
6768 * include/java-lang.h (Object): Remove unused make method.
6769 (System::setProperty(char*,char*)): Turn into friend function.
6770 (Class): Rename newObject by JvAllocObject.
6771 * prims.cc: Update to use JvAllocObject, and elements.
6773 * java/lang/natDouble.cc: Fix double -> jdouble.
6775 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6777 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6779 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6781 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6782 * include/java-lang.h (Runtime): finalize_on_exit and
6783 runFinalizersOnExit now static.
6784 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6786 (finalize_on_exit): Now static.
6788 * boehm.cc (mark_obj): Get class using getClass() method on
6790 (_dispatchTable): Removed.
6792 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6794 * java/io/natFileDescriptor.cc (open_read): Only call open if
6796 (open_write): Likewise.
6798 * Makefile.in: Rebuilt.
6799 * Makefile.am ($(nat_files)): Depend on config.h.
6801 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6803 * prims.cc (ObjectClass): Now a macro; updated for new class name
6805 (StringClass): Likewise.
6806 (ClassClass): Likewise.
6808 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6810 * java/io/natFileDescriptor.cc (available): Do nothing unless
6811 HAVE_SELECT defined.
6812 * java/util/natDate.cc (setTime): Conditional on
6814 (toString): Conditional on HAVE_TIME.
6815 * aclocal.m4, configure: Rebuilt.
6816 * acinclude.m4: New file.
6817 * configure.in: Don't actually call AM_EXEEXT. Call
6818 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6819 --with-target-subdir option. Check for select and open
6822 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6824 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6825 (call_finalizer): Likewise.
6826 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6827 * prims.cc (newObject): Pass actual method pointer to
6828 JvPrivRegisterFinalizer.
6829 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6830 (JvPrivRegisterFinalizer): Changed interface.
6832 * Makefile.in: Rebuilt.
6833 * Makefile.am (MOSTLYCLEANFILES): New macro.
6834 (CLEANFILES): Removed javao_files.
6836 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
6838 * nogc.cc: New file.
6839 * Makefile.in: Rebuilt.
6840 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6841 (EXTRA_libjava_a_SOURCES): New macro.
6842 (libjava_a_SOURCES): Removed boehm.cc.
6843 (libjava_a_DEPENDENCIES): Added GCOBJS.
6844 (libjava_a_LIBADD): Likewise.
6845 * configure: Rebuilt.
6846 * configure.in: Added code for --enable-gc=TYPE.
6848 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
6850 * boehm.cc (mark_array): Don't further dereference pointer from
6853 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6854 * Makefile.in: Rebuilt.
6855 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6856 one for boehm-gc build directory.
6858 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
6860 * include/java-lang.h (finalize_on_exit): New instance variable in
6861 java::lang::Runtime.
6862 (runFinalizersOnExit): New method.
6863 * java/lang/Runtime.java (finalize_on_exit): New instance
6865 (runAllFinalizers_): New private method.
6866 (runFinalizersOnExit): New method.
6867 * boehm.cc (JvPrivRunFinalizers): New function.
6868 (JvPrivRunAllFinalizers): Likewise.
6869 (JvPrivRunGC): Likewise.
6870 * java/lang/natRuntime.cc: Include "jvm.h".
6871 (gc): Call JvPrivRunGC.
6872 (runFinalization): Call JvPrivRunFinalizers.
6873 (runFinalizersOnExit): New method.
6874 (exit_): Call JvPrivRunAllFinalizers if required.
6875 * include/jvm.h: Declare JvPrivRunFinalizers,
6876 JvPrivRunAllFinalizers, JvPrivRunGC.
6878 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
6880 * boehm.cc (JvPrivRegisterFinalizer): New function.
6881 (call_finalizer): Likewise.
6882 * include/jvm.h: Declare JvPrivRegisterFinalizer.
6883 * prims.cc (finalize_name): New global.
6884 (newObject): Just call other newObject.
6885 (newObject): Register finalizer if it exists.
6887 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
6889 * prims.cc (gc_malloc): Removed.
6890 (makeUtf8Const): Use JvPrivAllocBytes.
6891 (lookupArray): Likewise.
6892 (newPrimArray): Likewise.
6893 (JvNewObjectArray): Use JvPrivAllocArray.
6894 (newObject): Use JvPrivAllocObj.
6895 (newObject): Likewise.
6896 Changed Method -> JvMethod everywhere.
6897 Changed Field -> JvField everywhere.
6898 * include/java-lang.h (Object): Changed type of `fields' to
6900 (jmethodID, jfieldID): New typedefs.
6901 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6903 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6905 (METHOD_NATIVECODE): Moved from java-lang.h.
6906 (class JvField): New class.
6907 (JvGetFirstInstanceField): New function.
6908 (JvFieldIsRef): Likewise.
6909 (JvGetObjectField): Likewise.
6910 (JvNumInstanceFields): Likewise.
6912 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6914 * boehm.cc: New file.
6915 * Makefile.in: Rebuilt.
6916 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6917 (INCLUDES): Added -I options to find boehm-gc files.
6919 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
6921 * configure: Rebuilt.
6922 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6924 * Makefile.in: Rebuilt.
6925 * Makefile.am (nat_files): New macro.
6926 (libjava_a_DEPENDENCIES): Use it.
6927 (libjava_a_LIBADD): Likewise.
6928 ($(nat_files)): New static pattern rule.
6929 (class_files): Run separate find to find .class files.
6930 (javao_files): Compute based on class_files.
6931 (BUILT_SOURCES): New macro.
6933 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6935 * Makefile.am (java_files): New macro.
6936 (class_files): Likewise.
6937 (javao_files): Likewise.
6938 (libjava_a_DEPENDENCIES): Include $(javao_files).
6939 (libjava_a_LIBADD): Likewise.
6940 (classes.stamp): Depend on $(java_files); only recompile changed
6943 (CLEANFILES): Don't run find; use macros. Don't mention
6945 (.class.o): New target.
6946 (compiled.stamp): Removed.
6948 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
6950 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6951 LineNumberReader}>java: Newly-implemented standard classes.
6953 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
6955 * Makefile.in: Rebuilt.
6956 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
6958 * Makefile.in: Rebuilt.
6959 * Makefile.am (hack): New macro.
6960 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
6962 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
6964 * include/config.h.in: New file.
6965 * include/config.h: Removed.
6966 * acconfig.h: New file.
6967 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
6968 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
6969 libjava_a_LIBADD): New macros.
6970 (INCLUDES): New macro.
6973 (SUFFIXES): Removed.
6975 (libjava.a): Removed.
6977 * configure: Rebuilt.
6978 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
6979 Look for headers and functions we require. Create
6982 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
6984 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
6985 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
6986 soft_lookupinterfacemethod): New functions.
6987 (PrimClass): Actually initialize the primitive classes.
6988 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
6990 * include/java-util.h: Removed java::util definition.
6991 * include/cni.h: Moved java::util here and added Properties.
6992 Added more function prototypes.
6993 * include/java-lang.h: Added mroe methods and friend declarations.
6994 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
6995 * include/jvm.h (strLengthUtf8): Add declaration.
6997 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
6999 * java/lang/{Byte,Short,Void}.java: New classes.
7000 * java/lang/Character.java (isJavaIdentifierStart,
7001 JavaIdentifierPart): New static methods.
7002 * java/lang/Number.java (byteValue, shortValue): New methods.
7004 * java/lang/String.java (intern, hashCode): Make native.
7005 * java/lang/natString.cc: New file. Handle the string pool.
7006 * Makefile.am: Build natString.o. Use CXXFLAGS.
7008 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7009 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7010 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7011 * java/lang/System.java (setProperty): New private method.
7012 (initProperties): Take argument, and make native.
7013 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7014 (currentTimeMillis): Make more robust.
7016 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7017 * java/io/UnsupportedEncodingException.java: New exception class.
7019 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7020 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7022 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7024 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7025 * prims.cc: Added bunch of stuff.
7026 * include/cni.h: Added various definitions.
7027 * include/java-lang.h: Added Method, various friends, some macros.
7029 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7030 * java/lang/System.java (arraycopy): Make native.
7032 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7034 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7035 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7036 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7037 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7039 * java/lang/Runtime.java: Declare methods as native instead of
7041 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7042 * java/lang/System.java: Comment out some stuff, for now.
7043 * java/lang/Thread.java: Re-write. Use native methods.
7044 * java/lang/NativeLang.java: Remove most of it.
7046 * java/util/natDate.cc: Native (C++) methods for Date.
7047 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7048 * java/util/Date.java: Complete re-write.
7050 * java/io/io-defs.h: New header file.
7051 * java/io/FileDescriptor.java: Add a bunch of private methods,
7052 mostly moved from NativeIO.java and natNativeIO.cc.
7053 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7054 * java/io/File.java: Use new code.
7055 * java/io/{FileInputStream.java.FileOutputStream.java,
7056 RandomAccessFile.java}: Use new private FileDescriptor methods.
7057 * java/io/NativeIO.java: Removed, no longer used.
7059 * java/io/StreamTokenizer.java (numericChars): Make char array.
7061 * include/*.h: Various header files used by the C++ native code.
7063 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7064 New autoconf+automake-based setup.
7065 * prims.cc: New file for Java "primitives".