1 1999-12-17 Tom Tromey <tromey@cygnus.com>
3 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
5 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
7 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
8 null String constructor parameter.
9 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
10 for exception messages.
11 BooleanClass: declare.
12 (setOption): Use BooleanClass instead of Class.forName() for
14 (bind): Cast 4th parameter of setsockopt to `char *' for
15 compatibility with older Solaris headers.
16 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
17 sprintf calls for exception messages.
18 BooleanClass, IntegerClass: declare.
19 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
22 1999-12-15 Tom Tromey <tromey@cygnus.com>
24 * java/lang/natSystem.cc (init_properties): Don't set user.name or
25 user.home if NO_GETUID defined. Only set user.dir if getcwd
28 * include/config.h.in: Rebuilt.
29 * acconfig.h (NO_GETUID): New define.
30 * configure.in: Rebuilt.
31 * configure.in: Define NO_GETUID in cross case. Check for getcwd
34 1999-12-08 Tom Tromey <tromey@cygnus.com>
36 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
37 where no recursive mutexes exist. Fixes PR libgcj/117.
39 1999-12-05 Anthony Green <green@cygnus.com>
41 * include/jvm.h: Declare many functions with
42 __attribute__((__malloc__)).
43 * gcj/javaprims.h: Ditto.
45 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
47 * THANKS: Giving credit where credit is due.
49 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
51 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
53 * java/lang/natString.cc (equalsIgnoreCase): return false if
54 anotherString is null.
55 * java/lang/Boolean.java (valueOf): return FALSE if argument is
58 1999-11-30 Tom Tromey <tromey@cygnus.com>
60 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
61 mutex to initialize. Initialize `count' if required.
64 1999-11-27 Per Bothner <per@bothner.com>
66 * exception.cc: Remove prototype declarations for malloc and free.
67 These clash with recent versions of glibc, which specifies `throws ()'
68 when __cplusplus is defined. Instead, #include <stdlib.h>.
70 1999-11-24 Tom Tromey <tromey@cygnus.com>
72 * prims.cc (_Jv_NewObjectArray): Use
73 _Jv_GetArrayElementFromElementType.
74 (_Jv_NewPrimArray): Likewise.
75 * java/lang/natObject.cc (clone): Use
76 _Jv_GetArrayElementFromElementType instead of sizeof.
77 * java/lang/natSystem.cc (arraycopy): Use
78 _Jv_GetArrayElementFromElementType.
79 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
82 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
84 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
85 Exception messages. PR java.net/57.
86 (bind): set SO_REUSEADDR before bind.
87 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
88 overruns. PR java.net/57.
90 1999-11-19 Tom Tromey <tromey@cygnus.com>
92 * Makefile.am (DIVIDESPEC): Removed.
93 (EXCEPTIONSPEC): Removed.
95 1999-11-19 Andrew Haley <aph@cygnus.com>
97 * Makefile.am (JCFLAGS): Add -L$(here)
99 * Makefile.in: Rebuild.
101 1999-11-18 Tom Tromey <tromey@cygnus.com>
103 * java/lang/natDouble.cc: Include <config.h>.
105 * include/config.h.in: Rebuilt.
106 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
107 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
109 * configure: Rebuilt.
110 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
111 requested by configure.host. Don't put `-D' option into
112 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
114 * configure: Rebuilt.
115 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
118 1999-11-18 Andrew Haley <aph@cygnus.com>
120 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
121 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
123 * Makefile.in: Rebuild
124 * acconfig.h: remove SJLJ_EXCEPTIONS
125 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
126 Do not AC_DEFINE SJLJ_EXCEPTIONS.
127 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
128 * gcj/Makefile.in, include/Makefile.in: rebuild.
129 * include/config.h.in: remove SJLJ_EXCEPTIONS.
131 1999-11-18 Andrew Haley <aph@cygnus.com>
133 * gij.cc (main): Rename label to prevent conflict.
135 * exception.cc (_Jv_type_matcher): Don't check the table if we're
136 using setjmp/longjmp exceptions: there isn't one.
138 1999-11-17 Andrew Haley <aph@cygnus.com>
140 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
141 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
142 (__sjthrow): Add declaration.
143 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
147 * Makefile.in: Rebuild
148 * acconfig.h: Add SJLJ_EXCEPTIONS
149 * configure.in: Add SJLJ_EXCEPTIONS
150 * configure: Rebuild.
151 * gcj/Makefile.in: Rebuild.
152 * gcj/cni.h: Add support for sjlj-exceptions.
153 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
154 * include/Makefile.in: Rebuild.
155 * include/default-signal.h: Add support for sjlj-exceptions.
157 1999-11-18 Tom Tromey <tromey@cygnus.com>
159 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
161 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
163 (method_cache): Made larger.
165 1999-11-11 Tom Tromey <tromey@cygnus.com>
167 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
168 initializing mutex. Initialize `count' when required.
170 1999-11-07 Anthony Green <green@trip.cygnus.com>
172 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
175 1999-11-05 Tom Tromey <tromey@cygnus.com>
177 * java/lang/natThread.cc (destroy): Removed incorrect comment.
179 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
181 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
182 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
185 1999-11-05 Tom Tromey <tromey@cygnus.com>
187 * java/lang/natThread.cc (stop): Removed argument name.
189 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
190 `private'; now has default access.
191 * Makefile.in: Rebuilt.
192 * Makefile.am (java/lang/ThreadGroup.h): Removed.
194 1999-11-04 Tom Tromey <tromey@cygnus.com>
196 * java/lang/natClass.cc (method_cache_count): Removed.
197 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
198 (_Jv_AddMethodToCache): Don't loop.
200 * configure.in: Removed `qt' threads case.
201 * include/quick-threads.h: Removed.
202 * quick-threads.cc: Removed.
204 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
205 (_Jv_ThreadDestroy): Likewise.
206 * include/no-threads.h (_Jv_ThreadCancel): Removed.
207 (_Jv_ThreadDestroy): Likewise.
208 * include/posix-threads.h (struct _Jv_Thread_t): Removed
210 (_Jv_ThreadCancel): Removed decl.
211 (_Jv_ThreadDestroy): Removed.
212 * posix-threads.cc (_Jv_ThreadCancel): Removed.
213 (throw_cleanup): Removed.
214 (really_start): Don't push or pop cleanup.
215 (_Jv_ThreadInitData): Don't initialize `exception' field.
216 * java/lang/Thread.java (stop): Officially unimplemented.
217 * java/lang/natThread.cc (stop): Officially unimplemented.
219 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
221 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
224 1999-11-02 Tom Tromey <tromey@cygnus.com>
226 * boehm.cc: Don't include boehm-config.h.
228 1999-11-01 Tom Tromey <tromey@cygnus.com>
230 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
231 (sum_blocks): Removed.
232 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
234 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
236 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
238 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
239 * java/io/InputStreamReader (InputStreamReader): ditto.
241 1999-10-22 Tom Tromey <tromey@cygnus.com>
243 * Makefile.in: Rebuilt.
244 * Makefile.am (java/lang/ClassLoader.h): New target.
245 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
248 * include/java-props.h (_Jv_Compiler_Properties): Changed
250 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
251 * include/jvm.h (_Jv_GCSetInitialHeapSize,
252 _Jv_GCSetMaximumHeapSize): Declare.
253 (JvRunMain, _Jv_RunMain): Declare.
254 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
255 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
256 (_Jv_GCSetMaximumHeapSize): Likewise.
257 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
258 (_Jv_GCSetMaximumHeapSize): Likewise.
259 * prims.cc (parse_heap_size): New function.
260 (_Jv_SetInitialHeapSize): Likewise.
261 (_Jv_SetMaximumHeapSize): Likewise.
262 (_Jv_Compiler_Properties): New global.
263 * gij.cc (help): New function.
265 (heap_size): Likewise.
266 (heap_max_size): Likewise.
267 (main): Parse arguments. Set _Jv_Compiler_Properties.
268 Include <config.h>, <java-props.h>.
269 (_Jv_Compiler_Properties): Removed.
271 1999-10-18 Tom Tromey <tromey@cygnus.com>
273 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
275 (redirect): New static field.
276 * java/lang/ClassLoader.java (getSystemClassLoader): Now
278 (getVMClassLoader0): Removed.
279 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
281 (getSystemClassLoader): Implemented.
283 1999-10-16 Anthony Green <green@cygnus.com>
285 * java/lang/ClassLoader.java (getSystemResource): Use
286 getSystemClassLoader instead of ClassLoader.system.
287 (getSystemResourceAsStream): Ditto.
289 * java/lang/natClassLoader.cc (redirect): Make static and
290 remove #ifdef INTERPRETER so it is always defined.
291 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
292 returns a VMClassLoader.
294 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
295 PropertyResourceBundle if a properties file is found before a
296 ResourceBundle class.
298 1999-10-15 Tom Tromey <tromey@cygnus.com>
300 * gij.cc (main): Formatting fixes.
301 (_Jv_Compiler_Properties): Define.
302 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
304 (init_properties): Set properites from _Jv_Compiler_Properties.
305 * include/java-props.h (_Jv_Compiler_Properties,
306 _Jv_Environment_Properties): Declare.
308 * include/java-props.h: Added copyright.
310 1999-10-13 Anthony Green <green@cygnus.com>
312 * libtool-version: Catch up by incrementing current.
314 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
315 * configure, include/config.h.in: Rebuilt.
316 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
317 * configure.in: Added --disable-getenv-properties and new define
318 `DISABLE_GETENV_PROPERTIES'.
320 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
321 (next_property_key): New function.
322 (next_property_value): New function.
323 (process_gcj_properties): New function.
324 (JvRunMain): Call process_gcj_properties.
327 * java/lang/natSystem.cc (init_properties): Set properties defined
330 * include/java-props.h: New file.
332 * java/lang/natSystem.cc (init_properties): Add new properties to
333 conform with Java Product Versioning Specification.
335 1999-10-12 Tom Tromey <tromey@cygnus.com>
337 * configure: Rebuilt.
338 * configure.in: Fixed test for --disable-java-net.
340 1999-10-06 Tom Tromey <tromey@cygnus.com>
342 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
343 when building Canadian cross.
344 (NATIVE): Don't define when cross-compiling.
346 1999-10-04 Tom Tromey <tromey@cygnus.com>
348 * java/net/natPlainSocketImpl.cc: Don't include headers if
349 java.net is disabled.
351 * Makefile.in: Rebuilt.
352 * Makefile.am (ZINCS): Removed. This is defined in configure.in
353 when needed, and must be left empty when not needed.
355 1999-10-01 Anthony Green <green@cygnus.com>
357 * THANKS: Refreshed from htdocs version.
359 1999-10-01 Steve Chamberlain <sac@pobox.com>
361 * Makefile.in: Rebuilt.
362 * Makefile.am (ZINCS): Define
364 * configure: Rebuilt.
365 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
367 * java/lang/ieeefp.h: Add definitions for picoJava.
369 1999-10-01 Tom Tromey <tromey@cygnus.com>
371 * configure: Rebuilt.
372 * configure.in: Set classpath when invoking gcj. Use changequote
373 around sed invocation.
375 * java/net/natPlainSocketImpl.cc: Stub native functions if
376 DISABLE_JAVA_NET is defined.
377 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
378 typo in exception string.
379 (getTimeToLive): Likewise.
380 Stub native functions if DISABLE_JAVA_NET is defined.
381 * java/net/natInetAddress.cc: Stub native functions if
382 DISABLE_JAVA_NET is defined.
383 * configure.host: Disable java.net for mips-tx39.
384 * configure, include/config.h.in: Rebuilt.
385 * acconfig.h (DISABLE_JAVA_NET): Undefine.
386 * configure.in: Added --disable-java-net and new define
389 1999-09-30 Tom Tromey <tromey@cygnus.com>
391 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
393 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
397 1999-09-28 Tom Tromey <tromey@cygnus.com>
399 * configure: Rebuilt.
400 * configure.in (PROCESS): In POSIX case, only set if not already
402 * configure.host (PROCESS): Set in mips-tx39 case.
404 * aclocal.m4, configure: Rebuilt.
405 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
406 appropriate AC_PROG_ symbol.
408 1999-09-24 Tom Tromey <tromey@cygnus.com>
410 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
412 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
414 Fix for PR java.util/47:
415 * configure, include/config.h: Rebuilt.
416 * configure.in: Don't look for ctime or ctime_r.
417 * Makefile.in: Rebuilt.
418 * Makefile.am (nat_source_files): Don't mention natDate.cc.
419 * java/util/natDate.cc: Removed.
420 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
422 (getAvailableIDs): Rewrote.
423 (getTimeZone): Rewrote.
424 * java/util/Date.java (toGMTString): New method.
425 (toLocaleString): New method.
428 1999-09-23 Tom Tromey <tromey@cygnus.com>
430 * configure: Rebuilt.
431 * configure.in: Print message when checking to see if gcj can
432 handle -fuse-divide-subroutine.
434 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
436 * java/lang/FirstThread.java (run0): Renamed to `run'.
439 * prims.cc (main_init): New function.
440 (JvRunMain): Call it.
441 (_Jv_RunMain): Likewise.
443 (main_init): Ignore SIGPIPE. Fixes PR 51.
445 1999-09-22 Tom Tromey <tromey@cygnus.com>
447 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
449 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
451 * java/text/MessageFormat.java (MessageFormat(String)): Set the
453 * java/text/NumberFormat.java: Check that object is a Number. If
454 not, throw IllegialArgumentException.
456 1999-09-21 Tom Tromey <tromey@cygnus.com>
458 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
459 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
461 * include/posix-threads.h (_Jv_MutexDestroy): Use
463 (_Jv_MutexLock): Likewise.
464 (_Jv_MutexUnlock): Likewise.
466 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
467 previous patch; it too was incorrect.
468 * java/io/PrintStream.java (PrintStream): Likewise.
470 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
471 refer to `this' before calling superclass constructor.
472 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
473 before calling superclass constructor.
475 1999-09-20 Tom Tromey <tromey@cygnus.com>
477 * configure: Rebuilt.
478 * configure.in: Send output of `-fuse-divide-subroutine' test
479 compilation to /dev/null.
481 1999-09-14 Tom Tromey <tromey@cygnus.com>
483 * include/java-insns.h: Turned constants into an enum. Added
484 multiple-inclusion protection.
486 1999-09-10 Tom Tromey <tromey@cygnus.com>
488 * configure: Rebuilt.
489 * configure.in: Build include/Makefile.
490 * Makefile.in: Rebuilt.
491 * Makefile.am (SUBDIRS): Added gcj and include.
492 (install-data-local): New target.
493 (extra_headers): New macro.
494 * include/Makefile.in: New file.
495 * include/Makefile.am: New file.
497 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
498 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
500 * boehm.cc: Don't include java-threads.h or gcj/field.h.
501 * resolve.cc: Include config.h.
502 * defineclass.cc: Include config.h.
503 * include/java-interp.h: Don't include config.h.
504 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
507 * gcj/javaprims.h: Regenerated namespace decls.
508 * classes.pl (scan): Don't put `;' after closing brace.
510 * Makefile.in: Rebuilt.
511 * Makefile.am (INCLUDES): Added -I for top_srcdir.
512 * configure.in: Create gcj/Makefile.
513 * gcj/Makefile.in: New file.
514 * gcj/Makefile.am: New file.
515 * java/lang/Object.h: Don't include any other headers.
516 * gcj/array.h: Renamed from include/java-array.h.
517 * gcj/field.h: Renamed from include/java-field.h.
518 * gcj/method.h: Renamed from include/java-method.h.
519 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
520 Updated all files to reflect new include structure.
522 1999-09-09 Tom Tromey <tromey@cygnus.com>
524 * configure: Rebuilt.
525 * configure.in: Fixed typo; variable is THREADSPEC and not
528 1999-09-08 Tom Tromey <tromey@cygnus.com>
530 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
531 previous change and implemented a correct test in the __m_count
534 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
537 1999-09-07 Tom Tromey <tromey@cygnus.com>
539 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
540 code and don't set errno.
542 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
543 not `r'. Changed `done_sleeping' to a `bool'.
545 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
547 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
548 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
549 by another thread, rather than by the GC.
550 (_Jv_CondWait): Prevent premature thread wakeup by GC.
551 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
552 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
555 1999-09-03 Tom Tromey <tromey@cygnus.com>
557 * configure: Rebuilt.
558 * configure.in: Check for fstat function.
559 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
562 1999-09-02 Tom Tromey <tromey@cygnus.com>
564 * include/java-array.h (jobjectArrayjchar): Removed unused
567 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
568 _Jv_PrepareCompiledClass while holding class mutex.
570 1999-09-01 Tom Tromey <tromey@cygnus.com>
572 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
573 (_Jv_PthreadGetMutex): Use it.
574 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
575 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
576 (_Jv_MutexLock): Likewise.
577 (_Jv_MutexUnlock): Likewise.
578 * include/config.h.in: Rebuilt.
579 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
580 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
581 * configure: Rebuilt.
582 * libgcj.spec.in: Don't mention INTERPSPEC.
583 * configure.in (INTERPSPEC): Removed.
584 Only run pthreads-related checks when using POSIX threads. Check
585 for m_count and __m_count in mutex structure.
587 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
589 * java/lang/natClass.cc: Fixed notification of threads
590 when class initialization is complete.
592 1999-09-01 Tom Tromey <tromey@cygnus.com>
594 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
595 * resolve.cc: Removed constants defined by
596 java.lang.reflect.Modifier.
597 Include <java/lang/reflect/Modifier.h>.
598 (_Jv_ResolvePoolEntry): Use values from Modifier.
599 (_Jv_DetermineVTableIndex): Likewise.
600 (_Jv_PrepareClass): Likewise.
602 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
603 java.lang.reflect.Modifier.
604 Include <java/lang/reflect/Modifier.h>.
605 (checkExtends): Use values from Modifier.
606 (checkImplements): Likewise.
607 (handleField): Likewise.
608 (handleConstantValueAttribute): Likewise.
609 (handleFieldsEnd): Likewise.
610 (handleMethod ): Likewise.
611 (handleMethodsEnd): Likewise.
612 (handleClassBegin): Likewise.
613 * interpret.cc: Removed constants defined by
614 java.lang.reflect.Modifier.
615 (continue1): Use values from Modifier.
616 * java/lang/natClassLoader.cc: Removed constants defined by
617 java.lang.reflect.Modifier.
619 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
620 JV_STATE_NOTHING, not `0'.
621 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
623 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
624 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
626 (_Jv_PthreadGetMutex): New function.
627 (_Jv_PthreadCheckMonitor): Use it.
628 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
629 (_Jv_MutexLock): Update `count'.
630 (_Jv_MutexUnlock): Likewise.
631 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
634 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
636 * Makefile.am (.java.lo): Add rule.
638 * Makefile.in: Rebuilt.
640 1999-09-01 Tom Tromey <tromey@cygnus.com>
642 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
643 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
645 (_Jv_CondNotify): Use it.
646 (_Jv_CondNotifyAll): Likewise.
648 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
650 1999-08-31 Tom Tromey <tromey@cygnus.com>
652 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
655 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
657 * posix-threads.cc: Include <errno.h>.
659 1999-08-23 Tom Tromey <tromey@cygnus.com>
661 * boehm.cc: Undefine TRUE and FALSE.
663 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
665 1999-08-21 Tom Tromey <tromey@cygnus.com>
667 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
670 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
672 * configure.in: Check for in_addr_t in netinet/in.h too. Check
674 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
675 (HAVE_STRUCT_IP_MREQ): Added.
676 * configure, include/config.h.in: Rebuilt.
677 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
679 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
680 Disable if ip_mreq is not available.
682 * configure.in: Check types ssize_t and in_addr_t.
683 * acconfig.h: Undefine them.
684 * configure, include/config.h.in: Rebuilt.
686 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
687 function that detects the signature of getpwuid_r.
688 (init_properties): Use it.
689 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
692 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
694 * interpret.cc (continue1): Implement explicit dispatch table.
695 insn_target: Explicit interpreter switch table.
696 SAVE_PC: New macro, moves pc saving code into instructions that
698 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
699 PC_REGISTER_ASM: New macro.
700 INLINE_SWITCH: New macro. Constrols dispatching strategy.
701 opcode: Remove local variable.
702 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
703 (POKEI): Use _Jv_word.
704 (iinc): Use _Jv_word.
705 (dupx): Change reference argument (sp) to pointer.
708 * interpret.cc: Remove instruction timing instrumentation.
710 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
711 comment. Don't use _Jv_ClassNameSamePackage.
713 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
714 URLPathEntry, CacheEntry}: Removed.
716 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
718 (.java.lo): Rule removed.
720 * Makefile.in: Rebuilt.
722 1999-08-19 Tom Tromey <tromey@cygnus.com>
724 * java/lang/natThread.cc (class locker): New class.
725 (join): Use a locker around _Jv_CondWait.
728 1999-08-18 Tom Tromey <tromey@cygnus.com>
730 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
731 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
733 1999-08-18 Tom Tromey <tromey@cygnus.com>
735 * include/javaprims.h ("Java"): Regenerated namespace decls.
737 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
739 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
740 from _Jv_InternClassStrings.
742 * prims.cc (_Jv_RunMain): New function.
743 (JvRunMain): Remove gij-support.
745 * gij.cc (main): Use _Jv_RunMain.
747 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
749 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
750 argument in temp variable.
751 (continue1): For all op_x2y insns, use temp variable for
752 intermediate value. Also remove some comments.
754 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
755 (forName): Don't call _Jv_InitClass.
757 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
759 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
761 * java/util/jar/JarInputStream.java: New file.
763 * java/util/jar/JarEntry.java: New file.
765 * java/util/jar/JarFile.java: New file.
767 * java/net/URLClassLoader.java: New file.
769 * java/net/JarURLConnection.java: New file.
771 * gnu/gcj/protocol/jar/Handler.java: New file.
773 * gnu/gcj/protocol/jar/Connection.java: New file.
775 * java/security/SecureClassLoader.java: New file.
777 * java/lang/ClassLoader.java (parent): New variable.
778 (ClassLoader (ClassLoader)): new constructor.
779 (findClass): New method.
780 (loadClass): Add default 1.2 implementation.
781 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
782 (readfully): Removed.
784 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
785 (findSystemClass): New method.
786 (VMClassLoader): Constructor rewritten.
788 All other methods removed.
790 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
791 to gnu::gcj::runtime::VMClassLoader.
792 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
794 (VMClassLoader::findSystemClass): renamed from findBootClass.
796 * Makefile.am: Add new files.
797 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
799 * Makefile.in: Rebuilt.
801 1999-08-17 Tom Tromey <tromey@cygnus.com>
803 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
805 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
808 1999-08-16 Tom Tromey <tromey@cygnus.com>
810 * configure: Rebuilt.
811 * configure.in: Set DIVIDESPEC to empty string if compiler does
812 not support -fuse-divide-subroutine.
814 1999-08-14 Per Bothner <per@bothner.com>
816 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
817 * java/lang/natClass.cc (initializeClass): Likewise.
818 * java/lang/ClassLoader.java (resolveClass0): New static method.
819 (resolveClass): Call resolveClass0.
820 (findSystemClass): No longer static.
822 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
824 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
826 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
828 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
831 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
834 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
837 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
840 * configure: Rebuilt.
841 * configure.in: Properly align --help output, fix capitalization
843 * acinclude.m4: Likewise.
845 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
847 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
849 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
850 (_Jv_callInterpretedMethod): Unused. Remove.
851 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
853 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
854 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
855 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
856 * interpret.cc: use _Jv_word.
857 * defineclass.cc: use_Jv_word.
858 * resolve.cc: Use _Jv_word.
859 (_Jv_ResolvePoolEntry): Return _Jv_word.
860 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
861 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
863 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
866 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
868 * configure: Rebuilt.
869 * configure.in (sched_yield): Try librt first, then libposix4.
870 Add -lrt, -lposix4 to THREADSPEC.
872 1999-08-08 Anthony Green <green@cygnus.com>
874 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
876 1999-08-08 Anthony Green <green@cygnus.com>
878 * defineclass.cc (_Jv_VerifyClassName): Verify array names
881 1999-08-08 Anthony Green <green@cygnus.com>
885 * include/config.h.in: Rebuilt.
886 * acconfig.h: Add INTERPRETER.
888 * Makefile.in: Rebuilt.
889 * Makefile.am (libffi_files): Identify the libffi object files for
891 (LIBFFIINCS): Define.
893 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
894 Dummy definition for configurations without an interpreter.
896 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
897 java::lang::Boolean constructor.
899 * include/java-interp.h: Always include java-cpool.h.
901 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
902 when INTERPRETER not defined.
904 * java/lang/Class.h (finalize): Define.
906 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
907 IOException from File.getCanonicalPath.
908 (getStream): Likewise.
911 * THANKS: More thanks.
913 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
915 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
917 (_Jv_PrepareClass): Allow non-abstract classes to
918 have abstract subclasses.
919 (_Jv_ResolvePoolEntry): Revert subclass check for protected
921 * interpret.cc (continue1/perform_invoke): Don't sign extend
923 (continue1/lshl,lshr): Push long, not int.
924 (continue1/ulshr): Use UINT64, not long long.
925 * defineclass.cc (handleFieldsEnd): Handle case when all fields
927 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
928 * java/lang/FirstThread.java (run): Add top-level exception
930 (run0): Renamed from run.
932 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
934 * configure.in (--with-interpreter): Added.
935 * include/config.h.in (INTERPRETER): Added.
937 * java/lang/ClassLoader.java: File replaced.
938 * java/lang/VMClassLoader.java: New file.
939 * java/lang/natClassLoader.cc: New file.
940 * gnu/gcj/runtime/MethodInvocation.java: New file.
941 * gnu/gcj/util/path/SearchPath.java: New file.
942 * gnu/gcj/util/path/PathEntry.java: New file.
943 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
944 * gnu/gcj/util/path/ZipPathEntry.java: New file.
945 * gnu/gcj/util/path/URLPathEntry.java: New file.
946 * gnu/gcj/util/path/CacheEntry.java: New file.
947 * include/java-interp.h: New file.
948 * include/java-cpool.h: New file.
949 * include/java-insns.h: New file.
950 * defineclass.cc: New file.
951 * interpret.cc: New file.
952 * resolve.cc: New file.
954 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
955 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
956 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
958 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
959 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
961 (initializeClass): Use new JV_ prefixed names. Also, call
962 ClassLoader::resolveClass instead of _Jv_ResolveClass.
964 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
965 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
966 JV_STATE_LINKED): New.
967 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
968 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
969 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
970 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
971 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
972 _Jv_InterpMethodInvocation): New friends for interpreter.
974 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
975 include/java-cpool.h and renamed with JV_ prefix.
977 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
979 (_Jv_UnregisterClass): New decl.
981 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
982 class loader argument.
983 (_Jv_FindClass): Use class loader.
985 * prims.cc (_Jv_makeUtf8Const): New function.
986 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
987 (_Jv_NewPrimArray): Ditto.
988 (_Jv_FindClassFromSignature): Ditto.
989 * java/lang/reflect/natArray.cc (newInstance): Ditto.
990 * java/lang/reflect/natMethod.cc (getType): Ditto.
992 * include/java-field.h (_Jv_Field::isRef): Make robust for
993 non-resolved contexts.
995 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
996 Also, don't mark class->next field.
998 * java/lang/VirtualMachineError.java: Added FIXME note.
1000 * configure.in (INTERPSPEC): New spec.
1001 * libgcj.spec.in: Added INTERPSPEC.
1002 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1003 gnu/gcj/runtime/MethodInvocation.
1004 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1005 (ordinary_java_source_files): Added above mentioned java classes.
1007 * configure: Rebuilt.
1008 * Makefile.in: Rebuilt.
1010 1999-08-06 Tom Tromey <tromey@cygnus.com>
1012 * configure: Rebuilt.
1013 * configure.in: Look for sched_yield in -lrt.
1015 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1017 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1018 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1019 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1021 (toString): Print correctly when `country' is empty.
1023 1999-08-04 Per Bothner <per@bothner.com>
1025 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1027 1999-08-02 Tom Tromey <tromey@cygnus.com>
1029 * aclocal.m4, configure: Rebuilt for new libtool.
1031 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1033 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1034 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1035 * java/net/ServerSocket.java: Define ANY_IF.
1036 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1037 all network interfaces.
1038 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1039 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1041 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1043 * java/io/natFile.cc (performMkdir): Remove FIXME.
1044 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1046 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1048 * configure.in: Check for bstring.h.
1049 * configure, include/config.h.in: Rebuilt.
1050 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1051 * java/net/natPlainSocketImpl.cc: Likewise.
1053 1999-07-31 Tom Tromey <tromey@cygnus.com>
1058 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1060 * configure.in: Check for struct hostent_data and need for
1061 -D_REENTRANT for gethostbyname_r declaration.
1062 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1063 (lookup): Use hostent_data for fixed_buffer.
1064 * configure, include/config.h.in: Rebuilt.
1066 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1068 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1069 available. Don't cast memmove args to (void*).
1070 * configure.in: Do not abort if memmove is not available.
1072 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1074 * java/lang/natString.cc (substring): optimize where substring is
1076 * java/io/File.java (getName): don't return separator with file name.
1077 * java/io/natFile.cc (attr): fix overflow.
1079 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1081 * mauve-libgcj: Disable Object Serialization tests.
1083 1999-07-20 Warren Levy <warrenl@cygnus.com>
1085 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1086 Default to using PlainDatagramSocketImpl.
1087 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1089 1999-07-19 Tom Tromey <tromey@cygnus.com>
1091 * include/stamp-h.in: New file.
1093 1999-07-12 Tom Tromey <tromey@cygnus.com>
1095 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1098 1999-07-07 Andrew Haley <aph@cygnus.com>
1100 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1101 bytes to make it point after the instruction where the trap
1103 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1105 1999-07-07 Tom Tromey <tromey@cygnus.com>
1107 * mauve-libgcj: Explicitly enable formerly disabled java.text
1110 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1113 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1115 * java/net/URL.java (equals): Compare strings using String.equals.
1116 * java/net/URL.java (sameFile): Ditto.
1118 1999-07-02 Warren Levy <warrenl@cygnus.com>
1120 * configure: Rebuilt.
1121 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1122 * include/config.h.in: Rebuilt.
1123 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1124 (mcastGrp): Updated FIXME comments.
1125 (setOption): Fixed typo.
1126 (getOption):Implemented IP_MULTICAST_IF.
1128 1999-07-02 Warren Levy <warrenl@cygnus.com>
1130 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1131 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1132 (getTimeToLive): Implemented.
1133 (setOption): Implemented IP_MULTICAST_IF.
1135 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1137 * java/lang/String.java (toString): Check for this == null and throw
1138 NullPointerException.
1140 1999-07-01 Warren Levy <warrenl@cygnus.com>
1142 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1143 to count and revised comments to match.
1144 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1145 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1146 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1147 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1148 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1149 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1151 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1153 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1154 properly as count rather than outlength.
1155 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1156 output on overflow rather than buffer fill.
1157 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1158 if markPos is 0 and there is still room in the buffer.
1160 1999-07-01 Andrew Haley <aph@cygnus.com>
1162 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1163 This is a workaround for a bug in glibc's pthreads package which
1164 doesn't deliver any sigcontext information to a signal handler.
1166 1999-06-24 Tom Tromey <tromey@cygnus.com>
1168 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1169 * java/lang/fdlibm.h (HUGE): Conditionally define.
1171 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1173 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1174 * java/lang/e_log.c: Don't use __uint32_t.
1176 1999-05-27 Eric Christopher <echristo@cygnus.com>
1178 * configure: Rebuilt
1179 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1180 * acconfig.h: Rebuilt
1181 * include/config.h.in: Rebuilt
1183 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1184 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1185 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1186 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1187 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1188 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1189 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1190 and namespace collision with __uint32_t
1192 1999-06-23 Tom Tromey <tromey@cygnus.com>
1194 * java/util/zip/InflaterInputStream.java (read): Throw
1195 ZipException if inflater throws a DataFormatException.
1197 1999-06-23 Warren Levy <warrenl@cygnus.com>
1199 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1200 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1201 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1202 is not final per JDK.
1203 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1205 * java/util/zip/DataFormatException.java: Class extends Exception.
1206 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1207 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1208 * java/util/zip/ZipInputStream.java: ditto.
1209 (closeEntry): Changed method name to match JDK spec.
1211 1999-06-21 Tom Tromey <tromey@cygnus.com>
1213 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1216 * Makefile.in: Rebuilt.
1217 * Makefile.am (toolexeclibdir): Define as libdir when
1219 * configure: Rebuilt.
1220 * configure.in (USE_LIBDIR): New conditional.
1222 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1224 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1225 hostname in returned InetAddress objects.
1226 (getLocalHostname): Fix typo.
1227 * java/net/InetAddress.java (getByName): Set hostname on return
1229 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1232 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1234 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1235 interfaces if host==NULL.
1236 (accept): Throw message with InterruptedIOException.
1237 (getOption): Cache localAddress.
1238 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1239 'address' for DatagramSocket.
1240 (setTimeToLive): Fix compiler warnings.
1241 (getOption): Cache localAddress.
1242 * java/net/Socket.java (getLocalAddress): Don't need local
1243 InetAddress object. Add FIXME comment about calling checkConnect().
1244 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1245 connection queue to 50 as per JDK 1.2 docs.
1246 (ServerSocket(int,int)): Listen on all network interfaces by
1247 default, per JDK 1.2 docs.
1248 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1249 Add localAddress caching.
1251 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1253 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1255 (write(byte[],int,int)): ditto.
1257 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1259 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1261 1999-06-11 Warren Levy <warrenl@cygnus.com>
1263 * mauve-libgcj: Activated java.net Mauve tests.
1265 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1267 * java/net/natInetAddress.cc (aton): Fix typos.
1268 (lookup): Use a bigger buffer size for gethostbyname_r on all
1269 versions of glibc. Updated FIXME comment explaining this.
1270 Modified while loops to not set herr = ERANGE to work around glibc
1271 problems. Use user specified hostname in InetAddress result when
1272 available (consistent with JDK).
1274 1999-06-10 Warren Levy <warrenl@cygnus.com>
1276 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1277 Throw FileNotFoundException instead of IOException.
1279 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1281 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1282 in static field name.
1283 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1284 throughout rather than ParseException.
1286 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1288 * java/lang/Runtime.java (exec): Convert prog name and arguments
1290 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1291 environment array conversion. Preserve current environment if envp
1292 not passed. Preserve PATH unless explicitly specified.
1293 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1294 followed by EOF. Set a flag when a line is terminated by '\r' and
1295 ignore following '\n' if set.
1297 1999-06-02 Warren Levy <warrenl@cygnus.com>
1299 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1300 Ignore context if spec is an absolute URL. Fix braindead
1302 (hashCode): Use JDK 1.2 style algorithm.
1303 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1304 context URL properly.
1306 1999-05-30 Anthony Green <green@cygnus.com>
1308 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1309 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1311 1999-05-28 Warren Levy <warrenl@cygnus.com>
1313 * java/net/DatagramSocket.java (laddr): Removed.
1314 (DatagramSocket): Removed attempts to get or set laddr if null.
1315 (getLocalAddress): Reimplemented per spec.
1316 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1318 (joinGroup): Throw NullPointerException if any argument is null.
1319 (leaveGroup): ditto.
1320 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1321 * java/net/PlainSocketImpl.java (timeout): Added.
1322 (getInputStream): Added FIXME comment on how to support timeouts
1324 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1325 * java/net/Socket.java: Added FIXME comments to identify
1326 conflicting specs between the JCL and JDK 1.2 documents.
1327 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1328 if host is null. Get localport value resolved by kernel if bind
1330 (receive): Implemented support for timeouts in UDP.
1331 (setOption): Implemented based on natPlainSocketImpl version.
1333 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1334 resolved by kernel if bind lport is 0.
1335 (connect): Get localport value resolved by kernel if bind wasn't
1336 done to set localport.
1337 (accept): Implemented support for timeouts for ServerSocket.
1338 (setOption): Save value for SO_TIMEOUT.
1339 (getOption): Return timeout for SO_TIMEOUT.
1341 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1343 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1344 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1345 (setOption): Made abstract.
1346 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1347 to avoid cpp conflicts in native code.
1348 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1349 cpp conflicts in native code.
1350 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1351 * java/net/Socket.java (getLocalAddress): Implemented.
1352 (setTcpNoDelay): Implemented.
1353 (getTcpNoDelay): Implemented.
1354 (setSoLinger): Implemented.
1355 (getSoLinger): Implemented.
1356 (getSoTimeout): Verify class type.
1357 (setSendBufferSize): Implemented.
1358 (getSendBufferSize): Implemented.
1359 (setReceiveBufferSize): Implemented.
1360 (getReceiveBufferSize): Implemented.
1361 (toString): Prepended "Socket".
1362 * java/net/SocketImpl.java (toString): Rewritten.
1363 (getOption): Made abstract.
1364 (setOption): Made abstract.
1365 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1366 (setOption): Implemented.
1367 (getOption): Implemented.
1369 1999-05-26 Warren Levy <warrenl@cygnus.com>
1371 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1372 address when null. Set SO_REUSEADDR for multicasts.
1373 (getSoTimeout): Implemented.
1374 (setSoTimeout): Implemented.
1375 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1376 * java/net/MulticastSocket.java (getInterface): Implemented.
1377 (setInterface): Implemented.
1378 (setTimeToLive): Check for invalid ttl.
1379 (joinGroup): Verify multicast address and security.
1380 (leaveGroup): Verify multicast address and security.
1381 (send): Implemented.
1382 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1388 (getTTL): Implemented as non-native.
1392 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1393 (getSoTimeout): Implemented.
1394 (setSocketFactory): Made synchronized.
1395 * java/net/Socket.java (setSoTimeout): Implemented.
1396 (getSoTimeout): Implemented.
1397 (close): Made synchronized.
1398 (setSocketImplFactory): Made synchronized.
1399 * java/net/SocketImpl.java: Implement SocketOptions interface.
1400 * java/net/natInetAddress.cc: Corrected module name at top of file.
1401 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1402 (bind): Added FIXME.
1403 (peek): Implemented.
1409 (setOption): Implemented for SO_REUSEADDR.
1410 (getOption): Implemented for SO_REUSEADDR.
1412 1999-05-24 Tom Tromey <tromey@cygnus.com>
1414 * java/util/ResourceBundle.java (getBundle): Throw
1415 NullPointerException if baseName is null.
1417 1999-05-22 Tom Tromey <tromey@cygnus.com>
1419 * java/util/zip/ZipInputStream.java (fill): New method.
1420 (compressed_len): New instance variable.
1421 (getNextStream): Set it.
1422 (read): Reset inflater on EOF. Only read via `super' if entry is
1424 (skip): Only skip via `super' if entry is deflated.
1425 * java/util/zip/Deflater.java (last_input_count): Removed.
1426 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1428 (needsInput): Don't use last_input_count.
1429 (setInput): Don't set last_input_count.
1430 * java/util/zip/natInflater.cc (getRemaining): Return correct
1432 (inflate): Return 0 if input array is length 0.
1433 (setInput): Don't set last_input_count.
1434 * java/util/zip/Inflater.java (last_input_count): Removed.
1436 1999-05-21 Tom Tromey <tromey@cygnus.com>
1438 * Makefile.in: Rebuilt.
1439 * Makefile.am (INCLUDES): Added $(ZINCS).
1440 * configure: Rebuilt.
1441 * configure.in (ZINCS): New subst.
1443 1999-05-21 Andrew Haley <aph@cygnus.com>
1445 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1446 to signal options to allow the same exceptions to be rethrown
1449 1999-05-20 Andrew Haley <aph@cygnus.com>
1451 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1453 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1454 (INIT_FPE): Exception string made more informative.
1455 * include/sparc-signal.h (INIT_FPE): Exception string made more
1457 * testsuite/libjava.lang/Divide_1.java: New file.
1458 * testsuite/libjava.lang/Divide_1.out: New file.
1460 1999-05-19 Tom Tromey <tromey@cygnus.com>
1462 * aclocal.m4, configure: Rebuilt.
1463 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1465 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1468 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1470 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1472 (update): Fail in default case. Always initialize `strat'.
1474 * mauve-libgcj: Enable java.util.zip.
1476 1999-05-18 Warren Levy <warrenl@cygnus.com>
1478 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1479 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1480 PlainDatagramSocketImpl.java, and SocketOptions.java.
1481 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1482 * Makefile.in: Rebuilt.
1484 * java/net/DatagramPacket.java: New file.
1485 * java/net/DatagramSocket.java: New file.
1486 * java/net/DatagramSocketImpl.java: New file.
1487 * java/net/MulticastSocket.java: New file.
1488 * java/net/PlainDatagramSocketImpl.java: New file.
1489 * java/net/SocketOptions.java: New file.
1490 * java/net/natPlainDatagramSocketImpl.cc: New file.
1492 1999-05-18 Tom Tromey <tromey@cygnus.com>
1494 * java/util/zip/ZipOutputStream.java (level): Initial value is
1495 Deflater.DEFAULT_COMPRESSION.
1496 (close): New method.
1497 (closeEntry): Likewise.
1499 (put_version): Likewise.
1500 (write_entry): Likewise.
1501 (put2, put4): Now return `int'.
1502 (comment): Default to empty string.
1503 (bytes_written): New instance variable.
1505 * java/util/zip/ZipEntry.java (setComment): Limit length of
1507 (setCrc): Check CRC validity.
1508 (setExtra): Check argument validity.
1509 (setMethod): Likewise.
1510 (setSize): Likewise.
1511 (ZipEntry): Likewise.
1512 * include/javaprims.h: Updated namespace declarations.
1513 * Makefile.in: Rebuilt.
1514 * Makefile.am (ordinary_java_source_files): Mention new files.
1515 (nat_source_files): Likewise.
1516 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1519 (getInputStream): Handle compressed entries.
1520 * java/util/zip/GZIPOutputStream.java: New file.
1521 * java/util/zip/GZIPInputStream.java: New file.
1522 * java/util/zip/DataFormatException.java: New file.
1523 * java/util/zip/CheckedInputStream.java: New file.
1524 * java/util/zip/CheckedOutputStream.java: New file.
1525 * java/util/zip/InflaterInputStream.java: Implemented.
1526 * java/util/zip/natInflater.cc: New file.
1527 * java/util/zip/Deflater.java: Implemented.
1528 * java/util/zip/natDeflater.cc: New file.
1529 * java/util/zip/DeflaterOutputStream.java: Implemented.
1531 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1532 ZipException, not IOException.
1533 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1536 1999-05-17 Tom Tromey <tromey@cygnus.com>
1538 * java/lang/natSystem.cc (init_properties): URL now points to
1541 1999-05-12 Per Bothner <bothner@cygnus.com>
1543 * java/util/Calendar.java (set): First call computeFields if needed.
1544 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1546 1999-05-12 Tom Tromey <tromey@cygnus.com>
1548 * configure: Rebuilt.
1549 * configure.in: Look for -ldl when using the Boehm collector.
1550 Look for sched_yield in -lposix4.
1552 1999-05-12 Per Bothner <bothner@cygnus.com>
1554 * java/io/File.java (mkdirs): Handle a null parent directory.
1556 1999-05-12 Tom Tromey <tromey@cygnus.com>
1558 * include/javaprims.h: Updated namespace declarations.
1559 * classes.pl (scan): Uniquify class list.
1560 * Makefile.in, configure: Rebuilt.
1561 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1562 (built_java_source_files): New macro.
1563 (nat_headers): Added built_java_source_files.
1564 (javao_files): Likewise.
1565 (EXTRA_libgcj_la_SOURCES): Likewise.
1566 (libgcj.zip): Create built class files.
1567 ($(built_java_source_files:.java=.class)): New target.
1568 (jv_convert_LDADD): Added -L$(here)/.libs.
1569 * configure.in: Create links for ConcreteProcess.java and
1570 natConcreteProcess.cc.
1571 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1572 * java/lang/natEcosProcess.cc: New file.
1573 * java/lang/EcosProcess.java: New file.
1574 * java/lang/PosixProcess.java: New file.
1575 * java/lang/natPosixProcess.cc: New file.
1577 1999-05-12 Warren Levy <warrenl@cygnus.com>
1579 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1580 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1581 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1582 (connect): Throw ConnectException.
1584 1999-05-11 Tom Tromey <tromey@cygnus.com>
1586 * Makefile.in: Rebuilt.
1587 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1588 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1591 * Makefile.in: Rebuilt.
1592 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1593 and it causes problems with libtool.
1595 * Makefile.in, configure: Rebuilt.
1596 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1597 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1598 (jv_convert_DEPENDENCIES): Added ZDEPS.
1599 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1601 (THREADSPEC): Added `-L' to point to qthreads build directory.
1605 * configure, Makefile.in: Rebuilt.
1606 * Makefile.am (toolexeclib_DATA): New macro.
1607 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1608 Recognize --with-system-zlib.
1609 (GCSPEC): New subst.
1610 (THREADSPEC): New subst.
1611 (SYSTEMSPEC): New subst.
1612 (ZLIBSPEC): New subst.
1613 * libgcj.spec.in: New file.
1615 1999-05-10 Tom Tromey <tromey@cygnus.com>
1617 * java/io/InputStreamReader.java (read): If length is 0, return
1618 0. Reset `wpos' and `wcount' when buffer has been filled and
1621 * java/util/Properties.java (save): Removed `FIXME' comment.
1622 (load): Invalid characters in \u now treated as terminators.
1623 Make sure to append character resulting from `\' handling.
1624 Cast to `char' when appending to key or value.
1625 (skip_ws): Inverted test for whitespace.
1627 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1629 (readLine): Likewise.
1630 (readFully): Implemented.
1632 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1634 * java/awt/natToolkit.cc: Added copyright header.
1635 * java/util/zip/InflaterInputStream.java: Added copyright header.
1637 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1639 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1641 (getNextStream): Likewise.
1643 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1645 (getBundle): Don't explicitly throw null pointer exception.
1647 * gnu/gcj/RawData.java: Added copyright header.
1649 * include/jni.h (_Jv_va_list): Always define as va_list.
1651 1999-05-9 Anthony Green <green@cygnus.com>
1653 * java/text/DateFormat.java (computeInstance): Separate time
1655 (getDateTimeInstance): Ditto.
1656 (getDateTimeInstance(int,int)): New method.
1658 * Makefile.in: Rebuilt.
1659 * Makefile.am (ordinary_java_source_files): Add new classes.
1661 * java/util/PropertyResourceBundle.java: New file.
1662 * gnu/gcj/util/EnumerationChain.java: New file.
1664 1999-05-07 Tom Tromey <tromey@cygnus.com>
1666 * acconfig.h (GCJVERSION): New undef.
1667 * java/lang/natSystem.cc (init_properties): Define java.version,
1668 java.class.version, os.name, os.arch, os.version.
1669 Include <sys/utsname.h> if required.
1670 * configure: Rebuilt.
1671 * configure.in: Compute and define GCJVERSION.
1673 * java/lang/natSystem.cc (default_file_encoding): Now static.
1675 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1677 * libtool-version: New file.
1678 * Makefile.in: Rebuilt.
1679 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1682 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1683 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1686 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1687 (we pick those up already).
1689 1999-05-05 Per Bothner <bothner@cygnus.com>
1691 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1692 stub classes. (This is enough to get Kawa to compile against libgcj.)
1694 * gnu/gcj/RawData.java: New class.
1695 * doc/cni.sgml: Document RawData.
1697 * java/util/zip/InflaterInputStream.java: New stub class.
1698 * java/util/zip/ZipInputStream.java: New class. Partly works.
1699 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1700 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1701 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1702 * java/util/zip/ZipOutputStream.java: Start implementation.
1704 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1705 (default_file_encoding): New global, initial value is above macro.
1706 (init_properties): Default file.encoding to default_file_encoding.
1708 * Makefile.am: Add new classes.
1710 1999-05-05 Tom Tromey <tromey@cygnus.com>
1712 * Makefile.in: Rebuilt.
1713 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1714 (clean-local): New target
1716 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1717 (load, loadLibrary): Now native.
1719 * java/lang/Runtime.java (load, loadLibrary): Now native.
1720 (init): New native method.
1721 (Runtime): Use init.
1722 * prims.cc: Include <ltdl.h> if required.
1723 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1725 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1727 * configure.in: Switch from irix threads to posix threads
1728 * configure: Regenerate.
1730 1999-04-30 Tom Tromey <tromey@cygnus.com>
1732 * Makefile.in: Rebuilt.
1733 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1735 1999-04-29 Tom Tromey <tromey@cygnus.com>
1737 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1740 * java/util/Locale.java (Locale(String,String)): Implement in
1741 terms of 3-argument version; variant now defaults to empty
1743 (toString): Assume variant is not null.
1744 (equals): Assume all strings are not null.
1745 (Locale): Throw NullPointerException if any argument is null.
1747 * java/util/ResourceBundle.java (getBundle): Don't try the base
1748 name; now implicit in partialGetBundle call.
1749 (trySomeGetBundle): Search for parent bundles and call setParent
1751 (partialGetBundle): Added `langStop' argument. Use
1752 `Locale.toString' to compute bundleName.
1753 (resource_cache): New static field.
1754 (partialGetBundle): Cache the returned resource bundle. Now
1757 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1760 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1761 * java/text/natCollator.cc (decomposeCharacter): `base' now
1763 * Makefile.in: Rebuilt.
1764 * Makefile.am (ordinary_java_source_files): Added
1765 CollationElementIterator, CollationKey, Collator,
1767 (nat_source_files): Added natCollator.cc.
1768 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1769 (compare): Pass `this' to CollationElementIterator constructor.
1770 (getCollationElementIterator): Likewise.
1771 (ceiNext): Fix off-by-one error when finding initial substring.
1772 (next): Correctly mask off bits when computing return value.
1773 Fixed return values when one string is shorter than the other.
1774 * java/text/CollationElementIterator.java (collator): New field.
1775 (CollationElementIterator): Added collator argument.
1776 (next): Call ceiNext on collator object.
1778 1999-04-26 Tom Tromey <tromey@cygnus.com>
1780 * natCollator.cc: New file.
1782 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1783 (GregorianCalendar): Use it in all constructors.
1784 * java/util/Calendar.java (Calendar): Changed argument name to
1785 `zone' to match code.
1787 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1788 * java/text/CollationKey.java: New file.
1789 * java/text/CollationElementIterator.java: New file.
1790 * java/text/Collator.java: New file.
1791 * java/text/RuleBasedCollator.java: New file.
1793 * Makefile.in: Rebuilt.
1794 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1795 (jv_convert_LDADD): Explicltly add -lm -lc.
1797 1999-04-26 Tom Tromey <tromey@cygnus.com>
1799 * configure, Makefile.in: Rebuilt.
1800 * configure.in: Added AM_PROG_LIBTOOL.
1801 (GCOBJS): Use `.lo' form of files.
1802 (THREADOBJS): Likewise.
1803 (GCDEPS): Use `.la' form of library.
1804 (GCLIBS): Set to be the same as GCDEPS.
1805 (THREADDEPS): Use `.la' form of library.
1806 (THREADLIBS): Set to be the same as THREADDEPS.
1807 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1808 toolexeclib_LIBRARIES.
1809 (libgcj_la_SOURCES): Renamed for libtoolization.
1810 (EXTRA_libgcj_la_SOURCES): Likewise.
1811 (libgcj_la_DEPENDENCIES): Likewise.
1812 (libgcj_la_LIBADD): Likewise.
1813 ($(nat_files)): Use LTCXXCOMPILE.
1814 ($(c_files)): Use LTCOMPILE.
1815 (GCJCOMPILE): New macro.
1817 (.java.o): Likewise.
1818 ($(javao_files)): Likewise.
1819 (jv_convert_LINK): Use LIBTOOL.
1820 (nat_files): Use `.lo' files.
1821 (c_files): Likewise.
1822 (javao_files): Likewise.
1823 (.class.lo): Renamed.
1824 (.java.lo): Likewise.
1825 ($(nat_files)): Depend on %.lo.
1826 ($(c_files)): Likewise.
1827 ($(javao_files)): Likewise.
1828 (jv_convert_LDADD): Link against .lo files.
1829 (jv_convert_DEPENDENCIES): Depend on .lo files.
1830 (maintainer-check): Depend on libgcj.la, but examine .a file.
1831 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1832 (libgcj_la_LDFLAGS): New macro.
1834 1999-04-23 Warren Levy <warrenl@cygnus.com>
1836 * Makefile.am: Added URLDecoder and URLEncoder.
1837 * Makefile.in: Rebuilt.
1839 * java/net/ServerSocket.java (setSocketFactory): Renamed from
1840 setSocketImplFactory to match spec.
1841 * java/net/Socket.java (getSoLinger): Changed return type to
1844 * java/net/URLDecoder.java: New file.
1845 * java/net/URLEncoder.java: New file.
1847 1999-04-21 Tom Tromey <tromey@cygnus.com>
1849 * java/lang/natString.cc (getBytes): Reverted earlier change and
1850 applied correct fix from Per Bothner.
1852 * java/lang/String.java: Don't throw
1853 UnsupportedEncodingException.
1855 * java/lang/natString.cc (getBytes): Correctly size result
1856 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
1858 1999-04-20 Andrew Haley <aph@cygnus.com>
1860 * include/sparc-signal.h: new file.
1861 * configure.in: include/sparc-signal.h added.
1862 * configure: regenerated.
1863 * prims.cc (JvRunMain): signal handling code rewritten to be more
1865 (catch_segv): ditto.
1867 * include/i386-signal.h: reorganized.
1868 * include/default-signal.h: reorganized.
1870 1999-04-19 Tom Tromey <tromey@cygnus.com>
1872 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1873 once. From Anthony Green.
1875 1999-04-19 Andrew Haley <aph@cygnus.com>
1877 * Makefile.in: Processed with new automake.
1879 1999-04-19 Tom Tromey <tromey@cygnus.com>
1881 * include/javaprims.h: Removed security namespace.
1883 1999-04-20 Anthony Green <green@cygnus.com>
1885 * java/io/PrintStream.java (println): Remove extra println.
1887 1999-04-19 Anthony Green <green@cygnus.com>
1889 * Makefile.in: Rebuilt.
1890 * Makefile.am (ordinary_java_source_files): Add new security files.
1892 * java/security/NoSuchAlgorithmException.java,
1893 java/security/MessageDigest.java: New files.
1895 * include/javaprims.h: Add security namespace.
1897 1999-04-16 Per Bothner <bothner@cygnus.com>
1899 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
1900 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1901 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1902 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
1903 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
1904 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
1905 * gnu/gcj/convert/natInput_SJIS.cc: New file.
1906 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
1907 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
1908 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
1909 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
1910 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
1911 * Makefile.am: Various changes for new files and conversions.
1913 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1914 New overloading, allows greater efficiency.
1915 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1916 New overloading (for efficiency - avoids copying).
1918 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
1919 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
1921 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
1922 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
1923 (writeChars): Don't be quite so eager to flush.
1924 * java/io/PrintStream.java: Rewrite. Now more similar to
1925 OutputStreamWriter, using explicit UnicodeToBytes converter.
1926 Also, autoflush does not need to flush so often.
1927 * java/lang/natString.cc (getBytes): More efficient algorithm.
1928 (init(jbyteArray,jint,jint,jstring)): More efficient.
1930 1999-04-15 Warren Levy <warrenl@cygnus.com>
1932 * Makefile.am (ordinary_java_source_files): Added new Connection
1933 and Handler classes in gnu.gcj.protocol.file package.
1934 * Makefile.in: Rebuilt.
1936 * gnu/gcj/protocol/file/Connection.java: New file.
1937 * gnu/gcj/protocol/file/Handler.java: New file.
1938 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1939 if doInput allows input.
1940 (getOutputStream): Check if doOutput allows output.
1941 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
1943 1999-04-14 Tom Tromey <tromey@cygnus.com>
1945 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
1946 buffer larger to work around bug.
1947 From Bryce McKinlay <bryce@albatross.co.nz>.
1949 1999-04-14 Andrew Haley <aph@cygnus.com>
1951 * java/lang/natDouble.java (doubleToLongBits): ensure that all
1952 NaNs are always converted to the same long value.
1953 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
1956 1999-04-13 Tom Tromey <tromey@cygnus.com>
1958 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
1959 instead switch on actual element type.
1961 * Makefile.in: Rebuilt.
1962 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
1964 1999-04-13 Andrew Haley <aph@cygnus.com>
1966 * include/i386-signal.h, include/default-signal.h: New files.
1967 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
1969 (catch_fpe): New function.
1970 * configure.in: Make link to appropriate include/java-signal.h.
1971 * configure: Rebuilt.
1972 * Makefile.am: include/java-signal.h added to dependency list.
1973 * Makefile.in: Rebuilt.
1975 1999-04-12 Urban Widmark <urban@svenskatest.se>
1977 * java/io/DataInputStream.java (readLine): Corrected handling of
1978 empty lines, from null to "".
1980 1999-04-12 Tom Tromey <tromey@cygnus.com>
1982 * Makefile.in: Rebuilt.
1983 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
1985 * java/lang/natSystem.cc (SystemClass): New define.
1986 (init_properties): Synchronize.
1988 1999-04-08 Geoff Berry <gcb@gnu.org>
1990 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
1991 * natPlainSocketImpl.cc (accept): Add missing else if check
1994 1999-04-08 Tom Tromey <tromey@cygnus.com>
1996 * java/lang/Long.java (parseLong): Corrected overflow detection
1998 * java/lang/Integer.java (parseInt): Corrected overflow detection
2001 * java/io/PrintStream.java (print): Handle null string argument.
2002 (println): Likewise.
2004 1999-04-07 Warren Levy <warrenl@cygnus.com>
2006 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2007 Set count to 0 when InputStreamReader returns -1 for EOF.
2009 1999-04-07 Tom Tromey <tromey@cygnus.com>
2011 * mauve-libgcj: Omit java.text.Collator,
2012 java.text.RuleBasedCollator.
2014 1999-04-06 Tom Tromey <tromey@cygnus.com>
2016 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2017 IOException from getHttpHeaders().
2018 (getHeaderFieldKey): Likewise.
2020 * include/javaprims.h: Regenerated declarations.
2022 * Makefile.in: Rebuilt.
2023 * Makefile.am (ordinary_java_source_files): Updated for removed
2026 1999-04-06 Per Bothner <bothner@cygnus.com>
2028 * java/util/zip/Adler32.java: New class.
2029 * java/util/zip/CRC32.java: Add working method bodies.
2030 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2031 * Makefile.in: Re-generate.
2033 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2035 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2036 from version in removed www hierarchy.
2037 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2038 version in removed www hierarchy.
2040 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2041 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2042 * gnu/gcj/www/protocol/http: Removed dir.
2043 * gnu/gcj/www/protocol: Removed dir.
2044 * gnu/gcj/www: Removed dir.
2046 * java/net/HttpURLConnection.java: Revised comments to indicate
2047 missing JDK 1.2 methods.
2049 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2050 hierarchy rather than the gnu/gcj/www/protocol one.
2051 * java/net/URLConnection.java: Updated status comments.
2052 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2053 the gnu/gcj/www/content one.
2055 1999-04-06 Per Bothner <bothner@cygnus.com>
2057 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2058 The gen-from-JIS program is in $(CONVERT_DIR).
2060 1999-04-06 Tom Tromey <tromey@cygnus.com>
2062 * mauve-libgcj: Renamed from mauve-libjava.
2064 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2066 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2067 (getResponseMessage): Implemented.
2068 (getResponseVals): New private method.
2070 * java/net/URLConnection.java (getContent): Implemented.
2071 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2073 1999-04-05 Tom Tromey <tromey@cygnus.com>
2075 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2076 (jv_convert_SOURCES): Renamed.
2077 (EXTRA_jv_convert_SOURCES): Likewise.
2078 (jv_convert_LDFLAGS): Likewise.
2079 (jv_convert_LINK): Likewise.
2080 (jv_convert_LDADD): Likewise.
2081 (jv_convert_DEPENDENCIES): Likewise.
2083 * Makefile.in: Rebuilt.
2084 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2087 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2089 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2090 method for comparison.
2092 * java/net/URLConnection.java (getContentLength): Implemented.
2093 (getContentType): Implemented.
2094 (getContentEncoding): Implemented.
2095 (getExpiration): Implemented.
2096 (getDate): Implemented.
2097 (getLastModified): Implemented.
2098 (getHeaderFieldInt): Implemented.
2099 (getHeaderFieldDate): Implemented.
2101 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2103 * java/net/URLConnection.java (toString): Implemented.
2104 (setContentHandlerFactory): Implemented.
2105 (setContentHandler): Wrote new private helper method.
2107 1999-04-01 Tom Tromey <tromey@cygnus.com>
2109 * Makefile.in: Rebuilt.
2110 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2111 of 1999-03-31; we always want to build all the .class files.
2112 Depend on java_source_files, not libgcj.zip.
2113 (nat_headers): Define in terms of ordinary_java_source_files.
2115 1999-03-31 Tom Tromey <tromey@cygnus.com>
2117 * Makefile.in: Rebuilt.
2118 * Makefile.am (special_java_source_files): New macro.
2119 (java_source_files): Use it.
2120 (ordinary_java_source_files): New macro.
2121 (java_source_files): Use it.
2122 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2123 creating headers for those files with hand-maintained headers.
2125 * include/javaprims.h: Regenerated namespace declarations.
2126 * classes.pl (scan): Include [0-9] in regexp for matching class
2127 names; for java.util.zip.CRC32.
2129 * Makefile.in: Rebuilt.
2130 * Makefile.am (nat_headers): Redefined to generate all possible
2133 * java/util/zip/ZipException.java: In package java.util.zip, not
2136 1999-03-30 Tom Tromey <tromey@cygnus.com>
2138 * configure: Rebuilt.
2139 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2140 eh-common.h when not building in tree with gcc.
2142 * Makefile.in: Rebuilt.
2143 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2144 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2146 ($(java_source_files:.java=.class)): New target.
2148 * Makefile.in: Rebuilt.
2149 * Makefile.am (java_source_files): Added
2150 java/net/HttpURLConnection.java and
2151 gnu/gcj/www/protocol/http/Connection.java.
2153 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2155 * gnu/gcj/www/protocol/http/Connection.java: New file.
2156 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2157 * java/net/HttpURLConnection.java: New file.
2158 * java/net/URLConnection.java (getHeaderField): Implemented default.
2159 (getHeaderFieldKey): Implemented default method.
2161 1999-03-30 Tom Tromey <tromey@cygnus.com>
2163 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2165 * java/util/zip/Deflater.java: Added copyright header.
2166 * java/util/zip/CRC32.java: Added copyright header.
2168 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2169 that it is automatically generated.
2170 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2172 * gnu/gcj/convert/BytesToUnicode.java,
2173 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2174 gnu/gcj/convert/Input_EUCJIS.java,
2175 gnu/gcj/convert/Input_UTF8.java,
2176 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2177 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2178 gnu/gcj/convert/Output_8859_1.java,
2179 gnu/gcj/convert/Output_JavaSrc.java,
2180 gnu/gcj/convert/Output_UTF8.java,
2181 gnu/gcj/convert/UnicodeToBytes.java,
2182 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2184 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2186 * Makefile.in, configure: Rebuilt.
2187 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2188 not if test subdir exists.
2189 (--enable-gcj-classes): Removed; gcj always used to generate
2191 (JAVA, JAVAC): Removed.
2192 (--enable-single-compilation, --enable-source-compilation):
2195 (NATIVE): New conditional.
2196 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2197 `install-exec' to work.
2198 (toolexeclibdir): Likewise.
2199 (toollib_LIBRARIES): Likewise.
2200 (AM_MAKEFLAGS): Don't pass tooldir.
2202 (javao_files): Redefined.
2203 (java_source_files): New macro.
2204 (c_source_files): New macro.
2205 (c_files): Redefined in terms of c_source_files.
2206 (java_io_files, java_lang_files, java_net_files, java_text_files,
2207 java_util_files, gnu_files, java_files): Removed.
2208 (class_io_files, class_lang_files, class_net_files,
2209 class_text_files, class_util_files, class_gnu_files, class_files):
2211 (nat_source_files): New macro.
2212 (nat_files): Redefined in terms of nat_source_files.
2213 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2214 java_source_files. Removed no-such-file.c.
2216 (ETAGS_ARGS): Removed.
2217 (TAGS_DEPENDENCIES): Likewise.
2218 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2220 (src_io_files, src_lang_files, src_text_files, src_util_files,
2221 src_gnu_files): Removed.
2222 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2223 (BUILT_SOURCES): Removed.
2224 (header-check): New target.
2226 (noinst_PROGRAMS): New macro.
2227 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2229 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2230 (gen-from-JIS): Build in top directory.
2231 (convert_source_files): New macro.
2232 (convert_SOURCES): New macro.
2233 (convert_LDFLAGS): Likewise.
2234 (convert_LINK): Likewise.
2235 (convert_LDADD): Likewise.
2236 (convert_DEPENDENCIES): Likewise.
2238 (gen-from-JIS): Removed.
2239 (gen_from_JIS_SOURCES): New macro.
2240 (gen_from_JIS_LDADD): Likewise.
2241 (gen_from_JIS_DEPENDENCIES): Likewise.
2243 * configure: Rebuilt.
2244 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2245 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2246 when defining conditional.
2248 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2250 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2251 The Unicode Consortium does not permit their re-distribution.
2252 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2253 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2255 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2257 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2259 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2261 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2262 from Unicode Consortium.
2263 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2264 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2265 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2266 New tables, generated using gen-from-JIS.
2267 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2268 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2269 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2270 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2272 * gnu/gcj/convert/Convert.java: New application.
2273 * Makefile.am, Makefile.in (convert): New program, using Convert.
2274 Build the various JIS conversion tables (in maintainer mode).
2276 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2278 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2280 * java/net/URL.java (URL): Deal with null property value. Use "."
2281 as separator in building class name.
2282 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2283 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2284 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2285 beginning of the substring rather than 'start'.
2287 1999-03-26 Tom Tromey <tromey@cygnus.com>
2289 * include/java-chartables.h: Rebuilt.
2290 * include/java-chardecomp.h: New file.
2291 * chartables.pl: Generate output files directly. Added support
2292 for generating decomposition header.
2293 (canonical_decomposition, full_decomposition): New globals.
2294 (DECOMPOSITION): New constant.
2295 (process_char): Call add_decomposition.
2296 (add_decomposition): New sub.
2297 (write_decompositions): New sub.
2299 1999-03-25 Tom Tromey <tromey@cygnus.com>
2301 * java/text/CollationElementIterator.java: New file.
2303 * mauve-libjava: Omit StringTest.
2305 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2307 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2308 without a '/' when parsing protocol. Handle ref outside of parseURL.
2309 (hashCode): Implemented.
2310 (set): Don't expand -1 to default port.
2311 (getDefaultPort): Removed.
2313 * java/net/URLStreamHandler.java (parseURL): Implemented.
2314 (toExternalForm): Implemented.
2316 1999-03-23 Tom Tromey <tromey@cygnus.com>
2318 * java/text/BreakIterator.java (getSentenceInstance):
2320 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2322 * Makefile.in: Rebuilt.
2323 * Makefile.am (nat_headers): Added IllegalAccessException.
2324 * java/lang/natClass.cc (newInstance): Throw
2325 IllegalAccessException, not IllegalAccessError.
2326 Include IllegalAccessException.h.
2328 1999-03-22 Tom Tromey <tromey@cygnus.com>
2330 * gnu/gcj/text/LineBreakIterator.java: New file.
2331 * java/text/BreakIterator.java (getLineInstance): Implemented.
2333 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2334 copy constructor private.
2335 (previous, next): Removed erroneous comment about line
2337 (previous): Correctly recognize break between non-letter on the
2338 left and letter on the right. Handle apostrophes correctly.
2340 * java/text/BreakIterator.java (getWordInstance): Implemented.
2341 * gnu/gcj/text/WordBreakIterator.java: New file.
2342 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2344 * gnu/gcj/text/BaseBreakIterator.java: New file.
2346 1999-03-19 Tom Tromey <tromey@cygnus.com>
2348 * java/text/BreakIterator.java: New file (partially stubbed out).
2349 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2351 * include/config.h.in: Rebuilt.
2352 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2353 (HAVE_TIMEZONE): Likewise.
2354 * configure: Rebuilt.
2355 * configure.in: Added timezone checks.
2356 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2359 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2361 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2362 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2363 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2364 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2365 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2366 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2367 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2368 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2370 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2371 (BSD_COMP): Kludge needed for Solaris2.
2373 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2375 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2376 URL(java.net.URL, string, URLStreamHandler) and call it with a
2377 null handler. In latter constructor, added SecurityManager check.
2378 (set): Expect null handler on bad protocol rather than an exception.
2379 (setURLStreamHandler): Simplified exception handling; return null
2380 on invalid protocol.
2382 1999-03-18 Tom Tromey <tromey@cygnus.com>
2384 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2386 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2388 Include PrintStream.h, InputStream.h.
2389 * java/lang/System.java (ForwardingInputStream,
2390 ForwardingOutputStream): Removed.
2391 (setErr, setIn, setOut): Now native.
2393 Reverted patch from 1999-02-12 to work around problem in
2395 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2396 (_Jv_eh_free): Use free.
2398 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2399 for path name. Minor formatting fixes.
2401 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2403 * prims.cc (fail_on_finalization): New function.
2404 (_Jv_GCWatch): Likewise.
2406 * prims.cc (JvRunMain): Initialize `nullp'.
2407 (nullp): New global.
2408 (catch_segv): Throw nullp.
2410 * Makefile.in: Rebuilt.
2411 * Makefile.am (ZIP): In "null target" case, zip is found in the
2414 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2418 * java/lang/StringBuffer.java (StringBuffer): Don't use
2419 ensureCapacity to set initial capacity.
2420 (capacity): Subtract `length' from return result.
2422 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2424 * java/io/natFileDescriptorPosix.cc (open): Throw
2425 FileNotFoundException, but with filename and errno in msg.
2427 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2429 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2430 functionality folded into java/net/URL.java per spec.
2432 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2433 than EEXIST for throwing FileNotFoundException.
2435 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2436 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2438 * java/net/URLStreamHandler.java (parseURL): Added stub.
2440 1999-03-15 Andrew Haley <aph@cygnus.com>
2442 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2445 1999-03-15 Andrew Haley <aph@cygnus.com>
2447 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2450 1999-03-12 Tom Tromey <tromey@cygnus.com>
2452 * prims.cc (catch_segv): New function.
2453 Include <signal.h> if HANDLE_SEGV defined. Include
2454 NullPointerException.h.
2455 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2458 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2459 a SimpleDateFormat, not just a DateFormat.
2460 (defaultCenturyStart, formatData, pattern): Now private.
2461 (append): Now `final'. Use `NumberFormat.format'.
2463 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2465 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2468 * java/text/MessageFormat.java (format): Use default MessageFormat
2470 (parse, parseObject): Wrote.
2472 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2475 1999-03-12 Andrew Haley <aph@cygnus.com>
2477 * java/lang/String.java (indexOf): Replace with native method for
2479 * java/lang/natString.cc (IndexOf): As above.
2481 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2482 Argument check corrected.
2483 (init(jbyteArray,jint,jint,jstring)): Likewise.
2485 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2486 1.2 compliant method.
2488 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2490 * java/lang/Float.java (byteValue, shortValue): Likewise.
2492 1999-03-11 Tom Tromey <tromey@cygnus.com>
2494 * java/text/DecimalFormat.java (parse): Wrote.
2496 * java/text/ChoiceFormat.java (parse): Set error index on
2497 ParsePosition object.
2499 * java/lang/Integer.java (parseInt): Throw exception on overflow
2500 when intermediate result is most negative number. Changed
2501 overflow detection as well.
2502 * java/lang/Long.java (parseLong): Likewise.
2504 * configure, Makefile.in: Rebuilt.
2505 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2506 CANADIAN when building in source tree that doesn't include gcc.
2507 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2510 * java/text/ChoiceFormat.java (nextDouble): Correct some
2511 off-by-one errors when masking or adding.
2513 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2514 parameter, if given. Use `%', not IEEEremainder.
2515 (scanFix): Throw error if multiplier already set.
2516 (computePattern): Wrote.
2518 1999-03-11 Andrew Haley <aph@cygnus.com>
2520 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2522 (nextDouble): Corrected masking logic. Handle interaction between
2523 `next' and negative numbers.
2525 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2527 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2528 * java/net/URL.java: Added general comments.
2530 1999-03-10 Tom Tromey <tromey@cygnus.com>
2532 * java/text/ChoiceFormat.java (parse): Wrote.
2534 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2536 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2537 Create ChoiceFormat objects.
2538 (format): Special-case ChoiceFormat.
2539 (scanFormatElement): Include { and } in generated style string.
2541 1999-03-09 Tom Tromey <tromey@cygnus.com>
2543 * java/text/ChoiceFormat.java: New file.
2545 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2547 * java/net/BindException.java: Created.
2548 * java/net/ConnectException.java: Created.
2549 * java/net/ContentHandler.java: Created.
2550 * java/net/ContentHandlerFactory.java: Created.
2551 * java/net/FileNameMap.java: Created.
2552 * java/net/MalformedURLException.java: Created.
2553 * java/net/NoRouteToHostException.java: Created.
2554 * java/net/ProtocolException.java: Created.
2555 * java/net/ServerSocket.java (@author): Fixed typo.
2556 * java/net/Socket.java (@author): Fixed typo.
2557 * java/net/SocketImpl.java (@author): Fixed typo.
2558 * java/net/SocketImplFactory.java (@author): Fixed typo.
2559 * java/net/URL.java: Created - nearly complete.
2560 * java/net/URLConnection.java: Created - near-empty stub.
2561 * java/net/URLStreamHandler.java: Created - incomplete stub.
2562 * java/net/URLStreamHandlerFactory.java: Created.
2563 * java/net/UnknownServiceException.java: Created.
2565 1999-03-09 Tom Tromey <tromey@cygnus.com>
2567 * java/lang/System.java (ForwardingInputStream): New class.
2568 (ForwardingOutputStream): Likewise.
2569 (in, out, err): Now `final' forwarding streams.
2570 (setIn, setOut, setErr): Use appropriate method on forwarding
2573 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2576 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2578 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2579 * java/util/zip/Checksum.java: New interface (complete).
2580 * java/util/zip/Deflater.java: New class (near-empty stub).
2581 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2582 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2583 * java/util/zip/ZipEntry.java: New class (complete).
2584 * java/util/zip/ZipException.java: New class (complete).
2585 * java/util/zip/ZipFile.java: New class (incomplete stub).
2586 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2588 1999-03-09 Tom Tromey <tromey@cygnus.com>
2590 * java/text/MessageFormat.java (MessageFormatElement): Removed
2591 `public' specifiers.
2593 * java/text/DecimalFormat.java (scanFormat): Increment index
2594 before processing exponential format. Fixed a couple typos in
2596 (format): Correct normalization of exponent.
2598 1999-03-08 Tom Tromey <tromey@cygnus.com>
2600 * java/text/SimpleDateFormat.java (parse): Throw
2601 IllegalArgumentException, not ParseException.
2603 1999-03-05 Tom Tromey <tromey@cygnus.com>
2605 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2606 when constructing DateFormatSymbols. Initialize numberFormat
2607 field of superclass.
2609 * java/text/DateFormat.java (equals): Rewrote.
2610 (getAvailableLocales): New method.
2611 (getDateInstance): New methods.
2612 (getDateTimeInstance): Likewise.
2613 (getTimeInstance): Likewise.
2614 (getInstance): New method.
2615 (computeInstance): New method.
2617 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2619 (safeGetResource): New method.
2620 (DateFormatSymbols): Use Locale paramater.
2621 (equals): Now protected.
2622 Made instance variables private.
2624 1999-03-04 Tom Tromey <tromey@cygnus.com>
2626 * java/text/DecimalFormat.java: New file.
2628 * java/text/NumberFormat.java (groupingUsed,
2629 maximumFractionDigits, maximumIntegerDigits,
2630 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2632 (setDecimalSeparatorAlwaysShown, setMultiplier,
2633 setPositivePrefix): Removed.
2634 (setMinimumFractionDigits, setMaximumFractionDigits):
2636 (format): Now final.
2637 Added many new methods.
2639 * Makefile.in: Rebuilt.
2640 * Makefile.am (gnu_files): New macro.
2641 (java_files): Added gnu_files.
2642 (class_gnu_files): New macro.
2643 (class_files): Use it.
2644 (src_gnu_files): New macro.
2645 (gnu.o): New target.
2646 (javao_files): Added gnu.o.
2648 * gnu/gcj/text/LocaleData_en_US.java: New file.
2649 * gnu/gcj/text/LocaleData_en.java: New file.
2650 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2651 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2652 (safeGetString): New method.
2653 (safeGetChar): Likewise.
2655 1999-03-03 Tom Tromey <tromey@cygnus.com>
2657 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2660 * java/text/FieldPosition.java (equals): Don't check for null
2661 object; instanceof does this.
2663 * java/util/Locale.java (clone): New method.
2666 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2668 * doc/cni.sgml: New file.
2670 1999-03-03 Tom Tromey <tromey@cygnus.com>
2672 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2674 * java/text/DecimalFormatSymbols.java: New file.
2676 1999-03-02 Tom Tromey <tromey@cygnus.com>
2678 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2680 * configure: Rebuilt.
2681 * configure.in: Check for sys/filio.h.
2683 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2685 (load): Always throw UnsatisfiedLinkError.
2686 (loadLibrary): Likewise.
2688 1999-03-02 Anthony Green <green@cygnus.com>
2690 * LIBGCJ_LICENSE: New file.
2691 * LIBJAVA_LICENSE: Removed.
2692 * Many files: libjava now libgcj.
2694 1999-03-02 Tom Tromey <tromey@cygnus.com>
2696 * include/java-chartables.h: Rebuilt.
2697 * chartables.pl (print_block): Make table `const'.
2698 (print_numerics): Likewise.
2699 (print_single_map): Likewise.
2700 (print_all_block): Likewise.
2701 (print_case_table): Likewise.
2702 (print_fast_tables): Likewise.
2703 * java/lang/natCharacter.cc (table_search): `table' argument now
2706 1999-03-01 Tom Tromey <tromey@cygnus.com>
2708 * java/util/Date.java (before, after): Inverted logic.
2710 * java/util/Date.java (parse): Handle case where first character
2711 in string is open parenthesis.
2712 (skipParens): Rewrote.
2714 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2715 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2717 * java/util/Date.java (parse): Correctly compute beginning of
2720 * java/util/Hashtable.java (get): Throw NullPointerException if
2722 (containsKey): Likewise.
2724 * java/util/Properties.java (list): Truncate value to 37
2725 characters and add `...'.
2727 * java/lang/Byte.java (parseByte): Pass `radix' to
2730 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2732 Include System.h, PrintStream.h.
2734 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2737 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2739 * configure: Rebuilt.
2740 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2743 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2745 * java/lang/SecurityManager.java: Import java.net.*.
2746 (checkMulticast): New methods.
2748 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2750 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2751 (nat_files): Add java/lang/reflect/natArray.o.
2752 (nat_headers): Add Field.h and NoSuchFieldException.h.
2754 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2755 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2756 (_Jv_FromReflectedField): Fix buglet.
2757 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2758 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2759 * prims.cc (_Jv_Abort): Include message in print-out.
2761 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2762 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2763 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2765 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2766 * include/config.h.in (HAVE_PWD_H): New feature macro.
2767 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2768 user.name, user.home, user.dir.
2770 * java/lang/reflect/Array.java: New class.
2771 * java/lang/reflect/natArray.cc: New native methods.
2772 * include/javaprims.h: Declare java::lang::reflect::Array.
2774 * java/lang/Class.h (getField): New private method. Add friends.
2775 * java/lang/Class.java (getField): Add private overload.
2776 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2777 getDeclaredMethods): Add working implementations.
2778 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2779 Finish implementation, except for access control.
2781 * java/lang/reflect/Modifier.java (toString): New overload.
2782 * include/java-method.h: New file.
2783 * java/lang/reflect/Method.java (index): Replaced by offset field.
2784 Remove various private fields - get them from _Jv_Field instead.
2785 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2786 New method implementations.
2788 * java/text/NumberFormat.java: Add a bunch of methods.
2790 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2792 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2794 1999-02-26 Tom Tromey <tromey@cygnus.com>
2796 * include/config.h.in: Rebuilt.
2797 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2798 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2799 HAVE_GETHOSTBYADDR_R): New defines.
2800 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2801 gethostbyaddr_r if available.
2803 * configure: Rebuilt.
2804 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2806 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2810 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2811 * prims.cc (_Jv_AllocBytesChecked): New function.
2813 * Makefile.in: Rebuilt.
2814 * Makefile.am (SUBDIRS): Removed `test'.
2815 * configure: Rebuilt.
2816 * configure.in: Don't build test/Makefile.
2817 * test/*: Removed all files.
2819 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
2821 * java/lang/reflect/Constructor.java: Make class final to match spec.
2822 * java/lang/reflect/Method.java: Ditto.
2824 1999-02-25 Tom Tromey <tromey@cygnus.com>
2826 * java/net/natInetAddress.cc: Include <sys/types.h> before
2828 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2831 * java/net/natInetAddress.cc: Declare gethostname if required.
2832 * include/config.h.in: Rebuilt.
2833 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2834 * configure: Rebuilt.
2835 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2836 declared in unistd.h.
2838 1999-02-24 Tom Tromey <tromey@cygnus.com>
2840 * Makefile.in: Rebuilt.
2841 * Makefile.am (java/io/FileDescriptor.h): Removed target.
2842 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2843 from private to "none".
2845 * include/javaprims.h: Regenerated class declarations with new
2847 * classes.pl (scan): Only generate decls for java.lang, java.io,
2850 1999-02-24 Tom Tromey <tromey@cygnus.com>
2852 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2853 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2855 1999-02-23 Tom Tromey <tromey@cygnus.com>
2857 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2858 not already defined.
2859 * java/io/natFile.cc (_REENTRANT): Only define if not already
2861 * include/config.h.in: Rebuilt.
2862 * acconfig.h (HAVE_BOEHM_GC): New define.
2863 * configure: Rebuilt.
2864 * configure.in: Define HAVE_BOEHM_GC if using it.
2865 * posix-threads.cc: Include boehm-config.h and gc.h if
2867 * include/posix-threads.h: Added explanatory note about Boehm GC.
2869 * java/io/BufferedReader.java (readLine): Only return null when
2870 EOF seen before any characters read. (In particular, an empty
2871 line should not return null.)
2873 * java/io/BufferedInputStream.java (read): Only refill once per
2876 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2877 java.lang.Character.classify12, java.lang.String.hash,
2878 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2879 java.text.SimpleDateFormat.getAndSet2DigitYearStart
2881 * java/text/StringCharacterIterator.java (setIndex): No error if
2883 (next): Check for `pos == end', not `end - 1'.
2884 (StringCharacterIterator): Allow `pos == end'. Explicitly check
2885 for null text in each constructor.
2886 (clone): Fixed order of arguments to constructor.
2888 1999-02-22 Tom Tromey <tromey@cygnus.com>
2890 * include/config.h.in: Rebuilt.
2891 * acconfig.h (HAVE_INET6): New define.
2892 (HAVE_SOCKLEN_T): Likewise.
2893 * java/net/PlainSocketImpl.java: Added copyright header.
2894 * java/net/natPlainSocketImpl.cc: Added copyright header.
2895 (union SockAddr): Use HAVE_INET6, not AF_INET6.
2897 (connect): Likewise.
2899 (socklen_t): New typedef.
2900 (accept): Use socklen_t.
2901 * java/net/natInetAddress.cc: Added copyright header.
2902 (HAVE_GETHOSTNAME): Don't define.
2903 (HAVE_INET_ADDR): Likewise.
2904 (lookup): Fixed typo.
2905 (aton): Don't use `address' as name of local variable.
2906 (lookup): Use HAVE_INET6, not AF_INET6.
2908 * configure: Rebuilt.
2909 * configure.in: Look for functions inet_aton, inet_addr,
2910 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
2911 Check for socklen_t typedef.
2913 * exception.cc (__throw): Declare as __noreturn__.
2915 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
2917 * Makefile.am, Makefile.in: Also build java/net.
2918 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
2920 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2921 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
2923 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
2924 * include/cni.h (JvMalloc, JvFree): New inline functions.
2925 (JvThrow): Add __noreturn__ attribute.
2926 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
2927 (_Jv_Throw): Add __noreturn__ attribute.
2929 * java/net/PlainSocketImpl.java: Init fnum to -1.
2930 * java/net/ServerSocket.java: Add missing throws clauses.
2931 * java/lang/Socket.java: For the constructor taking a SocketImpl,
2932 don't call create on the latter. Instead, other constructors
2933 have to explicitly call SocketImpl.create.
2934 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
2935 from size_t to int, to match ::accept prototype.
2936 * java/net/natInetAddress.cc: Use JvFree rather than free.
2939 1999-02-22 Tom Tromey <tromey@cygnus.com>
2941 * include/javaprims.h: Added new classes.
2942 * java/text/StringCharacterIterator.java: New file.
2943 * java/text/CharacterIterator.java: New file.
2945 * java/text/ParseException.java (errorOffset): Now private.
2947 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
2949 * java/net: New package.
2950 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
2951 Socket.java,SocketException.java,SocketImpl.java,
2952 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
2953 natPlainSocketImpl.cc}: New classes.
2955 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
2956 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
2957 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
2958 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
2960 * classes.pl: Translate package into "namespace", not "class".
2961 * include/javaprims.h: Update class list, using "namespace".
2963 1999-02-21 Tom Tromey <tromey@cygnus.com>
2965 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
2966 Define when appropriate.
2968 1999-02-20 Tom Tromey <tromey@cygnus.com>
2970 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
2971 as a single byte and \u07ff as two bytes.
2972 (_Jv_GetStringUTFLength): Likewise.
2973 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
2974 with 0x0f, not 0x1f.
2976 1999-02-19 Tom Tromey <tromey@cygnus.com>
2978 * java/io/DataOutputStream.java (writeUTF): When encoding
2979 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
2980 * java/io/DataInputStream.java (readUTF): Mask second byte of
2981 3-byte character with 0x3f, not 0x1f.
2983 * java/io/DataInputStream.java (readLong): Cast result of
2984 readUnsignedByte to long before using.
2986 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
2989 * mauve-libjava: Re-enabled java.io.DataInputOutput.
2990 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
2991 argument to avoid warning.
2992 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
2993 argument to avoid warning.
2995 1999-02-18 Tom Tromey <tromey@cygnus.com>
2997 * mauve-libjava: Omit java.io.DataInputOutput and
2998 java.io.Utf8Encoding.
3000 1999-02-17 Tom Tromey <tromey@cygnus.com>
3002 * Makefile.in: Rebuilt.
3003 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3004 * java/io/natFileDescriptorPosix.cc: Include
3005 InterruptedIOException.h, Thread.h.
3006 (write): Throw InterruptedIOException when required.
3008 * posix-threads.cc: Include <signal.h>.
3009 (_Jv_ThreadInterrupt): New function.
3011 (handle_intr): New function.
3012 (_Jv_InitThreads): Register handle_intr via sigaction.
3013 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3014 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3015 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3016 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3018 1999-02-19 Andrew Haley <aph@cygnus.com>
3020 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3022 (ThreadGroup (int)): Set the maximum priority of the initial
3025 1999-02-18 Andrew Haley <aph@cygnus.com>
3027 * java/lang/natClass.cc (forName): Check for the case where a
3028 classname is the name of an array and call FindClassFromSignature
3031 1999-02-18 Andrew Haley <aph@cygnus.com>
3033 * java/lang/StringBuffer (insert (int, String)): Move up any
3034 characters above the insert position and increase the length of
3035 the string buffer by the length of the argument.
3036 (insert (int, char[])): Likewise.
3037 (insert (int, char)): Likewise.
3038 (StringBuffer (String)): The initial capacity of the string buffer
3039 is 16 plus the length of the argument.
3040 (getChars): Add a JDK 1.2 FIXME.
3042 1999-02-18 Andrew Haley <aph@cygnus.com>
3044 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3047 1999-02-18 Andrew Haley <aph@cygnus.com>
3049 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3050 instead of floating-point equality. This is necessary for
3051 correct floating-point Hashtables.
3052 * java/lang/Float.java (equals): Ditto.
3054 1999-02-16 Tom Tromey <tromey@cygnus.com>
3056 * java/util/Properties.java (list): Truncate value to 37
3057 characters and add "...".
3059 1999-02-16 Tom Tromey <tromey@cygnus.com>
3061 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3062 if initCap is negative.
3063 (contains): Implement JDK1.2-style handling of null argument.
3064 (removeElement): Likewise.
3065 (indexOf): Likewise. Also, correctly handle case where idx is
3067 (lastIndexOf): Likewise.
3069 1999-02-16 Tom Tromey <tromey@cygnus.com>
3071 * java/lang/natString.cc (init): Increment source pointer in
3074 1999-02-16 Tom Tromey <tromey@cygnus.com>
3076 * exception.cc: Include NullPointerException.h.
3077 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3079 1999-02-16 Tom Tromey <tromey@cygnus.com>
3081 * Makefile.in: Rebuilt.
3082 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3084 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3086 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3087 we're compiling canadian.
3088 * configure: Regenerated.
3090 1999-02-12 Andrew Haley <aph@cygnus.com>
3092 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3093 deleted from libgcj.
3095 1999-02-12 Tom Tromey <tromey@cygnus.com>
3097 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3098 (_Jv_eh_free): Don't call free.
3099 Don't declare malloc or free.
3101 1999-02-11 Tom Tromey <tromey@cygnus.com>
3103 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3105 1999-02-11 Andrew Haley <aph@cygnus.com>
3107 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3108 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3109 needed by java.lang.*.
3110 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3111 wf_fmod.o: Removed from libjava.a.
3113 1999-02-11 Tom Tromey <tromey@cygnus.com>
3115 * include/javaprims.h: Reverted previous change; with it
3116 exception.cc can't compile.
3118 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3120 * include/config.h.in: Rebuilt.
3121 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3123 * configure: Rebuilt.
3124 * configure.in: Check for sched_yield. Look in thread library for
3125 all thread functions.
3127 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3128 no recursive mutexes.
3129 (_Jv_MutexDestroy): Define when required.
3130 (_Jv_MutexLock): Likewise.
3131 (_Jv_MutexUnlock): Likewise.
3132 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3133 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3134 (_Jv_Mutex_t): New structure.
3135 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3136 (_Jv_MutexLock): Likewise.
3137 (_Jv_MutexUnlock): Likewise.
3139 1999-02-10 Tom Tromey <tromey@cygnus.com>
3141 * aclocal.m4, configure, Makefile.in: Rebuilt.
3142 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3144 * configure.in: Changed to track library changes.
3145 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3146 (AM_CXXFLAGS): Likewise.
3147 (data_DATA): Likewise.
3148 (AM_CFLAGS): Likewise.
3149 (JC1FLAGS): Likewise.
3150 (libgcj_a_SOURCES): Likewise.
3151 (EXTRA_libgcj_a_SOURCES): Likewise.
3152 (libgcj_a_DEPENDENCIES): Likewise.
3153 (libgcj_a_LIBADD): Likewise.
3154 (libgcj.zip): Likewise.
3155 (CLEANFILES): Likewise.
3156 ($(nat_headers)): Likewise.
3157 (java/lang/FirstThread.h): Likewise.
3158 (java/lang/ThreadGroup.h): Likewise.
3159 (java/lang/String.h): Likewise.
3160 (java/lang/reflect/Field.h): Likewise.
3161 (BUILT_SOURCES): Likewise.
3162 (maintainer-check): Likewise.
3163 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3164 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3166 * java/util/natGregorianCalendar.cc (computeFields): Only use
3167 gmtime_r and localtime_r when configured for posix threads.
3169 * java/io/natFile.cc (get_entry): Only use readdir_r when
3170 configured for posix threads.
3172 * java/util/natGregorianCalendar.cc: Update copyright notice.
3173 * java/util/TimeZone.java: Ditto.
3174 * java/util/SimpleTimeZone.java: Ditto.
3176 1999-02-08 Tom Tromey <tromey@cygnus.com>
3178 * java/io/PrintStream.java (line_separator): New constant.
3179 (print): Use line_separator, not `file.separator' property.
3180 (println): Use line_separator.
3182 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3183 when trying to instantiate Class.
3185 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3186 NullPointerException if argument is null.
3188 * java/lang/Thread.java (setName): Throw NullPointerException, not
3189 IllegalArgumentException.
3192 1999-02-08 Andrew Haley <aph@cygnus.com>
3194 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3195 create new Classes with Class.newInstance().
3197 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3198 semiciolon to end of an array Class's signature if the elements of
3199 the array aren't themselves arrays.
3201 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3202 array of objects is always sizeof(jobject), not the size of the
3203 object to which the reference points.
3205 1999-02-08 Tom Tromey <tromey@cygnus.com>
3207 * java/util/BitSet.java (and): Throw NullPointerException when
3212 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3213 if argument is negative.
3214 (clear): Correctly compute `offset'. Throw
3215 IndexOutOfBoundsException when required.
3217 (get): Likewise. Also, return correct value.
3218 (ensure): Changed meaning of argument.
3219 (toString): Wrap contents in `{}'; put spaces after commas.
3220 (hashCode): Don't try to examine elements off the end of array.
3221 (or): Correctly include bits past the end of this bit set.
3224 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3226 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3227 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3229 1999-02-04 Andrew Haley <aph@cygnus.com>
3231 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3232 '/' in signatures to '.'
3233 (Class::getName): Likewise,
3234 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3236 * java/lang/natFirstThread.cc (run): Change '/' in main's
3239 1999-02-03 Andrew Haley <aph@cygnus.com>
3241 * configure.host: -ffloat-store added when compiling libjava on
3242 x86. fdlibm apparently relies on this.
3244 * java/lang/ThreadGroup.java (add): throw an exception if the
3245 ThreadGroup has been destroyed.
3247 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3250 1999-01-27 Tom Tromey <tromey@cygnus.com>
3252 * java/lang/StringBuffer.java (StringBuffer): Handle null
3255 1999-01-21 Tom Tromey <tromey@cygnus.com>
3257 * java/lang/natFirstThread.cc (run): Don't require main to be
3260 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3262 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3264 1999-01-20 Tom Tromey <tromey@cygnus.com>
3266 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3270 (unintern): Likewise.
3271 (_Jv_NewStringUtf8Const): Likewise.
3273 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3274 Character.isLetter, to see if character is self-quoting. Also,
3275 correctly handle quoted characters.
3276 (parse): Fixed typo. Also now throws ParseException.
3278 1999-01-15 Tom Tromey <tromey@cygnus.com>
3280 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3282 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3283 _Jv_SyncInfo has `init' member.
3285 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3288 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3289 IllegalMonitorStateException if unlock fails.
3291 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3293 (_Jv_NewObjectArray): Likewise.
3295 1999-01-14 Tom Tromey <tromey@cygnus.com>
3297 * java/lang/Character.java (isJavaIdentifierPart): Allow
3298 LETTER_NUMBER characters.
3300 * chartables.pl (process_char): Fixed error messages.
3302 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3303 * chartables.pl: Updated comments. Changed detection of non-digit
3304 numeric values (no longer miss \u00b2 and friends).
3306 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3307 currency symbols and connector punctuation.
3308 (isIdentifierIgnorable): Make 7f-9f ignorable.
3310 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3311 (_Jv_NewPrimArray): Likewise.
3312 (SIZE_T_MAX): New define.
3314 * java/lang/ClassLoader.java (system): Now private and final.
3316 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3319 * configure: Rebuilt.
3320 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3322 * exception.cc: Include gansidecl.h.
3324 1999-01-14 Andrew Haley <aph@cygnus.com>
3326 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3327 corrected: they didn't treat -0.0 and NaNs correctly.
3329 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3331 * nogc.cc: Use calloc to zero out memory.
3333 1999-01-11 Tom Tromey <tromey@cygnus.com>
3335 * java/lang/natClass.cc (isInstance): Return false if this class
3336 is primitive, not if class of `obj' is primitive.
3337 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3339 * java/io/SequenceInputStream.java (close): Handle case where `in'
3342 * java/text/DateFormat.java (format): New method.
3344 * mauve-libjava: Omit java.text.DateFormat.
3346 1999-01-08 Tom Tromey <tromey@cygnus.com>
3348 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3350 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3352 (_Jv_CondNotifyAll): Likewise.
3354 * configure: Rebuilt.
3355 * configure.in: Change --enable-source-compilation logic to work
3358 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3360 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3361 and RUNTESTFLAGS from AM_MAKEFLAGS.
3362 * configure.in: AM_RUNTESTFLAGS added.
3363 * configure.host: AM_RUNTESTFLAGS added.
3364 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3365 * configure: rebuilt.
3366 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3368 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3369 argv[] made conditional because embedded targets may not have
3371 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3372 explanatory comments added in call to super.
3374 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3375 exception thrown in the test harness itself added.
3376 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3378 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3380 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3382 1999-01-06 Tom Tromey <tromey@cygnus.com>
3384 * java/io/natFile.cc (get_entry): New function.
3385 (performList): Use get_entry.
3386 * include/config.h.in: Rebuilt.
3387 * acconfig.h (HAVE_READDIR_R): New define.
3388 * configure: Rebuilt.
3389 * configure.in: Look for readdir_r.
3391 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3393 * java/util/natDate.cc: Added copyright header.
3395 1999-01-05 Tom Tromey <tromey@cygnus.com>
3397 * include/config.h.in: Rebuilt.
3398 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3399 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3400 * configure: Rebuilt.
3401 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3402 unlink, and realpath.
3403 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3404 (stat): Conditionalize on HAVE_STAT.
3406 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3407 (performMkdir): Conditionalize on HAVE_MKDIR.
3408 (performRenameTo): Conditionalize on HAVE_RENAME.
3409 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3411 * include/config.h.in: Rebuilt.
3412 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3413 * configure: Rebuilt.
3414 * configure.in: Check for gmtime_r and localtime_r. For cross
3415 builds, assume they exist.
3417 * mauve-libjava: Include java.text.DateFormatSymbols again.
3418 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3419 from setAmPmStrings.
3421 * mauve-libjava: Omit java.text.DateFormatSymbols.
3423 1999-01-04 Tom Tromey <tromey@cygnus.com>
3425 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3427 * java/io/LineNumberReader.java (read): Decrement `count' in
3430 * java/io/BufferedWriter.java (write): Correctly determine when
3431 incoming data would overrun buffer. Flush buffer if write causes
3434 * java/io/BufferedOutputStream.java (write): Increment `count'
3435 after copying data into buffer.
3437 * java/io/FilterOutputStream.java (close): Call flush first.
3439 * java/io/PipedReader.java (read): If read causes `out' to catch
3440 up with `in', then set `in' to -1.
3442 * java/io/LineNumberInputStream.java (read): If no bytes read,
3443 return -1. If no bytes requested, return 0.
3445 * java/lang/StringBuffer.java (insert): If `str' is null, use
3448 1998-12-30 Anthony Green <green@cygnus.com>
3451 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3453 1998-12-23 Tom Tromey <tromey@cygnus.com>
3455 * java/io/PushbackInputStream.java (read): `off' already includes
3458 1998-12-17 Tom Tromey <tromey@cygnus.com>
3460 * Makefile.in: Rebuilt.
3461 * Makefile.am (GCJ_canadian): Include target_alias.
3463 * java/lang/natFirstThread.cc (run): Require main's class to be
3466 1998-12-16 Tom Tromey <tromey@cygnus.com>
3468 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3470 * java/util/ResourceBundle.java (getBundle): Throw
3471 NullPointerException if locale argument is null.
3473 * java/lang/natClass.cc (forName): Throw NullPointerException if
3475 Include NullPointerException.h.
3477 1998-12-14 Tom Tromey <tromey@cygnus.com>
3479 * java/lang/Character.java (Character): Implement Comparable.
3480 (compareTo): New methods.
3482 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3483 correct country and language codes.
3484 (UK, US): New constants.
3485 (setDefault): Language codes are lower-case.
3487 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3488 (getDeclaredConstructors): Likewise.
3489 (getDeclaredField): Likewise.
3490 (getDeclaredFields): Likewise.
3491 (getDeclaredMethod): Likewise.
3492 (getDeclaredMethods): Likewise.
3493 (getField): Likewise.
3494 (getFields): Likewise.
3495 (getMethod): Likewise.
3496 (getMethods): Likewise.
3497 * java/lang/Class.java: Declare new methods.
3498 * java/lang/Class.h: Declare new methods.
3500 * java/lang/natString.cc: Removed `#pragma implementation'.
3501 * include/cni.h (_Jv_GetStringChars): New function.
3502 * Makefile.in: Rebuilt.
3503 * Makefile.am (java/lang/String.h): Don't generate definition for
3506 * java/lang/natString.cc: Added `#pragma implementation'.
3508 * Makefile.in: Rebuilt.
3509 * Makefile.am (libjava.zip): Put build directory first in class
3510 path to avoid bug in compiler.
3512 1998-12-14 Anthony Green <green@cygnus.com>
3514 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3516 * include/javaprims.h: Add EventObject, ListResourceBundle and
3519 1998-12-13 Anthony Green <green@cygnus.com>
3521 * mauve-libjava: Run the ResourceBundle tests.
3523 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3526 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3528 * configure.in, configure: Make --enable-gcj-classes and
3529 --enable-source-compilation the default. (Nervously...) Yeah!
3530 Based on a patch from Tom Tromey.
3532 1998-12-13 Tom Tromey <tromey@cygnus.com>
3534 * java/util/EventObject.java: New file.
3535 * java/util/EventListener.java: New file.
3537 * include/javaprims.h: Updated class declarations.
3538 * Makefile.in: Rebuilt.
3539 * Makefile.am (nat_headers): Added Constructor.h.
3540 (java/lang/String.h): Don't inline String::length().
3541 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3542 * java/lang/Class.java (initializeClass, hackRunInitializers,
3543 hackTrampoline): No need to mark `final'.
3544 (getConstructor, getConstructors): Declare.
3545 * java/lang/reflect/Field.java (equals): New method.
3546 * java/lang/natClass.cc (getConstructor): New method.
3547 (getConstructors): Likewise.
3548 Include Method.h, Field.h, Constructor.h.
3549 * java/lang/reflect/Constructor.java: New file.
3550 * java/lang/reflect/Method.java (toString): No space before open
3552 (equals): Simplified.
3554 1998-12-13 Anthony Green <green@cygnus.com>
3556 * java/util/ResourceBundle.java: New file.
3557 * java/util/ListResourceBundle.java: New file.
3559 1998-12-12 Tom Tromey <tromey@cygnus.com>
3561 * java/lang/System.java (in, out, err): Now buffered streams by
3564 * include/javaprims.h: Updated class declarations.
3565 * Makefile.in: Rebuilt.
3566 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3567 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3569 (nat_files): Added natMethod.o.
3570 * java/lang/reflect/natMethod.cc: New file.
3571 * java/lang/reflect/Field.java (Field): Now extends
3573 * java/lang/reflect/AccessibleObject.java: New file.
3574 * java/lang/reflect/InvocationTargetException.java: New file.
3576 1998-12-11 Tom Tromey <tromey@cygnus.com>
3578 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3579 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3580 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3582 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3584 1998-12-09 Tom Tromey <tromey@cygnus.com>
3586 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3589 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3590 character is already titlecase.
3592 * java/lang/Character.java (isJavaLetter): Follow spec.
3593 (isJavaLetterOrDigit): Likewise.
3595 * java/util/GregorianCalendar.java (gregorianCutover): Append
3598 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3600 1998-12-08 Tom Tromey <tromey@cygnus.com>
3602 * java/lang/reflect/Modifier.java (toString): Replace second
3603 `static' with `synchronized'.
3605 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3606 * java/lang/Object.h (Object::hack12_6): Declare.
3607 * java/lang/Object.java (hack12_6): New function.
3609 1998-12-07 Tom Tromey <tromey@cygnus.com>
3611 * include/java-array.h (__JArray::clone): Removed decl.
3612 * prims.cc (__JArray::clone): Removed.
3613 * java/lang/natObject.cc (clone): Incorporate code to clone an
3616 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3617 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3618 Correctly use dtable_method_count.
3620 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3622 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3625 1998-12-06 Anthony Green <green@cygnus.com>
3627 * mauve-libjava: Don't test ResourceBundle.
3629 1998-12-04 Tom Tromey <tromey@cygnus.com>
3631 More JDK 1.2 spec fixes:
3632 * java/util/Date.java (millis): Now private.
3633 * java/text/DateFormat.java (DateFormat): Constructor now
3635 * java/lang/Void.java (Void): New private constructor.
3636 * java/lang/System.java (System): New private constructor.
3637 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3639 (currentClassLoader): New method.
3640 (currentLoadedClass): New method.
3641 * java/lang/Math.java (Math): New private constructor.
3642 * java/lang/Compiler.java (Compiler): New private constructor.
3643 * java/lang/Class.java (Class): New private constructor.
3644 * java/lang/Double.java (toString): Removed access specifier from
3645 two-argument `toString' method.
3647 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3649 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3650 causes it to be flushed from an fp register (where it may be
3651 longer than double precision) to a double in memory. This is
3652 essential to ensure correct rounding behaviour.
3654 1998-12-04 Tom Tromey <tromey@cygnus.com>
3656 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3659 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3660 explaining apparent divergence from JDK 1.2.
3662 1998-12-04 Per Bothner <bothner@cygnus.com>
3664 * include/no-threads.h: Remove unused parameter names.
3665 This silences a bunch of warnings.
3667 1998-12-04 Tom Tromey <tromey@cygnus.com>
3669 * include/config.h.in: Rebuilt.
3670 * acconfig.h (HAVE_CTIME_R): New symbol.
3672 1998-12-03 Tom Tromey <tromey@cygnus.com>
3674 * mauve-libjava: Added many more categories to reject.
3676 Changes to follow JDK1.2 spec:
3677 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3678 setErr, setIn, setOut): No need to be `final'.
3679 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3680 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3681 * java/lang/Object.java (wait): `nanos' argument is an int.
3682 * java/lang/VirtualMachineError.java: Class is abstract.
3683 * java/lang/ThreadDeath.java: Made constructors public.
3684 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3687 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3689 * java/text/DateFormatSymbols.java (getAmPmStrings,
3690 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3692 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3694 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3695 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3696 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3699 * java/lang/IllegalThreadStateException.java
3700 (IllegalThreadStateException): Changed extending class to match spec.
3702 * java/lang/NumberFormatException.java
3703 (java/lang/NumberFormatException): Changed extending class to match
3706 * java/util/Observer.java (Observer): Changed sig to match JCL.
3708 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3710 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3711 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3712 signature to match JDK 1.1 and 1.2.
3714 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3716 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3717 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3718 * Makefile.in, configure: Rebuilt.
3720 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3723 1998-12-02 Tom Tromey <tromey@cygnus.com>
3725 * mauve-libjava: New file.
3727 The remaining `-W -Wall' fixes:
3728 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3730 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3732 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3734 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3736 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3738 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3740 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3742 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3744 * java/lang/mprec.c (Balloc): Removed unused variable.
3745 (mult): Added parentheses per gcc suggestion.
3746 (pow5mult): Likewise.
3751 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3752 suggestion. Added cast to `int' to avoid signed/unsigned
3754 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3756 (IsAssignableFrom): Likewise.
3757 (_Jv_JNI_GetObjectField): Likewise.
3758 (_Jv_JNI_GetByteField): Likewise.
3759 (_Jv_JNI_GetShortField): Likewise.
3760 (_Jv_JNI_GetIntField): Likewise.
3761 (_Jv_JNI_GetLongField): Likewise.
3762 (_Jv_JNI_GetStringLength): Likewise.
3763 (_Jv_JNI_ToReflectedField): Likewise.
3764 (_Jv_JNI_FromReflectedField): Likewise.
3765 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3767 * Makefile.in: Rebuilt.
3768 * Makefile.am (AM_CFLAGS): Define conditionally.
3769 (WARNINGS): New macro.
3770 (AM_CXXFLAGS): Include WARNINGS.
3771 * configure: Rebuilt.
3772 * configure.in (USING_GCC): New conditional.
3774 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3776 * java/lang/Character.java: Changed classification constants to
3777 type `byte' to match JDK 1.2 docs.
3779 1998-12-01 Tom Tromey <tromey@cygnus.com>
3781 Some fixes to be `-W -Wall' clean:
3782 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3783 (_Jv_MarkArray): Likewise.
3784 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3785 (to_upper_title): Likewise.
3786 (isTitleCase): Likewise.
3787 (toTitleCase): Likewise.
3788 (getNumericValue): Likewise.
3789 (isLowerCase): Likewise.
3790 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3791 (avoids compiler warning).
3792 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3794 (getDeclaringClass): Likewise.
3795 (_Jv_LookupInterfaceMethod): Likewise.
3796 (_Jv_NewClass): Removed name of unused parameter.
3797 * exception.cc (_Jv_type_matcher): Removed unused variable.
3798 (_Jv_setup_eh_info): Removed name of unused parameter.
3799 * prims.cc (_Jv_NewArray): Always return a value.
3800 (_Jv_FindClassFromSignature): Likewise.
3801 * include/java-field.h (getNameUtf8Const): Removed name of unused
3803 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3805 (_Jv_ThreadSetPriority): Likewise.
3807 * java/lang/natString.cc (hashChars): Now static.
3809 * java/lang/FirstThread.java (FirstThread): Now final.
3811 * java/io/File.java (performMkdir, performRenameTo): Now private.
3813 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3814 if no time function defined.
3816 * configure: Rebuilt.
3817 * configure.in: Look for ctime_r, ctime.
3818 * java/util/Date.java (toString): Now native.
3819 * java/util/natDate.cc (toString): Rewrote.
3821 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
3823 * Add LDFLAGS line to allow TX39 test cases to link when cross
3826 1998-11-23 Anthony Green <green@cygnus.com>
3828 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3829 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3830 quick-threads.cc, include/boehm-gc.h, include/cni.h,
3831 include/java-array.h, include/java-assert.h, include/java-field.h,
3832 include/javaprims.h, include/jni.h, include/jvm.h,
3833 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3834 include/quick-threads.h, java/io/BufferedInputStream.java,
3835 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3836 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3837 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3838 java/io/CharArrayWriter.java,
3839 java/io/CharConversionException.java, java/io/DataInput.java,
3840 java/io/DataInputStream.java, java/io/DataOutput.java,
3841 java/io/DataOutputStream.java, java/io/EOFException.java,
3842 java/io/File.java, java/io/FileDescriptor.java,
3843 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3844 java/io/FileOutputStream.java, java/io/FileReader.java,
3845 java/io/FileWriter.java, java/io/FilenameFilter.java,
3846 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3847 java/io/FilterReader.java, java/io/FilterWriter.java,
3848 java/io/IOException.java, java/io/InputStream.java,
3849 java/io/InputStreamReader.java,
3850 java/io/InterruptedIOException.java,
3851 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3852 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3853 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3854 java/io/PipedReader.java, java/io/PipedWriter.java,
3855 java/io/PrintStream.java, java/io/PrintWriter.java,
3856 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3857 java/io/RandomAccessFile.java, java/io/Reader.java,
3858 java/io/SequenceInputStream.java, java/io/Serializable.java,
3859 java/io/StreamTokenizer.java,
3860 java/io/StringBufferInputStream.java, java/io/StringReader.java,
3861 java/io/StringWriter.java, java/io/SyncFailedException.java,
3862 java/io/UTFDataFormatException.java,
3863 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3864 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3865 java/io/natFileDescriptorPosix.cc,
3866 java/lang/AbstractMethodError.java,
3867 java/lang/ArithmeticException.java,
3868 java/lang/ArrayIndexOutOfBoundsException.java,
3869 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3870 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3871 java/lang/Class.java, java/lang/ClassCastException.java,
3872 java/lang/ClassCircularityError.java,
3873 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3874 java/lang/ClassNotFoundException.java,
3875 java/lang/CloneNotSupportedException.java,
3876 java/lang/Cloneable.java, java/lang/Comparable.java,
3877 java/lang/Compiler.java, java/lang/Double.java,
3878 java/lang/Error.java, java/lang/Exception.java,
3879 java/lang/ExceptionInInitializerError.java,
3880 java/lang/FirstThread.java, java/lang/Float.java,
3881 java/lang/IllegalAccessError.java,
3882 java/lang/IllegalAccessException.java,
3883 java/lang/IllegalArgumentException.java,
3884 java/lang/IllegalMonitorStateException.java,
3885 java/lang/IllegalStateException.java,
3886 java/lang/IllegalThreadStateException.java,
3887 java/lang/IncompatibleClassChangeError.java,
3888 java/lang/IndexOutOfBoundsException.java,
3889 java/lang/InstantiationError.java,
3890 java/lang/InstantiationException.java, java/lang/Integer.java,
3891 java/lang/InternalError.java, java/lang/InterruptedException.java,
3892 java/lang/LinkageError.java, java/lang/Long.java,
3893 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3894 java/lang/NoClassDefFoundError.java,
3895 java/lang/NoSuchFieldError.java,
3896 java/lang/NoSuchFieldException.java,
3897 java/lang/NoSuchMethodError.java,
3898 java/lang/NoSuchMethodException.java,
3899 java/lang/NullPointerException.java, java/lang/Number.java,
3900 java/lang/NumberFormatException.java, java/lang/Object.h,
3901 java/lang/Object.java, java/lang/OutOfMemoryError.java,
3902 java/lang/Process.java, java/lang/Runnable.java,
3903 java/lang/Runtime.java, java/lang/RuntimeException.java,
3904 java/lang/SecurityException.java, java/lang/SecurityManager.java,
3905 java/lang/Short.java, java/lang/StackOverflowError.java,
3906 java/lang/String.java, java/lang/StringBuffer.java,
3907 java/lang/StringIndexOutOfBoundsException.java,
3908 java/lang/System.java, java/lang/Thread.java,
3909 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3910 java/lang/Throwable.java, java/lang/UnknownError.java,
3911 java/lang/UnsatisfiedLinkError.java,
3912 java/lang/UnsupportedOperationException.java,
3913 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3914 java/lang/Void.java, java/lang/natCharacter.cc,
3915 java/lang/natClass.cc, java/lang/natDouble.cc,
3916 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3917 java/lang/natMath.cc, java/lang/natObject.cc,
3918 java/lang/natRuntime.cc, java/lang/natString.cc,
3919 java/lang/natSystem.cc, java/lang/natThread.cc,
3920 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3921 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3922 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3923 java/text/FieldPosition.java, java/text/Format.java,
3924 java/text/NumberFormat.java, java/text/ParseException.java,
3925 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3926 java/util/BitSet.java, java/util/Calendar.java,
3927 java/util/ConcurrentModificationException.java,
3928 java/util/Date.java, java/util/Dictionary.java,
3929 java/util/EmptyStackException.java, java/util/Enumeration.java,
3930 java/util/GregorianCalendar.java, java/util/Hashtable.java,
3931 java/util/Locale.java, java/util/MissingResourceException.java,
3932 java/util/NoSuchElementException.java, java/util/Observable.java,
3933 java/util/Observer.java, java/util/Properties.java,
3934 java/util/Random.java, java/util/SimpleTimeZone.java,
3935 java/util/Stack.java, java/util/StringTokenizer.java,
3936 java/util/TimeZone.java, java/util/TooManyListenersException.java,
3937 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
3940 * exception.cc: Include eh-common.h instead of duplicating
3943 1998-11-23 Tom Tromey <tromey@cygnus.com>
3945 * configure.host: Don't add `-O2' to libjava_flags. Only add
3946 `-Os' to libjava_flags once.
3948 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
3950 * Makefile.am: add LIBJAVA_JAVAFLAGS.
3951 * Makefile.in: likewise
3952 * acconfig.h: add ECOS conditional for configure.h
3953 * config.h.in: likewise
3954 * configure: add test for --with-ecos
3955 * configure.in: likewise
3956 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
3957 rename call to avoid name clash.
3958 * java/lang/natSystem.cc: add eCos clock support.
3959 * java/util/natGregorianCalendar.cc: add eCos support.
3961 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3963 * Makefile.am, Makefile.in, configure.host: tx39 build option
3966 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
3968 * java/io/BufferedReader.java: Added more comments for clarity.
3969 (mark): Used more mnemonic name for local var extraBuffSpace.
3971 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
3972 confusion with private method of same name in superclass.
3973 (skipRedundantLF): Set fields in special case to avoid infinite
3974 recursion. Check if markPos has been invalidated in special case.
3975 (readLine): Rewritten to use readLine method of superclass.
3976 (skip): Incorporated code from lineEnd.
3978 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
3980 * java/io/BufferedReader.java (readLine): New method.
3981 (lineEnd): new private method.
3982 (mark): Track special case for readLine of getting '\r' at the
3989 * java/io/InputStreamReader.java (read): Return number chars skipped
3990 rather than requested.
3992 * java/lang/StringBuffer.java (append): Update count and differentiate
3993 between field and local variable.
3995 * java/util/Date.java (parseTz): Evaluate in minutes rather than
3996 seconds. Deal with military style time.
3997 (parse): Consistently treat all timezones in minutes until final
3998 calculation. Flag as non-local timezone. Return value in milliseconds.
3999 (setTime): Adjust for year offset from 1900.
4000 (UTC): Adjust for year offset from 1900.
4002 1998-11-17 Tom Tromey <tromey@cygnus.com>
4004 * configure: Rebuilt.
4005 * configure.in: Switch on host, not target.
4007 * Makefile.in: Rebuilt.
4008 * Makefile.am (GCJ_no): New macro.
4009 (GCJ): Use @CANADIAN@.
4010 (GCJH_no): New macro
4011 (GCJH_canadian): New macro.
4012 (GCJH): Use @CANADIAN@.
4013 (ZIP_no): New macro.
4014 (ZIP_canadian): New macro.
4015 (ZIP): Use @CANADIAN@.
4016 * aclocal.m4, configure: Rebuilt.
4017 * configure.in (CANADIAN): Compute and subst.
4019 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4021 * java/io/FileDescriptor.java (finalize): Only close file
4022 descriptor if valid.
4024 1998-11-17 Tom Tromey <tromey@cygnus.com>
4026 * prims.cc (_Jv_InitRuntime): Removed.
4028 1998-11-16 Tom Tromey <tromey@cygnus.com>
4030 * java/io/FileOutputStream.java (close): Only close file
4031 descriptor if valid.
4032 (finalize): New method.
4034 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4035 (_Jv_NewPrimArray): Likewise.
4036 * boehm.cc (_Jv_RegisterFinalizer): Use
4037 GC_REGISTER_FINALIZER_NO_ORDER.
4038 (GC_GENERIC_MALLOC): New define.
4039 (_Jv_AllocObj): Use it.
4040 (_Jv_AllocArray): Likewise.
4041 (_Jv_AllocBytes): Likewise.
4042 (_Jv_MarkObj): Just return if vtbl not set.
4043 (_Jv_MarkArray): Likewise.
4044 (MAYBE_MARK): New macro; use everywhere.
4045 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4047 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4049 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4050 to a jlong before calculation to prevent overflow.
4052 1998-11-16 Tom Tromey <tromey@cygnus.com>
4054 * Makefile.in: Rebuilt.
4055 * Makefile.am (nat_headers): Fixed typo.
4057 1998-11-15 Tom Tromey <tromey@cygnus.com>
4059 * java/lang/Class.h (Class::getName): Removed definition.
4060 * Makefile.in: Rebuilt.
4061 * Makefile.am (nat_headers): Added InstantiationException.h,
4062 NoSuchMethodException.h.
4063 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4064 (init_name): New global.
4065 (hackRunInitializers): Use clinit_name.
4066 Include InstantiationException.h, NoSuchMethodException.h.
4067 (newInstance): Do some error checking (but not all). Call
4069 (forName): Throw exception if class not found.
4070 (getName): New method.
4071 (forName): Transform class name from external format to internal
4072 format before lookup.
4074 1998-11-15 Anthony Green <green@cygnus.com>
4076 * java/lang/Class.h (Class::forName): Method is static.
4078 * java/lang/natClass.cc (newInstance): Add simple implementation.
4081 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4083 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4084 int), for compatibility with jc1.
4086 1998-11-14 Tom Tromey <tromey@cygnus.com>
4088 * include/config.h.in: Rebuilt.
4089 * acconfig.h (LINUX_THREADS): New define.
4090 * configure: Rebuilt.
4091 * configure.in: Define LINUX_THREADS if using POSIX threads on
4092 Linux. Look for pthread_mutexattr_setkind_np function.
4093 * posix-threads.cc (throw_cleanup): New function.
4094 (really_start): Push cleanup function.
4095 (_Jv_ThreadCancel): New function.
4096 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4097 (_Jv_ThreadInitData): Set `exception' field in new structure.
4098 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4100 (_Jv_ThreadWait): New function.
4101 (_Jv_InitThreads): Initialize daemon globals.
4102 (FLAG_DAEMON): New macro.
4103 (really_start): Notify daemon_cond when non-daemon thread exits.
4104 Include <java/lang/System.h>.
4105 (struct starter): `object' field now a thread.
4106 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4107 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4108 (_Jv_ThreadWait): Removed definition.
4109 (_Jv_Thread_t): Added `exception' field.
4110 (_Jv_ThreadCancel): Removed definition.
4112 1998-11-13 Tom Tromey <tromey@cygnus.com>
4114 * Makefile.in: Rebuilt.
4115 * Makefile.am (libjava.zip): Compute javac before changing
4118 * Makefile.in: Rebuilt.
4119 * Makefile.am (libjava.zip): Include directory entries.
4121 * Makefile.in: Rebuilt.
4122 * Makefile.am (expanded): New macro.
4125 1998-11-12 Tom Tromey <tromey@cygnus.com>
4127 * prims.cc (clone): New function.
4128 * include/java-array.h (__JArray::clone): Removed definition.
4130 * java/lang/natObject.cc (clone): Don't assert that class is not
4131 an array; array's `clone' method just calls this one.
4133 * Makefile.in: Rebuilt.
4134 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4135 Now creates zip file. Changed all users.
4137 (data_DATA): New macro.
4139 1998-11-11 Tom Tromey <tromey@cygnus.com>
4141 * configure: Rebuilt.
4142 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4144 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4146 * java/io/InputStream.java (reset): Add msg to thrown exception.
4148 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4150 * java/io/LineNumberInputStream.java: Rewritten.
4152 * java/io/StringBufferInputStream.java: Removed extraneous import.
4154 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4156 * java/io/StringBufferInputStream.java: Rewritten.
4158 * java/util/Date.java (parseMonth): Optimize.
4159 (parseDayOfWeek): Created.
4160 (parse): Optimize to use parseDayOfWeek.
4162 1998-11-11 Tom Tromey <tromey@cygnus.com>
4164 * java/lang/StringBuffer.java (append): Handle case where STR is
4167 * include/javaprims.h: Regenerated class declarations.
4169 * configure: Rebuilt.
4170 * configure.in: Added --enable-gcj-classes,
4171 --enable-single-compilation, --enable-source-compilation flags.
4172 * Makefile.in: Rebuilt.
4173 * Makefile.am (java_io_files): New macro.
4174 (java_lang_files): Likewise.
4175 (java_text_files): Likewise.
4176 (java_util_files): Likewise.
4177 (java_files): Use new macros.
4178 (java-io.o): New target.
4179 (java-lang.o): Likewise.
4180 (java-text.o): Likewise.
4181 (java-util.o): Likewise.
4182 (src_io_files): New macro.
4183 (src_lang_files): Likewise.
4184 (src_text_files): Likewise.
4185 (src_util_files): Likewise.
4186 (class_io_files): New macro.
4187 (class_lang_files): Likewise.
4188 (class_text_files): Likewise.
4189 (class_util_files): Likewise.
4190 (class_files): Use new macros.
4191 (javao_files): Define conditionally.
4192 (.java.o): New target.
4193 ($(javao_files)): New target.
4195 (GCJH): Added $(EXEEXT).
4196 (CLASSPATH_ENV): Removed.
4197 (GCJCOMPILE): New macro.
4199 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4201 * java/util/Date.java (parse): Written from scratch.
4203 1998-11-11 Tom Tromey <tromey@cygnus.com>
4205 * java/lang/Throwable.java (toString): Correct sense of test for
4206 determining when to include detail message in result.
4208 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4211 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4213 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4215 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4216 (_Jv_RegisterClass): Use it.
4217 * include/jvm.h (_Jv_RegisterClasses): Declare.
4218 * java/lang/natObject.cc (init): Removed.
4219 (sync_init): Never call _Jv_InitializeSyncMutex.
4220 (_Jv_InitializeSyncMutex): Don't set `init'.
4221 * prims.cc (JvRunMain): Don't run init functions.
4223 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4225 * java/lang/natClass.cc (initializeClass): Set state before
4226 resolving constants.
4228 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4229 (STATE_RESOLVED): New macro.
4230 (initializeClass): Call resolveConstants.
4231 (hackRunInitializers): Don't call resolveConstants.
4232 (_Jv_FindArrayClass): Move short-circuit return for primitive
4233 element types earlier in function.
4235 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4237 * prims.cc (no_memory): New global.
4238 (_Jv_makeUtf8Const): Throw no_memory.
4239 (_Jv_AllocObject): Likewise.
4240 (_Jv_NewObjectArray): Likewise.
4241 (_Jv_NewPrimArray): Likewise.
4242 (JvRunMain): Initialize no_memory.
4244 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4246 * java/io/FileInputStream.java: Corrected date comment.
4247 * java/io/SequenceInputStream.java: Rewritten.
4249 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4251 * java/lang/FirstThread.java (die): New method.
4252 * java/lang/natFirstThread.cc (die): Removed.
4254 (run): Use `DIE', not `die'.
4256 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4258 * java/io/CharArrayReader.java (read): Move check into synchronized
4259 block to prevent a close while in progress.
4262 * java/io/PushbackReader.java (read): Ditto.
4265 * java/io/StringReader.java (mark): Ditto.
4270 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4272 * java/io/PipedInputStream.java: Updated status.
4273 (connect): Added code to prevent infinite recursion and to
4274 differentiate exception causes.
4275 (read): Added code to differentiate exception causes.
4276 (receive): Made exception pass string with the cause.
4278 * java/io/PipedOutputStream.java: Updated status.
4279 (connect): Added code to call connect at the other end of the pipe.
4281 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4283 * java/io/PipedInputStream.java (connect): Throw exception if
4284 already connected to the same output stream.
4285 (read): Do bounds checking first.
4287 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4289 * java/io/PipedInputStream.java: Added private boolean outClosed.
4290 (available): Removed check if output stream is open.
4291 (close): Mark the buffer as empty so available returns 0.
4292 (read): Check if the output stream was closed and then return EOF
4293 when the buffer is empty.
4294 (receive): Mark the output stream as closed when passed a -1.
4296 * java/io/PipedOutputStream.java (close): Notify the input stream
4297 that there's no more data coming.
4298 (connect): Added a FIXME comment to note more coordination needed
4299 with PipedInputStream.
4300 (flush): Added a FIXME comment to mark what this method might do
4303 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4305 * java/io/PipedInputStream.java: Rewritten.
4307 1998-10-30 Tom Tromey <tromey@cygnus.com>
4309 * java/lang/Throwable.java: Rewrote from scratch.
4311 * java/lang/Class.h (Class): Don't mention newMultiArray.
4312 * prims.cc (newMultiArray): Removed.
4313 (_Jv_NewMultiArray): Removed.
4314 (newArray): Removed.
4315 (new_multi_array): New function.
4316 (_Jv_NewMultiArray): Rewrote from scratch.
4318 * include/javaprims.h: Regenerated class declarations.
4319 * classes.pl (scan): Don't declare PrimClass.
4320 * include/cni.h (JvPrimClass): Use new names for classes.
4321 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4322 added _Jv_PrimClass.
4323 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4324 (_Jv_initPrimClass): Removed.
4325 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4326 (_Jv_AllocObject): Added comment.
4327 (_Jv_NewObjectArray): Likewise.
4328 (_Jv_NewPrimArray): Likewise.
4330 1998-10-29 Tom Tromey <tromey@cygnus.com>
4332 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4333 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4335 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4337 * java/lang/natObject.cc (init): New global.
4338 (sync_init): Call _Jv_InitializeSyncMutex if required.
4340 * Makefile.in: Rebuilt.
4341 * Makefile.am (nat_headers): Added ClassLoader.h.
4342 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4343 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4344 internalAddClass, lookupArray no longer friends.
4345 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4346 _Jv_FindArrayClass now friends.
4347 * java/lang/natClass.cc (HASH_LEN): New macro.
4348 (HASH_UTF): Likewise.
4349 (loaded_classes): New global.
4350 (_Jv_FindClass): New function.
4351 (ClassClass): New define.
4352 (_Jv_FindClassInCache): New function.
4353 (_Jv_RegisterClass): Likewise.
4354 (_Jv_NewClass): Likewise.
4356 (ObjectClass): New define.
4357 (CloneableClass): New define.
4358 * prims.cc (_Jv_FindClass): Removed.
4359 (simpleLookupClass): Removed.
4360 (insertClass): Removed.
4361 (CLASSHASHSZ): Removed.
4362 (classPool): Removed.
4363 (_Jv_RegisterClass): Removed.
4364 (internalAddClass): Removed.
4365 (ClassClass): Removed.
4366 (RuntimeClass): Removed.
4367 (lookupArray): Removed.
4368 (CloneableClass): Removed.
4369 (CLASSMAXSIG): Removed.
4370 Rearranged file to group related functions together.
4371 (_Jv_IsInstanceOf): Moved to natClass.cc.
4372 (abort_final): Removed.
4373 Removed some unused includes.
4374 (classFromSig): Removed.
4375 (_Jv_FindClassFromSignature): New function.
4376 (_Jv_initPrimClass): Renamed.
4377 (getClass): Removed.
4379 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4381 * java/io/FileDescriptor.java (finalize): Throws IOException
4382 instead of Throwable.
4384 * java/io/FileInputStream.java: Rewritten.
4386 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4387 at the end of a comment.
4389 1998-10-29 Tom Tromey <tromey@cygnus.com>
4391 * include/javaprims.h: Regenerated class declarations.
4392 * classes.pl (scan): Don't special-case ClassLoader.
4394 * prims.cc (processClass): Removed.
4395 (_Jv_InitClass): Removed.
4396 Removed all CSTATE_ macros.
4397 (resolveConstants): Removed.
4399 (_Jv_NewMultiArray): Cleaned up.
4400 * Makefile.in: Rebuilt.
4401 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4402 * java/lang/Class.h (Class): Declare new methods. processClass no
4404 * java/lang/Class.java (hackTrampoline): New method.
4405 (initializeClass): Declare.
4406 (hackRunInitializers): Declare.
4407 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4408 (initializeClass): New method.
4409 (hackRunInitializers): New method.
4410 (init_name, void_signature): Moved from prims.cc.
4411 (_Jv_InitClass): New function.
4412 (isAssignableFrom): Don't call processClass.
4413 (STATE_NOTHING): New macro.
4414 (resolveConstants): New function.
4416 (ErrorClass): New define.
4418 * java/lang/Class.java (getClassLoader): Declare.
4419 * java/lang/ClassLoader.java: Rewrote from scratch.
4421 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4422 AbstractMethodError.h, IllegalAccessError.h,
4423 NoClassDefFoundError.h.
4424 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4425 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4426 longer static. Changed return type.
4427 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4428 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4429 * prims.cc (findMethodLocal): Removed.
4430 (processClass): Use _Jv_GetMethodLocal.
4432 1998-10-28 Tom Tromey <tromey@cygnus.com>
4434 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4435 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4437 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4438 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4440 * include/jni.h: Added copyright header.
4441 * include/javaprims.h: Added copyright header.
4442 * include/java-field.h: Added copyright header.
4443 * include/java-array.h: Added copyright header.
4444 * include/cni.h: Added copyright header.
4446 * include/javaprims.h: Regenerated class declarations using
4447 classes.pl; now they are complete.
4448 * classes.pl: New file.
4450 * java/lang/natMath.cc: Include <config.h>.
4451 * java/lang/reflect/natField.cc: Include <config.h>.
4452 * java/util/NativeUtil.java: Removed.
4453 * Makefile.in: Rebuilt.
4454 * Makefile.am (nat_headers): Added Math.h.
4455 * java/lang/Math.h: Removed.
4456 * java/util/natGregorianCalendar.cc: Added copyright header.
4458 * java/lang/natFloat.cc: Added copyright header.
4459 * java/lang/Byte.java: Added copyright header.
4460 * java/lang/Void.java: Added copyright header.
4461 * java/lang/Short.java: Added copyright header.
4463 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4465 * include/javaprims.h (java::io): Added bunch of missing classes.
4467 * java/io/DataInputStream.java (readLine): Added a special case
4468 for handling BufferedInputStream data to reduce the likelihood
4469 of a pushback error.
4470 (skipBytes): Added code to handle negative number of skip bytes.
4472 * java/io/StreamTokenizer.java: Rewritten.
4474 1998-10-28 Tom Tromey <tromey@cygnus.com>
4476 * java/util/natGregorianCalendar.cc (computeFields): Call
4477 getRawOffset as a method.
4479 * include/javaprims.h (java::io): Added FilterOutputStream.
4480 * Makefile.in: Rebuilt.
4481 * Makefile.am (nat_headers): Added PrintStream.h,
4482 FilterOutputStream.h.
4483 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4485 (die): New function.
4486 (run): Die if `main' not found, is not public, or is not static.
4488 * boehm.cc (_Jv_MarkObj): Use new field names.
4489 * include/java-field.h (JvGetFirstInstanceField): Use new field
4491 (JvNumInstanceFields): Likewise.
4492 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4493 (getInterfaces): Likewise.
4494 * prims.cc (CLASS_CONSTANTS): Removed.
4495 (CLASS_CONST_SIZE): Likewise.
4496 (CLASS_CONST_TAG): Likewise.
4497 (CLASS_CONST_DATA): Likewise.
4498 (CLASS_CONST_UTF8): Likewise.
4499 (WORD2UTF): Likewise.
4500 (CLASS_CLASS): Likewise.
4501 (CLASS_PRIM_SIG): Likewise.
4502 (CLASS_ARRAY_CACHE): Likewise.
4503 (HASH_CHARS): Likewise.
4504 (hashClassName): Likewise.
4505 Many changes to use new field names.
4506 * java/lang/Class.h (Class): Renamed fields to track compiler.
4508 1998-10-27 Tom Tromey <tromey@cygnus.com>
4510 * java/lang/natClass.cc: Use #pragma implementation.
4511 (getComponentType): Moved into header.
4512 (getModifiers): Likewise.
4513 (getName): Likewise.
4514 (getSuperclass): Likewise.
4515 (isArray): Likewise.
4516 (isPrimitive): Likewise.
4517 * include/jvm.h (_Jv_FindClass): Declare.
4518 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4519 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4520 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4521 * java/lang/Class.h: Rewrote from scratch.
4522 * prims.cc: Many changes to work with new Class.h.
4523 * include/java-field.h (CLASS_FIELDS): Removed.
4524 (CLASS_SFIELDS): Likewise.
4525 (CLASS_IFIELDS): Likewise.
4526 (CLASS_NFIELDS): Likewise.
4527 (CLASS_NIFIELDS): Likewise.
4528 (CLASS_NSFIELDS): Likewise.
4529 (CLASS_FSIZE): Likewise.
4530 (JvGetFirstInstanceField): Rewrote.
4531 (JvNumInstanceFields): Likewise.
4533 * java/lang/Object.h: Added copyright comment.
4535 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4537 * java/text: New package directory.
4538 * java/text/FieldPosition.java: New class.
4539 * java/text/ParsePosition.java: New class.
4540 * java/text/ParseException.java: New Exception class.
4541 * java/text/Format.java: New class.
4542 * java/text/NumberFormat.java: New (empty placeholder) class.
4543 * java/text/DateFormatSymbols.java: New class (no Locales support).
4544 * java/text/DateFormat.java: New Format class (incomplete).
4545 * java/text/SimpleDateFormat.java: New DateFormat class.
4547 * include/javaprims.h (java::test): Added new package and classes.
4548 * java/util/Calendar.java (clone): New method.
4549 * java/util/Date.java (toString): Added non-native implementation.
4550 (parse): Made public instead of synchronized.
4551 * java/util/natDate.cc (toString): Removed.
4552 * java/util/natGregorianCalendar.cc (computeFields):
4553 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4555 1998-10-27 Tom Tromey <tromey@cygnus.com>
4557 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4559 * prims.cc (lookupArray): Added explanatory comment.
4560 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4561 class. Mark the class of each object.
4562 (_Jv_MarkArray): Mark the object's class.
4564 * configure: Rebuilt.
4565 * configure.in: Create java-gc.h.
4566 * include/boehm-gc.h: New file.
4567 * include/no-gc.h: New file.
4568 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4570 * java/lang/Object.h: Include java-gc.h.
4571 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4572 friends, if defined.
4573 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4575 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4577 1998-10-26 Tom Tromey <tromey@cygnus.com>
4579 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4580 paragraph separators, not numbers.
4582 * java/io/Writer.java (write): Removed write(char) to avoid
4584 * java/util/Properties.java: Rewrote from scratch.
4585 * include/javaprims.h (java::io): Added PrintWriter,
4586 BufferedWriter, PushbackReader.
4588 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4590 * java/lang/System.java: exit() is a static method.
4592 1998-10-26 Tom Tromey <tromey@cygnus.com>
4594 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4596 (_Jv_NewStringUtf8Const): Likewise.
4597 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4598 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4600 * java/lang/Object.h (Object): Add mark_array as friend function.
4601 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4602 _Jv_AllocBytes, to ensure that header is marked.
4603 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4605 (mark_array): Push sync_info field for array.
4607 1998-10-24 Tom Tromey <tromey@cygnus.com>
4609 * java/lang/String.java (String): Updated for StringBuffer
4611 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4613 * java/lang/StringBuffer.java: Renamed fields to conform to
4614 serialization spec: buffer->value, next->count, copy->shared.
4616 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4618 * java/util/TimeZone.java: New class.
4619 * java/util/SimpleTimeZone.java: New class.
4620 * java/util/Locale.java: New file.
4621 * java/util/Calendar.java: Make almost complete.
4622 * java/util/GregorianCalendar.java
4623 * java/util/natGregorianCalendar.cc: New file.
4624 * java/util/Date.java: Re-written from scratch.
4625 * java/util/natDate.cc (setTime): Removed - no longer native.
4626 * include/javaprims.h (java::util): Add new classes.
4627 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4628 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4630 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4632 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4633 returning it as a jint.
4635 1998-10-23 Tom Tromey <tromey@cygnus.com>
4637 * prims.cc (arg_vec, main_group, main_thread): New globals.
4638 (JvRunMain): Use them.
4640 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4642 * java/io/DataInputStream.java: Rewritten.
4644 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4645 tertiary bytes with 0x80 per spec.
4647 1998-10-23 Tom Tromey <tromey@cygnus.com>
4649 * java/lang/String.java (init): Changed name of `copy' argument.
4650 * java/lang/natString.cc (init): Inverted sense of `copy'
4653 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4654 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4655 * boehm.cc (ObjectClass): New define.
4656 (ClassClass): Likewise.
4657 (mark_obj): Special-case Object and Class.
4659 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4661 * java/util/BitSet.java: Rewrote from scratch.
4663 * prims.cc (lookupArray): Removed useless cast.
4665 * java/lang/natObject.cc: Use `#pragma implementation'.
4667 * java/lang/String.java (init): Added `copy' argument.
4668 (String): Look in StringBuffer to find char array.
4669 * java/lang/natString.cc (init): Added `copy' argument.
4670 * java/lang/StringBuffer.java: Rewrote from scratch.
4672 * java/lang/Compiler.java: Rewrote from scratch.
4673 * java/lang/Throwable.java: Don't use NativeLang.
4674 * include/javaprims.h (java::lang): Don't mention NativeLang.
4675 * java/lang/Process.java: Rewrote from scratch.
4676 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4678 (currentClassLoader): Likewise.
4679 (currentLoadedClass): Likewise.
4680 * java/lang/natClass.cc (getClassLoader): Commented out.
4681 * java/lang/Class.java (getClassLoader): Commented out.
4682 * java/lang/Compiler.java: Removed.
4683 * java/lang/NativeLang.java: Removed.
4685 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4686 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4687 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4688 (_Jv_hashUtf8String): Now static.
4689 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4690 name of return type.
4692 * java/lang/Class.h (Class): Declare checkMemberAccess.
4693 * Makefile.in: Rebuilt.
4694 * Makefile.am (nat_headers): Added Member.h.
4695 * java/lang/natClass.cc: Include Member.h.
4696 (getDeclaredClasses): Call checkMemberAccess.
4697 * java/lang/Class.java (checkMemberAccess): Call
4698 SecurityManager.checkMemberAccess.
4700 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4702 * java/lang/SecurityManager.java: Rewritten.
4704 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4706 * java/applet/Applet.java, java/applet/AppletContext.java,
4707 java/applet/AppletStub.java, java/applet/AudioClip.java,
4708 java/awt/AWTError.java, java/awt/AWTException.java,
4709 java/awt/BorderLayout.java, java/awt/Button.java,
4710 java/awt/Canvas.java, java/awt/CardLayout.java,
4711 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4712 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4713 java/awt/Color.java, java/awt/Component.java,
4714 java/awt/Container.java, java/awt/Dialog.java,
4715 java/awt/Dimension.java, java/awt/Event.java,
4716 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4717 java/awt/Font.java, java/awt/FontMetrics.java,
4718 java/awt/Frame.java, java/awt/Graphics.java,
4719 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4720 java/awt/GridLayout.java, java/awt/Image.java,
4721 java/awt/Insets.java, java/awt/Label.java,
4722 java/awt/LayoutManager.java, java/awt/List.java,
4723 java/awt/MediaTracker.java, java/awt/Menu.java,
4724 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4725 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4726 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4727 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4728 java/awt/TextArea.java, java/awt/TextComponent.java,
4729 java/awt/TextField.java, java/awt/Toolkit.java,
4730 java/awt/Window.java, java/awt/image/ColorModel.java,
4731 java/awt/image/CropImageFilter.java,
4732 java/awt/image/DirectColorModel.java,
4733 java/awt/image/FilteredImageSource.java,
4734 java/awt/image/ImageConsumer.java,
4735 java/awt/image/ImageFilter.java,
4736 java/awt/image/ImageObserver.java,
4737 java/awt/image/ImageProducer.java,
4738 java/awt/image/IndexColorModel.java,
4739 java/awt/image/MemoryImageSource.java,
4740 java/awt/image/PixelGrabber.java,
4741 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4742 java/awt/peer/CanvasPeer.java,
4743 java/awt/peer/CheckboxMenuItemPeer.java,
4744 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4745 java/awt/peer/ComponentPeer.java,
4746 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4747 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4748 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4749 java/awt/peer/MenuBarPeer.java,
4750 java/awt/peer/MenuComponentPeer.java,
4751 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4752 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4753 java/awt/peer/TextAreaPeer.java,
4754 java/awt/peer/TextComponentPeer.java,
4755 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4756 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4757 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4758 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4759 java/net/MalformedURLException.java, java/net/NativeNet.java,
4760 java/net/ProtocolException.java, java/net/ServerSocket.java,
4761 java/net/Socket.java, java/net/SocketException.java,
4762 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4763 java/net/URL.java, java/net/URLConnection.java,
4764 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4765 java/net/URLStreamHandlerFactory.java,
4766 java/net/UnknownHostException.java,
4767 java/net/UnknownServiceException.java: Removed.
4769 1998-10-22 Tom Tromey <tromey@cygnus.com>
4771 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4772 finalizer is not Object.finalize.
4773 (internalAddClass): Don't set `final' member of class.
4774 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4775 other places that know about finalize() location.
4776 * java/lang/Class.h (Class): Removed `final' field.
4778 * aclocal.m4, configure: Rebuilt.
4779 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4780 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4782 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4783 * Makefile.in: Rebuilt.
4784 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4786 1998-10-21 Tom Tromey <tromey@cygnus.com>
4788 * java/lang/Object.java (finalize): Move to be first method in
4791 * configure: Rebuilt.
4792 * configure.in (GCINCS): Include contents of boehm-cflags file.
4794 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4796 * java/lang/ArrayIndexOutOfBoundsException.java
4797 (ArrayIndexOutOfBoundsException): Fixed string literal.
4798 * java/lang/StringIndexOutOfBoundsException.java
4799 (StringIndexOutOfBoundsException): Fixed string literal.
4801 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4803 * natFileDescriptorEcos.cc added.
4804 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4806 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4808 * acconfig.h: test for __int32_t and __uint32_t added.
4809 * include/config.h.in: test for __int32_t and __uint32_t added.
4810 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4811 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4812 * configure.in: test for __int32_t and __uint32_t added.
4813 * configure: test for __int32_t and __uint32_t added.
4815 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4817 * configure.in: Test for --enable ecos and link
4818 natFileDescriptor.cc to natFileDescriptorEcos.cc or
4819 natFileDescriptorPosix.cc
4821 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4823 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
4825 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4828 * java/io/CharArrayReader.java (close): Synchronize on lock
4829 object per Reader contract.
4830 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4831 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4832 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4833 Ensure that arg passed in isn't negative.
4835 * java/io/FilterReader.java (FilterReader): Use the lock obj when
4836 constructing the superclass.
4838 * java/io/PushbackReader.java (close): Synchronize on lock
4839 object per Reader contract.
4840 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4841 (ready): Synchronize on lock obj. Throw IOException if reader
4843 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4844 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4845 Ensure that arg passed in isn't negative.
4846 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
4848 * java/io/StringReader.java: Created.
4850 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
4852 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4854 (read): Removed synchronized modifier to match JCL.
4855 (reset): Removed synchronized modifier to match JCL.
4856 (skip): Removed synchronized modifier to match JCL.
4858 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
4860 * java/io/PushbackReader.java (PushbackReader): Made
4861 constructors public.
4863 1998-10-17 Tom Tromey <tromey@cygnus.com>
4865 * java/io/PushbackInputStream.java (PushbackInputStream): Made
4866 constructors public.
4868 1998-10-16 Anthony Green <green@cygnus.com>
4870 * aclocal.m4, configure: Rebuilt.
4871 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4873 * configure.host: Rewrote.
4874 * Makefile.in: Rebuilt.
4875 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4876 (AM_CFLAGS): New macro.
4877 ($(c_files)): Use COMPILE macro.
4878 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4879 automake problem(s).
4881 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
4883 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4885 * java/io/CharArrayReader.java: Created.
4887 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
4889 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4890 size check to allow 0 per JCL.
4892 * java/io/PushbackReader.java: Created.
4894 1998-10-16 Tom Tromey <tromey@cygnus.com>
4896 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4897 <sys/time.h> includes.
4898 * java/io/natFile.cc: Conditionalize <unistd.h> include.
4899 * include/no-threads.h: Conditionalize <unistd.h> include on
4902 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4904 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4907 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
4909 * java/io/FilterReader.java: Created.
4911 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
4913 * java/io/PushbackInputStream.java: Rewritten.
4915 * java/io/BufferedInputStream.java (BufferedInputStream): Check
4916 that size passed to constructor is legal.
4917 (read): Check that args passed in are legal.
4918 (skip): Rewritten to get rid of the temporary buffer.
4919 (refill): Added marklimit check to grow the buffer.
4921 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4923 (bytesAvail): Removed.
4924 (read): Changed bytesAvail to Math.min.
4925 (skip): Changed bytesAvail to Math.min.
4927 * java/io/InputStream.java (read): Got rid of extraneous exceptions
4928 from the throws clause.
4929 (skip): Rewritten to use a temporary buffer.
4931 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4933 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4936 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4938 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4939 to write the double one word at a time.
4941 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
4943 * java/io/BufferedInputStream.java: Rewritten.
4945 1998-10-12 Tom Tromey <tromey@cygnus.com>
4947 * jni.cc: Include config.h and stddef.h.
4949 * java/lang/Class.h (_dispatchTable): Removed again.
4950 Removed all ACC_* defines again.
4952 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
4954 * Makefile.am (nat_files): Add netField.o.
4955 (libjava_a_SOURCES): Add jni.cc.
4956 (java/lang/reflect/Field.h): New rule.
4957 * Makefile.in: Re-generated.
4958 * include/javaprims.h: Add some extra class and typedefs.
4959 * include/jni.h: New file.
4962 * include/java-field.h: New file.
4963 * include/jvm.h: #include <java-field.h>.
4964 * boehm.cc: #include <java-field.h>.
4965 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
4966 * java/lang/reflect/Member.java: New class.
4967 * java/lang/reflect/Field.java: New class. (Very incomplete.)
4968 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
4970 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
4972 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
4973 testsuite/Makefile.in: Rebuilt.
4974 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
4975 * configure.host: Created.
4977 1998-10-10 Tom Tromey <tromey@cygnus.com>
4979 * java/lang/natObject.cc (sync_init): Always allocate a new
4982 1998-10-09 Tom Tromey <tromey@cygnus.com>
4984 * java/io/ByteArrayInputStream.java (mark): Renamed from
4987 * java/io/FileOutputStream.java (finalize): Removed.
4988 * java/io/FileDescriptor.java (finalize): New method.
4990 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
4992 * ByteArrayInputStream.java: Corrected status comment.
4994 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
4996 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
4998 1998-10-08 Tom Tromey <tromey@cygnus.com>
5000 * prims.cc (lookupArray): Use static array to initialize list of
5003 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5005 * prims.cc (lookupArray): Initialize the msize for new
5008 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5010 * configure: Rebuilt.
5011 * configure.in: Check for fsync and sleep.
5012 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5014 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5015 HAVE_SLEEP. Include config.h.
5017 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5018 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5021 1998-10-08 Tom Tromey <tromey@cygnus.com>
5023 * java/io/natFile.cc: Don't include SecurityManager.h.
5024 (performList): Renamed.
5025 (performMkdir): Likewise.
5026 (performRenameTo): Likewise.
5027 (performDelete): Likewise.
5029 * java/io/File.java (performDelete): Renamed from natDelete.
5030 (list): Now written in Java.
5031 (performList): New method.
5032 (performMkdir): New method.
5033 (mkdir): Now written in Java.
5034 (performRenameTo): New method.
5035 (renameTo): Now written in Java.
5037 1998-10-06 Tom Tromey <tromey@cygnus.com>
5039 * Makefile.in: Rebuilt.
5040 * Makefile.am (ETAGS_ARGS): New macro.
5041 (TAGS_DEPENDENCIES): Likewise.
5043 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5045 * Makefile.in: Rebuilt.
5046 * Makefile.am: Use -classpath option with javac.
5048 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5050 * java/io/FileOutputStream.java (finalize): Call
5053 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5055 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5057 * java/lang/mprec.c: Ditto.
5059 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5062 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5064 * java/io/InputStream.java (skip): Make local var i a long.
5066 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5068 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5069 * prims.cc (lookupArray): Use memcpy, not memmove.
5070 * include/config.h.in: Rebuilt.
5071 * acconfig.h (HAVE_MEMCPY): Added.
5072 * configure: Rebuilt.
5073 * configure.in: Check for memcpy again.
5075 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5076 String.compareTo, not ==.
5078 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5079 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5080 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5081 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5082 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5083 into new array's dtable.
5084 (_Jv_AllocObject): Use _Jv_DispatchTable.
5085 (_Jv_NewPrimArray): Likewise.
5086 (_Jv_NewObjectArray): Likewise.
5088 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5090 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5091 offending index value.
5092 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5094 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5095 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5097 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5099 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5101 * java/io/OutputStream.java (write): Use off and len parameters to
5102 output partial byte array.
5104 * java/io/BufferedReader.java, java/io/FileReader.java,
5105 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5106 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5107 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5108 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5110 * include/javaprims.h (java::lang): Added
5111 ExceptionInInitializerError, IllegalStateException,
5112 NoSuchFieldException, and UnsupportedOperationException.
5114 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5116 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5119 * include/java-array.h (__JArray): Added clone method.
5120 * prims.cc (CloneableClass): New define.
5121 (lookupArray): Initialize array class to indicate that it
5122 implements Cloneable.
5124 * java/lang/Class.h: Removed all ACC_* defines.
5125 * prims.cc: Include Modifier.h.
5126 (_Jv_LookupInterfaceMethod): Use methods in
5127 java.lang.reflect.Modifier, not ACC_ defines.
5129 * java/lang/Class.h (Class): Declare getClasses,
5130 getDeclaredClasses, getDeclaringClass, getModifiers,
5131 * java/lang/Class.java: Rewrote from scratch.
5133 * include/javaprims.h (java::lang): Added reflect and
5135 * Makefile.in: Rebuilt.
5136 * Makefile.am (nat_headers): Added Modifier.h.
5138 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5141 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5143 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5144 instead of test and abort.
5146 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5147 remove compiler warning.
5149 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5151 * java/lang/natDouble.cc: zero terminate string.
5152 * strtod.c: Set errno if no digits are found in fraction.
5154 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5156 * java/lang/reflect/Modifier.java: New file.
5158 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5159 * java/lang/VerifyError.java: Rewrote from scratch.
5160 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5161 * java/lang/UnknownError.java: Rewrote from scratch.
5162 * java/lang/StackOverflowError.java: Rewrote from scratch.
5163 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5164 * java/lang/InternalError.java: Rewrote from scratch.
5165 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5166 * java/lang/ExceptionInInitializerError.java: New file.
5167 * java/lang/Error.java: Rewrote from scratch.
5168 * java/lang/ClassFormatError.java: Rewrote from scratch.
5169 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5170 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5171 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5172 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5173 * java/lang/LinkageError.java: Rewrote from scratch.
5174 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5176 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5178 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5179 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5181 * include/cni.h (JvAllocObject): Moved from prims.cc.
5183 * prims.cc (JvAllocObject): Moved to cni.h.
5184 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5185 (finalize_name): Removed.
5187 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5189 * java/lang/Class.h (Class): Added size() method.
5190 * prims.cc (_Jv_MonitorEnter): Removed.
5191 (_Jv_MonitorExit): Removed.
5192 * java/lang/Object.h (JvSyncInfo): Removed.
5193 * Makefile.in: Rebuilt.
5194 * Makefile.am (nat_headers): Added Cloneable.h,
5195 CloneNotSupportedException.h.
5196 * java/lang/Object.h: Rewrote.
5197 * java/lang/natObject.cc: Rewrote from scratch.
5198 * java/lang/Object.java: Rewrote from scratch.
5200 * java/io/natFile.cc: Conditionally include <dirent.h>.
5201 (list): If no <dirent.h>, always return NULL.
5202 * configure: Rebuilt.
5203 * configure.in: Check for dirent.h.
5205 * prims.cc (lookupArray): Don't use sprintf.
5207 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5214 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5215 name conflict with method.
5217 * include/javaprims.h (java::util): Added HashtableEntry.
5219 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5221 * java/util/Hashtable.java: Rewritten.
5223 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5225 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5229 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5232 * posix-threads.cc (_Jv_CondWait): Now returns int.
5233 * include/javaprims.h (java::lang): Added
5234 IllegalMonitorStateException.
5235 * Makefile.in: Rebuilt.
5236 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5237 * include/no-threads.h (_Jv_CondDestroy): Removed.
5238 (_Jv_MutexDestroy): Removed.
5239 (_Jv_CondWait): Now returns int.
5240 (_Jv_CondNotify): Likewise. Added mutex argument.
5241 (_Jv_CondNotifyAll): Likewise.
5242 (_Jv_MutexLock): Always succeed.
5243 (_Jv_MutexUnlock): Likewise.
5244 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5245 (_Jv_HaveMutexDestroy): Define.
5246 (_Jv_CondNotify): Now returns int. Added mutex argument.
5247 (_Jv_CondNotifyAll): Likewise.
5248 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5249 (_Jv_MutexDestroy): Removed.
5250 (_Jv_CondWait): Now returns int.
5251 (_Jv_CondNotify): Likewise. Added mutex argument.
5252 (_Jv_CondNotifyAll): Likewise.
5253 * java/lang/natObject.cc (finalize_sync_info): New function.
5254 (init_mutex): Initialize `init' and register finalizer if
5257 (init_mutex): Use it.
5259 (notifyAll): Use it.
5261 (notify): Throw IllegalMonitorStateException on failure.
5262 (notifyAll): Likewise.
5263 (wait): Likewise. Also, throw InterruptedException if
5265 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5266 InterruptedException.h, IllegalArgumentException.h.
5267 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5269 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5270 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5271 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5272 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5273 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5274 * quick-threads.cc: Renamed all `JvPriv' functions.
5275 * prims.cc: Renamed all `JvPriv' functions.
5276 * posix-threads.cc: Renamed all `JvPriv' functions.
5277 * nogc.cc: Renamed all `JvPriv' functions.
5278 * no-threads.cc: Renamed all `JvPriv' functions.
5279 * boehm.cc: Renamed all `JvPriv' functions.
5280 * include/quick-threads.h: Renamed all `JvPriv' functions.
5281 * include/posix-threads.h: Renamed all `JvPriv' functions.
5282 * include/no-threads.h: Renamed all `JvPriv' functions.
5283 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5285 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5287 (JvPrivCondNotify): Do nothing.
5288 (JvPrivCondNotifyAll): Do nothing.
5290 * prims.cc (processClass): Handle case where state is
5293 * java/lang/natFirstThread.cc: Include <stdlib.h>
5295 * configure: Rebuilt.
5296 * configure.in: Fixed sense of --enable-libjava-debug.
5298 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5299 it can be used afterward by the assertion.
5301 * configure: Rebuilt.
5302 * configure.in: When cross-compiling, assume alloca.
5304 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5305 __builtin_alloca (autoconf docs are wrong here).
5307 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5309 (available): Use `FD_ZERO' (typo fix).
5311 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5313 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5314 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5316 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5317 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5320 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5322 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5324 * java/lang/natDouble.cc: Declare alloca safely.
5326 * configure, include/config.h.in: Rebuilt.
5327 * configure.in: Add alloca check.
5329 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5331 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5332 condition while calling notify.
5333 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5334 (interrupt): Hold mutex for interrupt condition while calling
5337 * java/lang/natString.cc (init): Allocate and try to read `count'
5338 characters, not `count - offset' characters.
5340 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5341 Correctly compute `count'.
5343 * java/lang/Boolean.java (getBoolean): Return false if property
5346 * java/lang/System.java (setProperties): Set prop_init.
5348 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5350 * java/io/PrintStream.java (println): Use line.separator, not
5352 * java/lang/System.java (out, err): Make both autoflush streams.
5353 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5355 * include/config.h.in: Rebuilt.
5356 * acconfig.h (HAVE_MEMCPY): Removed.
5357 * configure: Rebuilt.
5358 * configure.in: Never define HAVE_MEMCPY.
5360 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5362 (_Jv_AllocString): Use JvAllocObject again.
5363 * java/lang/Class.h (thread): New field.
5364 (_Jv_AllocString): No longer a friend.
5365 * prims.cc (processClass): Removed dead code. Changed to more
5366 closely follow the Java Language Specification.
5367 (processClass): Return early if already at the right state.
5369 * prims.cc (JvNewStringUTF): Removed.
5370 * include/cni.h (JvNewStringUTF): New function.
5371 (_Jv_NewStringUTF): Declare as `extern "C"'.
5372 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5374 * java/lang/natDouble.cc: Added copyright info and header
5375 comment. Include <stdlib.h>.
5376 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5377 bytes as are chars in string.
5379 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5381 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5385 * java/lang/System.java (init_properties): Now native.
5386 * java/lang/natSystem.cc (init_properties): New method.
5387 Include java/util/Properties.h.
5389 * Makefile.in: Rebuilt.
5390 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5391 OutputStreamWriter.h, ByteArrayInputStream.h,
5392 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5393 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5394 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5395 Properties.h, Hashtable.h, Dictionary.h.
5398 * include/javaprims.h (java::io): Added Reader, Writer,
5399 InputStreamReader, OutputStreamWriter,
5400 UnsupportedEncodingException, ByteArrayInputStream,
5401 ByteArrayOutputStream, EOFException, SyncFailedException,
5402 PushbackInputStream.
5403 (java::lang): Added Cloneable.
5404 (java::util): Added NoSuchElementException, VectorEnumeration,
5405 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5407 * java/io/PipedReader.java: New file.
5409 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5411 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5414 * java/io/io-defs.h: Removed.
5416 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5417 (FileInputStream): Use new constructor. Can throw IOException.
5419 * java/lang/System.java (getProperty): Don't throw
5420 NullPointerException.
5422 * java/io/RandomAccessFile.java: Rewrote from scratch.
5424 * java/io/natFileDescriptor.cc: Include EOFException.h.
5426 (length): New method.
5427 (getFilePointer): New method.
5429 (available): New method.
5430 * java/io/FileDescriptor.java (SET, CUR): New constants.
5431 (seek, length, getFilePointer, read, available): New decls.
5433 * java/io/PipedWriter.java: New file.
5434 * java/io/StringWriter.java: New file.
5435 * java/io/CharArrayWriter.java: New file.
5436 * java/io/CharConversionException.java: New file.
5437 * java/io/BufferedWriter.java: New file.
5438 * java/io/FilterWriter.java: New file.
5439 * java/io/FileWriter.java: New file.
5441 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5442 OutputStreamWriter.h, NullPointerException.h,
5443 ByteArrayInputStream.h, InputStreamReader.h.
5444 (getBytes): New method.
5445 (init): Throw NullPointerException.
5446 (init): New function.
5447 * java/lang/String.java (getBytes): Added missing decl.
5448 (getBytes): New method.
5449 (String): Added byte[]-based constructors.
5450 (copyValueOf): Wrote.
5451 (init): Declare variant which takes byte array and encoding.
5452 Import java.io.UnsupportedEncodingException.
5454 * java/io/File.java: Rewrote from scratch.
5455 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5456 * java/io/FileDescriptor.java: Rewrote from scratch.
5457 * java/io/FilenameFilter.java: Rewrote from scratch.
5459 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5461 * java/io/SyncFailedException.java: New file.
5462 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5463 * java/io/InterruptedIOException.java: Rewrote from scratch.
5464 * java/io/FileNotFoundException.java: Rewrote from scratch.
5465 * java/io/EOFException.java: Rewrote from scratch.
5466 * java/io/IOException.java: Rewrote from scratch.
5467 * java/io/PrintStream.java: Rewrote from scratch.
5468 * java/io/DataOutputStream.java: Rewrote from scratch.
5469 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5470 * java/io/FilterOutputStream.java: Rewrote from scratch.
5471 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5472 * java/io/PipedOutputStream.java: Rewrote from scratch.
5473 * java/io/FileOutputStream.java: Rewrote from scratch.
5474 * java/io/OutputStream.java: Rewrote from scratch.
5475 * java/io/DataOutput.java: Rewrote from scratch.
5477 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5479 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5481 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5483 * configure.in: Add --enable-libjava-debug
5485 * Makefile.am (nat_headers): Add java/lang/Float.h and
5488 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5490 * Makefile.in, configure, include/config.h.in: Rebuilt.
5492 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5494 * java/lang/Float.java: Rewritten
5495 * java/lang/Double.java: Rewritten
5496 * java/lang/natFloat.cc: toString() added.
5497 * java/lang/natDouble.cc: toString() added.
5498 * java/lang/natDouble.cc: doubleValueOf() added.
5499 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5500 java/lang/strtod.c: added.
5501 * ieeefp.h: __sparc added.
5502 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5504 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5506 * include/javaprims.h (java::lang): Added
5507 CloneNotSupportedException.
5509 * java/lang/Object.java (clone): No longer native. Implemented.
5510 * java/lang/natObject.cc (clone): Removed.
5512 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5514 * prims.cc: Don't make definitions `extern "C"'.
5515 (_Jv_RegisterClass): Renamed from registerClass.
5516 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5517 (_Jv_NewArray): Likewise.
5518 (_Jv_NewMultiArray): Likewise.
5519 (_Jv_CheckCast): Likewise.
5520 (_Jv_LookupInterfaceMethod): Likewise.
5521 (_Jv_CheckArrayStore): Likewise.
5522 (_Jv_RegisterClass): Likewise.
5524 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5525 * configure: Rebuilt.
5526 * configure.in: Don't check for fmod; it is provided by the fdlibm
5528 * prims.cc (fmod): Removed.
5530 * java/lang/natString.cc (charAt): Use _Jv_uint.
5531 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5532 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5533 (equalUtf8Consts): Likewise.
5534 (internalAddClass): Use _Jv_uint.
5535 (processClass): Likewise.
5536 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5537 (_Jv_uint): Renamed from uint32.
5538 (struct _Jv_Utf8Const): Changed members to use new type names.
5540 * configure: Rebuilt.
5541 * configure.in: Don't check for memcpy. Require memmove and a way
5543 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5545 (currentTimeMillis): Don't use #error.
5547 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5549 * java/lang/Math.java: static member random renamed to random_ to
5550 avoid conflict with member function of the same name.
5551 * include/javaprims.h: java.util.Random added.
5553 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5555 * include/java-chartables.h: Regenerated.
5556 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5559 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5561 * java/lang/Math.java: Rewritten.
5562 * java/lang/natMath.cc: New file.
5563 * Files added from fdlibm:
5564 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5565 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5566 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5567 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5568 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5569 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5570 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5571 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5572 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5573 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5574 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5575 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5576 java/lang/k_cos.c, java/lang/sf_ceil.c,
5577 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5578 java/lang/ieeefp.h, java/lang/fdlibm.h
5579 * Makefile.am: rules added for compiling C files from fdlibm.
5581 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5583 * chartables.pl: Minor documentation fixes.
5585 * configure: Rebuilt.
5586 * configure.in: Fixed --help output for --enable-fast-character.
5588 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5590 * configure: Rebuilt.
5591 * configure.in: Recognize --enable-fast-character.
5592 * acconfig.h (COMPACT_CHARACTER): New define.
5593 * include/config.h.in: Rebuilt.
5594 * include/java-chartables.h: New file.
5595 * Makefile.in: Rebuilt.
5596 * Makefile.am (nat_files): Added natCharacter.o.
5597 * java/lang/natCharacter.cc: New file.
5598 * chartables.pl (set_attribute): New function.
5599 (@attributes, @second_attributes): New globals.
5600 ($ROMAN_START, $ROMAN_END): Likewise.
5601 (process_char): Call set_attribute when required.
5602 (print_char): Just print hex value.
5603 (print_block): Generate C++ syntax.
5604 (print_numerics): Likewise.
5605 (print_single_map): Likewise.
5606 (print_all_block): Likewise.
5607 (print_case_table): Likewise.
5608 (print_fast_tables): New function.
5609 Generate C++ code suitable for a header file.
5610 * java/lang/Character.java (table_search): Removed.
5611 (digit_value): Now native.
5612 (getNumericValue): Likewise.
5613 (getType): Likewise.
5614 Removed all automatically-generated tables.
5615 (Tamil_Digit_One): Removed.
5616 (isSpaceChar): Now native.
5617 (isTitleCase): Likewise.
5618 (isLowerCase): Likewise.
5619 (isUpperCase): Likewise.
5620 (toLowerCase): Likewise.
5621 (toTitleCase): Likewise.
5622 (toUpperCase): Likewise.
5623 (isDefined): Fixed sense of test.
5625 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5627 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5629 (regionMatches): Likewise.
5631 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5633 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5635 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5637 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5640 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5643 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5645 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5647 * prims.cc (instanceof_class): Removed.
5648 (instanceof_array): Likewise.
5649 (instanceof): Likewise.
5650 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5651 (_Jv_CheckCast): Likewise.
5652 * java/lang/natClass.cc (isAssignableFrom): New method.
5653 * java/lang/Class.java (isAssignableFrom): Now native.
5655 * include/cni.h (JvThrow): Use `extern inline'.
5656 (JvAllocObject): Likewise.
5657 (JvInitClass): Likewise.
5659 * java/lang/natSystem.cc (arraycopy): Only check class of source
5662 * prims.cc (_Jv_CheckArrayStore): Wrote.
5663 (_Jv_MonitorEnter): Prefer `JvThrow'.
5664 Include ArrayStoreException.h.
5665 (_Jv_CheckCast): Indentation cleanup.
5667 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5669 * chartables.pl: New file.
5670 * java/lang/Character.java: Rewrote from scratch.
5672 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5674 * java/lang/ArithmeticException.java,
5675 java/lang/ArrayIndexOutOfBoundsException.java,
5676 java/lang/ArrayStoreException.java,
5677 java/lang/ClassCastException.java,
5678 java/lang/ClassNotFoundException.java,
5679 java/lang/CloneNotSupportedException.java,
5680 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5681 java/lang/IllegalArgumentException.java,
5682 java/lang/IllegalMonitorStateException.java,
5683 java/lang/IllegalThreadStateException.java,
5684 java/lang/IndexOutOfBoundsException.java,
5685 java/lang/InstantiationException.java,
5686 java/lang/InterruptedException.java,
5687 java/lang/NegativeArraySizeException.java,
5688 java/lang/NoSuchMethodException.java,
5689 java/lang/NullPointerException.java,
5690 java/lang/NumberFormatException.java,
5691 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5692 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5694 * java/lang/IllegalStateException.java,
5695 java/lang/NoSuchFieldException.java,
5696 java/lang/UnsupportedOperationException.java: Created.
5698 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5700 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5701 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5703 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5705 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5707 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5709 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5711 * Makefile.in: Rebuilt.
5713 * include/javaprims.h (java::lang): Added
5714 StringIndexOutOfBoundsException.
5716 * java/lang/String.java: Added header comment and FIXME comment for
5717 missing constructors/methods.
5718 (endsWith): Adjusted offset into string to look at just the last chars.
5719 Commented out undocumented method.
5721 * java/lang/natString.cc: Added includes for
5722 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5723 (String::init): Throw StringIndexOutOfBoundsException.
5724 (String::charAt): Throw StringIndexOutOfBoundsException.
5725 (String::substring): Throw StringIndexOutOfBoundsException.
5726 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5727 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5728 (String::compareTo): Return difference/offset between chars/strings.
5730 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5732 * java/lang/Boolean.java (TYPE): Added comment.
5734 * java/lang/Byte.java (decode): Added - commented out until dependent
5735 code for Integer is written.
5736 (compareTo): JDK 1.2 methods written.
5737 (hashCode): Added comment to note that values have been verified.
5739 * java/lang/Short.java (decode): Added - commented out until dependent
5740 code for Integer is written.
5741 (compareTo): JDK 1.2 methods written.
5742 (hashCode): Added comment to note that values have been verified.
5744 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5746 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5748 * include/javaprims.h (java::lang): Added VirtualMachineError,
5750 * Makefile.in: Rebuilt.
5751 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5752 VirtualMachineError.h.
5753 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5754 (lookupArray): Likewise.
5755 (makeUtf8Const): Likewise.
5756 (_Jv_AllocObject): Likewise.
5757 (_Jv_NewObjectArray): Likewise.
5758 Include OutOfMemoryError.h.
5760 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5761 to use JvNewStringLatin1.
5763 * java/io/io-defs.h: Include java/lang/IOException.h.
5764 * Makefile.in: Rebuilt.
5765 * Makefile.am (nat_headers): Added
5766 ArrayIndexOutOfBoundsException.h,
5767 ClassFormatError.h,ClassNotFoundException.h,
5768 ClassCircularityError.h, ClassCastException.h,
5769 IncompatibleClassChangeError.h, AbstractMethodError.h,
5770 IllegalAccessError.h, LinkageError.h, Error.h,
5771 NegativeArraySizeException.h, IOException.h.
5772 * include/cni.h (SignalError): Removed declaration.
5773 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5774 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5775 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5776 (newInstance): Likewise.
5777 (forName): Likewise.
5778 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5780 (read): Use JvThrow, not SignalError.
5785 (open_read): Likewise.
5786 (open_write): Likewise.
5789 (newstr): New function.
5790 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5792 (lastModifiedUnchecked): Likewise.
5793 (lengthUnchecked): Likewise.
5794 * include/javaprims.h (sorry): Removed declaration.
5795 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5796 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5797 ClassCastException, IncompatibleClassChangeError,
5798 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5799 * prims.cc (instanceof_array): Use JvFail, not sorry.
5801 Include ArrayIndexOutOfBoundsException.h,
5802 ClassFormatError.h,ClassNotFoundException.h,
5803 ClassCircularityError.h, ClassCastException.h,
5804 IncompatibleClassChangeError.h, AbstractMethodError.h,
5805 IllegalAccessError.h, NegativeArraySizeException.h.
5806 (_Jv_ThrowBadArrayIndex): Implemented.
5807 (JvNewStringUTF): Use JvFail, not sorry.
5808 (_Jv_FindClass): Likewise.
5809 (_Jv_NewArray): Likewise.
5810 (throwException): Removed.
5811 (getClass): Use JvThrow.
5812 (processClass): Likewise.
5813 (_Jv_NewObjectArray): Likewise.
5814 (_Jv_NewMultiArray): Likewise.
5815 (_Jv_CheckCast): Likewise.
5816 (_Jv_LookupInterfaceMethod): Likewise.
5817 (SignalError): Removed.
5818 (getClass): Use _Jv_NewStringUtf8Const to create String.
5820 * java/lang/natSystem.cc (arraycopy): Throw
5821 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5823 * Makefile.in: Rebuilt.
5824 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
5826 * include/java-array.h: Mention gcjh, not gjavah.
5828 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5829 (canReadUnchecked): Likewise.
5830 (canWriteUnchecked): Likewise.
5831 (isFileUnchecked): Likewise.
5832 * java/io/natFileDescriptor.cc: Don't include cni.h.
5834 * java/lang/Thread.java (run__): Declare.
5835 * java/lang/natThread.cc (run__): New method, to avoid compiler
5837 (start): Use run__, not run_.
5839 * java/io/io-defs.h: Include cni.h and jvm.h.
5841 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
5843 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5844 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
5845 to natString.cc (with suitable renaming, inlines etc).
5846 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
5847 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
5848 * java/lang/String.h: Removed - now generated using gjavah.
5849 * java/lang/String.java: Re-written from scratch. Many native methods.
5850 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
5851 * java/lang/natString.cc: Many functions re-written for "compact
5852 strings" representation, or native java.lang.String methods added.
5853 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
5854 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
5855 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
5856 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
5857 * include/cni.h: Add inline method.
5858 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
5859 * include/javaprims.h: Moved some stuff frm String.h.
5860 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
5861 * Makefile.am (nat_header): Added Character.h and String.h.
5862 (String.h): Add new rule.
5864 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5866 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
5868 * posix-threads.cc: Include cni.h, jvm.h.
5869 * quick-threads.cc: Include cni.h, jvm.h.
5870 * nogc.cc: Include cni.h, not javaprims.h.
5871 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5872 * java/lang/natThread.cc: Rearranged #include ordering. Don't
5873 include java-assert.h.
5874 * java/lang/natSystem.cc: Include cni.h. Don't include
5876 * java/lang/natRuntime.cc: Include cni.h. Don't include
5878 * prims.cc: Rearranged #include ordering. Don't include
5879 java-array.h or java-assert.h.
5880 * boehm.cc: Include config.h, cni.h.
5881 * exception.cc: Include config.h, cni.h.
5882 * include/jvm.h: Include java-assert.h.
5883 * include/cni.h: Include java/lang/Object.h. Don't include
5884 java-threads.h or java-array.h.
5886 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
5888 * java/lang/Boolean.java: Rewritten.
5890 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5892 * java/lang/natFirstThread.cc (main_func): New typedef.
5893 (run): Use main_func, not JvPrivThreadStartFunc.
5894 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5896 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5898 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5901 Can't throw Java exceptions with C++ `throw':
5902 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5903 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5904 (setPriority): Likewise.
5908 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5909 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5911 Can't catch Java exceptions from C++:
5912 * java/lang/natThread.cc (finish_): New method.
5914 * java/lang/Thread.java (run_): Rewrote in Java.
5915 (finish_): New native method.
5917 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
5919 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5921 * include/javaprims.h (java::io): Added Serializable.
5923 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
5925 * java/util/EmptyStackException.java,
5926 java/util/NoSuchElementException.java: Rewritten.
5928 * java/util/ConcurrentModificationException.java,
5929 java/util/MissingResourceException.java,
5930 java/util/TooManyListenersException.java: Created.
5932 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5934 * include/cni.h (JvThrow): New function.
5935 * include/javaprims.h (_Jv_Throw): Declare.
5937 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
5939 * java/util/Observable.java: Rewritten.
5941 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5943 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
5944 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
5945 Include NullPointerException.h.
5947 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
5949 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
5950 assignability checks. Don't bother using memcpy.
5952 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
5954 * include/quick-threads.h (JvPrivThreadWait): New function.
5955 * include/no-threads.h (JvPrivThreadWait): New function.
5956 * include/posix-threads.h (JvPrivThreadWait): New function.
5957 * prims.cc (JvRunMain): Call JvPrivThreadWait.
5959 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
5961 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
5962 offsets by size of type that is being copied.
5964 * java/lang/natThread.cc (start): Don't pass `object' argument to
5966 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
5967 * posix-threads.cc (JvPrivThreadStart): Removed `object'
5969 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
5970 always pass thread as object.
5971 * include/quick-threads.h, include/posix-threads.h,
5972 include/no-threads.h (JvPrivThreadStart): Removed `object'
5975 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
5977 * java/util/Dictionary.java: Rewritten.
5979 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
5981 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
5982 (JvPrivThreadDestroy): Likewise.
5984 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
5986 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
5988 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
5990 * java/lang/natSystem.cc: Rewrote from scratch.
5991 * java/lang/System.java: Rewrote from scratch.
5992 * java/lang/Class.h (Class): Declare isAssignableFrom.
5993 * include/javaprims.h (java::lang): Added ArrayStoreException,
5994 IndexOutOfBoundsException.
5995 * Makefile.in: Rebuilt.
5996 * Makefile.am (nat_headers): Added ArrayStoreException.h,
5997 IndexOutOfBoundsException.h.
5998 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
5999 * include/jvm.h (_Jv_HashCode): New function.
6001 * java/lang/natThread.cc (suspend): Call checkAccess.
6003 * java/lang/Thread.java (setDaemon): Call checkAccess.
6005 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6007 * java/lang/Runtime.java: Rewrote from scratch.
6008 * java/lang/natRuntime.cc: Rewrote from scratch.
6010 * nogc.cc (JvPrivGCTotalMemory): New function.
6011 (JvPrivGCFreeMemory): Likewise.
6012 (total): New global.
6013 (JvPrivAllocObj): Increment total.
6014 (JvPrivAllocArray): Likewise.
6015 (JvPrivAllocBytes): Likewise.
6016 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6017 * boehm.cc (JvPrivGCTotalMemory): New function.
6018 (sum_blocks): Likewise.
6019 (JvPrivGCFreeMemory): Likewise.
6021 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6023 * include/javaprims.h (java::lang): Added FirstThread.
6024 * java/lang/natFirstThread.cc: New file.
6025 * java/lang/FirstThread.java: New file.
6026 * prims.cc (main_signature): Removed.
6027 (main_name): Removed.
6028 #include FirstThread.h.
6029 * Makefile.in: Rebuilt.
6030 * Makefile.am (TFRIEND): Removed.
6031 (java/lang/Thread.h): Likewise.
6032 (FTFRIEND): New macro.
6033 (java/lang/FirstThread.h): New target.
6034 (nat_files): Added natFirstThread.o.
6035 (nat_headers): Added FirstThread.h.
6036 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6037 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6039 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6043 * java/lang/natThread.cc (start): Synchronize the thread.
6044 (stop): Synchronize the thread.
6046 * java/lang/ThreadDeath.java: Rewrote from scratch.
6048 * Makefile.in: Rebuilt.
6049 * Makefile.am (TGFRIEND): New macro.
6050 (java/lang/ThreadGroup.h): New target.
6051 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6053 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6055 * nogc.cc: Include config.h.
6057 * java/lang/ThreadGroup.java: Rewrote from scratch.
6059 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6061 * java/lang/Thread.java (checkAccess): Only call in to security
6062 manager if it exists.
6063 (Thread): Don't check access when creating the first thread. Add
6064 this thread to the appropriate ThreadGroup.
6066 * java/lang/natThread.cc (run_): Call uncaughtException method on
6069 * java/lang/Runnable.java: Rewrote from scratch.
6070 * java/lang/Thread.java: Updated copyright comment to correct
6073 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6075 * java/util/Random.java: Rewritten.
6077 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6079 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6080 trailing 0 in array[].
6082 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6084 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6085 and RUNTESTFLAGS from AM_MAKEFLAGS.
6086 (SUBDIRS): Conditionally include testsuite.
6087 * Makefile.in: Rebuilt.
6089 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6091 * java/lang/Object.h: Include java-assert.h.
6093 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6095 * Makefile.am: Add testsuite directory.
6096 * configure.in: Build testsuite/Makefile.
6097 * Makefile.in, configure: Rebuilt.
6099 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6101 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6102 * include/jvm.h (_Jv_StartFirstThread): Declare.
6104 * include/javaprims.h (java::lang): Added Exception,
6107 * Makefile.in: Rebuilt.
6108 * Makefile.am (nat_headers): Added NullPointerException.h,
6109 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6110 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6111 (java/lang/Thread.h): New target.
6112 (TFRIEND): New macro
6114 * include/java-assert.h (JvFail): Use 0 and not NULL.
6116 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6117 instead of assuming we are a friend of Thread.
6118 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6119 instead of assuming we are a friend of Thread.
6121 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6123 * java/lang/natThread.cc: Rewrote from scratch.
6124 * java/lang/Thread.java: Rewrote from scratch.
6125 * prims.cc (JvRunMain): Use new Thread constructor.
6126 * include/javaprims.h (java::lang): Added InterruptedException.
6127 * Makefile.in: Rebuilt.
6128 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6129 * java/lang/Thread.h: Removed.
6130 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6131 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6133 * posix-threads.cc (JvPrivThreadJoin): Removed.
6134 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6135 (really_start): Don't notify join_cond.
6136 (JvPrivThreadStart): Added `data' argument.
6137 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6138 (JvPrivThreadJoin): Likewise.
6139 Use JvFail instead of sorry.
6140 (JvPrivThreadSuspend): Removed.
6141 (JvPrivThreadResume): Removed.
6142 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6143 (JvPrivThreadJoin): Likewise.
6144 (JvPrivThreadSuspend): Use JvFail.
6145 (JvPrivThreadResume): Likewise.
6146 (JvPrivThreadSuspend): Removed.
6147 (JvPrivThreadResume): Likewise.
6148 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6149 (JvPrivThread_t): Removed join_mutex, join_cond.
6150 Use JvFail instead of sorry.
6151 (JvPrivThreadSuspend): Removed.
6152 (JvPrivThreadResume): Likewise.
6154 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6156 * java/util/Observer.java: Rewritten
6157 * java/util/Enumeration.java: Rewritten
6159 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6161 * java/util/StringTokenizer.java: Rewritten
6162 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6163 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6164 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6166 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6168 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6171 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6172 Include java-assert.h.
6173 * include/java-assert.h: New file.
6174 * prims.cc (_Jv_Abort): New function.
6175 Include java-assert.h, not assert.h.
6176 (_Jv_MonitorExit): Use JvAssert.
6177 (resolveConstants): Likewise.
6178 (processClass): Likewise.
6179 (JvRunMain): Assert that method is found.
6181 * configure: Rebuilt.
6182 * configure.in: Check for test subdir.
6183 * Makefile.in: Rebuilt.
6184 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6186 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6187 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6189 * prims.cc (resolveConstants): Removed unused variables.
6190 (processClass): Likewise.
6192 * include/quick-threads.h (JvPrivThreadCurrent): Use
6194 * quick-threads.cc (destroy_data): New function.
6195 (JvPrivInitThreads): Create key.
6196 (JvPrivThreadKey): New global.
6197 (JvPrivThreadStart): Use coop_setspecific.
6199 * include/quick-threads.h, include/posix-threads.h,
6200 include/no-threads.h, no-threads.cc, quick-threads.cc,
6201 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6203 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6205 * include/no-threads.h (JvPrivThreadInitData): Don't set
6208 * include/quick-threads.h (JvPrivCondWait): coop function now
6210 (JvPrivThreadJoin): Likewise.
6212 * java/lang/Thread.h (Thread): Updated declaration of
6214 * include/quick-threads.h, include/posix-threads.h: Updated
6215 declaration of JvPrivThreadStart.
6216 * include/no-threads.h (JvPrivThreadStart): Changed definition
6218 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6219 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6220 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6222 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6224 * quick-threads.cc (qthrow): New function.
6225 (JvPrivInitThreads): New function.
6226 (started): New global.
6227 (JvPrivThreadStart): Call coop_start if required.
6228 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6229 (JvPrivThreadDestroy): Likewise.
6230 (JvPrivInitThreads): Removed.
6231 * include/posix-threads.h (JvPrivThreadCancel): Added error
6233 * java/lang/natThread.cc (stop_): Pass exception to
6236 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6238 * include/javaprims.h (java::lang): Added
6239 IllegalArgumentException, IllegalThreadStateException, Math,
6240 NullPointerException, ThreadDeath.
6241 (java::util): Added Enumeration.
6243 * Makefile.in: Rebuilt.
6244 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6246 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6248 (threadsv): Renamed from threads to avoid clash in C++ header.
6249 (groupsv): Likewise.
6250 * include/no-threads.h (JvPrivThreadStart): Removed.
6251 * no-threads.cc (JvPrivThreadStart): New function.
6252 * java/lang/Thread.java (Thread): New constructor for internal use.
6253 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6254 (Thread): Declare constructor.
6255 * prims.cc (JvRunMain): Create the initial Thread and
6257 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6258 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6259 Removed `daemon' argument.
6261 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6262 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6264 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6266 * Makefile.in: Rebuilt.
6267 * Makefile.am (INCLUDES): Include THREADINCS.
6269 * configure: Rebuilt.
6270 * configure.in: Recognize `qt' as a threads package.
6272 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6274 * java/util/Stack.java (pop): Null out topmost node for robustness.
6276 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6278 * java/util/Stack.java: Rewritten.
6279 * java/util/Vector.java (isEmpty): Simplified expression.
6281 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6283 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6284 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6286 * include/java-array.h (JvNewObjectArray): Created inline to
6289 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6292 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6294 * java/util/Vector.java: Rewritten.
6295 * java/io/Serializable.java: Created.
6297 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6299 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6300 Infinity is 1/0, not 1/1.
6302 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6304 * configure: Rebuilt.
6305 * configure.in: Removed duplicate AC_ARG_WITH.
6307 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6309 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6311 (_Jv_InitClass): Renamed from soft_initialise_class.
6312 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6313 (_Jv_CheckCast): Renamed from soft_checkcast.
6314 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6315 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6316 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6317 * include/cni.h (JvInitClass): New function.
6318 (_Jv_InitClass): Renamed from soft_initialise_class.
6320 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6322 * configure: Rebuilt.
6323 * configure.in (CXX): Don't set.
6324 * Makefile.in: Rebuilt.
6325 * Makefile.am (AM_CXXFLAGS): New macro.
6327 * Makefile.in: Rebuilt.
6328 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6329 nogc.o): New target.
6331 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6333 (mark_array): Likewise.
6335 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6337 * java/lang/Class.h (JvMethod): Removed some unused fields.
6338 (JvField.info): Removed unused idx union variant.
6340 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6342 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6345 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6347 * configure.in, configure (CXX): Add -fvtable-thunks.
6349 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6351 * java/lang/Object.java (finalize): Move first.
6352 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6353 (Object): Re-arrange order to match Object.java.
6355 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6357 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6358 * java/lang/natString.cc (hashChars): Likewise.
6360 * prims.cc (RuntimeClass): New macro.
6361 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6363 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6365 * Makefile.in: Rebuilt.
6366 * Makefile.am (AM_MAKEFLAGS): New macro.
6368 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6370 * nogc.cc: Include <javaprims.h>.
6372 * Makefile.in: Rebuilt.
6373 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6375 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6377 * exception.cc (terminate): Removed.
6378 (unexpected): Removed.
6380 * configure: Rebuilt.
6381 * configure.in: Handle case where target subdir is ".".
6383 * configure: Rebuilt.
6384 * configure.in: Compute COMPPATH based on --with-target-subdir
6385 option. Added --with-target-subdir and --with-cross-host. Use
6386 --with-cross-host to determine when a cross compiler is in use.
6388 * Makefile.in: Rebuilt.
6389 * Makefile.am (GJAVAH): Include COMPPATH.
6390 * configure: Rebuilt.
6391 * configure.in: Subst COMPPATH.
6393 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6395 * prims.cc (lockMutex): Removed.
6396 (unlockMutex): Likewise.
6397 (processClass): Lock the class using a JvSynchronize object.
6399 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6401 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6402 (gc_free_fixed): Removed.
6403 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6404 freeing old value of strhash.
6406 * exception.cc (_Jv_type_matcher): Cast first argument to
6409 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6411 * include/java-array.h (jstringArray): New type.
6412 * java/lang/natSystem.cc (setProperty): Removed.
6413 (initProperties): Directly call JvNewStringLatin1 for arguments.
6414 * java/util/natDate.cc: Include java/util/Date.h, not
6417 * java/io/FileDescriptor.java (available): No longer static.
6418 * java/lang/natDouble.cc (Double): Removed class definition.
6419 * include/javaprims.h (java::lang::Number): Declare.
6420 (java::lang::NumberFormatException): Likewise.
6421 (java::io::FilenameFilter): Likewise.
6422 (java::lang::Character): Likewise.
6423 (java::lang::Error): Likewise.
6424 (java::lang::SecurityManager): Likewise.
6425 (java::util::Vector): Likewise.
6426 (java::io::FileNotFoundException): Likewise.
6427 (java::io::IOException): Likewise.
6428 (java::lang::NativeLang): Likewise.
6429 (java::lang::UnsatisfiedLinkError): Likewise.
6430 (java::util::StringTokenizer): Likewise.
6431 (java::io::InputStream, java::io::OutputStream): Likewise.
6432 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6433 (java::util::Hashtable): Likewise.
6434 * Makefile.in: Rebuilt.
6435 * Makefile.am (nat_headers): Added java/lang/Double.h,
6436 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6437 (MOSTLYCLEANFILES): Added nat_headers.
6438 * include/jvm.h: Moved many defines, declarations, and functions
6439 to java/lang/Class.h.
6440 (struct JvSyncInfo): Moved to java/lang/Object.h.
6441 (UTF8_GET): Moved to java/lang/String.h.
6443 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6445 * java/io/io-defs.h: Don't include java-io.h.
6446 * include/java-io.h: Removed.
6447 * include/javaprims.h: Include java::io.
6449 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6451 * include/java-io.h (File): Removed
6452 (FileDescriptor): Likewise.
6454 * java/io/io-defs.h: Include java/io/File.h and
6455 java/io/FileDescriptor.h.
6457 * Makefile.in: Rebuilt.
6458 * Makefile.am (GJAVAH): New macro.
6459 (.class.h): New rule.
6460 (SUFFIXES): Added .h.
6461 (nat_headers): New macro.
6462 ($(nat_headers)): New target.
6463 (BUILT_SOURCES): Added nat_headers.
6465 * include/java-util.h: Removed.
6467 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6469 * include/java-io.h: Changed to avoid java-lang.h.
6470 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6472 * java/lang/natSystem.cc: Include java/lang/System.h, not
6474 * java/lang/natString.cc: Include java/lang/String.h, not
6476 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6478 * java/lang/natClass.cc: Include java/lang/Class.h, not
6480 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6482 * java/lang/natObject.cc: Include java/lang/Object.h, not
6484 * exception.cc: Don't include java-lang.h.
6485 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6486 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6487 * nogc.cc: Don't include java-lang.h.
6488 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6489 * prims.cc (processClass): Don't use `init_type'; just cast to
6491 Include java/lang/Class.h and jvm.h, not java-lang.h.
6492 (JvAllocObject): Wrote single-argument version.
6493 (PrimClass): Inherit from Class.
6494 (initPrimClass): Removed.
6495 * include/java-lang.h: Removed.
6496 * include/jvm.h: Declare struct _dispatchTable.
6497 * include/cni.h: Don't declare _Jv_MonitorEnter,
6498 _Jv_MonitorExit, struct _dispatchTable.
6499 * include/javaprims.h: Moved all typedefs here, from cni.h.
6500 * java/lang/Class.h: New file.
6501 * include/java-array.h: New file.
6502 * java/lang/Object.h: New file.
6504 * prims.cc (classFromSig): Now static.
6506 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6508 * include/cni.h: Don't mention soft_new.
6509 * include/java-lang.h (Object): Don't mention soft_new. Mention
6510 _Jv_NewPrimArray, not newPrimArray.
6511 * prims.cc (soft_new): Removed.
6512 (_Jv_NewArray): Renamed from soft_newarray.
6513 (soft_anewarray): Use JvNewObjectArray.
6514 (newArray): Likewise.
6515 (newRefArray): Removed.
6516 (_Jv_NewPrimArray): Renamed from newPrimArray.
6517 (equalUtf8Consts): Now static.
6518 (soft_instanceof): Removed.
6519 * java/lang/natDouble.cc (doubleToString): Now static.
6521 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6522 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6525 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6527 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6529 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6531 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6532 (JvPrivMutexUnlock): Likewise.
6533 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6534 Return value now jint.
6535 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6538 * Makefile.in: Rebuilt.
6539 * Makefile.am: Don't allow `jV' names.
6540 (maintainer-check): Depend on libjava.a.
6541 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6543 * Makefile.in: Rebuilt.
6544 * Makefile.am (NM): New macro.
6545 (maintainer-check): New target.
6547 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6549 * configure: Rebuilt.
6550 * configure.in: Use --enable-threads, not --enable-gc. Fix
6551 documentation for --enable-threads. Changed option to work like
6552 identical option in gcc/configure.
6554 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6556 * boehm.cc (mark_array): Use JvGetArrayLength.
6558 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6560 * exception.cc: New file (mostly written by Andrew MacLeod),
6561 exception handling support.
6562 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6563 Remove -fexceptions - it is now the default.
6565 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6566 (JvAllocObject): Renamed to _Jv_AllocObject.
6567 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6568 (loadClass): Renamed to _Jv_FindClass.
6569 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6570 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6571 * include/java-lang.h (JvGetArrayLength): New CNI function.
6572 * include/jvm.h (_Jv_FindClass): Added declaration.
6574 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6576 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6578 * java/lang/natClass.cc (getName): Add implementation.
6579 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6581 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6583 * Makefile.in: Rebuilt.
6584 * Makefile.am (.class.o): Added -fexceptions.
6586 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6588 * configure: Rebuilt.
6589 * configure.in: Don't check for __nanosleep.
6590 * posix-threads.cc (nanosleep): Never define.
6592 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6594 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6597 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6599 * java/lang/natThread.cc (enumerate): Uncommented.
6600 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6601 (interrupt): Call it.
6603 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6605 * configure: Rebuilt.
6606 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6608 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6610 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6611 * include/java-lang.h (Thread): Added `interrupted_' method.
6612 * java/lang/Thread.java (interrupted_): New method.
6613 * java/lang/natThread.cc (join): Possibly throw interrupted
6614 exception after join finishes.
6615 (interrupted_): New method.
6616 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6618 (JvPrivThreadJoin): New function.
6619 (really_start): Notify all threads waiting for this thread.
6620 (struct starter): Added `data' member.
6621 (JvPrivThreadStart): Set it.
6622 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6624 (JvPrivThreadJoin): No longer inline.
6625 (JvPrivThreadInterrupt): New function.
6627 * include/no-threads.h (JvPrivThreadSleep): Removed.
6628 * posix-threads.cc (JvPrivThreadSleep): Removed.
6630 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6632 * configure: Rebuilt.
6633 * configure.in (THREADOBJS): Initialize to no-threads.o in
6635 * posix-threads.cc (key): New global.
6636 (JvPrivInitThreads): New function.
6637 (really_start): Set thread-specific data to point to object.
6638 (JvPrivThreadStart): Added `daemon' argument.
6639 (JvPrivThreadSleep): Added `data' argument.
6640 * include/posix-threads.h (JvPrivInitThreads): Removed
6642 (JvPrivThreadCurrent): New function.
6643 * include/no-threads.h (JvPrivThreadInitData): Initialize
6644 JvPrivOnlyThread. Added `thread' argument.
6645 (JvPrivThreadCurrent): New function.
6646 (JvPrivThreadStart): Added `daemon' argument.
6647 * no-threads.cc: New file.
6648 * java/lang/natThread.cc (init_data): New function.
6650 (start): Set `alive' member.
6651 (stop_): Clear `alive' member.
6652 (destroy): Likewise.
6653 (currentThread): Implemented.
6654 (start): Pass `daemon' argument to JvPrivThreadStart.
6656 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6657 (Thread): Added `init_data' method.
6658 * java/lang/Thread.java (alive, data): New instance variables.
6659 (init_data): New private method.
6660 (isAlive): No longer native.
6662 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6664 * include/java-lang.h (JvRunMain): Declare.
6665 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6666 * prims.cc (JvRunMain): New function.
6667 (main_signature, main_name): New globals.
6669 * boehm.cc (mark_array): Use `elements' function and not
6670 operator[] on jarray.
6672 * posix-threads.cc: Include <config.h>. Define nanosleep if
6675 * configure: Rebuilt.
6676 * configure.in: Check for _nanosleep.
6678 * configure: Rebuilt.
6679 * configure.in: Check for pthread_mutexattr_settype.
6681 * include/cni.h (class JvSynchronize): New class.
6682 * java/lang/Thread.java (sleep): Throws InterruptedException.
6683 (join): Throws InterruptedException.
6684 (resume): Not native.
6685 (resume_): New method.
6686 (start): Now synchronized.
6687 (stop_): New method.
6688 (Thread): Synchronize when accessing threadNumber.
6690 * java/lang/natThread.cc (throwException): New macro.
6691 (sleep): Throw InterruptedException.
6694 * include/java-lang.h (Runtime): Added interrupted().
6696 * boehm.cc (call_finalizer): Correctly initialize jobj.
6697 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6699 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6702 * configure: Rebuilt.
6703 * configure.in: Added support for --disable-threads.
6704 * include/no-threads.h: New file.
6706 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6708 * Makefile.in: Rebuilt.
6709 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6710 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6711 (libjava_a_LIBADD): Added THREADOBJS.
6712 * configure: Rebuilt.
6713 * configure.in: Added --with-threads option.
6714 * posix-threads.cc: New file.
6715 * include/posix-threads.h: New file.
6716 * include/java-lang.h (Object): Added static member sync_mutex,
6717 member sync_info, method init_mutex.
6718 (struct JvSyncInfo): New struct.
6719 Include "java-threads.h".
6720 * prims.cc (soft_monitorenter): Wrote.
6721 (soft_monitorexit): Likewise.
6722 * java/lang/natObject.cc (init_mutex): New method.
6726 (sync_mutex): Define.
6727 Include "java-threads.h".
6729 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6731 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6732 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6734 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6736 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6737 Added extern "Java" in places to tell G++ Object is a "Java" type.
6738 Other minor renaming and fixes.
6739 * include/java-io.h (FileDescriptor): Add friend class declarations.
6740 G++ no longer allows non-Java types in method parameters and results
6741 of Java classes. Converted most offending methods to friends.
6742 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6743 * java/lang/natSystem.cc (setProperty): Make friend.
6744 * java/lang/natString.cc, include/java-lang.h (String): Rename
6745 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6746 * include/java-lang.h (JArray): Remove getData and eoprator[].
6747 Add elements friend function instead.
6748 * java/lang/natSystem.cc (arraycopy): Use elements function.
6749 * java/io/natFileDescriptor.cc (read, write): Likewise.
6750 * include/java-lang.h (Object): Remove unused make method.
6751 (System::setProperty(char*,char*)): Turn into friend function.
6752 (Class): Rename newObject by JvAllocObject.
6753 * prims.cc: Update to use JvAllocObject, and elements.
6755 * java/lang/natDouble.cc: Fix double -> jdouble.
6757 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6759 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6761 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6763 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6764 * include/java-lang.h (Runtime): finalize_on_exit and
6765 runFinalizersOnExit now static.
6766 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6768 (finalize_on_exit): Now static.
6770 * boehm.cc (mark_obj): Get class using getClass() method on
6772 (_dispatchTable): Removed.
6774 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6776 * java/io/natFileDescriptor.cc (open_read): Only call open if
6778 (open_write): Likewise.
6780 * Makefile.in: Rebuilt.
6781 * Makefile.am ($(nat_files)): Depend on config.h.
6783 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6785 * prims.cc (ObjectClass): Now a macro; updated for new class name
6787 (StringClass): Likewise.
6788 (ClassClass): Likewise.
6790 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6792 * java/io/natFileDescriptor.cc (available): Do nothing unless
6793 HAVE_SELECT defined.
6794 * java/util/natDate.cc (setTime): Conditional on
6796 (toString): Conditional on HAVE_TIME.
6797 * aclocal.m4, configure: Rebuilt.
6798 * acinclude.m4: New file.
6799 * configure.in: Don't actually call AM_EXEEXT. Call
6800 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6801 --with-target-subdir option. Check for select and open
6804 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6806 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6807 (call_finalizer): Likewise.
6808 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6809 * prims.cc (newObject): Pass actual method pointer to
6810 JvPrivRegisterFinalizer.
6811 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6812 (JvPrivRegisterFinalizer): Changed interface.
6814 * Makefile.in: Rebuilt.
6815 * Makefile.am (MOSTLYCLEANFILES): New macro.
6816 (CLEANFILES): Removed javao_files.
6818 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
6820 * nogc.cc: New file.
6821 * Makefile.in: Rebuilt.
6822 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6823 (EXTRA_libjava_a_SOURCES): New macro.
6824 (libjava_a_SOURCES): Removed boehm.cc.
6825 (libjava_a_DEPENDENCIES): Added GCOBJS.
6826 (libjava_a_LIBADD): Likewise.
6827 * configure: Rebuilt.
6828 * configure.in: Added code for --enable-gc=TYPE.
6830 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
6832 * boehm.cc (mark_array): Don't further dereference pointer from
6835 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6836 * Makefile.in: Rebuilt.
6837 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6838 one for boehm-gc build directory.
6840 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
6842 * include/java-lang.h (finalize_on_exit): New instance variable in
6843 java::lang::Runtime.
6844 (runFinalizersOnExit): New method.
6845 * java/lang/Runtime.java (finalize_on_exit): New instance
6847 (runAllFinalizers_): New private method.
6848 (runFinalizersOnExit): New method.
6849 * boehm.cc (JvPrivRunFinalizers): New function.
6850 (JvPrivRunAllFinalizers): Likewise.
6851 (JvPrivRunGC): Likewise.
6852 * java/lang/natRuntime.cc: Include "jvm.h".
6853 (gc): Call JvPrivRunGC.
6854 (runFinalization): Call JvPrivRunFinalizers.
6855 (runFinalizersOnExit): New method.
6856 (exit_): Call JvPrivRunAllFinalizers if required.
6857 * include/jvm.h: Declare JvPrivRunFinalizers,
6858 JvPrivRunAllFinalizers, JvPrivRunGC.
6860 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
6862 * boehm.cc (JvPrivRegisterFinalizer): New function.
6863 (call_finalizer): Likewise.
6864 * include/jvm.h: Declare JvPrivRegisterFinalizer.
6865 * prims.cc (finalize_name): New global.
6866 (newObject): Just call other newObject.
6867 (newObject): Register finalizer if it exists.
6869 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
6871 * prims.cc (gc_malloc): Removed.
6872 (makeUtf8Const): Use JvPrivAllocBytes.
6873 (lookupArray): Likewise.
6874 (newPrimArray): Likewise.
6875 (JvNewObjectArray): Use JvPrivAllocArray.
6876 (newObject): Use JvPrivAllocObj.
6877 (newObject): Likewise.
6878 Changed Method -> JvMethod everywhere.
6879 Changed Field -> JvField everywhere.
6880 * include/java-lang.h (Object): Changed type of `fields' to
6882 (jmethodID, jfieldID): New typedefs.
6883 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6885 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6887 (METHOD_NATIVECODE): Moved from java-lang.h.
6888 (class JvField): New class.
6889 (JvGetFirstInstanceField): New function.
6890 (JvFieldIsRef): Likewise.
6891 (JvGetObjectField): Likewise.
6892 (JvNumInstanceFields): Likewise.
6894 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6896 * boehm.cc: New file.
6897 * Makefile.in: Rebuilt.
6898 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6899 (INCLUDES): Added -I options to find boehm-gc files.
6901 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
6903 * configure: Rebuilt.
6904 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6906 * Makefile.in: Rebuilt.
6907 * Makefile.am (nat_files): New macro.
6908 (libjava_a_DEPENDENCIES): Use it.
6909 (libjava_a_LIBADD): Likewise.
6910 ($(nat_files)): New static pattern rule.
6911 (class_files): Run separate find to find .class files.
6912 (javao_files): Compute based on class_files.
6913 (BUILT_SOURCES): New macro.
6915 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6917 * Makefile.am (java_files): New macro.
6918 (class_files): Likewise.
6919 (javao_files): Likewise.
6920 (libjava_a_DEPENDENCIES): Include $(javao_files).
6921 (libjava_a_LIBADD): Likewise.
6922 (classes.stamp): Depend on $(java_files); only recompile changed
6925 (CLEANFILES): Don't run find; use macros. Don't mention
6927 (.class.o): New target.
6928 (compiled.stamp): Removed.
6930 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
6932 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6933 LineNumberReader}>java: Newly-implemented standard classes.
6935 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
6937 * Makefile.in: Rebuilt.
6938 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
6940 * Makefile.in: Rebuilt.
6941 * Makefile.am (hack): New macro.
6942 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
6944 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
6946 * include/config.h.in: New file.
6947 * include/config.h: Removed.
6948 * acconfig.h: New file.
6949 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
6950 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
6951 libjava_a_LIBADD): New macros.
6952 (INCLUDES): New macro.
6955 (SUFFIXES): Removed.
6957 (libjava.a): Removed.
6959 * configure: Rebuilt.
6960 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
6961 Look for headers and functions we require. Create
6964 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
6966 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
6967 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
6968 soft_lookupinterfacemethod): New functions.
6969 (PrimClass): Actually initialize the primitive classes.
6970 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
6972 * include/java-util.h: Removed java::util definition.
6973 * include/cni.h: Moved java::util here and added Properties.
6974 Added more function prototypes.
6975 * include/java-lang.h: Added mroe methods and friend declarations.
6976 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
6977 * include/jvm.h (strLengthUtf8): Add declaration.
6979 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
6981 * java/lang/{Byte,Short,Void}.java: New classes.
6982 * java/lang/Character.java (isJavaIdentifierStart,
6983 JavaIdentifierPart): New static methods.
6984 * java/lang/Number.java (byteValue, shortValue): New methods.
6986 * java/lang/String.java (intern, hashCode): Make native.
6987 * java/lang/natString.cc: New file. Handle the string pool.
6988 * Makefile.am: Build natString.o. Use CXXFLAGS.
6990 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
6991 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
6992 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
6993 * java/lang/System.java (setProperty): New private method.
6994 (initProperties): Take argument, and make native.
6995 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
6996 (currentTimeMillis): Make more robust.
6998 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
6999 * java/io/UnsupportedEncodingException.java: New exception class.
7001 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7002 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7004 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7006 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7007 * prims.cc: Added bunch of stuff.
7008 * include/cni.h: Added various definitions.
7009 * include/java-lang.h: Added Method, various friends, some macros.
7011 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7012 * java/lang/System.java (arraycopy): Make native.
7014 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7016 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7017 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7018 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7019 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7021 * java/lang/Runtime.java: Declare methods as native instead of
7023 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7024 * java/lang/System.java: Comment out some stuff, for now.
7025 * java/lang/Thread.java: Re-write. Use native methods.
7026 * java/lang/NativeLang.java: Remove most of it.
7028 * java/util/natDate.cc: Native (C++) methods for Date.
7029 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7030 * java/util/Date.java: Complete re-write.
7032 * java/io/io-defs.h: New header file.
7033 * java/io/FileDescriptor.java: Add a bunch of private methods,
7034 mostly moved from NativeIO.java and natNativeIO.cc.
7035 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7036 * java/io/File.java: Use new code.
7037 * java/io/{FileInputStream.java.FileOutputStream.java,
7038 RandomAccessFile.java}: Use new private FileDescriptor methods.
7039 * java/io/NativeIO.java: Removed, no longer used.
7041 * java/io/StreamTokenizer.java (numericChars): Make char array.
7043 * include/*.h: Various header files used by the C++ native code.
7045 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7046 New autoconf+automake-based setup.
7047 * prims.cc: New file for Java "primitives".