1 1999-12-23 Anthony Green <green@cygnus.com>
4 * configure.in (LIBDATASTARTSPEC): Force data_start in with
7 1999-12-19 Anthony Green <green@cygnus.com>
9 * libgcjdata.c: New file.
10 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
12 * configure.in (LIBDATASTARTSPEC): Force data with a known name
14 * Makefile.in: Rebuilt.
15 * Makefile.am: Build libgcjdata.a.
17 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
19 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
22 1999-12-17 Tom Tromey <tromey@cygnus.com>
24 * java/lang/reflect/Method.java (toString): Call getType if
25 required. Partial fix for PR libgcj/111. From Per Bothner.
27 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
29 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
31 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
32 null String constructor parameter.
33 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
34 for exception messages.
35 BooleanClass: declare.
36 (setOption): Use BooleanClass instead of Class.forName() for
38 (bind): Cast 4th parameter of setsockopt to `char *' for
39 compatibility with older Solaris headers.
40 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
41 sprintf calls for exception messages.
42 BooleanClass, IntegerClass: declare.
43 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
46 1999-12-15 Tom Tromey <tromey@cygnus.com>
48 * java/lang/natSystem.cc (init_properties): Don't set user.name or
49 user.home if NO_GETUID defined. Only set user.dir if getcwd
52 * include/config.h.in: Rebuilt.
53 * acconfig.h (NO_GETUID): New define.
54 * configure.in: Rebuilt.
55 * configure.in: Define NO_GETUID in cross case. Check for getcwd
58 1999-12-08 Tom Tromey <tromey@cygnus.com>
60 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
61 where no recursive mutexes exist. Fixes PR libgcj/117.
63 1999-12-05 Anthony Green <green@cygnus.com>
65 * include/jvm.h: Declare many functions with
66 __attribute__((__malloc__)).
67 * gcj/javaprims.h: Ditto.
69 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
71 * THANKS: Giving credit where credit is due.
73 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
75 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
77 * java/lang/natString.cc (equalsIgnoreCase): return false if
78 anotherString is null.
79 * java/lang/Boolean.java (valueOf): return FALSE if argument is
82 1999-11-30 Tom Tromey <tromey@cygnus.com>
84 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
85 mutex to initialize. Initialize `count' if required.
88 1999-11-27 Per Bothner <per@bothner.com>
90 * exception.cc: Remove prototype declarations for malloc and free.
91 These clash with recent versions of glibc, which specifies `throws ()'
92 when __cplusplus is defined. Instead, #include <stdlib.h>.
94 1999-11-24 Tom Tromey <tromey@cygnus.com>
96 * prims.cc (_Jv_NewObjectArray): Use
97 _Jv_GetArrayElementFromElementType.
98 (_Jv_NewPrimArray): Likewise.
99 * java/lang/natObject.cc (clone): Use
100 _Jv_GetArrayElementFromElementType instead of sizeof.
101 * java/lang/natSystem.cc (arraycopy): Use
102 _Jv_GetArrayElementFromElementType.
103 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
106 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
108 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
109 Exception messages. PR java.net/57.
110 (bind): set SO_REUSEADDR before bind.
111 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
112 overruns. PR java.net/57.
114 1999-11-19 Tom Tromey <tromey@cygnus.com>
116 * Makefile.am (DIVIDESPEC): Removed.
117 (EXCEPTIONSPEC): Removed.
119 1999-11-19 Andrew Haley <aph@cygnus.com>
121 * Makefile.am (JCFLAGS): Add -L$(here)
123 * Makefile.in: Rebuild.
125 1999-11-18 Tom Tromey <tromey@cygnus.com>
127 * java/lang/natDouble.cc: Include <config.h>.
129 * include/config.h.in: Rebuilt.
130 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
131 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
133 * configure: Rebuilt.
134 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
135 requested by configure.host. Don't put `-D' option into
136 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
138 * configure: Rebuilt.
139 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
142 1999-11-18 Andrew Haley <aph@cygnus.com>
144 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
145 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
147 * Makefile.in: Rebuild
148 * acconfig.h: remove SJLJ_EXCEPTIONS
149 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
150 Do not AC_DEFINE SJLJ_EXCEPTIONS.
151 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
152 * gcj/Makefile.in, include/Makefile.in: rebuild.
153 * include/config.h.in: remove SJLJ_EXCEPTIONS.
155 1999-11-18 Andrew Haley <aph@cygnus.com>
157 * gij.cc (main): Rename label to prevent conflict.
159 * exception.cc (_Jv_type_matcher): Don't check the table if we're
160 using setjmp/longjmp exceptions: there isn't one.
162 1999-11-17 Andrew Haley <aph@cygnus.com>
164 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
165 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
166 (__sjthrow): Add declaration.
167 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
171 * Makefile.in: Rebuild
172 * acconfig.h: Add SJLJ_EXCEPTIONS
173 * configure.in: Add SJLJ_EXCEPTIONS
174 * configure: Rebuild.
175 * gcj/Makefile.in: Rebuild.
176 * gcj/cni.h: Add support for sjlj-exceptions.
177 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
178 * include/Makefile.in: Rebuild.
179 * include/default-signal.h: Add support for sjlj-exceptions.
181 1999-11-18 Tom Tromey <tromey@cygnus.com>
183 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
185 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
187 (method_cache): Made larger.
189 1999-11-11 Tom Tromey <tromey@cygnus.com>
191 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
192 initializing mutex. Initialize `count' when required.
194 1999-11-07 Anthony Green <green@trip.cygnus.com>
196 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
199 1999-11-05 Tom Tromey <tromey@cygnus.com>
201 * java/lang/natThread.cc (destroy): Removed incorrect comment.
203 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
205 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
206 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
209 1999-11-05 Tom Tromey <tromey@cygnus.com>
211 * java/lang/natThread.cc (stop): Removed argument name.
213 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
214 `private'; now has default access.
215 * Makefile.in: Rebuilt.
216 * Makefile.am (java/lang/ThreadGroup.h): Removed.
218 1999-11-04 Tom Tromey <tromey@cygnus.com>
220 * java/lang/natClass.cc (method_cache_count): Removed.
221 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
222 (_Jv_AddMethodToCache): Don't loop.
224 * configure.in: Removed `qt' threads case.
225 * include/quick-threads.h: Removed.
226 * quick-threads.cc: Removed.
228 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
229 (_Jv_ThreadDestroy): Likewise.
230 * include/no-threads.h (_Jv_ThreadCancel): Removed.
231 (_Jv_ThreadDestroy): Likewise.
232 * include/posix-threads.h (struct _Jv_Thread_t): Removed
234 (_Jv_ThreadCancel): Removed decl.
235 (_Jv_ThreadDestroy): Removed.
236 * posix-threads.cc (_Jv_ThreadCancel): Removed.
237 (throw_cleanup): Removed.
238 (really_start): Don't push or pop cleanup.
239 (_Jv_ThreadInitData): Don't initialize `exception' field.
240 * java/lang/Thread.java (stop): Officially unimplemented.
241 * java/lang/natThread.cc (stop): Officially unimplemented.
243 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
245 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
248 1999-11-02 Tom Tromey <tromey@cygnus.com>
250 * boehm.cc: Don't include boehm-config.h.
252 1999-11-01 Tom Tromey <tromey@cygnus.com>
254 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
255 (sum_blocks): Removed.
256 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
258 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
260 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
262 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
263 * java/io/InputStreamReader (InputStreamReader): ditto.
265 1999-10-22 Tom Tromey <tromey@cygnus.com>
267 * Makefile.in: Rebuilt.
268 * Makefile.am (java/lang/ClassLoader.h): New target.
269 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
272 * include/java-props.h (_Jv_Compiler_Properties): Changed
274 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
275 * include/jvm.h (_Jv_GCSetInitialHeapSize,
276 _Jv_GCSetMaximumHeapSize): Declare.
277 (JvRunMain, _Jv_RunMain): Declare.
278 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
279 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
280 (_Jv_GCSetMaximumHeapSize): Likewise.
281 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
282 (_Jv_GCSetMaximumHeapSize): Likewise.
283 * prims.cc (parse_heap_size): New function.
284 (_Jv_SetInitialHeapSize): Likewise.
285 (_Jv_SetMaximumHeapSize): Likewise.
286 (_Jv_Compiler_Properties): New global.
287 * gij.cc (help): New function.
289 (heap_size): Likewise.
290 (heap_max_size): Likewise.
291 (main): Parse arguments. Set _Jv_Compiler_Properties.
292 Include <config.h>, <java-props.h>.
293 (_Jv_Compiler_Properties): Removed.
295 1999-10-18 Tom Tromey <tromey@cygnus.com>
297 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
299 (redirect): New static field.
300 * java/lang/ClassLoader.java (getSystemClassLoader): Now
302 (getVMClassLoader0): Removed.
303 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
305 (getSystemClassLoader): Implemented.
307 1999-10-16 Anthony Green <green@cygnus.com>
309 * java/lang/ClassLoader.java (getSystemResource): Use
310 getSystemClassLoader instead of ClassLoader.system.
311 (getSystemResourceAsStream): Ditto.
313 * java/lang/natClassLoader.cc (redirect): Make static and
314 remove #ifdef INTERPRETER so it is always defined.
315 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
316 returns a VMClassLoader.
318 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
319 PropertyResourceBundle if a properties file is found before a
320 ResourceBundle class.
322 1999-10-15 Tom Tromey <tromey@cygnus.com>
324 * gij.cc (main): Formatting fixes.
325 (_Jv_Compiler_Properties): Define.
326 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
328 (init_properties): Set properites from _Jv_Compiler_Properties.
329 * include/java-props.h (_Jv_Compiler_Properties,
330 _Jv_Environment_Properties): Declare.
332 * include/java-props.h: Added copyright.
334 1999-10-13 Anthony Green <green@cygnus.com>
336 * libtool-version: Catch up by incrementing current.
338 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
339 * configure, include/config.h.in: Rebuilt.
340 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
341 * configure.in: Added --disable-getenv-properties and new define
342 `DISABLE_GETENV_PROPERTIES'.
344 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
345 (next_property_key): New function.
346 (next_property_value): New function.
347 (process_gcj_properties): New function.
348 (JvRunMain): Call process_gcj_properties.
351 * java/lang/natSystem.cc (init_properties): Set properties defined
354 * include/java-props.h: New file.
356 * java/lang/natSystem.cc (init_properties): Add new properties to
357 conform with Java Product Versioning Specification.
359 1999-10-12 Tom Tromey <tromey@cygnus.com>
361 * configure: Rebuilt.
362 * configure.in: Fixed test for --disable-java-net.
364 1999-10-06 Tom Tromey <tromey@cygnus.com>
366 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
367 when building Canadian cross.
368 (NATIVE): Don't define when cross-compiling.
370 1999-10-04 Tom Tromey <tromey@cygnus.com>
372 * java/net/natPlainSocketImpl.cc: Don't include headers if
373 java.net is disabled.
375 * Makefile.in: Rebuilt.
376 * Makefile.am (ZINCS): Removed. This is defined in configure.in
377 when needed, and must be left empty when not needed.
379 1999-10-01 Anthony Green <green@cygnus.com>
381 * THANKS: Refreshed from htdocs version.
383 1999-10-01 Steve Chamberlain <sac@pobox.com>
385 * Makefile.in: Rebuilt.
386 * Makefile.am (ZINCS): Define
388 * configure: Rebuilt.
389 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
391 * java/lang/ieeefp.h: Add definitions for picoJava.
393 1999-10-01 Tom Tromey <tromey@cygnus.com>
395 * configure: Rebuilt.
396 * configure.in: Set classpath when invoking gcj. Use changequote
397 around sed invocation.
399 * java/net/natPlainSocketImpl.cc: Stub native functions if
400 DISABLE_JAVA_NET is defined.
401 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
402 typo in exception string.
403 (getTimeToLive): Likewise.
404 Stub native functions if DISABLE_JAVA_NET is defined.
405 * java/net/natInetAddress.cc: Stub native functions if
406 DISABLE_JAVA_NET is defined.
407 * configure.host: Disable java.net for mips-tx39.
408 * configure, include/config.h.in: Rebuilt.
409 * acconfig.h (DISABLE_JAVA_NET): Undefine.
410 * configure.in: Added --disable-java-net and new define
413 1999-09-30 Tom Tromey <tromey@cygnus.com>
415 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
417 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
421 1999-09-28 Tom Tromey <tromey@cygnus.com>
423 * configure: Rebuilt.
424 * configure.in (PROCESS): In POSIX case, only set if not already
426 * configure.host (PROCESS): Set in mips-tx39 case.
428 * aclocal.m4, configure: Rebuilt.
429 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
430 appropriate AC_PROG_ symbol.
432 1999-09-24 Tom Tromey <tromey@cygnus.com>
434 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
436 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
438 Fix for PR java.util/47:
439 * configure, include/config.h: Rebuilt.
440 * configure.in: Don't look for ctime or ctime_r.
441 * Makefile.in: Rebuilt.
442 * Makefile.am (nat_source_files): Don't mention natDate.cc.
443 * java/util/natDate.cc: Removed.
444 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
446 (getAvailableIDs): Rewrote.
447 (getTimeZone): Rewrote.
448 * java/util/Date.java (toGMTString): New method.
449 (toLocaleString): New method.
452 1999-09-23 Tom Tromey <tromey@cygnus.com>
454 * configure: Rebuilt.
455 * configure.in: Print message when checking to see if gcj can
456 handle -fuse-divide-subroutine.
458 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
460 * java/lang/FirstThread.java (run0): Renamed to `run'.
463 * prims.cc (main_init): New function.
464 (JvRunMain): Call it.
465 (_Jv_RunMain): Likewise.
467 (main_init): Ignore SIGPIPE. Fixes PR 51.
469 1999-09-22 Tom Tromey <tromey@cygnus.com>
471 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
473 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
475 * java/text/MessageFormat.java (MessageFormat(String)): Set the
477 * java/text/NumberFormat.java: Check that object is a Number. If
478 not, throw IllegialArgumentException.
480 1999-09-21 Tom Tromey <tromey@cygnus.com>
482 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
483 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
485 * include/posix-threads.h (_Jv_MutexDestroy): Use
487 (_Jv_MutexLock): Likewise.
488 (_Jv_MutexUnlock): Likewise.
490 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
491 previous patch; it too was incorrect.
492 * java/io/PrintStream.java (PrintStream): Likewise.
494 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
495 refer to `this' before calling superclass constructor.
496 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
497 before calling superclass constructor.
499 1999-09-20 Tom Tromey <tromey@cygnus.com>
501 * configure: Rebuilt.
502 * configure.in: Send output of `-fuse-divide-subroutine' test
503 compilation to /dev/null.
505 1999-09-14 Tom Tromey <tromey@cygnus.com>
507 * include/java-insns.h: Turned constants into an enum. Added
508 multiple-inclusion protection.
510 1999-09-10 Tom Tromey <tromey@cygnus.com>
512 * configure: Rebuilt.
513 * configure.in: Build include/Makefile.
514 * Makefile.in: Rebuilt.
515 * Makefile.am (SUBDIRS): Added gcj and include.
516 (install-data-local): New target.
517 (extra_headers): New macro.
518 * include/Makefile.in: New file.
519 * include/Makefile.am: New file.
521 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
522 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
524 * boehm.cc: Don't include java-threads.h or gcj/field.h.
525 * resolve.cc: Include config.h.
526 * defineclass.cc: Include config.h.
527 * include/java-interp.h: Don't include config.h.
528 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
531 * gcj/javaprims.h: Regenerated namespace decls.
532 * classes.pl (scan): Don't put `;' after closing brace.
534 * Makefile.in: Rebuilt.
535 * Makefile.am (INCLUDES): Added -I for top_srcdir.
536 * configure.in: Create gcj/Makefile.
537 * gcj/Makefile.in: New file.
538 * gcj/Makefile.am: New file.
539 * java/lang/Object.h: Don't include any other headers.
540 * gcj/array.h: Renamed from include/java-array.h.
541 * gcj/field.h: Renamed from include/java-field.h.
542 * gcj/method.h: Renamed from include/java-method.h.
543 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
544 Updated all files to reflect new include structure.
546 1999-09-09 Tom Tromey <tromey@cygnus.com>
548 * configure: Rebuilt.
549 * configure.in: Fixed typo; variable is THREADSPEC and not
552 1999-09-08 Tom Tromey <tromey@cygnus.com>
554 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
555 previous change and implemented a correct test in the __m_count
558 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
561 1999-09-07 Tom Tromey <tromey@cygnus.com>
563 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
564 code and don't set errno.
566 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
567 not `r'. Changed `done_sleeping' to a `bool'.
569 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
571 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
572 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
573 by another thread, rather than by the GC.
574 (_Jv_CondWait): Prevent premature thread wakeup by GC.
575 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
576 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
579 1999-09-03 Tom Tromey <tromey@cygnus.com>
581 * configure: Rebuilt.
582 * configure.in: Check for fstat function.
583 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
586 1999-09-02 Tom Tromey <tromey@cygnus.com>
588 * include/java-array.h (jobjectArrayjchar): Removed unused
591 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
592 _Jv_PrepareCompiledClass while holding class mutex.
594 1999-09-01 Tom Tromey <tromey@cygnus.com>
596 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
597 (_Jv_PthreadGetMutex): Use it.
598 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
599 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
600 (_Jv_MutexLock): Likewise.
601 (_Jv_MutexUnlock): Likewise.
602 * include/config.h.in: Rebuilt.
603 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
604 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
605 * configure: Rebuilt.
606 * libgcj.spec.in: Don't mention INTERPSPEC.
607 * configure.in (INTERPSPEC): Removed.
608 Only run pthreads-related checks when using POSIX threads. Check
609 for m_count and __m_count in mutex structure.
611 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
613 * java/lang/natClass.cc: Fixed notification of threads
614 when class initialization is complete.
616 1999-09-01 Tom Tromey <tromey@cygnus.com>
618 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
619 * resolve.cc: Removed constants defined by
620 java.lang.reflect.Modifier.
621 Include <java/lang/reflect/Modifier.h>.
622 (_Jv_ResolvePoolEntry): Use values from Modifier.
623 (_Jv_DetermineVTableIndex): Likewise.
624 (_Jv_PrepareClass): Likewise.
626 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
627 java.lang.reflect.Modifier.
628 Include <java/lang/reflect/Modifier.h>.
629 (checkExtends): Use values from Modifier.
630 (checkImplements): Likewise.
631 (handleField): Likewise.
632 (handleConstantValueAttribute): Likewise.
633 (handleFieldsEnd): Likewise.
634 (handleMethod ): Likewise.
635 (handleMethodsEnd): Likewise.
636 (handleClassBegin): Likewise.
637 * interpret.cc: Removed constants defined by
638 java.lang.reflect.Modifier.
639 (continue1): Use values from Modifier.
640 * java/lang/natClassLoader.cc: Removed constants defined by
641 java.lang.reflect.Modifier.
643 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
644 JV_STATE_NOTHING, not `0'.
645 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
647 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
648 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
650 (_Jv_PthreadGetMutex): New function.
651 (_Jv_PthreadCheckMonitor): Use it.
652 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
653 (_Jv_MutexLock): Update `count'.
654 (_Jv_MutexUnlock): Likewise.
655 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
658 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
660 * Makefile.am (.java.lo): Add rule.
662 * Makefile.in: Rebuilt.
664 1999-09-01 Tom Tromey <tromey@cygnus.com>
666 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
667 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
669 (_Jv_CondNotify): Use it.
670 (_Jv_CondNotifyAll): Likewise.
672 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
674 1999-08-31 Tom Tromey <tromey@cygnus.com>
676 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
679 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
681 * posix-threads.cc: Include <errno.h>.
683 1999-08-23 Tom Tromey <tromey@cygnus.com>
685 * boehm.cc: Undefine TRUE and FALSE.
687 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
689 1999-08-21 Tom Tromey <tromey@cygnus.com>
691 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
694 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
696 * configure.in: Check for in_addr_t in netinet/in.h too. Check
698 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
699 (HAVE_STRUCT_IP_MREQ): Added.
700 * configure, include/config.h.in: Rebuilt.
701 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
703 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
704 Disable if ip_mreq is not available.
706 * configure.in: Check types ssize_t and in_addr_t.
707 * acconfig.h: Undefine them.
708 * configure, include/config.h.in: Rebuilt.
710 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
711 function that detects the signature of getpwuid_r.
712 (init_properties): Use it.
713 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
716 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
718 * interpret.cc (continue1): Implement explicit dispatch table.
719 insn_target: Explicit interpreter switch table.
720 SAVE_PC: New macro, moves pc saving code into instructions that
722 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
723 PC_REGISTER_ASM: New macro.
724 INLINE_SWITCH: New macro. Constrols dispatching strategy.
725 opcode: Remove local variable.
726 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
727 (POKEI): Use _Jv_word.
728 (iinc): Use _Jv_word.
729 (dupx): Change reference argument (sp) to pointer.
732 * interpret.cc: Remove instruction timing instrumentation.
734 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
735 comment. Don't use _Jv_ClassNameSamePackage.
737 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
738 URLPathEntry, CacheEntry}: Removed.
740 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
742 (.java.lo): Rule removed.
744 * Makefile.in: Rebuilt.
746 1999-08-19 Tom Tromey <tromey@cygnus.com>
748 * java/lang/natThread.cc (class locker): New class.
749 (join): Use a locker around _Jv_CondWait.
752 1999-08-18 Tom Tromey <tromey@cygnus.com>
754 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
755 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
757 1999-08-18 Tom Tromey <tromey@cygnus.com>
759 * include/javaprims.h ("Java"): Regenerated namespace decls.
761 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
763 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
764 from _Jv_InternClassStrings.
766 * prims.cc (_Jv_RunMain): New function.
767 (JvRunMain): Remove gij-support.
769 * gij.cc (main): Use _Jv_RunMain.
771 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
773 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
774 argument in temp variable.
775 (continue1): For all op_x2y insns, use temp variable for
776 intermediate value. Also remove some comments.
778 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
779 (forName): Don't call _Jv_InitClass.
781 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
783 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
785 * java/util/jar/JarInputStream.java: New file.
787 * java/util/jar/JarEntry.java: New file.
789 * java/util/jar/JarFile.java: New file.
791 * java/net/URLClassLoader.java: New file.
793 * java/net/JarURLConnection.java: New file.
795 * gnu/gcj/protocol/jar/Handler.java: New file.
797 * gnu/gcj/protocol/jar/Connection.java: New file.
799 * java/security/SecureClassLoader.java: New file.
801 * java/lang/ClassLoader.java (parent): New variable.
802 (ClassLoader (ClassLoader)): new constructor.
803 (findClass): New method.
804 (loadClass): Add default 1.2 implementation.
805 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
806 (readfully): Removed.
808 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
809 (findSystemClass): New method.
810 (VMClassLoader): Constructor rewritten.
812 All other methods removed.
814 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
815 to gnu::gcj::runtime::VMClassLoader.
816 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
818 (VMClassLoader::findSystemClass): renamed from findBootClass.
820 * Makefile.am: Add new files.
821 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
823 * Makefile.in: Rebuilt.
825 1999-08-17 Tom Tromey <tromey@cygnus.com>
827 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
829 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
832 1999-08-16 Tom Tromey <tromey@cygnus.com>
834 * configure: Rebuilt.
835 * configure.in: Set DIVIDESPEC to empty string if compiler does
836 not support -fuse-divide-subroutine.
838 1999-08-14 Per Bothner <per@bothner.com>
840 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
841 * java/lang/natClass.cc (initializeClass): Likewise.
842 * java/lang/ClassLoader.java (resolveClass0): New static method.
843 (resolveClass): Call resolveClass0.
844 (findSystemClass): No longer static.
846 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
848 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
850 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
852 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
855 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
858 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
861 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
864 * configure: Rebuilt.
865 * configure.in: Properly align --help output, fix capitalization
867 * acinclude.m4: Likewise.
869 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
871 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
873 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
874 (_Jv_callInterpretedMethod): Unused. Remove.
875 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
877 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
878 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
879 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
880 * interpret.cc: use _Jv_word.
881 * defineclass.cc: use_Jv_word.
882 * resolve.cc: Use _Jv_word.
883 (_Jv_ResolvePoolEntry): Return _Jv_word.
884 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
885 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
887 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
890 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
892 * configure: Rebuilt.
893 * configure.in (sched_yield): Try librt first, then libposix4.
894 Add -lrt, -lposix4 to THREADSPEC.
896 1999-08-08 Anthony Green <green@cygnus.com>
898 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
900 1999-08-08 Anthony Green <green@cygnus.com>
902 * defineclass.cc (_Jv_VerifyClassName): Verify array names
905 1999-08-08 Anthony Green <green@cygnus.com>
909 * include/config.h.in: Rebuilt.
910 * acconfig.h: Add INTERPRETER.
912 * Makefile.in: Rebuilt.
913 * Makefile.am (libffi_files): Identify the libffi object files for
915 (LIBFFIINCS): Define.
917 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
918 Dummy definition for configurations without an interpreter.
920 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
921 java::lang::Boolean constructor.
923 * include/java-interp.h: Always include java-cpool.h.
925 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
926 when INTERPRETER not defined.
928 * java/lang/Class.h (finalize): Define.
930 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
931 IOException from File.getCanonicalPath.
932 (getStream): Likewise.
935 * THANKS: More thanks.
937 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
939 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
941 (_Jv_PrepareClass): Allow non-abstract classes to
942 have abstract subclasses.
943 (_Jv_ResolvePoolEntry): Revert subclass check for protected
945 * interpret.cc (continue1/perform_invoke): Don't sign extend
947 (continue1/lshl,lshr): Push long, not int.
948 (continue1/ulshr): Use UINT64, not long long.
949 * defineclass.cc (handleFieldsEnd): Handle case when all fields
951 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
952 * java/lang/FirstThread.java (run): Add top-level exception
954 (run0): Renamed from run.
956 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
958 * configure.in (--with-interpreter): Added.
959 * include/config.h.in (INTERPRETER): Added.
961 * java/lang/ClassLoader.java: File replaced.
962 * java/lang/VMClassLoader.java: New file.
963 * java/lang/natClassLoader.cc: New file.
964 * gnu/gcj/runtime/MethodInvocation.java: New file.
965 * gnu/gcj/util/path/SearchPath.java: New file.
966 * gnu/gcj/util/path/PathEntry.java: New file.
967 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
968 * gnu/gcj/util/path/ZipPathEntry.java: New file.
969 * gnu/gcj/util/path/URLPathEntry.java: New file.
970 * gnu/gcj/util/path/CacheEntry.java: New file.
971 * include/java-interp.h: New file.
972 * include/java-cpool.h: New file.
973 * include/java-insns.h: New file.
974 * defineclass.cc: New file.
975 * interpret.cc: New file.
976 * resolve.cc: New file.
978 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
979 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
980 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
982 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
983 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
985 (initializeClass): Use new JV_ prefixed names. Also, call
986 ClassLoader::resolveClass instead of _Jv_ResolveClass.
988 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
989 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
990 JV_STATE_LINKED): New.
991 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
992 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
993 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
994 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
995 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
996 _Jv_InterpMethodInvocation): New friends for interpreter.
998 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
999 include/java-cpool.h and renamed with JV_ prefix.
1001 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1003 (_Jv_UnregisterClass): New decl.
1005 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1006 class loader argument.
1007 (_Jv_FindClass): Use class loader.
1009 * prims.cc (_Jv_makeUtf8Const): New function.
1010 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1011 (_Jv_NewPrimArray): Ditto.
1012 (_Jv_FindClassFromSignature): Ditto.
1013 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1014 * java/lang/reflect/natMethod.cc (getType): Ditto.
1016 * include/java-field.h (_Jv_Field::isRef): Make robust for
1017 non-resolved contexts.
1019 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1020 Also, don't mark class->next field.
1022 * java/lang/VirtualMachineError.java: Added FIXME note.
1024 * configure.in (INTERPSPEC): New spec.
1025 * libgcj.spec.in: Added INTERPSPEC.
1026 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1027 gnu/gcj/runtime/MethodInvocation.
1028 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1029 (ordinary_java_source_files): Added above mentioned java classes.
1031 * configure: Rebuilt.
1032 * Makefile.in: Rebuilt.
1034 1999-08-06 Tom Tromey <tromey@cygnus.com>
1036 * configure: Rebuilt.
1037 * configure.in: Look for sched_yield in -lrt.
1039 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1041 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1042 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1043 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1045 (toString): Print correctly when `country' is empty.
1047 1999-08-04 Per Bothner <per@bothner.com>
1049 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1051 1999-08-02 Tom Tromey <tromey@cygnus.com>
1053 * aclocal.m4, configure: Rebuilt for new libtool.
1055 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1057 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1058 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1059 * java/net/ServerSocket.java: Define ANY_IF.
1060 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1061 all network interfaces.
1062 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1063 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1065 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1067 * java/io/natFile.cc (performMkdir): Remove FIXME.
1068 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1070 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1072 * configure.in: Check for bstring.h.
1073 * configure, include/config.h.in: Rebuilt.
1074 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1075 * java/net/natPlainSocketImpl.cc: Likewise.
1077 1999-07-31 Tom Tromey <tromey@cygnus.com>
1082 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1084 * configure.in: Check for struct hostent_data and need for
1085 -D_REENTRANT for gethostbyname_r declaration.
1086 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1087 (lookup): Use hostent_data for fixed_buffer.
1088 * configure, include/config.h.in: Rebuilt.
1090 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1092 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1093 available. Don't cast memmove args to (void*).
1094 * configure.in: Do not abort if memmove is not available.
1096 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1098 * java/lang/natString.cc (substring): optimize where substring is
1100 * java/io/File.java (getName): don't return separator with file name.
1101 * java/io/natFile.cc (attr): fix overflow.
1103 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1105 * mauve-libgcj: Disable Object Serialization tests.
1107 1999-07-20 Warren Levy <warrenl@cygnus.com>
1109 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1110 Default to using PlainDatagramSocketImpl.
1111 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1113 1999-07-19 Tom Tromey <tromey@cygnus.com>
1115 * include/stamp-h.in: New file.
1117 1999-07-12 Tom Tromey <tromey@cygnus.com>
1119 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1122 1999-07-07 Andrew Haley <aph@cygnus.com>
1124 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1125 bytes to make it point after the instruction where the trap
1127 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1129 1999-07-07 Tom Tromey <tromey@cygnus.com>
1131 * mauve-libgcj: Explicitly enable formerly disabled java.text
1134 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1137 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1139 * java/net/URL.java (equals): Compare strings using String.equals.
1140 * java/net/URL.java (sameFile): Ditto.
1142 1999-07-02 Warren Levy <warrenl@cygnus.com>
1144 * configure: Rebuilt.
1145 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1146 * include/config.h.in: Rebuilt.
1147 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1148 (mcastGrp): Updated FIXME comments.
1149 (setOption): Fixed typo.
1150 (getOption):Implemented IP_MULTICAST_IF.
1152 1999-07-02 Warren Levy <warrenl@cygnus.com>
1154 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1155 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1156 (getTimeToLive): Implemented.
1157 (setOption): Implemented IP_MULTICAST_IF.
1159 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1161 * java/lang/String.java (toString): Check for this == null and throw
1162 NullPointerException.
1164 1999-07-01 Warren Levy <warrenl@cygnus.com>
1166 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1167 to count and revised comments to match.
1168 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1169 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1170 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1171 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1172 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1173 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1175 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1177 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1178 properly as count rather than outlength.
1179 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1180 output on overflow rather than buffer fill.
1181 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1182 if markPos is 0 and there is still room in the buffer.
1184 1999-07-01 Andrew Haley <aph@cygnus.com>
1186 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1187 This is a workaround for a bug in glibc's pthreads package which
1188 doesn't deliver any sigcontext information to a signal handler.
1190 1999-06-24 Tom Tromey <tromey@cygnus.com>
1192 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1193 * java/lang/fdlibm.h (HUGE): Conditionally define.
1195 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1197 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1198 * java/lang/e_log.c: Don't use __uint32_t.
1200 1999-05-27 Eric Christopher <echristo@cygnus.com>
1202 * configure: Rebuilt
1203 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1204 * acconfig.h: Rebuilt
1205 * include/config.h.in: Rebuilt
1207 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1208 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1209 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1210 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1211 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1212 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1213 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1214 and namespace collision with __uint32_t
1216 1999-06-23 Tom Tromey <tromey@cygnus.com>
1218 * java/util/zip/InflaterInputStream.java (read): Throw
1219 ZipException if inflater throws a DataFormatException.
1221 1999-06-23 Warren Levy <warrenl@cygnus.com>
1223 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1224 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1225 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1226 is not final per JDK.
1227 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1229 * java/util/zip/DataFormatException.java: Class extends Exception.
1230 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1231 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1232 * java/util/zip/ZipInputStream.java: ditto.
1233 (closeEntry): Changed method name to match JDK spec.
1235 1999-06-21 Tom Tromey <tromey@cygnus.com>
1237 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1240 * Makefile.in: Rebuilt.
1241 * Makefile.am (toolexeclibdir): Define as libdir when
1243 * configure: Rebuilt.
1244 * configure.in (USE_LIBDIR): New conditional.
1246 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1248 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1249 hostname in returned InetAddress objects.
1250 (getLocalHostname): Fix typo.
1251 * java/net/InetAddress.java (getByName): Set hostname on return
1253 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1256 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1258 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1259 interfaces if host==NULL.
1260 (accept): Throw message with InterruptedIOException.
1261 (getOption): Cache localAddress.
1262 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1263 'address' for DatagramSocket.
1264 (setTimeToLive): Fix compiler warnings.
1265 (getOption): Cache localAddress.
1266 * java/net/Socket.java (getLocalAddress): Don't need local
1267 InetAddress object. Add FIXME comment about calling checkConnect().
1268 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1269 connection queue to 50 as per JDK 1.2 docs.
1270 (ServerSocket(int,int)): Listen on all network interfaces by
1271 default, per JDK 1.2 docs.
1272 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1273 Add localAddress caching.
1275 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1277 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1279 (write(byte[],int,int)): ditto.
1281 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1283 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1285 1999-06-11 Warren Levy <warrenl@cygnus.com>
1287 * mauve-libgcj: Activated java.net Mauve tests.
1289 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1291 * java/net/natInetAddress.cc (aton): Fix typos.
1292 (lookup): Use a bigger buffer size for gethostbyname_r on all
1293 versions of glibc. Updated FIXME comment explaining this.
1294 Modified while loops to not set herr = ERANGE to work around glibc
1295 problems. Use user specified hostname in InetAddress result when
1296 available (consistent with JDK).
1298 1999-06-10 Warren Levy <warrenl@cygnus.com>
1300 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1301 Throw FileNotFoundException instead of IOException.
1303 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1305 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1306 in static field name.
1307 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1308 throughout rather than ParseException.
1310 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1312 * java/lang/Runtime.java (exec): Convert prog name and arguments
1314 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1315 environment array conversion. Preserve current environment if envp
1316 not passed. Preserve PATH unless explicitly specified.
1317 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1318 followed by EOF. Set a flag when a line is terminated by '\r' and
1319 ignore following '\n' if set.
1321 1999-06-02 Warren Levy <warrenl@cygnus.com>
1323 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1324 Ignore context if spec is an absolute URL. Fix braindead
1326 (hashCode): Use JDK 1.2 style algorithm.
1327 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1328 context URL properly.
1330 1999-05-30 Anthony Green <green@cygnus.com>
1332 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1333 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1335 1999-05-28 Warren Levy <warrenl@cygnus.com>
1337 * java/net/DatagramSocket.java (laddr): Removed.
1338 (DatagramSocket): Removed attempts to get or set laddr if null.
1339 (getLocalAddress): Reimplemented per spec.
1340 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1342 (joinGroup): Throw NullPointerException if any argument is null.
1343 (leaveGroup): ditto.
1344 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1345 * java/net/PlainSocketImpl.java (timeout): Added.
1346 (getInputStream): Added FIXME comment on how to support timeouts
1348 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1349 * java/net/Socket.java: Added FIXME comments to identify
1350 conflicting specs between the JCL and JDK 1.2 documents.
1351 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1352 if host is null. Get localport value resolved by kernel if bind
1354 (receive): Implemented support for timeouts in UDP.
1355 (setOption): Implemented based on natPlainSocketImpl version.
1357 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1358 resolved by kernel if bind lport is 0.
1359 (connect): Get localport value resolved by kernel if bind wasn't
1360 done to set localport.
1361 (accept): Implemented support for timeouts for ServerSocket.
1362 (setOption): Save value for SO_TIMEOUT.
1363 (getOption): Return timeout for SO_TIMEOUT.
1365 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1367 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1368 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1369 (setOption): Made abstract.
1370 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1371 to avoid cpp conflicts in native code.
1372 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1373 cpp conflicts in native code.
1374 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1375 * java/net/Socket.java (getLocalAddress): Implemented.
1376 (setTcpNoDelay): Implemented.
1377 (getTcpNoDelay): Implemented.
1378 (setSoLinger): Implemented.
1379 (getSoLinger): Implemented.
1380 (getSoTimeout): Verify class type.
1381 (setSendBufferSize): Implemented.
1382 (getSendBufferSize): Implemented.
1383 (setReceiveBufferSize): Implemented.
1384 (getReceiveBufferSize): Implemented.
1385 (toString): Prepended "Socket".
1386 * java/net/SocketImpl.java (toString): Rewritten.
1387 (getOption): Made abstract.
1388 (setOption): Made abstract.
1389 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1390 (setOption): Implemented.
1391 (getOption): Implemented.
1393 1999-05-26 Warren Levy <warrenl@cygnus.com>
1395 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1396 address when null. Set SO_REUSEADDR for multicasts.
1397 (getSoTimeout): Implemented.
1398 (setSoTimeout): Implemented.
1399 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1400 * java/net/MulticastSocket.java (getInterface): Implemented.
1401 (setInterface): Implemented.
1402 (setTimeToLive): Check for invalid ttl.
1403 (joinGroup): Verify multicast address and security.
1404 (leaveGroup): Verify multicast address and security.
1405 (send): Implemented.
1406 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1412 (getTTL): Implemented as non-native.
1416 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1417 (getSoTimeout): Implemented.
1418 (setSocketFactory): Made synchronized.
1419 * java/net/Socket.java (setSoTimeout): Implemented.
1420 (getSoTimeout): Implemented.
1421 (close): Made synchronized.
1422 (setSocketImplFactory): Made synchronized.
1423 * java/net/SocketImpl.java: Implement SocketOptions interface.
1424 * java/net/natInetAddress.cc: Corrected module name at top of file.
1425 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1426 (bind): Added FIXME.
1427 (peek): Implemented.
1433 (setOption): Implemented for SO_REUSEADDR.
1434 (getOption): Implemented for SO_REUSEADDR.
1436 1999-05-24 Tom Tromey <tromey@cygnus.com>
1438 * java/util/ResourceBundle.java (getBundle): Throw
1439 NullPointerException if baseName is null.
1441 1999-05-22 Tom Tromey <tromey@cygnus.com>
1443 * java/util/zip/ZipInputStream.java (fill): New method.
1444 (compressed_len): New instance variable.
1445 (getNextStream): Set it.
1446 (read): Reset inflater on EOF. Only read via `super' if entry is
1448 (skip): Only skip via `super' if entry is deflated.
1449 * java/util/zip/Deflater.java (last_input_count): Removed.
1450 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1452 (needsInput): Don't use last_input_count.
1453 (setInput): Don't set last_input_count.
1454 * java/util/zip/natInflater.cc (getRemaining): Return correct
1456 (inflate): Return 0 if input array is length 0.
1457 (setInput): Don't set last_input_count.
1458 * java/util/zip/Inflater.java (last_input_count): Removed.
1460 1999-05-21 Tom Tromey <tromey@cygnus.com>
1462 * Makefile.in: Rebuilt.
1463 * Makefile.am (INCLUDES): Added $(ZINCS).
1464 * configure: Rebuilt.
1465 * configure.in (ZINCS): New subst.
1467 1999-05-21 Andrew Haley <aph@cygnus.com>
1469 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1470 to signal options to allow the same exceptions to be rethrown
1473 1999-05-20 Andrew Haley <aph@cygnus.com>
1475 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1477 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1478 (INIT_FPE): Exception string made more informative.
1479 * include/sparc-signal.h (INIT_FPE): Exception string made more
1481 * testsuite/libjava.lang/Divide_1.java: New file.
1482 * testsuite/libjava.lang/Divide_1.out: New file.
1484 1999-05-19 Tom Tromey <tromey@cygnus.com>
1486 * aclocal.m4, configure: Rebuilt.
1487 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1489 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1492 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1494 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1496 (update): Fail in default case. Always initialize `strat'.
1498 * mauve-libgcj: Enable java.util.zip.
1500 1999-05-18 Warren Levy <warrenl@cygnus.com>
1502 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1503 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1504 PlainDatagramSocketImpl.java, and SocketOptions.java.
1505 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1506 * Makefile.in: Rebuilt.
1508 * java/net/DatagramPacket.java: New file.
1509 * java/net/DatagramSocket.java: New file.
1510 * java/net/DatagramSocketImpl.java: New file.
1511 * java/net/MulticastSocket.java: New file.
1512 * java/net/PlainDatagramSocketImpl.java: New file.
1513 * java/net/SocketOptions.java: New file.
1514 * java/net/natPlainDatagramSocketImpl.cc: New file.
1516 1999-05-18 Tom Tromey <tromey@cygnus.com>
1518 * java/util/zip/ZipOutputStream.java (level): Initial value is
1519 Deflater.DEFAULT_COMPRESSION.
1520 (close): New method.
1521 (closeEntry): Likewise.
1523 (put_version): Likewise.
1524 (write_entry): Likewise.
1525 (put2, put4): Now return `int'.
1526 (comment): Default to empty string.
1527 (bytes_written): New instance variable.
1529 * java/util/zip/ZipEntry.java (setComment): Limit length of
1531 (setCrc): Check CRC validity.
1532 (setExtra): Check argument validity.
1533 (setMethod): Likewise.
1534 (setSize): Likewise.
1535 (ZipEntry): Likewise.
1536 * include/javaprims.h: Updated namespace declarations.
1537 * Makefile.in: Rebuilt.
1538 * Makefile.am (ordinary_java_source_files): Mention new files.
1539 (nat_source_files): Likewise.
1540 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1543 (getInputStream): Handle compressed entries.
1544 * java/util/zip/GZIPOutputStream.java: New file.
1545 * java/util/zip/GZIPInputStream.java: New file.
1546 * java/util/zip/DataFormatException.java: New file.
1547 * java/util/zip/CheckedInputStream.java: New file.
1548 * java/util/zip/CheckedOutputStream.java: New file.
1549 * java/util/zip/InflaterInputStream.java: Implemented.
1550 * java/util/zip/natInflater.cc: New file.
1551 * java/util/zip/Deflater.java: Implemented.
1552 * java/util/zip/natDeflater.cc: New file.
1553 * java/util/zip/DeflaterOutputStream.java: Implemented.
1555 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1556 ZipException, not IOException.
1557 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1560 1999-05-17 Tom Tromey <tromey@cygnus.com>
1562 * java/lang/natSystem.cc (init_properties): URL now points to
1565 1999-05-12 Per Bothner <bothner@cygnus.com>
1567 * java/util/Calendar.java (set): First call computeFields if needed.
1568 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1570 1999-05-12 Tom Tromey <tromey@cygnus.com>
1572 * configure: Rebuilt.
1573 * configure.in: Look for -ldl when using the Boehm collector.
1574 Look for sched_yield in -lposix4.
1576 1999-05-12 Per Bothner <bothner@cygnus.com>
1578 * java/io/File.java (mkdirs): Handle a null parent directory.
1580 1999-05-12 Tom Tromey <tromey@cygnus.com>
1582 * include/javaprims.h: Updated namespace declarations.
1583 * classes.pl (scan): Uniquify class list.
1584 * Makefile.in, configure: Rebuilt.
1585 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1586 (built_java_source_files): New macro.
1587 (nat_headers): Added built_java_source_files.
1588 (javao_files): Likewise.
1589 (EXTRA_libgcj_la_SOURCES): Likewise.
1590 (libgcj.zip): Create built class files.
1591 ($(built_java_source_files:.java=.class)): New target.
1592 (jv_convert_LDADD): Added -L$(here)/.libs.
1593 * configure.in: Create links for ConcreteProcess.java and
1594 natConcreteProcess.cc.
1595 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1596 * java/lang/natEcosProcess.cc: New file.
1597 * java/lang/EcosProcess.java: New file.
1598 * java/lang/PosixProcess.java: New file.
1599 * java/lang/natPosixProcess.cc: New file.
1601 1999-05-12 Warren Levy <warrenl@cygnus.com>
1603 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1604 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1605 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1606 (connect): Throw ConnectException.
1608 1999-05-11 Tom Tromey <tromey@cygnus.com>
1610 * Makefile.in: Rebuilt.
1611 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1612 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1615 * Makefile.in: Rebuilt.
1616 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1617 and it causes problems with libtool.
1619 * Makefile.in, configure: Rebuilt.
1620 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1621 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1622 (jv_convert_DEPENDENCIES): Added ZDEPS.
1623 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1625 (THREADSPEC): Added `-L' to point to qthreads build directory.
1629 * configure, Makefile.in: Rebuilt.
1630 * Makefile.am (toolexeclib_DATA): New macro.
1631 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1632 Recognize --with-system-zlib.
1633 (GCSPEC): New subst.
1634 (THREADSPEC): New subst.
1635 (SYSTEMSPEC): New subst.
1636 (ZLIBSPEC): New subst.
1637 * libgcj.spec.in: New file.
1639 1999-05-10 Tom Tromey <tromey@cygnus.com>
1641 * java/io/InputStreamReader.java (read): If length is 0, return
1642 0. Reset `wpos' and `wcount' when buffer has been filled and
1645 * java/util/Properties.java (save): Removed `FIXME' comment.
1646 (load): Invalid characters in \u now treated as terminators.
1647 Make sure to append character resulting from `\' handling.
1648 Cast to `char' when appending to key or value.
1649 (skip_ws): Inverted test for whitespace.
1651 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1653 (readLine): Likewise.
1654 (readFully): Implemented.
1656 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1658 * java/awt/natToolkit.cc: Added copyright header.
1659 * java/util/zip/InflaterInputStream.java: Added copyright header.
1661 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1663 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1665 (getNextStream): Likewise.
1667 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1669 (getBundle): Don't explicitly throw null pointer exception.
1671 * gnu/gcj/RawData.java: Added copyright header.
1673 * include/jni.h (_Jv_va_list): Always define as va_list.
1675 1999-05-9 Anthony Green <green@cygnus.com>
1677 * java/text/DateFormat.java (computeInstance): Separate time
1679 (getDateTimeInstance): Ditto.
1680 (getDateTimeInstance(int,int)): New method.
1682 * Makefile.in: Rebuilt.
1683 * Makefile.am (ordinary_java_source_files): Add new classes.
1685 * java/util/PropertyResourceBundle.java: New file.
1686 * gnu/gcj/util/EnumerationChain.java: New file.
1688 1999-05-07 Tom Tromey <tromey@cygnus.com>
1690 * acconfig.h (GCJVERSION): New undef.
1691 * java/lang/natSystem.cc (init_properties): Define java.version,
1692 java.class.version, os.name, os.arch, os.version.
1693 Include <sys/utsname.h> if required.
1694 * configure: Rebuilt.
1695 * configure.in: Compute and define GCJVERSION.
1697 * java/lang/natSystem.cc (default_file_encoding): Now static.
1699 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1701 * libtool-version: New file.
1702 * Makefile.in: Rebuilt.
1703 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1706 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1707 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1710 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1711 (we pick those up already).
1713 1999-05-05 Per Bothner <bothner@cygnus.com>
1715 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1716 stub classes. (This is enough to get Kawa to compile against libgcj.)
1718 * gnu/gcj/RawData.java: New class.
1719 * doc/cni.sgml: Document RawData.
1721 * java/util/zip/InflaterInputStream.java: New stub class.
1722 * java/util/zip/ZipInputStream.java: New class. Partly works.
1723 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1724 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1725 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1726 * java/util/zip/ZipOutputStream.java: Start implementation.
1728 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1729 (default_file_encoding): New global, initial value is above macro.
1730 (init_properties): Default file.encoding to default_file_encoding.
1732 * Makefile.am: Add new classes.
1734 1999-05-05 Tom Tromey <tromey@cygnus.com>
1736 * Makefile.in: Rebuilt.
1737 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1738 (clean-local): New target
1740 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1741 (load, loadLibrary): Now native.
1743 * java/lang/Runtime.java (load, loadLibrary): Now native.
1744 (init): New native method.
1745 (Runtime): Use init.
1746 * prims.cc: Include <ltdl.h> if required.
1747 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1749 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1751 * configure.in: Switch from irix threads to posix threads
1752 * configure: Regenerate.
1754 1999-04-30 Tom Tromey <tromey@cygnus.com>
1756 * Makefile.in: Rebuilt.
1757 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1759 1999-04-29 Tom Tromey <tromey@cygnus.com>
1761 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1764 * java/util/Locale.java (Locale(String,String)): Implement in
1765 terms of 3-argument version; variant now defaults to empty
1767 (toString): Assume variant is not null.
1768 (equals): Assume all strings are not null.
1769 (Locale): Throw NullPointerException if any argument is null.
1771 * java/util/ResourceBundle.java (getBundle): Don't try the base
1772 name; now implicit in partialGetBundle call.
1773 (trySomeGetBundle): Search for parent bundles and call setParent
1775 (partialGetBundle): Added `langStop' argument. Use
1776 `Locale.toString' to compute bundleName.
1777 (resource_cache): New static field.
1778 (partialGetBundle): Cache the returned resource bundle. Now
1781 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1784 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1785 * java/text/natCollator.cc (decomposeCharacter): `base' now
1787 * Makefile.in: Rebuilt.
1788 * Makefile.am (ordinary_java_source_files): Added
1789 CollationElementIterator, CollationKey, Collator,
1791 (nat_source_files): Added natCollator.cc.
1792 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1793 (compare): Pass `this' to CollationElementIterator constructor.
1794 (getCollationElementIterator): Likewise.
1795 (ceiNext): Fix off-by-one error when finding initial substring.
1796 (next): Correctly mask off bits when computing return value.
1797 Fixed return values when one string is shorter than the other.
1798 * java/text/CollationElementIterator.java (collator): New field.
1799 (CollationElementIterator): Added collator argument.
1800 (next): Call ceiNext on collator object.
1802 1999-04-26 Tom Tromey <tromey@cygnus.com>
1804 * natCollator.cc: New file.
1806 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1807 (GregorianCalendar): Use it in all constructors.
1808 * java/util/Calendar.java (Calendar): Changed argument name to
1809 `zone' to match code.
1811 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1812 * java/text/CollationKey.java: New file.
1813 * java/text/CollationElementIterator.java: New file.
1814 * java/text/Collator.java: New file.
1815 * java/text/RuleBasedCollator.java: New file.
1817 * Makefile.in: Rebuilt.
1818 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1819 (jv_convert_LDADD): Explicltly add -lm -lc.
1821 1999-04-26 Tom Tromey <tromey@cygnus.com>
1823 * configure, Makefile.in: Rebuilt.
1824 * configure.in: Added AM_PROG_LIBTOOL.
1825 (GCOBJS): Use `.lo' form of files.
1826 (THREADOBJS): Likewise.
1827 (GCDEPS): Use `.la' form of library.
1828 (GCLIBS): Set to be the same as GCDEPS.
1829 (THREADDEPS): Use `.la' form of library.
1830 (THREADLIBS): Set to be the same as THREADDEPS.
1831 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1832 toolexeclib_LIBRARIES.
1833 (libgcj_la_SOURCES): Renamed for libtoolization.
1834 (EXTRA_libgcj_la_SOURCES): Likewise.
1835 (libgcj_la_DEPENDENCIES): Likewise.
1836 (libgcj_la_LIBADD): Likewise.
1837 ($(nat_files)): Use LTCXXCOMPILE.
1838 ($(c_files)): Use LTCOMPILE.
1839 (GCJCOMPILE): New macro.
1841 (.java.o): Likewise.
1842 ($(javao_files)): Likewise.
1843 (jv_convert_LINK): Use LIBTOOL.
1844 (nat_files): Use `.lo' files.
1845 (c_files): Likewise.
1846 (javao_files): Likewise.
1847 (.class.lo): Renamed.
1848 (.java.lo): Likewise.
1849 ($(nat_files)): Depend on %.lo.
1850 ($(c_files)): Likewise.
1851 ($(javao_files)): Likewise.
1852 (jv_convert_LDADD): Link against .lo files.
1853 (jv_convert_DEPENDENCIES): Depend on .lo files.
1854 (maintainer-check): Depend on libgcj.la, but examine .a file.
1855 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1856 (libgcj_la_LDFLAGS): New macro.
1858 1999-04-23 Warren Levy <warrenl@cygnus.com>
1860 * Makefile.am: Added URLDecoder and URLEncoder.
1861 * Makefile.in: Rebuilt.
1863 * java/net/ServerSocket.java (setSocketFactory): Renamed from
1864 setSocketImplFactory to match spec.
1865 * java/net/Socket.java (getSoLinger): Changed return type to
1868 * java/net/URLDecoder.java: New file.
1869 * java/net/URLEncoder.java: New file.
1871 1999-04-21 Tom Tromey <tromey@cygnus.com>
1873 * java/lang/natString.cc (getBytes): Reverted earlier change and
1874 applied correct fix from Per Bothner.
1876 * java/lang/String.java: Don't throw
1877 UnsupportedEncodingException.
1879 * java/lang/natString.cc (getBytes): Correctly size result
1880 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
1882 1999-04-20 Andrew Haley <aph@cygnus.com>
1884 * include/sparc-signal.h: new file.
1885 * configure.in: include/sparc-signal.h added.
1886 * configure: regenerated.
1887 * prims.cc (JvRunMain): signal handling code rewritten to be more
1889 (catch_segv): ditto.
1891 * include/i386-signal.h: reorganized.
1892 * include/default-signal.h: reorganized.
1894 1999-04-19 Tom Tromey <tromey@cygnus.com>
1896 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1897 once. From Anthony Green.
1899 1999-04-19 Andrew Haley <aph@cygnus.com>
1901 * Makefile.in: Processed with new automake.
1903 1999-04-19 Tom Tromey <tromey@cygnus.com>
1905 * include/javaprims.h: Removed security namespace.
1907 1999-04-20 Anthony Green <green@cygnus.com>
1909 * java/io/PrintStream.java (println): Remove extra println.
1911 1999-04-19 Anthony Green <green@cygnus.com>
1913 * Makefile.in: Rebuilt.
1914 * Makefile.am (ordinary_java_source_files): Add new security files.
1916 * java/security/NoSuchAlgorithmException.java,
1917 java/security/MessageDigest.java: New files.
1919 * include/javaprims.h: Add security namespace.
1921 1999-04-16 Per Bothner <bothner@cygnus.com>
1923 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
1924 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1925 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1926 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
1927 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
1928 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
1929 * gnu/gcj/convert/natInput_SJIS.cc: New file.
1930 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
1931 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
1932 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
1933 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
1934 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
1935 * Makefile.am: Various changes for new files and conversions.
1937 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1938 New overloading, allows greater efficiency.
1939 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1940 New overloading (for efficiency - avoids copying).
1942 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
1943 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
1945 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
1946 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
1947 (writeChars): Don't be quite so eager to flush.
1948 * java/io/PrintStream.java: Rewrite. Now more similar to
1949 OutputStreamWriter, using explicit UnicodeToBytes converter.
1950 Also, autoflush does not need to flush so often.
1951 * java/lang/natString.cc (getBytes): More efficient algorithm.
1952 (init(jbyteArray,jint,jint,jstring)): More efficient.
1954 1999-04-15 Warren Levy <warrenl@cygnus.com>
1956 * Makefile.am (ordinary_java_source_files): Added new Connection
1957 and Handler classes in gnu.gcj.protocol.file package.
1958 * Makefile.in: Rebuilt.
1960 * gnu/gcj/protocol/file/Connection.java: New file.
1961 * gnu/gcj/protocol/file/Handler.java: New file.
1962 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1963 if doInput allows input.
1964 (getOutputStream): Check if doOutput allows output.
1965 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
1967 1999-04-14 Tom Tromey <tromey@cygnus.com>
1969 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
1970 buffer larger to work around bug.
1971 From Bryce McKinlay <bryce@albatross.co.nz>.
1973 1999-04-14 Andrew Haley <aph@cygnus.com>
1975 * java/lang/natDouble.java (doubleToLongBits): ensure that all
1976 NaNs are always converted to the same long value.
1977 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
1980 1999-04-13 Tom Tromey <tromey@cygnus.com>
1982 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
1983 instead switch on actual element type.
1985 * Makefile.in: Rebuilt.
1986 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
1988 1999-04-13 Andrew Haley <aph@cygnus.com>
1990 * include/i386-signal.h, include/default-signal.h: New files.
1991 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
1993 (catch_fpe): New function.
1994 * configure.in: Make link to appropriate include/java-signal.h.
1995 * configure: Rebuilt.
1996 * Makefile.am: include/java-signal.h added to dependency list.
1997 * Makefile.in: Rebuilt.
1999 1999-04-12 Urban Widmark <urban@svenskatest.se>
2001 * java/io/DataInputStream.java (readLine): Corrected handling of
2002 empty lines, from null to "".
2004 1999-04-12 Tom Tromey <tromey@cygnus.com>
2006 * Makefile.in: Rebuilt.
2007 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2009 * java/lang/natSystem.cc (SystemClass): New define.
2010 (init_properties): Synchronize.
2012 1999-04-08 Geoff Berry <gcb@gnu.org>
2014 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2015 * natPlainSocketImpl.cc (accept): Add missing else if check
2018 1999-04-08 Tom Tromey <tromey@cygnus.com>
2020 * java/lang/Long.java (parseLong): Corrected overflow detection
2022 * java/lang/Integer.java (parseInt): Corrected overflow detection
2025 * java/io/PrintStream.java (print): Handle null string argument.
2026 (println): Likewise.
2028 1999-04-07 Warren Levy <warrenl@cygnus.com>
2030 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2031 Set count to 0 when InputStreamReader returns -1 for EOF.
2033 1999-04-07 Tom Tromey <tromey@cygnus.com>
2035 * mauve-libgcj: Omit java.text.Collator,
2036 java.text.RuleBasedCollator.
2038 1999-04-06 Tom Tromey <tromey@cygnus.com>
2040 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2041 IOException from getHttpHeaders().
2042 (getHeaderFieldKey): Likewise.
2044 * include/javaprims.h: Regenerated declarations.
2046 * Makefile.in: Rebuilt.
2047 * Makefile.am (ordinary_java_source_files): Updated for removed
2050 1999-04-06 Per Bothner <bothner@cygnus.com>
2052 * java/util/zip/Adler32.java: New class.
2053 * java/util/zip/CRC32.java: Add working method bodies.
2054 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2055 * Makefile.in: Re-generate.
2057 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2059 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2060 from version in removed www hierarchy.
2061 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2062 version in removed www hierarchy.
2064 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2065 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2066 * gnu/gcj/www/protocol/http: Removed dir.
2067 * gnu/gcj/www/protocol: Removed dir.
2068 * gnu/gcj/www: Removed dir.
2070 * java/net/HttpURLConnection.java: Revised comments to indicate
2071 missing JDK 1.2 methods.
2073 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2074 hierarchy rather than the gnu/gcj/www/protocol one.
2075 * java/net/URLConnection.java: Updated status comments.
2076 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2077 the gnu/gcj/www/content one.
2079 1999-04-06 Per Bothner <bothner@cygnus.com>
2081 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2082 The gen-from-JIS program is in $(CONVERT_DIR).
2084 1999-04-06 Tom Tromey <tromey@cygnus.com>
2086 * mauve-libgcj: Renamed from mauve-libjava.
2088 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2090 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2091 (getResponseMessage): Implemented.
2092 (getResponseVals): New private method.
2094 * java/net/URLConnection.java (getContent): Implemented.
2095 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2097 1999-04-05 Tom Tromey <tromey@cygnus.com>
2099 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2100 (jv_convert_SOURCES): Renamed.
2101 (EXTRA_jv_convert_SOURCES): Likewise.
2102 (jv_convert_LDFLAGS): Likewise.
2103 (jv_convert_LINK): Likewise.
2104 (jv_convert_LDADD): Likewise.
2105 (jv_convert_DEPENDENCIES): Likewise.
2107 * Makefile.in: Rebuilt.
2108 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2111 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2113 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2114 method for comparison.
2116 * java/net/URLConnection.java (getContentLength): Implemented.
2117 (getContentType): Implemented.
2118 (getContentEncoding): Implemented.
2119 (getExpiration): Implemented.
2120 (getDate): Implemented.
2121 (getLastModified): Implemented.
2122 (getHeaderFieldInt): Implemented.
2123 (getHeaderFieldDate): Implemented.
2125 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2127 * java/net/URLConnection.java (toString): Implemented.
2128 (setContentHandlerFactory): Implemented.
2129 (setContentHandler): Wrote new private helper method.
2131 1999-04-01 Tom Tromey <tromey@cygnus.com>
2133 * Makefile.in: Rebuilt.
2134 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2135 of 1999-03-31; we always want to build all the .class files.
2136 Depend on java_source_files, not libgcj.zip.
2137 (nat_headers): Define in terms of ordinary_java_source_files.
2139 1999-03-31 Tom Tromey <tromey@cygnus.com>
2141 * Makefile.in: Rebuilt.
2142 * Makefile.am (special_java_source_files): New macro.
2143 (java_source_files): Use it.
2144 (ordinary_java_source_files): New macro.
2145 (java_source_files): Use it.
2146 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2147 creating headers for those files with hand-maintained headers.
2149 * include/javaprims.h: Regenerated namespace declarations.
2150 * classes.pl (scan): Include [0-9] in regexp for matching class
2151 names; for java.util.zip.CRC32.
2153 * Makefile.in: Rebuilt.
2154 * Makefile.am (nat_headers): Redefined to generate all possible
2157 * java/util/zip/ZipException.java: In package java.util.zip, not
2160 1999-03-30 Tom Tromey <tromey@cygnus.com>
2162 * configure: Rebuilt.
2163 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2164 eh-common.h when not building in tree with gcc.
2166 * Makefile.in: Rebuilt.
2167 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2168 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2170 ($(java_source_files:.java=.class)): New target.
2172 * Makefile.in: Rebuilt.
2173 * Makefile.am (java_source_files): Added
2174 java/net/HttpURLConnection.java and
2175 gnu/gcj/www/protocol/http/Connection.java.
2177 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2179 * gnu/gcj/www/protocol/http/Connection.java: New file.
2180 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2181 * java/net/HttpURLConnection.java: New file.
2182 * java/net/URLConnection.java (getHeaderField): Implemented default.
2183 (getHeaderFieldKey): Implemented default method.
2185 1999-03-30 Tom Tromey <tromey@cygnus.com>
2187 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2189 * java/util/zip/Deflater.java: Added copyright header.
2190 * java/util/zip/CRC32.java: Added copyright header.
2192 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2193 that it is automatically generated.
2194 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2196 * gnu/gcj/convert/BytesToUnicode.java,
2197 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2198 gnu/gcj/convert/Input_EUCJIS.java,
2199 gnu/gcj/convert/Input_UTF8.java,
2200 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2201 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2202 gnu/gcj/convert/Output_8859_1.java,
2203 gnu/gcj/convert/Output_JavaSrc.java,
2204 gnu/gcj/convert/Output_UTF8.java,
2205 gnu/gcj/convert/UnicodeToBytes.java,
2206 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2208 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2210 * Makefile.in, configure: Rebuilt.
2211 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2212 not if test subdir exists.
2213 (--enable-gcj-classes): Removed; gcj always used to generate
2215 (JAVA, JAVAC): Removed.
2216 (--enable-single-compilation, --enable-source-compilation):
2219 (NATIVE): New conditional.
2220 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2221 `install-exec' to work.
2222 (toolexeclibdir): Likewise.
2223 (toollib_LIBRARIES): Likewise.
2224 (AM_MAKEFLAGS): Don't pass tooldir.
2226 (javao_files): Redefined.
2227 (java_source_files): New macro.
2228 (c_source_files): New macro.
2229 (c_files): Redefined in terms of c_source_files.
2230 (java_io_files, java_lang_files, java_net_files, java_text_files,
2231 java_util_files, gnu_files, java_files): Removed.
2232 (class_io_files, class_lang_files, class_net_files,
2233 class_text_files, class_util_files, class_gnu_files, class_files):
2235 (nat_source_files): New macro.
2236 (nat_files): Redefined in terms of nat_source_files.
2237 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2238 java_source_files. Removed no-such-file.c.
2240 (ETAGS_ARGS): Removed.
2241 (TAGS_DEPENDENCIES): Likewise.
2242 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2244 (src_io_files, src_lang_files, src_text_files, src_util_files,
2245 src_gnu_files): Removed.
2246 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2247 (BUILT_SOURCES): Removed.
2248 (header-check): New target.
2250 (noinst_PROGRAMS): New macro.
2251 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2253 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2254 (gen-from-JIS): Build in top directory.
2255 (convert_source_files): New macro.
2256 (convert_SOURCES): New macro.
2257 (convert_LDFLAGS): Likewise.
2258 (convert_LINK): Likewise.
2259 (convert_LDADD): Likewise.
2260 (convert_DEPENDENCIES): Likewise.
2262 (gen-from-JIS): Removed.
2263 (gen_from_JIS_SOURCES): New macro.
2264 (gen_from_JIS_LDADD): Likewise.
2265 (gen_from_JIS_DEPENDENCIES): Likewise.
2267 * configure: Rebuilt.
2268 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2269 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2270 when defining conditional.
2272 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2274 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2275 The Unicode Consortium does not permit their re-distribution.
2276 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2277 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2279 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2281 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2283 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2285 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2286 from Unicode Consortium.
2287 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2288 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2289 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2290 New tables, generated using gen-from-JIS.
2291 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2292 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2293 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2294 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2296 * gnu/gcj/convert/Convert.java: New application.
2297 * Makefile.am, Makefile.in (convert): New program, using Convert.
2298 Build the various JIS conversion tables (in maintainer mode).
2300 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2302 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2304 * java/net/URL.java (URL): Deal with null property value. Use "."
2305 as separator in building class name.
2306 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2307 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2308 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2309 beginning of the substring rather than 'start'.
2311 1999-03-26 Tom Tromey <tromey@cygnus.com>
2313 * include/java-chartables.h: Rebuilt.
2314 * include/java-chardecomp.h: New file.
2315 * chartables.pl: Generate output files directly. Added support
2316 for generating decomposition header.
2317 (canonical_decomposition, full_decomposition): New globals.
2318 (DECOMPOSITION): New constant.
2319 (process_char): Call add_decomposition.
2320 (add_decomposition): New sub.
2321 (write_decompositions): New sub.
2323 1999-03-25 Tom Tromey <tromey@cygnus.com>
2325 * java/text/CollationElementIterator.java: New file.
2327 * mauve-libjava: Omit StringTest.
2329 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2331 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2332 without a '/' when parsing protocol. Handle ref outside of parseURL.
2333 (hashCode): Implemented.
2334 (set): Don't expand -1 to default port.
2335 (getDefaultPort): Removed.
2337 * java/net/URLStreamHandler.java (parseURL): Implemented.
2338 (toExternalForm): Implemented.
2340 1999-03-23 Tom Tromey <tromey@cygnus.com>
2342 * java/text/BreakIterator.java (getSentenceInstance):
2344 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2346 * Makefile.in: Rebuilt.
2347 * Makefile.am (nat_headers): Added IllegalAccessException.
2348 * java/lang/natClass.cc (newInstance): Throw
2349 IllegalAccessException, not IllegalAccessError.
2350 Include IllegalAccessException.h.
2352 1999-03-22 Tom Tromey <tromey@cygnus.com>
2354 * gnu/gcj/text/LineBreakIterator.java: New file.
2355 * java/text/BreakIterator.java (getLineInstance): Implemented.
2357 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2358 copy constructor private.
2359 (previous, next): Removed erroneous comment about line
2361 (previous): Correctly recognize break between non-letter on the
2362 left and letter on the right. Handle apostrophes correctly.
2364 * java/text/BreakIterator.java (getWordInstance): Implemented.
2365 * gnu/gcj/text/WordBreakIterator.java: New file.
2366 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2368 * gnu/gcj/text/BaseBreakIterator.java: New file.
2370 1999-03-19 Tom Tromey <tromey@cygnus.com>
2372 * java/text/BreakIterator.java: New file (partially stubbed out).
2373 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2375 * include/config.h.in: Rebuilt.
2376 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2377 (HAVE_TIMEZONE): Likewise.
2378 * configure: Rebuilt.
2379 * configure.in: Added timezone checks.
2380 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2383 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2385 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2386 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2387 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2388 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2389 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2390 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2391 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2392 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2394 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2395 (BSD_COMP): Kludge needed for Solaris2.
2397 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2399 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2400 URL(java.net.URL, string, URLStreamHandler) and call it with a
2401 null handler. In latter constructor, added SecurityManager check.
2402 (set): Expect null handler on bad protocol rather than an exception.
2403 (setURLStreamHandler): Simplified exception handling; return null
2404 on invalid protocol.
2406 1999-03-18 Tom Tromey <tromey@cygnus.com>
2408 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2410 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2412 Include PrintStream.h, InputStream.h.
2413 * java/lang/System.java (ForwardingInputStream,
2414 ForwardingOutputStream): Removed.
2415 (setErr, setIn, setOut): Now native.
2417 Reverted patch from 1999-02-12 to work around problem in
2419 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2420 (_Jv_eh_free): Use free.
2422 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2423 for path name. Minor formatting fixes.
2425 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2427 * prims.cc (fail_on_finalization): New function.
2428 (_Jv_GCWatch): Likewise.
2430 * prims.cc (JvRunMain): Initialize `nullp'.
2431 (nullp): New global.
2432 (catch_segv): Throw nullp.
2434 * Makefile.in: Rebuilt.
2435 * Makefile.am (ZIP): In "null target" case, zip is found in the
2438 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2442 * java/lang/StringBuffer.java (StringBuffer): Don't use
2443 ensureCapacity to set initial capacity.
2444 (capacity): Subtract `length' from return result.
2446 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2448 * java/io/natFileDescriptorPosix.cc (open): Throw
2449 FileNotFoundException, but with filename and errno in msg.
2451 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2453 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2454 functionality folded into java/net/URL.java per spec.
2456 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2457 than EEXIST for throwing FileNotFoundException.
2459 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2460 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2462 * java/net/URLStreamHandler.java (parseURL): Added stub.
2464 1999-03-15 Andrew Haley <aph@cygnus.com>
2466 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2469 1999-03-15 Andrew Haley <aph@cygnus.com>
2471 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2474 1999-03-12 Tom Tromey <tromey@cygnus.com>
2476 * prims.cc (catch_segv): New function.
2477 Include <signal.h> if HANDLE_SEGV defined. Include
2478 NullPointerException.h.
2479 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2482 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2483 a SimpleDateFormat, not just a DateFormat.
2484 (defaultCenturyStart, formatData, pattern): Now private.
2485 (append): Now `final'. Use `NumberFormat.format'.
2487 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2489 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2492 * java/text/MessageFormat.java (format): Use default MessageFormat
2494 (parse, parseObject): Wrote.
2496 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2499 1999-03-12 Andrew Haley <aph@cygnus.com>
2501 * java/lang/String.java (indexOf): Replace with native method for
2503 * java/lang/natString.cc (IndexOf): As above.
2505 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2506 Argument check corrected.
2507 (init(jbyteArray,jint,jint,jstring)): Likewise.
2509 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2510 1.2 compliant method.
2512 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2514 * java/lang/Float.java (byteValue, shortValue): Likewise.
2516 1999-03-11 Tom Tromey <tromey@cygnus.com>
2518 * java/text/DecimalFormat.java (parse): Wrote.
2520 * java/text/ChoiceFormat.java (parse): Set error index on
2521 ParsePosition object.
2523 * java/lang/Integer.java (parseInt): Throw exception on overflow
2524 when intermediate result is most negative number. Changed
2525 overflow detection as well.
2526 * java/lang/Long.java (parseLong): Likewise.
2528 * configure, Makefile.in: Rebuilt.
2529 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2530 CANADIAN when building in source tree that doesn't include gcc.
2531 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2534 * java/text/ChoiceFormat.java (nextDouble): Correct some
2535 off-by-one errors when masking or adding.
2537 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2538 parameter, if given. Use `%', not IEEEremainder.
2539 (scanFix): Throw error if multiplier already set.
2540 (computePattern): Wrote.
2542 1999-03-11 Andrew Haley <aph@cygnus.com>
2544 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2546 (nextDouble): Corrected masking logic. Handle interaction between
2547 `next' and negative numbers.
2549 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2551 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2552 * java/net/URL.java: Added general comments.
2554 1999-03-10 Tom Tromey <tromey@cygnus.com>
2556 * java/text/ChoiceFormat.java (parse): Wrote.
2558 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2560 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2561 Create ChoiceFormat objects.
2562 (format): Special-case ChoiceFormat.
2563 (scanFormatElement): Include { and } in generated style string.
2565 1999-03-09 Tom Tromey <tromey@cygnus.com>
2567 * java/text/ChoiceFormat.java: New file.
2569 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2571 * java/net/BindException.java: Created.
2572 * java/net/ConnectException.java: Created.
2573 * java/net/ContentHandler.java: Created.
2574 * java/net/ContentHandlerFactory.java: Created.
2575 * java/net/FileNameMap.java: Created.
2576 * java/net/MalformedURLException.java: Created.
2577 * java/net/NoRouteToHostException.java: Created.
2578 * java/net/ProtocolException.java: Created.
2579 * java/net/ServerSocket.java (@author): Fixed typo.
2580 * java/net/Socket.java (@author): Fixed typo.
2581 * java/net/SocketImpl.java (@author): Fixed typo.
2582 * java/net/SocketImplFactory.java (@author): Fixed typo.
2583 * java/net/URL.java: Created - nearly complete.
2584 * java/net/URLConnection.java: Created - near-empty stub.
2585 * java/net/URLStreamHandler.java: Created - incomplete stub.
2586 * java/net/URLStreamHandlerFactory.java: Created.
2587 * java/net/UnknownServiceException.java: Created.
2589 1999-03-09 Tom Tromey <tromey@cygnus.com>
2591 * java/lang/System.java (ForwardingInputStream): New class.
2592 (ForwardingOutputStream): Likewise.
2593 (in, out, err): Now `final' forwarding streams.
2594 (setIn, setOut, setErr): Use appropriate method on forwarding
2597 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2600 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2602 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2603 * java/util/zip/Checksum.java: New interface (complete).
2604 * java/util/zip/Deflater.java: New class (near-empty stub).
2605 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2606 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2607 * java/util/zip/ZipEntry.java: New class (complete).
2608 * java/util/zip/ZipException.java: New class (complete).
2609 * java/util/zip/ZipFile.java: New class (incomplete stub).
2610 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2612 1999-03-09 Tom Tromey <tromey@cygnus.com>
2614 * java/text/MessageFormat.java (MessageFormatElement): Removed
2615 `public' specifiers.
2617 * java/text/DecimalFormat.java (scanFormat): Increment index
2618 before processing exponential format. Fixed a couple typos in
2620 (format): Correct normalization of exponent.
2622 1999-03-08 Tom Tromey <tromey@cygnus.com>
2624 * java/text/SimpleDateFormat.java (parse): Throw
2625 IllegalArgumentException, not ParseException.
2627 1999-03-05 Tom Tromey <tromey@cygnus.com>
2629 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2630 when constructing DateFormatSymbols. Initialize numberFormat
2631 field of superclass.
2633 * java/text/DateFormat.java (equals): Rewrote.
2634 (getAvailableLocales): New method.
2635 (getDateInstance): New methods.
2636 (getDateTimeInstance): Likewise.
2637 (getTimeInstance): Likewise.
2638 (getInstance): New method.
2639 (computeInstance): New method.
2641 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2643 (safeGetResource): New method.
2644 (DateFormatSymbols): Use Locale paramater.
2645 (equals): Now protected.
2646 Made instance variables private.
2648 1999-03-04 Tom Tromey <tromey@cygnus.com>
2650 * java/text/DecimalFormat.java: New file.
2652 * java/text/NumberFormat.java (groupingUsed,
2653 maximumFractionDigits, maximumIntegerDigits,
2654 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2656 (setDecimalSeparatorAlwaysShown, setMultiplier,
2657 setPositivePrefix): Removed.
2658 (setMinimumFractionDigits, setMaximumFractionDigits):
2660 (format): Now final.
2661 Added many new methods.
2663 * Makefile.in: Rebuilt.
2664 * Makefile.am (gnu_files): New macro.
2665 (java_files): Added gnu_files.
2666 (class_gnu_files): New macro.
2667 (class_files): Use it.
2668 (src_gnu_files): New macro.
2669 (gnu.o): New target.
2670 (javao_files): Added gnu.o.
2672 * gnu/gcj/text/LocaleData_en_US.java: New file.
2673 * gnu/gcj/text/LocaleData_en.java: New file.
2674 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2675 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2676 (safeGetString): New method.
2677 (safeGetChar): Likewise.
2679 1999-03-03 Tom Tromey <tromey@cygnus.com>
2681 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2684 * java/text/FieldPosition.java (equals): Don't check for null
2685 object; instanceof does this.
2687 * java/util/Locale.java (clone): New method.
2690 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2692 * doc/cni.sgml: New file.
2694 1999-03-03 Tom Tromey <tromey@cygnus.com>
2696 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2698 * java/text/DecimalFormatSymbols.java: New file.
2700 1999-03-02 Tom Tromey <tromey@cygnus.com>
2702 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2704 * configure: Rebuilt.
2705 * configure.in: Check for sys/filio.h.
2707 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2709 (load): Always throw UnsatisfiedLinkError.
2710 (loadLibrary): Likewise.
2712 1999-03-02 Anthony Green <green@cygnus.com>
2714 * LIBGCJ_LICENSE: New file.
2715 * LIBJAVA_LICENSE: Removed.
2716 * Many files: libjava now libgcj.
2718 1999-03-02 Tom Tromey <tromey@cygnus.com>
2720 * include/java-chartables.h: Rebuilt.
2721 * chartables.pl (print_block): Make table `const'.
2722 (print_numerics): Likewise.
2723 (print_single_map): Likewise.
2724 (print_all_block): Likewise.
2725 (print_case_table): Likewise.
2726 (print_fast_tables): Likewise.
2727 * java/lang/natCharacter.cc (table_search): `table' argument now
2730 1999-03-01 Tom Tromey <tromey@cygnus.com>
2732 * java/util/Date.java (before, after): Inverted logic.
2734 * java/util/Date.java (parse): Handle case where first character
2735 in string is open parenthesis.
2736 (skipParens): Rewrote.
2738 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2739 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2741 * java/util/Date.java (parse): Correctly compute beginning of
2744 * java/util/Hashtable.java (get): Throw NullPointerException if
2746 (containsKey): Likewise.
2748 * java/util/Properties.java (list): Truncate value to 37
2749 characters and add `...'.
2751 * java/lang/Byte.java (parseByte): Pass `radix' to
2754 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2756 Include System.h, PrintStream.h.
2758 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2761 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2763 * configure: Rebuilt.
2764 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2767 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2769 * java/lang/SecurityManager.java: Import java.net.*.
2770 (checkMulticast): New methods.
2772 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2774 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2775 (nat_files): Add java/lang/reflect/natArray.o.
2776 (nat_headers): Add Field.h and NoSuchFieldException.h.
2778 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2779 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2780 (_Jv_FromReflectedField): Fix buglet.
2781 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2782 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2783 * prims.cc (_Jv_Abort): Include message in print-out.
2785 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2786 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2787 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2789 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2790 * include/config.h.in (HAVE_PWD_H): New feature macro.
2791 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2792 user.name, user.home, user.dir.
2794 * java/lang/reflect/Array.java: New class.
2795 * java/lang/reflect/natArray.cc: New native methods.
2796 * include/javaprims.h: Declare java::lang::reflect::Array.
2798 * java/lang/Class.h (getField): New private method. Add friends.
2799 * java/lang/Class.java (getField): Add private overload.
2800 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2801 getDeclaredMethods): Add working implementations.
2802 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2803 Finish implementation, except for access control.
2805 * java/lang/reflect/Modifier.java (toString): New overload.
2806 * include/java-method.h: New file.
2807 * java/lang/reflect/Method.java (index): Replaced by offset field.
2808 Remove various private fields - get them from _Jv_Field instead.
2809 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2810 New method implementations.
2812 * java/text/NumberFormat.java: Add a bunch of methods.
2814 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2816 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2818 1999-02-26 Tom Tromey <tromey@cygnus.com>
2820 * include/config.h.in: Rebuilt.
2821 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2822 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2823 HAVE_GETHOSTBYADDR_R): New defines.
2824 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2825 gethostbyaddr_r if available.
2827 * configure: Rebuilt.
2828 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2830 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2834 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2835 * prims.cc (_Jv_AllocBytesChecked): New function.
2837 * Makefile.in: Rebuilt.
2838 * Makefile.am (SUBDIRS): Removed `test'.
2839 * configure: Rebuilt.
2840 * configure.in: Don't build test/Makefile.
2841 * test/*: Removed all files.
2843 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
2845 * java/lang/reflect/Constructor.java: Make class final to match spec.
2846 * java/lang/reflect/Method.java: Ditto.
2848 1999-02-25 Tom Tromey <tromey@cygnus.com>
2850 * java/net/natInetAddress.cc: Include <sys/types.h> before
2852 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2855 * java/net/natInetAddress.cc: Declare gethostname if required.
2856 * include/config.h.in: Rebuilt.
2857 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2858 * configure: Rebuilt.
2859 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2860 declared in unistd.h.
2862 1999-02-24 Tom Tromey <tromey@cygnus.com>
2864 * Makefile.in: Rebuilt.
2865 * Makefile.am (java/io/FileDescriptor.h): Removed target.
2866 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2867 from private to "none".
2869 * include/javaprims.h: Regenerated class declarations with new
2871 * classes.pl (scan): Only generate decls for java.lang, java.io,
2874 1999-02-24 Tom Tromey <tromey@cygnus.com>
2876 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2877 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2879 1999-02-23 Tom Tromey <tromey@cygnus.com>
2881 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2882 not already defined.
2883 * java/io/natFile.cc (_REENTRANT): Only define if not already
2885 * include/config.h.in: Rebuilt.
2886 * acconfig.h (HAVE_BOEHM_GC): New define.
2887 * configure: Rebuilt.
2888 * configure.in: Define HAVE_BOEHM_GC if using it.
2889 * posix-threads.cc: Include boehm-config.h and gc.h if
2891 * include/posix-threads.h: Added explanatory note about Boehm GC.
2893 * java/io/BufferedReader.java (readLine): Only return null when
2894 EOF seen before any characters read. (In particular, an empty
2895 line should not return null.)
2897 * java/io/BufferedInputStream.java (read): Only refill once per
2900 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2901 java.lang.Character.classify12, java.lang.String.hash,
2902 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2903 java.text.SimpleDateFormat.getAndSet2DigitYearStart
2905 * java/text/StringCharacterIterator.java (setIndex): No error if
2907 (next): Check for `pos == end', not `end - 1'.
2908 (StringCharacterIterator): Allow `pos == end'. Explicitly check
2909 for null text in each constructor.
2910 (clone): Fixed order of arguments to constructor.
2912 1999-02-22 Tom Tromey <tromey@cygnus.com>
2914 * include/config.h.in: Rebuilt.
2915 * acconfig.h (HAVE_INET6): New define.
2916 (HAVE_SOCKLEN_T): Likewise.
2917 * java/net/PlainSocketImpl.java: Added copyright header.
2918 * java/net/natPlainSocketImpl.cc: Added copyright header.
2919 (union SockAddr): Use HAVE_INET6, not AF_INET6.
2921 (connect): Likewise.
2923 (socklen_t): New typedef.
2924 (accept): Use socklen_t.
2925 * java/net/natInetAddress.cc: Added copyright header.
2926 (HAVE_GETHOSTNAME): Don't define.
2927 (HAVE_INET_ADDR): Likewise.
2928 (lookup): Fixed typo.
2929 (aton): Don't use `address' as name of local variable.
2930 (lookup): Use HAVE_INET6, not AF_INET6.
2932 * configure: Rebuilt.
2933 * configure.in: Look for functions inet_aton, inet_addr,
2934 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
2935 Check for socklen_t typedef.
2937 * exception.cc (__throw): Declare as __noreturn__.
2939 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
2941 * Makefile.am, Makefile.in: Also build java/net.
2942 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
2944 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2945 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
2947 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
2948 * include/cni.h (JvMalloc, JvFree): New inline functions.
2949 (JvThrow): Add __noreturn__ attribute.
2950 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
2951 (_Jv_Throw): Add __noreturn__ attribute.
2953 * java/net/PlainSocketImpl.java: Init fnum to -1.
2954 * java/net/ServerSocket.java: Add missing throws clauses.
2955 * java/lang/Socket.java: For the constructor taking a SocketImpl,
2956 don't call create on the latter. Instead, other constructors
2957 have to explicitly call SocketImpl.create.
2958 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
2959 from size_t to int, to match ::accept prototype.
2960 * java/net/natInetAddress.cc: Use JvFree rather than free.
2963 1999-02-22 Tom Tromey <tromey@cygnus.com>
2965 * include/javaprims.h: Added new classes.
2966 * java/text/StringCharacterIterator.java: New file.
2967 * java/text/CharacterIterator.java: New file.
2969 * java/text/ParseException.java (errorOffset): Now private.
2971 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
2973 * java/net: New package.
2974 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
2975 Socket.java,SocketException.java,SocketImpl.java,
2976 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
2977 natPlainSocketImpl.cc}: New classes.
2979 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
2980 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
2981 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
2982 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
2984 * classes.pl: Translate package into "namespace", not "class".
2985 * include/javaprims.h: Update class list, using "namespace".
2987 1999-02-21 Tom Tromey <tromey@cygnus.com>
2989 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
2990 Define when appropriate.
2992 1999-02-20 Tom Tromey <tromey@cygnus.com>
2994 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
2995 as a single byte and \u07ff as two bytes.
2996 (_Jv_GetStringUTFLength): Likewise.
2997 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
2998 with 0x0f, not 0x1f.
3000 1999-02-19 Tom Tromey <tromey@cygnus.com>
3002 * java/io/DataOutputStream.java (writeUTF): When encoding
3003 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3004 * java/io/DataInputStream.java (readUTF): Mask second byte of
3005 3-byte character with 0x3f, not 0x1f.
3007 * java/io/DataInputStream.java (readLong): Cast result of
3008 readUnsignedByte to long before using.
3010 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3013 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3014 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3015 argument to avoid warning.
3016 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3017 argument to avoid warning.
3019 1999-02-18 Tom Tromey <tromey@cygnus.com>
3021 * mauve-libjava: Omit java.io.DataInputOutput and
3022 java.io.Utf8Encoding.
3024 1999-02-17 Tom Tromey <tromey@cygnus.com>
3026 * Makefile.in: Rebuilt.
3027 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3028 * java/io/natFileDescriptorPosix.cc: Include
3029 InterruptedIOException.h, Thread.h.
3030 (write): Throw InterruptedIOException when required.
3032 * posix-threads.cc: Include <signal.h>.
3033 (_Jv_ThreadInterrupt): New function.
3035 (handle_intr): New function.
3036 (_Jv_InitThreads): Register handle_intr via sigaction.
3037 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3038 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3039 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3040 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3042 1999-02-19 Andrew Haley <aph@cygnus.com>
3044 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3046 (ThreadGroup (int)): Set the maximum priority of the initial
3049 1999-02-18 Andrew Haley <aph@cygnus.com>
3051 * java/lang/natClass.cc (forName): Check for the case where a
3052 classname is the name of an array and call FindClassFromSignature
3055 1999-02-18 Andrew Haley <aph@cygnus.com>
3057 * java/lang/StringBuffer (insert (int, String)): Move up any
3058 characters above the insert position and increase the length of
3059 the string buffer by the length of the argument.
3060 (insert (int, char[])): Likewise.
3061 (insert (int, char)): Likewise.
3062 (StringBuffer (String)): The initial capacity of the string buffer
3063 is 16 plus the length of the argument.
3064 (getChars): Add a JDK 1.2 FIXME.
3066 1999-02-18 Andrew Haley <aph@cygnus.com>
3068 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3071 1999-02-18 Andrew Haley <aph@cygnus.com>
3073 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3074 instead of floating-point equality. This is necessary for
3075 correct floating-point Hashtables.
3076 * java/lang/Float.java (equals): Ditto.
3078 1999-02-16 Tom Tromey <tromey@cygnus.com>
3080 * java/util/Properties.java (list): Truncate value to 37
3081 characters and add "...".
3083 1999-02-16 Tom Tromey <tromey@cygnus.com>
3085 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3086 if initCap is negative.
3087 (contains): Implement JDK1.2-style handling of null argument.
3088 (removeElement): Likewise.
3089 (indexOf): Likewise. Also, correctly handle case where idx is
3091 (lastIndexOf): Likewise.
3093 1999-02-16 Tom Tromey <tromey@cygnus.com>
3095 * java/lang/natString.cc (init): Increment source pointer in
3098 1999-02-16 Tom Tromey <tromey@cygnus.com>
3100 * exception.cc: Include NullPointerException.h.
3101 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3103 1999-02-16 Tom Tromey <tromey@cygnus.com>
3105 * Makefile.in: Rebuilt.
3106 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3108 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3110 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3111 we're compiling canadian.
3112 * configure: Regenerated.
3114 1999-02-12 Andrew Haley <aph@cygnus.com>
3116 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3117 deleted from libgcj.
3119 1999-02-12 Tom Tromey <tromey@cygnus.com>
3121 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3122 (_Jv_eh_free): Don't call free.
3123 Don't declare malloc or free.
3125 1999-02-11 Tom Tromey <tromey@cygnus.com>
3127 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3129 1999-02-11 Andrew Haley <aph@cygnus.com>
3131 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3132 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3133 needed by java.lang.*.
3134 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3135 wf_fmod.o: Removed from libjava.a.
3137 1999-02-11 Tom Tromey <tromey@cygnus.com>
3139 * include/javaprims.h: Reverted previous change; with it
3140 exception.cc can't compile.
3142 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3144 * include/config.h.in: Rebuilt.
3145 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3147 * configure: Rebuilt.
3148 * configure.in: Check for sched_yield. Look in thread library for
3149 all thread functions.
3151 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3152 no recursive mutexes.
3153 (_Jv_MutexDestroy): Define when required.
3154 (_Jv_MutexLock): Likewise.
3155 (_Jv_MutexUnlock): Likewise.
3156 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3157 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3158 (_Jv_Mutex_t): New structure.
3159 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3160 (_Jv_MutexLock): Likewise.
3161 (_Jv_MutexUnlock): Likewise.
3163 1999-02-10 Tom Tromey <tromey@cygnus.com>
3165 * aclocal.m4, configure, Makefile.in: Rebuilt.
3166 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3168 * configure.in: Changed to track library changes.
3169 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3170 (AM_CXXFLAGS): Likewise.
3171 (data_DATA): Likewise.
3172 (AM_CFLAGS): Likewise.
3173 (JC1FLAGS): Likewise.
3174 (libgcj_a_SOURCES): Likewise.
3175 (EXTRA_libgcj_a_SOURCES): Likewise.
3176 (libgcj_a_DEPENDENCIES): Likewise.
3177 (libgcj_a_LIBADD): Likewise.
3178 (libgcj.zip): Likewise.
3179 (CLEANFILES): Likewise.
3180 ($(nat_headers)): Likewise.
3181 (java/lang/FirstThread.h): Likewise.
3182 (java/lang/ThreadGroup.h): Likewise.
3183 (java/lang/String.h): Likewise.
3184 (java/lang/reflect/Field.h): Likewise.
3185 (BUILT_SOURCES): Likewise.
3186 (maintainer-check): Likewise.
3187 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3188 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3190 * java/util/natGregorianCalendar.cc (computeFields): Only use
3191 gmtime_r and localtime_r when configured for posix threads.
3193 * java/io/natFile.cc (get_entry): Only use readdir_r when
3194 configured for posix threads.
3196 * java/util/natGregorianCalendar.cc: Update copyright notice.
3197 * java/util/TimeZone.java: Ditto.
3198 * java/util/SimpleTimeZone.java: Ditto.
3200 1999-02-08 Tom Tromey <tromey@cygnus.com>
3202 * java/io/PrintStream.java (line_separator): New constant.
3203 (print): Use line_separator, not `file.separator' property.
3204 (println): Use line_separator.
3206 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3207 when trying to instantiate Class.
3209 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3210 NullPointerException if argument is null.
3212 * java/lang/Thread.java (setName): Throw NullPointerException, not
3213 IllegalArgumentException.
3216 1999-02-08 Andrew Haley <aph@cygnus.com>
3218 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3219 create new Classes with Class.newInstance().
3221 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3222 semiciolon to end of an array Class's signature if the elements of
3223 the array aren't themselves arrays.
3225 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3226 array of objects is always sizeof(jobject), not the size of the
3227 object to which the reference points.
3229 1999-02-08 Tom Tromey <tromey@cygnus.com>
3231 * java/util/BitSet.java (and): Throw NullPointerException when
3236 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3237 if argument is negative.
3238 (clear): Correctly compute `offset'. Throw
3239 IndexOutOfBoundsException when required.
3241 (get): Likewise. Also, return correct value.
3242 (ensure): Changed meaning of argument.
3243 (toString): Wrap contents in `{}'; put spaces after commas.
3244 (hashCode): Don't try to examine elements off the end of array.
3245 (or): Correctly include bits past the end of this bit set.
3248 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3250 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3251 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3253 1999-02-04 Andrew Haley <aph@cygnus.com>
3255 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3256 '/' in signatures to '.'
3257 (Class::getName): Likewise,
3258 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3260 * java/lang/natFirstThread.cc (run): Change '/' in main's
3263 1999-02-03 Andrew Haley <aph@cygnus.com>
3265 * configure.host: -ffloat-store added when compiling libjava on
3266 x86. fdlibm apparently relies on this.
3268 * java/lang/ThreadGroup.java (add): throw an exception if the
3269 ThreadGroup has been destroyed.
3271 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3274 1999-01-27 Tom Tromey <tromey@cygnus.com>
3276 * java/lang/StringBuffer.java (StringBuffer): Handle null
3279 1999-01-21 Tom Tromey <tromey@cygnus.com>
3281 * java/lang/natFirstThread.cc (run): Don't require main to be
3284 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3286 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3288 1999-01-20 Tom Tromey <tromey@cygnus.com>
3290 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3294 (unintern): Likewise.
3295 (_Jv_NewStringUtf8Const): Likewise.
3297 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3298 Character.isLetter, to see if character is self-quoting. Also,
3299 correctly handle quoted characters.
3300 (parse): Fixed typo. Also now throws ParseException.
3302 1999-01-15 Tom Tromey <tromey@cygnus.com>
3304 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3306 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3307 _Jv_SyncInfo has `init' member.
3309 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3312 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3313 IllegalMonitorStateException if unlock fails.
3315 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3317 (_Jv_NewObjectArray): Likewise.
3319 1999-01-14 Tom Tromey <tromey@cygnus.com>
3321 * java/lang/Character.java (isJavaIdentifierPart): Allow
3322 LETTER_NUMBER characters.
3324 * chartables.pl (process_char): Fixed error messages.
3326 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3327 * chartables.pl: Updated comments. Changed detection of non-digit
3328 numeric values (no longer miss \u00b2 and friends).
3330 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3331 currency symbols and connector punctuation.
3332 (isIdentifierIgnorable): Make 7f-9f ignorable.
3334 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3335 (_Jv_NewPrimArray): Likewise.
3336 (SIZE_T_MAX): New define.
3338 * java/lang/ClassLoader.java (system): Now private and final.
3340 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3343 * configure: Rebuilt.
3344 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3346 * exception.cc: Include gansidecl.h.
3348 1999-01-14 Andrew Haley <aph@cygnus.com>
3350 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3351 corrected: they didn't treat -0.0 and NaNs correctly.
3353 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3355 * nogc.cc: Use calloc to zero out memory.
3357 1999-01-11 Tom Tromey <tromey@cygnus.com>
3359 * java/lang/natClass.cc (isInstance): Return false if this class
3360 is primitive, not if class of `obj' is primitive.
3361 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3363 * java/io/SequenceInputStream.java (close): Handle case where `in'
3366 * java/text/DateFormat.java (format): New method.
3368 * mauve-libjava: Omit java.text.DateFormat.
3370 1999-01-08 Tom Tromey <tromey@cygnus.com>
3372 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3374 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3376 (_Jv_CondNotifyAll): Likewise.
3378 * configure: Rebuilt.
3379 * configure.in: Change --enable-source-compilation logic to work
3382 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3384 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3385 and RUNTESTFLAGS from AM_MAKEFLAGS.
3386 * configure.in: AM_RUNTESTFLAGS added.
3387 * configure.host: AM_RUNTESTFLAGS added.
3388 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3389 * configure: rebuilt.
3390 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3392 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3393 argv[] made conditional because embedded targets may not have
3395 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3396 explanatory comments added in call to super.
3398 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3399 exception thrown in the test harness itself added.
3400 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3402 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3404 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3406 1999-01-06 Tom Tromey <tromey@cygnus.com>
3408 * java/io/natFile.cc (get_entry): New function.
3409 (performList): Use get_entry.
3410 * include/config.h.in: Rebuilt.
3411 * acconfig.h (HAVE_READDIR_R): New define.
3412 * configure: Rebuilt.
3413 * configure.in: Look for readdir_r.
3415 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3417 * java/util/natDate.cc: Added copyright header.
3419 1999-01-05 Tom Tromey <tromey@cygnus.com>
3421 * include/config.h.in: Rebuilt.
3422 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3423 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3424 * configure: Rebuilt.
3425 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3426 unlink, and realpath.
3427 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3428 (stat): Conditionalize on HAVE_STAT.
3430 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3431 (performMkdir): Conditionalize on HAVE_MKDIR.
3432 (performRenameTo): Conditionalize on HAVE_RENAME.
3433 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3435 * include/config.h.in: Rebuilt.
3436 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3437 * configure: Rebuilt.
3438 * configure.in: Check for gmtime_r and localtime_r. For cross
3439 builds, assume they exist.
3441 * mauve-libjava: Include java.text.DateFormatSymbols again.
3442 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3443 from setAmPmStrings.
3445 * mauve-libjava: Omit java.text.DateFormatSymbols.
3447 1999-01-04 Tom Tromey <tromey@cygnus.com>
3449 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3451 * java/io/LineNumberReader.java (read): Decrement `count' in
3454 * java/io/BufferedWriter.java (write): Correctly determine when
3455 incoming data would overrun buffer. Flush buffer if write causes
3458 * java/io/BufferedOutputStream.java (write): Increment `count'
3459 after copying data into buffer.
3461 * java/io/FilterOutputStream.java (close): Call flush first.
3463 * java/io/PipedReader.java (read): If read causes `out' to catch
3464 up with `in', then set `in' to -1.
3466 * java/io/LineNumberInputStream.java (read): If no bytes read,
3467 return -1. If no bytes requested, return 0.
3469 * java/lang/StringBuffer.java (insert): If `str' is null, use
3472 1998-12-30 Anthony Green <green@cygnus.com>
3475 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3477 1998-12-23 Tom Tromey <tromey@cygnus.com>
3479 * java/io/PushbackInputStream.java (read): `off' already includes
3482 1998-12-17 Tom Tromey <tromey@cygnus.com>
3484 * Makefile.in: Rebuilt.
3485 * Makefile.am (GCJ_canadian): Include target_alias.
3487 * java/lang/natFirstThread.cc (run): Require main's class to be
3490 1998-12-16 Tom Tromey <tromey@cygnus.com>
3492 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3494 * java/util/ResourceBundle.java (getBundle): Throw
3495 NullPointerException if locale argument is null.
3497 * java/lang/natClass.cc (forName): Throw NullPointerException if
3499 Include NullPointerException.h.
3501 1998-12-14 Tom Tromey <tromey@cygnus.com>
3503 * java/lang/Character.java (Character): Implement Comparable.
3504 (compareTo): New methods.
3506 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3507 correct country and language codes.
3508 (UK, US): New constants.
3509 (setDefault): Language codes are lower-case.
3511 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3512 (getDeclaredConstructors): Likewise.
3513 (getDeclaredField): Likewise.
3514 (getDeclaredFields): Likewise.
3515 (getDeclaredMethod): Likewise.
3516 (getDeclaredMethods): Likewise.
3517 (getField): Likewise.
3518 (getFields): Likewise.
3519 (getMethod): Likewise.
3520 (getMethods): Likewise.
3521 * java/lang/Class.java: Declare new methods.
3522 * java/lang/Class.h: Declare new methods.
3524 * java/lang/natString.cc: Removed `#pragma implementation'.
3525 * include/cni.h (_Jv_GetStringChars): New function.
3526 * Makefile.in: Rebuilt.
3527 * Makefile.am (java/lang/String.h): Don't generate definition for
3530 * java/lang/natString.cc: Added `#pragma implementation'.
3532 * Makefile.in: Rebuilt.
3533 * Makefile.am (libjava.zip): Put build directory first in class
3534 path to avoid bug in compiler.
3536 1998-12-14 Anthony Green <green@cygnus.com>
3538 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3540 * include/javaprims.h: Add EventObject, ListResourceBundle and
3543 1998-12-13 Anthony Green <green@cygnus.com>
3545 * mauve-libjava: Run the ResourceBundle tests.
3547 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3550 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3552 * configure.in, configure: Make --enable-gcj-classes and
3553 --enable-source-compilation the default. (Nervously...) Yeah!
3554 Based on a patch from Tom Tromey.
3556 1998-12-13 Tom Tromey <tromey@cygnus.com>
3558 * java/util/EventObject.java: New file.
3559 * java/util/EventListener.java: New file.
3561 * include/javaprims.h: Updated class declarations.
3562 * Makefile.in: Rebuilt.
3563 * Makefile.am (nat_headers): Added Constructor.h.
3564 (java/lang/String.h): Don't inline String::length().
3565 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3566 * java/lang/Class.java (initializeClass, hackRunInitializers,
3567 hackTrampoline): No need to mark `final'.
3568 (getConstructor, getConstructors): Declare.
3569 * java/lang/reflect/Field.java (equals): New method.
3570 * java/lang/natClass.cc (getConstructor): New method.
3571 (getConstructors): Likewise.
3572 Include Method.h, Field.h, Constructor.h.
3573 * java/lang/reflect/Constructor.java: New file.
3574 * java/lang/reflect/Method.java (toString): No space before open
3576 (equals): Simplified.
3578 1998-12-13 Anthony Green <green@cygnus.com>
3580 * java/util/ResourceBundle.java: New file.
3581 * java/util/ListResourceBundle.java: New file.
3583 1998-12-12 Tom Tromey <tromey@cygnus.com>
3585 * java/lang/System.java (in, out, err): Now buffered streams by
3588 * include/javaprims.h: Updated class declarations.
3589 * Makefile.in: Rebuilt.
3590 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3591 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3593 (nat_files): Added natMethod.o.
3594 * java/lang/reflect/natMethod.cc: New file.
3595 * java/lang/reflect/Field.java (Field): Now extends
3597 * java/lang/reflect/AccessibleObject.java: New file.
3598 * java/lang/reflect/InvocationTargetException.java: New file.
3600 1998-12-11 Tom Tromey <tromey@cygnus.com>
3602 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3603 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3604 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3606 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3608 1998-12-09 Tom Tromey <tromey@cygnus.com>
3610 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3613 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3614 character is already titlecase.
3616 * java/lang/Character.java (isJavaLetter): Follow spec.
3617 (isJavaLetterOrDigit): Likewise.
3619 * java/util/GregorianCalendar.java (gregorianCutover): Append
3622 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3624 1998-12-08 Tom Tromey <tromey@cygnus.com>
3626 * java/lang/reflect/Modifier.java (toString): Replace second
3627 `static' with `synchronized'.
3629 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3630 * java/lang/Object.h (Object::hack12_6): Declare.
3631 * java/lang/Object.java (hack12_6): New function.
3633 1998-12-07 Tom Tromey <tromey@cygnus.com>
3635 * include/java-array.h (__JArray::clone): Removed decl.
3636 * prims.cc (__JArray::clone): Removed.
3637 * java/lang/natObject.cc (clone): Incorporate code to clone an
3640 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3641 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3642 Correctly use dtable_method_count.
3644 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3646 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3649 1998-12-06 Anthony Green <green@cygnus.com>
3651 * mauve-libjava: Don't test ResourceBundle.
3653 1998-12-04 Tom Tromey <tromey@cygnus.com>
3655 More JDK 1.2 spec fixes:
3656 * java/util/Date.java (millis): Now private.
3657 * java/text/DateFormat.java (DateFormat): Constructor now
3659 * java/lang/Void.java (Void): New private constructor.
3660 * java/lang/System.java (System): New private constructor.
3661 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3663 (currentClassLoader): New method.
3664 (currentLoadedClass): New method.
3665 * java/lang/Math.java (Math): New private constructor.
3666 * java/lang/Compiler.java (Compiler): New private constructor.
3667 * java/lang/Class.java (Class): New private constructor.
3668 * java/lang/Double.java (toString): Removed access specifier from
3669 two-argument `toString' method.
3671 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3673 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3674 causes it to be flushed from an fp register (where it may be
3675 longer than double precision) to a double in memory. This is
3676 essential to ensure correct rounding behaviour.
3678 1998-12-04 Tom Tromey <tromey@cygnus.com>
3680 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3683 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3684 explaining apparent divergence from JDK 1.2.
3686 1998-12-04 Per Bothner <bothner@cygnus.com>
3688 * include/no-threads.h: Remove unused parameter names.
3689 This silences a bunch of warnings.
3691 1998-12-04 Tom Tromey <tromey@cygnus.com>
3693 * include/config.h.in: Rebuilt.
3694 * acconfig.h (HAVE_CTIME_R): New symbol.
3696 1998-12-03 Tom Tromey <tromey@cygnus.com>
3698 * mauve-libjava: Added many more categories to reject.
3700 Changes to follow JDK1.2 spec:
3701 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3702 setErr, setIn, setOut): No need to be `final'.
3703 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3704 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3705 * java/lang/Object.java (wait): `nanos' argument is an int.
3706 * java/lang/VirtualMachineError.java: Class is abstract.
3707 * java/lang/ThreadDeath.java: Made constructors public.
3708 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3711 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3713 * java/text/DateFormatSymbols.java (getAmPmStrings,
3714 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3716 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3718 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3719 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3720 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3723 * java/lang/IllegalThreadStateException.java
3724 (IllegalThreadStateException): Changed extending class to match spec.
3726 * java/lang/NumberFormatException.java
3727 (java/lang/NumberFormatException): Changed extending class to match
3730 * java/util/Observer.java (Observer): Changed sig to match JCL.
3732 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3734 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3735 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3736 signature to match JDK 1.1 and 1.2.
3738 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3740 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3741 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3742 * Makefile.in, configure: Rebuilt.
3744 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3747 1998-12-02 Tom Tromey <tromey@cygnus.com>
3749 * mauve-libjava: New file.
3751 The remaining `-W -Wall' fixes:
3752 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3754 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3756 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3758 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3760 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3762 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3764 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3766 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3768 * java/lang/mprec.c (Balloc): Removed unused variable.
3769 (mult): Added parentheses per gcc suggestion.
3770 (pow5mult): Likewise.
3775 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3776 suggestion. Added cast to `int' to avoid signed/unsigned
3778 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3780 (IsAssignableFrom): Likewise.
3781 (_Jv_JNI_GetObjectField): Likewise.
3782 (_Jv_JNI_GetByteField): Likewise.
3783 (_Jv_JNI_GetShortField): Likewise.
3784 (_Jv_JNI_GetIntField): Likewise.
3785 (_Jv_JNI_GetLongField): Likewise.
3786 (_Jv_JNI_GetStringLength): Likewise.
3787 (_Jv_JNI_ToReflectedField): Likewise.
3788 (_Jv_JNI_FromReflectedField): Likewise.
3789 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3791 * Makefile.in: Rebuilt.
3792 * Makefile.am (AM_CFLAGS): Define conditionally.
3793 (WARNINGS): New macro.
3794 (AM_CXXFLAGS): Include WARNINGS.
3795 * configure: Rebuilt.
3796 * configure.in (USING_GCC): New conditional.
3798 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3800 * java/lang/Character.java: Changed classification constants to
3801 type `byte' to match JDK 1.2 docs.
3803 1998-12-01 Tom Tromey <tromey@cygnus.com>
3805 Some fixes to be `-W -Wall' clean:
3806 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3807 (_Jv_MarkArray): Likewise.
3808 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3809 (to_upper_title): Likewise.
3810 (isTitleCase): Likewise.
3811 (toTitleCase): Likewise.
3812 (getNumericValue): Likewise.
3813 (isLowerCase): Likewise.
3814 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3815 (avoids compiler warning).
3816 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3818 (getDeclaringClass): Likewise.
3819 (_Jv_LookupInterfaceMethod): Likewise.
3820 (_Jv_NewClass): Removed name of unused parameter.
3821 * exception.cc (_Jv_type_matcher): Removed unused variable.
3822 (_Jv_setup_eh_info): Removed name of unused parameter.
3823 * prims.cc (_Jv_NewArray): Always return a value.
3824 (_Jv_FindClassFromSignature): Likewise.
3825 * include/java-field.h (getNameUtf8Const): Removed name of unused
3827 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3829 (_Jv_ThreadSetPriority): Likewise.
3831 * java/lang/natString.cc (hashChars): Now static.
3833 * java/lang/FirstThread.java (FirstThread): Now final.
3835 * java/io/File.java (performMkdir, performRenameTo): Now private.
3837 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3838 if no time function defined.
3840 * configure: Rebuilt.
3841 * configure.in: Look for ctime_r, ctime.
3842 * java/util/Date.java (toString): Now native.
3843 * java/util/natDate.cc (toString): Rewrote.
3845 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
3847 * Add LDFLAGS line to allow TX39 test cases to link when cross
3850 1998-11-23 Anthony Green <green@cygnus.com>
3852 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3853 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3854 quick-threads.cc, include/boehm-gc.h, include/cni.h,
3855 include/java-array.h, include/java-assert.h, include/java-field.h,
3856 include/javaprims.h, include/jni.h, include/jvm.h,
3857 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3858 include/quick-threads.h, java/io/BufferedInputStream.java,
3859 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3860 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3861 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3862 java/io/CharArrayWriter.java,
3863 java/io/CharConversionException.java, java/io/DataInput.java,
3864 java/io/DataInputStream.java, java/io/DataOutput.java,
3865 java/io/DataOutputStream.java, java/io/EOFException.java,
3866 java/io/File.java, java/io/FileDescriptor.java,
3867 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3868 java/io/FileOutputStream.java, java/io/FileReader.java,
3869 java/io/FileWriter.java, java/io/FilenameFilter.java,
3870 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3871 java/io/FilterReader.java, java/io/FilterWriter.java,
3872 java/io/IOException.java, java/io/InputStream.java,
3873 java/io/InputStreamReader.java,
3874 java/io/InterruptedIOException.java,
3875 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3876 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3877 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3878 java/io/PipedReader.java, java/io/PipedWriter.java,
3879 java/io/PrintStream.java, java/io/PrintWriter.java,
3880 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3881 java/io/RandomAccessFile.java, java/io/Reader.java,
3882 java/io/SequenceInputStream.java, java/io/Serializable.java,
3883 java/io/StreamTokenizer.java,
3884 java/io/StringBufferInputStream.java, java/io/StringReader.java,
3885 java/io/StringWriter.java, java/io/SyncFailedException.java,
3886 java/io/UTFDataFormatException.java,
3887 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3888 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3889 java/io/natFileDescriptorPosix.cc,
3890 java/lang/AbstractMethodError.java,
3891 java/lang/ArithmeticException.java,
3892 java/lang/ArrayIndexOutOfBoundsException.java,
3893 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3894 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3895 java/lang/Class.java, java/lang/ClassCastException.java,
3896 java/lang/ClassCircularityError.java,
3897 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3898 java/lang/ClassNotFoundException.java,
3899 java/lang/CloneNotSupportedException.java,
3900 java/lang/Cloneable.java, java/lang/Comparable.java,
3901 java/lang/Compiler.java, java/lang/Double.java,
3902 java/lang/Error.java, java/lang/Exception.java,
3903 java/lang/ExceptionInInitializerError.java,
3904 java/lang/FirstThread.java, java/lang/Float.java,
3905 java/lang/IllegalAccessError.java,
3906 java/lang/IllegalAccessException.java,
3907 java/lang/IllegalArgumentException.java,
3908 java/lang/IllegalMonitorStateException.java,
3909 java/lang/IllegalStateException.java,
3910 java/lang/IllegalThreadStateException.java,
3911 java/lang/IncompatibleClassChangeError.java,
3912 java/lang/IndexOutOfBoundsException.java,
3913 java/lang/InstantiationError.java,
3914 java/lang/InstantiationException.java, java/lang/Integer.java,
3915 java/lang/InternalError.java, java/lang/InterruptedException.java,
3916 java/lang/LinkageError.java, java/lang/Long.java,
3917 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3918 java/lang/NoClassDefFoundError.java,
3919 java/lang/NoSuchFieldError.java,
3920 java/lang/NoSuchFieldException.java,
3921 java/lang/NoSuchMethodError.java,
3922 java/lang/NoSuchMethodException.java,
3923 java/lang/NullPointerException.java, java/lang/Number.java,
3924 java/lang/NumberFormatException.java, java/lang/Object.h,
3925 java/lang/Object.java, java/lang/OutOfMemoryError.java,
3926 java/lang/Process.java, java/lang/Runnable.java,
3927 java/lang/Runtime.java, java/lang/RuntimeException.java,
3928 java/lang/SecurityException.java, java/lang/SecurityManager.java,
3929 java/lang/Short.java, java/lang/StackOverflowError.java,
3930 java/lang/String.java, java/lang/StringBuffer.java,
3931 java/lang/StringIndexOutOfBoundsException.java,
3932 java/lang/System.java, java/lang/Thread.java,
3933 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3934 java/lang/Throwable.java, java/lang/UnknownError.java,
3935 java/lang/UnsatisfiedLinkError.java,
3936 java/lang/UnsupportedOperationException.java,
3937 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3938 java/lang/Void.java, java/lang/natCharacter.cc,
3939 java/lang/natClass.cc, java/lang/natDouble.cc,
3940 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3941 java/lang/natMath.cc, java/lang/natObject.cc,
3942 java/lang/natRuntime.cc, java/lang/natString.cc,
3943 java/lang/natSystem.cc, java/lang/natThread.cc,
3944 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3945 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3946 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3947 java/text/FieldPosition.java, java/text/Format.java,
3948 java/text/NumberFormat.java, java/text/ParseException.java,
3949 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3950 java/util/BitSet.java, java/util/Calendar.java,
3951 java/util/ConcurrentModificationException.java,
3952 java/util/Date.java, java/util/Dictionary.java,
3953 java/util/EmptyStackException.java, java/util/Enumeration.java,
3954 java/util/GregorianCalendar.java, java/util/Hashtable.java,
3955 java/util/Locale.java, java/util/MissingResourceException.java,
3956 java/util/NoSuchElementException.java, java/util/Observable.java,
3957 java/util/Observer.java, java/util/Properties.java,
3958 java/util/Random.java, java/util/SimpleTimeZone.java,
3959 java/util/Stack.java, java/util/StringTokenizer.java,
3960 java/util/TimeZone.java, java/util/TooManyListenersException.java,
3961 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
3964 * exception.cc: Include eh-common.h instead of duplicating
3967 1998-11-23 Tom Tromey <tromey@cygnus.com>
3969 * configure.host: Don't add `-O2' to libjava_flags. Only add
3970 `-Os' to libjava_flags once.
3972 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
3974 * Makefile.am: add LIBJAVA_JAVAFLAGS.
3975 * Makefile.in: likewise
3976 * acconfig.h: add ECOS conditional for configure.h
3977 * config.h.in: likewise
3978 * configure: add test for --with-ecos
3979 * configure.in: likewise
3980 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
3981 rename call to avoid name clash.
3982 * java/lang/natSystem.cc: add eCos clock support.
3983 * java/util/natGregorianCalendar.cc: add eCos support.
3985 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3987 * Makefile.am, Makefile.in, configure.host: tx39 build option
3990 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
3992 * java/io/BufferedReader.java: Added more comments for clarity.
3993 (mark): Used more mnemonic name for local var extraBuffSpace.
3995 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
3996 confusion with private method of same name in superclass.
3997 (skipRedundantLF): Set fields in special case to avoid infinite
3998 recursion. Check if markPos has been invalidated in special case.
3999 (readLine): Rewritten to use readLine method of superclass.
4000 (skip): Incorporated code from lineEnd.
4002 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4004 * java/io/BufferedReader.java (readLine): New method.
4005 (lineEnd): new private method.
4006 (mark): Track special case for readLine of getting '\r' at the
4013 * java/io/InputStreamReader.java (read): Return number chars skipped
4014 rather than requested.
4016 * java/lang/StringBuffer.java (append): Update count and differentiate
4017 between field and local variable.
4019 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4020 seconds. Deal with military style time.
4021 (parse): Consistently treat all timezones in minutes until final
4022 calculation. Flag as non-local timezone. Return value in milliseconds.
4023 (setTime): Adjust for year offset from 1900.
4024 (UTC): Adjust for year offset from 1900.
4026 1998-11-17 Tom Tromey <tromey@cygnus.com>
4028 * configure: Rebuilt.
4029 * configure.in: Switch on host, not target.
4031 * Makefile.in: Rebuilt.
4032 * Makefile.am (GCJ_no): New macro.
4033 (GCJ): Use @CANADIAN@.
4034 (GCJH_no): New macro
4035 (GCJH_canadian): New macro.
4036 (GCJH): Use @CANADIAN@.
4037 (ZIP_no): New macro.
4038 (ZIP_canadian): New macro.
4039 (ZIP): Use @CANADIAN@.
4040 * aclocal.m4, configure: Rebuilt.
4041 * configure.in (CANADIAN): Compute and subst.
4043 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4045 * java/io/FileDescriptor.java (finalize): Only close file
4046 descriptor if valid.
4048 1998-11-17 Tom Tromey <tromey@cygnus.com>
4050 * prims.cc (_Jv_InitRuntime): Removed.
4052 1998-11-16 Tom Tromey <tromey@cygnus.com>
4054 * java/io/FileOutputStream.java (close): Only close file
4055 descriptor if valid.
4056 (finalize): New method.
4058 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4059 (_Jv_NewPrimArray): Likewise.
4060 * boehm.cc (_Jv_RegisterFinalizer): Use
4061 GC_REGISTER_FINALIZER_NO_ORDER.
4062 (GC_GENERIC_MALLOC): New define.
4063 (_Jv_AllocObj): Use it.
4064 (_Jv_AllocArray): Likewise.
4065 (_Jv_AllocBytes): Likewise.
4066 (_Jv_MarkObj): Just return if vtbl not set.
4067 (_Jv_MarkArray): Likewise.
4068 (MAYBE_MARK): New macro; use everywhere.
4069 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4071 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4073 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4074 to a jlong before calculation to prevent overflow.
4076 1998-11-16 Tom Tromey <tromey@cygnus.com>
4078 * Makefile.in: Rebuilt.
4079 * Makefile.am (nat_headers): Fixed typo.
4081 1998-11-15 Tom Tromey <tromey@cygnus.com>
4083 * java/lang/Class.h (Class::getName): Removed definition.
4084 * Makefile.in: Rebuilt.
4085 * Makefile.am (nat_headers): Added InstantiationException.h,
4086 NoSuchMethodException.h.
4087 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4088 (init_name): New global.
4089 (hackRunInitializers): Use clinit_name.
4090 Include InstantiationException.h, NoSuchMethodException.h.
4091 (newInstance): Do some error checking (but not all). Call
4093 (forName): Throw exception if class not found.
4094 (getName): New method.
4095 (forName): Transform class name from external format to internal
4096 format before lookup.
4098 1998-11-15 Anthony Green <green@cygnus.com>
4100 * java/lang/Class.h (Class::forName): Method is static.
4102 * java/lang/natClass.cc (newInstance): Add simple implementation.
4105 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4107 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4108 int), for compatibility with jc1.
4110 1998-11-14 Tom Tromey <tromey@cygnus.com>
4112 * include/config.h.in: Rebuilt.
4113 * acconfig.h (LINUX_THREADS): New define.
4114 * configure: Rebuilt.
4115 * configure.in: Define LINUX_THREADS if using POSIX threads on
4116 Linux. Look for pthread_mutexattr_setkind_np function.
4117 * posix-threads.cc (throw_cleanup): New function.
4118 (really_start): Push cleanup function.
4119 (_Jv_ThreadCancel): New function.
4120 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4121 (_Jv_ThreadInitData): Set `exception' field in new structure.
4122 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4124 (_Jv_ThreadWait): New function.
4125 (_Jv_InitThreads): Initialize daemon globals.
4126 (FLAG_DAEMON): New macro.
4127 (really_start): Notify daemon_cond when non-daemon thread exits.
4128 Include <java/lang/System.h>.
4129 (struct starter): `object' field now a thread.
4130 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4131 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4132 (_Jv_ThreadWait): Removed definition.
4133 (_Jv_Thread_t): Added `exception' field.
4134 (_Jv_ThreadCancel): Removed definition.
4136 1998-11-13 Tom Tromey <tromey@cygnus.com>
4138 * Makefile.in: Rebuilt.
4139 * Makefile.am (libjava.zip): Compute javac before changing
4142 * Makefile.in: Rebuilt.
4143 * Makefile.am (libjava.zip): Include directory entries.
4145 * Makefile.in: Rebuilt.
4146 * Makefile.am (expanded): New macro.
4149 1998-11-12 Tom Tromey <tromey@cygnus.com>
4151 * prims.cc (clone): New function.
4152 * include/java-array.h (__JArray::clone): Removed definition.
4154 * java/lang/natObject.cc (clone): Don't assert that class is not
4155 an array; array's `clone' method just calls this one.
4157 * Makefile.in: Rebuilt.
4158 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4159 Now creates zip file. Changed all users.
4161 (data_DATA): New macro.
4163 1998-11-11 Tom Tromey <tromey@cygnus.com>
4165 * configure: Rebuilt.
4166 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4168 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4170 * java/io/InputStream.java (reset): Add msg to thrown exception.
4172 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4174 * java/io/LineNumberInputStream.java: Rewritten.
4176 * java/io/StringBufferInputStream.java: Removed extraneous import.
4178 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4180 * java/io/StringBufferInputStream.java: Rewritten.
4182 * java/util/Date.java (parseMonth): Optimize.
4183 (parseDayOfWeek): Created.
4184 (parse): Optimize to use parseDayOfWeek.
4186 1998-11-11 Tom Tromey <tromey@cygnus.com>
4188 * java/lang/StringBuffer.java (append): Handle case where STR is
4191 * include/javaprims.h: Regenerated class declarations.
4193 * configure: Rebuilt.
4194 * configure.in: Added --enable-gcj-classes,
4195 --enable-single-compilation, --enable-source-compilation flags.
4196 * Makefile.in: Rebuilt.
4197 * Makefile.am (java_io_files): New macro.
4198 (java_lang_files): Likewise.
4199 (java_text_files): Likewise.
4200 (java_util_files): Likewise.
4201 (java_files): Use new macros.
4202 (java-io.o): New target.
4203 (java-lang.o): Likewise.
4204 (java-text.o): Likewise.
4205 (java-util.o): Likewise.
4206 (src_io_files): New macro.
4207 (src_lang_files): Likewise.
4208 (src_text_files): Likewise.
4209 (src_util_files): Likewise.
4210 (class_io_files): New macro.
4211 (class_lang_files): Likewise.
4212 (class_text_files): Likewise.
4213 (class_util_files): Likewise.
4214 (class_files): Use new macros.
4215 (javao_files): Define conditionally.
4216 (.java.o): New target.
4217 ($(javao_files)): New target.
4219 (GCJH): Added $(EXEEXT).
4220 (CLASSPATH_ENV): Removed.
4221 (GCJCOMPILE): New macro.
4223 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4225 * java/util/Date.java (parse): Written from scratch.
4227 1998-11-11 Tom Tromey <tromey@cygnus.com>
4229 * java/lang/Throwable.java (toString): Correct sense of test for
4230 determining when to include detail message in result.
4232 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4235 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4237 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4239 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4240 (_Jv_RegisterClass): Use it.
4241 * include/jvm.h (_Jv_RegisterClasses): Declare.
4242 * java/lang/natObject.cc (init): Removed.
4243 (sync_init): Never call _Jv_InitializeSyncMutex.
4244 (_Jv_InitializeSyncMutex): Don't set `init'.
4245 * prims.cc (JvRunMain): Don't run init functions.
4247 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4249 * java/lang/natClass.cc (initializeClass): Set state before
4250 resolving constants.
4252 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4253 (STATE_RESOLVED): New macro.
4254 (initializeClass): Call resolveConstants.
4255 (hackRunInitializers): Don't call resolveConstants.
4256 (_Jv_FindArrayClass): Move short-circuit return for primitive
4257 element types earlier in function.
4259 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4261 * prims.cc (no_memory): New global.
4262 (_Jv_makeUtf8Const): Throw no_memory.
4263 (_Jv_AllocObject): Likewise.
4264 (_Jv_NewObjectArray): Likewise.
4265 (_Jv_NewPrimArray): Likewise.
4266 (JvRunMain): Initialize no_memory.
4268 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4270 * java/io/FileInputStream.java: Corrected date comment.
4271 * java/io/SequenceInputStream.java: Rewritten.
4273 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4275 * java/lang/FirstThread.java (die): New method.
4276 * java/lang/natFirstThread.cc (die): Removed.
4278 (run): Use `DIE', not `die'.
4280 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4282 * java/io/CharArrayReader.java (read): Move check into synchronized
4283 block to prevent a close while in progress.
4286 * java/io/PushbackReader.java (read): Ditto.
4289 * java/io/StringReader.java (mark): Ditto.
4294 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4296 * java/io/PipedInputStream.java: Updated status.
4297 (connect): Added code to prevent infinite recursion and to
4298 differentiate exception causes.
4299 (read): Added code to differentiate exception causes.
4300 (receive): Made exception pass string with the cause.
4302 * java/io/PipedOutputStream.java: Updated status.
4303 (connect): Added code to call connect at the other end of the pipe.
4305 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4307 * java/io/PipedInputStream.java (connect): Throw exception if
4308 already connected to the same output stream.
4309 (read): Do bounds checking first.
4311 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4313 * java/io/PipedInputStream.java: Added private boolean outClosed.
4314 (available): Removed check if output stream is open.
4315 (close): Mark the buffer as empty so available returns 0.
4316 (read): Check if the output stream was closed and then return EOF
4317 when the buffer is empty.
4318 (receive): Mark the output stream as closed when passed a -1.
4320 * java/io/PipedOutputStream.java (close): Notify the input stream
4321 that there's no more data coming.
4322 (connect): Added a FIXME comment to note more coordination needed
4323 with PipedInputStream.
4324 (flush): Added a FIXME comment to mark what this method might do
4327 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4329 * java/io/PipedInputStream.java: Rewritten.
4331 1998-10-30 Tom Tromey <tromey@cygnus.com>
4333 * java/lang/Throwable.java: Rewrote from scratch.
4335 * java/lang/Class.h (Class): Don't mention newMultiArray.
4336 * prims.cc (newMultiArray): Removed.
4337 (_Jv_NewMultiArray): Removed.
4338 (newArray): Removed.
4339 (new_multi_array): New function.
4340 (_Jv_NewMultiArray): Rewrote from scratch.
4342 * include/javaprims.h: Regenerated class declarations.
4343 * classes.pl (scan): Don't declare PrimClass.
4344 * include/cni.h (JvPrimClass): Use new names for classes.
4345 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4346 added _Jv_PrimClass.
4347 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4348 (_Jv_initPrimClass): Removed.
4349 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4350 (_Jv_AllocObject): Added comment.
4351 (_Jv_NewObjectArray): Likewise.
4352 (_Jv_NewPrimArray): Likewise.
4354 1998-10-29 Tom Tromey <tromey@cygnus.com>
4356 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4357 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4359 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4361 * java/lang/natObject.cc (init): New global.
4362 (sync_init): Call _Jv_InitializeSyncMutex if required.
4364 * Makefile.in: Rebuilt.
4365 * Makefile.am (nat_headers): Added ClassLoader.h.
4366 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4367 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4368 internalAddClass, lookupArray no longer friends.
4369 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4370 _Jv_FindArrayClass now friends.
4371 * java/lang/natClass.cc (HASH_LEN): New macro.
4372 (HASH_UTF): Likewise.
4373 (loaded_classes): New global.
4374 (_Jv_FindClass): New function.
4375 (ClassClass): New define.
4376 (_Jv_FindClassInCache): New function.
4377 (_Jv_RegisterClass): Likewise.
4378 (_Jv_NewClass): Likewise.
4380 (ObjectClass): New define.
4381 (CloneableClass): New define.
4382 * prims.cc (_Jv_FindClass): Removed.
4383 (simpleLookupClass): Removed.
4384 (insertClass): Removed.
4385 (CLASSHASHSZ): Removed.
4386 (classPool): Removed.
4387 (_Jv_RegisterClass): Removed.
4388 (internalAddClass): Removed.
4389 (ClassClass): Removed.
4390 (RuntimeClass): Removed.
4391 (lookupArray): Removed.
4392 (CloneableClass): Removed.
4393 (CLASSMAXSIG): Removed.
4394 Rearranged file to group related functions together.
4395 (_Jv_IsInstanceOf): Moved to natClass.cc.
4396 (abort_final): Removed.
4397 Removed some unused includes.
4398 (classFromSig): Removed.
4399 (_Jv_FindClassFromSignature): New function.
4400 (_Jv_initPrimClass): Renamed.
4401 (getClass): Removed.
4403 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4405 * java/io/FileDescriptor.java (finalize): Throws IOException
4406 instead of Throwable.
4408 * java/io/FileInputStream.java: Rewritten.
4410 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4411 at the end of a comment.
4413 1998-10-29 Tom Tromey <tromey@cygnus.com>
4415 * include/javaprims.h: Regenerated class declarations.
4416 * classes.pl (scan): Don't special-case ClassLoader.
4418 * prims.cc (processClass): Removed.
4419 (_Jv_InitClass): Removed.
4420 Removed all CSTATE_ macros.
4421 (resolveConstants): Removed.
4423 (_Jv_NewMultiArray): Cleaned up.
4424 * Makefile.in: Rebuilt.
4425 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4426 * java/lang/Class.h (Class): Declare new methods. processClass no
4428 * java/lang/Class.java (hackTrampoline): New method.
4429 (initializeClass): Declare.
4430 (hackRunInitializers): Declare.
4431 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4432 (initializeClass): New method.
4433 (hackRunInitializers): New method.
4434 (init_name, void_signature): Moved from prims.cc.
4435 (_Jv_InitClass): New function.
4436 (isAssignableFrom): Don't call processClass.
4437 (STATE_NOTHING): New macro.
4438 (resolveConstants): New function.
4440 (ErrorClass): New define.
4442 * java/lang/Class.java (getClassLoader): Declare.
4443 * java/lang/ClassLoader.java: Rewrote from scratch.
4445 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4446 AbstractMethodError.h, IllegalAccessError.h,
4447 NoClassDefFoundError.h.
4448 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4449 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4450 longer static. Changed return type.
4451 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4452 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4453 * prims.cc (findMethodLocal): Removed.
4454 (processClass): Use _Jv_GetMethodLocal.
4456 1998-10-28 Tom Tromey <tromey@cygnus.com>
4458 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4459 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4461 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4462 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4464 * include/jni.h: Added copyright header.
4465 * include/javaprims.h: Added copyright header.
4466 * include/java-field.h: Added copyright header.
4467 * include/java-array.h: Added copyright header.
4468 * include/cni.h: Added copyright header.
4470 * include/javaprims.h: Regenerated class declarations using
4471 classes.pl; now they are complete.
4472 * classes.pl: New file.
4474 * java/lang/natMath.cc: Include <config.h>.
4475 * java/lang/reflect/natField.cc: Include <config.h>.
4476 * java/util/NativeUtil.java: Removed.
4477 * Makefile.in: Rebuilt.
4478 * Makefile.am (nat_headers): Added Math.h.
4479 * java/lang/Math.h: Removed.
4480 * java/util/natGregorianCalendar.cc: Added copyright header.
4482 * java/lang/natFloat.cc: Added copyright header.
4483 * java/lang/Byte.java: Added copyright header.
4484 * java/lang/Void.java: Added copyright header.
4485 * java/lang/Short.java: Added copyright header.
4487 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4489 * include/javaprims.h (java::io): Added bunch of missing classes.
4491 * java/io/DataInputStream.java (readLine): Added a special case
4492 for handling BufferedInputStream data to reduce the likelihood
4493 of a pushback error.
4494 (skipBytes): Added code to handle negative number of skip bytes.
4496 * java/io/StreamTokenizer.java: Rewritten.
4498 1998-10-28 Tom Tromey <tromey@cygnus.com>
4500 * java/util/natGregorianCalendar.cc (computeFields): Call
4501 getRawOffset as a method.
4503 * include/javaprims.h (java::io): Added FilterOutputStream.
4504 * Makefile.in: Rebuilt.
4505 * Makefile.am (nat_headers): Added PrintStream.h,
4506 FilterOutputStream.h.
4507 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4509 (die): New function.
4510 (run): Die if `main' not found, is not public, or is not static.
4512 * boehm.cc (_Jv_MarkObj): Use new field names.
4513 * include/java-field.h (JvGetFirstInstanceField): Use new field
4515 (JvNumInstanceFields): Likewise.
4516 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4517 (getInterfaces): Likewise.
4518 * prims.cc (CLASS_CONSTANTS): Removed.
4519 (CLASS_CONST_SIZE): Likewise.
4520 (CLASS_CONST_TAG): Likewise.
4521 (CLASS_CONST_DATA): Likewise.
4522 (CLASS_CONST_UTF8): Likewise.
4523 (WORD2UTF): Likewise.
4524 (CLASS_CLASS): Likewise.
4525 (CLASS_PRIM_SIG): Likewise.
4526 (CLASS_ARRAY_CACHE): Likewise.
4527 (HASH_CHARS): Likewise.
4528 (hashClassName): Likewise.
4529 Many changes to use new field names.
4530 * java/lang/Class.h (Class): Renamed fields to track compiler.
4532 1998-10-27 Tom Tromey <tromey@cygnus.com>
4534 * java/lang/natClass.cc: Use #pragma implementation.
4535 (getComponentType): Moved into header.
4536 (getModifiers): Likewise.
4537 (getName): Likewise.
4538 (getSuperclass): Likewise.
4539 (isArray): Likewise.
4540 (isPrimitive): Likewise.
4541 * include/jvm.h (_Jv_FindClass): Declare.
4542 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4543 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4544 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4545 * java/lang/Class.h: Rewrote from scratch.
4546 * prims.cc: Many changes to work with new Class.h.
4547 * include/java-field.h (CLASS_FIELDS): Removed.
4548 (CLASS_SFIELDS): Likewise.
4549 (CLASS_IFIELDS): Likewise.
4550 (CLASS_NFIELDS): Likewise.
4551 (CLASS_NIFIELDS): Likewise.
4552 (CLASS_NSFIELDS): Likewise.
4553 (CLASS_FSIZE): Likewise.
4554 (JvGetFirstInstanceField): Rewrote.
4555 (JvNumInstanceFields): Likewise.
4557 * java/lang/Object.h: Added copyright comment.
4559 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4561 * java/text: New package directory.
4562 * java/text/FieldPosition.java: New class.
4563 * java/text/ParsePosition.java: New class.
4564 * java/text/ParseException.java: New Exception class.
4565 * java/text/Format.java: New class.
4566 * java/text/NumberFormat.java: New (empty placeholder) class.
4567 * java/text/DateFormatSymbols.java: New class (no Locales support).
4568 * java/text/DateFormat.java: New Format class (incomplete).
4569 * java/text/SimpleDateFormat.java: New DateFormat class.
4571 * include/javaprims.h (java::test): Added new package and classes.
4572 * java/util/Calendar.java (clone): New method.
4573 * java/util/Date.java (toString): Added non-native implementation.
4574 (parse): Made public instead of synchronized.
4575 * java/util/natDate.cc (toString): Removed.
4576 * java/util/natGregorianCalendar.cc (computeFields):
4577 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4579 1998-10-27 Tom Tromey <tromey@cygnus.com>
4581 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4583 * prims.cc (lookupArray): Added explanatory comment.
4584 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4585 class. Mark the class of each object.
4586 (_Jv_MarkArray): Mark the object's class.
4588 * configure: Rebuilt.
4589 * configure.in: Create java-gc.h.
4590 * include/boehm-gc.h: New file.
4591 * include/no-gc.h: New file.
4592 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4594 * java/lang/Object.h: Include java-gc.h.
4595 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4596 friends, if defined.
4597 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4599 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4601 1998-10-26 Tom Tromey <tromey@cygnus.com>
4603 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4604 paragraph separators, not numbers.
4606 * java/io/Writer.java (write): Removed write(char) to avoid
4608 * java/util/Properties.java: Rewrote from scratch.
4609 * include/javaprims.h (java::io): Added PrintWriter,
4610 BufferedWriter, PushbackReader.
4612 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4614 * java/lang/System.java: exit() is a static method.
4616 1998-10-26 Tom Tromey <tromey@cygnus.com>
4618 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4620 (_Jv_NewStringUtf8Const): Likewise.
4621 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4622 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4624 * java/lang/Object.h (Object): Add mark_array as friend function.
4625 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4626 _Jv_AllocBytes, to ensure that header is marked.
4627 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4629 (mark_array): Push sync_info field for array.
4631 1998-10-24 Tom Tromey <tromey@cygnus.com>
4633 * java/lang/String.java (String): Updated for StringBuffer
4635 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4637 * java/lang/StringBuffer.java: Renamed fields to conform to
4638 serialization spec: buffer->value, next->count, copy->shared.
4640 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4642 * java/util/TimeZone.java: New class.
4643 * java/util/SimpleTimeZone.java: New class.
4644 * java/util/Locale.java: New file.
4645 * java/util/Calendar.java: Make almost complete.
4646 * java/util/GregorianCalendar.java
4647 * java/util/natGregorianCalendar.cc: New file.
4648 * java/util/Date.java: Re-written from scratch.
4649 * java/util/natDate.cc (setTime): Removed - no longer native.
4650 * include/javaprims.h (java::util): Add new classes.
4651 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4652 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4654 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4656 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4657 returning it as a jint.
4659 1998-10-23 Tom Tromey <tromey@cygnus.com>
4661 * prims.cc (arg_vec, main_group, main_thread): New globals.
4662 (JvRunMain): Use them.
4664 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4666 * java/io/DataInputStream.java: Rewritten.
4668 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4669 tertiary bytes with 0x80 per spec.
4671 1998-10-23 Tom Tromey <tromey@cygnus.com>
4673 * java/lang/String.java (init): Changed name of `copy' argument.
4674 * java/lang/natString.cc (init): Inverted sense of `copy'
4677 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4678 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4679 * boehm.cc (ObjectClass): New define.
4680 (ClassClass): Likewise.
4681 (mark_obj): Special-case Object and Class.
4683 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4685 * java/util/BitSet.java: Rewrote from scratch.
4687 * prims.cc (lookupArray): Removed useless cast.
4689 * java/lang/natObject.cc: Use `#pragma implementation'.
4691 * java/lang/String.java (init): Added `copy' argument.
4692 (String): Look in StringBuffer to find char array.
4693 * java/lang/natString.cc (init): Added `copy' argument.
4694 * java/lang/StringBuffer.java: Rewrote from scratch.
4696 * java/lang/Compiler.java: Rewrote from scratch.
4697 * java/lang/Throwable.java: Don't use NativeLang.
4698 * include/javaprims.h (java::lang): Don't mention NativeLang.
4699 * java/lang/Process.java: Rewrote from scratch.
4700 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4702 (currentClassLoader): Likewise.
4703 (currentLoadedClass): Likewise.
4704 * java/lang/natClass.cc (getClassLoader): Commented out.
4705 * java/lang/Class.java (getClassLoader): Commented out.
4706 * java/lang/Compiler.java: Removed.
4707 * java/lang/NativeLang.java: Removed.
4709 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4710 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4711 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4712 (_Jv_hashUtf8String): Now static.
4713 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4714 name of return type.
4716 * java/lang/Class.h (Class): Declare checkMemberAccess.
4717 * Makefile.in: Rebuilt.
4718 * Makefile.am (nat_headers): Added Member.h.
4719 * java/lang/natClass.cc: Include Member.h.
4720 (getDeclaredClasses): Call checkMemberAccess.
4721 * java/lang/Class.java (checkMemberAccess): Call
4722 SecurityManager.checkMemberAccess.
4724 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4726 * java/lang/SecurityManager.java: Rewritten.
4728 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4730 * java/applet/Applet.java, java/applet/AppletContext.java,
4731 java/applet/AppletStub.java, java/applet/AudioClip.java,
4732 java/awt/AWTError.java, java/awt/AWTException.java,
4733 java/awt/BorderLayout.java, java/awt/Button.java,
4734 java/awt/Canvas.java, java/awt/CardLayout.java,
4735 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4736 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4737 java/awt/Color.java, java/awt/Component.java,
4738 java/awt/Container.java, java/awt/Dialog.java,
4739 java/awt/Dimension.java, java/awt/Event.java,
4740 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4741 java/awt/Font.java, java/awt/FontMetrics.java,
4742 java/awt/Frame.java, java/awt/Graphics.java,
4743 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4744 java/awt/GridLayout.java, java/awt/Image.java,
4745 java/awt/Insets.java, java/awt/Label.java,
4746 java/awt/LayoutManager.java, java/awt/List.java,
4747 java/awt/MediaTracker.java, java/awt/Menu.java,
4748 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4749 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4750 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4751 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4752 java/awt/TextArea.java, java/awt/TextComponent.java,
4753 java/awt/TextField.java, java/awt/Toolkit.java,
4754 java/awt/Window.java, java/awt/image/ColorModel.java,
4755 java/awt/image/CropImageFilter.java,
4756 java/awt/image/DirectColorModel.java,
4757 java/awt/image/FilteredImageSource.java,
4758 java/awt/image/ImageConsumer.java,
4759 java/awt/image/ImageFilter.java,
4760 java/awt/image/ImageObserver.java,
4761 java/awt/image/ImageProducer.java,
4762 java/awt/image/IndexColorModel.java,
4763 java/awt/image/MemoryImageSource.java,
4764 java/awt/image/PixelGrabber.java,
4765 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4766 java/awt/peer/CanvasPeer.java,
4767 java/awt/peer/CheckboxMenuItemPeer.java,
4768 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4769 java/awt/peer/ComponentPeer.java,
4770 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4771 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4772 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4773 java/awt/peer/MenuBarPeer.java,
4774 java/awt/peer/MenuComponentPeer.java,
4775 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4776 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4777 java/awt/peer/TextAreaPeer.java,
4778 java/awt/peer/TextComponentPeer.java,
4779 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4780 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4781 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4782 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4783 java/net/MalformedURLException.java, java/net/NativeNet.java,
4784 java/net/ProtocolException.java, java/net/ServerSocket.java,
4785 java/net/Socket.java, java/net/SocketException.java,
4786 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4787 java/net/URL.java, java/net/URLConnection.java,
4788 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4789 java/net/URLStreamHandlerFactory.java,
4790 java/net/UnknownHostException.java,
4791 java/net/UnknownServiceException.java: Removed.
4793 1998-10-22 Tom Tromey <tromey@cygnus.com>
4795 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4796 finalizer is not Object.finalize.
4797 (internalAddClass): Don't set `final' member of class.
4798 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4799 other places that know about finalize() location.
4800 * java/lang/Class.h (Class): Removed `final' field.
4802 * aclocal.m4, configure: Rebuilt.
4803 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4804 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4806 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4807 * Makefile.in: Rebuilt.
4808 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4810 1998-10-21 Tom Tromey <tromey@cygnus.com>
4812 * java/lang/Object.java (finalize): Move to be first method in
4815 * configure: Rebuilt.
4816 * configure.in (GCINCS): Include contents of boehm-cflags file.
4818 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4820 * java/lang/ArrayIndexOutOfBoundsException.java
4821 (ArrayIndexOutOfBoundsException): Fixed string literal.
4822 * java/lang/StringIndexOutOfBoundsException.java
4823 (StringIndexOutOfBoundsException): Fixed string literal.
4825 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4827 * natFileDescriptorEcos.cc added.
4828 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4830 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4832 * acconfig.h: test for __int32_t and __uint32_t added.
4833 * include/config.h.in: test for __int32_t and __uint32_t added.
4834 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4835 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4836 * configure.in: test for __int32_t and __uint32_t added.
4837 * configure: test for __int32_t and __uint32_t added.
4839 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4841 * configure.in: Test for --enable ecos and link
4842 natFileDescriptor.cc to natFileDescriptorEcos.cc or
4843 natFileDescriptorPosix.cc
4845 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4847 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
4849 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4852 * java/io/CharArrayReader.java (close): Synchronize on lock
4853 object per Reader contract.
4854 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4855 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4856 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4857 Ensure that arg passed in isn't negative.
4859 * java/io/FilterReader.java (FilterReader): Use the lock obj when
4860 constructing the superclass.
4862 * java/io/PushbackReader.java (close): Synchronize on lock
4863 object per Reader contract.
4864 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4865 (ready): Synchronize on lock obj. Throw IOException if reader
4867 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4868 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4869 Ensure that arg passed in isn't negative.
4870 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
4872 * java/io/StringReader.java: Created.
4874 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
4876 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4878 (read): Removed synchronized modifier to match JCL.
4879 (reset): Removed synchronized modifier to match JCL.
4880 (skip): Removed synchronized modifier to match JCL.
4882 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
4884 * java/io/PushbackReader.java (PushbackReader): Made
4885 constructors public.
4887 1998-10-17 Tom Tromey <tromey@cygnus.com>
4889 * java/io/PushbackInputStream.java (PushbackInputStream): Made
4890 constructors public.
4892 1998-10-16 Anthony Green <green@cygnus.com>
4894 * aclocal.m4, configure: Rebuilt.
4895 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4897 * configure.host: Rewrote.
4898 * Makefile.in: Rebuilt.
4899 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4900 (AM_CFLAGS): New macro.
4901 ($(c_files)): Use COMPILE macro.
4902 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4903 automake problem(s).
4905 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
4907 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4909 * java/io/CharArrayReader.java: Created.
4911 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
4913 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4914 size check to allow 0 per JCL.
4916 * java/io/PushbackReader.java: Created.
4918 1998-10-16 Tom Tromey <tromey@cygnus.com>
4920 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4921 <sys/time.h> includes.
4922 * java/io/natFile.cc: Conditionalize <unistd.h> include.
4923 * include/no-threads.h: Conditionalize <unistd.h> include on
4926 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4928 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4931 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
4933 * java/io/FilterReader.java: Created.
4935 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
4937 * java/io/PushbackInputStream.java: Rewritten.
4939 * java/io/BufferedInputStream.java (BufferedInputStream): Check
4940 that size passed to constructor is legal.
4941 (read): Check that args passed in are legal.
4942 (skip): Rewritten to get rid of the temporary buffer.
4943 (refill): Added marklimit check to grow the buffer.
4945 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4947 (bytesAvail): Removed.
4948 (read): Changed bytesAvail to Math.min.
4949 (skip): Changed bytesAvail to Math.min.
4951 * java/io/InputStream.java (read): Got rid of extraneous exceptions
4952 from the throws clause.
4953 (skip): Rewritten to use a temporary buffer.
4955 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4957 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4960 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4962 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4963 to write the double one word at a time.
4965 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
4967 * java/io/BufferedInputStream.java: Rewritten.
4969 1998-10-12 Tom Tromey <tromey@cygnus.com>
4971 * jni.cc: Include config.h and stddef.h.
4973 * java/lang/Class.h (_dispatchTable): Removed again.
4974 Removed all ACC_* defines again.
4976 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
4978 * Makefile.am (nat_files): Add netField.o.
4979 (libjava_a_SOURCES): Add jni.cc.
4980 (java/lang/reflect/Field.h): New rule.
4981 * Makefile.in: Re-generated.
4982 * include/javaprims.h: Add some extra class and typedefs.
4983 * include/jni.h: New file.
4986 * include/java-field.h: New file.
4987 * include/jvm.h: #include <java-field.h>.
4988 * boehm.cc: #include <java-field.h>.
4989 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
4990 * java/lang/reflect/Member.java: New class.
4991 * java/lang/reflect/Field.java: New class. (Very incomplete.)
4992 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
4994 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
4996 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
4997 testsuite/Makefile.in: Rebuilt.
4998 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
4999 * configure.host: Created.
5001 1998-10-10 Tom Tromey <tromey@cygnus.com>
5003 * java/lang/natObject.cc (sync_init): Always allocate a new
5006 1998-10-09 Tom Tromey <tromey@cygnus.com>
5008 * java/io/ByteArrayInputStream.java (mark): Renamed from
5011 * java/io/FileOutputStream.java (finalize): Removed.
5012 * java/io/FileDescriptor.java (finalize): New method.
5014 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5016 * ByteArrayInputStream.java: Corrected status comment.
5018 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5020 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5022 1998-10-08 Tom Tromey <tromey@cygnus.com>
5024 * prims.cc (lookupArray): Use static array to initialize list of
5027 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5029 * prims.cc (lookupArray): Initialize the msize for new
5032 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5034 * configure: Rebuilt.
5035 * configure.in: Check for fsync and sleep.
5036 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5038 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5039 HAVE_SLEEP. Include config.h.
5041 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5042 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5045 1998-10-08 Tom Tromey <tromey@cygnus.com>
5047 * java/io/natFile.cc: Don't include SecurityManager.h.
5048 (performList): Renamed.
5049 (performMkdir): Likewise.
5050 (performRenameTo): Likewise.
5051 (performDelete): Likewise.
5053 * java/io/File.java (performDelete): Renamed from natDelete.
5054 (list): Now written in Java.
5055 (performList): New method.
5056 (performMkdir): New method.
5057 (mkdir): Now written in Java.
5058 (performRenameTo): New method.
5059 (renameTo): Now written in Java.
5061 1998-10-06 Tom Tromey <tromey@cygnus.com>
5063 * Makefile.in: Rebuilt.
5064 * Makefile.am (ETAGS_ARGS): New macro.
5065 (TAGS_DEPENDENCIES): Likewise.
5067 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5069 * Makefile.in: Rebuilt.
5070 * Makefile.am: Use -classpath option with javac.
5072 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5074 * java/io/FileOutputStream.java (finalize): Call
5077 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5079 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5081 * java/lang/mprec.c: Ditto.
5083 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5086 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5088 * java/io/InputStream.java (skip): Make local var i a long.
5090 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5092 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5093 * prims.cc (lookupArray): Use memcpy, not memmove.
5094 * include/config.h.in: Rebuilt.
5095 * acconfig.h (HAVE_MEMCPY): Added.
5096 * configure: Rebuilt.
5097 * configure.in: Check for memcpy again.
5099 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5100 String.compareTo, not ==.
5102 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5103 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5104 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5105 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5106 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5107 into new array's dtable.
5108 (_Jv_AllocObject): Use _Jv_DispatchTable.
5109 (_Jv_NewPrimArray): Likewise.
5110 (_Jv_NewObjectArray): Likewise.
5112 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5114 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5115 offending index value.
5116 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5118 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5119 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5121 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5123 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5125 * java/io/OutputStream.java (write): Use off and len parameters to
5126 output partial byte array.
5128 * java/io/BufferedReader.java, java/io/FileReader.java,
5129 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5130 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5131 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5132 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5134 * include/javaprims.h (java::lang): Added
5135 ExceptionInInitializerError, IllegalStateException,
5136 NoSuchFieldException, and UnsupportedOperationException.
5138 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5140 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5143 * include/java-array.h (__JArray): Added clone method.
5144 * prims.cc (CloneableClass): New define.
5145 (lookupArray): Initialize array class to indicate that it
5146 implements Cloneable.
5148 * java/lang/Class.h: Removed all ACC_* defines.
5149 * prims.cc: Include Modifier.h.
5150 (_Jv_LookupInterfaceMethod): Use methods in
5151 java.lang.reflect.Modifier, not ACC_ defines.
5153 * java/lang/Class.h (Class): Declare getClasses,
5154 getDeclaredClasses, getDeclaringClass, getModifiers,
5155 * java/lang/Class.java: Rewrote from scratch.
5157 * include/javaprims.h (java::lang): Added reflect and
5159 * Makefile.in: Rebuilt.
5160 * Makefile.am (nat_headers): Added Modifier.h.
5162 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5165 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5167 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5168 instead of test and abort.
5170 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5171 remove compiler warning.
5173 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5175 * java/lang/natDouble.cc: zero terminate string.
5176 * strtod.c: Set errno if no digits are found in fraction.
5178 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5180 * java/lang/reflect/Modifier.java: New file.
5182 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5183 * java/lang/VerifyError.java: Rewrote from scratch.
5184 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5185 * java/lang/UnknownError.java: Rewrote from scratch.
5186 * java/lang/StackOverflowError.java: Rewrote from scratch.
5187 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5188 * java/lang/InternalError.java: Rewrote from scratch.
5189 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5190 * java/lang/ExceptionInInitializerError.java: New file.
5191 * java/lang/Error.java: Rewrote from scratch.
5192 * java/lang/ClassFormatError.java: Rewrote from scratch.
5193 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5194 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5195 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5196 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5197 * java/lang/LinkageError.java: Rewrote from scratch.
5198 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5200 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5202 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5203 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5205 * include/cni.h (JvAllocObject): Moved from prims.cc.
5207 * prims.cc (JvAllocObject): Moved to cni.h.
5208 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5209 (finalize_name): Removed.
5211 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5213 * java/lang/Class.h (Class): Added size() method.
5214 * prims.cc (_Jv_MonitorEnter): Removed.
5215 (_Jv_MonitorExit): Removed.
5216 * java/lang/Object.h (JvSyncInfo): Removed.
5217 * Makefile.in: Rebuilt.
5218 * Makefile.am (nat_headers): Added Cloneable.h,
5219 CloneNotSupportedException.h.
5220 * java/lang/Object.h: Rewrote.
5221 * java/lang/natObject.cc: Rewrote from scratch.
5222 * java/lang/Object.java: Rewrote from scratch.
5224 * java/io/natFile.cc: Conditionally include <dirent.h>.
5225 (list): If no <dirent.h>, always return NULL.
5226 * configure: Rebuilt.
5227 * configure.in: Check for dirent.h.
5229 * prims.cc (lookupArray): Don't use sprintf.
5231 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5238 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5239 name conflict with method.
5241 * include/javaprims.h (java::util): Added HashtableEntry.
5243 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5245 * java/util/Hashtable.java: Rewritten.
5247 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5249 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5253 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5256 * posix-threads.cc (_Jv_CondWait): Now returns int.
5257 * include/javaprims.h (java::lang): Added
5258 IllegalMonitorStateException.
5259 * Makefile.in: Rebuilt.
5260 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5261 * include/no-threads.h (_Jv_CondDestroy): Removed.
5262 (_Jv_MutexDestroy): Removed.
5263 (_Jv_CondWait): Now returns int.
5264 (_Jv_CondNotify): Likewise. Added mutex argument.
5265 (_Jv_CondNotifyAll): Likewise.
5266 (_Jv_MutexLock): Always succeed.
5267 (_Jv_MutexUnlock): Likewise.
5268 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5269 (_Jv_HaveMutexDestroy): Define.
5270 (_Jv_CondNotify): Now returns int. Added mutex argument.
5271 (_Jv_CondNotifyAll): Likewise.
5272 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5273 (_Jv_MutexDestroy): Removed.
5274 (_Jv_CondWait): Now returns int.
5275 (_Jv_CondNotify): Likewise. Added mutex argument.
5276 (_Jv_CondNotifyAll): Likewise.
5277 * java/lang/natObject.cc (finalize_sync_info): New function.
5278 (init_mutex): Initialize `init' and register finalizer if
5281 (init_mutex): Use it.
5283 (notifyAll): Use it.
5285 (notify): Throw IllegalMonitorStateException on failure.
5286 (notifyAll): Likewise.
5287 (wait): Likewise. Also, throw InterruptedException if
5289 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5290 InterruptedException.h, IllegalArgumentException.h.
5291 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5293 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5294 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5295 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5296 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5297 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5298 * quick-threads.cc: Renamed all `JvPriv' functions.
5299 * prims.cc: Renamed all `JvPriv' functions.
5300 * posix-threads.cc: Renamed all `JvPriv' functions.
5301 * nogc.cc: Renamed all `JvPriv' functions.
5302 * no-threads.cc: Renamed all `JvPriv' functions.
5303 * boehm.cc: Renamed all `JvPriv' functions.
5304 * include/quick-threads.h: Renamed all `JvPriv' functions.
5305 * include/posix-threads.h: Renamed all `JvPriv' functions.
5306 * include/no-threads.h: Renamed all `JvPriv' functions.
5307 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5309 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5311 (JvPrivCondNotify): Do nothing.
5312 (JvPrivCondNotifyAll): Do nothing.
5314 * prims.cc (processClass): Handle case where state is
5317 * java/lang/natFirstThread.cc: Include <stdlib.h>
5319 * configure: Rebuilt.
5320 * configure.in: Fixed sense of --enable-libjava-debug.
5322 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5323 it can be used afterward by the assertion.
5325 * configure: Rebuilt.
5326 * configure.in: When cross-compiling, assume alloca.
5328 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5329 __builtin_alloca (autoconf docs are wrong here).
5331 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5333 (available): Use `FD_ZERO' (typo fix).
5335 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5337 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5338 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5340 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5341 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5344 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5346 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5348 * java/lang/natDouble.cc: Declare alloca safely.
5350 * configure, include/config.h.in: Rebuilt.
5351 * configure.in: Add alloca check.
5353 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5355 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5356 condition while calling notify.
5357 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5358 (interrupt): Hold mutex for interrupt condition while calling
5361 * java/lang/natString.cc (init): Allocate and try to read `count'
5362 characters, not `count - offset' characters.
5364 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5365 Correctly compute `count'.
5367 * java/lang/Boolean.java (getBoolean): Return false if property
5370 * java/lang/System.java (setProperties): Set prop_init.
5372 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5374 * java/io/PrintStream.java (println): Use line.separator, not
5376 * java/lang/System.java (out, err): Make both autoflush streams.
5377 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5379 * include/config.h.in: Rebuilt.
5380 * acconfig.h (HAVE_MEMCPY): Removed.
5381 * configure: Rebuilt.
5382 * configure.in: Never define HAVE_MEMCPY.
5384 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5386 (_Jv_AllocString): Use JvAllocObject again.
5387 * java/lang/Class.h (thread): New field.
5388 (_Jv_AllocString): No longer a friend.
5389 * prims.cc (processClass): Removed dead code. Changed to more
5390 closely follow the Java Language Specification.
5391 (processClass): Return early if already at the right state.
5393 * prims.cc (JvNewStringUTF): Removed.
5394 * include/cni.h (JvNewStringUTF): New function.
5395 (_Jv_NewStringUTF): Declare as `extern "C"'.
5396 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5398 * java/lang/natDouble.cc: Added copyright info and header
5399 comment. Include <stdlib.h>.
5400 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5401 bytes as are chars in string.
5403 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5405 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5409 * java/lang/System.java (init_properties): Now native.
5410 * java/lang/natSystem.cc (init_properties): New method.
5411 Include java/util/Properties.h.
5413 * Makefile.in: Rebuilt.
5414 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5415 OutputStreamWriter.h, ByteArrayInputStream.h,
5416 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5417 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5418 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5419 Properties.h, Hashtable.h, Dictionary.h.
5422 * include/javaprims.h (java::io): Added Reader, Writer,
5423 InputStreamReader, OutputStreamWriter,
5424 UnsupportedEncodingException, ByteArrayInputStream,
5425 ByteArrayOutputStream, EOFException, SyncFailedException,
5426 PushbackInputStream.
5427 (java::lang): Added Cloneable.
5428 (java::util): Added NoSuchElementException, VectorEnumeration,
5429 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5431 * java/io/PipedReader.java: New file.
5433 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5435 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5438 * java/io/io-defs.h: Removed.
5440 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5441 (FileInputStream): Use new constructor. Can throw IOException.
5443 * java/lang/System.java (getProperty): Don't throw
5444 NullPointerException.
5446 * java/io/RandomAccessFile.java: Rewrote from scratch.
5448 * java/io/natFileDescriptor.cc: Include EOFException.h.
5450 (length): New method.
5451 (getFilePointer): New method.
5453 (available): New method.
5454 * java/io/FileDescriptor.java (SET, CUR): New constants.
5455 (seek, length, getFilePointer, read, available): New decls.
5457 * java/io/PipedWriter.java: New file.
5458 * java/io/StringWriter.java: New file.
5459 * java/io/CharArrayWriter.java: New file.
5460 * java/io/CharConversionException.java: New file.
5461 * java/io/BufferedWriter.java: New file.
5462 * java/io/FilterWriter.java: New file.
5463 * java/io/FileWriter.java: New file.
5465 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5466 OutputStreamWriter.h, NullPointerException.h,
5467 ByteArrayInputStream.h, InputStreamReader.h.
5468 (getBytes): New method.
5469 (init): Throw NullPointerException.
5470 (init): New function.
5471 * java/lang/String.java (getBytes): Added missing decl.
5472 (getBytes): New method.
5473 (String): Added byte[]-based constructors.
5474 (copyValueOf): Wrote.
5475 (init): Declare variant which takes byte array and encoding.
5476 Import java.io.UnsupportedEncodingException.
5478 * java/io/File.java: Rewrote from scratch.
5479 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5480 * java/io/FileDescriptor.java: Rewrote from scratch.
5481 * java/io/FilenameFilter.java: Rewrote from scratch.
5483 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5485 * java/io/SyncFailedException.java: New file.
5486 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5487 * java/io/InterruptedIOException.java: Rewrote from scratch.
5488 * java/io/FileNotFoundException.java: Rewrote from scratch.
5489 * java/io/EOFException.java: Rewrote from scratch.
5490 * java/io/IOException.java: Rewrote from scratch.
5491 * java/io/PrintStream.java: Rewrote from scratch.
5492 * java/io/DataOutputStream.java: Rewrote from scratch.
5493 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5494 * java/io/FilterOutputStream.java: Rewrote from scratch.
5495 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5496 * java/io/PipedOutputStream.java: Rewrote from scratch.
5497 * java/io/FileOutputStream.java: Rewrote from scratch.
5498 * java/io/OutputStream.java: Rewrote from scratch.
5499 * java/io/DataOutput.java: Rewrote from scratch.
5501 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5503 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5505 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5507 * configure.in: Add --enable-libjava-debug
5509 * Makefile.am (nat_headers): Add java/lang/Float.h and
5512 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5514 * Makefile.in, configure, include/config.h.in: Rebuilt.
5516 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5518 * java/lang/Float.java: Rewritten
5519 * java/lang/Double.java: Rewritten
5520 * java/lang/natFloat.cc: toString() added.
5521 * java/lang/natDouble.cc: toString() added.
5522 * java/lang/natDouble.cc: doubleValueOf() added.
5523 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5524 java/lang/strtod.c: added.
5525 * ieeefp.h: __sparc added.
5526 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5528 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5530 * include/javaprims.h (java::lang): Added
5531 CloneNotSupportedException.
5533 * java/lang/Object.java (clone): No longer native. Implemented.
5534 * java/lang/natObject.cc (clone): Removed.
5536 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5538 * prims.cc: Don't make definitions `extern "C"'.
5539 (_Jv_RegisterClass): Renamed from registerClass.
5540 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5541 (_Jv_NewArray): Likewise.
5542 (_Jv_NewMultiArray): Likewise.
5543 (_Jv_CheckCast): Likewise.
5544 (_Jv_LookupInterfaceMethod): Likewise.
5545 (_Jv_CheckArrayStore): Likewise.
5546 (_Jv_RegisterClass): Likewise.
5548 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5549 * configure: Rebuilt.
5550 * configure.in: Don't check for fmod; it is provided by the fdlibm
5552 * prims.cc (fmod): Removed.
5554 * java/lang/natString.cc (charAt): Use _Jv_uint.
5555 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5556 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5557 (equalUtf8Consts): Likewise.
5558 (internalAddClass): Use _Jv_uint.
5559 (processClass): Likewise.
5560 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5561 (_Jv_uint): Renamed from uint32.
5562 (struct _Jv_Utf8Const): Changed members to use new type names.
5564 * configure: Rebuilt.
5565 * configure.in: Don't check for memcpy. Require memmove and a way
5567 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5569 (currentTimeMillis): Don't use #error.
5571 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5573 * java/lang/Math.java: static member random renamed to random_ to
5574 avoid conflict with member function of the same name.
5575 * include/javaprims.h: java.util.Random added.
5577 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5579 * include/java-chartables.h: Regenerated.
5580 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5583 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5585 * java/lang/Math.java: Rewritten.
5586 * java/lang/natMath.cc: New file.
5587 * Files added from fdlibm:
5588 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5589 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5590 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5591 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5592 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5593 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5594 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5595 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5596 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5597 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5598 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5599 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5600 java/lang/k_cos.c, java/lang/sf_ceil.c,
5601 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5602 java/lang/ieeefp.h, java/lang/fdlibm.h
5603 * Makefile.am: rules added for compiling C files from fdlibm.
5605 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5607 * chartables.pl: Minor documentation fixes.
5609 * configure: Rebuilt.
5610 * configure.in: Fixed --help output for --enable-fast-character.
5612 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5614 * configure: Rebuilt.
5615 * configure.in: Recognize --enable-fast-character.
5616 * acconfig.h (COMPACT_CHARACTER): New define.
5617 * include/config.h.in: Rebuilt.
5618 * include/java-chartables.h: New file.
5619 * Makefile.in: Rebuilt.
5620 * Makefile.am (nat_files): Added natCharacter.o.
5621 * java/lang/natCharacter.cc: New file.
5622 * chartables.pl (set_attribute): New function.
5623 (@attributes, @second_attributes): New globals.
5624 ($ROMAN_START, $ROMAN_END): Likewise.
5625 (process_char): Call set_attribute when required.
5626 (print_char): Just print hex value.
5627 (print_block): Generate C++ syntax.
5628 (print_numerics): Likewise.
5629 (print_single_map): Likewise.
5630 (print_all_block): Likewise.
5631 (print_case_table): Likewise.
5632 (print_fast_tables): New function.
5633 Generate C++ code suitable for a header file.
5634 * java/lang/Character.java (table_search): Removed.
5635 (digit_value): Now native.
5636 (getNumericValue): Likewise.
5637 (getType): Likewise.
5638 Removed all automatically-generated tables.
5639 (Tamil_Digit_One): Removed.
5640 (isSpaceChar): Now native.
5641 (isTitleCase): Likewise.
5642 (isLowerCase): Likewise.
5643 (isUpperCase): Likewise.
5644 (toLowerCase): Likewise.
5645 (toTitleCase): Likewise.
5646 (toUpperCase): Likewise.
5647 (isDefined): Fixed sense of test.
5649 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5651 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5653 (regionMatches): Likewise.
5655 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5657 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5659 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5661 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5664 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5667 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5669 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5671 * prims.cc (instanceof_class): Removed.
5672 (instanceof_array): Likewise.
5673 (instanceof): Likewise.
5674 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5675 (_Jv_CheckCast): Likewise.
5676 * java/lang/natClass.cc (isAssignableFrom): New method.
5677 * java/lang/Class.java (isAssignableFrom): Now native.
5679 * include/cni.h (JvThrow): Use `extern inline'.
5680 (JvAllocObject): Likewise.
5681 (JvInitClass): Likewise.
5683 * java/lang/natSystem.cc (arraycopy): Only check class of source
5686 * prims.cc (_Jv_CheckArrayStore): Wrote.
5687 (_Jv_MonitorEnter): Prefer `JvThrow'.
5688 Include ArrayStoreException.h.
5689 (_Jv_CheckCast): Indentation cleanup.
5691 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5693 * chartables.pl: New file.
5694 * java/lang/Character.java: Rewrote from scratch.
5696 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5698 * java/lang/ArithmeticException.java,
5699 java/lang/ArrayIndexOutOfBoundsException.java,
5700 java/lang/ArrayStoreException.java,
5701 java/lang/ClassCastException.java,
5702 java/lang/ClassNotFoundException.java,
5703 java/lang/CloneNotSupportedException.java,
5704 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5705 java/lang/IllegalArgumentException.java,
5706 java/lang/IllegalMonitorStateException.java,
5707 java/lang/IllegalThreadStateException.java,
5708 java/lang/IndexOutOfBoundsException.java,
5709 java/lang/InstantiationException.java,
5710 java/lang/InterruptedException.java,
5711 java/lang/NegativeArraySizeException.java,
5712 java/lang/NoSuchMethodException.java,
5713 java/lang/NullPointerException.java,
5714 java/lang/NumberFormatException.java,
5715 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5716 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5718 * java/lang/IllegalStateException.java,
5719 java/lang/NoSuchFieldException.java,
5720 java/lang/UnsupportedOperationException.java: Created.
5722 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5724 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5725 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5727 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5729 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5731 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5733 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5735 * Makefile.in: Rebuilt.
5737 * include/javaprims.h (java::lang): Added
5738 StringIndexOutOfBoundsException.
5740 * java/lang/String.java: Added header comment and FIXME comment for
5741 missing constructors/methods.
5742 (endsWith): Adjusted offset into string to look at just the last chars.
5743 Commented out undocumented method.
5745 * java/lang/natString.cc: Added includes for
5746 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5747 (String::init): Throw StringIndexOutOfBoundsException.
5748 (String::charAt): Throw StringIndexOutOfBoundsException.
5749 (String::substring): Throw StringIndexOutOfBoundsException.
5750 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5751 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5752 (String::compareTo): Return difference/offset between chars/strings.
5754 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5756 * java/lang/Boolean.java (TYPE): Added comment.
5758 * java/lang/Byte.java (decode): Added - commented out until dependent
5759 code for Integer is written.
5760 (compareTo): JDK 1.2 methods written.
5761 (hashCode): Added comment to note that values have been verified.
5763 * java/lang/Short.java (decode): Added - commented out until dependent
5764 code for Integer is written.
5765 (compareTo): JDK 1.2 methods written.
5766 (hashCode): Added comment to note that values have been verified.
5768 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5770 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5772 * include/javaprims.h (java::lang): Added VirtualMachineError,
5774 * Makefile.in: Rebuilt.
5775 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5776 VirtualMachineError.h.
5777 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5778 (lookupArray): Likewise.
5779 (makeUtf8Const): Likewise.
5780 (_Jv_AllocObject): Likewise.
5781 (_Jv_NewObjectArray): Likewise.
5782 Include OutOfMemoryError.h.
5784 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5785 to use JvNewStringLatin1.
5787 * java/io/io-defs.h: Include java/lang/IOException.h.
5788 * Makefile.in: Rebuilt.
5789 * Makefile.am (nat_headers): Added
5790 ArrayIndexOutOfBoundsException.h,
5791 ClassFormatError.h,ClassNotFoundException.h,
5792 ClassCircularityError.h, ClassCastException.h,
5793 IncompatibleClassChangeError.h, AbstractMethodError.h,
5794 IllegalAccessError.h, LinkageError.h, Error.h,
5795 NegativeArraySizeException.h, IOException.h.
5796 * include/cni.h (SignalError): Removed declaration.
5797 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5798 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5799 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5800 (newInstance): Likewise.
5801 (forName): Likewise.
5802 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5804 (read): Use JvThrow, not SignalError.
5809 (open_read): Likewise.
5810 (open_write): Likewise.
5813 (newstr): New function.
5814 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5816 (lastModifiedUnchecked): Likewise.
5817 (lengthUnchecked): Likewise.
5818 * include/javaprims.h (sorry): Removed declaration.
5819 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5820 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5821 ClassCastException, IncompatibleClassChangeError,
5822 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5823 * prims.cc (instanceof_array): Use JvFail, not sorry.
5825 Include ArrayIndexOutOfBoundsException.h,
5826 ClassFormatError.h,ClassNotFoundException.h,
5827 ClassCircularityError.h, ClassCastException.h,
5828 IncompatibleClassChangeError.h, AbstractMethodError.h,
5829 IllegalAccessError.h, NegativeArraySizeException.h.
5830 (_Jv_ThrowBadArrayIndex): Implemented.
5831 (JvNewStringUTF): Use JvFail, not sorry.
5832 (_Jv_FindClass): Likewise.
5833 (_Jv_NewArray): Likewise.
5834 (throwException): Removed.
5835 (getClass): Use JvThrow.
5836 (processClass): Likewise.
5837 (_Jv_NewObjectArray): Likewise.
5838 (_Jv_NewMultiArray): Likewise.
5839 (_Jv_CheckCast): Likewise.
5840 (_Jv_LookupInterfaceMethod): Likewise.
5841 (SignalError): Removed.
5842 (getClass): Use _Jv_NewStringUtf8Const to create String.
5844 * java/lang/natSystem.cc (arraycopy): Throw
5845 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5847 * Makefile.in: Rebuilt.
5848 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
5850 * include/java-array.h: Mention gcjh, not gjavah.
5852 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5853 (canReadUnchecked): Likewise.
5854 (canWriteUnchecked): Likewise.
5855 (isFileUnchecked): Likewise.
5856 * java/io/natFileDescriptor.cc: Don't include cni.h.
5858 * java/lang/Thread.java (run__): Declare.
5859 * java/lang/natThread.cc (run__): New method, to avoid compiler
5861 (start): Use run__, not run_.
5863 * java/io/io-defs.h: Include cni.h and jvm.h.
5865 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
5867 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5868 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
5869 to natString.cc (with suitable renaming, inlines etc).
5870 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
5871 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
5872 * java/lang/String.h: Removed - now generated using gjavah.
5873 * java/lang/String.java: Re-written from scratch. Many native methods.
5874 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
5875 * java/lang/natString.cc: Many functions re-written for "compact
5876 strings" representation, or native java.lang.String methods added.
5877 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
5878 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
5879 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
5880 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
5881 * include/cni.h: Add inline method.
5882 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
5883 * include/javaprims.h: Moved some stuff frm String.h.
5884 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
5885 * Makefile.am (nat_header): Added Character.h and String.h.
5886 (String.h): Add new rule.
5888 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5890 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
5892 * posix-threads.cc: Include cni.h, jvm.h.
5893 * quick-threads.cc: Include cni.h, jvm.h.
5894 * nogc.cc: Include cni.h, not javaprims.h.
5895 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5896 * java/lang/natThread.cc: Rearranged #include ordering. Don't
5897 include java-assert.h.
5898 * java/lang/natSystem.cc: Include cni.h. Don't include
5900 * java/lang/natRuntime.cc: Include cni.h. Don't include
5902 * prims.cc: Rearranged #include ordering. Don't include
5903 java-array.h or java-assert.h.
5904 * boehm.cc: Include config.h, cni.h.
5905 * exception.cc: Include config.h, cni.h.
5906 * include/jvm.h: Include java-assert.h.
5907 * include/cni.h: Include java/lang/Object.h. Don't include
5908 java-threads.h or java-array.h.
5910 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
5912 * java/lang/Boolean.java: Rewritten.
5914 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5916 * java/lang/natFirstThread.cc (main_func): New typedef.
5917 (run): Use main_func, not JvPrivThreadStartFunc.
5918 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5920 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5922 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5925 Can't throw Java exceptions with C++ `throw':
5926 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5927 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5928 (setPriority): Likewise.
5932 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5933 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5935 Can't catch Java exceptions from C++:
5936 * java/lang/natThread.cc (finish_): New method.
5938 * java/lang/Thread.java (run_): Rewrote in Java.
5939 (finish_): New native method.
5941 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
5943 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5945 * include/javaprims.h (java::io): Added Serializable.
5947 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
5949 * java/util/EmptyStackException.java,
5950 java/util/NoSuchElementException.java: Rewritten.
5952 * java/util/ConcurrentModificationException.java,
5953 java/util/MissingResourceException.java,
5954 java/util/TooManyListenersException.java: Created.
5956 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5958 * include/cni.h (JvThrow): New function.
5959 * include/javaprims.h (_Jv_Throw): Declare.
5961 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
5963 * java/util/Observable.java: Rewritten.
5965 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5967 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
5968 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
5969 Include NullPointerException.h.
5971 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
5973 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
5974 assignability checks. Don't bother using memcpy.
5976 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
5978 * include/quick-threads.h (JvPrivThreadWait): New function.
5979 * include/no-threads.h (JvPrivThreadWait): New function.
5980 * include/posix-threads.h (JvPrivThreadWait): New function.
5981 * prims.cc (JvRunMain): Call JvPrivThreadWait.
5983 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
5985 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
5986 offsets by size of type that is being copied.
5988 * java/lang/natThread.cc (start): Don't pass `object' argument to
5990 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
5991 * posix-threads.cc (JvPrivThreadStart): Removed `object'
5993 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
5994 always pass thread as object.
5995 * include/quick-threads.h, include/posix-threads.h,
5996 include/no-threads.h (JvPrivThreadStart): Removed `object'
5999 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6001 * java/util/Dictionary.java: Rewritten.
6003 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6005 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6006 (JvPrivThreadDestroy): Likewise.
6008 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6010 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6012 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6014 * java/lang/natSystem.cc: Rewrote from scratch.
6015 * java/lang/System.java: Rewrote from scratch.
6016 * java/lang/Class.h (Class): Declare isAssignableFrom.
6017 * include/javaprims.h (java::lang): Added ArrayStoreException,
6018 IndexOutOfBoundsException.
6019 * Makefile.in: Rebuilt.
6020 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6021 IndexOutOfBoundsException.h.
6022 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6023 * include/jvm.h (_Jv_HashCode): New function.
6025 * java/lang/natThread.cc (suspend): Call checkAccess.
6027 * java/lang/Thread.java (setDaemon): Call checkAccess.
6029 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6031 * java/lang/Runtime.java: Rewrote from scratch.
6032 * java/lang/natRuntime.cc: Rewrote from scratch.
6034 * nogc.cc (JvPrivGCTotalMemory): New function.
6035 (JvPrivGCFreeMemory): Likewise.
6036 (total): New global.
6037 (JvPrivAllocObj): Increment total.
6038 (JvPrivAllocArray): Likewise.
6039 (JvPrivAllocBytes): Likewise.
6040 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6041 * boehm.cc (JvPrivGCTotalMemory): New function.
6042 (sum_blocks): Likewise.
6043 (JvPrivGCFreeMemory): Likewise.
6045 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6047 * include/javaprims.h (java::lang): Added FirstThread.
6048 * java/lang/natFirstThread.cc: New file.
6049 * java/lang/FirstThread.java: New file.
6050 * prims.cc (main_signature): Removed.
6051 (main_name): Removed.
6052 #include FirstThread.h.
6053 * Makefile.in: Rebuilt.
6054 * Makefile.am (TFRIEND): Removed.
6055 (java/lang/Thread.h): Likewise.
6056 (FTFRIEND): New macro.
6057 (java/lang/FirstThread.h): New target.
6058 (nat_files): Added natFirstThread.o.
6059 (nat_headers): Added FirstThread.h.
6060 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6061 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6063 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6067 * java/lang/natThread.cc (start): Synchronize the thread.
6068 (stop): Synchronize the thread.
6070 * java/lang/ThreadDeath.java: Rewrote from scratch.
6072 * Makefile.in: Rebuilt.
6073 * Makefile.am (TGFRIEND): New macro.
6074 (java/lang/ThreadGroup.h): New target.
6075 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6077 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6079 * nogc.cc: Include config.h.
6081 * java/lang/ThreadGroup.java: Rewrote from scratch.
6083 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6085 * java/lang/Thread.java (checkAccess): Only call in to security
6086 manager if it exists.
6087 (Thread): Don't check access when creating the first thread. Add
6088 this thread to the appropriate ThreadGroup.
6090 * java/lang/natThread.cc (run_): Call uncaughtException method on
6093 * java/lang/Runnable.java: Rewrote from scratch.
6094 * java/lang/Thread.java: Updated copyright comment to correct
6097 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6099 * java/util/Random.java: Rewritten.
6101 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6103 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6104 trailing 0 in array[].
6106 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6108 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6109 and RUNTESTFLAGS from AM_MAKEFLAGS.
6110 (SUBDIRS): Conditionally include testsuite.
6111 * Makefile.in: Rebuilt.
6113 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6115 * java/lang/Object.h: Include java-assert.h.
6117 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6119 * Makefile.am: Add testsuite directory.
6120 * configure.in: Build testsuite/Makefile.
6121 * Makefile.in, configure: Rebuilt.
6123 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6125 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6126 * include/jvm.h (_Jv_StartFirstThread): Declare.
6128 * include/javaprims.h (java::lang): Added Exception,
6131 * Makefile.in: Rebuilt.
6132 * Makefile.am (nat_headers): Added NullPointerException.h,
6133 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6134 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6135 (java/lang/Thread.h): New target.
6136 (TFRIEND): New macro
6138 * include/java-assert.h (JvFail): Use 0 and not NULL.
6140 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6141 instead of assuming we are a friend of Thread.
6142 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6143 instead of assuming we are a friend of Thread.
6145 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6147 * java/lang/natThread.cc: Rewrote from scratch.
6148 * java/lang/Thread.java: Rewrote from scratch.
6149 * prims.cc (JvRunMain): Use new Thread constructor.
6150 * include/javaprims.h (java::lang): Added InterruptedException.
6151 * Makefile.in: Rebuilt.
6152 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6153 * java/lang/Thread.h: Removed.
6154 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6155 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6157 * posix-threads.cc (JvPrivThreadJoin): Removed.
6158 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6159 (really_start): Don't notify join_cond.
6160 (JvPrivThreadStart): Added `data' argument.
6161 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6162 (JvPrivThreadJoin): Likewise.
6163 Use JvFail instead of sorry.
6164 (JvPrivThreadSuspend): Removed.
6165 (JvPrivThreadResume): Removed.
6166 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6167 (JvPrivThreadJoin): Likewise.
6168 (JvPrivThreadSuspend): Use JvFail.
6169 (JvPrivThreadResume): Likewise.
6170 (JvPrivThreadSuspend): Removed.
6171 (JvPrivThreadResume): Likewise.
6172 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6173 (JvPrivThread_t): Removed join_mutex, join_cond.
6174 Use JvFail instead of sorry.
6175 (JvPrivThreadSuspend): Removed.
6176 (JvPrivThreadResume): Likewise.
6178 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6180 * java/util/Observer.java: Rewritten
6181 * java/util/Enumeration.java: Rewritten
6183 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6185 * java/util/StringTokenizer.java: Rewritten
6186 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6187 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6188 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6190 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6192 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6195 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6196 Include java-assert.h.
6197 * include/java-assert.h: New file.
6198 * prims.cc (_Jv_Abort): New function.
6199 Include java-assert.h, not assert.h.
6200 (_Jv_MonitorExit): Use JvAssert.
6201 (resolveConstants): Likewise.
6202 (processClass): Likewise.
6203 (JvRunMain): Assert that method is found.
6205 * configure: Rebuilt.
6206 * configure.in: Check for test subdir.
6207 * Makefile.in: Rebuilt.
6208 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6210 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6211 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6213 * prims.cc (resolveConstants): Removed unused variables.
6214 (processClass): Likewise.
6216 * include/quick-threads.h (JvPrivThreadCurrent): Use
6218 * quick-threads.cc (destroy_data): New function.
6219 (JvPrivInitThreads): Create key.
6220 (JvPrivThreadKey): New global.
6221 (JvPrivThreadStart): Use coop_setspecific.
6223 * include/quick-threads.h, include/posix-threads.h,
6224 include/no-threads.h, no-threads.cc, quick-threads.cc,
6225 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6227 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6229 * include/no-threads.h (JvPrivThreadInitData): Don't set
6232 * include/quick-threads.h (JvPrivCondWait): coop function now
6234 (JvPrivThreadJoin): Likewise.
6236 * java/lang/Thread.h (Thread): Updated declaration of
6238 * include/quick-threads.h, include/posix-threads.h: Updated
6239 declaration of JvPrivThreadStart.
6240 * include/no-threads.h (JvPrivThreadStart): Changed definition
6242 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6243 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6244 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6246 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6248 * quick-threads.cc (qthrow): New function.
6249 (JvPrivInitThreads): New function.
6250 (started): New global.
6251 (JvPrivThreadStart): Call coop_start if required.
6252 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6253 (JvPrivThreadDestroy): Likewise.
6254 (JvPrivInitThreads): Removed.
6255 * include/posix-threads.h (JvPrivThreadCancel): Added error
6257 * java/lang/natThread.cc (stop_): Pass exception to
6260 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6262 * include/javaprims.h (java::lang): Added
6263 IllegalArgumentException, IllegalThreadStateException, Math,
6264 NullPointerException, ThreadDeath.
6265 (java::util): Added Enumeration.
6267 * Makefile.in: Rebuilt.
6268 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6270 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6272 (threadsv): Renamed from threads to avoid clash in C++ header.
6273 (groupsv): Likewise.
6274 * include/no-threads.h (JvPrivThreadStart): Removed.
6275 * no-threads.cc (JvPrivThreadStart): New function.
6276 * java/lang/Thread.java (Thread): New constructor for internal use.
6277 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6278 (Thread): Declare constructor.
6279 * prims.cc (JvRunMain): Create the initial Thread and
6281 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6282 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6283 Removed `daemon' argument.
6285 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6286 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6288 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6290 * Makefile.in: Rebuilt.
6291 * Makefile.am (INCLUDES): Include THREADINCS.
6293 * configure: Rebuilt.
6294 * configure.in: Recognize `qt' as a threads package.
6296 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6298 * java/util/Stack.java (pop): Null out topmost node for robustness.
6300 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6302 * java/util/Stack.java: Rewritten.
6303 * java/util/Vector.java (isEmpty): Simplified expression.
6305 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6307 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6308 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6310 * include/java-array.h (JvNewObjectArray): Created inline to
6313 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6316 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6318 * java/util/Vector.java: Rewritten.
6319 * java/io/Serializable.java: Created.
6321 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6323 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6324 Infinity is 1/0, not 1/1.
6326 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6328 * configure: Rebuilt.
6329 * configure.in: Removed duplicate AC_ARG_WITH.
6331 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6333 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6335 (_Jv_InitClass): Renamed from soft_initialise_class.
6336 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6337 (_Jv_CheckCast): Renamed from soft_checkcast.
6338 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6339 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6340 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6341 * include/cni.h (JvInitClass): New function.
6342 (_Jv_InitClass): Renamed from soft_initialise_class.
6344 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6346 * configure: Rebuilt.
6347 * configure.in (CXX): Don't set.
6348 * Makefile.in: Rebuilt.
6349 * Makefile.am (AM_CXXFLAGS): New macro.
6351 * Makefile.in: Rebuilt.
6352 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6353 nogc.o): New target.
6355 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6357 (mark_array): Likewise.
6359 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6361 * java/lang/Class.h (JvMethod): Removed some unused fields.
6362 (JvField.info): Removed unused idx union variant.
6364 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6366 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6369 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6371 * configure.in, configure (CXX): Add -fvtable-thunks.
6373 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6375 * java/lang/Object.java (finalize): Move first.
6376 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6377 (Object): Re-arrange order to match Object.java.
6379 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6381 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6382 * java/lang/natString.cc (hashChars): Likewise.
6384 * prims.cc (RuntimeClass): New macro.
6385 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6387 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6389 * Makefile.in: Rebuilt.
6390 * Makefile.am (AM_MAKEFLAGS): New macro.
6392 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6394 * nogc.cc: Include <javaprims.h>.
6396 * Makefile.in: Rebuilt.
6397 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6399 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6401 * exception.cc (terminate): Removed.
6402 (unexpected): Removed.
6404 * configure: Rebuilt.
6405 * configure.in: Handle case where target subdir is ".".
6407 * configure: Rebuilt.
6408 * configure.in: Compute COMPPATH based on --with-target-subdir
6409 option. Added --with-target-subdir and --with-cross-host. Use
6410 --with-cross-host to determine when a cross compiler is in use.
6412 * Makefile.in: Rebuilt.
6413 * Makefile.am (GJAVAH): Include COMPPATH.
6414 * configure: Rebuilt.
6415 * configure.in: Subst COMPPATH.
6417 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6419 * prims.cc (lockMutex): Removed.
6420 (unlockMutex): Likewise.
6421 (processClass): Lock the class using a JvSynchronize object.
6423 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6425 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6426 (gc_free_fixed): Removed.
6427 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6428 freeing old value of strhash.
6430 * exception.cc (_Jv_type_matcher): Cast first argument to
6433 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6435 * include/java-array.h (jstringArray): New type.
6436 * java/lang/natSystem.cc (setProperty): Removed.
6437 (initProperties): Directly call JvNewStringLatin1 for arguments.
6438 * java/util/natDate.cc: Include java/util/Date.h, not
6441 * java/io/FileDescriptor.java (available): No longer static.
6442 * java/lang/natDouble.cc (Double): Removed class definition.
6443 * include/javaprims.h (java::lang::Number): Declare.
6444 (java::lang::NumberFormatException): Likewise.
6445 (java::io::FilenameFilter): Likewise.
6446 (java::lang::Character): Likewise.
6447 (java::lang::Error): Likewise.
6448 (java::lang::SecurityManager): Likewise.
6449 (java::util::Vector): Likewise.
6450 (java::io::FileNotFoundException): Likewise.
6451 (java::io::IOException): Likewise.
6452 (java::lang::NativeLang): Likewise.
6453 (java::lang::UnsatisfiedLinkError): Likewise.
6454 (java::util::StringTokenizer): Likewise.
6455 (java::io::InputStream, java::io::OutputStream): Likewise.
6456 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6457 (java::util::Hashtable): Likewise.
6458 * Makefile.in: Rebuilt.
6459 * Makefile.am (nat_headers): Added java/lang/Double.h,
6460 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6461 (MOSTLYCLEANFILES): Added nat_headers.
6462 * include/jvm.h: Moved many defines, declarations, and functions
6463 to java/lang/Class.h.
6464 (struct JvSyncInfo): Moved to java/lang/Object.h.
6465 (UTF8_GET): Moved to java/lang/String.h.
6467 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6469 * java/io/io-defs.h: Don't include java-io.h.
6470 * include/java-io.h: Removed.
6471 * include/javaprims.h: Include java::io.
6473 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6475 * include/java-io.h (File): Removed
6476 (FileDescriptor): Likewise.
6478 * java/io/io-defs.h: Include java/io/File.h and
6479 java/io/FileDescriptor.h.
6481 * Makefile.in: Rebuilt.
6482 * Makefile.am (GJAVAH): New macro.
6483 (.class.h): New rule.
6484 (SUFFIXES): Added .h.
6485 (nat_headers): New macro.
6486 ($(nat_headers)): New target.
6487 (BUILT_SOURCES): Added nat_headers.
6489 * include/java-util.h: Removed.
6491 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6493 * include/java-io.h: Changed to avoid java-lang.h.
6494 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6496 * java/lang/natSystem.cc: Include java/lang/System.h, not
6498 * java/lang/natString.cc: Include java/lang/String.h, not
6500 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6502 * java/lang/natClass.cc: Include java/lang/Class.h, not
6504 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6506 * java/lang/natObject.cc: Include java/lang/Object.h, not
6508 * exception.cc: Don't include java-lang.h.
6509 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6510 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6511 * nogc.cc: Don't include java-lang.h.
6512 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6513 * prims.cc (processClass): Don't use `init_type'; just cast to
6515 Include java/lang/Class.h and jvm.h, not java-lang.h.
6516 (JvAllocObject): Wrote single-argument version.
6517 (PrimClass): Inherit from Class.
6518 (initPrimClass): Removed.
6519 * include/java-lang.h: Removed.
6520 * include/jvm.h: Declare struct _dispatchTable.
6521 * include/cni.h: Don't declare _Jv_MonitorEnter,
6522 _Jv_MonitorExit, struct _dispatchTable.
6523 * include/javaprims.h: Moved all typedefs here, from cni.h.
6524 * java/lang/Class.h: New file.
6525 * include/java-array.h: New file.
6526 * java/lang/Object.h: New file.
6528 * prims.cc (classFromSig): Now static.
6530 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6532 * include/cni.h: Don't mention soft_new.
6533 * include/java-lang.h (Object): Don't mention soft_new. Mention
6534 _Jv_NewPrimArray, not newPrimArray.
6535 * prims.cc (soft_new): Removed.
6536 (_Jv_NewArray): Renamed from soft_newarray.
6537 (soft_anewarray): Use JvNewObjectArray.
6538 (newArray): Likewise.
6539 (newRefArray): Removed.
6540 (_Jv_NewPrimArray): Renamed from newPrimArray.
6541 (equalUtf8Consts): Now static.
6542 (soft_instanceof): Removed.
6543 * java/lang/natDouble.cc (doubleToString): Now static.
6545 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6546 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6549 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6551 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6553 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6555 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6556 (JvPrivMutexUnlock): Likewise.
6557 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6558 Return value now jint.
6559 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6562 * Makefile.in: Rebuilt.
6563 * Makefile.am: Don't allow `jV' names.
6564 (maintainer-check): Depend on libjava.a.
6565 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6567 * Makefile.in: Rebuilt.
6568 * Makefile.am (NM): New macro.
6569 (maintainer-check): New target.
6571 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6573 * configure: Rebuilt.
6574 * configure.in: Use --enable-threads, not --enable-gc. Fix
6575 documentation for --enable-threads. Changed option to work like
6576 identical option in gcc/configure.
6578 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6580 * boehm.cc (mark_array): Use JvGetArrayLength.
6582 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6584 * exception.cc: New file (mostly written by Andrew MacLeod),
6585 exception handling support.
6586 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6587 Remove -fexceptions - it is now the default.
6589 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6590 (JvAllocObject): Renamed to _Jv_AllocObject.
6591 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6592 (loadClass): Renamed to _Jv_FindClass.
6593 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6594 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6595 * include/java-lang.h (JvGetArrayLength): New CNI function.
6596 * include/jvm.h (_Jv_FindClass): Added declaration.
6598 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6600 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6602 * java/lang/natClass.cc (getName): Add implementation.
6603 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6605 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6607 * Makefile.in: Rebuilt.
6608 * Makefile.am (.class.o): Added -fexceptions.
6610 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6612 * configure: Rebuilt.
6613 * configure.in: Don't check for __nanosleep.
6614 * posix-threads.cc (nanosleep): Never define.
6616 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6618 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6621 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6623 * java/lang/natThread.cc (enumerate): Uncommented.
6624 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6625 (interrupt): Call it.
6627 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6629 * configure: Rebuilt.
6630 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6632 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6634 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6635 * include/java-lang.h (Thread): Added `interrupted_' method.
6636 * java/lang/Thread.java (interrupted_): New method.
6637 * java/lang/natThread.cc (join): Possibly throw interrupted
6638 exception after join finishes.
6639 (interrupted_): New method.
6640 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6642 (JvPrivThreadJoin): New function.
6643 (really_start): Notify all threads waiting for this thread.
6644 (struct starter): Added `data' member.
6645 (JvPrivThreadStart): Set it.
6646 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6648 (JvPrivThreadJoin): No longer inline.
6649 (JvPrivThreadInterrupt): New function.
6651 * include/no-threads.h (JvPrivThreadSleep): Removed.
6652 * posix-threads.cc (JvPrivThreadSleep): Removed.
6654 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6656 * configure: Rebuilt.
6657 * configure.in (THREADOBJS): Initialize to no-threads.o in
6659 * posix-threads.cc (key): New global.
6660 (JvPrivInitThreads): New function.
6661 (really_start): Set thread-specific data to point to object.
6662 (JvPrivThreadStart): Added `daemon' argument.
6663 (JvPrivThreadSleep): Added `data' argument.
6664 * include/posix-threads.h (JvPrivInitThreads): Removed
6666 (JvPrivThreadCurrent): New function.
6667 * include/no-threads.h (JvPrivThreadInitData): Initialize
6668 JvPrivOnlyThread. Added `thread' argument.
6669 (JvPrivThreadCurrent): New function.
6670 (JvPrivThreadStart): Added `daemon' argument.
6671 * no-threads.cc: New file.
6672 * java/lang/natThread.cc (init_data): New function.
6674 (start): Set `alive' member.
6675 (stop_): Clear `alive' member.
6676 (destroy): Likewise.
6677 (currentThread): Implemented.
6678 (start): Pass `daemon' argument to JvPrivThreadStart.
6680 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6681 (Thread): Added `init_data' method.
6682 * java/lang/Thread.java (alive, data): New instance variables.
6683 (init_data): New private method.
6684 (isAlive): No longer native.
6686 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6688 * include/java-lang.h (JvRunMain): Declare.
6689 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6690 * prims.cc (JvRunMain): New function.
6691 (main_signature, main_name): New globals.
6693 * boehm.cc (mark_array): Use `elements' function and not
6694 operator[] on jarray.
6696 * posix-threads.cc: Include <config.h>. Define nanosleep if
6699 * configure: Rebuilt.
6700 * configure.in: Check for _nanosleep.
6702 * configure: Rebuilt.
6703 * configure.in: Check for pthread_mutexattr_settype.
6705 * include/cni.h (class JvSynchronize): New class.
6706 * java/lang/Thread.java (sleep): Throws InterruptedException.
6707 (join): Throws InterruptedException.
6708 (resume): Not native.
6709 (resume_): New method.
6710 (start): Now synchronized.
6711 (stop_): New method.
6712 (Thread): Synchronize when accessing threadNumber.
6714 * java/lang/natThread.cc (throwException): New macro.
6715 (sleep): Throw InterruptedException.
6718 * include/java-lang.h (Runtime): Added interrupted().
6720 * boehm.cc (call_finalizer): Correctly initialize jobj.
6721 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6723 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6726 * configure: Rebuilt.
6727 * configure.in: Added support for --disable-threads.
6728 * include/no-threads.h: New file.
6730 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6732 * Makefile.in: Rebuilt.
6733 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6734 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6735 (libjava_a_LIBADD): Added THREADOBJS.
6736 * configure: Rebuilt.
6737 * configure.in: Added --with-threads option.
6738 * posix-threads.cc: New file.
6739 * include/posix-threads.h: New file.
6740 * include/java-lang.h (Object): Added static member sync_mutex,
6741 member sync_info, method init_mutex.
6742 (struct JvSyncInfo): New struct.
6743 Include "java-threads.h".
6744 * prims.cc (soft_monitorenter): Wrote.
6745 (soft_monitorexit): Likewise.
6746 * java/lang/natObject.cc (init_mutex): New method.
6750 (sync_mutex): Define.
6751 Include "java-threads.h".
6753 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6755 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6756 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6758 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6760 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6761 Added extern "Java" in places to tell G++ Object is a "Java" type.
6762 Other minor renaming and fixes.
6763 * include/java-io.h (FileDescriptor): Add friend class declarations.
6764 G++ no longer allows non-Java types in method parameters and results
6765 of Java classes. Converted most offending methods to friends.
6766 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6767 * java/lang/natSystem.cc (setProperty): Make friend.
6768 * java/lang/natString.cc, include/java-lang.h (String): Rename
6769 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6770 * include/java-lang.h (JArray): Remove getData and eoprator[].
6771 Add elements friend function instead.
6772 * java/lang/natSystem.cc (arraycopy): Use elements function.
6773 * java/io/natFileDescriptor.cc (read, write): Likewise.
6774 * include/java-lang.h (Object): Remove unused make method.
6775 (System::setProperty(char*,char*)): Turn into friend function.
6776 (Class): Rename newObject by JvAllocObject.
6777 * prims.cc: Update to use JvAllocObject, and elements.
6779 * java/lang/natDouble.cc: Fix double -> jdouble.
6781 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6783 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6785 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6787 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6788 * include/java-lang.h (Runtime): finalize_on_exit and
6789 runFinalizersOnExit now static.
6790 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6792 (finalize_on_exit): Now static.
6794 * boehm.cc (mark_obj): Get class using getClass() method on
6796 (_dispatchTable): Removed.
6798 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6800 * java/io/natFileDescriptor.cc (open_read): Only call open if
6802 (open_write): Likewise.
6804 * Makefile.in: Rebuilt.
6805 * Makefile.am ($(nat_files)): Depend on config.h.
6807 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6809 * prims.cc (ObjectClass): Now a macro; updated for new class name
6811 (StringClass): Likewise.
6812 (ClassClass): Likewise.
6814 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6816 * java/io/natFileDescriptor.cc (available): Do nothing unless
6817 HAVE_SELECT defined.
6818 * java/util/natDate.cc (setTime): Conditional on
6820 (toString): Conditional on HAVE_TIME.
6821 * aclocal.m4, configure: Rebuilt.
6822 * acinclude.m4: New file.
6823 * configure.in: Don't actually call AM_EXEEXT. Call
6824 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6825 --with-target-subdir option. Check for select and open
6828 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6830 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6831 (call_finalizer): Likewise.
6832 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6833 * prims.cc (newObject): Pass actual method pointer to
6834 JvPrivRegisterFinalizer.
6835 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6836 (JvPrivRegisterFinalizer): Changed interface.
6838 * Makefile.in: Rebuilt.
6839 * Makefile.am (MOSTLYCLEANFILES): New macro.
6840 (CLEANFILES): Removed javao_files.
6842 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
6844 * nogc.cc: New file.
6845 * Makefile.in: Rebuilt.
6846 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6847 (EXTRA_libjava_a_SOURCES): New macro.
6848 (libjava_a_SOURCES): Removed boehm.cc.
6849 (libjava_a_DEPENDENCIES): Added GCOBJS.
6850 (libjava_a_LIBADD): Likewise.
6851 * configure: Rebuilt.
6852 * configure.in: Added code for --enable-gc=TYPE.
6854 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
6856 * boehm.cc (mark_array): Don't further dereference pointer from
6859 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6860 * Makefile.in: Rebuilt.
6861 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6862 one for boehm-gc build directory.
6864 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
6866 * include/java-lang.h (finalize_on_exit): New instance variable in
6867 java::lang::Runtime.
6868 (runFinalizersOnExit): New method.
6869 * java/lang/Runtime.java (finalize_on_exit): New instance
6871 (runAllFinalizers_): New private method.
6872 (runFinalizersOnExit): New method.
6873 * boehm.cc (JvPrivRunFinalizers): New function.
6874 (JvPrivRunAllFinalizers): Likewise.
6875 (JvPrivRunGC): Likewise.
6876 * java/lang/natRuntime.cc: Include "jvm.h".
6877 (gc): Call JvPrivRunGC.
6878 (runFinalization): Call JvPrivRunFinalizers.
6879 (runFinalizersOnExit): New method.
6880 (exit_): Call JvPrivRunAllFinalizers if required.
6881 * include/jvm.h: Declare JvPrivRunFinalizers,
6882 JvPrivRunAllFinalizers, JvPrivRunGC.
6884 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
6886 * boehm.cc (JvPrivRegisterFinalizer): New function.
6887 (call_finalizer): Likewise.
6888 * include/jvm.h: Declare JvPrivRegisterFinalizer.
6889 * prims.cc (finalize_name): New global.
6890 (newObject): Just call other newObject.
6891 (newObject): Register finalizer if it exists.
6893 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
6895 * prims.cc (gc_malloc): Removed.
6896 (makeUtf8Const): Use JvPrivAllocBytes.
6897 (lookupArray): Likewise.
6898 (newPrimArray): Likewise.
6899 (JvNewObjectArray): Use JvPrivAllocArray.
6900 (newObject): Use JvPrivAllocObj.
6901 (newObject): Likewise.
6902 Changed Method -> JvMethod everywhere.
6903 Changed Field -> JvField everywhere.
6904 * include/java-lang.h (Object): Changed type of `fields' to
6906 (jmethodID, jfieldID): New typedefs.
6907 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6909 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6911 (METHOD_NATIVECODE): Moved from java-lang.h.
6912 (class JvField): New class.
6913 (JvGetFirstInstanceField): New function.
6914 (JvFieldIsRef): Likewise.
6915 (JvGetObjectField): Likewise.
6916 (JvNumInstanceFields): Likewise.
6918 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6920 * boehm.cc: New file.
6921 * Makefile.in: Rebuilt.
6922 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6923 (INCLUDES): Added -I options to find boehm-gc files.
6925 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
6927 * configure: Rebuilt.
6928 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6930 * Makefile.in: Rebuilt.
6931 * Makefile.am (nat_files): New macro.
6932 (libjava_a_DEPENDENCIES): Use it.
6933 (libjava_a_LIBADD): Likewise.
6934 ($(nat_files)): New static pattern rule.
6935 (class_files): Run separate find to find .class files.
6936 (javao_files): Compute based on class_files.
6937 (BUILT_SOURCES): New macro.
6939 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6941 * Makefile.am (java_files): New macro.
6942 (class_files): Likewise.
6943 (javao_files): Likewise.
6944 (libjava_a_DEPENDENCIES): Include $(javao_files).
6945 (libjava_a_LIBADD): Likewise.
6946 (classes.stamp): Depend on $(java_files); only recompile changed
6949 (CLEANFILES): Don't run find; use macros. Don't mention
6951 (.class.o): New target.
6952 (compiled.stamp): Removed.
6954 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
6956 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6957 LineNumberReader}>java: Newly-implemented standard classes.
6959 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
6961 * Makefile.in: Rebuilt.
6962 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
6964 * Makefile.in: Rebuilt.
6965 * Makefile.am (hack): New macro.
6966 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
6968 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
6970 * include/config.h.in: New file.
6971 * include/config.h: Removed.
6972 * acconfig.h: New file.
6973 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
6974 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
6975 libjava_a_LIBADD): New macros.
6976 (INCLUDES): New macro.
6979 (SUFFIXES): Removed.
6981 (libjava.a): Removed.
6983 * configure: Rebuilt.
6984 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
6985 Look for headers and functions we require. Create
6988 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
6990 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
6991 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
6992 soft_lookupinterfacemethod): New functions.
6993 (PrimClass): Actually initialize the primitive classes.
6994 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
6996 * include/java-util.h: Removed java::util definition.
6997 * include/cni.h: Moved java::util here and added Properties.
6998 Added more function prototypes.
6999 * include/java-lang.h: Added mroe methods and friend declarations.
7000 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7001 * include/jvm.h (strLengthUtf8): Add declaration.
7003 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7005 * java/lang/{Byte,Short,Void}.java: New classes.
7006 * java/lang/Character.java (isJavaIdentifierStart,
7007 JavaIdentifierPart): New static methods.
7008 * java/lang/Number.java (byteValue, shortValue): New methods.
7010 * java/lang/String.java (intern, hashCode): Make native.
7011 * java/lang/natString.cc: New file. Handle the string pool.
7012 * Makefile.am: Build natString.o. Use CXXFLAGS.
7014 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7015 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7016 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7017 * java/lang/System.java (setProperty): New private method.
7018 (initProperties): Take argument, and make native.
7019 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7020 (currentTimeMillis): Make more robust.
7022 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7023 * java/io/UnsupportedEncodingException.java: New exception class.
7025 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7026 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7028 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7030 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7031 * prims.cc: Added bunch of stuff.
7032 * include/cni.h: Added various definitions.
7033 * include/java-lang.h: Added Method, various friends, some macros.
7035 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7036 * java/lang/System.java (arraycopy): Make native.
7038 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7040 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7041 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7042 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7043 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7045 * java/lang/Runtime.java: Declare methods as native instead of
7047 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7048 * java/lang/System.java: Comment out some stuff, for now.
7049 * java/lang/Thread.java: Re-write. Use native methods.
7050 * java/lang/NativeLang.java: Remove most of it.
7052 * java/util/natDate.cc: Native (C++) methods for Date.
7053 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7054 * java/util/Date.java: Complete re-write.
7056 * java/io/io-defs.h: New header file.
7057 * java/io/FileDescriptor.java: Add a bunch of private methods,
7058 mostly moved from NativeIO.java and natNativeIO.cc.
7059 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7060 * java/io/File.java: Use new code.
7061 * java/io/{FileInputStream.java.FileOutputStream.java,
7062 RandomAccessFile.java}: Use new private FileDescriptor methods.
7063 * java/io/NativeIO.java: Removed, no longer used.
7065 * java/io/StreamTokenizer.java (numericChars): Make char array.
7067 * include/*.h: Various header files used by the C++ native code.
7069 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7070 New autoconf+automake-based setup.
7071 * prims.cc: New file for Java "primitives".