1 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
3 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
4 null String constructor parameter.
5 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
6 for exception messages.
8 (setOption): Use BooleanClass instead of Class.forName() for
10 (bind): Cast 4th parameter of setsockopt to `char *' for
11 compatibility with older Solaris headers.
12 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
13 sprintf calls for exception messages.
14 BooleanClass, IntegerClass: declare.
15 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
18 1999-12-15 Tom Tromey <tromey@cygnus.com>
20 * java/lang/natSystem.cc (init_properties): Don't set user.name or
21 user.home if NO_GETUID defined. Only set user.dir if getcwd
24 * include/config.h.in: Rebuilt.
25 * acconfig.h (NO_GETUID): New define.
26 * configure.in: Rebuilt.
27 * configure.in: Define NO_GETUID in cross case. Check for getcwd
30 1999-12-08 Tom Tromey <tromey@cygnus.com>
32 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
33 where no recursive mutexes exist. Fixes PR libgcj/117.
35 1999-12-05 Anthony Green <green@cygnus.com>
37 * include/jvm.h: Declare many functions with
38 __attribute__((__malloc__)).
39 * gcj/javaprims.h: Ditto.
41 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
43 * THANKS: Giving credit where credit is due.
45 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
47 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
49 * java/lang/natString.cc (equalsIgnoreCase): return false if
50 anotherString is null.
51 * java/lang/Boolean.java (valueOf): return FALSE if argument is
54 1999-11-30 Tom Tromey <tromey@cygnus.com>
56 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
57 mutex to initialize. Initialize `count' if required.
60 1999-11-27 Per Bothner <per@bothner.com>
62 * exception.cc: Remove prototype declarations for malloc and free.
63 These clash with recent versions of glibc, which specifies `throws ()'
64 when __cplusplus is defined. Instead, #include <stdlib.h>.
66 1999-11-24 Tom Tromey <tromey@cygnus.com>
68 * prims.cc (_Jv_NewObjectArray): Use
69 _Jv_GetArrayElementFromElementType.
70 (_Jv_NewPrimArray): Likewise.
71 * java/lang/natObject.cc (clone): Use
72 _Jv_GetArrayElementFromElementType instead of sizeof.
73 * java/lang/natSystem.cc (arraycopy): Use
74 _Jv_GetArrayElementFromElementType.
75 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
78 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
80 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
81 Exception messages. PR java.net/57.
82 (bind): set SO_REUSEADDR before bind.
83 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
84 overruns. PR java.net/57.
86 1999-11-19 Tom Tromey <tromey@cygnus.com>
88 * Makefile.am (DIVIDESPEC): Removed.
89 (EXCEPTIONSPEC): Removed.
91 1999-11-19 Andrew Haley <aph@cygnus.com>
93 * Makefile.am (JCFLAGS): Add -L$(here)
95 * Makefile.in: Rebuild.
97 1999-11-18 Tom Tromey <tromey@cygnus.com>
99 * java/lang/natDouble.cc: Include <config.h>.
101 * include/config.h.in: Rebuilt.
102 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
103 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
105 * configure: Rebuilt.
106 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
107 requested by configure.host. Don't put `-D' option into
108 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
110 * configure: Rebuilt.
111 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
114 1999-11-18 Andrew Haley <aph@cygnus.com>
116 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
117 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
119 * Makefile.in: Rebuild
120 * acconfig.h: remove SJLJ_EXCEPTIONS
121 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
122 Do not AC_DEFINE SJLJ_EXCEPTIONS.
123 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
124 * gcj/Makefile.in, include/Makefile.in: rebuild.
125 * include/config.h.in: remove SJLJ_EXCEPTIONS.
127 1999-11-18 Andrew Haley <aph@cygnus.com>
129 * gij.cc (main): Rename label to prevent conflict.
131 * exception.cc (_Jv_type_matcher): Don't check the table if we're
132 using setjmp/longjmp exceptions: there isn't one.
134 1999-11-17 Andrew Haley <aph@cygnus.com>
136 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
137 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
138 (__sjthrow): Add declaration.
139 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
143 * Makefile.in: Rebuild
144 * acconfig.h: Add SJLJ_EXCEPTIONS
145 * configure.in: Add SJLJ_EXCEPTIONS
146 * configure: Rebuild.
147 * gcj/Makefile.in: Rebuild.
148 * gcj/cni.h: Add support for sjlj-exceptions.
149 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
150 * include/Makefile.in: Rebuild.
151 * include/default-signal.h: Add support for sjlj-exceptions.
153 1999-11-18 Tom Tromey <tromey@cygnus.com>
155 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
157 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
159 (method_cache): Made larger.
161 1999-11-11 Tom Tromey <tromey@cygnus.com>
163 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
164 initializing mutex. Initialize `count' when required.
166 1999-11-07 Anthony Green <green@trip.cygnus.com>
168 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
171 1999-11-05 Tom Tromey <tromey@cygnus.com>
173 * java/lang/natThread.cc (destroy): Removed incorrect comment.
175 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
177 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
178 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
181 1999-11-05 Tom Tromey <tromey@cygnus.com>
183 * java/lang/natThread.cc (stop): Removed argument name.
185 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
186 `private'; now has default access.
187 * Makefile.in: Rebuilt.
188 * Makefile.am (java/lang/ThreadGroup.h): Removed.
190 1999-11-04 Tom Tromey <tromey@cygnus.com>
192 * java/lang/natClass.cc (method_cache_count): Removed.
193 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
194 (_Jv_AddMethodToCache): Don't loop.
196 * configure.in: Removed `qt' threads case.
197 * include/quick-threads.h: Removed.
198 * quick-threads.cc: Removed.
200 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
201 (_Jv_ThreadDestroy): Likewise.
202 * include/no-threads.h (_Jv_ThreadCancel): Removed.
203 (_Jv_ThreadDestroy): Likewise.
204 * include/posix-threads.h (struct _Jv_Thread_t): Removed
206 (_Jv_ThreadCancel): Removed decl.
207 (_Jv_ThreadDestroy): Removed.
208 * posix-threads.cc (_Jv_ThreadCancel): Removed.
209 (throw_cleanup): Removed.
210 (really_start): Don't push or pop cleanup.
211 (_Jv_ThreadInitData): Don't initialize `exception' field.
212 * java/lang/Thread.java (stop): Officially unimplemented.
213 * java/lang/natThread.cc (stop): Officially unimplemented.
215 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
217 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
220 1999-11-02 Tom Tromey <tromey@cygnus.com>
222 * boehm.cc: Don't include boehm-config.h.
224 1999-11-01 Tom Tromey <tromey@cygnus.com>
226 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
227 (sum_blocks): Removed.
228 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
230 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
232 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
234 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
235 * java/io/InputStreamReader (InputStreamReader): ditto.
237 1999-10-22 Tom Tromey <tromey@cygnus.com>
239 * Makefile.in: Rebuilt.
240 * Makefile.am (java/lang/ClassLoader.h): New target.
241 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
244 * include/java-props.h (_Jv_Compiler_Properties): Changed
246 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
247 * include/jvm.h (_Jv_GCSetInitialHeapSize,
248 _Jv_GCSetMaximumHeapSize): Declare.
249 (JvRunMain, _Jv_RunMain): Declare.
250 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
251 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
252 (_Jv_GCSetMaximumHeapSize): Likewise.
253 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
254 (_Jv_GCSetMaximumHeapSize): Likewise.
255 * prims.cc (parse_heap_size): New function.
256 (_Jv_SetInitialHeapSize): Likewise.
257 (_Jv_SetMaximumHeapSize): Likewise.
258 (_Jv_Compiler_Properties): New global.
259 * gij.cc (help): New function.
261 (heap_size): Likewise.
262 (heap_max_size): Likewise.
263 (main): Parse arguments. Set _Jv_Compiler_Properties.
264 Include <config.h>, <java-props.h>.
265 (_Jv_Compiler_Properties): Removed.
267 1999-10-18 Tom Tromey <tromey@cygnus.com>
269 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
271 (redirect): New static field.
272 * java/lang/ClassLoader.java (getSystemClassLoader): Now
274 (getVMClassLoader0): Removed.
275 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
277 (getSystemClassLoader): Implemented.
279 1999-10-16 Anthony Green <green@cygnus.com>
281 * java/lang/ClassLoader.java (getSystemResource): Use
282 getSystemClassLoader instead of ClassLoader.system.
283 (getSystemResourceAsStream): Ditto.
285 * java/lang/natClassLoader.cc (redirect): Make static and
286 remove #ifdef INTERPRETER so it is always defined.
287 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
288 returns a VMClassLoader.
290 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
291 PropertyResourceBundle if a properties file is found before a
292 ResourceBundle class.
294 1999-10-15 Tom Tromey <tromey@cygnus.com>
296 * gij.cc (main): Formatting fixes.
297 (_Jv_Compiler_Properties): Define.
298 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
300 (init_properties): Set properites from _Jv_Compiler_Properties.
301 * include/java-props.h (_Jv_Compiler_Properties,
302 _Jv_Environment_Properties): Declare.
304 * include/java-props.h: Added copyright.
306 1999-10-13 Anthony Green <green@cygnus.com>
308 * libtool-version: Catch up by incrementing current.
310 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
311 * configure, include/config.h.in: Rebuilt.
312 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
313 * configure.in: Added --disable-getenv-properties and new define
314 `DISABLE_GETENV_PROPERTIES'.
316 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
317 (next_property_key): New function.
318 (next_property_value): New function.
319 (process_gcj_properties): New function.
320 (JvRunMain): Call process_gcj_properties.
323 * java/lang/natSystem.cc (init_properties): Set properties defined
326 * include/java-props.h: New file.
328 * java/lang/natSystem.cc (init_properties): Add new properties to
329 conform with Java Product Versioning Specification.
331 1999-10-12 Tom Tromey <tromey@cygnus.com>
333 * configure: Rebuilt.
334 * configure.in: Fixed test for --disable-java-net.
336 1999-10-06 Tom Tromey <tromey@cygnus.com>
338 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
339 when building Canadian cross.
340 (NATIVE): Don't define when cross-compiling.
342 1999-10-04 Tom Tromey <tromey@cygnus.com>
344 * java/net/natPlainSocketImpl.cc: Don't include headers if
345 java.net is disabled.
347 * Makefile.in: Rebuilt.
348 * Makefile.am (ZINCS): Removed. This is defined in configure.in
349 when needed, and must be left empty when not needed.
351 1999-10-01 Anthony Green <green@cygnus.com>
353 * THANKS: Refreshed from htdocs version.
355 1999-10-01 Steve Chamberlain <sac@pobox.com>
357 * Makefile.in: Rebuilt.
358 * Makefile.am (ZINCS): Define
360 * configure: Rebuilt.
361 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
363 * java/lang/ieeefp.h: Add definitions for picoJava.
365 1999-10-01 Tom Tromey <tromey@cygnus.com>
367 * configure: Rebuilt.
368 * configure.in: Set classpath when invoking gcj. Use changequote
369 around sed invocation.
371 * java/net/natPlainSocketImpl.cc: Stub native functions if
372 DISABLE_JAVA_NET is defined.
373 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
374 typo in exception string.
375 (getTimeToLive): Likewise.
376 Stub native functions if DISABLE_JAVA_NET is defined.
377 * java/net/natInetAddress.cc: Stub native functions if
378 DISABLE_JAVA_NET is defined.
379 * configure.host: Disable java.net for mips-tx39.
380 * configure, include/config.h.in: Rebuilt.
381 * acconfig.h (DISABLE_JAVA_NET): Undefine.
382 * configure.in: Added --disable-java-net and new define
385 1999-09-30 Tom Tromey <tromey@cygnus.com>
387 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
389 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
393 1999-09-28 Tom Tromey <tromey@cygnus.com>
395 * configure: Rebuilt.
396 * configure.in (PROCESS): In POSIX case, only set if not already
398 * configure.host (PROCESS): Set in mips-tx39 case.
400 * aclocal.m4, configure: Rebuilt.
401 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
402 appropriate AC_PROG_ symbol.
404 1999-09-24 Tom Tromey <tromey@cygnus.com>
406 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
408 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
410 Fix for PR java.util/47:
411 * configure, include/config.h: Rebuilt.
412 * configure.in: Don't look for ctime or ctime_r.
413 * Makefile.in: Rebuilt.
414 * Makefile.am (nat_source_files): Don't mention natDate.cc.
415 * java/util/natDate.cc: Removed.
416 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
418 (getAvailableIDs): Rewrote.
419 (getTimeZone): Rewrote.
420 * java/util/Date.java (toGMTString): New method.
421 (toLocaleString): New method.
424 1999-09-23 Tom Tromey <tromey@cygnus.com>
426 * configure: Rebuilt.
427 * configure.in: Print message when checking to see if gcj can
428 handle -fuse-divide-subroutine.
430 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
432 * java/lang/FirstThread.java (run0): Renamed to `run'.
435 * prims.cc (main_init): New function.
436 (JvRunMain): Call it.
437 (_Jv_RunMain): Likewise.
439 (main_init): Ignore SIGPIPE. Fixes PR 51.
441 1999-09-22 Tom Tromey <tromey@cygnus.com>
443 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
445 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
447 * java/text/MessageFormat.java (MessageFormat(String)): Set the
449 * java/text/NumberFormat.java: Check that object is a Number. If
450 not, throw IllegialArgumentException.
452 1999-09-21 Tom Tromey <tromey@cygnus.com>
454 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
455 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
457 * include/posix-threads.h (_Jv_MutexDestroy): Use
459 (_Jv_MutexLock): Likewise.
460 (_Jv_MutexUnlock): Likewise.
462 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
463 previous patch; it too was incorrect.
464 * java/io/PrintStream.java (PrintStream): Likewise.
466 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
467 refer to `this' before calling superclass constructor.
468 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
469 before calling superclass constructor.
471 1999-09-20 Tom Tromey <tromey@cygnus.com>
473 * configure: Rebuilt.
474 * configure.in: Send output of `-fuse-divide-subroutine' test
475 compilation to /dev/null.
477 1999-09-14 Tom Tromey <tromey@cygnus.com>
479 * include/java-insns.h: Turned constants into an enum. Added
480 multiple-inclusion protection.
482 1999-09-10 Tom Tromey <tromey@cygnus.com>
484 * configure: Rebuilt.
485 * configure.in: Build include/Makefile.
486 * Makefile.in: Rebuilt.
487 * Makefile.am (SUBDIRS): Added gcj and include.
488 (install-data-local): New target.
489 (extra_headers): New macro.
490 * include/Makefile.in: New file.
491 * include/Makefile.am: New file.
493 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
494 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
496 * boehm.cc: Don't include java-threads.h or gcj/field.h.
497 * resolve.cc: Include config.h.
498 * defineclass.cc: Include config.h.
499 * include/java-interp.h: Don't include config.h.
500 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
503 * gcj/javaprims.h: Regenerated namespace decls.
504 * classes.pl (scan): Don't put `;' after closing brace.
506 * Makefile.in: Rebuilt.
507 * Makefile.am (INCLUDES): Added -I for top_srcdir.
508 * configure.in: Create gcj/Makefile.
509 * gcj/Makefile.in: New file.
510 * gcj/Makefile.am: New file.
511 * java/lang/Object.h: Don't include any other headers.
512 * gcj/array.h: Renamed from include/java-array.h.
513 * gcj/field.h: Renamed from include/java-field.h.
514 * gcj/method.h: Renamed from include/java-method.h.
515 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
516 Updated all files to reflect new include structure.
518 1999-09-09 Tom Tromey <tromey@cygnus.com>
520 * configure: Rebuilt.
521 * configure.in: Fixed typo; variable is THREADSPEC and not
524 1999-09-08 Tom Tromey <tromey@cygnus.com>
526 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
527 previous change and implemented a correct test in the __m_count
530 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
533 1999-09-07 Tom Tromey <tromey@cygnus.com>
535 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
536 code and don't set errno.
538 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
539 not `r'. Changed `done_sleeping' to a `bool'.
541 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
543 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
544 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
545 by another thread, rather than by the GC.
546 (_Jv_CondWait): Prevent premature thread wakeup by GC.
547 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
548 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
551 1999-09-03 Tom Tromey <tromey@cygnus.com>
553 * configure: Rebuilt.
554 * configure.in: Check for fstat function.
555 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
558 1999-09-02 Tom Tromey <tromey@cygnus.com>
560 * include/java-array.h (jobjectArrayjchar): Removed unused
563 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
564 _Jv_PrepareCompiledClass while holding class mutex.
566 1999-09-01 Tom Tromey <tromey@cygnus.com>
568 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
569 (_Jv_PthreadGetMutex): Use it.
570 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
571 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
572 (_Jv_MutexLock): Likewise.
573 (_Jv_MutexUnlock): Likewise.
574 * include/config.h.in: Rebuilt.
575 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
576 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
577 * configure: Rebuilt.
578 * libgcj.spec.in: Don't mention INTERPSPEC.
579 * configure.in (INTERPSPEC): Removed.
580 Only run pthreads-related checks when using POSIX threads. Check
581 for m_count and __m_count in mutex structure.
583 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
585 * java/lang/natClass.cc: Fixed notification of threads
586 when class initialization is complete.
588 1999-09-01 Tom Tromey <tromey@cygnus.com>
590 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
591 * resolve.cc: Removed constants defined by
592 java.lang.reflect.Modifier.
593 Include <java/lang/reflect/Modifier.h>.
594 (_Jv_ResolvePoolEntry): Use values from Modifier.
595 (_Jv_DetermineVTableIndex): Likewise.
596 (_Jv_PrepareClass): Likewise.
598 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
599 java.lang.reflect.Modifier.
600 Include <java/lang/reflect/Modifier.h>.
601 (checkExtends): Use values from Modifier.
602 (checkImplements): Likewise.
603 (handleField): Likewise.
604 (handleConstantValueAttribute): Likewise.
605 (handleFieldsEnd): Likewise.
606 (handleMethod ): Likewise.
607 (handleMethodsEnd): Likewise.
608 (handleClassBegin): Likewise.
609 * interpret.cc: Removed constants defined by
610 java.lang.reflect.Modifier.
611 (continue1): Use values from Modifier.
612 * java/lang/natClassLoader.cc: Removed constants defined by
613 java.lang.reflect.Modifier.
615 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
616 JV_STATE_NOTHING, not `0'.
617 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
619 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
620 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
622 (_Jv_PthreadGetMutex): New function.
623 (_Jv_PthreadCheckMonitor): Use it.
624 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
625 (_Jv_MutexLock): Update `count'.
626 (_Jv_MutexUnlock): Likewise.
627 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
630 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
632 * Makefile.am (.java.lo): Add rule.
634 * Makefile.in: Rebuilt.
636 1999-09-01 Tom Tromey <tromey@cygnus.com>
638 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
639 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
641 (_Jv_CondNotify): Use it.
642 (_Jv_CondNotifyAll): Likewise.
644 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
646 1999-08-31 Tom Tromey <tromey@cygnus.com>
648 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
651 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
653 * posix-threads.cc: Include <errno.h>.
655 1999-08-23 Tom Tromey <tromey@cygnus.com>
657 * boehm.cc: Undefine TRUE and FALSE.
659 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
661 1999-08-21 Tom Tromey <tromey@cygnus.com>
663 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
666 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
668 * configure.in: Check for in_addr_t in netinet/in.h too. Check
670 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
671 (HAVE_STRUCT_IP_MREQ): Added.
672 * configure, include/config.h.in: Rebuilt.
673 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
675 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
676 Disable if ip_mreq is not available.
678 * configure.in: Check types ssize_t and in_addr_t.
679 * acconfig.h: Undefine them.
680 * configure, include/config.h.in: Rebuilt.
682 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
683 function that detects the signature of getpwuid_r.
684 (init_properties): Use it.
685 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
688 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
690 * interpret.cc (continue1): Implement explicit dispatch table.
691 insn_target: Explicit interpreter switch table.
692 SAVE_PC: New macro, moves pc saving code into instructions that
694 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
695 PC_REGISTER_ASM: New macro.
696 INLINE_SWITCH: New macro. Constrols dispatching strategy.
697 opcode: Remove local variable.
698 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
699 (POKEI): Use _Jv_word.
700 (iinc): Use _Jv_word.
701 (dupx): Change reference argument (sp) to pointer.
704 * interpret.cc: Remove instruction timing instrumentation.
706 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
707 comment. Don't use _Jv_ClassNameSamePackage.
709 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
710 URLPathEntry, CacheEntry}: Removed.
712 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
714 (.java.lo): Rule removed.
716 * Makefile.in: Rebuilt.
718 1999-08-19 Tom Tromey <tromey@cygnus.com>
720 * java/lang/natThread.cc (class locker): New class.
721 (join): Use a locker around _Jv_CondWait.
724 1999-08-18 Tom Tromey <tromey@cygnus.com>
726 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
727 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
729 1999-08-18 Tom Tromey <tromey@cygnus.com>
731 * include/javaprims.h ("Java"): Regenerated namespace decls.
733 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
735 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
736 from _Jv_InternClassStrings.
738 * prims.cc (_Jv_RunMain): New function.
739 (JvRunMain): Remove gij-support.
741 * gij.cc (main): Use _Jv_RunMain.
743 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
745 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
746 argument in temp variable.
747 (continue1): For all op_x2y insns, use temp variable for
748 intermediate value. Also remove some comments.
750 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
751 (forName): Don't call _Jv_InitClass.
753 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
755 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
757 * java/util/jar/JarInputStream.java: New file.
759 * java/util/jar/JarEntry.java: New file.
761 * java/util/jar/JarFile.java: New file.
763 * java/net/URLClassLoader.java: New file.
765 * java/net/JarURLConnection.java: New file.
767 * gnu/gcj/protocol/jar/Handler.java: New file.
769 * gnu/gcj/protocol/jar/Connection.java: New file.
771 * java/security/SecureClassLoader.java: New file.
773 * java/lang/ClassLoader.java (parent): New variable.
774 (ClassLoader (ClassLoader)): new constructor.
775 (findClass): New method.
776 (loadClass): Add default 1.2 implementation.
777 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
778 (readfully): Removed.
780 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
781 (findSystemClass): New method.
782 (VMClassLoader): Constructor rewritten.
784 All other methods removed.
786 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
787 to gnu::gcj::runtime::VMClassLoader.
788 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
790 (VMClassLoader::findSystemClass): renamed from findBootClass.
792 * Makefile.am: Add new files.
793 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
795 * Makefile.in: Rebuilt.
797 1999-08-17 Tom Tromey <tromey@cygnus.com>
799 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
801 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
804 1999-08-16 Tom Tromey <tromey@cygnus.com>
806 * configure: Rebuilt.
807 * configure.in: Set DIVIDESPEC to empty string if compiler does
808 not support -fuse-divide-subroutine.
810 1999-08-14 Per Bothner <per@bothner.com>
812 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
813 * java/lang/natClass.cc (initializeClass): Likewise.
814 * java/lang/ClassLoader.java (resolveClass0): New static method.
815 (resolveClass): Call resolveClass0.
816 (findSystemClass): No longer static.
818 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
820 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
822 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
824 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
827 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
830 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
833 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
836 * configure: Rebuilt.
837 * configure.in: Properly align --help output, fix capitalization
839 * acinclude.m4: Likewise.
841 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
843 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
845 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
846 (_Jv_callInterpretedMethod): Unused. Remove.
847 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
849 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
850 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
851 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
852 * interpret.cc: use _Jv_word.
853 * defineclass.cc: use_Jv_word.
854 * resolve.cc: Use _Jv_word.
855 (_Jv_ResolvePoolEntry): Return _Jv_word.
856 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
857 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
859 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
862 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
864 * configure: Rebuilt.
865 * configure.in (sched_yield): Try librt first, then libposix4.
866 Add -lrt, -lposix4 to THREADSPEC.
868 1999-08-08 Anthony Green <green@cygnus.com>
870 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
872 1999-08-08 Anthony Green <green@cygnus.com>
874 * defineclass.cc (_Jv_VerifyClassName): Verify array names
877 1999-08-08 Anthony Green <green@cygnus.com>
881 * include/config.h.in: Rebuilt.
882 * acconfig.h: Add INTERPRETER.
884 * Makefile.in: Rebuilt.
885 * Makefile.am (libffi_files): Identify the libffi object files for
887 (LIBFFIINCS): Define.
889 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
890 Dummy definition for configurations without an interpreter.
892 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
893 java::lang::Boolean constructor.
895 * include/java-interp.h: Always include java-cpool.h.
897 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
898 when INTERPRETER not defined.
900 * java/lang/Class.h (finalize): Define.
902 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
903 IOException from File.getCanonicalPath.
904 (getStream): Likewise.
907 * THANKS: More thanks.
909 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
911 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
913 (_Jv_PrepareClass): Allow non-abstract classes to
914 have abstract subclasses.
915 (_Jv_ResolvePoolEntry): Revert subclass check for protected
917 * interpret.cc (continue1/perform_invoke): Don't sign extend
919 (continue1/lshl,lshr): Push long, not int.
920 (continue1/ulshr): Use UINT64, not long long.
921 * defineclass.cc (handleFieldsEnd): Handle case when all fields
923 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
924 * java/lang/FirstThread.java (run): Add top-level exception
926 (run0): Renamed from run.
928 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
930 * configure.in (--with-interpreter): Added.
931 * include/config.h.in (INTERPRETER): Added.
933 * java/lang/ClassLoader.java: File replaced.
934 * java/lang/VMClassLoader.java: New file.
935 * java/lang/natClassLoader.cc: New file.
936 * gnu/gcj/runtime/MethodInvocation.java: New file.
937 * gnu/gcj/util/path/SearchPath.java: New file.
938 * gnu/gcj/util/path/PathEntry.java: New file.
939 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
940 * gnu/gcj/util/path/ZipPathEntry.java: New file.
941 * gnu/gcj/util/path/URLPathEntry.java: New file.
942 * gnu/gcj/util/path/CacheEntry.java: New file.
943 * include/java-interp.h: New file.
944 * include/java-cpool.h: New file.
945 * include/java-insns.h: New file.
946 * defineclass.cc: New file.
947 * interpret.cc: New file.
948 * resolve.cc: New file.
950 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
951 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
952 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
954 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
955 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
957 (initializeClass): Use new JV_ prefixed names. Also, call
958 ClassLoader::resolveClass instead of _Jv_ResolveClass.
960 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
961 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
962 JV_STATE_LINKED): New.
963 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
964 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
965 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
966 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
967 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
968 _Jv_InterpMethodInvocation): New friends for interpreter.
970 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
971 include/java-cpool.h and renamed with JV_ prefix.
973 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
975 (_Jv_UnregisterClass): New decl.
977 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
978 class loader argument.
979 (_Jv_FindClass): Use class loader.
981 * prims.cc (_Jv_makeUtf8Const): New function.
982 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
983 (_Jv_NewPrimArray): Ditto.
984 (_Jv_FindClassFromSignature): Ditto.
985 * java/lang/reflect/natArray.cc (newInstance): Ditto.
986 * java/lang/reflect/natMethod.cc (getType): Ditto.
988 * include/java-field.h (_Jv_Field::isRef): Make robust for
989 non-resolved contexts.
991 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
992 Also, don't mark class->next field.
994 * java/lang/VirtualMachineError.java: Added FIXME note.
996 * configure.in (INTERPSPEC): New spec.
997 * libgcj.spec.in: Added INTERPSPEC.
998 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
999 gnu/gcj/runtime/MethodInvocation.
1000 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1001 (ordinary_java_source_files): Added above mentioned java classes.
1003 * configure: Rebuilt.
1004 * Makefile.in: Rebuilt.
1006 1999-08-06 Tom Tromey <tromey@cygnus.com>
1008 * configure: Rebuilt.
1009 * configure.in: Look for sched_yield in -lrt.
1011 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1013 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1014 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1015 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1017 (toString): Print correctly when `country' is empty.
1019 1999-08-04 Per Bothner <per@bothner.com>
1021 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1023 1999-08-02 Tom Tromey <tromey@cygnus.com>
1025 * aclocal.m4, configure: Rebuilt for new libtool.
1027 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1029 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1030 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1031 * java/net/ServerSocket.java: Define ANY_IF.
1032 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1033 all network interfaces.
1034 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1035 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1037 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1039 * java/io/natFile.cc (performMkdir): Remove FIXME.
1040 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1042 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1044 * configure.in: Check for bstring.h.
1045 * configure, include/config.h.in: Rebuilt.
1046 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1047 * java/net/natPlainSocketImpl.cc: Likewise.
1049 1999-07-31 Tom Tromey <tromey@cygnus.com>
1054 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1056 * configure.in: Check for struct hostent_data and need for
1057 -D_REENTRANT for gethostbyname_r declaration.
1058 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1059 (lookup): Use hostent_data for fixed_buffer.
1060 * configure, include/config.h.in: Rebuilt.
1062 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1064 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1065 available. Don't cast memmove args to (void*).
1066 * configure.in: Do not abort if memmove is not available.
1068 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1070 * java/lang/natString.cc (substring): optimize where substring is
1072 * java/io/File.java (getName): don't return separator with file name.
1073 * java/io/natFile.cc (attr): fix overflow.
1075 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1077 * mauve-libgcj: Disable Object Serialization tests.
1079 1999-07-20 Warren Levy <warrenl@cygnus.com>
1081 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1082 Default to using PlainDatagramSocketImpl.
1083 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1085 1999-07-19 Tom Tromey <tromey@cygnus.com>
1087 * include/stamp-h.in: New file.
1089 1999-07-12 Tom Tromey <tromey@cygnus.com>
1091 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1094 1999-07-07 Andrew Haley <aph@cygnus.com>
1096 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1097 bytes to make it point after the instruction where the trap
1099 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1101 1999-07-07 Tom Tromey <tromey@cygnus.com>
1103 * mauve-libgcj: Explicitly enable formerly disabled java.text
1106 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1109 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1111 * java/net/URL.java (equals): Compare strings using String.equals.
1112 * java/net/URL.java (sameFile): Ditto.
1114 1999-07-02 Warren Levy <warrenl@cygnus.com>
1116 * configure: Rebuilt.
1117 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1118 * include/config.h.in: Rebuilt.
1119 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1120 (mcastGrp): Updated FIXME comments.
1121 (setOption): Fixed typo.
1122 (getOption):Implemented IP_MULTICAST_IF.
1124 1999-07-02 Warren Levy <warrenl@cygnus.com>
1126 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1127 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1128 (getTimeToLive): Implemented.
1129 (setOption): Implemented IP_MULTICAST_IF.
1131 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1133 * java/lang/String.java (toString): Check for this == null and throw
1134 NullPointerException.
1136 1999-07-01 Warren Levy <warrenl@cygnus.com>
1138 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1139 to count and revised comments to match.
1140 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1141 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1142 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1143 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1144 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1145 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1147 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1149 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1150 properly as count rather than outlength.
1151 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1152 output on overflow rather than buffer fill.
1153 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1154 if markPos is 0 and there is still room in the buffer.
1156 1999-07-01 Andrew Haley <aph@cygnus.com>
1158 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1159 This is a workaround for a bug in glibc's pthreads package which
1160 doesn't deliver any sigcontext information to a signal handler.
1162 1999-06-24 Tom Tromey <tromey@cygnus.com>
1164 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1165 * java/lang/fdlibm.h (HUGE): Conditionally define.
1167 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1169 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1170 * java/lang/e_log.c: Don't use __uint32_t.
1172 1999-05-27 Eric Christopher <echristo@cygnus.com>
1174 * configure: Rebuilt
1175 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1176 * acconfig.h: Rebuilt
1177 * include/config.h.in: Rebuilt
1179 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1180 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1181 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1182 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1183 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1184 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1185 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1186 and namespace collision with __uint32_t
1188 1999-06-23 Tom Tromey <tromey@cygnus.com>
1190 * java/util/zip/InflaterInputStream.java (read): Throw
1191 ZipException if inflater throws a DataFormatException.
1193 1999-06-23 Warren Levy <warrenl@cygnus.com>
1195 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1196 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1197 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1198 is not final per JDK.
1199 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1201 * java/util/zip/DataFormatException.java: Class extends Exception.
1202 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1203 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1204 * java/util/zip/ZipInputStream.java: ditto.
1205 (closeEntry): Changed method name to match JDK spec.
1207 1999-06-21 Tom Tromey <tromey@cygnus.com>
1209 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1212 * Makefile.in: Rebuilt.
1213 * Makefile.am (toolexeclibdir): Define as libdir when
1215 * configure: Rebuilt.
1216 * configure.in (USE_LIBDIR): New conditional.
1218 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1220 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1221 hostname in returned InetAddress objects.
1222 (getLocalHostname): Fix typo.
1223 * java/net/InetAddress.java (getByName): Set hostname on return
1225 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1228 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1230 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1231 interfaces if host==NULL.
1232 (accept): Throw message with InterruptedIOException.
1233 (getOption): Cache localAddress.
1234 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1235 'address' for DatagramSocket.
1236 (setTimeToLive): Fix compiler warnings.
1237 (getOption): Cache localAddress.
1238 * java/net/Socket.java (getLocalAddress): Don't need local
1239 InetAddress object. Add FIXME comment about calling checkConnect().
1240 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1241 connection queue to 50 as per JDK 1.2 docs.
1242 (ServerSocket(int,int)): Listen on all network interfaces by
1243 default, per JDK 1.2 docs.
1244 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1245 Add localAddress caching.
1247 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1249 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1251 (write(byte[],int,int)): ditto.
1253 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1255 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1257 1999-06-11 Warren Levy <warrenl@cygnus.com>
1259 * mauve-libgcj: Activated java.net Mauve tests.
1261 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1263 * java/net/natInetAddress.cc (aton): Fix typos.
1264 (lookup): Use a bigger buffer size for gethostbyname_r on all
1265 versions of glibc. Updated FIXME comment explaining this.
1266 Modified while loops to not set herr = ERANGE to work around glibc
1267 problems. Use user specified hostname in InetAddress result when
1268 available (consistent with JDK).
1270 1999-06-10 Warren Levy <warrenl@cygnus.com>
1272 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1273 Throw FileNotFoundException instead of IOException.
1275 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1277 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1278 in static field name.
1279 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1280 throughout rather than ParseException.
1282 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1284 * java/lang/Runtime.java (exec): Convert prog name and arguments
1286 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1287 environment array conversion. Preserve current environment if envp
1288 not passed. Preserve PATH unless explicitly specified.
1289 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1290 followed by EOF. Set a flag when a line is terminated by '\r' and
1291 ignore following '\n' if set.
1293 1999-06-02 Warren Levy <warrenl@cygnus.com>
1295 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1296 Ignore context if spec is an absolute URL. Fix braindead
1298 (hashCode): Use JDK 1.2 style algorithm.
1299 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1300 context URL properly.
1302 1999-05-30 Anthony Green <green@cygnus.com>
1304 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1305 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1307 1999-05-28 Warren Levy <warrenl@cygnus.com>
1309 * java/net/DatagramSocket.java (laddr): Removed.
1310 (DatagramSocket): Removed attempts to get or set laddr if null.
1311 (getLocalAddress): Reimplemented per spec.
1312 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1314 (joinGroup): Throw NullPointerException if any argument is null.
1315 (leaveGroup): ditto.
1316 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1317 * java/net/PlainSocketImpl.java (timeout): Added.
1318 (getInputStream): Added FIXME comment on how to support timeouts
1320 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1321 * java/net/Socket.java: Added FIXME comments to identify
1322 conflicting specs between the JCL and JDK 1.2 documents.
1323 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1324 if host is null. Get localport value resolved by kernel if bind
1326 (receive): Implemented support for timeouts in UDP.
1327 (setOption): Implemented based on natPlainSocketImpl version.
1329 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1330 resolved by kernel if bind lport is 0.
1331 (connect): Get localport value resolved by kernel if bind wasn't
1332 done to set localport.
1333 (accept): Implemented support for timeouts for ServerSocket.
1334 (setOption): Save value for SO_TIMEOUT.
1335 (getOption): Return timeout for SO_TIMEOUT.
1337 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1339 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1340 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1341 (setOption): Made abstract.
1342 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1343 to avoid cpp conflicts in native code.
1344 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1345 cpp conflicts in native code.
1346 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1347 * java/net/Socket.java (getLocalAddress): Implemented.
1348 (setTcpNoDelay): Implemented.
1349 (getTcpNoDelay): Implemented.
1350 (setSoLinger): Implemented.
1351 (getSoLinger): Implemented.
1352 (getSoTimeout): Verify class type.
1353 (setSendBufferSize): Implemented.
1354 (getSendBufferSize): Implemented.
1355 (setReceiveBufferSize): Implemented.
1356 (getReceiveBufferSize): Implemented.
1357 (toString): Prepended "Socket".
1358 * java/net/SocketImpl.java (toString): Rewritten.
1359 (getOption): Made abstract.
1360 (setOption): Made abstract.
1361 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1362 (setOption): Implemented.
1363 (getOption): Implemented.
1365 1999-05-26 Warren Levy <warrenl@cygnus.com>
1367 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1368 address when null. Set SO_REUSEADDR for multicasts.
1369 (getSoTimeout): Implemented.
1370 (setSoTimeout): Implemented.
1371 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1372 * java/net/MulticastSocket.java (getInterface): Implemented.
1373 (setInterface): Implemented.
1374 (setTimeToLive): Check for invalid ttl.
1375 (joinGroup): Verify multicast address and security.
1376 (leaveGroup): Verify multicast address and security.
1377 (send): Implemented.
1378 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1384 (getTTL): Implemented as non-native.
1388 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1389 (getSoTimeout): Implemented.
1390 (setSocketFactory): Made synchronized.
1391 * java/net/Socket.java (setSoTimeout): Implemented.
1392 (getSoTimeout): Implemented.
1393 (close): Made synchronized.
1394 (setSocketImplFactory): Made synchronized.
1395 * java/net/SocketImpl.java: Implement SocketOptions interface.
1396 * java/net/natInetAddress.cc: Corrected module name at top of file.
1397 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1398 (bind): Added FIXME.
1399 (peek): Implemented.
1405 (setOption): Implemented for SO_REUSEADDR.
1406 (getOption): Implemented for SO_REUSEADDR.
1408 1999-05-24 Tom Tromey <tromey@cygnus.com>
1410 * java/util/ResourceBundle.java (getBundle): Throw
1411 NullPointerException if baseName is null.
1413 1999-05-22 Tom Tromey <tromey@cygnus.com>
1415 * java/util/zip/ZipInputStream.java (fill): New method.
1416 (compressed_len): New instance variable.
1417 (getNextStream): Set it.
1418 (read): Reset inflater on EOF. Only read via `super' if entry is
1420 (skip): Only skip via `super' if entry is deflated.
1421 * java/util/zip/Deflater.java (last_input_count): Removed.
1422 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1424 (needsInput): Don't use last_input_count.
1425 (setInput): Don't set last_input_count.
1426 * java/util/zip/natInflater.cc (getRemaining): Return correct
1428 (inflate): Return 0 if input array is length 0.
1429 (setInput): Don't set last_input_count.
1430 * java/util/zip/Inflater.java (last_input_count): Removed.
1432 1999-05-21 Tom Tromey <tromey@cygnus.com>
1434 * Makefile.in: Rebuilt.
1435 * Makefile.am (INCLUDES): Added $(ZINCS).
1436 * configure: Rebuilt.
1437 * configure.in (ZINCS): New subst.
1439 1999-05-21 Andrew Haley <aph@cygnus.com>
1441 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1442 to signal options to allow the same exceptions to be rethrown
1445 1999-05-20 Andrew Haley <aph@cygnus.com>
1447 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1449 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1450 (INIT_FPE): Exception string made more informative.
1451 * include/sparc-signal.h (INIT_FPE): Exception string made more
1453 * testsuite/libjava.lang/Divide_1.java: New file.
1454 * testsuite/libjava.lang/Divide_1.out: New file.
1456 1999-05-19 Tom Tromey <tromey@cygnus.com>
1458 * aclocal.m4, configure: Rebuilt.
1459 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1461 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1464 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1466 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1468 (update): Fail in default case. Always initialize `strat'.
1470 * mauve-libgcj: Enable java.util.zip.
1472 1999-05-18 Warren Levy <warrenl@cygnus.com>
1474 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1475 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1476 PlainDatagramSocketImpl.java, and SocketOptions.java.
1477 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1478 * Makefile.in: Rebuilt.
1480 * java/net/DatagramPacket.java: New file.
1481 * java/net/DatagramSocket.java: New file.
1482 * java/net/DatagramSocketImpl.java: New file.
1483 * java/net/MulticastSocket.java: New file.
1484 * java/net/PlainDatagramSocketImpl.java: New file.
1485 * java/net/SocketOptions.java: New file.
1486 * java/net/natPlainDatagramSocketImpl.cc: New file.
1488 1999-05-18 Tom Tromey <tromey@cygnus.com>
1490 * java/util/zip/ZipOutputStream.java (level): Initial value is
1491 Deflater.DEFAULT_COMPRESSION.
1492 (close): New method.
1493 (closeEntry): Likewise.
1495 (put_version): Likewise.
1496 (write_entry): Likewise.
1497 (put2, put4): Now return `int'.
1498 (comment): Default to empty string.
1499 (bytes_written): New instance variable.
1501 * java/util/zip/ZipEntry.java (setComment): Limit length of
1503 (setCrc): Check CRC validity.
1504 (setExtra): Check argument validity.
1505 (setMethod): Likewise.
1506 (setSize): Likewise.
1507 (ZipEntry): Likewise.
1508 * include/javaprims.h: Updated namespace declarations.
1509 * Makefile.in: Rebuilt.
1510 * Makefile.am (ordinary_java_source_files): Mention new files.
1511 (nat_source_files): Likewise.
1512 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1515 (getInputStream): Handle compressed entries.
1516 * java/util/zip/GZIPOutputStream.java: New file.
1517 * java/util/zip/GZIPInputStream.java: New file.
1518 * java/util/zip/DataFormatException.java: New file.
1519 * java/util/zip/CheckedInputStream.java: New file.
1520 * java/util/zip/CheckedOutputStream.java: New file.
1521 * java/util/zip/InflaterInputStream.java: Implemented.
1522 * java/util/zip/natInflater.cc: New file.
1523 * java/util/zip/Deflater.java: Implemented.
1524 * java/util/zip/natDeflater.cc: New file.
1525 * java/util/zip/DeflaterOutputStream.java: Implemented.
1527 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1528 ZipException, not IOException.
1529 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1532 1999-05-17 Tom Tromey <tromey@cygnus.com>
1534 * java/lang/natSystem.cc (init_properties): URL now points to
1537 1999-05-12 Per Bothner <bothner@cygnus.com>
1539 * java/util/Calendar.java (set): First call computeFields if needed.
1540 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1542 1999-05-12 Tom Tromey <tromey@cygnus.com>
1544 * configure: Rebuilt.
1545 * configure.in: Look for -ldl when using the Boehm collector.
1546 Look for sched_yield in -lposix4.
1548 1999-05-12 Per Bothner <bothner@cygnus.com>
1550 * java/io/File.java (mkdirs): Handle a null parent directory.
1552 1999-05-12 Tom Tromey <tromey@cygnus.com>
1554 * include/javaprims.h: Updated namespace declarations.
1555 * classes.pl (scan): Uniquify class list.
1556 * Makefile.in, configure: Rebuilt.
1557 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1558 (built_java_source_files): New macro.
1559 (nat_headers): Added built_java_source_files.
1560 (javao_files): Likewise.
1561 (EXTRA_libgcj_la_SOURCES): Likewise.
1562 (libgcj.zip): Create built class files.
1563 ($(built_java_source_files:.java=.class)): New target.
1564 (jv_convert_LDADD): Added -L$(here)/.libs.
1565 * configure.in: Create links for ConcreteProcess.java and
1566 natConcreteProcess.cc.
1567 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1568 * java/lang/natEcosProcess.cc: New file.
1569 * java/lang/EcosProcess.java: New file.
1570 * java/lang/PosixProcess.java: New file.
1571 * java/lang/natPosixProcess.cc: New file.
1573 1999-05-12 Warren Levy <warrenl@cygnus.com>
1575 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1576 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1577 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1578 (connect): Throw ConnectException.
1580 1999-05-11 Tom Tromey <tromey@cygnus.com>
1582 * Makefile.in: Rebuilt.
1583 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1584 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1587 * Makefile.in: Rebuilt.
1588 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1589 and it causes problems with libtool.
1591 * Makefile.in, configure: Rebuilt.
1592 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1593 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1594 (jv_convert_DEPENDENCIES): Added ZDEPS.
1595 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1597 (THREADSPEC): Added `-L' to point to qthreads build directory.
1601 * configure, Makefile.in: Rebuilt.
1602 * Makefile.am (toolexeclib_DATA): New macro.
1603 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1604 Recognize --with-system-zlib.
1605 (GCSPEC): New subst.
1606 (THREADSPEC): New subst.
1607 (SYSTEMSPEC): New subst.
1608 (ZLIBSPEC): New subst.
1609 * libgcj.spec.in: New file.
1611 1999-05-10 Tom Tromey <tromey@cygnus.com>
1613 * java/io/InputStreamReader.java (read): If length is 0, return
1614 0. Reset `wpos' and `wcount' when buffer has been filled and
1617 * java/util/Properties.java (save): Removed `FIXME' comment.
1618 (load): Invalid characters in \u now treated as terminators.
1619 Make sure to append character resulting from `\' handling.
1620 Cast to `char' when appending to key or value.
1621 (skip_ws): Inverted test for whitespace.
1623 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1625 (readLine): Likewise.
1626 (readFully): Implemented.
1628 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1630 * java/awt/natToolkit.cc: Added copyright header.
1631 * java/util/zip/InflaterInputStream.java: Added copyright header.
1633 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1635 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1637 (getNextStream): Likewise.
1639 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1641 (getBundle): Don't explicitly throw null pointer exception.
1643 * gnu/gcj/RawData.java: Added copyright header.
1645 * include/jni.h (_Jv_va_list): Always define as va_list.
1647 1999-05-9 Anthony Green <green@cygnus.com>
1649 * java/text/DateFormat.java (computeInstance): Separate time
1651 (getDateTimeInstance): Ditto.
1652 (getDateTimeInstance(int,int)): New method.
1654 * Makefile.in: Rebuilt.
1655 * Makefile.am (ordinary_java_source_files): Add new classes.
1657 * java/util/PropertyResourceBundle.java: New file.
1658 * gnu/gcj/util/EnumerationChain.java: New file.
1660 1999-05-07 Tom Tromey <tromey@cygnus.com>
1662 * acconfig.h (GCJVERSION): New undef.
1663 * java/lang/natSystem.cc (init_properties): Define java.version,
1664 java.class.version, os.name, os.arch, os.version.
1665 Include <sys/utsname.h> if required.
1666 * configure: Rebuilt.
1667 * configure.in: Compute and define GCJVERSION.
1669 * java/lang/natSystem.cc (default_file_encoding): Now static.
1671 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1673 * libtool-version: New file.
1674 * Makefile.in: Rebuilt.
1675 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1678 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1679 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1682 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1683 (we pick those up already).
1685 1999-05-05 Per Bothner <bothner@cygnus.com>
1687 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1688 stub classes. (This is enough to get Kawa to compile against libgcj.)
1690 * gnu/gcj/RawData.java: New class.
1691 * doc/cni.sgml: Document RawData.
1693 * java/util/zip/InflaterInputStream.java: New stub class.
1694 * java/util/zip/ZipInputStream.java: New class. Partly works.
1695 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1696 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1697 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1698 * java/util/zip/ZipOutputStream.java: Start implementation.
1700 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1701 (default_file_encoding): New global, initial value is above macro.
1702 (init_properties): Default file.encoding to default_file_encoding.
1704 * Makefile.am: Add new classes.
1706 1999-05-05 Tom Tromey <tromey@cygnus.com>
1708 * Makefile.in: Rebuilt.
1709 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1710 (clean-local): New target
1712 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1713 (load, loadLibrary): Now native.
1715 * java/lang/Runtime.java (load, loadLibrary): Now native.
1716 (init): New native method.
1717 (Runtime): Use init.
1718 * prims.cc: Include <ltdl.h> if required.
1719 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1721 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1723 * configure.in: Switch from irix threads to posix threads
1724 * configure: Regenerate.
1726 1999-04-30 Tom Tromey <tromey@cygnus.com>
1728 * Makefile.in: Rebuilt.
1729 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1731 1999-04-29 Tom Tromey <tromey@cygnus.com>
1733 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1736 * java/util/Locale.java (Locale(String,String)): Implement in
1737 terms of 3-argument version; variant now defaults to empty
1739 (toString): Assume variant is not null.
1740 (equals): Assume all strings are not null.
1741 (Locale): Throw NullPointerException if any argument is null.
1743 * java/util/ResourceBundle.java (getBundle): Don't try the base
1744 name; now implicit in partialGetBundle call.
1745 (trySomeGetBundle): Search for parent bundles and call setParent
1747 (partialGetBundle): Added `langStop' argument. Use
1748 `Locale.toString' to compute bundleName.
1749 (resource_cache): New static field.
1750 (partialGetBundle): Cache the returned resource bundle. Now
1753 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1756 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1757 * java/text/natCollator.cc (decomposeCharacter): `base' now
1759 * Makefile.in: Rebuilt.
1760 * Makefile.am (ordinary_java_source_files): Added
1761 CollationElementIterator, CollationKey, Collator,
1763 (nat_source_files): Added natCollator.cc.
1764 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1765 (compare): Pass `this' to CollationElementIterator constructor.
1766 (getCollationElementIterator): Likewise.
1767 (ceiNext): Fix off-by-one error when finding initial substring.
1768 (next): Correctly mask off bits when computing return value.
1769 Fixed return values when one string is shorter than the other.
1770 * java/text/CollationElementIterator.java (collator): New field.
1771 (CollationElementIterator): Added collator argument.
1772 (next): Call ceiNext on collator object.
1774 1999-04-26 Tom Tromey <tromey@cygnus.com>
1776 * natCollator.cc: New file.
1778 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1779 (GregorianCalendar): Use it in all constructors.
1780 * java/util/Calendar.java (Calendar): Changed argument name to
1781 `zone' to match code.
1783 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1784 * java/text/CollationKey.java: New file.
1785 * java/text/CollationElementIterator.java: New file.
1786 * java/text/Collator.java: New file.
1787 * java/text/RuleBasedCollator.java: New file.
1789 * Makefile.in: Rebuilt.
1790 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1791 (jv_convert_LDADD): Explicltly add -lm -lc.
1793 1999-04-26 Tom Tromey <tromey@cygnus.com>
1795 * configure, Makefile.in: Rebuilt.
1796 * configure.in: Added AM_PROG_LIBTOOL.
1797 (GCOBJS): Use `.lo' form of files.
1798 (THREADOBJS): Likewise.
1799 (GCDEPS): Use `.la' form of library.
1800 (GCLIBS): Set to be the same as GCDEPS.
1801 (THREADDEPS): Use `.la' form of library.
1802 (THREADLIBS): Set to be the same as THREADDEPS.
1803 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1804 toolexeclib_LIBRARIES.
1805 (libgcj_la_SOURCES): Renamed for libtoolization.
1806 (EXTRA_libgcj_la_SOURCES): Likewise.
1807 (libgcj_la_DEPENDENCIES): Likewise.
1808 (libgcj_la_LIBADD): Likewise.
1809 ($(nat_files)): Use LTCXXCOMPILE.
1810 ($(c_files)): Use LTCOMPILE.
1811 (GCJCOMPILE): New macro.
1813 (.java.o): Likewise.
1814 ($(javao_files)): Likewise.
1815 (jv_convert_LINK): Use LIBTOOL.
1816 (nat_files): Use `.lo' files.
1817 (c_files): Likewise.
1818 (javao_files): Likewise.
1819 (.class.lo): Renamed.
1820 (.java.lo): Likewise.
1821 ($(nat_files)): Depend on %.lo.
1822 ($(c_files)): Likewise.
1823 ($(javao_files)): Likewise.
1824 (jv_convert_LDADD): Link against .lo files.
1825 (jv_convert_DEPENDENCIES): Depend on .lo files.
1826 (maintainer-check): Depend on libgcj.la, but examine .a file.
1827 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1828 (libgcj_la_LDFLAGS): New macro.
1830 1999-04-23 Warren Levy <warrenl@cygnus.com>
1832 * Makefile.am: Added URLDecoder and URLEncoder.
1833 * Makefile.in: Rebuilt.
1835 * java/net/ServerSocket.java (setSocketFactory): Renamed from
1836 setSocketImplFactory to match spec.
1837 * java/net/Socket.java (getSoLinger): Changed return type to
1840 * java/net/URLDecoder.java: New file.
1841 * java/net/URLEncoder.java: New file.
1843 1999-04-21 Tom Tromey <tromey@cygnus.com>
1845 * java/lang/natString.cc (getBytes): Reverted earlier change and
1846 applied correct fix from Per Bothner.
1848 * java/lang/String.java: Don't throw
1849 UnsupportedEncodingException.
1851 * java/lang/natString.cc (getBytes): Correctly size result
1852 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
1854 1999-04-20 Andrew Haley <aph@cygnus.com>
1856 * include/sparc-signal.h: new file.
1857 * configure.in: include/sparc-signal.h added.
1858 * configure: regenerated.
1859 * prims.cc (JvRunMain): signal handling code rewritten to be more
1861 (catch_segv): ditto.
1863 * include/i386-signal.h: reorganized.
1864 * include/default-signal.h: reorganized.
1866 1999-04-19 Tom Tromey <tromey@cygnus.com>
1868 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1869 once. From Anthony Green.
1871 1999-04-19 Andrew Haley <aph@cygnus.com>
1873 * Makefile.in: Processed with new automake.
1875 1999-04-19 Tom Tromey <tromey@cygnus.com>
1877 * include/javaprims.h: Removed security namespace.
1879 1999-04-20 Anthony Green <green@cygnus.com>
1881 * java/io/PrintStream.java (println): Remove extra println.
1883 1999-04-19 Anthony Green <green@cygnus.com>
1885 * Makefile.in: Rebuilt.
1886 * Makefile.am (ordinary_java_source_files): Add new security files.
1888 * java/security/NoSuchAlgorithmException.java,
1889 java/security/MessageDigest.java: New files.
1891 * include/javaprims.h: Add security namespace.
1893 1999-04-16 Per Bothner <bothner@cygnus.com>
1895 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
1896 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1897 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1898 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
1899 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
1900 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
1901 * gnu/gcj/convert/natInput_SJIS.cc: New file.
1902 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
1903 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
1904 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
1905 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
1906 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
1907 * Makefile.am: Various changes for new files and conversions.
1909 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1910 New overloading, allows greater efficiency.
1911 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1912 New overloading (for efficiency - avoids copying).
1914 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
1915 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
1917 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
1918 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
1919 (writeChars): Don't be quite so eager to flush.
1920 * java/io/PrintStream.java: Rewrite. Now more similar to
1921 OutputStreamWriter, using explicit UnicodeToBytes converter.
1922 Also, autoflush does not need to flush so often.
1923 * java/lang/natString.cc (getBytes): More efficient algorithm.
1924 (init(jbyteArray,jint,jint,jstring)): More efficient.
1926 1999-04-15 Warren Levy <warrenl@cygnus.com>
1928 * Makefile.am (ordinary_java_source_files): Added new Connection
1929 and Handler classes in gnu.gcj.protocol.file package.
1930 * Makefile.in: Rebuilt.
1932 * gnu/gcj/protocol/file/Connection.java: New file.
1933 * gnu/gcj/protocol/file/Handler.java: New file.
1934 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1935 if doInput allows input.
1936 (getOutputStream): Check if doOutput allows output.
1937 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
1939 1999-04-14 Tom Tromey <tromey@cygnus.com>
1941 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
1942 buffer larger to work around bug.
1943 From Bryce McKinlay <bryce@albatross.co.nz>.
1945 1999-04-14 Andrew Haley <aph@cygnus.com>
1947 * java/lang/natDouble.java (doubleToLongBits): ensure that all
1948 NaNs are always converted to the same long value.
1949 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
1952 1999-04-13 Tom Tromey <tromey@cygnus.com>
1954 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
1955 instead switch on actual element type.
1957 * Makefile.in: Rebuilt.
1958 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
1960 1999-04-13 Andrew Haley <aph@cygnus.com>
1962 * include/i386-signal.h, include/default-signal.h: New files.
1963 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
1965 (catch_fpe): New function.
1966 * configure.in: Make link to appropriate include/java-signal.h.
1967 * configure: Rebuilt.
1968 * Makefile.am: include/java-signal.h added to dependency list.
1969 * Makefile.in: Rebuilt.
1971 1999-04-12 Urban Widmark <urban@svenskatest.se>
1973 * java/io/DataInputStream.java (readLine): Corrected handling of
1974 empty lines, from null to "".
1976 1999-04-12 Tom Tromey <tromey@cygnus.com>
1978 * Makefile.in: Rebuilt.
1979 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
1981 * java/lang/natSystem.cc (SystemClass): New define.
1982 (init_properties): Synchronize.
1984 1999-04-08 Geoff Berry <gcb@gnu.org>
1986 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
1987 * natPlainSocketImpl.cc (accept): Add missing else if check
1990 1999-04-08 Tom Tromey <tromey@cygnus.com>
1992 * java/lang/Long.java (parseLong): Corrected overflow detection
1994 * java/lang/Integer.java (parseInt): Corrected overflow detection
1997 * java/io/PrintStream.java (print): Handle null string argument.
1998 (println): Likewise.
2000 1999-04-07 Warren Levy <warrenl@cygnus.com>
2002 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2003 Set count to 0 when InputStreamReader returns -1 for EOF.
2005 1999-04-07 Tom Tromey <tromey@cygnus.com>
2007 * mauve-libgcj: Omit java.text.Collator,
2008 java.text.RuleBasedCollator.
2010 1999-04-06 Tom Tromey <tromey@cygnus.com>
2012 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2013 IOException from getHttpHeaders().
2014 (getHeaderFieldKey): Likewise.
2016 * include/javaprims.h: Regenerated declarations.
2018 * Makefile.in: Rebuilt.
2019 * Makefile.am (ordinary_java_source_files): Updated for removed
2022 1999-04-06 Per Bothner <bothner@cygnus.com>
2024 * java/util/zip/Adler32.java: New class.
2025 * java/util/zip/CRC32.java: Add working method bodies.
2026 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2027 * Makefile.in: Re-generate.
2029 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2031 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2032 from version in removed www hierarchy.
2033 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2034 version in removed www hierarchy.
2036 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2037 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2038 * gnu/gcj/www/protocol/http: Removed dir.
2039 * gnu/gcj/www/protocol: Removed dir.
2040 * gnu/gcj/www: Removed dir.
2042 * java/net/HttpURLConnection.java: Revised comments to indicate
2043 missing JDK 1.2 methods.
2045 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2046 hierarchy rather than the gnu/gcj/www/protocol one.
2047 * java/net/URLConnection.java: Updated status comments.
2048 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2049 the gnu/gcj/www/content one.
2051 1999-04-06 Per Bothner <bothner@cygnus.com>
2053 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2054 The gen-from-JIS program is in $(CONVERT_DIR).
2056 1999-04-06 Tom Tromey <tromey@cygnus.com>
2058 * mauve-libgcj: Renamed from mauve-libjava.
2060 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2062 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2063 (getResponseMessage): Implemented.
2064 (getResponseVals): New private method.
2066 * java/net/URLConnection.java (getContent): Implemented.
2067 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2069 1999-04-05 Tom Tromey <tromey@cygnus.com>
2071 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2072 (jv_convert_SOURCES): Renamed.
2073 (EXTRA_jv_convert_SOURCES): Likewise.
2074 (jv_convert_LDFLAGS): Likewise.
2075 (jv_convert_LINK): Likewise.
2076 (jv_convert_LDADD): Likewise.
2077 (jv_convert_DEPENDENCIES): Likewise.
2079 * Makefile.in: Rebuilt.
2080 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2083 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2085 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2086 method for comparison.
2088 * java/net/URLConnection.java (getContentLength): Implemented.
2089 (getContentType): Implemented.
2090 (getContentEncoding): Implemented.
2091 (getExpiration): Implemented.
2092 (getDate): Implemented.
2093 (getLastModified): Implemented.
2094 (getHeaderFieldInt): Implemented.
2095 (getHeaderFieldDate): Implemented.
2097 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2099 * java/net/URLConnection.java (toString): Implemented.
2100 (setContentHandlerFactory): Implemented.
2101 (setContentHandler): Wrote new private helper method.
2103 1999-04-01 Tom Tromey <tromey@cygnus.com>
2105 * Makefile.in: Rebuilt.
2106 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2107 of 1999-03-31; we always want to build all the .class files.
2108 Depend on java_source_files, not libgcj.zip.
2109 (nat_headers): Define in terms of ordinary_java_source_files.
2111 1999-03-31 Tom Tromey <tromey@cygnus.com>
2113 * Makefile.in: Rebuilt.
2114 * Makefile.am (special_java_source_files): New macro.
2115 (java_source_files): Use it.
2116 (ordinary_java_source_files): New macro.
2117 (java_source_files): Use it.
2118 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2119 creating headers for those files with hand-maintained headers.
2121 * include/javaprims.h: Regenerated namespace declarations.
2122 * classes.pl (scan): Include [0-9] in regexp for matching class
2123 names; for java.util.zip.CRC32.
2125 * Makefile.in: Rebuilt.
2126 * Makefile.am (nat_headers): Redefined to generate all possible
2129 * java/util/zip/ZipException.java: In package java.util.zip, not
2132 1999-03-30 Tom Tromey <tromey@cygnus.com>
2134 * configure: Rebuilt.
2135 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2136 eh-common.h when not building in tree with gcc.
2138 * Makefile.in: Rebuilt.
2139 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2140 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2142 ($(java_source_files:.java=.class)): New target.
2144 * Makefile.in: Rebuilt.
2145 * Makefile.am (java_source_files): Added
2146 java/net/HttpURLConnection.java and
2147 gnu/gcj/www/protocol/http/Connection.java.
2149 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2151 * gnu/gcj/www/protocol/http/Connection.java: New file.
2152 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2153 * java/net/HttpURLConnection.java: New file.
2154 * java/net/URLConnection.java (getHeaderField): Implemented default.
2155 (getHeaderFieldKey): Implemented default method.
2157 1999-03-30 Tom Tromey <tromey@cygnus.com>
2159 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2161 * java/util/zip/Deflater.java: Added copyright header.
2162 * java/util/zip/CRC32.java: Added copyright header.
2164 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2165 that it is automatically generated.
2166 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2168 * gnu/gcj/convert/BytesToUnicode.java,
2169 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2170 gnu/gcj/convert/Input_EUCJIS.java,
2171 gnu/gcj/convert/Input_UTF8.java,
2172 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2173 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2174 gnu/gcj/convert/Output_8859_1.java,
2175 gnu/gcj/convert/Output_JavaSrc.java,
2176 gnu/gcj/convert/Output_UTF8.java,
2177 gnu/gcj/convert/UnicodeToBytes.java,
2178 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2180 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2182 * Makefile.in, configure: Rebuilt.
2183 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2184 not if test subdir exists.
2185 (--enable-gcj-classes): Removed; gcj always used to generate
2187 (JAVA, JAVAC): Removed.
2188 (--enable-single-compilation, --enable-source-compilation):
2191 (NATIVE): New conditional.
2192 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2193 `install-exec' to work.
2194 (toolexeclibdir): Likewise.
2195 (toollib_LIBRARIES): Likewise.
2196 (AM_MAKEFLAGS): Don't pass tooldir.
2198 (javao_files): Redefined.
2199 (java_source_files): New macro.
2200 (c_source_files): New macro.
2201 (c_files): Redefined in terms of c_source_files.
2202 (java_io_files, java_lang_files, java_net_files, java_text_files,
2203 java_util_files, gnu_files, java_files): Removed.
2204 (class_io_files, class_lang_files, class_net_files,
2205 class_text_files, class_util_files, class_gnu_files, class_files):
2207 (nat_source_files): New macro.
2208 (nat_files): Redefined in terms of nat_source_files.
2209 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2210 java_source_files. Removed no-such-file.c.
2212 (ETAGS_ARGS): Removed.
2213 (TAGS_DEPENDENCIES): Likewise.
2214 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2216 (src_io_files, src_lang_files, src_text_files, src_util_files,
2217 src_gnu_files): Removed.
2218 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2219 (BUILT_SOURCES): Removed.
2220 (header-check): New target.
2222 (noinst_PROGRAMS): New macro.
2223 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2225 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2226 (gen-from-JIS): Build in top directory.
2227 (convert_source_files): New macro.
2228 (convert_SOURCES): New macro.
2229 (convert_LDFLAGS): Likewise.
2230 (convert_LINK): Likewise.
2231 (convert_LDADD): Likewise.
2232 (convert_DEPENDENCIES): Likewise.
2234 (gen-from-JIS): Removed.
2235 (gen_from_JIS_SOURCES): New macro.
2236 (gen_from_JIS_LDADD): Likewise.
2237 (gen_from_JIS_DEPENDENCIES): Likewise.
2239 * configure: Rebuilt.
2240 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2241 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2242 when defining conditional.
2244 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2246 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2247 The Unicode Consortium does not permit their re-distribution.
2248 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2249 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2251 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2253 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2255 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2257 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2258 from Unicode Consortium.
2259 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2260 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2261 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2262 New tables, generated using gen-from-JIS.
2263 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2264 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2265 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2266 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2268 * gnu/gcj/convert/Convert.java: New application.
2269 * Makefile.am, Makefile.in (convert): New program, using Convert.
2270 Build the various JIS conversion tables (in maintainer mode).
2272 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2274 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2276 * java/net/URL.java (URL): Deal with null property value. Use "."
2277 as separator in building class name.
2278 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2279 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2280 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2281 beginning of the substring rather than 'start'.
2283 1999-03-26 Tom Tromey <tromey@cygnus.com>
2285 * include/java-chartables.h: Rebuilt.
2286 * include/java-chardecomp.h: New file.
2287 * chartables.pl: Generate output files directly. Added support
2288 for generating decomposition header.
2289 (canonical_decomposition, full_decomposition): New globals.
2290 (DECOMPOSITION): New constant.
2291 (process_char): Call add_decomposition.
2292 (add_decomposition): New sub.
2293 (write_decompositions): New sub.
2295 1999-03-25 Tom Tromey <tromey@cygnus.com>
2297 * java/text/CollationElementIterator.java: New file.
2299 * mauve-libjava: Omit StringTest.
2301 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2303 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2304 without a '/' when parsing protocol. Handle ref outside of parseURL.
2305 (hashCode): Implemented.
2306 (set): Don't expand -1 to default port.
2307 (getDefaultPort): Removed.
2309 * java/net/URLStreamHandler.java (parseURL): Implemented.
2310 (toExternalForm): Implemented.
2312 1999-03-23 Tom Tromey <tromey@cygnus.com>
2314 * java/text/BreakIterator.java (getSentenceInstance):
2316 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2318 * Makefile.in: Rebuilt.
2319 * Makefile.am (nat_headers): Added IllegalAccessException.
2320 * java/lang/natClass.cc (newInstance): Throw
2321 IllegalAccessException, not IllegalAccessError.
2322 Include IllegalAccessException.h.
2324 1999-03-22 Tom Tromey <tromey@cygnus.com>
2326 * gnu/gcj/text/LineBreakIterator.java: New file.
2327 * java/text/BreakIterator.java (getLineInstance): Implemented.
2329 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2330 copy constructor private.
2331 (previous, next): Removed erroneous comment about line
2333 (previous): Correctly recognize break between non-letter on the
2334 left and letter on the right. Handle apostrophes correctly.
2336 * java/text/BreakIterator.java (getWordInstance): Implemented.
2337 * gnu/gcj/text/WordBreakIterator.java: New file.
2338 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2340 * gnu/gcj/text/BaseBreakIterator.java: New file.
2342 1999-03-19 Tom Tromey <tromey@cygnus.com>
2344 * java/text/BreakIterator.java: New file (partially stubbed out).
2345 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2347 * include/config.h.in: Rebuilt.
2348 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2349 (HAVE_TIMEZONE): Likewise.
2350 * configure: Rebuilt.
2351 * configure.in: Added timezone checks.
2352 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2355 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2357 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2358 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2359 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2360 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2361 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2362 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2363 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2364 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2366 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2367 (BSD_COMP): Kludge needed for Solaris2.
2369 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2371 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2372 URL(java.net.URL, string, URLStreamHandler) and call it with a
2373 null handler. In latter constructor, added SecurityManager check.
2374 (set): Expect null handler on bad protocol rather than an exception.
2375 (setURLStreamHandler): Simplified exception handling; return null
2376 on invalid protocol.
2378 1999-03-18 Tom Tromey <tromey@cygnus.com>
2380 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2382 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2384 Include PrintStream.h, InputStream.h.
2385 * java/lang/System.java (ForwardingInputStream,
2386 ForwardingOutputStream): Removed.
2387 (setErr, setIn, setOut): Now native.
2389 Reverted patch from 1999-02-12 to work around problem in
2391 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2392 (_Jv_eh_free): Use free.
2394 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2395 for path name. Minor formatting fixes.
2397 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2399 * prims.cc (fail_on_finalization): New function.
2400 (_Jv_GCWatch): Likewise.
2402 * prims.cc (JvRunMain): Initialize `nullp'.
2403 (nullp): New global.
2404 (catch_segv): Throw nullp.
2406 * Makefile.in: Rebuilt.
2407 * Makefile.am (ZIP): In "null target" case, zip is found in the
2410 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2414 * java/lang/StringBuffer.java (StringBuffer): Don't use
2415 ensureCapacity to set initial capacity.
2416 (capacity): Subtract `length' from return result.
2418 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2420 * java/io/natFileDescriptorPosix.cc (open): Throw
2421 FileNotFoundException, but with filename and errno in msg.
2423 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2425 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2426 functionality folded into java/net/URL.java per spec.
2428 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2429 than EEXIST for throwing FileNotFoundException.
2431 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2432 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2434 * java/net/URLStreamHandler.java (parseURL): Added stub.
2436 1999-03-15 Andrew Haley <aph@cygnus.com>
2438 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2441 1999-03-15 Andrew Haley <aph@cygnus.com>
2443 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2446 1999-03-12 Tom Tromey <tromey@cygnus.com>
2448 * prims.cc (catch_segv): New function.
2449 Include <signal.h> if HANDLE_SEGV defined. Include
2450 NullPointerException.h.
2451 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2454 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2455 a SimpleDateFormat, not just a DateFormat.
2456 (defaultCenturyStart, formatData, pattern): Now private.
2457 (append): Now `final'. Use `NumberFormat.format'.
2459 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2461 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2464 * java/text/MessageFormat.java (format): Use default MessageFormat
2466 (parse, parseObject): Wrote.
2468 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2471 1999-03-12 Andrew Haley <aph@cygnus.com>
2473 * java/lang/String.java (indexOf): Replace with native method for
2475 * java/lang/natString.cc (IndexOf): As above.
2477 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2478 Argument check corrected.
2479 (init(jbyteArray,jint,jint,jstring)): Likewise.
2481 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2482 1.2 compliant method.
2484 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2486 * java/lang/Float.java (byteValue, shortValue): Likewise.
2488 1999-03-11 Tom Tromey <tromey@cygnus.com>
2490 * java/text/DecimalFormat.java (parse): Wrote.
2492 * java/text/ChoiceFormat.java (parse): Set error index on
2493 ParsePosition object.
2495 * java/lang/Integer.java (parseInt): Throw exception on overflow
2496 when intermediate result is most negative number. Changed
2497 overflow detection as well.
2498 * java/lang/Long.java (parseLong): Likewise.
2500 * configure, Makefile.in: Rebuilt.
2501 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2502 CANADIAN when building in source tree that doesn't include gcc.
2503 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2506 * java/text/ChoiceFormat.java (nextDouble): Correct some
2507 off-by-one errors when masking or adding.
2509 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2510 parameter, if given. Use `%', not IEEEremainder.
2511 (scanFix): Throw error if multiplier already set.
2512 (computePattern): Wrote.
2514 1999-03-11 Andrew Haley <aph@cygnus.com>
2516 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2518 (nextDouble): Corrected masking logic. Handle interaction between
2519 `next' and negative numbers.
2521 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2523 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2524 * java/net/URL.java: Added general comments.
2526 1999-03-10 Tom Tromey <tromey@cygnus.com>
2528 * java/text/ChoiceFormat.java (parse): Wrote.
2530 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2532 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2533 Create ChoiceFormat objects.
2534 (format): Special-case ChoiceFormat.
2535 (scanFormatElement): Include { and } in generated style string.
2537 1999-03-09 Tom Tromey <tromey@cygnus.com>
2539 * java/text/ChoiceFormat.java: New file.
2541 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2543 * java/net/BindException.java: Created.
2544 * java/net/ConnectException.java: Created.
2545 * java/net/ContentHandler.java: Created.
2546 * java/net/ContentHandlerFactory.java: Created.
2547 * java/net/FileNameMap.java: Created.
2548 * java/net/MalformedURLException.java: Created.
2549 * java/net/NoRouteToHostException.java: Created.
2550 * java/net/ProtocolException.java: Created.
2551 * java/net/ServerSocket.java (@author): Fixed typo.
2552 * java/net/Socket.java (@author): Fixed typo.
2553 * java/net/SocketImpl.java (@author): Fixed typo.
2554 * java/net/SocketImplFactory.java (@author): Fixed typo.
2555 * java/net/URL.java: Created - nearly complete.
2556 * java/net/URLConnection.java: Created - near-empty stub.
2557 * java/net/URLStreamHandler.java: Created - incomplete stub.
2558 * java/net/URLStreamHandlerFactory.java: Created.
2559 * java/net/UnknownServiceException.java: Created.
2561 1999-03-09 Tom Tromey <tromey@cygnus.com>
2563 * java/lang/System.java (ForwardingInputStream): New class.
2564 (ForwardingOutputStream): Likewise.
2565 (in, out, err): Now `final' forwarding streams.
2566 (setIn, setOut, setErr): Use appropriate method on forwarding
2569 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2572 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2574 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2575 * java/util/zip/Checksum.java: New interface (complete).
2576 * java/util/zip/Deflater.java: New class (near-empty stub).
2577 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2578 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2579 * java/util/zip/ZipEntry.java: New class (complete).
2580 * java/util/zip/ZipException.java: New class (complete).
2581 * java/util/zip/ZipFile.java: New class (incomplete stub).
2582 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2584 1999-03-09 Tom Tromey <tromey@cygnus.com>
2586 * java/text/MessageFormat.java (MessageFormatElement): Removed
2587 `public' specifiers.
2589 * java/text/DecimalFormat.java (scanFormat): Increment index
2590 before processing exponential format. Fixed a couple typos in
2592 (format): Correct normalization of exponent.
2594 1999-03-08 Tom Tromey <tromey@cygnus.com>
2596 * java/text/SimpleDateFormat.java (parse): Throw
2597 IllegalArgumentException, not ParseException.
2599 1999-03-05 Tom Tromey <tromey@cygnus.com>
2601 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2602 when constructing DateFormatSymbols. Initialize numberFormat
2603 field of superclass.
2605 * java/text/DateFormat.java (equals): Rewrote.
2606 (getAvailableLocales): New method.
2607 (getDateInstance): New methods.
2608 (getDateTimeInstance): Likewise.
2609 (getTimeInstance): Likewise.
2610 (getInstance): New method.
2611 (computeInstance): New method.
2613 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2615 (safeGetResource): New method.
2616 (DateFormatSymbols): Use Locale paramater.
2617 (equals): Now protected.
2618 Made instance variables private.
2620 1999-03-04 Tom Tromey <tromey@cygnus.com>
2622 * java/text/DecimalFormat.java: New file.
2624 * java/text/NumberFormat.java (groupingUsed,
2625 maximumFractionDigits, maximumIntegerDigits,
2626 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2628 (setDecimalSeparatorAlwaysShown, setMultiplier,
2629 setPositivePrefix): Removed.
2630 (setMinimumFractionDigits, setMaximumFractionDigits):
2632 (format): Now final.
2633 Added many new methods.
2635 * Makefile.in: Rebuilt.
2636 * Makefile.am (gnu_files): New macro.
2637 (java_files): Added gnu_files.
2638 (class_gnu_files): New macro.
2639 (class_files): Use it.
2640 (src_gnu_files): New macro.
2641 (gnu.o): New target.
2642 (javao_files): Added gnu.o.
2644 * gnu/gcj/text/LocaleData_en_US.java: New file.
2645 * gnu/gcj/text/LocaleData_en.java: New file.
2646 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2647 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2648 (safeGetString): New method.
2649 (safeGetChar): Likewise.
2651 1999-03-03 Tom Tromey <tromey@cygnus.com>
2653 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2656 * java/text/FieldPosition.java (equals): Don't check for null
2657 object; instanceof does this.
2659 * java/util/Locale.java (clone): New method.
2662 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2664 * doc/cni.sgml: New file.
2666 1999-03-03 Tom Tromey <tromey@cygnus.com>
2668 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2670 * java/text/DecimalFormatSymbols.java: New file.
2672 1999-03-02 Tom Tromey <tromey@cygnus.com>
2674 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2676 * configure: Rebuilt.
2677 * configure.in: Check for sys/filio.h.
2679 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2681 (load): Always throw UnsatisfiedLinkError.
2682 (loadLibrary): Likewise.
2684 1999-03-02 Anthony Green <green@cygnus.com>
2686 * LIBGCJ_LICENSE: New file.
2687 * LIBJAVA_LICENSE: Removed.
2688 * Many files: libjava now libgcj.
2690 1999-03-02 Tom Tromey <tromey@cygnus.com>
2692 * include/java-chartables.h: Rebuilt.
2693 * chartables.pl (print_block): Make table `const'.
2694 (print_numerics): Likewise.
2695 (print_single_map): Likewise.
2696 (print_all_block): Likewise.
2697 (print_case_table): Likewise.
2698 (print_fast_tables): Likewise.
2699 * java/lang/natCharacter.cc (table_search): `table' argument now
2702 1999-03-01 Tom Tromey <tromey@cygnus.com>
2704 * java/util/Date.java (before, after): Inverted logic.
2706 * java/util/Date.java (parse): Handle case where first character
2707 in string is open parenthesis.
2708 (skipParens): Rewrote.
2710 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2711 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2713 * java/util/Date.java (parse): Correctly compute beginning of
2716 * java/util/Hashtable.java (get): Throw NullPointerException if
2718 (containsKey): Likewise.
2720 * java/util/Properties.java (list): Truncate value to 37
2721 characters and add `...'.
2723 * java/lang/Byte.java (parseByte): Pass `radix' to
2726 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2728 Include System.h, PrintStream.h.
2730 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2733 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2735 * configure: Rebuilt.
2736 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2739 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2741 * java/lang/SecurityManager.java: Import java.net.*.
2742 (checkMulticast): New methods.
2744 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2746 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2747 (nat_files): Add java/lang/reflect/natArray.o.
2748 (nat_headers): Add Field.h and NoSuchFieldException.h.
2750 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2751 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2752 (_Jv_FromReflectedField): Fix buglet.
2753 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2754 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2755 * prims.cc (_Jv_Abort): Include message in print-out.
2757 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2758 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2759 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2761 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2762 * include/config.h.in (HAVE_PWD_H): New feature macro.
2763 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2764 user.name, user.home, user.dir.
2766 * java/lang/reflect/Array.java: New class.
2767 * java/lang/reflect/natArray.cc: New native methods.
2768 * include/javaprims.h: Declare java::lang::reflect::Array.
2770 * java/lang/Class.h (getField): New private method. Add friends.
2771 * java/lang/Class.java (getField): Add private overload.
2772 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2773 getDeclaredMethods): Add working implementations.
2774 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2775 Finish implementation, except for access control.
2777 * java/lang/reflect/Modifier.java (toString): New overload.
2778 * include/java-method.h: New file.
2779 * java/lang/reflect/Method.java (index): Replaced by offset field.
2780 Remove various private fields - get them from _Jv_Field instead.
2781 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2782 New method implementations.
2784 * java/text/NumberFormat.java: Add a bunch of methods.
2786 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2788 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2790 1999-02-26 Tom Tromey <tromey@cygnus.com>
2792 * include/config.h.in: Rebuilt.
2793 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2794 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2795 HAVE_GETHOSTBYADDR_R): New defines.
2796 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2797 gethostbyaddr_r if available.
2799 * configure: Rebuilt.
2800 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2802 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2806 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2807 * prims.cc (_Jv_AllocBytesChecked): New function.
2809 * Makefile.in: Rebuilt.
2810 * Makefile.am (SUBDIRS): Removed `test'.
2811 * configure: Rebuilt.
2812 * configure.in: Don't build test/Makefile.
2813 * test/*: Removed all files.
2815 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
2817 * java/lang/reflect/Constructor.java: Make class final to match spec.
2818 * java/lang/reflect/Method.java: Ditto.
2820 1999-02-25 Tom Tromey <tromey@cygnus.com>
2822 * java/net/natInetAddress.cc: Include <sys/types.h> before
2824 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2827 * java/net/natInetAddress.cc: Declare gethostname if required.
2828 * include/config.h.in: Rebuilt.
2829 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2830 * configure: Rebuilt.
2831 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2832 declared in unistd.h.
2834 1999-02-24 Tom Tromey <tromey@cygnus.com>
2836 * Makefile.in: Rebuilt.
2837 * Makefile.am (java/io/FileDescriptor.h): Removed target.
2838 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2839 from private to "none".
2841 * include/javaprims.h: Regenerated class declarations with new
2843 * classes.pl (scan): Only generate decls for java.lang, java.io,
2846 1999-02-24 Tom Tromey <tromey@cygnus.com>
2848 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2849 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2851 1999-02-23 Tom Tromey <tromey@cygnus.com>
2853 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2854 not already defined.
2855 * java/io/natFile.cc (_REENTRANT): Only define if not already
2857 * include/config.h.in: Rebuilt.
2858 * acconfig.h (HAVE_BOEHM_GC): New define.
2859 * configure: Rebuilt.
2860 * configure.in: Define HAVE_BOEHM_GC if using it.
2861 * posix-threads.cc: Include boehm-config.h and gc.h if
2863 * include/posix-threads.h: Added explanatory note about Boehm GC.
2865 * java/io/BufferedReader.java (readLine): Only return null when
2866 EOF seen before any characters read. (In particular, an empty
2867 line should not return null.)
2869 * java/io/BufferedInputStream.java (read): Only refill once per
2872 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2873 java.lang.Character.classify12, java.lang.String.hash,
2874 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2875 java.text.SimpleDateFormat.getAndSet2DigitYearStart
2877 * java/text/StringCharacterIterator.java (setIndex): No error if
2879 (next): Check for `pos == end', not `end - 1'.
2880 (StringCharacterIterator): Allow `pos == end'. Explicitly check
2881 for null text in each constructor.
2882 (clone): Fixed order of arguments to constructor.
2884 1999-02-22 Tom Tromey <tromey@cygnus.com>
2886 * include/config.h.in: Rebuilt.
2887 * acconfig.h (HAVE_INET6): New define.
2888 (HAVE_SOCKLEN_T): Likewise.
2889 * java/net/PlainSocketImpl.java: Added copyright header.
2890 * java/net/natPlainSocketImpl.cc: Added copyright header.
2891 (union SockAddr): Use HAVE_INET6, not AF_INET6.
2893 (connect): Likewise.
2895 (socklen_t): New typedef.
2896 (accept): Use socklen_t.
2897 * java/net/natInetAddress.cc: Added copyright header.
2898 (HAVE_GETHOSTNAME): Don't define.
2899 (HAVE_INET_ADDR): Likewise.
2900 (lookup): Fixed typo.
2901 (aton): Don't use `address' as name of local variable.
2902 (lookup): Use HAVE_INET6, not AF_INET6.
2904 * configure: Rebuilt.
2905 * configure.in: Look for functions inet_aton, inet_addr,
2906 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
2907 Check for socklen_t typedef.
2909 * exception.cc (__throw): Declare as __noreturn__.
2911 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
2913 * Makefile.am, Makefile.in: Also build java/net.
2914 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
2916 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2917 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
2919 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
2920 * include/cni.h (JvMalloc, JvFree): New inline functions.
2921 (JvThrow): Add __noreturn__ attribute.
2922 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
2923 (_Jv_Throw): Add __noreturn__ attribute.
2925 * java/net/PlainSocketImpl.java: Init fnum to -1.
2926 * java/net/ServerSocket.java: Add missing throws clauses.
2927 * java/lang/Socket.java: For the constructor taking a SocketImpl,
2928 don't call create on the latter. Instead, other constructors
2929 have to explicitly call SocketImpl.create.
2930 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
2931 from size_t to int, to match ::accept prototype.
2932 * java/net/natInetAddress.cc: Use JvFree rather than free.
2935 1999-02-22 Tom Tromey <tromey@cygnus.com>
2937 * include/javaprims.h: Added new classes.
2938 * java/text/StringCharacterIterator.java: New file.
2939 * java/text/CharacterIterator.java: New file.
2941 * java/text/ParseException.java (errorOffset): Now private.
2943 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
2945 * java/net: New package.
2946 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
2947 Socket.java,SocketException.java,SocketImpl.java,
2948 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
2949 natPlainSocketImpl.cc}: New classes.
2951 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
2952 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
2953 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
2954 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
2956 * classes.pl: Translate package into "namespace", not "class".
2957 * include/javaprims.h: Update class list, using "namespace".
2959 1999-02-21 Tom Tromey <tromey@cygnus.com>
2961 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
2962 Define when appropriate.
2964 1999-02-20 Tom Tromey <tromey@cygnus.com>
2966 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
2967 as a single byte and \u07ff as two bytes.
2968 (_Jv_GetStringUTFLength): Likewise.
2969 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
2970 with 0x0f, not 0x1f.
2972 1999-02-19 Tom Tromey <tromey@cygnus.com>
2974 * java/io/DataOutputStream.java (writeUTF): When encoding
2975 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
2976 * java/io/DataInputStream.java (readUTF): Mask second byte of
2977 3-byte character with 0x3f, not 0x1f.
2979 * java/io/DataInputStream.java (readLong): Cast result of
2980 readUnsignedByte to long before using.
2982 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
2985 * mauve-libjava: Re-enabled java.io.DataInputOutput.
2986 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
2987 argument to avoid warning.
2988 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
2989 argument to avoid warning.
2991 1999-02-18 Tom Tromey <tromey@cygnus.com>
2993 * mauve-libjava: Omit java.io.DataInputOutput and
2994 java.io.Utf8Encoding.
2996 1999-02-17 Tom Tromey <tromey@cygnus.com>
2998 * Makefile.in: Rebuilt.
2999 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3000 * java/io/natFileDescriptorPosix.cc: Include
3001 InterruptedIOException.h, Thread.h.
3002 (write): Throw InterruptedIOException when required.
3004 * posix-threads.cc: Include <signal.h>.
3005 (_Jv_ThreadInterrupt): New function.
3007 (handle_intr): New function.
3008 (_Jv_InitThreads): Register handle_intr via sigaction.
3009 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3010 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3011 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3012 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3014 1999-02-19 Andrew Haley <aph@cygnus.com>
3016 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3018 (ThreadGroup (int)): Set the maximum priority of the initial
3021 1999-02-18 Andrew Haley <aph@cygnus.com>
3023 * java/lang/natClass.cc (forName): Check for the case where a
3024 classname is the name of an array and call FindClassFromSignature
3027 1999-02-18 Andrew Haley <aph@cygnus.com>
3029 * java/lang/StringBuffer (insert (int, String)): Move up any
3030 characters above the insert position and increase the length of
3031 the string buffer by the length of the argument.
3032 (insert (int, char[])): Likewise.
3033 (insert (int, char)): Likewise.
3034 (StringBuffer (String)): The initial capacity of the string buffer
3035 is 16 plus the length of the argument.
3036 (getChars): Add a JDK 1.2 FIXME.
3038 1999-02-18 Andrew Haley <aph@cygnus.com>
3040 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3043 1999-02-18 Andrew Haley <aph@cygnus.com>
3045 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3046 instead of floating-point equality. This is necessary for
3047 correct floating-point Hashtables.
3048 * java/lang/Float.java (equals): Ditto.
3050 1999-02-16 Tom Tromey <tromey@cygnus.com>
3052 * java/util/Properties.java (list): Truncate value to 37
3053 characters and add "...".
3055 1999-02-16 Tom Tromey <tromey@cygnus.com>
3057 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3058 if initCap is negative.
3059 (contains): Implement JDK1.2-style handling of null argument.
3060 (removeElement): Likewise.
3061 (indexOf): Likewise. Also, correctly handle case where idx is
3063 (lastIndexOf): Likewise.
3065 1999-02-16 Tom Tromey <tromey@cygnus.com>
3067 * java/lang/natString.cc (init): Increment source pointer in
3070 1999-02-16 Tom Tromey <tromey@cygnus.com>
3072 * exception.cc: Include NullPointerException.h.
3073 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3075 1999-02-16 Tom Tromey <tromey@cygnus.com>
3077 * Makefile.in: Rebuilt.
3078 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3080 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3082 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3083 we're compiling canadian.
3084 * configure: Regenerated.
3086 1999-02-12 Andrew Haley <aph@cygnus.com>
3088 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3089 deleted from libgcj.
3091 1999-02-12 Tom Tromey <tromey@cygnus.com>
3093 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3094 (_Jv_eh_free): Don't call free.
3095 Don't declare malloc or free.
3097 1999-02-11 Tom Tromey <tromey@cygnus.com>
3099 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3101 1999-02-11 Andrew Haley <aph@cygnus.com>
3103 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3104 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3105 needed by java.lang.*.
3106 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3107 wf_fmod.o: Removed from libjava.a.
3109 1999-02-11 Tom Tromey <tromey@cygnus.com>
3111 * include/javaprims.h: Reverted previous change; with it
3112 exception.cc can't compile.
3114 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3116 * include/config.h.in: Rebuilt.
3117 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3119 * configure: Rebuilt.
3120 * configure.in: Check for sched_yield. Look in thread library for
3121 all thread functions.
3123 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3124 no recursive mutexes.
3125 (_Jv_MutexDestroy): Define when required.
3126 (_Jv_MutexLock): Likewise.
3127 (_Jv_MutexUnlock): Likewise.
3128 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3129 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3130 (_Jv_Mutex_t): New structure.
3131 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3132 (_Jv_MutexLock): Likewise.
3133 (_Jv_MutexUnlock): Likewise.
3135 1999-02-10 Tom Tromey <tromey@cygnus.com>
3137 * aclocal.m4, configure, Makefile.in: Rebuilt.
3138 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3140 * configure.in: Changed to track library changes.
3141 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3142 (AM_CXXFLAGS): Likewise.
3143 (data_DATA): Likewise.
3144 (AM_CFLAGS): Likewise.
3145 (JC1FLAGS): Likewise.
3146 (libgcj_a_SOURCES): Likewise.
3147 (EXTRA_libgcj_a_SOURCES): Likewise.
3148 (libgcj_a_DEPENDENCIES): Likewise.
3149 (libgcj_a_LIBADD): Likewise.
3150 (libgcj.zip): Likewise.
3151 (CLEANFILES): Likewise.
3152 ($(nat_headers)): Likewise.
3153 (java/lang/FirstThread.h): Likewise.
3154 (java/lang/ThreadGroup.h): Likewise.
3155 (java/lang/String.h): Likewise.
3156 (java/lang/reflect/Field.h): Likewise.
3157 (BUILT_SOURCES): Likewise.
3158 (maintainer-check): Likewise.
3159 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3160 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3162 * java/util/natGregorianCalendar.cc (computeFields): Only use
3163 gmtime_r and localtime_r when configured for posix threads.
3165 * java/io/natFile.cc (get_entry): Only use readdir_r when
3166 configured for posix threads.
3168 * java/util/natGregorianCalendar.cc: Update copyright notice.
3169 * java/util/TimeZone.java: Ditto.
3170 * java/util/SimpleTimeZone.java: Ditto.
3172 1999-02-08 Tom Tromey <tromey@cygnus.com>
3174 * java/io/PrintStream.java (line_separator): New constant.
3175 (print): Use line_separator, not `file.separator' property.
3176 (println): Use line_separator.
3178 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3179 when trying to instantiate Class.
3181 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3182 NullPointerException if argument is null.
3184 * java/lang/Thread.java (setName): Throw NullPointerException, not
3185 IllegalArgumentException.
3188 1999-02-08 Andrew Haley <aph@cygnus.com>
3190 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3191 create new Classes with Class.newInstance().
3193 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3194 semiciolon to end of an array Class's signature if the elements of
3195 the array aren't themselves arrays.
3197 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3198 array of objects is always sizeof(jobject), not the size of the
3199 object to which the reference points.
3201 1999-02-08 Tom Tromey <tromey@cygnus.com>
3203 * java/util/BitSet.java (and): Throw NullPointerException when
3208 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3209 if argument is negative.
3210 (clear): Correctly compute `offset'. Throw
3211 IndexOutOfBoundsException when required.
3213 (get): Likewise. Also, return correct value.
3214 (ensure): Changed meaning of argument.
3215 (toString): Wrap contents in `{}'; put spaces after commas.
3216 (hashCode): Don't try to examine elements off the end of array.
3217 (or): Correctly include bits past the end of this bit set.
3220 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3222 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3223 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3225 1999-02-04 Andrew Haley <aph@cygnus.com>
3227 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3228 '/' in signatures to '.'
3229 (Class::getName): Likewise,
3230 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3232 * java/lang/natFirstThread.cc (run): Change '/' in main's
3235 1999-02-03 Andrew Haley <aph@cygnus.com>
3237 * configure.host: -ffloat-store added when compiling libjava on
3238 x86. fdlibm apparently relies on this.
3240 * java/lang/ThreadGroup.java (add): throw an exception if the
3241 ThreadGroup has been destroyed.
3243 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3246 1999-01-27 Tom Tromey <tromey@cygnus.com>
3248 * java/lang/StringBuffer.java (StringBuffer): Handle null
3251 1999-01-21 Tom Tromey <tromey@cygnus.com>
3253 * java/lang/natFirstThread.cc (run): Don't require main to be
3256 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3258 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3260 1999-01-20 Tom Tromey <tromey@cygnus.com>
3262 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3266 (unintern): Likewise.
3267 (_Jv_NewStringUtf8Const): Likewise.
3269 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3270 Character.isLetter, to see if character is self-quoting. Also,
3271 correctly handle quoted characters.
3272 (parse): Fixed typo. Also now throws ParseException.
3274 1999-01-15 Tom Tromey <tromey@cygnus.com>
3276 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3278 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3279 _Jv_SyncInfo has `init' member.
3281 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3284 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3285 IllegalMonitorStateException if unlock fails.
3287 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3289 (_Jv_NewObjectArray): Likewise.
3291 1999-01-14 Tom Tromey <tromey@cygnus.com>
3293 * java/lang/Character.java (isJavaIdentifierPart): Allow
3294 LETTER_NUMBER characters.
3296 * chartables.pl (process_char): Fixed error messages.
3298 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3299 * chartables.pl: Updated comments. Changed detection of non-digit
3300 numeric values (no longer miss \u00b2 and friends).
3302 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3303 currency symbols and connector punctuation.
3304 (isIdentifierIgnorable): Make 7f-9f ignorable.
3306 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3307 (_Jv_NewPrimArray): Likewise.
3308 (SIZE_T_MAX): New define.
3310 * java/lang/ClassLoader.java (system): Now private and final.
3312 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3315 * configure: Rebuilt.
3316 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3318 * exception.cc: Include gansidecl.h.
3320 1999-01-14 Andrew Haley <aph@cygnus.com>
3322 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3323 corrected: they didn't treat -0.0 and NaNs correctly.
3325 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3327 * nogc.cc: Use calloc to zero out memory.
3329 1999-01-11 Tom Tromey <tromey@cygnus.com>
3331 * java/lang/natClass.cc (isInstance): Return false if this class
3332 is primitive, not if class of `obj' is primitive.
3333 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3335 * java/io/SequenceInputStream.java (close): Handle case where `in'
3338 * java/text/DateFormat.java (format): New method.
3340 * mauve-libjava: Omit java.text.DateFormat.
3342 1999-01-08 Tom Tromey <tromey@cygnus.com>
3344 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3346 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3348 (_Jv_CondNotifyAll): Likewise.
3350 * configure: Rebuilt.
3351 * configure.in: Change --enable-source-compilation logic to work
3354 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3356 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3357 and RUNTESTFLAGS from AM_MAKEFLAGS.
3358 * configure.in: AM_RUNTESTFLAGS added.
3359 * configure.host: AM_RUNTESTFLAGS added.
3360 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3361 * configure: rebuilt.
3362 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3364 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3365 argv[] made conditional because embedded targets may not have
3367 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3368 explanatory comments added in call to super.
3370 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3371 exception thrown in the test harness itself added.
3372 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3374 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3376 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3378 1999-01-06 Tom Tromey <tromey@cygnus.com>
3380 * java/io/natFile.cc (get_entry): New function.
3381 (performList): Use get_entry.
3382 * include/config.h.in: Rebuilt.
3383 * acconfig.h (HAVE_READDIR_R): New define.
3384 * configure: Rebuilt.
3385 * configure.in: Look for readdir_r.
3387 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3389 * java/util/natDate.cc: Added copyright header.
3391 1999-01-05 Tom Tromey <tromey@cygnus.com>
3393 * include/config.h.in: Rebuilt.
3394 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3395 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3396 * configure: Rebuilt.
3397 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3398 unlink, and realpath.
3399 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3400 (stat): Conditionalize on HAVE_STAT.
3402 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3403 (performMkdir): Conditionalize on HAVE_MKDIR.
3404 (performRenameTo): Conditionalize on HAVE_RENAME.
3405 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3407 * include/config.h.in: Rebuilt.
3408 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3409 * configure: Rebuilt.
3410 * configure.in: Check for gmtime_r and localtime_r. For cross
3411 builds, assume they exist.
3413 * mauve-libjava: Include java.text.DateFormatSymbols again.
3414 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3415 from setAmPmStrings.
3417 * mauve-libjava: Omit java.text.DateFormatSymbols.
3419 1999-01-04 Tom Tromey <tromey@cygnus.com>
3421 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3423 * java/io/LineNumberReader.java (read): Decrement `count' in
3426 * java/io/BufferedWriter.java (write): Correctly determine when
3427 incoming data would overrun buffer. Flush buffer if write causes
3430 * java/io/BufferedOutputStream.java (write): Increment `count'
3431 after copying data into buffer.
3433 * java/io/FilterOutputStream.java (close): Call flush first.
3435 * java/io/PipedReader.java (read): If read causes `out' to catch
3436 up with `in', then set `in' to -1.
3438 * java/io/LineNumberInputStream.java (read): If no bytes read,
3439 return -1. If no bytes requested, return 0.
3441 * java/lang/StringBuffer.java (insert): If `str' is null, use
3444 1998-12-30 Anthony Green <green@cygnus.com>
3447 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3449 1998-12-23 Tom Tromey <tromey@cygnus.com>
3451 * java/io/PushbackInputStream.java (read): `off' already includes
3454 1998-12-17 Tom Tromey <tromey@cygnus.com>
3456 * Makefile.in: Rebuilt.
3457 * Makefile.am (GCJ_canadian): Include target_alias.
3459 * java/lang/natFirstThread.cc (run): Require main's class to be
3462 1998-12-16 Tom Tromey <tromey@cygnus.com>
3464 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3466 * java/util/ResourceBundle.java (getBundle): Throw
3467 NullPointerException if locale argument is null.
3469 * java/lang/natClass.cc (forName): Throw NullPointerException if
3471 Include NullPointerException.h.
3473 1998-12-14 Tom Tromey <tromey@cygnus.com>
3475 * java/lang/Character.java (Character): Implement Comparable.
3476 (compareTo): New methods.
3478 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3479 correct country and language codes.
3480 (UK, US): New constants.
3481 (setDefault): Language codes are lower-case.
3483 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3484 (getDeclaredConstructors): Likewise.
3485 (getDeclaredField): Likewise.
3486 (getDeclaredFields): Likewise.
3487 (getDeclaredMethod): Likewise.
3488 (getDeclaredMethods): Likewise.
3489 (getField): Likewise.
3490 (getFields): Likewise.
3491 (getMethod): Likewise.
3492 (getMethods): Likewise.
3493 * java/lang/Class.java: Declare new methods.
3494 * java/lang/Class.h: Declare new methods.
3496 * java/lang/natString.cc: Removed `#pragma implementation'.
3497 * include/cni.h (_Jv_GetStringChars): New function.
3498 * Makefile.in: Rebuilt.
3499 * Makefile.am (java/lang/String.h): Don't generate definition for
3502 * java/lang/natString.cc: Added `#pragma implementation'.
3504 * Makefile.in: Rebuilt.
3505 * Makefile.am (libjava.zip): Put build directory first in class
3506 path to avoid bug in compiler.
3508 1998-12-14 Anthony Green <green@cygnus.com>
3510 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3512 * include/javaprims.h: Add EventObject, ListResourceBundle and
3515 1998-12-13 Anthony Green <green@cygnus.com>
3517 * mauve-libjava: Run the ResourceBundle tests.
3519 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3522 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3524 * configure.in, configure: Make --enable-gcj-classes and
3525 --enable-source-compilation the default. (Nervously...) Yeah!
3526 Based on a patch from Tom Tromey.
3528 1998-12-13 Tom Tromey <tromey@cygnus.com>
3530 * java/util/EventObject.java: New file.
3531 * java/util/EventListener.java: New file.
3533 * include/javaprims.h: Updated class declarations.
3534 * Makefile.in: Rebuilt.
3535 * Makefile.am (nat_headers): Added Constructor.h.
3536 (java/lang/String.h): Don't inline String::length().
3537 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3538 * java/lang/Class.java (initializeClass, hackRunInitializers,
3539 hackTrampoline): No need to mark `final'.
3540 (getConstructor, getConstructors): Declare.
3541 * java/lang/reflect/Field.java (equals): New method.
3542 * java/lang/natClass.cc (getConstructor): New method.
3543 (getConstructors): Likewise.
3544 Include Method.h, Field.h, Constructor.h.
3545 * java/lang/reflect/Constructor.java: New file.
3546 * java/lang/reflect/Method.java (toString): No space before open
3548 (equals): Simplified.
3550 1998-12-13 Anthony Green <green@cygnus.com>
3552 * java/util/ResourceBundle.java: New file.
3553 * java/util/ListResourceBundle.java: New file.
3555 1998-12-12 Tom Tromey <tromey@cygnus.com>
3557 * java/lang/System.java (in, out, err): Now buffered streams by
3560 * include/javaprims.h: Updated class declarations.
3561 * Makefile.in: Rebuilt.
3562 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3563 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3565 (nat_files): Added natMethod.o.
3566 * java/lang/reflect/natMethod.cc: New file.
3567 * java/lang/reflect/Field.java (Field): Now extends
3569 * java/lang/reflect/AccessibleObject.java: New file.
3570 * java/lang/reflect/InvocationTargetException.java: New file.
3572 1998-12-11 Tom Tromey <tromey@cygnus.com>
3574 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3575 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3576 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3578 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3580 1998-12-09 Tom Tromey <tromey@cygnus.com>
3582 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3585 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3586 character is already titlecase.
3588 * java/lang/Character.java (isJavaLetter): Follow spec.
3589 (isJavaLetterOrDigit): Likewise.
3591 * java/util/GregorianCalendar.java (gregorianCutover): Append
3594 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3596 1998-12-08 Tom Tromey <tromey@cygnus.com>
3598 * java/lang/reflect/Modifier.java (toString): Replace second
3599 `static' with `synchronized'.
3601 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3602 * java/lang/Object.h (Object::hack12_6): Declare.
3603 * java/lang/Object.java (hack12_6): New function.
3605 1998-12-07 Tom Tromey <tromey@cygnus.com>
3607 * include/java-array.h (__JArray::clone): Removed decl.
3608 * prims.cc (__JArray::clone): Removed.
3609 * java/lang/natObject.cc (clone): Incorporate code to clone an
3612 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3613 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3614 Correctly use dtable_method_count.
3616 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3618 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3621 1998-12-06 Anthony Green <green@cygnus.com>
3623 * mauve-libjava: Don't test ResourceBundle.
3625 1998-12-04 Tom Tromey <tromey@cygnus.com>
3627 More JDK 1.2 spec fixes:
3628 * java/util/Date.java (millis): Now private.
3629 * java/text/DateFormat.java (DateFormat): Constructor now
3631 * java/lang/Void.java (Void): New private constructor.
3632 * java/lang/System.java (System): New private constructor.
3633 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3635 (currentClassLoader): New method.
3636 (currentLoadedClass): New method.
3637 * java/lang/Math.java (Math): New private constructor.
3638 * java/lang/Compiler.java (Compiler): New private constructor.
3639 * java/lang/Class.java (Class): New private constructor.
3640 * java/lang/Double.java (toString): Removed access specifier from
3641 two-argument `toString' method.
3643 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3645 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3646 causes it to be flushed from an fp register (where it may be
3647 longer than double precision) to a double in memory. This is
3648 essential to ensure correct rounding behaviour.
3650 1998-12-04 Tom Tromey <tromey@cygnus.com>
3652 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3655 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3656 explaining apparent divergence from JDK 1.2.
3658 1998-12-04 Per Bothner <bothner@cygnus.com>
3660 * include/no-threads.h: Remove unused parameter names.
3661 This silences a bunch of warnings.
3663 1998-12-04 Tom Tromey <tromey@cygnus.com>
3665 * include/config.h.in: Rebuilt.
3666 * acconfig.h (HAVE_CTIME_R): New symbol.
3668 1998-12-03 Tom Tromey <tromey@cygnus.com>
3670 * mauve-libjava: Added many more categories to reject.
3672 Changes to follow JDK1.2 spec:
3673 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3674 setErr, setIn, setOut): No need to be `final'.
3675 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3676 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3677 * java/lang/Object.java (wait): `nanos' argument is an int.
3678 * java/lang/VirtualMachineError.java: Class is abstract.
3679 * java/lang/ThreadDeath.java: Made constructors public.
3680 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3683 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3685 * java/text/DateFormatSymbols.java (getAmPmStrings,
3686 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3688 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3690 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3691 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3692 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3695 * java/lang/IllegalThreadStateException.java
3696 (IllegalThreadStateException): Changed extending class to match spec.
3698 * java/lang/NumberFormatException.java
3699 (java/lang/NumberFormatException): Changed extending class to match
3702 * java/util/Observer.java (Observer): Changed sig to match JCL.
3704 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3706 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3707 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3708 signature to match JDK 1.1 and 1.2.
3710 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3712 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3713 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3714 * Makefile.in, configure: Rebuilt.
3716 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3719 1998-12-02 Tom Tromey <tromey@cygnus.com>
3721 * mauve-libjava: New file.
3723 The remaining `-W -Wall' fixes:
3724 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3726 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3728 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3730 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3732 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3734 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3736 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3738 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3740 * java/lang/mprec.c (Balloc): Removed unused variable.
3741 (mult): Added parentheses per gcc suggestion.
3742 (pow5mult): Likewise.
3747 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3748 suggestion. Added cast to `int' to avoid signed/unsigned
3750 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3752 (IsAssignableFrom): Likewise.
3753 (_Jv_JNI_GetObjectField): Likewise.
3754 (_Jv_JNI_GetByteField): Likewise.
3755 (_Jv_JNI_GetShortField): Likewise.
3756 (_Jv_JNI_GetIntField): Likewise.
3757 (_Jv_JNI_GetLongField): Likewise.
3758 (_Jv_JNI_GetStringLength): Likewise.
3759 (_Jv_JNI_ToReflectedField): Likewise.
3760 (_Jv_JNI_FromReflectedField): Likewise.
3761 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3763 * Makefile.in: Rebuilt.
3764 * Makefile.am (AM_CFLAGS): Define conditionally.
3765 (WARNINGS): New macro.
3766 (AM_CXXFLAGS): Include WARNINGS.
3767 * configure: Rebuilt.
3768 * configure.in (USING_GCC): New conditional.
3770 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3772 * java/lang/Character.java: Changed classification constants to
3773 type `byte' to match JDK 1.2 docs.
3775 1998-12-01 Tom Tromey <tromey@cygnus.com>
3777 Some fixes to be `-W -Wall' clean:
3778 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3779 (_Jv_MarkArray): Likewise.
3780 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3781 (to_upper_title): Likewise.
3782 (isTitleCase): Likewise.
3783 (toTitleCase): Likewise.
3784 (getNumericValue): Likewise.
3785 (isLowerCase): Likewise.
3786 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3787 (avoids compiler warning).
3788 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3790 (getDeclaringClass): Likewise.
3791 (_Jv_LookupInterfaceMethod): Likewise.
3792 (_Jv_NewClass): Removed name of unused parameter.
3793 * exception.cc (_Jv_type_matcher): Removed unused variable.
3794 (_Jv_setup_eh_info): Removed name of unused parameter.
3795 * prims.cc (_Jv_NewArray): Always return a value.
3796 (_Jv_FindClassFromSignature): Likewise.
3797 * include/java-field.h (getNameUtf8Const): Removed name of unused
3799 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3801 (_Jv_ThreadSetPriority): Likewise.
3803 * java/lang/natString.cc (hashChars): Now static.
3805 * java/lang/FirstThread.java (FirstThread): Now final.
3807 * java/io/File.java (performMkdir, performRenameTo): Now private.
3809 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3810 if no time function defined.
3812 * configure: Rebuilt.
3813 * configure.in: Look for ctime_r, ctime.
3814 * java/util/Date.java (toString): Now native.
3815 * java/util/natDate.cc (toString): Rewrote.
3817 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
3819 * Add LDFLAGS line to allow TX39 test cases to link when cross
3822 1998-11-23 Anthony Green <green@cygnus.com>
3824 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3825 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3826 quick-threads.cc, include/boehm-gc.h, include/cni.h,
3827 include/java-array.h, include/java-assert.h, include/java-field.h,
3828 include/javaprims.h, include/jni.h, include/jvm.h,
3829 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3830 include/quick-threads.h, java/io/BufferedInputStream.java,
3831 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3832 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3833 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3834 java/io/CharArrayWriter.java,
3835 java/io/CharConversionException.java, java/io/DataInput.java,
3836 java/io/DataInputStream.java, java/io/DataOutput.java,
3837 java/io/DataOutputStream.java, java/io/EOFException.java,
3838 java/io/File.java, java/io/FileDescriptor.java,
3839 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3840 java/io/FileOutputStream.java, java/io/FileReader.java,
3841 java/io/FileWriter.java, java/io/FilenameFilter.java,
3842 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3843 java/io/FilterReader.java, java/io/FilterWriter.java,
3844 java/io/IOException.java, java/io/InputStream.java,
3845 java/io/InputStreamReader.java,
3846 java/io/InterruptedIOException.java,
3847 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3848 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3849 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3850 java/io/PipedReader.java, java/io/PipedWriter.java,
3851 java/io/PrintStream.java, java/io/PrintWriter.java,
3852 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3853 java/io/RandomAccessFile.java, java/io/Reader.java,
3854 java/io/SequenceInputStream.java, java/io/Serializable.java,
3855 java/io/StreamTokenizer.java,
3856 java/io/StringBufferInputStream.java, java/io/StringReader.java,
3857 java/io/StringWriter.java, java/io/SyncFailedException.java,
3858 java/io/UTFDataFormatException.java,
3859 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3860 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3861 java/io/natFileDescriptorPosix.cc,
3862 java/lang/AbstractMethodError.java,
3863 java/lang/ArithmeticException.java,
3864 java/lang/ArrayIndexOutOfBoundsException.java,
3865 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3866 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3867 java/lang/Class.java, java/lang/ClassCastException.java,
3868 java/lang/ClassCircularityError.java,
3869 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3870 java/lang/ClassNotFoundException.java,
3871 java/lang/CloneNotSupportedException.java,
3872 java/lang/Cloneable.java, java/lang/Comparable.java,
3873 java/lang/Compiler.java, java/lang/Double.java,
3874 java/lang/Error.java, java/lang/Exception.java,
3875 java/lang/ExceptionInInitializerError.java,
3876 java/lang/FirstThread.java, java/lang/Float.java,
3877 java/lang/IllegalAccessError.java,
3878 java/lang/IllegalAccessException.java,
3879 java/lang/IllegalArgumentException.java,
3880 java/lang/IllegalMonitorStateException.java,
3881 java/lang/IllegalStateException.java,
3882 java/lang/IllegalThreadStateException.java,
3883 java/lang/IncompatibleClassChangeError.java,
3884 java/lang/IndexOutOfBoundsException.java,
3885 java/lang/InstantiationError.java,
3886 java/lang/InstantiationException.java, java/lang/Integer.java,
3887 java/lang/InternalError.java, java/lang/InterruptedException.java,
3888 java/lang/LinkageError.java, java/lang/Long.java,
3889 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3890 java/lang/NoClassDefFoundError.java,
3891 java/lang/NoSuchFieldError.java,
3892 java/lang/NoSuchFieldException.java,
3893 java/lang/NoSuchMethodError.java,
3894 java/lang/NoSuchMethodException.java,
3895 java/lang/NullPointerException.java, java/lang/Number.java,
3896 java/lang/NumberFormatException.java, java/lang/Object.h,
3897 java/lang/Object.java, java/lang/OutOfMemoryError.java,
3898 java/lang/Process.java, java/lang/Runnable.java,
3899 java/lang/Runtime.java, java/lang/RuntimeException.java,
3900 java/lang/SecurityException.java, java/lang/SecurityManager.java,
3901 java/lang/Short.java, java/lang/StackOverflowError.java,
3902 java/lang/String.java, java/lang/StringBuffer.java,
3903 java/lang/StringIndexOutOfBoundsException.java,
3904 java/lang/System.java, java/lang/Thread.java,
3905 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3906 java/lang/Throwable.java, java/lang/UnknownError.java,
3907 java/lang/UnsatisfiedLinkError.java,
3908 java/lang/UnsupportedOperationException.java,
3909 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3910 java/lang/Void.java, java/lang/natCharacter.cc,
3911 java/lang/natClass.cc, java/lang/natDouble.cc,
3912 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3913 java/lang/natMath.cc, java/lang/natObject.cc,
3914 java/lang/natRuntime.cc, java/lang/natString.cc,
3915 java/lang/natSystem.cc, java/lang/natThread.cc,
3916 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3917 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3918 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3919 java/text/FieldPosition.java, java/text/Format.java,
3920 java/text/NumberFormat.java, java/text/ParseException.java,
3921 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3922 java/util/BitSet.java, java/util/Calendar.java,
3923 java/util/ConcurrentModificationException.java,
3924 java/util/Date.java, java/util/Dictionary.java,
3925 java/util/EmptyStackException.java, java/util/Enumeration.java,
3926 java/util/GregorianCalendar.java, java/util/Hashtable.java,
3927 java/util/Locale.java, java/util/MissingResourceException.java,
3928 java/util/NoSuchElementException.java, java/util/Observable.java,
3929 java/util/Observer.java, java/util/Properties.java,
3930 java/util/Random.java, java/util/SimpleTimeZone.java,
3931 java/util/Stack.java, java/util/StringTokenizer.java,
3932 java/util/TimeZone.java, java/util/TooManyListenersException.java,
3933 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
3936 * exception.cc: Include eh-common.h instead of duplicating
3939 1998-11-23 Tom Tromey <tromey@cygnus.com>
3941 * configure.host: Don't add `-O2' to libjava_flags. Only add
3942 `-Os' to libjava_flags once.
3944 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
3946 * Makefile.am: add LIBJAVA_JAVAFLAGS.
3947 * Makefile.in: likewise
3948 * acconfig.h: add ECOS conditional for configure.h
3949 * config.h.in: likewise
3950 * configure: add test for --with-ecos
3951 * configure.in: likewise
3952 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
3953 rename call to avoid name clash.
3954 * java/lang/natSystem.cc: add eCos clock support.
3955 * java/util/natGregorianCalendar.cc: add eCos support.
3957 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3959 * Makefile.am, Makefile.in, configure.host: tx39 build option
3962 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
3964 * java/io/BufferedReader.java: Added more comments for clarity.
3965 (mark): Used more mnemonic name for local var extraBuffSpace.
3967 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
3968 confusion with private method of same name in superclass.
3969 (skipRedundantLF): Set fields in special case to avoid infinite
3970 recursion. Check if markPos has been invalidated in special case.
3971 (readLine): Rewritten to use readLine method of superclass.
3972 (skip): Incorporated code from lineEnd.
3974 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
3976 * java/io/BufferedReader.java (readLine): New method.
3977 (lineEnd): new private method.
3978 (mark): Track special case for readLine of getting '\r' at the
3985 * java/io/InputStreamReader.java (read): Return number chars skipped
3986 rather than requested.
3988 * java/lang/StringBuffer.java (append): Update count and differentiate
3989 between field and local variable.
3991 * java/util/Date.java (parseTz): Evaluate in minutes rather than
3992 seconds. Deal with military style time.
3993 (parse): Consistently treat all timezones in minutes until final
3994 calculation. Flag as non-local timezone. Return value in milliseconds.
3995 (setTime): Adjust for year offset from 1900.
3996 (UTC): Adjust for year offset from 1900.
3998 1998-11-17 Tom Tromey <tromey@cygnus.com>
4000 * configure: Rebuilt.
4001 * configure.in: Switch on host, not target.
4003 * Makefile.in: Rebuilt.
4004 * Makefile.am (GCJ_no): New macro.
4005 (GCJ): Use @CANADIAN@.
4006 (GCJH_no): New macro
4007 (GCJH_canadian): New macro.
4008 (GCJH): Use @CANADIAN@.
4009 (ZIP_no): New macro.
4010 (ZIP_canadian): New macro.
4011 (ZIP): Use @CANADIAN@.
4012 * aclocal.m4, configure: Rebuilt.
4013 * configure.in (CANADIAN): Compute and subst.
4015 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4017 * java/io/FileDescriptor.java (finalize): Only close file
4018 descriptor if valid.
4020 1998-11-17 Tom Tromey <tromey@cygnus.com>
4022 * prims.cc (_Jv_InitRuntime): Removed.
4024 1998-11-16 Tom Tromey <tromey@cygnus.com>
4026 * java/io/FileOutputStream.java (close): Only close file
4027 descriptor if valid.
4028 (finalize): New method.
4030 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4031 (_Jv_NewPrimArray): Likewise.
4032 * boehm.cc (_Jv_RegisterFinalizer): Use
4033 GC_REGISTER_FINALIZER_NO_ORDER.
4034 (GC_GENERIC_MALLOC): New define.
4035 (_Jv_AllocObj): Use it.
4036 (_Jv_AllocArray): Likewise.
4037 (_Jv_AllocBytes): Likewise.
4038 (_Jv_MarkObj): Just return if vtbl not set.
4039 (_Jv_MarkArray): Likewise.
4040 (MAYBE_MARK): New macro; use everywhere.
4041 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4043 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4045 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4046 to a jlong before calculation to prevent overflow.
4048 1998-11-16 Tom Tromey <tromey@cygnus.com>
4050 * Makefile.in: Rebuilt.
4051 * Makefile.am (nat_headers): Fixed typo.
4053 1998-11-15 Tom Tromey <tromey@cygnus.com>
4055 * java/lang/Class.h (Class::getName): Removed definition.
4056 * Makefile.in: Rebuilt.
4057 * Makefile.am (nat_headers): Added InstantiationException.h,
4058 NoSuchMethodException.h.
4059 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4060 (init_name): New global.
4061 (hackRunInitializers): Use clinit_name.
4062 Include InstantiationException.h, NoSuchMethodException.h.
4063 (newInstance): Do some error checking (but not all). Call
4065 (forName): Throw exception if class not found.
4066 (getName): New method.
4067 (forName): Transform class name from external format to internal
4068 format before lookup.
4070 1998-11-15 Anthony Green <green@cygnus.com>
4072 * java/lang/Class.h (Class::forName): Method is static.
4074 * java/lang/natClass.cc (newInstance): Add simple implementation.
4077 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4079 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4080 int), for compatibility with jc1.
4082 1998-11-14 Tom Tromey <tromey@cygnus.com>
4084 * include/config.h.in: Rebuilt.
4085 * acconfig.h (LINUX_THREADS): New define.
4086 * configure: Rebuilt.
4087 * configure.in: Define LINUX_THREADS if using POSIX threads on
4088 Linux. Look for pthread_mutexattr_setkind_np function.
4089 * posix-threads.cc (throw_cleanup): New function.
4090 (really_start): Push cleanup function.
4091 (_Jv_ThreadCancel): New function.
4092 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4093 (_Jv_ThreadInitData): Set `exception' field in new structure.
4094 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4096 (_Jv_ThreadWait): New function.
4097 (_Jv_InitThreads): Initialize daemon globals.
4098 (FLAG_DAEMON): New macro.
4099 (really_start): Notify daemon_cond when non-daemon thread exits.
4100 Include <java/lang/System.h>.
4101 (struct starter): `object' field now a thread.
4102 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4103 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4104 (_Jv_ThreadWait): Removed definition.
4105 (_Jv_Thread_t): Added `exception' field.
4106 (_Jv_ThreadCancel): Removed definition.
4108 1998-11-13 Tom Tromey <tromey@cygnus.com>
4110 * Makefile.in: Rebuilt.
4111 * Makefile.am (libjava.zip): Compute javac before changing
4114 * Makefile.in: Rebuilt.
4115 * Makefile.am (libjava.zip): Include directory entries.
4117 * Makefile.in: Rebuilt.
4118 * Makefile.am (expanded): New macro.
4121 1998-11-12 Tom Tromey <tromey@cygnus.com>
4123 * prims.cc (clone): New function.
4124 * include/java-array.h (__JArray::clone): Removed definition.
4126 * java/lang/natObject.cc (clone): Don't assert that class is not
4127 an array; array's `clone' method just calls this one.
4129 * Makefile.in: Rebuilt.
4130 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4131 Now creates zip file. Changed all users.
4133 (data_DATA): New macro.
4135 1998-11-11 Tom Tromey <tromey@cygnus.com>
4137 * configure: Rebuilt.
4138 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4140 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4142 * java/io/InputStream.java (reset): Add msg to thrown exception.
4144 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4146 * java/io/LineNumberInputStream.java: Rewritten.
4148 * java/io/StringBufferInputStream.java: Removed extraneous import.
4150 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4152 * java/io/StringBufferInputStream.java: Rewritten.
4154 * java/util/Date.java (parseMonth): Optimize.
4155 (parseDayOfWeek): Created.
4156 (parse): Optimize to use parseDayOfWeek.
4158 1998-11-11 Tom Tromey <tromey@cygnus.com>
4160 * java/lang/StringBuffer.java (append): Handle case where STR is
4163 * include/javaprims.h: Regenerated class declarations.
4165 * configure: Rebuilt.
4166 * configure.in: Added --enable-gcj-classes,
4167 --enable-single-compilation, --enable-source-compilation flags.
4168 * Makefile.in: Rebuilt.
4169 * Makefile.am (java_io_files): New macro.
4170 (java_lang_files): Likewise.
4171 (java_text_files): Likewise.
4172 (java_util_files): Likewise.
4173 (java_files): Use new macros.
4174 (java-io.o): New target.
4175 (java-lang.o): Likewise.
4176 (java-text.o): Likewise.
4177 (java-util.o): Likewise.
4178 (src_io_files): New macro.
4179 (src_lang_files): Likewise.
4180 (src_text_files): Likewise.
4181 (src_util_files): Likewise.
4182 (class_io_files): New macro.
4183 (class_lang_files): Likewise.
4184 (class_text_files): Likewise.
4185 (class_util_files): Likewise.
4186 (class_files): Use new macros.
4187 (javao_files): Define conditionally.
4188 (.java.o): New target.
4189 ($(javao_files)): New target.
4191 (GCJH): Added $(EXEEXT).
4192 (CLASSPATH_ENV): Removed.
4193 (GCJCOMPILE): New macro.
4195 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4197 * java/util/Date.java (parse): Written from scratch.
4199 1998-11-11 Tom Tromey <tromey@cygnus.com>
4201 * java/lang/Throwable.java (toString): Correct sense of test for
4202 determining when to include detail message in result.
4204 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4207 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4209 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4211 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4212 (_Jv_RegisterClass): Use it.
4213 * include/jvm.h (_Jv_RegisterClasses): Declare.
4214 * java/lang/natObject.cc (init): Removed.
4215 (sync_init): Never call _Jv_InitializeSyncMutex.
4216 (_Jv_InitializeSyncMutex): Don't set `init'.
4217 * prims.cc (JvRunMain): Don't run init functions.
4219 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4221 * java/lang/natClass.cc (initializeClass): Set state before
4222 resolving constants.
4224 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4225 (STATE_RESOLVED): New macro.
4226 (initializeClass): Call resolveConstants.
4227 (hackRunInitializers): Don't call resolveConstants.
4228 (_Jv_FindArrayClass): Move short-circuit return for primitive
4229 element types earlier in function.
4231 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4233 * prims.cc (no_memory): New global.
4234 (_Jv_makeUtf8Const): Throw no_memory.
4235 (_Jv_AllocObject): Likewise.
4236 (_Jv_NewObjectArray): Likewise.
4237 (_Jv_NewPrimArray): Likewise.
4238 (JvRunMain): Initialize no_memory.
4240 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4242 * java/io/FileInputStream.java: Corrected date comment.
4243 * java/io/SequenceInputStream.java: Rewritten.
4245 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4247 * java/lang/FirstThread.java (die): New method.
4248 * java/lang/natFirstThread.cc (die): Removed.
4250 (run): Use `DIE', not `die'.
4252 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4254 * java/io/CharArrayReader.java (read): Move check into synchronized
4255 block to prevent a close while in progress.
4258 * java/io/PushbackReader.java (read): Ditto.
4261 * java/io/StringReader.java (mark): Ditto.
4266 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4268 * java/io/PipedInputStream.java: Updated status.
4269 (connect): Added code to prevent infinite recursion and to
4270 differentiate exception causes.
4271 (read): Added code to differentiate exception causes.
4272 (receive): Made exception pass string with the cause.
4274 * java/io/PipedOutputStream.java: Updated status.
4275 (connect): Added code to call connect at the other end of the pipe.
4277 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4279 * java/io/PipedInputStream.java (connect): Throw exception if
4280 already connected to the same output stream.
4281 (read): Do bounds checking first.
4283 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4285 * java/io/PipedInputStream.java: Added private boolean outClosed.
4286 (available): Removed check if output stream is open.
4287 (close): Mark the buffer as empty so available returns 0.
4288 (read): Check if the output stream was closed and then return EOF
4289 when the buffer is empty.
4290 (receive): Mark the output stream as closed when passed a -1.
4292 * java/io/PipedOutputStream.java (close): Notify the input stream
4293 that there's no more data coming.
4294 (connect): Added a FIXME comment to note more coordination needed
4295 with PipedInputStream.
4296 (flush): Added a FIXME comment to mark what this method might do
4299 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4301 * java/io/PipedInputStream.java: Rewritten.
4303 1998-10-30 Tom Tromey <tromey@cygnus.com>
4305 * java/lang/Throwable.java: Rewrote from scratch.
4307 * java/lang/Class.h (Class): Don't mention newMultiArray.
4308 * prims.cc (newMultiArray): Removed.
4309 (_Jv_NewMultiArray): Removed.
4310 (newArray): Removed.
4311 (new_multi_array): New function.
4312 (_Jv_NewMultiArray): Rewrote from scratch.
4314 * include/javaprims.h: Regenerated class declarations.
4315 * classes.pl (scan): Don't declare PrimClass.
4316 * include/cni.h (JvPrimClass): Use new names for classes.
4317 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4318 added _Jv_PrimClass.
4319 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4320 (_Jv_initPrimClass): Removed.
4321 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4322 (_Jv_AllocObject): Added comment.
4323 (_Jv_NewObjectArray): Likewise.
4324 (_Jv_NewPrimArray): Likewise.
4326 1998-10-29 Tom Tromey <tromey@cygnus.com>
4328 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4329 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4331 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4333 * java/lang/natObject.cc (init): New global.
4334 (sync_init): Call _Jv_InitializeSyncMutex if required.
4336 * Makefile.in: Rebuilt.
4337 * Makefile.am (nat_headers): Added ClassLoader.h.
4338 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4339 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4340 internalAddClass, lookupArray no longer friends.
4341 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4342 _Jv_FindArrayClass now friends.
4343 * java/lang/natClass.cc (HASH_LEN): New macro.
4344 (HASH_UTF): Likewise.
4345 (loaded_classes): New global.
4346 (_Jv_FindClass): New function.
4347 (ClassClass): New define.
4348 (_Jv_FindClassInCache): New function.
4349 (_Jv_RegisterClass): Likewise.
4350 (_Jv_NewClass): Likewise.
4352 (ObjectClass): New define.
4353 (CloneableClass): New define.
4354 * prims.cc (_Jv_FindClass): Removed.
4355 (simpleLookupClass): Removed.
4356 (insertClass): Removed.
4357 (CLASSHASHSZ): Removed.
4358 (classPool): Removed.
4359 (_Jv_RegisterClass): Removed.
4360 (internalAddClass): Removed.
4361 (ClassClass): Removed.
4362 (RuntimeClass): Removed.
4363 (lookupArray): Removed.
4364 (CloneableClass): Removed.
4365 (CLASSMAXSIG): Removed.
4366 Rearranged file to group related functions together.
4367 (_Jv_IsInstanceOf): Moved to natClass.cc.
4368 (abort_final): Removed.
4369 Removed some unused includes.
4370 (classFromSig): Removed.
4371 (_Jv_FindClassFromSignature): New function.
4372 (_Jv_initPrimClass): Renamed.
4373 (getClass): Removed.
4375 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4377 * java/io/FileDescriptor.java (finalize): Throws IOException
4378 instead of Throwable.
4380 * java/io/FileInputStream.java: Rewritten.
4382 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4383 at the end of a comment.
4385 1998-10-29 Tom Tromey <tromey@cygnus.com>
4387 * include/javaprims.h: Regenerated class declarations.
4388 * classes.pl (scan): Don't special-case ClassLoader.
4390 * prims.cc (processClass): Removed.
4391 (_Jv_InitClass): Removed.
4392 Removed all CSTATE_ macros.
4393 (resolveConstants): Removed.
4395 (_Jv_NewMultiArray): Cleaned up.
4396 * Makefile.in: Rebuilt.
4397 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4398 * java/lang/Class.h (Class): Declare new methods. processClass no
4400 * java/lang/Class.java (hackTrampoline): New method.
4401 (initializeClass): Declare.
4402 (hackRunInitializers): Declare.
4403 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4404 (initializeClass): New method.
4405 (hackRunInitializers): New method.
4406 (init_name, void_signature): Moved from prims.cc.
4407 (_Jv_InitClass): New function.
4408 (isAssignableFrom): Don't call processClass.
4409 (STATE_NOTHING): New macro.
4410 (resolveConstants): New function.
4412 (ErrorClass): New define.
4414 * java/lang/Class.java (getClassLoader): Declare.
4415 * java/lang/ClassLoader.java: Rewrote from scratch.
4417 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4418 AbstractMethodError.h, IllegalAccessError.h,
4419 NoClassDefFoundError.h.
4420 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4421 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4422 longer static. Changed return type.
4423 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4424 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4425 * prims.cc (findMethodLocal): Removed.
4426 (processClass): Use _Jv_GetMethodLocal.
4428 1998-10-28 Tom Tromey <tromey@cygnus.com>
4430 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4431 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4433 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4434 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4436 * include/jni.h: Added copyright header.
4437 * include/javaprims.h: Added copyright header.
4438 * include/java-field.h: Added copyright header.
4439 * include/java-array.h: Added copyright header.
4440 * include/cni.h: Added copyright header.
4442 * include/javaprims.h: Regenerated class declarations using
4443 classes.pl; now they are complete.
4444 * classes.pl: New file.
4446 * java/lang/natMath.cc: Include <config.h>.
4447 * java/lang/reflect/natField.cc: Include <config.h>.
4448 * java/util/NativeUtil.java: Removed.
4449 * Makefile.in: Rebuilt.
4450 * Makefile.am (nat_headers): Added Math.h.
4451 * java/lang/Math.h: Removed.
4452 * java/util/natGregorianCalendar.cc: Added copyright header.
4454 * java/lang/natFloat.cc: Added copyright header.
4455 * java/lang/Byte.java: Added copyright header.
4456 * java/lang/Void.java: Added copyright header.
4457 * java/lang/Short.java: Added copyright header.
4459 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4461 * include/javaprims.h (java::io): Added bunch of missing classes.
4463 * java/io/DataInputStream.java (readLine): Added a special case
4464 for handling BufferedInputStream data to reduce the likelihood
4465 of a pushback error.
4466 (skipBytes): Added code to handle negative number of skip bytes.
4468 * java/io/StreamTokenizer.java: Rewritten.
4470 1998-10-28 Tom Tromey <tromey@cygnus.com>
4472 * java/util/natGregorianCalendar.cc (computeFields): Call
4473 getRawOffset as a method.
4475 * include/javaprims.h (java::io): Added FilterOutputStream.
4476 * Makefile.in: Rebuilt.
4477 * Makefile.am (nat_headers): Added PrintStream.h,
4478 FilterOutputStream.h.
4479 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4481 (die): New function.
4482 (run): Die if `main' not found, is not public, or is not static.
4484 * boehm.cc (_Jv_MarkObj): Use new field names.
4485 * include/java-field.h (JvGetFirstInstanceField): Use new field
4487 (JvNumInstanceFields): Likewise.
4488 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4489 (getInterfaces): Likewise.
4490 * prims.cc (CLASS_CONSTANTS): Removed.
4491 (CLASS_CONST_SIZE): Likewise.
4492 (CLASS_CONST_TAG): Likewise.
4493 (CLASS_CONST_DATA): Likewise.
4494 (CLASS_CONST_UTF8): Likewise.
4495 (WORD2UTF): Likewise.
4496 (CLASS_CLASS): Likewise.
4497 (CLASS_PRIM_SIG): Likewise.
4498 (CLASS_ARRAY_CACHE): Likewise.
4499 (HASH_CHARS): Likewise.
4500 (hashClassName): Likewise.
4501 Many changes to use new field names.
4502 * java/lang/Class.h (Class): Renamed fields to track compiler.
4504 1998-10-27 Tom Tromey <tromey@cygnus.com>
4506 * java/lang/natClass.cc: Use #pragma implementation.
4507 (getComponentType): Moved into header.
4508 (getModifiers): Likewise.
4509 (getName): Likewise.
4510 (getSuperclass): Likewise.
4511 (isArray): Likewise.
4512 (isPrimitive): Likewise.
4513 * include/jvm.h (_Jv_FindClass): Declare.
4514 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4515 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4516 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4517 * java/lang/Class.h: Rewrote from scratch.
4518 * prims.cc: Many changes to work with new Class.h.
4519 * include/java-field.h (CLASS_FIELDS): Removed.
4520 (CLASS_SFIELDS): Likewise.
4521 (CLASS_IFIELDS): Likewise.
4522 (CLASS_NFIELDS): Likewise.
4523 (CLASS_NIFIELDS): Likewise.
4524 (CLASS_NSFIELDS): Likewise.
4525 (CLASS_FSIZE): Likewise.
4526 (JvGetFirstInstanceField): Rewrote.
4527 (JvNumInstanceFields): Likewise.
4529 * java/lang/Object.h: Added copyright comment.
4531 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4533 * java/text: New package directory.
4534 * java/text/FieldPosition.java: New class.
4535 * java/text/ParsePosition.java: New class.
4536 * java/text/ParseException.java: New Exception class.
4537 * java/text/Format.java: New class.
4538 * java/text/NumberFormat.java: New (empty placeholder) class.
4539 * java/text/DateFormatSymbols.java: New class (no Locales support).
4540 * java/text/DateFormat.java: New Format class (incomplete).
4541 * java/text/SimpleDateFormat.java: New DateFormat class.
4543 * include/javaprims.h (java::test): Added new package and classes.
4544 * java/util/Calendar.java (clone): New method.
4545 * java/util/Date.java (toString): Added non-native implementation.
4546 (parse): Made public instead of synchronized.
4547 * java/util/natDate.cc (toString): Removed.
4548 * java/util/natGregorianCalendar.cc (computeFields):
4549 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4551 1998-10-27 Tom Tromey <tromey@cygnus.com>
4553 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4555 * prims.cc (lookupArray): Added explanatory comment.
4556 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4557 class. Mark the class of each object.
4558 (_Jv_MarkArray): Mark the object's class.
4560 * configure: Rebuilt.
4561 * configure.in: Create java-gc.h.
4562 * include/boehm-gc.h: New file.
4563 * include/no-gc.h: New file.
4564 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4566 * java/lang/Object.h: Include java-gc.h.
4567 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4568 friends, if defined.
4569 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4571 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4573 1998-10-26 Tom Tromey <tromey@cygnus.com>
4575 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4576 paragraph separators, not numbers.
4578 * java/io/Writer.java (write): Removed write(char) to avoid
4580 * java/util/Properties.java: Rewrote from scratch.
4581 * include/javaprims.h (java::io): Added PrintWriter,
4582 BufferedWriter, PushbackReader.
4584 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4586 * java/lang/System.java: exit() is a static method.
4588 1998-10-26 Tom Tromey <tromey@cygnus.com>
4590 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4592 (_Jv_NewStringUtf8Const): Likewise.
4593 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4594 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4596 * java/lang/Object.h (Object): Add mark_array as friend function.
4597 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4598 _Jv_AllocBytes, to ensure that header is marked.
4599 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4601 (mark_array): Push sync_info field for array.
4603 1998-10-24 Tom Tromey <tromey@cygnus.com>
4605 * java/lang/String.java (String): Updated for StringBuffer
4607 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4609 * java/lang/StringBuffer.java: Renamed fields to conform to
4610 serialization spec: buffer->value, next->count, copy->shared.
4612 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4614 * java/util/TimeZone.java: New class.
4615 * java/util/SimpleTimeZone.java: New class.
4616 * java/util/Locale.java: New file.
4617 * java/util/Calendar.java: Make almost complete.
4618 * java/util/GregorianCalendar.java
4619 * java/util/natGregorianCalendar.cc: New file.
4620 * java/util/Date.java: Re-written from scratch.
4621 * java/util/natDate.cc (setTime): Removed - no longer native.
4622 * include/javaprims.h (java::util): Add new classes.
4623 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4624 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4626 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4628 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4629 returning it as a jint.
4631 1998-10-23 Tom Tromey <tromey@cygnus.com>
4633 * prims.cc (arg_vec, main_group, main_thread): New globals.
4634 (JvRunMain): Use them.
4636 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4638 * java/io/DataInputStream.java: Rewritten.
4640 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4641 tertiary bytes with 0x80 per spec.
4643 1998-10-23 Tom Tromey <tromey@cygnus.com>
4645 * java/lang/String.java (init): Changed name of `copy' argument.
4646 * java/lang/natString.cc (init): Inverted sense of `copy'
4649 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4650 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4651 * boehm.cc (ObjectClass): New define.
4652 (ClassClass): Likewise.
4653 (mark_obj): Special-case Object and Class.
4655 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4657 * java/util/BitSet.java: Rewrote from scratch.
4659 * prims.cc (lookupArray): Removed useless cast.
4661 * java/lang/natObject.cc: Use `#pragma implementation'.
4663 * java/lang/String.java (init): Added `copy' argument.
4664 (String): Look in StringBuffer to find char array.
4665 * java/lang/natString.cc (init): Added `copy' argument.
4666 * java/lang/StringBuffer.java: Rewrote from scratch.
4668 * java/lang/Compiler.java: Rewrote from scratch.
4669 * java/lang/Throwable.java: Don't use NativeLang.
4670 * include/javaprims.h (java::lang): Don't mention NativeLang.
4671 * java/lang/Process.java: Rewrote from scratch.
4672 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4674 (currentClassLoader): Likewise.
4675 (currentLoadedClass): Likewise.
4676 * java/lang/natClass.cc (getClassLoader): Commented out.
4677 * java/lang/Class.java (getClassLoader): Commented out.
4678 * java/lang/Compiler.java: Removed.
4679 * java/lang/NativeLang.java: Removed.
4681 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4682 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4683 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4684 (_Jv_hashUtf8String): Now static.
4685 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4686 name of return type.
4688 * java/lang/Class.h (Class): Declare checkMemberAccess.
4689 * Makefile.in: Rebuilt.
4690 * Makefile.am (nat_headers): Added Member.h.
4691 * java/lang/natClass.cc: Include Member.h.
4692 (getDeclaredClasses): Call checkMemberAccess.
4693 * java/lang/Class.java (checkMemberAccess): Call
4694 SecurityManager.checkMemberAccess.
4696 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4698 * java/lang/SecurityManager.java: Rewritten.
4700 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4702 * java/applet/Applet.java, java/applet/AppletContext.java,
4703 java/applet/AppletStub.java, java/applet/AudioClip.java,
4704 java/awt/AWTError.java, java/awt/AWTException.java,
4705 java/awt/BorderLayout.java, java/awt/Button.java,
4706 java/awt/Canvas.java, java/awt/CardLayout.java,
4707 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4708 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4709 java/awt/Color.java, java/awt/Component.java,
4710 java/awt/Container.java, java/awt/Dialog.java,
4711 java/awt/Dimension.java, java/awt/Event.java,
4712 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4713 java/awt/Font.java, java/awt/FontMetrics.java,
4714 java/awt/Frame.java, java/awt/Graphics.java,
4715 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4716 java/awt/GridLayout.java, java/awt/Image.java,
4717 java/awt/Insets.java, java/awt/Label.java,
4718 java/awt/LayoutManager.java, java/awt/List.java,
4719 java/awt/MediaTracker.java, java/awt/Menu.java,
4720 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4721 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4722 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4723 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4724 java/awt/TextArea.java, java/awt/TextComponent.java,
4725 java/awt/TextField.java, java/awt/Toolkit.java,
4726 java/awt/Window.java, java/awt/image/ColorModel.java,
4727 java/awt/image/CropImageFilter.java,
4728 java/awt/image/DirectColorModel.java,
4729 java/awt/image/FilteredImageSource.java,
4730 java/awt/image/ImageConsumer.java,
4731 java/awt/image/ImageFilter.java,
4732 java/awt/image/ImageObserver.java,
4733 java/awt/image/ImageProducer.java,
4734 java/awt/image/IndexColorModel.java,
4735 java/awt/image/MemoryImageSource.java,
4736 java/awt/image/PixelGrabber.java,
4737 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4738 java/awt/peer/CanvasPeer.java,
4739 java/awt/peer/CheckboxMenuItemPeer.java,
4740 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4741 java/awt/peer/ComponentPeer.java,
4742 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4743 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4744 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4745 java/awt/peer/MenuBarPeer.java,
4746 java/awt/peer/MenuComponentPeer.java,
4747 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4748 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4749 java/awt/peer/TextAreaPeer.java,
4750 java/awt/peer/TextComponentPeer.java,
4751 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4752 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4753 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4754 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4755 java/net/MalformedURLException.java, java/net/NativeNet.java,
4756 java/net/ProtocolException.java, java/net/ServerSocket.java,
4757 java/net/Socket.java, java/net/SocketException.java,
4758 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4759 java/net/URL.java, java/net/URLConnection.java,
4760 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4761 java/net/URLStreamHandlerFactory.java,
4762 java/net/UnknownHostException.java,
4763 java/net/UnknownServiceException.java: Removed.
4765 1998-10-22 Tom Tromey <tromey@cygnus.com>
4767 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4768 finalizer is not Object.finalize.
4769 (internalAddClass): Don't set `final' member of class.
4770 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4771 other places that know about finalize() location.
4772 * java/lang/Class.h (Class): Removed `final' field.
4774 * aclocal.m4, configure: Rebuilt.
4775 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4776 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4778 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4779 * Makefile.in: Rebuilt.
4780 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4782 1998-10-21 Tom Tromey <tromey@cygnus.com>
4784 * java/lang/Object.java (finalize): Move to be first method in
4787 * configure: Rebuilt.
4788 * configure.in (GCINCS): Include contents of boehm-cflags file.
4790 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4792 * java/lang/ArrayIndexOutOfBoundsException.java
4793 (ArrayIndexOutOfBoundsException): Fixed string literal.
4794 * java/lang/StringIndexOutOfBoundsException.java
4795 (StringIndexOutOfBoundsException): Fixed string literal.
4797 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4799 * natFileDescriptorEcos.cc added.
4800 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4802 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4804 * acconfig.h: test for __int32_t and __uint32_t added.
4805 * include/config.h.in: test for __int32_t and __uint32_t added.
4806 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4807 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4808 * configure.in: test for __int32_t and __uint32_t added.
4809 * configure: test for __int32_t and __uint32_t added.
4811 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4813 * configure.in: Test for --enable ecos and link
4814 natFileDescriptor.cc to natFileDescriptorEcos.cc or
4815 natFileDescriptorPosix.cc
4817 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4819 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
4821 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4824 * java/io/CharArrayReader.java (close): Synchronize on lock
4825 object per Reader contract.
4826 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4827 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4828 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4829 Ensure that arg passed in isn't negative.
4831 * java/io/FilterReader.java (FilterReader): Use the lock obj when
4832 constructing the superclass.
4834 * java/io/PushbackReader.java (close): Synchronize on lock
4835 object per Reader contract.
4836 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4837 (ready): Synchronize on lock obj. Throw IOException if reader
4839 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4840 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4841 Ensure that arg passed in isn't negative.
4842 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
4844 * java/io/StringReader.java: Created.
4846 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
4848 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4850 (read): Removed synchronized modifier to match JCL.
4851 (reset): Removed synchronized modifier to match JCL.
4852 (skip): Removed synchronized modifier to match JCL.
4854 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
4856 * java/io/PushbackReader.java (PushbackReader): Made
4857 constructors public.
4859 1998-10-17 Tom Tromey <tromey@cygnus.com>
4861 * java/io/PushbackInputStream.java (PushbackInputStream): Made
4862 constructors public.
4864 1998-10-16 Anthony Green <green@cygnus.com>
4866 * aclocal.m4, configure: Rebuilt.
4867 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4869 * configure.host: Rewrote.
4870 * Makefile.in: Rebuilt.
4871 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4872 (AM_CFLAGS): New macro.
4873 ($(c_files)): Use COMPILE macro.
4874 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4875 automake problem(s).
4877 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
4879 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4881 * java/io/CharArrayReader.java: Created.
4883 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
4885 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4886 size check to allow 0 per JCL.
4888 * java/io/PushbackReader.java: Created.
4890 1998-10-16 Tom Tromey <tromey@cygnus.com>
4892 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4893 <sys/time.h> includes.
4894 * java/io/natFile.cc: Conditionalize <unistd.h> include.
4895 * include/no-threads.h: Conditionalize <unistd.h> include on
4898 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4900 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4903 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
4905 * java/io/FilterReader.java: Created.
4907 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
4909 * java/io/PushbackInputStream.java: Rewritten.
4911 * java/io/BufferedInputStream.java (BufferedInputStream): Check
4912 that size passed to constructor is legal.
4913 (read): Check that args passed in are legal.
4914 (skip): Rewritten to get rid of the temporary buffer.
4915 (refill): Added marklimit check to grow the buffer.
4917 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4919 (bytesAvail): Removed.
4920 (read): Changed bytesAvail to Math.min.
4921 (skip): Changed bytesAvail to Math.min.
4923 * java/io/InputStream.java (read): Got rid of extraneous exceptions
4924 from the throws clause.
4925 (skip): Rewritten to use a temporary buffer.
4927 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4929 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4932 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4934 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4935 to write the double one word at a time.
4937 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
4939 * java/io/BufferedInputStream.java: Rewritten.
4941 1998-10-12 Tom Tromey <tromey@cygnus.com>
4943 * jni.cc: Include config.h and stddef.h.
4945 * java/lang/Class.h (_dispatchTable): Removed again.
4946 Removed all ACC_* defines again.
4948 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
4950 * Makefile.am (nat_files): Add netField.o.
4951 (libjava_a_SOURCES): Add jni.cc.
4952 (java/lang/reflect/Field.h): New rule.
4953 * Makefile.in: Re-generated.
4954 * include/javaprims.h: Add some extra class and typedefs.
4955 * include/jni.h: New file.
4958 * include/java-field.h: New file.
4959 * include/jvm.h: #include <java-field.h>.
4960 * boehm.cc: #include <java-field.h>.
4961 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
4962 * java/lang/reflect/Member.java: New class.
4963 * java/lang/reflect/Field.java: New class. (Very incomplete.)
4964 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
4966 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
4968 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
4969 testsuite/Makefile.in: Rebuilt.
4970 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
4971 * configure.host: Created.
4973 1998-10-10 Tom Tromey <tromey@cygnus.com>
4975 * java/lang/natObject.cc (sync_init): Always allocate a new
4978 1998-10-09 Tom Tromey <tromey@cygnus.com>
4980 * java/io/ByteArrayInputStream.java (mark): Renamed from
4983 * java/io/FileOutputStream.java (finalize): Removed.
4984 * java/io/FileDescriptor.java (finalize): New method.
4986 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
4988 * ByteArrayInputStream.java: Corrected status comment.
4990 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
4992 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
4994 1998-10-08 Tom Tromey <tromey@cygnus.com>
4996 * prims.cc (lookupArray): Use static array to initialize list of
4999 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5001 * prims.cc (lookupArray): Initialize the msize for new
5004 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5006 * configure: Rebuilt.
5007 * configure.in: Check for fsync and sleep.
5008 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5010 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5011 HAVE_SLEEP. Include config.h.
5013 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5014 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5017 1998-10-08 Tom Tromey <tromey@cygnus.com>
5019 * java/io/natFile.cc: Don't include SecurityManager.h.
5020 (performList): Renamed.
5021 (performMkdir): Likewise.
5022 (performRenameTo): Likewise.
5023 (performDelete): Likewise.
5025 * java/io/File.java (performDelete): Renamed from natDelete.
5026 (list): Now written in Java.
5027 (performList): New method.
5028 (performMkdir): New method.
5029 (mkdir): Now written in Java.
5030 (performRenameTo): New method.
5031 (renameTo): Now written in Java.
5033 1998-10-06 Tom Tromey <tromey@cygnus.com>
5035 * Makefile.in: Rebuilt.
5036 * Makefile.am (ETAGS_ARGS): New macro.
5037 (TAGS_DEPENDENCIES): Likewise.
5039 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5041 * Makefile.in: Rebuilt.
5042 * Makefile.am: Use -classpath option with javac.
5044 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5046 * java/io/FileOutputStream.java (finalize): Call
5049 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5051 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5053 * java/lang/mprec.c: Ditto.
5055 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5058 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5060 * java/io/InputStream.java (skip): Make local var i a long.
5062 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5064 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5065 * prims.cc (lookupArray): Use memcpy, not memmove.
5066 * include/config.h.in: Rebuilt.
5067 * acconfig.h (HAVE_MEMCPY): Added.
5068 * configure: Rebuilt.
5069 * configure.in: Check for memcpy again.
5071 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5072 String.compareTo, not ==.
5074 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5075 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5076 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5077 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5078 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5079 into new array's dtable.
5080 (_Jv_AllocObject): Use _Jv_DispatchTable.
5081 (_Jv_NewPrimArray): Likewise.
5082 (_Jv_NewObjectArray): Likewise.
5084 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5086 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5087 offending index value.
5088 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5090 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5091 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5093 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5095 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5097 * java/io/OutputStream.java (write): Use off and len parameters to
5098 output partial byte array.
5100 * java/io/BufferedReader.java, java/io/FileReader.java,
5101 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5102 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5103 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5104 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5106 * include/javaprims.h (java::lang): Added
5107 ExceptionInInitializerError, IllegalStateException,
5108 NoSuchFieldException, and UnsupportedOperationException.
5110 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5112 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5115 * include/java-array.h (__JArray): Added clone method.
5116 * prims.cc (CloneableClass): New define.
5117 (lookupArray): Initialize array class to indicate that it
5118 implements Cloneable.
5120 * java/lang/Class.h: Removed all ACC_* defines.
5121 * prims.cc: Include Modifier.h.
5122 (_Jv_LookupInterfaceMethod): Use methods in
5123 java.lang.reflect.Modifier, not ACC_ defines.
5125 * java/lang/Class.h (Class): Declare getClasses,
5126 getDeclaredClasses, getDeclaringClass, getModifiers,
5127 * java/lang/Class.java: Rewrote from scratch.
5129 * include/javaprims.h (java::lang): Added reflect and
5131 * Makefile.in: Rebuilt.
5132 * Makefile.am (nat_headers): Added Modifier.h.
5134 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5137 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5139 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5140 instead of test and abort.
5142 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5143 remove compiler warning.
5145 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5147 * java/lang/natDouble.cc: zero terminate string.
5148 * strtod.c: Set errno if no digits are found in fraction.
5150 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5152 * java/lang/reflect/Modifier.java: New file.
5154 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5155 * java/lang/VerifyError.java: Rewrote from scratch.
5156 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5157 * java/lang/UnknownError.java: Rewrote from scratch.
5158 * java/lang/StackOverflowError.java: Rewrote from scratch.
5159 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5160 * java/lang/InternalError.java: Rewrote from scratch.
5161 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5162 * java/lang/ExceptionInInitializerError.java: New file.
5163 * java/lang/Error.java: Rewrote from scratch.
5164 * java/lang/ClassFormatError.java: Rewrote from scratch.
5165 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5166 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5167 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5168 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5169 * java/lang/LinkageError.java: Rewrote from scratch.
5170 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5172 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5174 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5175 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5177 * include/cni.h (JvAllocObject): Moved from prims.cc.
5179 * prims.cc (JvAllocObject): Moved to cni.h.
5180 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5181 (finalize_name): Removed.
5183 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5185 * java/lang/Class.h (Class): Added size() method.
5186 * prims.cc (_Jv_MonitorEnter): Removed.
5187 (_Jv_MonitorExit): Removed.
5188 * java/lang/Object.h (JvSyncInfo): Removed.
5189 * Makefile.in: Rebuilt.
5190 * Makefile.am (nat_headers): Added Cloneable.h,
5191 CloneNotSupportedException.h.
5192 * java/lang/Object.h: Rewrote.
5193 * java/lang/natObject.cc: Rewrote from scratch.
5194 * java/lang/Object.java: Rewrote from scratch.
5196 * java/io/natFile.cc: Conditionally include <dirent.h>.
5197 (list): If no <dirent.h>, always return NULL.
5198 * configure: Rebuilt.
5199 * configure.in: Check for dirent.h.
5201 * prims.cc (lookupArray): Don't use sprintf.
5203 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5210 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5211 name conflict with method.
5213 * include/javaprims.h (java::util): Added HashtableEntry.
5215 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5217 * java/util/Hashtable.java: Rewritten.
5219 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5221 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5225 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5228 * posix-threads.cc (_Jv_CondWait): Now returns int.
5229 * include/javaprims.h (java::lang): Added
5230 IllegalMonitorStateException.
5231 * Makefile.in: Rebuilt.
5232 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5233 * include/no-threads.h (_Jv_CondDestroy): Removed.
5234 (_Jv_MutexDestroy): Removed.
5235 (_Jv_CondWait): Now returns int.
5236 (_Jv_CondNotify): Likewise. Added mutex argument.
5237 (_Jv_CondNotifyAll): Likewise.
5238 (_Jv_MutexLock): Always succeed.
5239 (_Jv_MutexUnlock): Likewise.
5240 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5241 (_Jv_HaveMutexDestroy): Define.
5242 (_Jv_CondNotify): Now returns int. Added mutex argument.
5243 (_Jv_CondNotifyAll): Likewise.
5244 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5245 (_Jv_MutexDestroy): Removed.
5246 (_Jv_CondWait): Now returns int.
5247 (_Jv_CondNotify): Likewise. Added mutex argument.
5248 (_Jv_CondNotifyAll): Likewise.
5249 * java/lang/natObject.cc (finalize_sync_info): New function.
5250 (init_mutex): Initialize `init' and register finalizer if
5253 (init_mutex): Use it.
5255 (notifyAll): Use it.
5257 (notify): Throw IllegalMonitorStateException on failure.
5258 (notifyAll): Likewise.
5259 (wait): Likewise. Also, throw InterruptedException if
5261 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5262 InterruptedException.h, IllegalArgumentException.h.
5263 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5265 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5266 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5267 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5268 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5269 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5270 * quick-threads.cc: Renamed all `JvPriv' functions.
5271 * prims.cc: Renamed all `JvPriv' functions.
5272 * posix-threads.cc: Renamed all `JvPriv' functions.
5273 * nogc.cc: Renamed all `JvPriv' functions.
5274 * no-threads.cc: Renamed all `JvPriv' functions.
5275 * boehm.cc: Renamed all `JvPriv' functions.
5276 * include/quick-threads.h: Renamed all `JvPriv' functions.
5277 * include/posix-threads.h: Renamed all `JvPriv' functions.
5278 * include/no-threads.h: Renamed all `JvPriv' functions.
5279 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5281 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5283 (JvPrivCondNotify): Do nothing.
5284 (JvPrivCondNotifyAll): Do nothing.
5286 * prims.cc (processClass): Handle case where state is
5289 * java/lang/natFirstThread.cc: Include <stdlib.h>
5291 * configure: Rebuilt.
5292 * configure.in: Fixed sense of --enable-libjava-debug.
5294 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5295 it can be used afterward by the assertion.
5297 * configure: Rebuilt.
5298 * configure.in: When cross-compiling, assume alloca.
5300 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5301 __builtin_alloca (autoconf docs are wrong here).
5303 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5305 (available): Use `FD_ZERO' (typo fix).
5307 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5309 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5310 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5312 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5313 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5316 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5318 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5320 * java/lang/natDouble.cc: Declare alloca safely.
5322 * configure, include/config.h.in: Rebuilt.
5323 * configure.in: Add alloca check.
5325 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5327 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5328 condition while calling notify.
5329 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5330 (interrupt): Hold mutex for interrupt condition while calling
5333 * java/lang/natString.cc (init): Allocate and try to read `count'
5334 characters, not `count - offset' characters.
5336 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5337 Correctly compute `count'.
5339 * java/lang/Boolean.java (getBoolean): Return false if property
5342 * java/lang/System.java (setProperties): Set prop_init.
5344 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5346 * java/io/PrintStream.java (println): Use line.separator, not
5348 * java/lang/System.java (out, err): Make both autoflush streams.
5349 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5351 * include/config.h.in: Rebuilt.
5352 * acconfig.h (HAVE_MEMCPY): Removed.
5353 * configure: Rebuilt.
5354 * configure.in: Never define HAVE_MEMCPY.
5356 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5358 (_Jv_AllocString): Use JvAllocObject again.
5359 * java/lang/Class.h (thread): New field.
5360 (_Jv_AllocString): No longer a friend.
5361 * prims.cc (processClass): Removed dead code. Changed to more
5362 closely follow the Java Language Specification.
5363 (processClass): Return early if already at the right state.
5365 * prims.cc (JvNewStringUTF): Removed.
5366 * include/cni.h (JvNewStringUTF): New function.
5367 (_Jv_NewStringUTF): Declare as `extern "C"'.
5368 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5370 * java/lang/natDouble.cc: Added copyright info and header
5371 comment. Include <stdlib.h>.
5372 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5373 bytes as are chars in string.
5375 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5377 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5381 * java/lang/System.java (init_properties): Now native.
5382 * java/lang/natSystem.cc (init_properties): New method.
5383 Include java/util/Properties.h.
5385 * Makefile.in: Rebuilt.
5386 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5387 OutputStreamWriter.h, ByteArrayInputStream.h,
5388 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5389 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5390 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5391 Properties.h, Hashtable.h, Dictionary.h.
5394 * include/javaprims.h (java::io): Added Reader, Writer,
5395 InputStreamReader, OutputStreamWriter,
5396 UnsupportedEncodingException, ByteArrayInputStream,
5397 ByteArrayOutputStream, EOFException, SyncFailedException,
5398 PushbackInputStream.
5399 (java::lang): Added Cloneable.
5400 (java::util): Added NoSuchElementException, VectorEnumeration,
5401 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5403 * java/io/PipedReader.java: New file.
5405 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5407 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5410 * java/io/io-defs.h: Removed.
5412 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5413 (FileInputStream): Use new constructor. Can throw IOException.
5415 * java/lang/System.java (getProperty): Don't throw
5416 NullPointerException.
5418 * java/io/RandomAccessFile.java: Rewrote from scratch.
5420 * java/io/natFileDescriptor.cc: Include EOFException.h.
5422 (length): New method.
5423 (getFilePointer): New method.
5425 (available): New method.
5426 * java/io/FileDescriptor.java (SET, CUR): New constants.
5427 (seek, length, getFilePointer, read, available): New decls.
5429 * java/io/PipedWriter.java: New file.
5430 * java/io/StringWriter.java: New file.
5431 * java/io/CharArrayWriter.java: New file.
5432 * java/io/CharConversionException.java: New file.
5433 * java/io/BufferedWriter.java: New file.
5434 * java/io/FilterWriter.java: New file.
5435 * java/io/FileWriter.java: New file.
5437 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5438 OutputStreamWriter.h, NullPointerException.h,
5439 ByteArrayInputStream.h, InputStreamReader.h.
5440 (getBytes): New method.
5441 (init): Throw NullPointerException.
5442 (init): New function.
5443 * java/lang/String.java (getBytes): Added missing decl.
5444 (getBytes): New method.
5445 (String): Added byte[]-based constructors.
5446 (copyValueOf): Wrote.
5447 (init): Declare variant which takes byte array and encoding.
5448 Import java.io.UnsupportedEncodingException.
5450 * java/io/File.java: Rewrote from scratch.
5451 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5452 * java/io/FileDescriptor.java: Rewrote from scratch.
5453 * java/io/FilenameFilter.java: Rewrote from scratch.
5455 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5457 * java/io/SyncFailedException.java: New file.
5458 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5459 * java/io/InterruptedIOException.java: Rewrote from scratch.
5460 * java/io/FileNotFoundException.java: Rewrote from scratch.
5461 * java/io/EOFException.java: Rewrote from scratch.
5462 * java/io/IOException.java: Rewrote from scratch.
5463 * java/io/PrintStream.java: Rewrote from scratch.
5464 * java/io/DataOutputStream.java: Rewrote from scratch.
5465 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5466 * java/io/FilterOutputStream.java: Rewrote from scratch.
5467 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5468 * java/io/PipedOutputStream.java: Rewrote from scratch.
5469 * java/io/FileOutputStream.java: Rewrote from scratch.
5470 * java/io/OutputStream.java: Rewrote from scratch.
5471 * java/io/DataOutput.java: Rewrote from scratch.
5473 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5475 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5477 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5479 * configure.in: Add --enable-libjava-debug
5481 * Makefile.am (nat_headers): Add java/lang/Float.h and
5484 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5486 * Makefile.in, configure, include/config.h.in: Rebuilt.
5488 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5490 * java/lang/Float.java: Rewritten
5491 * java/lang/Double.java: Rewritten
5492 * java/lang/natFloat.cc: toString() added.
5493 * java/lang/natDouble.cc: toString() added.
5494 * java/lang/natDouble.cc: doubleValueOf() added.
5495 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5496 java/lang/strtod.c: added.
5497 * ieeefp.h: __sparc added.
5498 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5500 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5502 * include/javaprims.h (java::lang): Added
5503 CloneNotSupportedException.
5505 * java/lang/Object.java (clone): No longer native. Implemented.
5506 * java/lang/natObject.cc (clone): Removed.
5508 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5510 * prims.cc: Don't make definitions `extern "C"'.
5511 (_Jv_RegisterClass): Renamed from registerClass.
5512 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5513 (_Jv_NewArray): Likewise.
5514 (_Jv_NewMultiArray): Likewise.
5515 (_Jv_CheckCast): Likewise.
5516 (_Jv_LookupInterfaceMethod): Likewise.
5517 (_Jv_CheckArrayStore): Likewise.
5518 (_Jv_RegisterClass): Likewise.
5520 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5521 * configure: Rebuilt.
5522 * configure.in: Don't check for fmod; it is provided by the fdlibm
5524 * prims.cc (fmod): Removed.
5526 * java/lang/natString.cc (charAt): Use _Jv_uint.
5527 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5528 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5529 (equalUtf8Consts): Likewise.
5530 (internalAddClass): Use _Jv_uint.
5531 (processClass): Likewise.
5532 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5533 (_Jv_uint): Renamed from uint32.
5534 (struct _Jv_Utf8Const): Changed members to use new type names.
5536 * configure: Rebuilt.
5537 * configure.in: Don't check for memcpy. Require memmove and a way
5539 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5541 (currentTimeMillis): Don't use #error.
5543 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5545 * java/lang/Math.java: static member random renamed to random_ to
5546 avoid conflict with member function of the same name.
5547 * include/javaprims.h: java.util.Random added.
5549 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5551 * include/java-chartables.h: Regenerated.
5552 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5555 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5557 * java/lang/Math.java: Rewritten.
5558 * java/lang/natMath.cc: New file.
5559 * Files added from fdlibm:
5560 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5561 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5562 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5563 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5564 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5565 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5566 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5567 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5568 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5569 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5570 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5571 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5572 java/lang/k_cos.c, java/lang/sf_ceil.c,
5573 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5574 java/lang/ieeefp.h, java/lang/fdlibm.h
5575 * Makefile.am: rules added for compiling C files from fdlibm.
5577 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5579 * chartables.pl: Minor documentation fixes.
5581 * configure: Rebuilt.
5582 * configure.in: Fixed --help output for --enable-fast-character.
5584 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5586 * configure: Rebuilt.
5587 * configure.in: Recognize --enable-fast-character.
5588 * acconfig.h (COMPACT_CHARACTER): New define.
5589 * include/config.h.in: Rebuilt.
5590 * include/java-chartables.h: New file.
5591 * Makefile.in: Rebuilt.
5592 * Makefile.am (nat_files): Added natCharacter.o.
5593 * java/lang/natCharacter.cc: New file.
5594 * chartables.pl (set_attribute): New function.
5595 (@attributes, @second_attributes): New globals.
5596 ($ROMAN_START, $ROMAN_END): Likewise.
5597 (process_char): Call set_attribute when required.
5598 (print_char): Just print hex value.
5599 (print_block): Generate C++ syntax.
5600 (print_numerics): Likewise.
5601 (print_single_map): Likewise.
5602 (print_all_block): Likewise.
5603 (print_case_table): Likewise.
5604 (print_fast_tables): New function.
5605 Generate C++ code suitable for a header file.
5606 * java/lang/Character.java (table_search): Removed.
5607 (digit_value): Now native.
5608 (getNumericValue): Likewise.
5609 (getType): Likewise.
5610 Removed all automatically-generated tables.
5611 (Tamil_Digit_One): Removed.
5612 (isSpaceChar): Now native.
5613 (isTitleCase): Likewise.
5614 (isLowerCase): Likewise.
5615 (isUpperCase): Likewise.
5616 (toLowerCase): Likewise.
5617 (toTitleCase): Likewise.
5618 (toUpperCase): Likewise.
5619 (isDefined): Fixed sense of test.
5621 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5623 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5625 (regionMatches): Likewise.
5627 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5629 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5631 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5633 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5636 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5639 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5641 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5643 * prims.cc (instanceof_class): Removed.
5644 (instanceof_array): Likewise.
5645 (instanceof): Likewise.
5646 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5647 (_Jv_CheckCast): Likewise.
5648 * java/lang/natClass.cc (isAssignableFrom): New method.
5649 * java/lang/Class.java (isAssignableFrom): Now native.
5651 * include/cni.h (JvThrow): Use `extern inline'.
5652 (JvAllocObject): Likewise.
5653 (JvInitClass): Likewise.
5655 * java/lang/natSystem.cc (arraycopy): Only check class of source
5658 * prims.cc (_Jv_CheckArrayStore): Wrote.
5659 (_Jv_MonitorEnter): Prefer `JvThrow'.
5660 Include ArrayStoreException.h.
5661 (_Jv_CheckCast): Indentation cleanup.
5663 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5665 * chartables.pl: New file.
5666 * java/lang/Character.java: Rewrote from scratch.
5668 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5670 * java/lang/ArithmeticException.java,
5671 java/lang/ArrayIndexOutOfBoundsException.java,
5672 java/lang/ArrayStoreException.java,
5673 java/lang/ClassCastException.java,
5674 java/lang/ClassNotFoundException.java,
5675 java/lang/CloneNotSupportedException.java,
5676 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5677 java/lang/IllegalArgumentException.java,
5678 java/lang/IllegalMonitorStateException.java,
5679 java/lang/IllegalThreadStateException.java,
5680 java/lang/IndexOutOfBoundsException.java,
5681 java/lang/InstantiationException.java,
5682 java/lang/InterruptedException.java,
5683 java/lang/NegativeArraySizeException.java,
5684 java/lang/NoSuchMethodException.java,
5685 java/lang/NullPointerException.java,
5686 java/lang/NumberFormatException.java,
5687 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5688 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5690 * java/lang/IllegalStateException.java,
5691 java/lang/NoSuchFieldException.java,
5692 java/lang/UnsupportedOperationException.java: Created.
5694 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5696 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5697 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5699 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5701 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5703 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5705 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5707 * Makefile.in: Rebuilt.
5709 * include/javaprims.h (java::lang): Added
5710 StringIndexOutOfBoundsException.
5712 * java/lang/String.java: Added header comment and FIXME comment for
5713 missing constructors/methods.
5714 (endsWith): Adjusted offset into string to look at just the last chars.
5715 Commented out undocumented method.
5717 * java/lang/natString.cc: Added includes for
5718 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5719 (String::init): Throw StringIndexOutOfBoundsException.
5720 (String::charAt): Throw StringIndexOutOfBoundsException.
5721 (String::substring): Throw StringIndexOutOfBoundsException.
5722 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5723 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5724 (String::compareTo): Return difference/offset between chars/strings.
5726 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5728 * java/lang/Boolean.java (TYPE): Added comment.
5730 * java/lang/Byte.java (decode): Added - commented out until dependent
5731 code for Integer is written.
5732 (compareTo): JDK 1.2 methods written.
5733 (hashCode): Added comment to note that values have been verified.
5735 * java/lang/Short.java (decode): Added - commented out until dependent
5736 code for Integer is written.
5737 (compareTo): JDK 1.2 methods written.
5738 (hashCode): Added comment to note that values have been verified.
5740 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5742 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5744 * include/javaprims.h (java::lang): Added VirtualMachineError,
5746 * Makefile.in: Rebuilt.
5747 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5748 VirtualMachineError.h.
5749 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5750 (lookupArray): Likewise.
5751 (makeUtf8Const): Likewise.
5752 (_Jv_AllocObject): Likewise.
5753 (_Jv_NewObjectArray): Likewise.
5754 Include OutOfMemoryError.h.
5756 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5757 to use JvNewStringLatin1.
5759 * java/io/io-defs.h: Include java/lang/IOException.h.
5760 * Makefile.in: Rebuilt.
5761 * Makefile.am (nat_headers): Added
5762 ArrayIndexOutOfBoundsException.h,
5763 ClassFormatError.h,ClassNotFoundException.h,
5764 ClassCircularityError.h, ClassCastException.h,
5765 IncompatibleClassChangeError.h, AbstractMethodError.h,
5766 IllegalAccessError.h, LinkageError.h, Error.h,
5767 NegativeArraySizeException.h, IOException.h.
5768 * include/cni.h (SignalError): Removed declaration.
5769 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5770 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5771 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5772 (newInstance): Likewise.
5773 (forName): Likewise.
5774 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5776 (read): Use JvThrow, not SignalError.
5781 (open_read): Likewise.
5782 (open_write): Likewise.
5785 (newstr): New function.
5786 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5788 (lastModifiedUnchecked): Likewise.
5789 (lengthUnchecked): Likewise.
5790 * include/javaprims.h (sorry): Removed declaration.
5791 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5792 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5793 ClassCastException, IncompatibleClassChangeError,
5794 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5795 * prims.cc (instanceof_array): Use JvFail, not sorry.
5797 Include ArrayIndexOutOfBoundsException.h,
5798 ClassFormatError.h,ClassNotFoundException.h,
5799 ClassCircularityError.h, ClassCastException.h,
5800 IncompatibleClassChangeError.h, AbstractMethodError.h,
5801 IllegalAccessError.h, NegativeArraySizeException.h.
5802 (_Jv_ThrowBadArrayIndex): Implemented.
5803 (JvNewStringUTF): Use JvFail, not sorry.
5804 (_Jv_FindClass): Likewise.
5805 (_Jv_NewArray): Likewise.
5806 (throwException): Removed.
5807 (getClass): Use JvThrow.
5808 (processClass): Likewise.
5809 (_Jv_NewObjectArray): Likewise.
5810 (_Jv_NewMultiArray): Likewise.
5811 (_Jv_CheckCast): Likewise.
5812 (_Jv_LookupInterfaceMethod): Likewise.
5813 (SignalError): Removed.
5814 (getClass): Use _Jv_NewStringUtf8Const to create String.
5816 * java/lang/natSystem.cc (arraycopy): Throw
5817 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5819 * Makefile.in: Rebuilt.
5820 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
5822 * include/java-array.h: Mention gcjh, not gjavah.
5824 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5825 (canReadUnchecked): Likewise.
5826 (canWriteUnchecked): Likewise.
5827 (isFileUnchecked): Likewise.
5828 * java/io/natFileDescriptor.cc: Don't include cni.h.
5830 * java/lang/Thread.java (run__): Declare.
5831 * java/lang/natThread.cc (run__): New method, to avoid compiler
5833 (start): Use run__, not run_.
5835 * java/io/io-defs.h: Include cni.h and jvm.h.
5837 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
5839 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5840 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
5841 to natString.cc (with suitable renaming, inlines etc).
5842 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
5843 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
5844 * java/lang/String.h: Removed - now generated using gjavah.
5845 * java/lang/String.java: Re-written from scratch. Many native methods.
5846 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
5847 * java/lang/natString.cc: Many functions re-written for "compact
5848 strings" representation, or native java.lang.String methods added.
5849 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
5850 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
5851 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
5852 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
5853 * include/cni.h: Add inline method.
5854 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
5855 * include/javaprims.h: Moved some stuff frm String.h.
5856 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
5857 * Makefile.am (nat_header): Added Character.h and String.h.
5858 (String.h): Add new rule.
5860 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5862 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
5864 * posix-threads.cc: Include cni.h, jvm.h.
5865 * quick-threads.cc: Include cni.h, jvm.h.
5866 * nogc.cc: Include cni.h, not javaprims.h.
5867 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5868 * java/lang/natThread.cc: Rearranged #include ordering. Don't
5869 include java-assert.h.
5870 * java/lang/natSystem.cc: Include cni.h. Don't include
5872 * java/lang/natRuntime.cc: Include cni.h. Don't include
5874 * prims.cc: Rearranged #include ordering. Don't include
5875 java-array.h or java-assert.h.
5876 * boehm.cc: Include config.h, cni.h.
5877 * exception.cc: Include config.h, cni.h.
5878 * include/jvm.h: Include java-assert.h.
5879 * include/cni.h: Include java/lang/Object.h. Don't include
5880 java-threads.h or java-array.h.
5882 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
5884 * java/lang/Boolean.java: Rewritten.
5886 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5888 * java/lang/natFirstThread.cc (main_func): New typedef.
5889 (run): Use main_func, not JvPrivThreadStartFunc.
5890 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5892 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5894 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5897 Can't throw Java exceptions with C++ `throw':
5898 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5899 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5900 (setPriority): Likewise.
5904 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5905 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5907 Can't catch Java exceptions from C++:
5908 * java/lang/natThread.cc (finish_): New method.
5910 * java/lang/Thread.java (run_): Rewrote in Java.
5911 (finish_): New native method.
5913 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
5915 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5917 * include/javaprims.h (java::io): Added Serializable.
5919 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
5921 * java/util/EmptyStackException.java,
5922 java/util/NoSuchElementException.java: Rewritten.
5924 * java/util/ConcurrentModificationException.java,
5925 java/util/MissingResourceException.java,
5926 java/util/TooManyListenersException.java: Created.
5928 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5930 * include/cni.h (JvThrow): New function.
5931 * include/javaprims.h (_Jv_Throw): Declare.
5933 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
5935 * java/util/Observable.java: Rewritten.
5937 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5939 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
5940 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
5941 Include NullPointerException.h.
5943 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
5945 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
5946 assignability checks. Don't bother using memcpy.
5948 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
5950 * include/quick-threads.h (JvPrivThreadWait): New function.
5951 * include/no-threads.h (JvPrivThreadWait): New function.
5952 * include/posix-threads.h (JvPrivThreadWait): New function.
5953 * prims.cc (JvRunMain): Call JvPrivThreadWait.
5955 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
5957 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
5958 offsets by size of type that is being copied.
5960 * java/lang/natThread.cc (start): Don't pass `object' argument to
5962 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
5963 * posix-threads.cc (JvPrivThreadStart): Removed `object'
5965 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
5966 always pass thread as object.
5967 * include/quick-threads.h, include/posix-threads.h,
5968 include/no-threads.h (JvPrivThreadStart): Removed `object'
5971 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
5973 * java/util/Dictionary.java: Rewritten.
5975 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
5977 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
5978 (JvPrivThreadDestroy): Likewise.
5980 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
5982 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
5984 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
5986 * java/lang/natSystem.cc: Rewrote from scratch.
5987 * java/lang/System.java: Rewrote from scratch.
5988 * java/lang/Class.h (Class): Declare isAssignableFrom.
5989 * include/javaprims.h (java::lang): Added ArrayStoreException,
5990 IndexOutOfBoundsException.
5991 * Makefile.in: Rebuilt.
5992 * Makefile.am (nat_headers): Added ArrayStoreException.h,
5993 IndexOutOfBoundsException.h.
5994 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
5995 * include/jvm.h (_Jv_HashCode): New function.
5997 * java/lang/natThread.cc (suspend): Call checkAccess.
5999 * java/lang/Thread.java (setDaemon): Call checkAccess.
6001 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6003 * java/lang/Runtime.java: Rewrote from scratch.
6004 * java/lang/natRuntime.cc: Rewrote from scratch.
6006 * nogc.cc (JvPrivGCTotalMemory): New function.
6007 (JvPrivGCFreeMemory): Likewise.
6008 (total): New global.
6009 (JvPrivAllocObj): Increment total.
6010 (JvPrivAllocArray): Likewise.
6011 (JvPrivAllocBytes): Likewise.
6012 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6013 * boehm.cc (JvPrivGCTotalMemory): New function.
6014 (sum_blocks): Likewise.
6015 (JvPrivGCFreeMemory): Likewise.
6017 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6019 * include/javaprims.h (java::lang): Added FirstThread.
6020 * java/lang/natFirstThread.cc: New file.
6021 * java/lang/FirstThread.java: New file.
6022 * prims.cc (main_signature): Removed.
6023 (main_name): Removed.
6024 #include FirstThread.h.
6025 * Makefile.in: Rebuilt.
6026 * Makefile.am (TFRIEND): Removed.
6027 (java/lang/Thread.h): Likewise.
6028 (FTFRIEND): New macro.
6029 (java/lang/FirstThread.h): New target.
6030 (nat_files): Added natFirstThread.o.
6031 (nat_headers): Added FirstThread.h.
6032 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6033 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6035 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6039 * java/lang/natThread.cc (start): Synchronize the thread.
6040 (stop): Synchronize the thread.
6042 * java/lang/ThreadDeath.java: Rewrote from scratch.
6044 * Makefile.in: Rebuilt.
6045 * Makefile.am (TGFRIEND): New macro.
6046 (java/lang/ThreadGroup.h): New target.
6047 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6049 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6051 * nogc.cc: Include config.h.
6053 * java/lang/ThreadGroup.java: Rewrote from scratch.
6055 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6057 * java/lang/Thread.java (checkAccess): Only call in to security
6058 manager if it exists.
6059 (Thread): Don't check access when creating the first thread. Add
6060 this thread to the appropriate ThreadGroup.
6062 * java/lang/natThread.cc (run_): Call uncaughtException method on
6065 * java/lang/Runnable.java: Rewrote from scratch.
6066 * java/lang/Thread.java: Updated copyright comment to correct
6069 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6071 * java/util/Random.java: Rewritten.
6073 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6075 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6076 trailing 0 in array[].
6078 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6080 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6081 and RUNTESTFLAGS from AM_MAKEFLAGS.
6082 (SUBDIRS): Conditionally include testsuite.
6083 * Makefile.in: Rebuilt.
6085 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6087 * java/lang/Object.h: Include java-assert.h.
6089 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6091 * Makefile.am: Add testsuite directory.
6092 * configure.in: Build testsuite/Makefile.
6093 * Makefile.in, configure: Rebuilt.
6095 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6097 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6098 * include/jvm.h (_Jv_StartFirstThread): Declare.
6100 * include/javaprims.h (java::lang): Added Exception,
6103 * Makefile.in: Rebuilt.
6104 * Makefile.am (nat_headers): Added NullPointerException.h,
6105 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6106 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6107 (java/lang/Thread.h): New target.
6108 (TFRIEND): New macro
6110 * include/java-assert.h (JvFail): Use 0 and not NULL.
6112 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6113 instead of assuming we are a friend of Thread.
6114 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6115 instead of assuming we are a friend of Thread.
6117 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6119 * java/lang/natThread.cc: Rewrote from scratch.
6120 * java/lang/Thread.java: Rewrote from scratch.
6121 * prims.cc (JvRunMain): Use new Thread constructor.
6122 * include/javaprims.h (java::lang): Added InterruptedException.
6123 * Makefile.in: Rebuilt.
6124 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6125 * java/lang/Thread.h: Removed.
6126 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6127 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6129 * posix-threads.cc (JvPrivThreadJoin): Removed.
6130 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6131 (really_start): Don't notify join_cond.
6132 (JvPrivThreadStart): Added `data' argument.
6133 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6134 (JvPrivThreadJoin): Likewise.
6135 Use JvFail instead of sorry.
6136 (JvPrivThreadSuspend): Removed.
6137 (JvPrivThreadResume): Removed.
6138 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6139 (JvPrivThreadJoin): Likewise.
6140 (JvPrivThreadSuspend): Use JvFail.
6141 (JvPrivThreadResume): Likewise.
6142 (JvPrivThreadSuspend): Removed.
6143 (JvPrivThreadResume): Likewise.
6144 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6145 (JvPrivThread_t): Removed join_mutex, join_cond.
6146 Use JvFail instead of sorry.
6147 (JvPrivThreadSuspend): Removed.
6148 (JvPrivThreadResume): Likewise.
6150 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6152 * java/util/Observer.java: Rewritten
6153 * java/util/Enumeration.java: Rewritten
6155 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6157 * java/util/StringTokenizer.java: Rewritten
6158 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6159 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6160 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6162 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6164 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6167 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6168 Include java-assert.h.
6169 * include/java-assert.h: New file.
6170 * prims.cc (_Jv_Abort): New function.
6171 Include java-assert.h, not assert.h.
6172 (_Jv_MonitorExit): Use JvAssert.
6173 (resolveConstants): Likewise.
6174 (processClass): Likewise.
6175 (JvRunMain): Assert that method is found.
6177 * configure: Rebuilt.
6178 * configure.in: Check for test subdir.
6179 * Makefile.in: Rebuilt.
6180 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6182 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6183 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6185 * prims.cc (resolveConstants): Removed unused variables.
6186 (processClass): Likewise.
6188 * include/quick-threads.h (JvPrivThreadCurrent): Use
6190 * quick-threads.cc (destroy_data): New function.
6191 (JvPrivInitThreads): Create key.
6192 (JvPrivThreadKey): New global.
6193 (JvPrivThreadStart): Use coop_setspecific.
6195 * include/quick-threads.h, include/posix-threads.h,
6196 include/no-threads.h, no-threads.cc, quick-threads.cc,
6197 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6199 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6201 * include/no-threads.h (JvPrivThreadInitData): Don't set
6204 * include/quick-threads.h (JvPrivCondWait): coop function now
6206 (JvPrivThreadJoin): Likewise.
6208 * java/lang/Thread.h (Thread): Updated declaration of
6210 * include/quick-threads.h, include/posix-threads.h: Updated
6211 declaration of JvPrivThreadStart.
6212 * include/no-threads.h (JvPrivThreadStart): Changed definition
6214 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6215 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6216 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6218 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6220 * quick-threads.cc (qthrow): New function.
6221 (JvPrivInitThreads): New function.
6222 (started): New global.
6223 (JvPrivThreadStart): Call coop_start if required.
6224 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6225 (JvPrivThreadDestroy): Likewise.
6226 (JvPrivInitThreads): Removed.
6227 * include/posix-threads.h (JvPrivThreadCancel): Added error
6229 * java/lang/natThread.cc (stop_): Pass exception to
6232 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6234 * include/javaprims.h (java::lang): Added
6235 IllegalArgumentException, IllegalThreadStateException, Math,
6236 NullPointerException, ThreadDeath.
6237 (java::util): Added Enumeration.
6239 * Makefile.in: Rebuilt.
6240 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6242 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6244 (threadsv): Renamed from threads to avoid clash in C++ header.
6245 (groupsv): Likewise.
6246 * include/no-threads.h (JvPrivThreadStart): Removed.
6247 * no-threads.cc (JvPrivThreadStart): New function.
6248 * java/lang/Thread.java (Thread): New constructor for internal use.
6249 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6250 (Thread): Declare constructor.
6251 * prims.cc (JvRunMain): Create the initial Thread and
6253 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6254 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6255 Removed `daemon' argument.
6257 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6258 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6260 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6262 * Makefile.in: Rebuilt.
6263 * Makefile.am (INCLUDES): Include THREADINCS.
6265 * configure: Rebuilt.
6266 * configure.in: Recognize `qt' as a threads package.
6268 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6270 * java/util/Stack.java (pop): Null out topmost node for robustness.
6272 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6274 * java/util/Stack.java: Rewritten.
6275 * java/util/Vector.java (isEmpty): Simplified expression.
6277 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6279 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6280 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6282 * include/java-array.h (JvNewObjectArray): Created inline to
6285 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6288 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6290 * java/util/Vector.java: Rewritten.
6291 * java/io/Serializable.java: Created.
6293 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6295 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6296 Infinity is 1/0, not 1/1.
6298 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6300 * configure: Rebuilt.
6301 * configure.in: Removed duplicate AC_ARG_WITH.
6303 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6305 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6307 (_Jv_InitClass): Renamed from soft_initialise_class.
6308 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6309 (_Jv_CheckCast): Renamed from soft_checkcast.
6310 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6311 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6312 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6313 * include/cni.h (JvInitClass): New function.
6314 (_Jv_InitClass): Renamed from soft_initialise_class.
6316 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6318 * configure: Rebuilt.
6319 * configure.in (CXX): Don't set.
6320 * Makefile.in: Rebuilt.
6321 * Makefile.am (AM_CXXFLAGS): New macro.
6323 * Makefile.in: Rebuilt.
6324 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6325 nogc.o): New target.
6327 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6329 (mark_array): Likewise.
6331 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6333 * java/lang/Class.h (JvMethod): Removed some unused fields.
6334 (JvField.info): Removed unused idx union variant.
6336 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6338 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6341 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6343 * configure.in, configure (CXX): Add -fvtable-thunks.
6345 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6347 * java/lang/Object.java (finalize): Move first.
6348 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6349 (Object): Re-arrange order to match Object.java.
6351 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6353 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6354 * java/lang/natString.cc (hashChars): Likewise.
6356 * prims.cc (RuntimeClass): New macro.
6357 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6359 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6361 * Makefile.in: Rebuilt.
6362 * Makefile.am (AM_MAKEFLAGS): New macro.
6364 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6366 * nogc.cc: Include <javaprims.h>.
6368 * Makefile.in: Rebuilt.
6369 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6371 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6373 * exception.cc (terminate): Removed.
6374 (unexpected): Removed.
6376 * configure: Rebuilt.
6377 * configure.in: Handle case where target subdir is ".".
6379 * configure: Rebuilt.
6380 * configure.in: Compute COMPPATH based on --with-target-subdir
6381 option. Added --with-target-subdir and --with-cross-host. Use
6382 --with-cross-host to determine when a cross compiler is in use.
6384 * Makefile.in: Rebuilt.
6385 * Makefile.am (GJAVAH): Include COMPPATH.
6386 * configure: Rebuilt.
6387 * configure.in: Subst COMPPATH.
6389 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6391 * prims.cc (lockMutex): Removed.
6392 (unlockMutex): Likewise.
6393 (processClass): Lock the class using a JvSynchronize object.
6395 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6397 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6398 (gc_free_fixed): Removed.
6399 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6400 freeing old value of strhash.
6402 * exception.cc (_Jv_type_matcher): Cast first argument to
6405 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6407 * include/java-array.h (jstringArray): New type.
6408 * java/lang/natSystem.cc (setProperty): Removed.
6409 (initProperties): Directly call JvNewStringLatin1 for arguments.
6410 * java/util/natDate.cc: Include java/util/Date.h, not
6413 * java/io/FileDescriptor.java (available): No longer static.
6414 * java/lang/natDouble.cc (Double): Removed class definition.
6415 * include/javaprims.h (java::lang::Number): Declare.
6416 (java::lang::NumberFormatException): Likewise.
6417 (java::io::FilenameFilter): Likewise.
6418 (java::lang::Character): Likewise.
6419 (java::lang::Error): Likewise.
6420 (java::lang::SecurityManager): Likewise.
6421 (java::util::Vector): Likewise.
6422 (java::io::FileNotFoundException): Likewise.
6423 (java::io::IOException): Likewise.
6424 (java::lang::NativeLang): Likewise.
6425 (java::lang::UnsatisfiedLinkError): Likewise.
6426 (java::util::StringTokenizer): Likewise.
6427 (java::io::InputStream, java::io::OutputStream): Likewise.
6428 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6429 (java::util::Hashtable): Likewise.
6430 * Makefile.in: Rebuilt.
6431 * Makefile.am (nat_headers): Added java/lang/Double.h,
6432 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6433 (MOSTLYCLEANFILES): Added nat_headers.
6434 * include/jvm.h: Moved many defines, declarations, and functions
6435 to java/lang/Class.h.
6436 (struct JvSyncInfo): Moved to java/lang/Object.h.
6437 (UTF8_GET): Moved to java/lang/String.h.
6439 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6441 * java/io/io-defs.h: Don't include java-io.h.
6442 * include/java-io.h: Removed.
6443 * include/javaprims.h: Include java::io.
6445 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6447 * include/java-io.h (File): Removed
6448 (FileDescriptor): Likewise.
6450 * java/io/io-defs.h: Include java/io/File.h and
6451 java/io/FileDescriptor.h.
6453 * Makefile.in: Rebuilt.
6454 * Makefile.am (GJAVAH): New macro.
6455 (.class.h): New rule.
6456 (SUFFIXES): Added .h.
6457 (nat_headers): New macro.
6458 ($(nat_headers)): New target.
6459 (BUILT_SOURCES): Added nat_headers.
6461 * include/java-util.h: Removed.
6463 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6465 * include/java-io.h: Changed to avoid java-lang.h.
6466 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6468 * java/lang/natSystem.cc: Include java/lang/System.h, not
6470 * java/lang/natString.cc: Include java/lang/String.h, not
6472 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6474 * java/lang/natClass.cc: Include java/lang/Class.h, not
6476 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6478 * java/lang/natObject.cc: Include java/lang/Object.h, not
6480 * exception.cc: Don't include java-lang.h.
6481 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6482 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6483 * nogc.cc: Don't include java-lang.h.
6484 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6485 * prims.cc (processClass): Don't use `init_type'; just cast to
6487 Include java/lang/Class.h and jvm.h, not java-lang.h.
6488 (JvAllocObject): Wrote single-argument version.
6489 (PrimClass): Inherit from Class.
6490 (initPrimClass): Removed.
6491 * include/java-lang.h: Removed.
6492 * include/jvm.h: Declare struct _dispatchTable.
6493 * include/cni.h: Don't declare _Jv_MonitorEnter,
6494 _Jv_MonitorExit, struct _dispatchTable.
6495 * include/javaprims.h: Moved all typedefs here, from cni.h.
6496 * java/lang/Class.h: New file.
6497 * include/java-array.h: New file.
6498 * java/lang/Object.h: New file.
6500 * prims.cc (classFromSig): Now static.
6502 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6504 * include/cni.h: Don't mention soft_new.
6505 * include/java-lang.h (Object): Don't mention soft_new. Mention
6506 _Jv_NewPrimArray, not newPrimArray.
6507 * prims.cc (soft_new): Removed.
6508 (_Jv_NewArray): Renamed from soft_newarray.
6509 (soft_anewarray): Use JvNewObjectArray.
6510 (newArray): Likewise.
6511 (newRefArray): Removed.
6512 (_Jv_NewPrimArray): Renamed from newPrimArray.
6513 (equalUtf8Consts): Now static.
6514 (soft_instanceof): Removed.
6515 * java/lang/natDouble.cc (doubleToString): Now static.
6517 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6518 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6521 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6523 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6525 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6527 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6528 (JvPrivMutexUnlock): Likewise.
6529 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6530 Return value now jint.
6531 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6534 * Makefile.in: Rebuilt.
6535 * Makefile.am: Don't allow `jV' names.
6536 (maintainer-check): Depend on libjava.a.
6537 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6539 * Makefile.in: Rebuilt.
6540 * Makefile.am (NM): New macro.
6541 (maintainer-check): New target.
6543 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6545 * configure: Rebuilt.
6546 * configure.in: Use --enable-threads, not --enable-gc. Fix
6547 documentation for --enable-threads. Changed option to work like
6548 identical option in gcc/configure.
6550 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6552 * boehm.cc (mark_array): Use JvGetArrayLength.
6554 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6556 * exception.cc: New file (mostly written by Andrew MacLeod),
6557 exception handling support.
6558 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6559 Remove -fexceptions - it is now the default.
6561 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6562 (JvAllocObject): Renamed to _Jv_AllocObject.
6563 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6564 (loadClass): Renamed to _Jv_FindClass.
6565 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6566 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6567 * include/java-lang.h (JvGetArrayLength): New CNI function.
6568 * include/jvm.h (_Jv_FindClass): Added declaration.
6570 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6572 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6574 * java/lang/natClass.cc (getName): Add implementation.
6575 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6577 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6579 * Makefile.in: Rebuilt.
6580 * Makefile.am (.class.o): Added -fexceptions.
6582 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6584 * configure: Rebuilt.
6585 * configure.in: Don't check for __nanosleep.
6586 * posix-threads.cc (nanosleep): Never define.
6588 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6590 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6593 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6595 * java/lang/natThread.cc (enumerate): Uncommented.
6596 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6597 (interrupt): Call it.
6599 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6601 * configure: Rebuilt.
6602 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6604 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6606 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6607 * include/java-lang.h (Thread): Added `interrupted_' method.
6608 * java/lang/Thread.java (interrupted_): New method.
6609 * java/lang/natThread.cc (join): Possibly throw interrupted
6610 exception after join finishes.
6611 (interrupted_): New method.
6612 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6614 (JvPrivThreadJoin): New function.
6615 (really_start): Notify all threads waiting for this thread.
6616 (struct starter): Added `data' member.
6617 (JvPrivThreadStart): Set it.
6618 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6620 (JvPrivThreadJoin): No longer inline.
6621 (JvPrivThreadInterrupt): New function.
6623 * include/no-threads.h (JvPrivThreadSleep): Removed.
6624 * posix-threads.cc (JvPrivThreadSleep): Removed.
6626 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6628 * configure: Rebuilt.
6629 * configure.in (THREADOBJS): Initialize to no-threads.o in
6631 * posix-threads.cc (key): New global.
6632 (JvPrivInitThreads): New function.
6633 (really_start): Set thread-specific data to point to object.
6634 (JvPrivThreadStart): Added `daemon' argument.
6635 (JvPrivThreadSleep): Added `data' argument.
6636 * include/posix-threads.h (JvPrivInitThreads): Removed
6638 (JvPrivThreadCurrent): New function.
6639 * include/no-threads.h (JvPrivThreadInitData): Initialize
6640 JvPrivOnlyThread. Added `thread' argument.
6641 (JvPrivThreadCurrent): New function.
6642 (JvPrivThreadStart): Added `daemon' argument.
6643 * no-threads.cc: New file.
6644 * java/lang/natThread.cc (init_data): New function.
6646 (start): Set `alive' member.
6647 (stop_): Clear `alive' member.
6648 (destroy): Likewise.
6649 (currentThread): Implemented.
6650 (start): Pass `daemon' argument to JvPrivThreadStart.
6652 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6653 (Thread): Added `init_data' method.
6654 * java/lang/Thread.java (alive, data): New instance variables.
6655 (init_data): New private method.
6656 (isAlive): No longer native.
6658 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6660 * include/java-lang.h (JvRunMain): Declare.
6661 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6662 * prims.cc (JvRunMain): New function.
6663 (main_signature, main_name): New globals.
6665 * boehm.cc (mark_array): Use `elements' function and not
6666 operator[] on jarray.
6668 * posix-threads.cc: Include <config.h>. Define nanosleep if
6671 * configure: Rebuilt.
6672 * configure.in: Check for _nanosleep.
6674 * configure: Rebuilt.
6675 * configure.in: Check for pthread_mutexattr_settype.
6677 * include/cni.h (class JvSynchronize): New class.
6678 * java/lang/Thread.java (sleep): Throws InterruptedException.
6679 (join): Throws InterruptedException.
6680 (resume): Not native.
6681 (resume_): New method.
6682 (start): Now synchronized.
6683 (stop_): New method.
6684 (Thread): Synchronize when accessing threadNumber.
6686 * java/lang/natThread.cc (throwException): New macro.
6687 (sleep): Throw InterruptedException.
6690 * include/java-lang.h (Runtime): Added interrupted().
6692 * boehm.cc (call_finalizer): Correctly initialize jobj.
6693 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6695 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6698 * configure: Rebuilt.
6699 * configure.in: Added support for --disable-threads.
6700 * include/no-threads.h: New file.
6702 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6704 * Makefile.in: Rebuilt.
6705 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6706 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6707 (libjava_a_LIBADD): Added THREADOBJS.
6708 * configure: Rebuilt.
6709 * configure.in: Added --with-threads option.
6710 * posix-threads.cc: New file.
6711 * include/posix-threads.h: New file.
6712 * include/java-lang.h (Object): Added static member sync_mutex,
6713 member sync_info, method init_mutex.
6714 (struct JvSyncInfo): New struct.
6715 Include "java-threads.h".
6716 * prims.cc (soft_monitorenter): Wrote.
6717 (soft_monitorexit): Likewise.
6718 * java/lang/natObject.cc (init_mutex): New method.
6722 (sync_mutex): Define.
6723 Include "java-threads.h".
6725 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6727 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6728 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6730 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6732 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6733 Added extern "Java" in places to tell G++ Object is a "Java" type.
6734 Other minor renaming and fixes.
6735 * include/java-io.h (FileDescriptor): Add friend class declarations.
6736 G++ no longer allows non-Java types in method parameters and results
6737 of Java classes. Converted most offending methods to friends.
6738 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6739 * java/lang/natSystem.cc (setProperty): Make friend.
6740 * java/lang/natString.cc, include/java-lang.h (String): Rename
6741 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6742 * include/java-lang.h (JArray): Remove getData and eoprator[].
6743 Add elements friend function instead.
6744 * java/lang/natSystem.cc (arraycopy): Use elements function.
6745 * java/io/natFileDescriptor.cc (read, write): Likewise.
6746 * include/java-lang.h (Object): Remove unused make method.
6747 (System::setProperty(char*,char*)): Turn into friend function.
6748 (Class): Rename newObject by JvAllocObject.
6749 * prims.cc: Update to use JvAllocObject, and elements.
6751 * java/lang/natDouble.cc: Fix double -> jdouble.
6753 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6755 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6757 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6759 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6760 * include/java-lang.h (Runtime): finalize_on_exit and
6761 runFinalizersOnExit now static.
6762 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6764 (finalize_on_exit): Now static.
6766 * boehm.cc (mark_obj): Get class using getClass() method on
6768 (_dispatchTable): Removed.
6770 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6772 * java/io/natFileDescriptor.cc (open_read): Only call open if
6774 (open_write): Likewise.
6776 * Makefile.in: Rebuilt.
6777 * Makefile.am ($(nat_files)): Depend on config.h.
6779 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6781 * prims.cc (ObjectClass): Now a macro; updated for new class name
6783 (StringClass): Likewise.
6784 (ClassClass): Likewise.
6786 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6788 * java/io/natFileDescriptor.cc (available): Do nothing unless
6789 HAVE_SELECT defined.
6790 * java/util/natDate.cc (setTime): Conditional on
6792 (toString): Conditional on HAVE_TIME.
6793 * aclocal.m4, configure: Rebuilt.
6794 * acinclude.m4: New file.
6795 * configure.in: Don't actually call AM_EXEEXT. Call
6796 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6797 --with-target-subdir option. Check for select and open
6800 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6802 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6803 (call_finalizer): Likewise.
6804 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6805 * prims.cc (newObject): Pass actual method pointer to
6806 JvPrivRegisterFinalizer.
6807 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6808 (JvPrivRegisterFinalizer): Changed interface.
6810 * Makefile.in: Rebuilt.
6811 * Makefile.am (MOSTLYCLEANFILES): New macro.
6812 (CLEANFILES): Removed javao_files.
6814 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
6816 * nogc.cc: New file.
6817 * Makefile.in: Rebuilt.
6818 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6819 (EXTRA_libjava_a_SOURCES): New macro.
6820 (libjava_a_SOURCES): Removed boehm.cc.
6821 (libjava_a_DEPENDENCIES): Added GCOBJS.
6822 (libjava_a_LIBADD): Likewise.
6823 * configure: Rebuilt.
6824 * configure.in: Added code for --enable-gc=TYPE.
6826 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
6828 * boehm.cc (mark_array): Don't further dereference pointer from
6831 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6832 * Makefile.in: Rebuilt.
6833 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6834 one for boehm-gc build directory.
6836 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
6838 * include/java-lang.h (finalize_on_exit): New instance variable in
6839 java::lang::Runtime.
6840 (runFinalizersOnExit): New method.
6841 * java/lang/Runtime.java (finalize_on_exit): New instance
6843 (runAllFinalizers_): New private method.
6844 (runFinalizersOnExit): New method.
6845 * boehm.cc (JvPrivRunFinalizers): New function.
6846 (JvPrivRunAllFinalizers): Likewise.
6847 (JvPrivRunGC): Likewise.
6848 * java/lang/natRuntime.cc: Include "jvm.h".
6849 (gc): Call JvPrivRunGC.
6850 (runFinalization): Call JvPrivRunFinalizers.
6851 (runFinalizersOnExit): New method.
6852 (exit_): Call JvPrivRunAllFinalizers if required.
6853 * include/jvm.h: Declare JvPrivRunFinalizers,
6854 JvPrivRunAllFinalizers, JvPrivRunGC.
6856 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
6858 * boehm.cc (JvPrivRegisterFinalizer): New function.
6859 (call_finalizer): Likewise.
6860 * include/jvm.h: Declare JvPrivRegisterFinalizer.
6861 * prims.cc (finalize_name): New global.
6862 (newObject): Just call other newObject.
6863 (newObject): Register finalizer if it exists.
6865 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
6867 * prims.cc (gc_malloc): Removed.
6868 (makeUtf8Const): Use JvPrivAllocBytes.
6869 (lookupArray): Likewise.
6870 (newPrimArray): Likewise.
6871 (JvNewObjectArray): Use JvPrivAllocArray.
6872 (newObject): Use JvPrivAllocObj.
6873 (newObject): Likewise.
6874 Changed Method -> JvMethod everywhere.
6875 Changed Field -> JvField everywhere.
6876 * include/java-lang.h (Object): Changed type of `fields' to
6878 (jmethodID, jfieldID): New typedefs.
6879 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6881 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6883 (METHOD_NATIVECODE): Moved from java-lang.h.
6884 (class JvField): New class.
6885 (JvGetFirstInstanceField): New function.
6886 (JvFieldIsRef): Likewise.
6887 (JvGetObjectField): Likewise.
6888 (JvNumInstanceFields): Likewise.
6890 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6892 * boehm.cc: New file.
6893 * Makefile.in: Rebuilt.
6894 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6895 (INCLUDES): Added -I options to find boehm-gc files.
6897 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
6899 * configure: Rebuilt.
6900 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6902 * Makefile.in: Rebuilt.
6903 * Makefile.am (nat_files): New macro.
6904 (libjava_a_DEPENDENCIES): Use it.
6905 (libjava_a_LIBADD): Likewise.
6906 ($(nat_files)): New static pattern rule.
6907 (class_files): Run separate find to find .class files.
6908 (javao_files): Compute based on class_files.
6909 (BUILT_SOURCES): New macro.
6911 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6913 * Makefile.am (java_files): New macro.
6914 (class_files): Likewise.
6915 (javao_files): Likewise.
6916 (libjava_a_DEPENDENCIES): Include $(javao_files).
6917 (libjava_a_LIBADD): Likewise.
6918 (classes.stamp): Depend on $(java_files); only recompile changed
6921 (CLEANFILES): Don't run find; use macros. Don't mention
6923 (.class.o): New target.
6924 (compiled.stamp): Removed.
6926 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
6928 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6929 LineNumberReader}>java: Newly-implemented standard classes.
6931 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
6933 * Makefile.in: Rebuilt.
6934 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
6936 * Makefile.in: Rebuilt.
6937 * Makefile.am (hack): New macro.
6938 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
6940 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
6942 * include/config.h.in: New file.
6943 * include/config.h: Removed.
6944 * acconfig.h: New file.
6945 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
6946 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
6947 libjava_a_LIBADD): New macros.
6948 (INCLUDES): New macro.
6951 (SUFFIXES): Removed.
6953 (libjava.a): Removed.
6955 * configure: Rebuilt.
6956 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
6957 Look for headers and functions we require. Create
6960 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
6962 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
6963 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
6964 soft_lookupinterfacemethod): New functions.
6965 (PrimClass): Actually initialize the primitive classes.
6966 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
6968 * include/java-util.h: Removed java::util definition.
6969 * include/cni.h: Moved java::util here and added Properties.
6970 Added more function prototypes.
6971 * include/java-lang.h: Added mroe methods and friend declarations.
6972 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
6973 * include/jvm.h (strLengthUtf8): Add declaration.
6975 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
6977 * java/lang/{Byte,Short,Void}.java: New classes.
6978 * java/lang/Character.java (isJavaIdentifierStart,
6979 JavaIdentifierPart): New static methods.
6980 * java/lang/Number.java (byteValue, shortValue): New methods.
6982 * java/lang/String.java (intern, hashCode): Make native.
6983 * java/lang/natString.cc: New file. Handle the string pool.
6984 * Makefile.am: Build natString.o. Use CXXFLAGS.
6986 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
6987 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
6988 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
6989 * java/lang/System.java (setProperty): New private method.
6990 (initProperties): Take argument, and make native.
6991 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
6992 (currentTimeMillis): Make more robust.
6994 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
6995 * java/io/UnsupportedEncodingException.java: New exception class.
6997 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
6998 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7000 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7002 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7003 * prims.cc: Added bunch of stuff.
7004 * include/cni.h: Added various definitions.
7005 * include/java-lang.h: Added Method, various friends, some macros.
7007 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7008 * java/lang/System.java (arraycopy): Make native.
7010 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7012 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7013 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7014 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7015 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7017 * java/lang/Runtime.java: Declare methods as native instead of
7019 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7020 * java/lang/System.java: Comment out some stuff, for now.
7021 * java/lang/Thread.java: Re-write. Use native methods.
7022 * java/lang/NativeLang.java: Remove most of it.
7024 * java/util/natDate.cc: Native (C++) methods for Date.
7025 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7026 * java/util/Date.java: Complete re-write.
7028 * java/io/io-defs.h: New header file.
7029 * java/io/FileDescriptor.java: Add a bunch of private methods,
7030 mostly moved from NativeIO.java and natNativeIO.cc.
7031 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7032 * java/io/File.java: Use new code.
7033 * java/io/{FileInputStream.java.FileOutputStream.java,
7034 RandomAccessFile.java}: Use new private FileDescriptor methods.
7035 * java/io/NativeIO.java: Removed, no longer used.
7037 * java/io/StreamTokenizer.java (numericChars): Make char array.
7039 * include/*.h: Various header files used by the C++ native code.
7041 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7042 New autoconf+automake-based setup.
7043 * prims.cc: New file for Java "primitives".