1 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
5 * java/lang/natString.cc (equalsIgnoreCase): return false if
7 * java/lang/Boolean.java (valueOf): return FALSE if argument is
10 1999-11-30 Tom Tromey <tromey@cygnus.com>
12 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
13 mutex to initialize. Initialize `count' if required.
16 1999-11-27 Per Bothner <per@bothner.com>
18 * exception.cc: Remove prototype declarations for malloc and free.
19 These clash with recent versions of glibc, which specifies `throws ()'
20 when __cplusplus is defined. Instead, #include <stdlib.h>.
22 1999-11-24 Tom Tromey <tromey@cygnus.com>
24 * prims.cc (_Jv_NewObjectArray): Use
25 _Jv_GetArrayElementFromElementType.
26 (_Jv_NewPrimArray): Likewise.
27 * java/lang/natObject.cc (clone): Use
28 _Jv_GetArrayElementFromElementType instead of sizeof.
29 * java/lang/natSystem.cc (arraycopy): Use
30 _Jv_GetArrayElementFromElementType.
31 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
34 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
36 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
37 Exception messages. PR java.net/57.
38 (bind): set SO_REUSEADDR before bind.
39 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
40 overruns. PR java.net/57.
42 1999-11-19 Tom Tromey <tromey@cygnus.com>
44 * Makefile.am (DIVIDESPEC): Removed.
45 (EXCEPTIONSPEC): Removed.
47 1999-11-19 Andrew Haley <aph@cygnus.com>
49 * Makefile.am (JCFLAGS): Add -L$(here)
51 * Makefile.in: Rebuild.
53 1999-11-18 Tom Tromey <tromey@cygnus.com>
55 * java/lang/natDouble.cc: Include <config.h>.
57 * include/config.h.in: Rebuilt.
58 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
59 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
62 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
63 requested by configure.host. Don't put `-D' option into
64 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
67 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
70 1999-11-18 Andrew Haley <aph@cygnus.com>
72 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
73 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
75 * Makefile.in: Rebuild
76 * acconfig.h: remove SJLJ_EXCEPTIONS
77 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
78 Do not AC_DEFINE SJLJ_EXCEPTIONS.
79 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
80 * gcj/Makefile.in, include/Makefile.in: rebuild.
81 * include/config.h.in: remove SJLJ_EXCEPTIONS.
83 1999-11-18 Andrew Haley <aph@cygnus.com>
85 * gij.cc (main): Rename label to prevent conflict.
87 * exception.cc (_Jv_type_matcher): Don't check the table if we're
88 using setjmp/longjmp exceptions: there isn't one.
90 1999-11-17 Andrew Haley <aph@cygnus.com>
92 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
93 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
94 (__sjthrow): Add declaration.
95 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
99 * Makefile.in: Rebuild
100 * acconfig.h: Add SJLJ_EXCEPTIONS
101 * configure.in: Add SJLJ_EXCEPTIONS
102 * configure: Rebuild.
103 * gcj/Makefile.in: Rebuild.
104 * gcj/cni.h: Add support for sjlj-exceptions.
105 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
106 * include/Makefile.in: Rebuild.
107 * include/default-signal.h: Add support for sjlj-exceptions.
109 1999-11-18 Tom Tromey <tromey@cygnus.com>
111 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
113 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
115 (method_cache): Made larger.
117 1999-11-11 Tom Tromey <tromey@cygnus.com>
119 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
120 initializing mutex. Initialize `count' when required.
122 1999-11-07 Anthony Green <green@trip.cygnus.com>
124 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
127 1999-11-05 Tom Tromey <tromey@cygnus.com>
129 * java/lang/natThread.cc (destroy): Removed incorrect comment.
131 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
133 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
134 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
137 1999-11-05 Tom Tromey <tromey@cygnus.com>
139 * java/lang/natThread.cc (stop): Removed argument name.
141 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
142 `private'; now has default access.
143 * Makefile.in: Rebuilt.
144 * Makefile.am (java/lang/ThreadGroup.h): Removed.
146 1999-11-04 Tom Tromey <tromey@cygnus.com>
148 * java/lang/natClass.cc (method_cache_count): Removed.
149 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
150 (_Jv_AddMethodToCache): Don't loop.
152 * configure.in: Removed `qt' threads case.
153 * include/quick-threads.h: Removed.
154 * quick-threads.cc: Removed.
156 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
157 (_Jv_ThreadDestroy): Likewise.
158 * include/no-threads.h (_Jv_ThreadCancel): Removed.
159 (_Jv_ThreadDestroy): Likewise.
160 * include/posix-threads.h (struct _Jv_Thread_t): Removed
162 (_Jv_ThreadCancel): Removed decl.
163 (_Jv_ThreadDestroy): Removed.
164 * posix-threads.cc (_Jv_ThreadCancel): Removed.
165 (throw_cleanup): Removed.
166 (really_start): Don't push or pop cleanup.
167 (_Jv_ThreadInitData): Don't initialize `exception' field.
168 * java/lang/Thread.java (stop): Officially unimplemented.
169 * java/lang/natThread.cc (stop): Officially unimplemented.
171 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
173 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
176 1999-11-02 Tom Tromey <tromey@cygnus.com>
178 * boehm.cc: Don't include boehm-config.h.
180 1999-11-01 Tom Tromey <tromey@cygnus.com>
182 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
183 (sum_blocks): Removed.
184 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
186 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
188 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
190 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
191 * java/io/InputStreamReader (InputStreamReader): ditto.
193 1999-10-22 Tom Tromey <tromey@cygnus.com>
195 * Makefile.in: Rebuilt.
196 * Makefile.am (java/lang/ClassLoader.h): New target.
197 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
200 * include/java-props.h (_Jv_Compiler_Properties): Changed
202 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
203 * include/jvm.h (_Jv_GCSetInitialHeapSize,
204 _Jv_GCSetMaximumHeapSize): Declare.
205 (JvRunMain, _Jv_RunMain): Declare.
206 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
207 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
208 (_Jv_GCSetMaximumHeapSize): Likewise.
209 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
210 (_Jv_GCSetMaximumHeapSize): Likewise.
211 * prims.cc (parse_heap_size): New function.
212 (_Jv_SetInitialHeapSize): Likewise.
213 (_Jv_SetMaximumHeapSize): Likewise.
214 (_Jv_Compiler_Properties): New global.
215 * gij.cc (help): New function.
217 (heap_size): Likewise.
218 (heap_max_size): Likewise.
219 (main): Parse arguments. Set _Jv_Compiler_Properties.
220 Include <config.h>, <java-props.h>.
221 (_Jv_Compiler_Properties): Removed.
223 1999-10-18 Tom Tromey <tromey@cygnus.com>
225 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
227 (redirect): New static field.
228 * java/lang/ClassLoader.java (getSystemClassLoader): Now
230 (getVMClassLoader0): Removed.
231 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
233 (getSystemClassLoader): Implemented.
235 1999-10-16 Anthony Green <green@cygnus.com>
237 * java/lang/ClassLoader.java (getSystemResource): Use
238 getSystemClassLoader instead of ClassLoader.system.
239 (getSystemResourceAsStream): Ditto.
241 * java/lang/natClassLoader.cc (redirect): Make static and
242 remove #ifdef INTERPRETER so it is always defined.
243 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
244 returns a VMClassLoader.
246 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
247 PropertyResourceBundle if a properties file is found before a
248 ResourceBundle class.
250 1999-10-15 Tom Tromey <tromey@cygnus.com>
252 * gij.cc (main): Formatting fixes.
253 (_Jv_Compiler_Properties): Define.
254 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
256 (init_properties): Set properites from _Jv_Compiler_Properties.
257 * include/java-props.h (_Jv_Compiler_Properties,
258 _Jv_Environment_Properties): Declare.
260 * include/java-props.h: Added copyright.
262 1999-10-13 Anthony Green <green@cygnus.com>
264 * libtool-version: Catch up by incrementing current.
266 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
267 * configure, include/config.h.in: Rebuilt.
268 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
269 * configure.in: Added --disable-getenv-properties and new define
270 `DISABLE_GETENV_PROPERTIES'.
272 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
273 (next_property_key): New function.
274 (next_property_value): New function.
275 (process_gcj_properties): New function.
276 (JvRunMain): Call process_gcj_properties.
279 * java/lang/natSystem.cc (init_properties): Set properties defined
282 * include/java-props.h: New file.
284 * java/lang/natSystem.cc (init_properties): Add new properties to
285 conform with Java Product Versioning Specification.
287 1999-10-12 Tom Tromey <tromey@cygnus.com>
289 * configure: Rebuilt.
290 * configure.in: Fixed test for --disable-java-net.
292 1999-10-06 Tom Tromey <tromey@cygnus.com>
294 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
295 when building Canadian cross.
296 (NATIVE): Don't define when cross-compiling.
298 1999-10-04 Tom Tromey <tromey@cygnus.com>
300 * java/net/natPlainSocketImpl.cc: Don't include headers if
301 java.net is disabled.
303 * Makefile.in: Rebuilt.
304 * Makefile.am (ZINCS): Removed. This is defined in configure.in
305 when needed, and must be left empty when not needed.
307 1999-10-01 Anthony Green <green@cygnus.com>
309 * THANKS: Refreshed from htdocs version.
311 1999-10-01 Steve Chamberlain <sac@pobox.com>
313 * Makefile.in: Rebuilt.
314 * Makefile.am (ZINCS): Define
316 * configure: Rebuilt.
317 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
319 * java/lang/ieeefp.h: Add definitions for picoJava.
321 1999-10-01 Tom Tromey <tromey@cygnus.com>
323 * configure: Rebuilt.
324 * configure.in: Set classpath when invoking gcj. Use changequote
325 around sed invocation.
327 * java/net/natPlainSocketImpl.cc: Stub native functions if
328 DISABLE_JAVA_NET is defined.
329 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
330 typo in exception string.
331 (getTimeToLive): Likewise.
332 Stub native functions if DISABLE_JAVA_NET is defined.
333 * java/net/natInetAddress.cc: Stub native functions if
334 DISABLE_JAVA_NET is defined.
335 * configure.host: Disable java.net for mips-tx39.
336 * configure, include/config.h.in: Rebuilt.
337 * acconfig.h (DISABLE_JAVA_NET): Undefine.
338 * configure.in: Added --disable-java-net and new define
341 1999-09-30 Tom Tromey <tromey@cygnus.com>
343 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
345 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
349 1999-09-28 Tom Tromey <tromey@cygnus.com>
351 * configure: Rebuilt.
352 * configure.in (PROCESS): In POSIX case, only set if not already
354 * configure.host (PROCESS): Set in mips-tx39 case.
356 * aclocal.m4, configure: Rebuilt.
357 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
358 appropriate AC_PROG_ symbol.
360 1999-09-24 Tom Tromey <tromey@cygnus.com>
362 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
364 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
366 Fix for PR java.util/47:
367 * configure, include/config.h: Rebuilt.
368 * configure.in: Don't look for ctime or ctime_r.
369 * Makefile.in: Rebuilt.
370 * Makefile.am (nat_source_files): Don't mention natDate.cc.
371 * java/util/natDate.cc: Removed.
372 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
374 (getAvailableIDs): Rewrote.
375 (getTimeZone): Rewrote.
376 * java/util/Date.java (toGMTString): New method.
377 (toLocaleString): New method.
380 1999-09-23 Tom Tromey <tromey@cygnus.com>
382 * configure: Rebuilt.
383 * configure.in: Print message when checking to see if gcj can
384 handle -fuse-divide-subroutine.
386 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
388 * java/lang/FirstThread.java (run0): Renamed to `run'.
391 * prims.cc (main_init): New function.
392 (JvRunMain): Call it.
393 (_Jv_RunMain): Likewise.
395 (main_init): Ignore SIGPIPE. Fixes PR 51.
397 1999-09-22 Tom Tromey <tromey@cygnus.com>
399 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
401 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
403 * java/text/MessageFormat.java (MessageFormat(String)): Set the
405 * java/text/NumberFormat.java: Check that object is a Number. If
406 not, throw IllegialArgumentException.
408 1999-09-21 Tom Tromey <tromey@cygnus.com>
410 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
411 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
413 * include/posix-threads.h (_Jv_MutexDestroy): Use
415 (_Jv_MutexLock): Likewise.
416 (_Jv_MutexUnlock): Likewise.
418 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
419 previous patch; it too was incorrect.
420 * java/io/PrintStream.java (PrintStream): Likewise.
422 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
423 refer to `this' before calling superclass constructor.
424 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
425 before calling superclass constructor.
427 1999-09-20 Tom Tromey <tromey@cygnus.com>
429 * configure: Rebuilt.
430 * configure.in: Send output of `-fuse-divide-subroutine' test
431 compilation to /dev/null.
433 1999-09-14 Tom Tromey <tromey@cygnus.com>
435 * include/java-insns.h: Turned constants into an enum. Added
436 multiple-inclusion protection.
438 1999-09-10 Tom Tromey <tromey@cygnus.com>
440 * configure: Rebuilt.
441 * configure.in: Build include/Makefile.
442 * Makefile.in: Rebuilt.
443 * Makefile.am (SUBDIRS): Added gcj and include.
444 (install-data-local): New target.
445 (extra_headers): New macro.
446 * include/Makefile.in: New file.
447 * include/Makefile.am: New file.
449 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
450 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
452 * boehm.cc: Don't include java-threads.h or gcj/field.h.
453 * resolve.cc: Include config.h.
454 * defineclass.cc: Include config.h.
455 * include/java-interp.h: Don't include config.h.
456 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
459 * gcj/javaprims.h: Regenerated namespace decls.
460 * classes.pl (scan): Don't put `;' after closing brace.
462 * Makefile.in: Rebuilt.
463 * Makefile.am (INCLUDES): Added -I for top_srcdir.
464 * configure.in: Create gcj/Makefile.
465 * gcj/Makefile.in: New file.
466 * gcj/Makefile.am: New file.
467 * java/lang/Object.h: Don't include any other headers.
468 * gcj/array.h: Renamed from include/java-array.h.
469 * gcj/field.h: Renamed from include/java-field.h.
470 * gcj/method.h: Renamed from include/java-method.h.
471 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
472 Updated all files to reflect new include structure.
474 1999-09-09 Tom Tromey <tromey@cygnus.com>
476 * configure: Rebuilt.
477 * configure.in: Fixed typo; variable is THREADSPEC and not
480 1999-09-08 Tom Tromey <tromey@cygnus.com>
482 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
483 previous change and implemented a correct test in the __m_count
486 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
489 1999-09-07 Tom Tromey <tromey@cygnus.com>
491 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
492 code and don't set errno.
494 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
495 not `r'. Changed `done_sleeping' to a `bool'.
497 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
499 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
500 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
501 by another thread, rather than by the GC.
502 (_Jv_CondWait): Prevent premature thread wakeup by GC.
503 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
504 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
507 1999-09-03 Tom Tromey <tromey@cygnus.com>
509 * configure: Rebuilt.
510 * configure.in: Check for fstat function.
511 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
514 1999-09-02 Tom Tromey <tromey@cygnus.com>
516 * include/java-array.h (jobjectArrayjchar): Removed unused
519 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
520 _Jv_PrepareCompiledClass while holding class mutex.
522 1999-09-01 Tom Tromey <tromey@cygnus.com>
524 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
525 (_Jv_PthreadGetMutex): Use it.
526 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
527 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
528 (_Jv_MutexLock): Likewise.
529 (_Jv_MutexUnlock): Likewise.
530 * include/config.h.in: Rebuilt.
531 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
532 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
533 * configure: Rebuilt.
534 * libgcj.spec.in: Don't mention INTERPSPEC.
535 * configure.in (INTERPSPEC): Removed.
536 Only run pthreads-related checks when using POSIX threads. Check
537 for m_count and __m_count in mutex structure.
539 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
541 * java/lang/natClass.cc: Fixed notification of threads
542 when class initialization is complete.
544 1999-09-01 Tom Tromey <tromey@cygnus.com>
546 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
547 * resolve.cc: Removed constants defined by
548 java.lang.reflect.Modifier.
549 Include <java/lang/reflect/Modifier.h>.
550 (_Jv_ResolvePoolEntry): Use values from Modifier.
551 (_Jv_DetermineVTableIndex): Likewise.
552 (_Jv_PrepareClass): Likewise.
554 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
555 java.lang.reflect.Modifier.
556 Include <java/lang/reflect/Modifier.h>.
557 (checkExtends): Use values from Modifier.
558 (checkImplements): Likewise.
559 (handleField): Likewise.
560 (handleConstantValueAttribute): Likewise.
561 (handleFieldsEnd): Likewise.
562 (handleMethod ): Likewise.
563 (handleMethodsEnd): Likewise.
564 (handleClassBegin): Likewise.
565 * interpret.cc: Removed constants defined by
566 java.lang.reflect.Modifier.
567 (continue1): Use values from Modifier.
568 * java/lang/natClassLoader.cc: Removed constants defined by
569 java.lang.reflect.Modifier.
571 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
572 JV_STATE_NOTHING, not `0'.
573 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
575 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
576 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
578 (_Jv_PthreadGetMutex): New function.
579 (_Jv_PthreadCheckMonitor): Use it.
580 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
581 (_Jv_MutexLock): Update `count'.
582 (_Jv_MutexUnlock): Likewise.
583 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
586 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
588 * Makefile.am (.java.lo): Add rule.
590 * Makefile.in: Rebuilt.
592 1999-09-01 Tom Tromey <tromey@cygnus.com>
594 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
595 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
597 (_Jv_CondNotify): Use it.
598 (_Jv_CondNotifyAll): Likewise.
600 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
602 1999-08-31 Tom Tromey <tromey@cygnus.com>
604 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
607 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
609 * posix-threads.cc: Include <errno.h>.
611 1999-08-23 Tom Tromey <tromey@cygnus.com>
613 * boehm.cc: Undefine TRUE and FALSE.
615 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
617 1999-08-21 Tom Tromey <tromey@cygnus.com>
619 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
622 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
624 * configure.in: Check for in_addr_t in netinet/in.h too. Check
626 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
627 (HAVE_STRUCT_IP_MREQ): Added.
628 * configure, include/config.h.in: Rebuilt.
629 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
631 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
632 Disable if ip_mreq is not available.
634 * configure.in: Check types ssize_t and in_addr_t.
635 * acconfig.h: Undefine them.
636 * configure, include/config.h.in: Rebuilt.
638 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
639 function that detects the signature of getpwuid_r.
640 (init_properties): Use it.
641 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
644 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
646 * interpret.cc (continue1): Implement explicit dispatch table.
647 insn_target: Explicit interpreter switch table.
648 SAVE_PC: New macro, moves pc saving code into instructions that
650 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
651 PC_REGISTER_ASM: New macro.
652 INLINE_SWITCH: New macro. Constrols dispatching strategy.
653 opcode: Remove local variable.
654 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
655 (POKEI): Use _Jv_word.
656 (iinc): Use _Jv_word.
657 (dupx): Change reference argument (sp) to pointer.
660 * interpret.cc: Remove instruction timing instrumentation.
662 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
663 comment. Don't use _Jv_ClassNameSamePackage.
665 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
666 URLPathEntry, CacheEntry}: Removed.
668 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
670 (.java.lo): Rule removed.
672 * Makefile.in: Rebuilt.
674 1999-08-19 Tom Tromey <tromey@cygnus.com>
676 * java/lang/natThread.cc (class locker): New class.
677 (join): Use a locker around _Jv_CondWait.
680 1999-08-18 Tom Tromey <tromey@cygnus.com>
682 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
683 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
685 1999-08-18 Tom Tromey <tromey@cygnus.com>
687 * include/javaprims.h ("Java"): Regenerated namespace decls.
689 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
691 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
692 from _Jv_InternClassStrings.
694 * prims.cc (_Jv_RunMain): New function.
695 (JvRunMain): Remove gij-support.
697 * gij.cc (main): Use _Jv_RunMain.
699 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
701 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
702 argument in temp variable.
703 (continue1): For all op_x2y insns, use temp variable for
704 intermediate value. Also remove some comments.
706 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
707 (forName): Don't call _Jv_InitClass.
709 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
711 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
713 * java/util/jar/JarInputStream.java: New file.
715 * java/util/jar/JarEntry.java: New file.
717 * java/util/jar/JarFile.java: New file.
719 * java/net/URLClassLoader.java: New file.
721 * java/net/JarURLConnection.java: New file.
723 * gnu/gcj/protocol/jar/Handler.java: New file.
725 * gnu/gcj/protocol/jar/Connection.java: New file.
727 * java/security/SecureClassLoader.java: New file.
729 * java/lang/ClassLoader.java (parent): New variable.
730 (ClassLoader (ClassLoader)): new constructor.
731 (findClass): New method.
732 (loadClass): Add default 1.2 implementation.
733 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
734 (readfully): Removed.
736 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
737 (findSystemClass): New method.
738 (VMClassLoader): Constructor rewritten.
740 All other methods removed.
742 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
743 to gnu::gcj::runtime::VMClassLoader.
744 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
746 (VMClassLoader::findSystemClass): renamed from findBootClass.
748 * Makefile.am: Add new files.
749 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
751 * Makefile.in: Rebuilt.
753 1999-08-17 Tom Tromey <tromey@cygnus.com>
755 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
757 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
760 1999-08-16 Tom Tromey <tromey@cygnus.com>
762 * configure: Rebuilt.
763 * configure.in: Set DIVIDESPEC to empty string if compiler does
764 not support -fuse-divide-subroutine.
766 1999-08-14 Per Bothner <per@bothner.com>
768 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
769 * java/lang/natClass.cc (initializeClass): Likewise.
770 * java/lang/ClassLoader.java (resolveClass0): New static method.
771 (resolveClass): Call resolveClass0.
772 (findSystemClass): No longer static.
774 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
776 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
778 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
780 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
783 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
786 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
789 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
792 * configure: Rebuilt.
793 * configure.in: Properly align --help output, fix capitalization
795 * acinclude.m4: Likewise.
797 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
799 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
801 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
802 (_Jv_callInterpretedMethod): Unused. Remove.
803 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
805 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
806 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
807 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
808 * interpret.cc: use _Jv_word.
809 * defineclass.cc: use_Jv_word.
810 * resolve.cc: Use _Jv_word.
811 (_Jv_ResolvePoolEntry): Return _Jv_word.
812 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
813 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
815 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
818 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
820 * configure: Rebuilt.
821 * configure.in (sched_yield): Try librt first, then libposix4.
822 Add -lrt, -lposix4 to THREADSPEC.
824 1999-08-08 Anthony Green <green@cygnus.com>
826 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
828 1999-08-08 Anthony Green <green@cygnus.com>
830 * defineclass.cc (_Jv_VerifyClassName): Verify array names
833 1999-08-08 Anthony Green <green@cygnus.com>
837 * include/config.h.in: Rebuilt.
838 * acconfig.h: Add INTERPRETER.
840 * Makefile.in: Rebuilt.
841 * Makefile.am (libffi_files): Identify the libffi object files for
843 (LIBFFIINCS): Define.
845 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
846 Dummy definition for configurations without an interpreter.
848 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
849 java::lang::Boolean constructor.
851 * include/java-interp.h: Always include java-cpool.h.
853 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
854 when INTERPRETER not defined.
856 * java/lang/Class.h (finalize): Define.
858 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
859 IOException from File.getCanonicalPath.
860 (getStream): Likewise.
863 * THANKS: More thanks.
865 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
867 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
869 (_Jv_PrepareClass): Allow non-abstract classes to
870 have abstract subclasses.
871 (_Jv_ResolvePoolEntry): Revert subclass check for protected
873 * interpret.cc (continue1/perform_invoke): Don't sign extend
875 (continue1/lshl,lshr): Push long, not int.
876 (continue1/ulshr): Use UINT64, not long long.
877 * defineclass.cc (handleFieldsEnd): Handle case when all fields
879 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
880 * java/lang/FirstThread.java (run): Add top-level exception
882 (run0): Renamed from run.
884 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
886 * configure.in (--with-interpreter): Added.
887 * include/config.h.in (INTERPRETER): Added.
889 * java/lang/ClassLoader.java: File replaced.
890 * java/lang/VMClassLoader.java: New file.
891 * java/lang/natClassLoader.cc: New file.
892 * gnu/gcj/runtime/MethodInvocation.java: New file.
893 * gnu/gcj/util/path/SearchPath.java: New file.
894 * gnu/gcj/util/path/PathEntry.java: New file.
895 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
896 * gnu/gcj/util/path/ZipPathEntry.java: New file.
897 * gnu/gcj/util/path/URLPathEntry.java: New file.
898 * gnu/gcj/util/path/CacheEntry.java: New file.
899 * include/java-interp.h: New file.
900 * include/java-cpool.h: New file.
901 * include/java-insns.h: New file.
902 * defineclass.cc: New file.
903 * interpret.cc: New file.
904 * resolve.cc: New file.
906 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
907 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
908 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
910 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
911 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
913 (initializeClass): Use new JV_ prefixed names. Also, call
914 ClassLoader::resolveClass instead of _Jv_ResolveClass.
916 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
917 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
918 JV_STATE_LINKED): New.
919 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
920 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
921 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
922 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
923 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
924 _Jv_InterpMethodInvocation): New friends for interpreter.
926 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
927 include/java-cpool.h and renamed with JV_ prefix.
929 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
931 (_Jv_UnregisterClass): New decl.
933 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
934 class loader argument.
935 (_Jv_FindClass): Use class loader.
937 * prims.cc (_Jv_makeUtf8Const): New function.
938 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
939 (_Jv_NewPrimArray): Ditto.
940 (_Jv_FindClassFromSignature): Ditto.
941 * java/lang/reflect/natArray.cc (newInstance): Ditto.
942 * java/lang/reflect/natMethod.cc (getType): Ditto.
944 * include/java-field.h (_Jv_Field::isRef): Make robust for
945 non-resolved contexts.
947 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
948 Also, don't mark class->next field.
950 * java/lang/VirtualMachineError.java: Added FIXME note.
952 * configure.in (INTERPSPEC): New spec.
953 * libgcj.spec.in: Added INTERPSPEC.
954 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
955 gnu/gcj/runtime/MethodInvocation.
956 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
957 (ordinary_java_source_files): Added above mentioned java classes.
959 * configure: Rebuilt.
960 * Makefile.in: Rebuilt.
962 1999-08-06 Tom Tromey <tromey@cygnus.com>
964 * configure: Rebuilt.
965 * configure.in: Look for sched_yield in -lrt.
967 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
969 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
970 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
971 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
973 (toString): Print correctly when `country' is empty.
975 1999-08-04 Per Bothner <per@bothner.com>
977 * configure.in: Also do AC_SUBST for DIVIDESPEC.
979 1999-08-02 Tom Tromey <tromey@cygnus.com>
981 * aclocal.m4, configure: Rebuilt for new libtool.
983 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
985 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
986 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
987 * java/net/ServerSocket.java: Define ANY_IF.
988 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
989 all network interfaces.
990 * java/net/DatagramSocket.java (DatagramSocket): ditto.
991 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
993 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
995 * java/io/natFile.cc (performMkdir): Remove FIXME.
996 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
998 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1000 * configure.in: Check for bstring.h.
1001 * configure, include/config.h.in: Rebuilt.
1002 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1003 * java/net/natPlainSocketImpl.cc: Likewise.
1005 1999-07-31 Tom Tromey <tromey@cygnus.com>
1010 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1012 * configure.in: Check for struct hostent_data and need for
1013 -D_REENTRANT for gethostbyname_r declaration.
1014 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1015 (lookup): Use hostent_data for fixed_buffer.
1016 * configure, include/config.h.in: Rebuilt.
1018 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1020 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1021 available. Don't cast memmove args to (void*).
1022 * configure.in: Do not abort if memmove is not available.
1024 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1026 * java/lang/natString.cc (substring): optimize where substring is
1028 * java/io/File.java (getName): don't return separator with file name.
1029 * java/io/natFile.cc (attr): fix overflow.
1031 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1033 * mauve-libgcj: Disable Object Serialization tests.
1035 1999-07-20 Warren Levy <warrenl@cygnus.com>
1037 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1038 Default to using PlainDatagramSocketImpl.
1039 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1041 1999-07-19 Tom Tromey <tromey@cygnus.com>
1043 * include/stamp-h.in: New file.
1045 1999-07-12 Tom Tromey <tromey@cygnus.com>
1047 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1050 1999-07-07 Andrew Haley <aph@cygnus.com>
1052 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1053 bytes to make it point after the instruction where the trap
1055 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1057 1999-07-07 Tom Tromey <tromey@cygnus.com>
1059 * mauve-libgcj: Explicitly enable formerly disabled java.text
1062 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1065 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1067 * java/net/URL.java (equals): Compare strings using String.equals.
1068 * java/net/URL.java (sameFile): Ditto.
1070 1999-07-02 Warren Levy <warrenl@cygnus.com>
1072 * configure: Rebuilt.
1073 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1074 * include/config.h.in: Rebuilt.
1075 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1076 (mcastGrp): Updated FIXME comments.
1077 (setOption): Fixed typo.
1078 (getOption):Implemented IP_MULTICAST_IF.
1080 1999-07-02 Warren Levy <warrenl@cygnus.com>
1082 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1083 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1084 (getTimeToLive): Implemented.
1085 (setOption): Implemented IP_MULTICAST_IF.
1087 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1089 * java/lang/String.java (toString): Check for this == null and throw
1090 NullPointerException.
1092 1999-07-01 Warren Levy <warrenl@cygnus.com>
1094 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1095 to count and revised comments to match.
1096 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1097 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1098 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1099 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1100 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1101 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1103 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1105 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1106 properly as count rather than outlength.
1107 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1108 output on overflow rather than buffer fill.
1109 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1110 if markPos is 0 and there is still room in the buffer.
1112 1999-07-01 Andrew Haley <aph@cygnus.com>
1114 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1115 This is a workaround for a bug in glibc's pthreads package which
1116 doesn't deliver any sigcontext information to a signal handler.
1118 1999-06-24 Tom Tromey <tromey@cygnus.com>
1120 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1121 * java/lang/fdlibm.h (HUGE): Conditionally define.
1123 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1125 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1126 * java/lang/e_log.c: Don't use __uint32_t.
1128 1999-05-27 Eric Christopher <echristo@cygnus.com>
1130 * configure: Rebuilt
1131 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1132 * acconfig.h: Rebuilt
1133 * include/config.h.in: Rebuilt
1135 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1136 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1137 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1138 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1139 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1140 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1141 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1142 and namespace collision with __uint32_t
1144 1999-06-23 Tom Tromey <tromey@cygnus.com>
1146 * java/util/zip/InflaterInputStream.java (read): Throw
1147 ZipException if inflater throws a DataFormatException.
1149 1999-06-23 Warren Levy <warrenl@cygnus.com>
1151 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1152 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1153 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1154 is not final per JDK.
1155 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1157 * java/util/zip/DataFormatException.java: Class extends Exception.
1158 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1159 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1160 * java/util/zip/ZipInputStream.java: ditto.
1161 (closeEntry): Changed method name to match JDK spec.
1163 1999-06-21 Tom Tromey <tromey@cygnus.com>
1165 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1168 * Makefile.in: Rebuilt.
1169 * Makefile.am (toolexeclibdir): Define as libdir when
1171 * configure: Rebuilt.
1172 * configure.in (USE_LIBDIR): New conditional.
1174 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1176 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1177 hostname in returned InetAddress objects.
1178 (getLocalHostname): Fix typo.
1179 * java/net/InetAddress.java (getByName): Set hostname on return
1181 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1184 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1186 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1187 interfaces if host==NULL.
1188 (accept): Throw message with InterruptedIOException.
1189 (getOption): Cache localAddress.
1190 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1191 'address' for DatagramSocket.
1192 (setTimeToLive): Fix compiler warnings.
1193 (getOption): Cache localAddress.
1194 * java/net/Socket.java (getLocalAddress): Don't need local
1195 InetAddress object. Add FIXME comment about calling checkConnect().
1196 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1197 connection queue to 50 as per JDK 1.2 docs.
1198 (ServerSocket(int,int)): Listen on all network interfaces by
1199 default, per JDK 1.2 docs.
1200 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1201 Add localAddress caching.
1203 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1205 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1207 (write(byte[],int,int)): ditto.
1209 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1211 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1213 1999-06-11 Warren Levy <warrenl@cygnus.com>
1215 * mauve-libgcj: Activated java.net Mauve tests.
1217 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1219 * java/net/natInetAddress.cc (aton): Fix typos.
1220 (lookup): Use a bigger buffer size for gethostbyname_r on all
1221 versions of glibc. Updated FIXME comment explaining this.
1222 Modified while loops to not set herr = ERANGE to work around glibc
1223 problems. Use user specified hostname in InetAddress result when
1224 available (consistent with JDK).
1226 1999-06-10 Warren Levy <warrenl@cygnus.com>
1228 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1229 Throw FileNotFoundException instead of IOException.
1231 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1233 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1234 in static field name.
1235 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1236 throughout rather than ParseException.
1238 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1240 * java/lang/Runtime.java (exec): Convert prog name and arguments
1242 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1243 environment array conversion. Preserve current environment if envp
1244 not passed. Preserve PATH unless explicitly specified.
1245 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1246 followed by EOF. Set a flag when a line is terminated by '\r' and
1247 ignore following '\n' if set.
1249 1999-06-02 Warren Levy <warrenl@cygnus.com>
1251 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1252 Ignore context if spec is an absolute URL. Fix braindead
1254 (hashCode): Use JDK 1.2 style algorithm.
1255 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1256 context URL properly.
1258 1999-05-30 Anthony Green <green@cygnus.com>
1260 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1261 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1263 1999-05-28 Warren Levy <warrenl@cygnus.com>
1265 * java/net/DatagramSocket.java (laddr): Removed.
1266 (DatagramSocket): Removed attempts to get or set laddr if null.
1267 (getLocalAddress): Reimplemented per spec.
1268 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1270 (joinGroup): Throw NullPointerException if any argument is null.
1271 (leaveGroup): ditto.
1272 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1273 * java/net/PlainSocketImpl.java (timeout): Added.
1274 (getInputStream): Added FIXME comment on how to support timeouts
1276 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1277 * java/net/Socket.java: Added FIXME comments to identify
1278 conflicting specs between the JCL and JDK 1.2 documents.
1279 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1280 if host is null. Get localport value resolved by kernel if bind
1282 (receive): Implemented support for timeouts in UDP.
1283 (setOption): Implemented based on natPlainSocketImpl version.
1285 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1286 resolved by kernel if bind lport is 0.
1287 (connect): Get localport value resolved by kernel if bind wasn't
1288 done to set localport.
1289 (accept): Implemented support for timeouts for ServerSocket.
1290 (setOption): Save value for SO_TIMEOUT.
1291 (getOption): Return timeout for SO_TIMEOUT.
1293 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1295 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1296 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1297 (setOption): Made abstract.
1298 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1299 to avoid cpp conflicts in native code.
1300 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1301 cpp conflicts in native code.
1302 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1303 * java/net/Socket.java (getLocalAddress): Implemented.
1304 (setTcpNoDelay): Implemented.
1305 (getTcpNoDelay): Implemented.
1306 (setSoLinger): Implemented.
1307 (getSoLinger): Implemented.
1308 (getSoTimeout): Verify class type.
1309 (setSendBufferSize): Implemented.
1310 (getSendBufferSize): Implemented.
1311 (setReceiveBufferSize): Implemented.
1312 (getReceiveBufferSize): Implemented.
1313 (toString): Prepended "Socket".
1314 * java/net/SocketImpl.java (toString): Rewritten.
1315 (getOption): Made abstract.
1316 (setOption): Made abstract.
1317 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1318 (setOption): Implemented.
1319 (getOption): Implemented.
1321 1999-05-26 Warren Levy <warrenl@cygnus.com>
1323 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1324 address when null. Set SO_REUSEADDR for multicasts.
1325 (getSoTimeout): Implemented.
1326 (setSoTimeout): Implemented.
1327 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1328 * java/net/MulticastSocket.java (getInterface): Implemented.
1329 (setInterface): Implemented.
1330 (setTimeToLive): Check for invalid ttl.
1331 (joinGroup): Verify multicast address and security.
1332 (leaveGroup): Verify multicast address and security.
1333 (send): Implemented.
1334 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1340 (getTTL): Implemented as non-native.
1344 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1345 (getSoTimeout): Implemented.
1346 (setSocketFactory): Made synchronized.
1347 * java/net/Socket.java (setSoTimeout): Implemented.
1348 (getSoTimeout): Implemented.
1349 (close): Made synchronized.
1350 (setSocketImplFactory): Made synchronized.
1351 * java/net/SocketImpl.java: Implement SocketOptions interface.
1352 * java/net/natInetAddress.cc: Corrected module name at top of file.
1353 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1354 (bind): Added FIXME.
1355 (peek): Implemented.
1361 (setOption): Implemented for SO_REUSEADDR.
1362 (getOption): Implemented for SO_REUSEADDR.
1364 1999-05-24 Tom Tromey <tromey@cygnus.com>
1366 * java/util/ResourceBundle.java (getBundle): Throw
1367 NullPointerException if baseName is null.
1369 1999-05-22 Tom Tromey <tromey@cygnus.com>
1371 * java/util/zip/ZipInputStream.java (fill): New method.
1372 (compressed_len): New instance variable.
1373 (getNextStream): Set it.
1374 (read): Reset inflater on EOF. Only read via `super' if entry is
1376 (skip): Only skip via `super' if entry is deflated.
1377 * java/util/zip/Deflater.java (last_input_count): Removed.
1378 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1380 (needsInput): Don't use last_input_count.
1381 (setInput): Don't set last_input_count.
1382 * java/util/zip/natInflater.cc (getRemaining): Return correct
1384 (inflate): Return 0 if input array is length 0.
1385 (setInput): Don't set last_input_count.
1386 * java/util/zip/Inflater.java (last_input_count): Removed.
1388 1999-05-21 Tom Tromey <tromey@cygnus.com>
1390 * Makefile.in: Rebuilt.
1391 * Makefile.am (INCLUDES): Added $(ZINCS).
1392 * configure: Rebuilt.
1393 * configure.in (ZINCS): New subst.
1395 1999-05-21 Andrew Haley <aph@cygnus.com>
1397 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1398 to signal options to allow the same exceptions to be rethrown
1401 1999-05-20 Andrew Haley <aph@cygnus.com>
1403 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1405 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1406 (INIT_FPE): Exception string made more informative.
1407 * include/sparc-signal.h (INIT_FPE): Exception string made more
1409 * testsuite/libjava.lang/Divide_1.java: New file.
1410 * testsuite/libjava.lang/Divide_1.out: New file.
1412 1999-05-19 Tom Tromey <tromey@cygnus.com>
1414 * aclocal.m4, configure: Rebuilt.
1415 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1417 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1420 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1422 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1424 (update): Fail in default case. Always initialize `strat'.
1426 * mauve-libgcj: Enable java.util.zip.
1428 1999-05-18 Warren Levy <warrenl@cygnus.com>
1430 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1431 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1432 PlainDatagramSocketImpl.java, and SocketOptions.java.
1433 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1434 * Makefile.in: Rebuilt.
1436 * java/net/DatagramPacket.java: New file.
1437 * java/net/DatagramSocket.java: New file.
1438 * java/net/DatagramSocketImpl.java: New file.
1439 * java/net/MulticastSocket.java: New file.
1440 * java/net/PlainDatagramSocketImpl.java: New file.
1441 * java/net/SocketOptions.java: New file.
1442 * java/net/natPlainDatagramSocketImpl.cc: New file.
1444 1999-05-18 Tom Tromey <tromey@cygnus.com>
1446 * java/util/zip/ZipOutputStream.java (level): Initial value is
1447 Deflater.DEFAULT_COMPRESSION.
1448 (close): New method.
1449 (closeEntry): Likewise.
1451 (put_version): Likewise.
1452 (write_entry): Likewise.
1453 (put2, put4): Now return `int'.
1454 (comment): Default to empty string.
1455 (bytes_written): New instance variable.
1457 * java/util/zip/ZipEntry.java (setComment): Limit length of
1459 (setCrc): Check CRC validity.
1460 (setExtra): Check argument validity.
1461 (setMethod): Likewise.
1462 (setSize): Likewise.
1463 (ZipEntry): Likewise.
1464 * include/javaprims.h: Updated namespace declarations.
1465 * Makefile.in: Rebuilt.
1466 * Makefile.am (ordinary_java_source_files): Mention new files.
1467 (nat_source_files): Likewise.
1468 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1471 (getInputStream): Handle compressed entries.
1472 * java/util/zip/GZIPOutputStream.java: New file.
1473 * java/util/zip/GZIPInputStream.java: New file.
1474 * java/util/zip/DataFormatException.java: New file.
1475 * java/util/zip/CheckedInputStream.java: New file.
1476 * java/util/zip/CheckedOutputStream.java: New file.
1477 * java/util/zip/InflaterInputStream.java: Implemented.
1478 * java/util/zip/natInflater.cc: New file.
1479 * java/util/zip/Deflater.java: Implemented.
1480 * java/util/zip/natDeflater.cc: New file.
1481 * java/util/zip/DeflaterOutputStream.java: Implemented.
1483 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1484 ZipException, not IOException.
1485 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1488 1999-05-17 Tom Tromey <tromey@cygnus.com>
1490 * java/lang/natSystem.cc (init_properties): URL now points to
1493 1999-05-12 Per Bothner <bothner@cygnus.com>
1495 * java/util/Calendar.java (set): First call computeFields if needed.
1496 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1498 1999-05-12 Tom Tromey <tromey@cygnus.com>
1500 * configure: Rebuilt.
1501 * configure.in: Look for -ldl when using the Boehm collector.
1502 Look for sched_yield in -lposix4.
1504 1999-05-12 Per Bothner <bothner@cygnus.com>
1506 * java/io/File.java (mkdirs): Handle a null parent directory.
1508 1999-05-12 Tom Tromey <tromey@cygnus.com>
1510 * include/javaprims.h: Updated namespace declarations.
1511 * classes.pl (scan): Uniquify class list.
1512 * Makefile.in, configure: Rebuilt.
1513 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1514 (built_java_source_files): New macro.
1515 (nat_headers): Added built_java_source_files.
1516 (javao_files): Likewise.
1517 (EXTRA_libgcj_la_SOURCES): Likewise.
1518 (libgcj.zip): Create built class files.
1519 ($(built_java_source_files:.java=.class)): New target.
1520 (jv_convert_LDADD): Added -L$(here)/.libs.
1521 * configure.in: Create links for ConcreteProcess.java and
1522 natConcreteProcess.cc.
1523 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1524 * java/lang/natEcosProcess.cc: New file.
1525 * java/lang/EcosProcess.java: New file.
1526 * java/lang/PosixProcess.java: New file.
1527 * java/lang/natPosixProcess.cc: New file.
1529 1999-05-12 Warren Levy <warrenl@cygnus.com>
1531 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1532 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1533 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1534 (connect): Throw ConnectException.
1536 1999-05-11 Tom Tromey <tromey@cygnus.com>
1538 * Makefile.in: Rebuilt.
1539 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1540 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1543 * Makefile.in: Rebuilt.
1544 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1545 and it causes problems with libtool.
1547 * Makefile.in, configure: Rebuilt.
1548 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1549 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1550 (jv_convert_DEPENDENCIES): Added ZDEPS.
1551 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1553 (THREADSPEC): Added `-L' to point to qthreads build directory.
1557 * configure, Makefile.in: Rebuilt.
1558 * Makefile.am (toolexeclib_DATA): New macro.
1559 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1560 Recognize --with-system-zlib.
1561 (GCSPEC): New subst.
1562 (THREADSPEC): New subst.
1563 (SYSTEMSPEC): New subst.
1564 (ZLIBSPEC): New subst.
1565 * libgcj.spec.in: New file.
1567 1999-05-10 Tom Tromey <tromey@cygnus.com>
1569 * java/io/InputStreamReader.java (read): If length is 0, return
1570 0. Reset `wpos' and `wcount' when buffer has been filled and
1573 * java/util/Properties.java (save): Removed `FIXME' comment.
1574 (load): Invalid characters in \u now treated as terminators.
1575 Make sure to append character resulting from `\' handling.
1576 Cast to `char' when appending to key or value.
1577 (skip_ws): Inverted test for whitespace.
1579 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1581 (readLine): Likewise.
1582 (readFully): Implemented.
1584 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1586 * java/awt/natToolkit.cc: Added copyright header.
1587 * java/util/zip/InflaterInputStream.java: Added copyright header.
1589 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1591 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1593 (getNextStream): Likewise.
1595 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1597 (getBundle): Don't explicitly throw null pointer exception.
1599 * gnu/gcj/RawData.java: Added copyright header.
1601 * include/jni.h (_Jv_va_list): Always define as va_list.
1603 1999-05-9 Anthony Green <green@cygnus.com>
1605 * java/text/DateFormat.java (computeInstance): Separate time
1607 (getDateTimeInstance): Ditto.
1608 (getDateTimeInstance(int,int)): New method.
1610 * Makefile.in: Rebuilt.
1611 * Makefile.am (ordinary_java_source_files): Add new classes.
1613 * java/util/PropertyResourceBundle.java: New file.
1614 * gnu/gcj/util/EnumerationChain.java: New file.
1616 1999-05-07 Tom Tromey <tromey@cygnus.com>
1618 * acconfig.h (GCJVERSION): New undef.
1619 * java/lang/natSystem.cc (init_properties): Define java.version,
1620 java.class.version, os.name, os.arch, os.version.
1621 Include <sys/utsname.h> if required.
1622 * configure: Rebuilt.
1623 * configure.in: Compute and define GCJVERSION.
1625 * java/lang/natSystem.cc (default_file_encoding): Now static.
1627 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1629 * libtool-version: New file.
1630 * Makefile.in: Rebuilt.
1631 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1634 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1635 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1638 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1639 (we pick those up already).
1641 1999-05-05 Per Bothner <bothner@cygnus.com>
1643 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1644 stub classes. (This is enough to get Kawa to compile against libgcj.)
1646 * gnu/gcj/RawData.java: New class.
1647 * doc/cni.sgml: Document RawData.
1649 * java/util/zip/InflaterInputStream.java: New stub class.
1650 * java/util/zip/ZipInputStream.java: New class. Partly works.
1651 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1652 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1653 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1654 * java/util/zip/ZipOutputStream.java: Start implementation.
1656 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1657 (default_file_encoding): New global, initial value is above macro.
1658 (init_properties): Default file.encoding to default_file_encoding.
1660 * Makefile.am: Add new classes.
1662 1999-05-05 Tom Tromey <tromey@cygnus.com>
1664 * Makefile.in: Rebuilt.
1665 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1666 (clean-local): New target
1668 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1669 (load, loadLibrary): Now native.
1671 * java/lang/Runtime.java (load, loadLibrary): Now native.
1672 (init): New native method.
1673 (Runtime): Use init.
1674 * prims.cc: Include <ltdl.h> if required.
1675 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1677 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1679 * configure.in: Switch from irix threads to posix threads
1680 * configure: Regenerate.
1682 1999-04-30 Tom Tromey <tromey@cygnus.com>
1684 * Makefile.in: Rebuilt.
1685 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1687 1999-04-29 Tom Tromey <tromey@cygnus.com>
1689 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1692 * java/util/Locale.java (Locale(String,String)): Implement in
1693 terms of 3-argument version; variant now defaults to empty
1695 (toString): Assume variant is not null.
1696 (equals): Assume all strings are not null.
1697 (Locale): Throw NullPointerException if any argument is null.
1699 * java/util/ResourceBundle.java (getBundle): Don't try the base
1700 name; now implicit in partialGetBundle call.
1701 (trySomeGetBundle): Search for parent bundles and call setParent
1703 (partialGetBundle): Added `langStop' argument. Use
1704 `Locale.toString' to compute bundleName.
1705 (resource_cache): New static field.
1706 (partialGetBundle): Cache the returned resource bundle. Now
1709 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1712 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1713 * java/text/natCollator.cc (decomposeCharacter): `base' now
1715 * Makefile.in: Rebuilt.
1716 * Makefile.am (ordinary_java_source_files): Added
1717 CollationElementIterator, CollationKey, Collator,
1719 (nat_source_files): Added natCollator.cc.
1720 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1721 (compare): Pass `this' to CollationElementIterator constructor.
1722 (getCollationElementIterator): Likewise.
1723 (ceiNext): Fix off-by-one error when finding initial substring.
1724 (next): Correctly mask off bits when computing return value.
1725 Fixed return values when one string is shorter than the other.
1726 * java/text/CollationElementIterator.java (collator): New field.
1727 (CollationElementIterator): Added collator argument.
1728 (next): Call ceiNext on collator object.
1730 1999-04-26 Tom Tromey <tromey@cygnus.com>
1732 * natCollator.cc: New file.
1734 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1735 (GregorianCalendar): Use it in all constructors.
1736 * java/util/Calendar.java (Calendar): Changed argument name to
1737 `zone' to match code.
1739 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1740 * java/text/CollationKey.java: New file.
1741 * java/text/CollationElementIterator.java: New file.
1742 * java/text/Collator.java: New file.
1743 * java/text/RuleBasedCollator.java: New file.
1745 * Makefile.in: Rebuilt.
1746 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1747 (jv_convert_LDADD): Explicltly add -lm -lc.
1749 1999-04-26 Tom Tromey <tromey@cygnus.com>
1751 * configure, Makefile.in: Rebuilt.
1752 * configure.in: Added AM_PROG_LIBTOOL.
1753 (GCOBJS): Use `.lo' form of files.
1754 (THREADOBJS): Likewise.
1755 (GCDEPS): Use `.la' form of library.
1756 (GCLIBS): Set to be the same as GCDEPS.
1757 (THREADDEPS): Use `.la' form of library.
1758 (THREADLIBS): Set to be the same as THREADDEPS.
1759 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1760 toolexeclib_LIBRARIES.
1761 (libgcj_la_SOURCES): Renamed for libtoolization.
1762 (EXTRA_libgcj_la_SOURCES): Likewise.
1763 (libgcj_la_DEPENDENCIES): Likewise.
1764 (libgcj_la_LIBADD): Likewise.
1765 ($(nat_files)): Use LTCXXCOMPILE.
1766 ($(c_files)): Use LTCOMPILE.
1767 (GCJCOMPILE): New macro.
1769 (.java.o): Likewise.
1770 ($(javao_files)): Likewise.
1771 (jv_convert_LINK): Use LIBTOOL.
1772 (nat_files): Use `.lo' files.
1773 (c_files): Likewise.
1774 (javao_files): Likewise.
1775 (.class.lo): Renamed.
1776 (.java.lo): Likewise.
1777 ($(nat_files)): Depend on %.lo.
1778 ($(c_files)): Likewise.
1779 ($(javao_files)): Likewise.
1780 (jv_convert_LDADD): Link against .lo files.
1781 (jv_convert_DEPENDENCIES): Depend on .lo files.
1782 (maintainer-check): Depend on libgcj.la, but examine .a file.
1783 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1784 (libgcj_la_LDFLAGS): New macro.
1786 1999-04-23 Warren Levy <warrenl@cygnus.com>
1788 * Makefile.am: Added URLDecoder and URLEncoder.
1789 * Makefile.in: Rebuilt.
1791 * java/net/ServerSocket.java (setSocketFactory): Renamed from
1792 setSocketImplFactory to match spec.
1793 * java/net/Socket.java (getSoLinger): Changed return type to
1796 * java/net/URLDecoder.java: New file.
1797 * java/net/URLEncoder.java: New file.
1799 1999-04-21 Tom Tromey <tromey@cygnus.com>
1801 * java/lang/natString.cc (getBytes): Reverted earlier change and
1802 applied correct fix from Per Bothner.
1804 * java/lang/String.java: Don't throw
1805 UnsupportedEncodingException.
1807 * java/lang/natString.cc (getBytes): Correctly size result
1808 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
1810 1999-04-20 Andrew Haley <aph@cygnus.com>
1812 * include/sparc-signal.h: new file.
1813 * configure.in: include/sparc-signal.h added.
1814 * configure: regenerated.
1815 * prims.cc (JvRunMain): signal handling code rewritten to be more
1817 (catch_segv): ditto.
1819 * include/i386-signal.h: reorganized.
1820 * include/default-signal.h: reorganized.
1822 1999-04-19 Tom Tromey <tromey@cygnus.com>
1824 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1825 once. From Anthony Green.
1827 1999-04-19 Andrew Haley <aph@cygnus.com>
1829 * Makefile.in: Processed with new automake.
1831 1999-04-19 Tom Tromey <tromey@cygnus.com>
1833 * include/javaprims.h: Removed security namespace.
1835 1999-04-20 Anthony Green <green@cygnus.com>
1837 * java/io/PrintStream.java (println): Remove extra println.
1839 1999-04-19 Anthony Green <green@cygnus.com>
1841 * Makefile.in: Rebuilt.
1842 * Makefile.am (ordinary_java_source_files): Add new security files.
1844 * java/security/NoSuchAlgorithmException.java,
1845 java/security/MessageDigest.java: New files.
1847 * include/javaprims.h: Add security namespace.
1849 1999-04-16 Per Bothner <bothner@cygnus.com>
1851 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
1852 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1853 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1854 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
1855 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
1856 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
1857 * gnu/gcj/convert/natInput_SJIS.cc: New file.
1858 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
1859 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
1860 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
1861 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
1862 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
1863 * Makefile.am: Various changes for new files and conversions.
1865 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1866 New overloading, allows greater efficiency.
1867 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1868 New overloading (for efficiency - avoids copying).
1870 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
1871 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
1873 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
1874 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
1875 (writeChars): Don't be quite so eager to flush.
1876 * java/io/PrintStream.java: Rewrite. Now more similar to
1877 OutputStreamWriter, using explicit UnicodeToBytes converter.
1878 Also, autoflush does not need to flush so often.
1879 * java/lang/natString.cc (getBytes): More efficient algorithm.
1880 (init(jbyteArray,jint,jint,jstring)): More efficient.
1882 1999-04-15 Warren Levy <warrenl@cygnus.com>
1884 * Makefile.am (ordinary_java_source_files): Added new Connection
1885 and Handler classes in gnu.gcj.protocol.file package.
1886 * Makefile.in: Rebuilt.
1888 * gnu/gcj/protocol/file/Connection.java: New file.
1889 * gnu/gcj/protocol/file/Handler.java: New file.
1890 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1891 if doInput allows input.
1892 (getOutputStream): Check if doOutput allows output.
1893 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
1895 1999-04-14 Tom Tromey <tromey@cygnus.com>
1897 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
1898 buffer larger to work around bug.
1899 From Bryce McKinlay <bryce@albatross.co.nz>.
1901 1999-04-14 Andrew Haley <aph@cygnus.com>
1903 * java/lang/natDouble.java (doubleToLongBits): ensure that all
1904 NaNs are always converted to the same long value.
1905 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
1908 1999-04-13 Tom Tromey <tromey@cygnus.com>
1910 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
1911 instead switch on actual element type.
1913 * Makefile.in: Rebuilt.
1914 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
1916 1999-04-13 Andrew Haley <aph@cygnus.com>
1918 * include/i386-signal.h, include/default-signal.h: New files.
1919 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
1921 (catch_fpe): New function.
1922 * configure.in: Make link to appropriate include/java-signal.h.
1923 * configure: Rebuilt.
1924 * Makefile.am: include/java-signal.h added to dependency list.
1925 * Makefile.in: Rebuilt.
1927 1999-04-12 Urban Widmark <urban@svenskatest.se>
1929 * java/io/DataInputStream.java (readLine): Corrected handling of
1930 empty lines, from null to "".
1932 1999-04-12 Tom Tromey <tromey@cygnus.com>
1934 * Makefile.in: Rebuilt.
1935 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
1937 * java/lang/natSystem.cc (SystemClass): New define.
1938 (init_properties): Synchronize.
1940 1999-04-08 Geoff Berry <gcb@gnu.org>
1942 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
1943 * natPlainSocketImpl.cc (accept): Add missing else if check
1946 1999-04-08 Tom Tromey <tromey@cygnus.com>
1948 * java/lang/Long.java (parseLong): Corrected overflow detection
1950 * java/lang/Integer.java (parseInt): Corrected overflow detection
1953 * java/io/PrintStream.java (print): Handle null string argument.
1954 (println): Likewise.
1956 1999-04-07 Warren Levy <warrenl@cygnus.com>
1958 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
1959 Set count to 0 when InputStreamReader returns -1 for EOF.
1961 1999-04-07 Tom Tromey <tromey@cygnus.com>
1963 * mauve-libgcj: Omit java.text.Collator,
1964 java.text.RuleBasedCollator.
1966 1999-04-06 Tom Tromey <tromey@cygnus.com>
1968 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
1969 IOException from getHttpHeaders().
1970 (getHeaderFieldKey): Likewise.
1972 * include/javaprims.h: Regenerated declarations.
1974 * Makefile.in: Rebuilt.
1975 * Makefile.am (ordinary_java_source_files): Updated for removed
1978 1999-04-06 Per Bothner <bothner@cygnus.com>
1980 * java/util/zip/Adler32.java: New class.
1981 * java/util/zip/CRC32.java: Add working method bodies.
1982 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
1983 * Makefile.in: Re-generate.
1985 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
1987 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
1988 from version in removed www hierarchy.
1989 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
1990 version in removed www hierarchy.
1992 * gnu/gcj/www/protocol/http/Connection.java: Removed.
1993 * gnu/gcj/www/protocol/http/Handler.java: Removed.
1994 * gnu/gcj/www/protocol/http: Removed dir.
1995 * gnu/gcj/www/protocol: Removed dir.
1996 * gnu/gcj/www: Removed dir.
1998 * java/net/HttpURLConnection.java: Revised comments to indicate
1999 missing JDK 1.2 methods.
2001 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2002 hierarchy rather than the gnu/gcj/www/protocol one.
2003 * java/net/URLConnection.java: Updated status comments.
2004 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2005 the gnu/gcj/www/content one.
2007 1999-04-06 Per Bothner <bothner@cygnus.com>
2009 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2010 The gen-from-JIS program is in $(CONVERT_DIR).
2012 1999-04-06 Tom Tromey <tromey@cygnus.com>
2014 * mauve-libgcj: Renamed from mauve-libjava.
2016 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2018 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2019 (getResponseMessage): Implemented.
2020 (getResponseVals): New private method.
2022 * java/net/URLConnection.java (getContent): Implemented.
2023 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2025 1999-04-05 Tom Tromey <tromey@cygnus.com>
2027 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2028 (jv_convert_SOURCES): Renamed.
2029 (EXTRA_jv_convert_SOURCES): Likewise.
2030 (jv_convert_LDFLAGS): Likewise.
2031 (jv_convert_LINK): Likewise.
2032 (jv_convert_LDADD): Likewise.
2033 (jv_convert_DEPENDENCIES): Likewise.
2035 * Makefile.in: Rebuilt.
2036 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2039 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2041 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2042 method for comparison.
2044 * java/net/URLConnection.java (getContentLength): Implemented.
2045 (getContentType): Implemented.
2046 (getContentEncoding): Implemented.
2047 (getExpiration): Implemented.
2048 (getDate): Implemented.
2049 (getLastModified): Implemented.
2050 (getHeaderFieldInt): Implemented.
2051 (getHeaderFieldDate): Implemented.
2053 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2055 * java/net/URLConnection.java (toString): Implemented.
2056 (setContentHandlerFactory): Implemented.
2057 (setContentHandler): Wrote new private helper method.
2059 1999-04-01 Tom Tromey <tromey@cygnus.com>
2061 * Makefile.in: Rebuilt.
2062 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2063 of 1999-03-31; we always want to build all the .class files.
2064 Depend on java_source_files, not libgcj.zip.
2065 (nat_headers): Define in terms of ordinary_java_source_files.
2067 1999-03-31 Tom Tromey <tromey@cygnus.com>
2069 * Makefile.in: Rebuilt.
2070 * Makefile.am (special_java_source_files): New macro.
2071 (java_source_files): Use it.
2072 (ordinary_java_source_files): New macro.
2073 (java_source_files): Use it.
2074 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2075 creating headers for those files with hand-maintained headers.
2077 * include/javaprims.h: Regenerated namespace declarations.
2078 * classes.pl (scan): Include [0-9] in regexp for matching class
2079 names; for java.util.zip.CRC32.
2081 * Makefile.in: Rebuilt.
2082 * Makefile.am (nat_headers): Redefined to generate all possible
2085 * java/util/zip/ZipException.java: In package java.util.zip, not
2088 1999-03-30 Tom Tromey <tromey@cygnus.com>
2090 * configure: Rebuilt.
2091 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2092 eh-common.h when not building in tree with gcc.
2094 * Makefile.in: Rebuilt.
2095 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2096 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2098 ($(java_source_files:.java=.class)): New target.
2100 * Makefile.in: Rebuilt.
2101 * Makefile.am (java_source_files): Added
2102 java/net/HttpURLConnection.java and
2103 gnu/gcj/www/protocol/http/Connection.java.
2105 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2107 * gnu/gcj/www/protocol/http/Connection.java: New file.
2108 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2109 * java/net/HttpURLConnection.java: New file.
2110 * java/net/URLConnection.java (getHeaderField): Implemented default.
2111 (getHeaderFieldKey): Implemented default method.
2113 1999-03-30 Tom Tromey <tromey@cygnus.com>
2115 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2117 * java/util/zip/Deflater.java: Added copyright header.
2118 * java/util/zip/CRC32.java: Added copyright header.
2120 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2121 that it is automatically generated.
2122 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2124 * gnu/gcj/convert/BytesToUnicode.java,
2125 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2126 gnu/gcj/convert/Input_EUCJIS.java,
2127 gnu/gcj/convert/Input_UTF8.java,
2128 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2129 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2130 gnu/gcj/convert/Output_8859_1.java,
2131 gnu/gcj/convert/Output_JavaSrc.java,
2132 gnu/gcj/convert/Output_UTF8.java,
2133 gnu/gcj/convert/UnicodeToBytes.java,
2134 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2136 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2138 * Makefile.in, configure: Rebuilt.
2139 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2140 not if test subdir exists.
2141 (--enable-gcj-classes): Removed; gcj always used to generate
2143 (JAVA, JAVAC): Removed.
2144 (--enable-single-compilation, --enable-source-compilation):
2147 (NATIVE): New conditional.
2148 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2149 `install-exec' to work.
2150 (toolexeclibdir): Likewise.
2151 (toollib_LIBRARIES): Likewise.
2152 (AM_MAKEFLAGS): Don't pass tooldir.
2154 (javao_files): Redefined.
2155 (java_source_files): New macro.
2156 (c_source_files): New macro.
2157 (c_files): Redefined in terms of c_source_files.
2158 (java_io_files, java_lang_files, java_net_files, java_text_files,
2159 java_util_files, gnu_files, java_files): Removed.
2160 (class_io_files, class_lang_files, class_net_files,
2161 class_text_files, class_util_files, class_gnu_files, class_files):
2163 (nat_source_files): New macro.
2164 (nat_files): Redefined in terms of nat_source_files.
2165 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2166 java_source_files. Removed no-such-file.c.
2168 (ETAGS_ARGS): Removed.
2169 (TAGS_DEPENDENCIES): Likewise.
2170 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2172 (src_io_files, src_lang_files, src_text_files, src_util_files,
2173 src_gnu_files): Removed.
2174 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2175 (BUILT_SOURCES): Removed.
2176 (header-check): New target.
2178 (noinst_PROGRAMS): New macro.
2179 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2181 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2182 (gen-from-JIS): Build in top directory.
2183 (convert_source_files): New macro.
2184 (convert_SOURCES): New macro.
2185 (convert_LDFLAGS): Likewise.
2186 (convert_LINK): Likewise.
2187 (convert_LDADD): Likewise.
2188 (convert_DEPENDENCIES): Likewise.
2190 (gen-from-JIS): Removed.
2191 (gen_from_JIS_SOURCES): New macro.
2192 (gen_from_JIS_LDADD): Likewise.
2193 (gen_from_JIS_DEPENDENCIES): Likewise.
2195 * configure: Rebuilt.
2196 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2197 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2198 when defining conditional.
2200 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2202 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2203 The Unicode Consortium does not permit their re-distribution.
2204 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2205 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2207 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2209 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2211 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2213 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2214 from Unicode Consortium.
2215 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2216 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2217 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2218 New tables, generated using gen-from-JIS.
2219 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2220 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2221 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2222 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2224 * gnu/gcj/convert/Convert.java: New application.
2225 * Makefile.am, Makefile.in (convert): New program, using Convert.
2226 Build the various JIS conversion tables (in maintainer mode).
2228 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2230 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2232 * java/net/URL.java (URL): Deal with null property value. Use "."
2233 as separator in building class name.
2234 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2235 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2236 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2237 beginning of the substring rather than 'start'.
2239 1999-03-26 Tom Tromey <tromey@cygnus.com>
2241 * include/java-chartables.h: Rebuilt.
2242 * include/java-chardecomp.h: New file.
2243 * chartables.pl: Generate output files directly. Added support
2244 for generating decomposition header.
2245 (canonical_decomposition, full_decomposition): New globals.
2246 (DECOMPOSITION): New constant.
2247 (process_char): Call add_decomposition.
2248 (add_decomposition): New sub.
2249 (write_decompositions): New sub.
2251 1999-03-25 Tom Tromey <tromey@cygnus.com>
2253 * java/text/CollationElementIterator.java: New file.
2255 * mauve-libjava: Omit StringTest.
2257 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2259 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2260 without a '/' when parsing protocol. Handle ref outside of parseURL.
2261 (hashCode): Implemented.
2262 (set): Don't expand -1 to default port.
2263 (getDefaultPort): Removed.
2265 * java/net/URLStreamHandler.java (parseURL): Implemented.
2266 (toExternalForm): Implemented.
2268 1999-03-23 Tom Tromey <tromey@cygnus.com>
2270 * java/text/BreakIterator.java (getSentenceInstance):
2272 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2274 * Makefile.in: Rebuilt.
2275 * Makefile.am (nat_headers): Added IllegalAccessException.
2276 * java/lang/natClass.cc (newInstance): Throw
2277 IllegalAccessException, not IllegalAccessError.
2278 Include IllegalAccessException.h.
2280 1999-03-22 Tom Tromey <tromey@cygnus.com>
2282 * gnu/gcj/text/LineBreakIterator.java: New file.
2283 * java/text/BreakIterator.java (getLineInstance): Implemented.
2285 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2286 copy constructor private.
2287 (previous, next): Removed erroneous comment about line
2289 (previous): Correctly recognize break between non-letter on the
2290 left and letter on the right. Handle apostrophes correctly.
2292 * java/text/BreakIterator.java (getWordInstance): Implemented.
2293 * gnu/gcj/text/WordBreakIterator.java: New file.
2294 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2296 * gnu/gcj/text/BaseBreakIterator.java: New file.
2298 1999-03-19 Tom Tromey <tromey@cygnus.com>
2300 * java/text/BreakIterator.java: New file (partially stubbed out).
2301 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2303 * include/config.h.in: Rebuilt.
2304 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2305 (HAVE_TIMEZONE): Likewise.
2306 * configure: Rebuilt.
2307 * configure.in: Added timezone checks.
2308 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2311 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2313 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2314 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2315 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2316 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2317 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2318 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2319 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2320 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2322 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2323 (BSD_COMP): Kludge needed for Solaris2.
2325 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2327 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2328 URL(java.net.URL, string, URLStreamHandler) and call it with a
2329 null handler. In latter constructor, added SecurityManager check.
2330 (set): Expect null handler on bad protocol rather than an exception.
2331 (setURLStreamHandler): Simplified exception handling; return null
2332 on invalid protocol.
2334 1999-03-18 Tom Tromey <tromey@cygnus.com>
2336 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2338 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2340 Include PrintStream.h, InputStream.h.
2341 * java/lang/System.java (ForwardingInputStream,
2342 ForwardingOutputStream): Removed.
2343 (setErr, setIn, setOut): Now native.
2345 Reverted patch from 1999-02-12 to work around problem in
2347 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2348 (_Jv_eh_free): Use free.
2350 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2351 for path name. Minor formatting fixes.
2353 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2355 * prims.cc (fail_on_finalization): New function.
2356 (_Jv_GCWatch): Likewise.
2358 * prims.cc (JvRunMain): Initialize `nullp'.
2359 (nullp): New global.
2360 (catch_segv): Throw nullp.
2362 * Makefile.in: Rebuilt.
2363 * Makefile.am (ZIP): In "null target" case, zip is found in the
2366 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2370 * java/lang/StringBuffer.java (StringBuffer): Don't use
2371 ensureCapacity to set initial capacity.
2372 (capacity): Subtract `length' from return result.
2374 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2376 * java/io/natFileDescriptorPosix.cc (open): Throw
2377 FileNotFoundException, but with filename and errno in msg.
2379 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2381 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2382 functionality folded into java/net/URL.java per spec.
2384 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2385 than EEXIST for throwing FileNotFoundException.
2387 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2388 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2390 * java/net/URLStreamHandler.java (parseURL): Added stub.
2392 1999-03-15 Andrew Haley <aph@cygnus.com>
2394 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2397 1999-03-15 Andrew Haley <aph@cygnus.com>
2399 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2402 1999-03-12 Tom Tromey <tromey@cygnus.com>
2404 * prims.cc (catch_segv): New function.
2405 Include <signal.h> if HANDLE_SEGV defined. Include
2406 NullPointerException.h.
2407 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2410 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2411 a SimpleDateFormat, not just a DateFormat.
2412 (defaultCenturyStart, formatData, pattern): Now private.
2413 (append): Now `final'. Use `NumberFormat.format'.
2415 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2417 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2420 * java/text/MessageFormat.java (format): Use default MessageFormat
2422 (parse, parseObject): Wrote.
2424 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2427 1999-03-12 Andrew Haley <aph@cygnus.com>
2429 * java/lang/String.java (indexOf): Replace with native method for
2431 * java/lang/natString.cc (IndexOf): As above.
2433 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2434 Argument check corrected.
2435 (init(jbyteArray,jint,jint,jstring)): Likewise.
2437 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2438 1.2 compliant method.
2440 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2442 * java/lang/Float.java (byteValue, shortValue): Likewise.
2444 1999-03-11 Tom Tromey <tromey@cygnus.com>
2446 * java/text/DecimalFormat.java (parse): Wrote.
2448 * java/text/ChoiceFormat.java (parse): Set error index on
2449 ParsePosition object.
2451 * java/lang/Integer.java (parseInt): Throw exception on overflow
2452 when intermediate result is most negative number. Changed
2453 overflow detection as well.
2454 * java/lang/Long.java (parseLong): Likewise.
2456 * configure, Makefile.in: Rebuilt.
2457 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2458 CANADIAN when building in source tree that doesn't include gcc.
2459 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2462 * java/text/ChoiceFormat.java (nextDouble): Correct some
2463 off-by-one errors when masking or adding.
2465 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2466 parameter, if given. Use `%', not IEEEremainder.
2467 (scanFix): Throw error if multiplier already set.
2468 (computePattern): Wrote.
2470 1999-03-11 Andrew Haley <aph@cygnus.com>
2472 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2474 (nextDouble): Corrected masking logic. Handle interaction between
2475 `next' and negative numbers.
2477 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2479 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2480 * java/net/URL.java: Added general comments.
2482 1999-03-10 Tom Tromey <tromey@cygnus.com>
2484 * java/text/ChoiceFormat.java (parse): Wrote.
2486 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2488 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2489 Create ChoiceFormat objects.
2490 (format): Special-case ChoiceFormat.
2491 (scanFormatElement): Include { and } in generated style string.
2493 1999-03-09 Tom Tromey <tromey@cygnus.com>
2495 * java/text/ChoiceFormat.java: New file.
2497 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2499 * java/net/BindException.java: Created.
2500 * java/net/ConnectException.java: Created.
2501 * java/net/ContentHandler.java: Created.
2502 * java/net/ContentHandlerFactory.java: Created.
2503 * java/net/FileNameMap.java: Created.
2504 * java/net/MalformedURLException.java: Created.
2505 * java/net/NoRouteToHostException.java: Created.
2506 * java/net/ProtocolException.java: Created.
2507 * java/net/ServerSocket.java (@author): Fixed typo.
2508 * java/net/Socket.java (@author): Fixed typo.
2509 * java/net/SocketImpl.java (@author): Fixed typo.
2510 * java/net/SocketImplFactory.java (@author): Fixed typo.
2511 * java/net/URL.java: Created - nearly complete.
2512 * java/net/URLConnection.java: Created - near-empty stub.
2513 * java/net/URLStreamHandler.java: Created - incomplete stub.
2514 * java/net/URLStreamHandlerFactory.java: Created.
2515 * java/net/UnknownServiceException.java: Created.
2517 1999-03-09 Tom Tromey <tromey@cygnus.com>
2519 * java/lang/System.java (ForwardingInputStream): New class.
2520 (ForwardingOutputStream): Likewise.
2521 (in, out, err): Now `final' forwarding streams.
2522 (setIn, setOut, setErr): Use appropriate method on forwarding
2525 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2528 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2530 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2531 * java/util/zip/Checksum.java: New interface (complete).
2532 * java/util/zip/Deflater.java: New class (near-empty stub).
2533 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2534 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2535 * java/util/zip/ZipEntry.java: New class (complete).
2536 * java/util/zip/ZipException.java: New class (complete).
2537 * java/util/zip/ZipFile.java: New class (incomplete stub).
2538 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2540 1999-03-09 Tom Tromey <tromey@cygnus.com>
2542 * java/text/MessageFormat.java (MessageFormatElement): Removed
2543 `public' specifiers.
2545 * java/text/DecimalFormat.java (scanFormat): Increment index
2546 before processing exponential format. Fixed a couple typos in
2548 (format): Correct normalization of exponent.
2550 1999-03-08 Tom Tromey <tromey@cygnus.com>
2552 * java/text/SimpleDateFormat.java (parse): Throw
2553 IllegalArgumentException, not ParseException.
2555 1999-03-05 Tom Tromey <tromey@cygnus.com>
2557 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2558 when constructing DateFormatSymbols. Initialize numberFormat
2559 field of superclass.
2561 * java/text/DateFormat.java (equals): Rewrote.
2562 (getAvailableLocales): New method.
2563 (getDateInstance): New methods.
2564 (getDateTimeInstance): Likewise.
2565 (getTimeInstance): Likewise.
2566 (getInstance): New method.
2567 (computeInstance): New method.
2569 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2571 (safeGetResource): New method.
2572 (DateFormatSymbols): Use Locale paramater.
2573 (equals): Now protected.
2574 Made instance variables private.
2576 1999-03-04 Tom Tromey <tromey@cygnus.com>
2578 * java/text/DecimalFormat.java: New file.
2580 * java/text/NumberFormat.java (groupingUsed,
2581 maximumFractionDigits, maximumIntegerDigits,
2582 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2584 (setDecimalSeparatorAlwaysShown, setMultiplier,
2585 setPositivePrefix): Removed.
2586 (setMinimumFractionDigits, setMaximumFractionDigits):
2588 (format): Now final.
2589 Added many new methods.
2591 * Makefile.in: Rebuilt.
2592 * Makefile.am (gnu_files): New macro.
2593 (java_files): Added gnu_files.
2594 (class_gnu_files): New macro.
2595 (class_files): Use it.
2596 (src_gnu_files): New macro.
2597 (gnu.o): New target.
2598 (javao_files): Added gnu.o.
2600 * gnu/gcj/text/LocaleData_en_US.java: New file.
2601 * gnu/gcj/text/LocaleData_en.java: New file.
2602 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2603 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2604 (safeGetString): New method.
2605 (safeGetChar): Likewise.
2607 1999-03-03 Tom Tromey <tromey@cygnus.com>
2609 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2612 * java/text/FieldPosition.java (equals): Don't check for null
2613 object; instanceof does this.
2615 * java/util/Locale.java (clone): New method.
2618 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2620 * doc/cni.sgml: New file.
2622 1999-03-03 Tom Tromey <tromey@cygnus.com>
2624 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2626 * java/text/DecimalFormatSymbols.java: New file.
2628 1999-03-02 Tom Tromey <tromey@cygnus.com>
2630 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2632 * configure: Rebuilt.
2633 * configure.in: Check for sys/filio.h.
2635 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2637 (load): Always throw UnsatisfiedLinkError.
2638 (loadLibrary): Likewise.
2640 1999-03-02 Anthony Green <green@cygnus.com>
2642 * LIBGCJ_LICENSE: New file.
2643 * LIBJAVA_LICENSE: Removed.
2644 * Many files: libjava now libgcj.
2646 1999-03-02 Tom Tromey <tromey@cygnus.com>
2648 * include/java-chartables.h: Rebuilt.
2649 * chartables.pl (print_block): Make table `const'.
2650 (print_numerics): Likewise.
2651 (print_single_map): Likewise.
2652 (print_all_block): Likewise.
2653 (print_case_table): Likewise.
2654 (print_fast_tables): Likewise.
2655 * java/lang/natCharacter.cc (table_search): `table' argument now
2658 1999-03-01 Tom Tromey <tromey@cygnus.com>
2660 * java/util/Date.java (before, after): Inverted logic.
2662 * java/util/Date.java (parse): Handle case where first character
2663 in string is open parenthesis.
2664 (skipParens): Rewrote.
2666 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2667 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2669 * java/util/Date.java (parse): Correctly compute beginning of
2672 * java/util/Hashtable.java (get): Throw NullPointerException if
2674 (containsKey): Likewise.
2676 * java/util/Properties.java (list): Truncate value to 37
2677 characters and add `...'.
2679 * java/lang/Byte.java (parseByte): Pass `radix' to
2682 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2684 Include System.h, PrintStream.h.
2686 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2689 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2691 * configure: Rebuilt.
2692 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2695 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2697 * java/lang/SecurityManager.java: Import java.net.*.
2698 (checkMulticast): New methods.
2700 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2702 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2703 (nat_files): Add java/lang/reflect/natArray.o.
2704 (nat_headers): Add Field.h and NoSuchFieldException.h.
2706 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2707 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2708 (_Jv_FromReflectedField): Fix buglet.
2709 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2710 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2711 * prims.cc (_Jv_Abort): Include message in print-out.
2713 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2714 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2715 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2717 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2718 * include/config.h.in (HAVE_PWD_H): New feature macro.
2719 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2720 user.name, user.home, user.dir.
2722 * java/lang/reflect/Array.java: New class.
2723 * java/lang/reflect/natArray.cc: New native methods.
2724 * include/javaprims.h: Declare java::lang::reflect::Array.
2726 * java/lang/Class.h (getField): New private method. Add friends.
2727 * java/lang/Class.java (getField): Add private overload.
2728 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2729 getDeclaredMethods): Add working implementations.
2730 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2731 Finish implementation, except for access control.
2733 * java/lang/reflect/Modifier.java (toString): New overload.
2734 * include/java-method.h: New file.
2735 * java/lang/reflect/Method.java (index): Replaced by offset field.
2736 Remove various private fields - get them from _Jv_Field instead.
2737 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2738 New method implementations.
2740 * java/text/NumberFormat.java: Add a bunch of methods.
2742 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2744 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2746 1999-02-26 Tom Tromey <tromey@cygnus.com>
2748 * include/config.h.in: Rebuilt.
2749 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2750 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2751 HAVE_GETHOSTBYADDR_R): New defines.
2752 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2753 gethostbyaddr_r if available.
2755 * configure: Rebuilt.
2756 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2758 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2762 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2763 * prims.cc (_Jv_AllocBytesChecked): New function.
2765 * Makefile.in: Rebuilt.
2766 * Makefile.am (SUBDIRS): Removed `test'.
2767 * configure: Rebuilt.
2768 * configure.in: Don't build test/Makefile.
2769 * test/*: Removed all files.
2771 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
2773 * java/lang/reflect/Constructor.java: Make class final to match spec.
2774 * java/lang/reflect/Method.java: Ditto.
2776 1999-02-25 Tom Tromey <tromey@cygnus.com>
2778 * java/net/natInetAddress.cc: Include <sys/types.h> before
2780 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2783 * java/net/natInetAddress.cc: Declare gethostname if required.
2784 * include/config.h.in: Rebuilt.
2785 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2786 * configure: Rebuilt.
2787 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2788 declared in unistd.h.
2790 1999-02-24 Tom Tromey <tromey@cygnus.com>
2792 * Makefile.in: Rebuilt.
2793 * Makefile.am (java/io/FileDescriptor.h): Removed target.
2794 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2795 from private to "none".
2797 * include/javaprims.h: Regenerated class declarations with new
2799 * classes.pl (scan): Only generate decls for java.lang, java.io,
2802 1999-02-24 Tom Tromey <tromey@cygnus.com>
2804 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2805 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2807 1999-02-23 Tom Tromey <tromey@cygnus.com>
2809 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2810 not already defined.
2811 * java/io/natFile.cc (_REENTRANT): Only define if not already
2813 * include/config.h.in: Rebuilt.
2814 * acconfig.h (HAVE_BOEHM_GC): New define.
2815 * configure: Rebuilt.
2816 * configure.in: Define HAVE_BOEHM_GC if using it.
2817 * posix-threads.cc: Include boehm-config.h and gc.h if
2819 * include/posix-threads.h: Added explanatory note about Boehm GC.
2821 * java/io/BufferedReader.java (readLine): Only return null when
2822 EOF seen before any characters read. (In particular, an empty
2823 line should not return null.)
2825 * java/io/BufferedInputStream.java (read): Only refill once per
2828 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2829 java.lang.Character.classify12, java.lang.String.hash,
2830 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2831 java.text.SimpleDateFormat.getAndSet2DigitYearStart
2833 * java/text/StringCharacterIterator.java (setIndex): No error if
2835 (next): Check for `pos == end', not `end - 1'.
2836 (StringCharacterIterator): Allow `pos == end'. Explicitly check
2837 for null text in each constructor.
2838 (clone): Fixed order of arguments to constructor.
2840 1999-02-22 Tom Tromey <tromey@cygnus.com>
2842 * include/config.h.in: Rebuilt.
2843 * acconfig.h (HAVE_INET6): New define.
2844 (HAVE_SOCKLEN_T): Likewise.
2845 * java/net/PlainSocketImpl.java: Added copyright header.
2846 * java/net/natPlainSocketImpl.cc: Added copyright header.
2847 (union SockAddr): Use HAVE_INET6, not AF_INET6.
2849 (connect): Likewise.
2851 (socklen_t): New typedef.
2852 (accept): Use socklen_t.
2853 * java/net/natInetAddress.cc: Added copyright header.
2854 (HAVE_GETHOSTNAME): Don't define.
2855 (HAVE_INET_ADDR): Likewise.
2856 (lookup): Fixed typo.
2857 (aton): Don't use `address' as name of local variable.
2858 (lookup): Use HAVE_INET6, not AF_INET6.
2860 * configure: Rebuilt.
2861 * configure.in: Look for functions inet_aton, inet_addr,
2862 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
2863 Check for socklen_t typedef.
2865 * exception.cc (__throw): Declare as __noreturn__.
2867 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
2869 * Makefile.am, Makefile.in: Also build java/net.
2870 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
2872 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2873 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
2875 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
2876 * include/cni.h (JvMalloc, JvFree): New inline functions.
2877 (JvThrow): Add __noreturn__ attribute.
2878 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
2879 (_Jv_Throw): Add __noreturn__ attribute.
2881 * java/net/PlainSocketImpl.java: Init fnum to -1.
2882 * java/net/ServerSocket.java: Add missing throws clauses.
2883 * java/lang/Socket.java: For the constructor taking a SocketImpl,
2884 don't call create on the latter. Instead, other constructors
2885 have to explicitly call SocketImpl.create.
2886 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
2887 from size_t to int, to match ::accept prototype.
2888 * java/net/natInetAddress.cc: Use JvFree rather than free.
2891 1999-02-22 Tom Tromey <tromey@cygnus.com>
2893 * include/javaprims.h: Added new classes.
2894 * java/text/StringCharacterIterator.java: New file.
2895 * java/text/CharacterIterator.java: New file.
2897 * java/text/ParseException.java (errorOffset): Now private.
2899 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
2901 * java/net: New package.
2902 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
2903 Socket.java,SocketException.java,SocketImpl.java,
2904 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
2905 natPlainSocketImpl.cc}: New classes.
2907 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
2908 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
2909 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
2910 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
2912 * classes.pl: Translate package into "namespace", not "class".
2913 * include/javaprims.h: Update class list, using "namespace".
2915 1999-02-21 Tom Tromey <tromey@cygnus.com>
2917 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
2918 Define when appropriate.
2920 1999-02-20 Tom Tromey <tromey@cygnus.com>
2922 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
2923 as a single byte and \u07ff as two bytes.
2924 (_Jv_GetStringUTFLength): Likewise.
2925 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
2926 with 0x0f, not 0x1f.
2928 1999-02-19 Tom Tromey <tromey@cygnus.com>
2930 * java/io/DataOutputStream.java (writeUTF): When encoding
2931 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
2932 * java/io/DataInputStream.java (readUTF): Mask second byte of
2933 3-byte character with 0x3f, not 0x1f.
2935 * java/io/DataInputStream.java (readLong): Cast result of
2936 readUnsignedByte to long before using.
2938 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
2941 * mauve-libjava: Re-enabled java.io.DataInputOutput.
2942 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
2943 argument to avoid warning.
2944 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
2945 argument to avoid warning.
2947 1999-02-18 Tom Tromey <tromey@cygnus.com>
2949 * mauve-libjava: Omit java.io.DataInputOutput and
2950 java.io.Utf8Encoding.
2952 1999-02-17 Tom Tromey <tromey@cygnus.com>
2954 * Makefile.in: Rebuilt.
2955 * Makefile.am (nat_headers): Added InterruptedIOException.h.
2956 * java/io/natFileDescriptorPosix.cc: Include
2957 InterruptedIOException.h, Thread.h.
2958 (write): Throw InterruptedIOException when required.
2960 * posix-threads.cc: Include <signal.h>.
2961 (_Jv_ThreadInterrupt): New function.
2963 (handle_intr): New function.
2964 (_Jv_InitThreads): Register handle_intr via sigaction.
2965 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
2966 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
2967 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
2968 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
2970 1999-02-19 Andrew Haley <aph@cygnus.com>
2972 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
2974 (ThreadGroup (int)): Set the maximum priority of the initial
2977 1999-02-18 Andrew Haley <aph@cygnus.com>
2979 * java/lang/natClass.cc (forName): Check for the case where a
2980 classname is the name of an array and call FindClassFromSignature
2983 1999-02-18 Andrew Haley <aph@cygnus.com>
2985 * java/lang/StringBuffer (insert (int, String)): Move up any
2986 characters above the insert position and increase the length of
2987 the string buffer by the length of the argument.
2988 (insert (int, char[])): Likewise.
2989 (insert (int, char)): Likewise.
2990 (StringBuffer (String)): The initial capacity of the string buffer
2991 is 16 plus the length of the argument.
2992 (getChars): Add a JDK 1.2 FIXME.
2994 1999-02-18 Andrew Haley <aph@cygnus.com>
2996 * java/lang/Short.java (parseShort(String, int)): Pass radix to
2999 1999-02-18 Andrew Haley <aph@cygnus.com>
3001 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3002 instead of floating-point equality. This is necessary for
3003 correct floating-point Hashtables.
3004 * java/lang/Float.java (equals): Ditto.
3006 1999-02-16 Tom Tromey <tromey@cygnus.com>
3008 * java/util/Properties.java (list): Truncate value to 37
3009 characters and add "...".
3011 1999-02-16 Tom Tromey <tromey@cygnus.com>
3013 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3014 if initCap is negative.
3015 (contains): Implement JDK1.2-style handling of null argument.
3016 (removeElement): Likewise.
3017 (indexOf): Likewise. Also, correctly handle case where idx is
3019 (lastIndexOf): Likewise.
3021 1999-02-16 Tom Tromey <tromey@cygnus.com>
3023 * java/lang/natString.cc (init): Increment source pointer in
3026 1999-02-16 Tom Tromey <tromey@cygnus.com>
3028 * exception.cc: Include NullPointerException.h.
3029 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3031 1999-02-16 Tom Tromey <tromey@cygnus.com>
3033 * Makefile.in: Rebuilt.
3034 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3036 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3038 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3039 we're compiling canadian.
3040 * configure: Regenerated.
3042 1999-02-12 Andrew Haley <aph@cygnus.com>
3044 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3045 deleted from libgcj.
3047 1999-02-12 Tom Tromey <tromey@cygnus.com>
3049 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3050 (_Jv_eh_free): Don't call free.
3051 Don't declare malloc or free.
3053 1999-02-11 Tom Tromey <tromey@cygnus.com>
3055 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3057 1999-02-11 Andrew Haley <aph@cygnus.com>
3059 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3060 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3061 needed by java.lang.*.
3062 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3063 wf_fmod.o: Removed from libjava.a.
3065 1999-02-11 Tom Tromey <tromey@cygnus.com>
3067 * include/javaprims.h: Reverted previous change; with it
3068 exception.cc can't compile.
3070 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3072 * include/config.h.in: Rebuilt.
3073 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3075 * configure: Rebuilt.
3076 * configure.in: Check for sched_yield. Look in thread library for
3077 all thread functions.
3079 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3080 no recursive mutexes.
3081 (_Jv_MutexDestroy): Define when required.
3082 (_Jv_MutexLock): Likewise.
3083 (_Jv_MutexUnlock): Likewise.
3084 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3085 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3086 (_Jv_Mutex_t): New structure.
3087 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3088 (_Jv_MutexLock): Likewise.
3089 (_Jv_MutexUnlock): Likewise.
3091 1999-02-10 Tom Tromey <tromey@cygnus.com>
3093 * aclocal.m4, configure, Makefile.in: Rebuilt.
3094 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3096 * configure.in: Changed to track library changes.
3097 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3098 (AM_CXXFLAGS): Likewise.
3099 (data_DATA): Likewise.
3100 (AM_CFLAGS): Likewise.
3101 (JC1FLAGS): Likewise.
3102 (libgcj_a_SOURCES): Likewise.
3103 (EXTRA_libgcj_a_SOURCES): Likewise.
3104 (libgcj_a_DEPENDENCIES): Likewise.
3105 (libgcj_a_LIBADD): Likewise.
3106 (libgcj.zip): Likewise.
3107 (CLEANFILES): Likewise.
3108 ($(nat_headers)): Likewise.
3109 (java/lang/FirstThread.h): Likewise.
3110 (java/lang/ThreadGroup.h): Likewise.
3111 (java/lang/String.h): Likewise.
3112 (java/lang/reflect/Field.h): Likewise.
3113 (BUILT_SOURCES): Likewise.
3114 (maintainer-check): Likewise.
3115 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3116 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3118 * java/util/natGregorianCalendar.cc (computeFields): Only use
3119 gmtime_r and localtime_r when configured for posix threads.
3121 * java/io/natFile.cc (get_entry): Only use readdir_r when
3122 configured for posix threads.
3124 * java/util/natGregorianCalendar.cc: Update copyright notice.
3125 * java/util/TimeZone.java: Ditto.
3126 * java/util/SimpleTimeZone.java: Ditto.
3128 1999-02-08 Tom Tromey <tromey@cygnus.com>
3130 * java/io/PrintStream.java (line_separator): New constant.
3131 (print): Use line_separator, not `file.separator' property.
3132 (println): Use line_separator.
3134 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3135 when trying to instantiate Class.
3137 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3138 NullPointerException if argument is null.
3140 * java/lang/Thread.java (setName): Throw NullPointerException, not
3141 IllegalArgumentException.
3144 1999-02-08 Andrew Haley <aph@cygnus.com>
3146 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3147 create new Classes with Class.newInstance().
3149 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3150 semiciolon to end of an array Class's signature if the elements of
3151 the array aren't themselves arrays.
3153 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3154 array of objects is always sizeof(jobject), not the size of the
3155 object to which the reference points.
3157 1999-02-08 Tom Tromey <tromey@cygnus.com>
3159 * java/util/BitSet.java (and): Throw NullPointerException when
3164 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3165 if argument is negative.
3166 (clear): Correctly compute `offset'. Throw
3167 IndexOutOfBoundsException when required.
3169 (get): Likewise. Also, return correct value.
3170 (ensure): Changed meaning of argument.
3171 (toString): Wrap contents in `{}'; put spaces after commas.
3172 (hashCode): Don't try to examine elements off the end of array.
3173 (or): Correctly include bits past the end of this bit set.
3176 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3178 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3179 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3181 1999-02-04 Andrew Haley <aph@cygnus.com>
3183 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3184 '/' in signatures to '.'
3185 (Class::getName): Likewise,
3186 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3188 * java/lang/natFirstThread.cc (run): Change '/' in main's
3191 1999-02-03 Andrew Haley <aph@cygnus.com>
3193 * configure.host: -ffloat-store added when compiling libjava on
3194 x86. fdlibm apparently relies on this.
3196 * java/lang/ThreadGroup.java (add): throw an exception if the
3197 ThreadGroup has been destroyed.
3199 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3202 1999-01-27 Tom Tromey <tromey@cygnus.com>
3204 * java/lang/StringBuffer.java (StringBuffer): Handle null
3207 1999-01-21 Tom Tromey <tromey@cygnus.com>
3209 * java/lang/natFirstThread.cc (run): Don't require main to be
3212 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3214 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3216 1999-01-20 Tom Tromey <tromey@cygnus.com>
3218 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3222 (unintern): Likewise.
3223 (_Jv_NewStringUtf8Const): Likewise.
3225 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3226 Character.isLetter, to see if character is self-quoting. Also,
3227 correctly handle quoted characters.
3228 (parse): Fixed typo. Also now throws ParseException.
3230 1999-01-15 Tom Tromey <tromey@cygnus.com>
3232 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3234 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3235 _Jv_SyncInfo has `init' member.
3237 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3240 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3241 IllegalMonitorStateException if unlock fails.
3243 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3245 (_Jv_NewObjectArray): Likewise.
3247 1999-01-14 Tom Tromey <tromey@cygnus.com>
3249 * java/lang/Character.java (isJavaIdentifierPart): Allow
3250 LETTER_NUMBER characters.
3252 * chartables.pl (process_char): Fixed error messages.
3254 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3255 * chartables.pl: Updated comments. Changed detection of non-digit
3256 numeric values (no longer miss \u00b2 and friends).
3258 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3259 currency symbols and connector punctuation.
3260 (isIdentifierIgnorable): Make 7f-9f ignorable.
3262 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3263 (_Jv_NewPrimArray): Likewise.
3264 (SIZE_T_MAX): New define.
3266 * java/lang/ClassLoader.java (system): Now private and final.
3268 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3271 * configure: Rebuilt.
3272 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3274 * exception.cc: Include gansidecl.h.
3276 1999-01-14 Andrew Haley <aph@cygnus.com>
3278 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3279 corrected: they didn't treat -0.0 and NaNs correctly.
3281 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3283 * nogc.cc: Use calloc to zero out memory.
3285 1999-01-11 Tom Tromey <tromey@cygnus.com>
3287 * java/lang/natClass.cc (isInstance): Return false if this class
3288 is primitive, not if class of `obj' is primitive.
3289 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3291 * java/io/SequenceInputStream.java (close): Handle case where `in'
3294 * java/text/DateFormat.java (format): New method.
3296 * mauve-libjava: Omit java.text.DateFormat.
3298 1999-01-08 Tom Tromey <tromey@cygnus.com>
3300 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3302 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3304 (_Jv_CondNotifyAll): Likewise.
3306 * configure: Rebuilt.
3307 * configure.in: Change --enable-source-compilation logic to work
3310 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3312 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3313 and RUNTESTFLAGS from AM_MAKEFLAGS.
3314 * configure.in: AM_RUNTESTFLAGS added.
3315 * configure.host: AM_RUNTESTFLAGS added.
3316 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3317 * configure: rebuilt.
3318 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3320 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3321 argv[] made conditional because embedded targets may not have
3323 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3324 explanatory comments added in call to super.
3326 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3327 exception thrown in the test harness itself added.
3328 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3330 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3332 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3334 1999-01-06 Tom Tromey <tromey@cygnus.com>
3336 * java/io/natFile.cc (get_entry): New function.
3337 (performList): Use get_entry.
3338 * include/config.h.in: Rebuilt.
3339 * acconfig.h (HAVE_READDIR_R): New define.
3340 * configure: Rebuilt.
3341 * configure.in: Look for readdir_r.
3343 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3345 * java/util/natDate.cc: Added copyright header.
3347 1999-01-05 Tom Tromey <tromey@cygnus.com>
3349 * include/config.h.in: Rebuilt.
3350 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3351 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3352 * configure: Rebuilt.
3353 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3354 unlink, and realpath.
3355 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3356 (stat): Conditionalize on HAVE_STAT.
3358 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3359 (performMkdir): Conditionalize on HAVE_MKDIR.
3360 (performRenameTo): Conditionalize on HAVE_RENAME.
3361 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3363 * include/config.h.in: Rebuilt.
3364 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3365 * configure: Rebuilt.
3366 * configure.in: Check for gmtime_r and localtime_r. For cross
3367 builds, assume they exist.
3369 * mauve-libjava: Include java.text.DateFormatSymbols again.
3370 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3371 from setAmPmStrings.
3373 * mauve-libjava: Omit java.text.DateFormatSymbols.
3375 1999-01-04 Tom Tromey <tromey@cygnus.com>
3377 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3379 * java/io/LineNumberReader.java (read): Decrement `count' in
3382 * java/io/BufferedWriter.java (write): Correctly determine when
3383 incoming data would overrun buffer. Flush buffer if write causes
3386 * java/io/BufferedOutputStream.java (write): Increment `count'
3387 after copying data into buffer.
3389 * java/io/FilterOutputStream.java (close): Call flush first.
3391 * java/io/PipedReader.java (read): If read causes `out' to catch
3392 up with `in', then set `in' to -1.
3394 * java/io/LineNumberInputStream.java (read): If no bytes read,
3395 return -1. If no bytes requested, return 0.
3397 * java/lang/StringBuffer.java (insert): If `str' is null, use
3400 1998-12-30 Anthony Green <green@cygnus.com>
3403 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3405 1998-12-23 Tom Tromey <tromey@cygnus.com>
3407 * java/io/PushbackInputStream.java (read): `off' already includes
3410 1998-12-17 Tom Tromey <tromey@cygnus.com>
3412 * Makefile.in: Rebuilt.
3413 * Makefile.am (GCJ_canadian): Include target_alias.
3415 * java/lang/natFirstThread.cc (run): Require main's class to be
3418 1998-12-16 Tom Tromey <tromey@cygnus.com>
3420 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3422 * java/util/ResourceBundle.java (getBundle): Throw
3423 NullPointerException if locale argument is null.
3425 * java/lang/natClass.cc (forName): Throw NullPointerException if
3427 Include NullPointerException.h.
3429 1998-12-14 Tom Tromey <tromey@cygnus.com>
3431 * java/lang/Character.java (Character): Implement Comparable.
3432 (compareTo): New methods.
3434 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3435 correct country and language codes.
3436 (UK, US): New constants.
3437 (setDefault): Language codes are lower-case.
3439 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3440 (getDeclaredConstructors): Likewise.
3441 (getDeclaredField): Likewise.
3442 (getDeclaredFields): Likewise.
3443 (getDeclaredMethod): Likewise.
3444 (getDeclaredMethods): Likewise.
3445 (getField): Likewise.
3446 (getFields): Likewise.
3447 (getMethod): Likewise.
3448 (getMethods): Likewise.
3449 * java/lang/Class.java: Declare new methods.
3450 * java/lang/Class.h: Declare new methods.
3452 * java/lang/natString.cc: Removed `#pragma implementation'.
3453 * include/cni.h (_Jv_GetStringChars): New function.
3454 * Makefile.in: Rebuilt.
3455 * Makefile.am (java/lang/String.h): Don't generate definition for
3458 * java/lang/natString.cc: Added `#pragma implementation'.
3460 * Makefile.in: Rebuilt.
3461 * Makefile.am (libjava.zip): Put build directory first in class
3462 path to avoid bug in compiler.
3464 1998-12-14 Anthony Green <green@cygnus.com>
3466 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3468 * include/javaprims.h: Add EventObject, ListResourceBundle and
3471 1998-12-13 Anthony Green <green@cygnus.com>
3473 * mauve-libjava: Run the ResourceBundle tests.
3475 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3478 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3480 * configure.in, configure: Make --enable-gcj-classes and
3481 --enable-source-compilation the default. (Nervously...) Yeah!
3482 Based on a patch from Tom Tromey.
3484 1998-12-13 Tom Tromey <tromey@cygnus.com>
3486 * java/util/EventObject.java: New file.
3487 * java/util/EventListener.java: New file.
3489 * include/javaprims.h: Updated class declarations.
3490 * Makefile.in: Rebuilt.
3491 * Makefile.am (nat_headers): Added Constructor.h.
3492 (java/lang/String.h): Don't inline String::length().
3493 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3494 * java/lang/Class.java (initializeClass, hackRunInitializers,
3495 hackTrampoline): No need to mark `final'.
3496 (getConstructor, getConstructors): Declare.
3497 * java/lang/reflect/Field.java (equals): New method.
3498 * java/lang/natClass.cc (getConstructor): New method.
3499 (getConstructors): Likewise.
3500 Include Method.h, Field.h, Constructor.h.
3501 * java/lang/reflect/Constructor.java: New file.
3502 * java/lang/reflect/Method.java (toString): No space before open
3504 (equals): Simplified.
3506 1998-12-13 Anthony Green <green@cygnus.com>
3508 * java/util/ResourceBundle.java: New file.
3509 * java/util/ListResourceBundle.java: New file.
3511 1998-12-12 Tom Tromey <tromey@cygnus.com>
3513 * java/lang/System.java (in, out, err): Now buffered streams by
3516 * include/javaprims.h: Updated class declarations.
3517 * Makefile.in: Rebuilt.
3518 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3519 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3521 (nat_files): Added natMethod.o.
3522 * java/lang/reflect/natMethod.cc: New file.
3523 * java/lang/reflect/Field.java (Field): Now extends
3525 * java/lang/reflect/AccessibleObject.java: New file.
3526 * java/lang/reflect/InvocationTargetException.java: New file.
3528 1998-12-11 Tom Tromey <tromey@cygnus.com>
3530 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3531 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3532 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3534 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3536 1998-12-09 Tom Tromey <tromey@cygnus.com>
3538 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3541 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3542 character is already titlecase.
3544 * java/lang/Character.java (isJavaLetter): Follow spec.
3545 (isJavaLetterOrDigit): Likewise.
3547 * java/util/GregorianCalendar.java (gregorianCutover): Append
3550 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3552 1998-12-08 Tom Tromey <tromey@cygnus.com>
3554 * java/lang/reflect/Modifier.java (toString): Replace second
3555 `static' with `synchronized'.
3557 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3558 * java/lang/Object.h (Object::hack12_6): Declare.
3559 * java/lang/Object.java (hack12_6): New function.
3561 1998-12-07 Tom Tromey <tromey@cygnus.com>
3563 * include/java-array.h (__JArray::clone): Removed decl.
3564 * prims.cc (__JArray::clone): Removed.
3565 * java/lang/natObject.cc (clone): Incorporate code to clone an
3568 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3569 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3570 Correctly use dtable_method_count.
3572 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3574 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3577 1998-12-06 Anthony Green <green@cygnus.com>
3579 * mauve-libjava: Don't test ResourceBundle.
3581 1998-12-04 Tom Tromey <tromey@cygnus.com>
3583 More JDK 1.2 spec fixes:
3584 * java/util/Date.java (millis): Now private.
3585 * java/text/DateFormat.java (DateFormat): Constructor now
3587 * java/lang/Void.java (Void): New private constructor.
3588 * java/lang/System.java (System): New private constructor.
3589 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3591 (currentClassLoader): New method.
3592 (currentLoadedClass): New method.
3593 * java/lang/Math.java (Math): New private constructor.
3594 * java/lang/Compiler.java (Compiler): New private constructor.
3595 * java/lang/Class.java (Class): New private constructor.
3596 * java/lang/Double.java (toString): Removed access specifier from
3597 two-argument `toString' method.
3599 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3601 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3602 causes it to be flushed from an fp register (where it may be
3603 longer than double precision) to a double in memory. This is
3604 essential to ensure correct rounding behaviour.
3606 1998-12-04 Tom Tromey <tromey@cygnus.com>
3608 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3611 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3612 explaining apparent divergence from JDK 1.2.
3614 1998-12-04 Per Bothner <bothner@cygnus.com>
3616 * include/no-threads.h: Remove unused parameter names.
3617 This silences a bunch of warnings.
3619 1998-12-04 Tom Tromey <tromey@cygnus.com>
3621 * include/config.h.in: Rebuilt.
3622 * acconfig.h (HAVE_CTIME_R): New symbol.
3624 1998-12-03 Tom Tromey <tromey@cygnus.com>
3626 * mauve-libjava: Added many more categories to reject.
3628 Changes to follow JDK1.2 spec:
3629 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3630 setErr, setIn, setOut): No need to be `final'.
3631 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3632 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3633 * java/lang/Object.java (wait): `nanos' argument is an int.
3634 * java/lang/VirtualMachineError.java: Class is abstract.
3635 * java/lang/ThreadDeath.java: Made constructors public.
3636 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3639 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3641 * java/text/DateFormatSymbols.java (getAmPmStrings,
3642 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3644 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3646 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3647 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3648 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3651 * java/lang/IllegalThreadStateException.java
3652 (IllegalThreadStateException): Changed extending class to match spec.
3654 * java/lang/NumberFormatException.java
3655 (java/lang/NumberFormatException): Changed extending class to match
3658 * java/util/Observer.java (Observer): Changed sig to match JCL.
3660 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3662 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3663 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3664 signature to match JDK 1.1 and 1.2.
3666 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3668 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3669 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3670 * Makefile.in, configure: Rebuilt.
3672 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3675 1998-12-02 Tom Tromey <tromey@cygnus.com>
3677 * mauve-libjava: New file.
3679 The remaining `-W -Wall' fixes:
3680 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3682 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3684 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3686 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3688 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3690 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3692 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3694 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3696 * java/lang/mprec.c (Balloc): Removed unused variable.
3697 (mult): Added parentheses per gcc suggestion.
3698 (pow5mult): Likewise.
3703 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3704 suggestion. Added cast to `int' to avoid signed/unsigned
3706 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3708 (IsAssignableFrom): Likewise.
3709 (_Jv_JNI_GetObjectField): Likewise.
3710 (_Jv_JNI_GetByteField): Likewise.
3711 (_Jv_JNI_GetShortField): Likewise.
3712 (_Jv_JNI_GetIntField): Likewise.
3713 (_Jv_JNI_GetLongField): Likewise.
3714 (_Jv_JNI_GetStringLength): Likewise.
3715 (_Jv_JNI_ToReflectedField): Likewise.
3716 (_Jv_JNI_FromReflectedField): Likewise.
3717 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3719 * Makefile.in: Rebuilt.
3720 * Makefile.am (AM_CFLAGS): Define conditionally.
3721 (WARNINGS): New macro.
3722 (AM_CXXFLAGS): Include WARNINGS.
3723 * configure: Rebuilt.
3724 * configure.in (USING_GCC): New conditional.
3726 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3728 * java/lang/Character.java: Changed classification constants to
3729 type `byte' to match JDK 1.2 docs.
3731 1998-12-01 Tom Tromey <tromey@cygnus.com>
3733 Some fixes to be `-W -Wall' clean:
3734 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3735 (_Jv_MarkArray): Likewise.
3736 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3737 (to_upper_title): Likewise.
3738 (isTitleCase): Likewise.
3739 (toTitleCase): Likewise.
3740 (getNumericValue): Likewise.
3741 (isLowerCase): Likewise.
3742 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3743 (avoids compiler warning).
3744 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3746 (getDeclaringClass): Likewise.
3747 (_Jv_LookupInterfaceMethod): Likewise.
3748 (_Jv_NewClass): Removed name of unused parameter.
3749 * exception.cc (_Jv_type_matcher): Removed unused variable.
3750 (_Jv_setup_eh_info): Removed name of unused parameter.
3751 * prims.cc (_Jv_NewArray): Always return a value.
3752 (_Jv_FindClassFromSignature): Likewise.
3753 * include/java-field.h (getNameUtf8Const): Removed name of unused
3755 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3757 (_Jv_ThreadSetPriority): Likewise.
3759 * java/lang/natString.cc (hashChars): Now static.
3761 * java/lang/FirstThread.java (FirstThread): Now final.
3763 * java/io/File.java (performMkdir, performRenameTo): Now private.
3765 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3766 if no time function defined.
3768 * configure: Rebuilt.
3769 * configure.in: Look for ctime_r, ctime.
3770 * java/util/Date.java (toString): Now native.
3771 * java/util/natDate.cc (toString): Rewrote.
3773 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
3775 * Add LDFLAGS line to allow TX39 test cases to link when cross
3778 1998-11-23 Anthony Green <green@cygnus.com>
3780 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3781 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3782 quick-threads.cc, include/boehm-gc.h, include/cni.h,
3783 include/java-array.h, include/java-assert.h, include/java-field.h,
3784 include/javaprims.h, include/jni.h, include/jvm.h,
3785 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3786 include/quick-threads.h, java/io/BufferedInputStream.java,
3787 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3788 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3789 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3790 java/io/CharArrayWriter.java,
3791 java/io/CharConversionException.java, java/io/DataInput.java,
3792 java/io/DataInputStream.java, java/io/DataOutput.java,
3793 java/io/DataOutputStream.java, java/io/EOFException.java,
3794 java/io/File.java, java/io/FileDescriptor.java,
3795 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3796 java/io/FileOutputStream.java, java/io/FileReader.java,
3797 java/io/FileWriter.java, java/io/FilenameFilter.java,
3798 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3799 java/io/FilterReader.java, java/io/FilterWriter.java,
3800 java/io/IOException.java, java/io/InputStream.java,
3801 java/io/InputStreamReader.java,
3802 java/io/InterruptedIOException.java,
3803 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3804 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3805 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3806 java/io/PipedReader.java, java/io/PipedWriter.java,
3807 java/io/PrintStream.java, java/io/PrintWriter.java,
3808 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3809 java/io/RandomAccessFile.java, java/io/Reader.java,
3810 java/io/SequenceInputStream.java, java/io/Serializable.java,
3811 java/io/StreamTokenizer.java,
3812 java/io/StringBufferInputStream.java, java/io/StringReader.java,
3813 java/io/StringWriter.java, java/io/SyncFailedException.java,
3814 java/io/UTFDataFormatException.java,
3815 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3816 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3817 java/io/natFileDescriptorPosix.cc,
3818 java/lang/AbstractMethodError.java,
3819 java/lang/ArithmeticException.java,
3820 java/lang/ArrayIndexOutOfBoundsException.java,
3821 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3822 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3823 java/lang/Class.java, java/lang/ClassCastException.java,
3824 java/lang/ClassCircularityError.java,
3825 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3826 java/lang/ClassNotFoundException.java,
3827 java/lang/CloneNotSupportedException.java,
3828 java/lang/Cloneable.java, java/lang/Comparable.java,
3829 java/lang/Compiler.java, java/lang/Double.java,
3830 java/lang/Error.java, java/lang/Exception.java,
3831 java/lang/ExceptionInInitializerError.java,
3832 java/lang/FirstThread.java, java/lang/Float.java,
3833 java/lang/IllegalAccessError.java,
3834 java/lang/IllegalAccessException.java,
3835 java/lang/IllegalArgumentException.java,
3836 java/lang/IllegalMonitorStateException.java,
3837 java/lang/IllegalStateException.java,
3838 java/lang/IllegalThreadStateException.java,
3839 java/lang/IncompatibleClassChangeError.java,
3840 java/lang/IndexOutOfBoundsException.java,
3841 java/lang/InstantiationError.java,
3842 java/lang/InstantiationException.java, java/lang/Integer.java,
3843 java/lang/InternalError.java, java/lang/InterruptedException.java,
3844 java/lang/LinkageError.java, java/lang/Long.java,
3845 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3846 java/lang/NoClassDefFoundError.java,
3847 java/lang/NoSuchFieldError.java,
3848 java/lang/NoSuchFieldException.java,
3849 java/lang/NoSuchMethodError.java,
3850 java/lang/NoSuchMethodException.java,
3851 java/lang/NullPointerException.java, java/lang/Number.java,
3852 java/lang/NumberFormatException.java, java/lang/Object.h,
3853 java/lang/Object.java, java/lang/OutOfMemoryError.java,
3854 java/lang/Process.java, java/lang/Runnable.java,
3855 java/lang/Runtime.java, java/lang/RuntimeException.java,
3856 java/lang/SecurityException.java, java/lang/SecurityManager.java,
3857 java/lang/Short.java, java/lang/StackOverflowError.java,
3858 java/lang/String.java, java/lang/StringBuffer.java,
3859 java/lang/StringIndexOutOfBoundsException.java,
3860 java/lang/System.java, java/lang/Thread.java,
3861 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3862 java/lang/Throwable.java, java/lang/UnknownError.java,
3863 java/lang/UnsatisfiedLinkError.java,
3864 java/lang/UnsupportedOperationException.java,
3865 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3866 java/lang/Void.java, java/lang/natCharacter.cc,
3867 java/lang/natClass.cc, java/lang/natDouble.cc,
3868 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3869 java/lang/natMath.cc, java/lang/natObject.cc,
3870 java/lang/natRuntime.cc, java/lang/natString.cc,
3871 java/lang/natSystem.cc, java/lang/natThread.cc,
3872 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3873 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3874 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3875 java/text/FieldPosition.java, java/text/Format.java,
3876 java/text/NumberFormat.java, java/text/ParseException.java,
3877 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3878 java/util/BitSet.java, java/util/Calendar.java,
3879 java/util/ConcurrentModificationException.java,
3880 java/util/Date.java, java/util/Dictionary.java,
3881 java/util/EmptyStackException.java, java/util/Enumeration.java,
3882 java/util/GregorianCalendar.java, java/util/Hashtable.java,
3883 java/util/Locale.java, java/util/MissingResourceException.java,
3884 java/util/NoSuchElementException.java, java/util/Observable.java,
3885 java/util/Observer.java, java/util/Properties.java,
3886 java/util/Random.java, java/util/SimpleTimeZone.java,
3887 java/util/Stack.java, java/util/StringTokenizer.java,
3888 java/util/TimeZone.java, java/util/TooManyListenersException.java,
3889 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
3892 * exception.cc: Include eh-common.h instead of duplicating
3895 1998-11-23 Tom Tromey <tromey@cygnus.com>
3897 * configure.host: Don't add `-O2' to libjava_flags. Only add
3898 `-Os' to libjava_flags once.
3900 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
3902 * Makefile.am: add LIBJAVA_JAVAFLAGS.
3903 * Makefile.in: likewise
3904 * acconfig.h: add ECOS conditional for configure.h
3905 * config.h.in: likewise
3906 * configure: add test for --with-ecos
3907 * configure.in: likewise
3908 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
3909 rename call to avoid name clash.
3910 * java/lang/natSystem.cc: add eCos clock support.
3911 * java/util/natGregorianCalendar.cc: add eCos support.
3913 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3915 * Makefile.am, Makefile.in, configure.host: tx39 build option
3918 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
3920 * java/io/BufferedReader.java: Added more comments for clarity.
3921 (mark): Used more mnemonic name for local var extraBuffSpace.
3923 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
3924 confusion with private method of same name in superclass.
3925 (skipRedundantLF): Set fields in special case to avoid infinite
3926 recursion. Check if markPos has been invalidated in special case.
3927 (readLine): Rewritten to use readLine method of superclass.
3928 (skip): Incorporated code from lineEnd.
3930 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
3932 * java/io/BufferedReader.java (readLine): New method.
3933 (lineEnd): new private method.
3934 (mark): Track special case for readLine of getting '\r' at the
3941 * java/io/InputStreamReader.java (read): Return number chars skipped
3942 rather than requested.
3944 * java/lang/StringBuffer.java (append): Update count and differentiate
3945 between field and local variable.
3947 * java/util/Date.java (parseTz): Evaluate in minutes rather than
3948 seconds. Deal with military style time.
3949 (parse): Consistently treat all timezones in minutes until final
3950 calculation. Flag as non-local timezone. Return value in milliseconds.
3951 (setTime): Adjust for year offset from 1900.
3952 (UTC): Adjust for year offset from 1900.
3954 1998-11-17 Tom Tromey <tromey@cygnus.com>
3956 * configure: Rebuilt.
3957 * configure.in: Switch on host, not target.
3959 * Makefile.in: Rebuilt.
3960 * Makefile.am (GCJ_no): New macro.
3961 (GCJ): Use @CANADIAN@.
3962 (GCJH_no): New macro
3963 (GCJH_canadian): New macro.
3964 (GCJH): Use @CANADIAN@.
3965 (ZIP_no): New macro.
3966 (ZIP_canadian): New macro.
3967 (ZIP): Use @CANADIAN@.
3968 * aclocal.m4, configure: Rebuilt.
3969 * configure.in (CANADIAN): Compute and subst.
3971 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
3973 * java/io/FileDescriptor.java (finalize): Only close file
3974 descriptor if valid.
3976 1998-11-17 Tom Tromey <tromey@cygnus.com>
3978 * prims.cc (_Jv_InitRuntime): Removed.
3980 1998-11-16 Tom Tromey <tromey@cygnus.com>
3982 * java/io/FileOutputStream.java (close): Only close file
3983 descriptor if valid.
3984 (finalize): New method.
3986 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
3987 (_Jv_NewPrimArray): Likewise.
3988 * boehm.cc (_Jv_RegisterFinalizer): Use
3989 GC_REGISTER_FINALIZER_NO_ORDER.
3990 (GC_GENERIC_MALLOC): New define.
3991 (_Jv_AllocObj): Use it.
3992 (_Jv_AllocArray): Likewise.
3993 (_Jv_AllocBytes): Likewise.
3994 (_Jv_MarkObj): Just return if vtbl not set.
3995 (_Jv_MarkArray): Likewise.
3996 (MAYBE_MARK): New macro; use everywhere.
3997 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
3999 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4001 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4002 to a jlong before calculation to prevent overflow.
4004 1998-11-16 Tom Tromey <tromey@cygnus.com>
4006 * Makefile.in: Rebuilt.
4007 * Makefile.am (nat_headers): Fixed typo.
4009 1998-11-15 Tom Tromey <tromey@cygnus.com>
4011 * java/lang/Class.h (Class::getName): Removed definition.
4012 * Makefile.in: Rebuilt.
4013 * Makefile.am (nat_headers): Added InstantiationException.h,
4014 NoSuchMethodException.h.
4015 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4016 (init_name): New global.
4017 (hackRunInitializers): Use clinit_name.
4018 Include InstantiationException.h, NoSuchMethodException.h.
4019 (newInstance): Do some error checking (but not all). Call
4021 (forName): Throw exception if class not found.
4022 (getName): New method.
4023 (forName): Transform class name from external format to internal
4024 format before lookup.
4026 1998-11-15 Anthony Green <green@cygnus.com>
4028 * java/lang/Class.h (Class::forName): Method is static.
4030 * java/lang/natClass.cc (newInstance): Add simple implementation.
4033 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4035 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4036 int), for compatibility with jc1.
4038 1998-11-14 Tom Tromey <tromey@cygnus.com>
4040 * include/config.h.in: Rebuilt.
4041 * acconfig.h (LINUX_THREADS): New define.
4042 * configure: Rebuilt.
4043 * configure.in: Define LINUX_THREADS if using POSIX threads on
4044 Linux. Look for pthread_mutexattr_setkind_np function.
4045 * posix-threads.cc (throw_cleanup): New function.
4046 (really_start): Push cleanup function.
4047 (_Jv_ThreadCancel): New function.
4048 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4049 (_Jv_ThreadInitData): Set `exception' field in new structure.
4050 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4052 (_Jv_ThreadWait): New function.
4053 (_Jv_InitThreads): Initialize daemon globals.
4054 (FLAG_DAEMON): New macro.
4055 (really_start): Notify daemon_cond when non-daemon thread exits.
4056 Include <java/lang/System.h>.
4057 (struct starter): `object' field now a thread.
4058 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4059 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4060 (_Jv_ThreadWait): Removed definition.
4061 (_Jv_Thread_t): Added `exception' field.
4062 (_Jv_ThreadCancel): Removed definition.
4064 1998-11-13 Tom Tromey <tromey@cygnus.com>
4066 * Makefile.in: Rebuilt.
4067 * Makefile.am (libjava.zip): Compute javac before changing
4070 * Makefile.in: Rebuilt.
4071 * Makefile.am (libjava.zip): Include directory entries.
4073 * Makefile.in: Rebuilt.
4074 * Makefile.am (expanded): New macro.
4077 1998-11-12 Tom Tromey <tromey@cygnus.com>
4079 * prims.cc (clone): New function.
4080 * include/java-array.h (__JArray::clone): Removed definition.
4082 * java/lang/natObject.cc (clone): Don't assert that class is not
4083 an array; array's `clone' method just calls this one.
4085 * Makefile.in: Rebuilt.
4086 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4087 Now creates zip file. Changed all users.
4089 (data_DATA): New macro.
4091 1998-11-11 Tom Tromey <tromey@cygnus.com>
4093 * configure: Rebuilt.
4094 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4096 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4098 * java/io/InputStream.java (reset): Add msg to thrown exception.
4100 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4102 * java/io/LineNumberInputStream.java: Rewritten.
4104 * java/io/StringBufferInputStream.java: Removed extraneous import.
4106 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4108 * java/io/StringBufferInputStream.java: Rewritten.
4110 * java/util/Date.java (parseMonth): Optimize.
4111 (parseDayOfWeek): Created.
4112 (parse): Optimize to use parseDayOfWeek.
4114 1998-11-11 Tom Tromey <tromey@cygnus.com>
4116 * java/lang/StringBuffer.java (append): Handle case where STR is
4119 * include/javaprims.h: Regenerated class declarations.
4121 * configure: Rebuilt.
4122 * configure.in: Added --enable-gcj-classes,
4123 --enable-single-compilation, --enable-source-compilation flags.
4124 * Makefile.in: Rebuilt.
4125 * Makefile.am (java_io_files): New macro.
4126 (java_lang_files): Likewise.
4127 (java_text_files): Likewise.
4128 (java_util_files): Likewise.
4129 (java_files): Use new macros.
4130 (java-io.o): New target.
4131 (java-lang.o): Likewise.
4132 (java-text.o): Likewise.
4133 (java-util.o): Likewise.
4134 (src_io_files): New macro.
4135 (src_lang_files): Likewise.
4136 (src_text_files): Likewise.
4137 (src_util_files): Likewise.
4138 (class_io_files): New macro.
4139 (class_lang_files): Likewise.
4140 (class_text_files): Likewise.
4141 (class_util_files): Likewise.
4142 (class_files): Use new macros.
4143 (javao_files): Define conditionally.
4144 (.java.o): New target.
4145 ($(javao_files)): New target.
4147 (GCJH): Added $(EXEEXT).
4148 (CLASSPATH_ENV): Removed.
4149 (GCJCOMPILE): New macro.
4151 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4153 * java/util/Date.java (parse): Written from scratch.
4155 1998-11-11 Tom Tromey <tromey@cygnus.com>
4157 * java/lang/Throwable.java (toString): Correct sense of test for
4158 determining when to include detail message in result.
4160 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4163 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4165 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4167 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4168 (_Jv_RegisterClass): Use it.
4169 * include/jvm.h (_Jv_RegisterClasses): Declare.
4170 * java/lang/natObject.cc (init): Removed.
4171 (sync_init): Never call _Jv_InitializeSyncMutex.
4172 (_Jv_InitializeSyncMutex): Don't set `init'.
4173 * prims.cc (JvRunMain): Don't run init functions.
4175 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4177 * java/lang/natClass.cc (initializeClass): Set state before
4178 resolving constants.
4180 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4181 (STATE_RESOLVED): New macro.
4182 (initializeClass): Call resolveConstants.
4183 (hackRunInitializers): Don't call resolveConstants.
4184 (_Jv_FindArrayClass): Move short-circuit return for primitive
4185 element types earlier in function.
4187 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4189 * prims.cc (no_memory): New global.
4190 (_Jv_makeUtf8Const): Throw no_memory.
4191 (_Jv_AllocObject): Likewise.
4192 (_Jv_NewObjectArray): Likewise.
4193 (_Jv_NewPrimArray): Likewise.
4194 (JvRunMain): Initialize no_memory.
4196 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4198 * java/io/FileInputStream.java: Corrected date comment.
4199 * java/io/SequenceInputStream.java: Rewritten.
4201 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4203 * java/lang/FirstThread.java (die): New method.
4204 * java/lang/natFirstThread.cc (die): Removed.
4206 (run): Use `DIE', not `die'.
4208 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4210 * java/io/CharArrayReader.java (read): Move check into synchronized
4211 block to prevent a close while in progress.
4214 * java/io/PushbackReader.java (read): Ditto.
4217 * java/io/StringReader.java (mark): Ditto.
4222 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4224 * java/io/PipedInputStream.java: Updated status.
4225 (connect): Added code to prevent infinite recursion and to
4226 differentiate exception causes.
4227 (read): Added code to differentiate exception causes.
4228 (receive): Made exception pass string with the cause.
4230 * java/io/PipedOutputStream.java: Updated status.
4231 (connect): Added code to call connect at the other end of the pipe.
4233 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4235 * java/io/PipedInputStream.java (connect): Throw exception if
4236 already connected to the same output stream.
4237 (read): Do bounds checking first.
4239 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4241 * java/io/PipedInputStream.java: Added private boolean outClosed.
4242 (available): Removed check if output stream is open.
4243 (close): Mark the buffer as empty so available returns 0.
4244 (read): Check if the output stream was closed and then return EOF
4245 when the buffer is empty.
4246 (receive): Mark the output stream as closed when passed a -1.
4248 * java/io/PipedOutputStream.java (close): Notify the input stream
4249 that there's no more data coming.
4250 (connect): Added a FIXME comment to note more coordination needed
4251 with PipedInputStream.
4252 (flush): Added a FIXME comment to mark what this method might do
4255 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4257 * java/io/PipedInputStream.java: Rewritten.
4259 1998-10-30 Tom Tromey <tromey@cygnus.com>
4261 * java/lang/Throwable.java: Rewrote from scratch.
4263 * java/lang/Class.h (Class): Don't mention newMultiArray.
4264 * prims.cc (newMultiArray): Removed.
4265 (_Jv_NewMultiArray): Removed.
4266 (newArray): Removed.
4267 (new_multi_array): New function.
4268 (_Jv_NewMultiArray): Rewrote from scratch.
4270 * include/javaprims.h: Regenerated class declarations.
4271 * classes.pl (scan): Don't declare PrimClass.
4272 * include/cni.h (JvPrimClass): Use new names for classes.
4273 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4274 added _Jv_PrimClass.
4275 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4276 (_Jv_initPrimClass): Removed.
4277 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4278 (_Jv_AllocObject): Added comment.
4279 (_Jv_NewObjectArray): Likewise.
4280 (_Jv_NewPrimArray): Likewise.
4282 1998-10-29 Tom Tromey <tromey@cygnus.com>
4284 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4285 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4287 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4289 * java/lang/natObject.cc (init): New global.
4290 (sync_init): Call _Jv_InitializeSyncMutex if required.
4292 * Makefile.in: Rebuilt.
4293 * Makefile.am (nat_headers): Added ClassLoader.h.
4294 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4295 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4296 internalAddClass, lookupArray no longer friends.
4297 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4298 _Jv_FindArrayClass now friends.
4299 * java/lang/natClass.cc (HASH_LEN): New macro.
4300 (HASH_UTF): Likewise.
4301 (loaded_classes): New global.
4302 (_Jv_FindClass): New function.
4303 (ClassClass): New define.
4304 (_Jv_FindClassInCache): New function.
4305 (_Jv_RegisterClass): Likewise.
4306 (_Jv_NewClass): Likewise.
4308 (ObjectClass): New define.
4309 (CloneableClass): New define.
4310 * prims.cc (_Jv_FindClass): Removed.
4311 (simpleLookupClass): Removed.
4312 (insertClass): Removed.
4313 (CLASSHASHSZ): Removed.
4314 (classPool): Removed.
4315 (_Jv_RegisterClass): Removed.
4316 (internalAddClass): Removed.
4317 (ClassClass): Removed.
4318 (RuntimeClass): Removed.
4319 (lookupArray): Removed.
4320 (CloneableClass): Removed.
4321 (CLASSMAXSIG): Removed.
4322 Rearranged file to group related functions together.
4323 (_Jv_IsInstanceOf): Moved to natClass.cc.
4324 (abort_final): Removed.
4325 Removed some unused includes.
4326 (classFromSig): Removed.
4327 (_Jv_FindClassFromSignature): New function.
4328 (_Jv_initPrimClass): Renamed.
4329 (getClass): Removed.
4331 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4333 * java/io/FileDescriptor.java (finalize): Throws IOException
4334 instead of Throwable.
4336 * java/io/FileInputStream.java: Rewritten.
4338 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4339 at the end of a comment.
4341 1998-10-29 Tom Tromey <tromey@cygnus.com>
4343 * include/javaprims.h: Regenerated class declarations.
4344 * classes.pl (scan): Don't special-case ClassLoader.
4346 * prims.cc (processClass): Removed.
4347 (_Jv_InitClass): Removed.
4348 Removed all CSTATE_ macros.
4349 (resolveConstants): Removed.
4351 (_Jv_NewMultiArray): Cleaned up.
4352 * Makefile.in: Rebuilt.
4353 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4354 * java/lang/Class.h (Class): Declare new methods. processClass no
4356 * java/lang/Class.java (hackTrampoline): New method.
4357 (initializeClass): Declare.
4358 (hackRunInitializers): Declare.
4359 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4360 (initializeClass): New method.
4361 (hackRunInitializers): New method.
4362 (init_name, void_signature): Moved from prims.cc.
4363 (_Jv_InitClass): New function.
4364 (isAssignableFrom): Don't call processClass.
4365 (STATE_NOTHING): New macro.
4366 (resolveConstants): New function.
4368 (ErrorClass): New define.
4370 * java/lang/Class.java (getClassLoader): Declare.
4371 * java/lang/ClassLoader.java: Rewrote from scratch.
4373 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4374 AbstractMethodError.h, IllegalAccessError.h,
4375 NoClassDefFoundError.h.
4376 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4377 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4378 longer static. Changed return type.
4379 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4380 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4381 * prims.cc (findMethodLocal): Removed.
4382 (processClass): Use _Jv_GetMethodLocal.
4384 1998-10-28 Tom Tromey <tromey@cygnus.com>
4386 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4387 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4389 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4390 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4392 * include/jni.h: Added copyright header.
4393 * include/javaprims.h: Added copyright header.
4394 * include/java-field.h: Added copyright header.
4395 * include/java-array.h: Added copyright header.
4396 * include/cni.h: Added copyright header.
4398 * include/javaprims.h: Regenerated class declarations using
4399 classes.pl; now they are complete.
4400 * classes.pl: New file.
4402 * java/lang/natMath.cc: Include <config.h>.
4403 * java/lang/reflect/natField.cc: Include <config.h>.
4404 * java/util/NativeUtil.java: Removed.
4405 * Makefile.in: Rebuilt.
4406 * Makefile.am (nat_headers): Added Math.h.
4407 * java/lang/Math.h: Removed.
4408 * java/util/natGregorianCalendar.cc: Added copyright header.
4410 * java/lang/natFloat.cc: Added copyright header.
4411 * java/lang/Byte.java: Added copyright header.
4412 * java/lang/Void.java: Added copyright header.
4413 * java/lang/Short.java: Added copyright header.
4415 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4417 * include/javaprims.h (java::io): Added bunch of missing classes.
4419 * java/io/DataInputStream.java (readLine): Added a special case
4420 for handling BufferedInputStream data to reduce the likelihood
4421 of a pushback error.
4422 (skipBytes): Added code to handle negative number of skip bytes.
4424 * java/io/StreamTokenizer.java: Rewritten.
4426 1998-10-28 Tom Tromey <tromey@cygnus.com>
4428 * java/util/natGregorianCalendar.cc (computeFields): Call
4429 getRawOffset as a method.
4431 * include/javaprims.h (java::io): Added FilterOutputStream.
4432 * Makefile.in: Rebuilt.
4433 * Makefile.am (nat_headers): Added PrintStream.h,
4434 FilterOutputStream.h.
4435 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4437 (die): New function.
4438 (run): Die if `main' not found, is not public, or is not static.
4440 * boehm.cc (_Jv_MarkObj): Use new field names.
4441 * include/java-field.h (JvGetFirstInstanceField): Use new field
4443 (JvNumInstanceFields): Likewise.
4444 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4445 (getInterfaces): Likewise.
4446 * prims.cc (CLASS_CONSTANTS): Removed.
4447 (CLASS_CONST_SIZE): Likewise.
4448 (CLASS_CONST_TAG): Likewise.
4449 (CLASS_CONST_DATA): Likewise.
4450 (CLASS_CONST_UTF8): Likewise.
4451 (WORD2UTF): Likewise.
4452 (CLASS_CLASS): Likewise.
4453 (CLASS_PRIM_SIG): Likewise.
4454 (CLASS_ARRAY_CACHE): Likewise.
4455 (HASH_CHARS): Likewise.
4456 (hashClassName): Likewise.
4457 Many changes to use new field names.
4458 * java/lang/Class.h (Class): Renamed fields to track compiler.
4460 1998-10-27 Tom Tromey <tromey@cygnus.com>
4462 * java/lang/natClass.cc: Use #pragma implementation.
4463 (getComponentType): Moved into header.
4464 (getModifiers): Likewise.
4465 (getName): Likewise.
4466 (getSuperclass): Likewise.
4467 (isArray): Likewise.
4468 (isPrimitive): Likewise.
4469 * include/jvm.h (_Jv_FindClass): Declare.
4470 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4471 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4472 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4473 * java/lang/Class.h: Rewrote from scratch.
4474 * prims.cc: Many changes to work with new Class.h.
4475 * include/java-field.h (CLASS_FIELDS): Removed.
4476 (CLASS_SFIELDS): Likewise.
4477 (CLASS_IFIELDS): Likewise.
4478 (CLASS_NFIELDS): Likewise.
4479 (CLASS_NIFIELDS): Likewise.
4480 (CLASS_NSFIELDS): Likewise.
4481 (CLASS_FSIZE): Likewise.
4482 (JvGetFirstInstanceField): Rewrote.
4483 (JvNumInstanceFields): Likewise.
4485 * java/lang/Object.h: Added copyright comment.
4487 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4489 * java/text: New package directory.
4490 * java/text/FieldPosition.java: New class.
4491 * java/text/ParsePosition.java: New class.
4492 * java/text/ParseException.java: New Exception class.
4493 * java/text/Format.java: New class.
4494 * java/text/NumberFormat.java: New (empty placeholder) class.
4495 * java/text/DateFormatSymbols.java: New class (no Locales support).
4496 * java/text/DateFormat.java: New Format class (incomplete).
4497 * java/text/SimpleDateFormat.java: New DateFormat class.
4499 * include/javaprims.h (java::test): Added new package and classes.
4500 * java/util/Calendar.java (clone): New method.
4501 * java/util/Date.java (toString): Added non-native implementation.
4502 (parse): Made public instead of synchronized.
4503 * java/util/natDate.cc (toString): Removed.
4504 * java/util/natGregorianCalendar.cc (computeFields):
4505 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4507 1998-10-27 Tom Tromey <tromey@cygnus.com>
4509 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4511 * prims.cc (lookupArray): Added explanatory comment.
4512 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4513 class. Mark the class of each object.
4514 (_Jv_MarkArray): Mark the object's class.
4516 * configure: Rebuilt.
4517 * configure.in: Create java-gc.h.
4518 * include/boehm-gc.h: New file.
4519 * include/no-gc.h: New file.
4520 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4522 * java/lang/Object.h: Include java-gc.h.
4523 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4524 friends, if defined.
4525 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4527 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4529 1998-10-26 Tom Tromey <tromey@cygnus.com>
4531 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4532 paragraph separators, not numbers.
4534 * java/io/Writer.java (write): Removed write(char) to avoid
4536 * java/util/Properties.java: Rewrote from scratch.
4537 * include/javaprims.h (java::io): Added PrintWriter,
4538 BufferedWriter, PushbackReader.
4540 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4542 * java/lang/System.java: exit() is a static method.
4544 1998-10-26 Tom Tromey <tromey@cygnus.com>
4546 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4548 (_Jv_NewStringUtf8Const): Likewise.
4549 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4550 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4552 * java/lang/Object.h (Object): Add mark_array as friend function.
4553 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4554 _Jv_AllocBytes, to ensure that header is marked.
4555 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4557 (mark_array): Push sync_info field for array.
4559 1998-10-24 Tom Tromey <tromey@cygnus.com>
4561 * java/lang/String.java (String): Updated for StringBuffer
4563 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4565 * java/lang/StringBuffer.java: Renamed fields to conform to
4566 serialization spec: buffer->value, next->count, copy->shared.
4568 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4570 * java/util/TimeZone.java: New class.
4571 * java/util/SimpleTimeZone.java: New class.
4572 * java/util/Locale.java: New file.
4573 * java/util/Calendar.java: Make almost complete.
4574 * java/util/GregorianCalendar.java
4575 * java/util/natGregorianCalendar.cc: New file.
4576 * java/util/Date.java: Re-written from scratch.
4577 * java/util/natDate.cc (setTime): Removed - no longer native.
4578 * include/javaprims.h (java::util): Add new classes.
4579 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4580 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4582 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4584 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4585 returning it as a jint.
4587 1998-10-23 Tom Tromey <tromey@cygnus.com>
4589 * prims.cc (arg_vec, main_group, main_thread): New globals.
4590 (JvRunMain): Use them.
4592 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4594 * java/io/DataInputStream.java: Rewritten.
4596 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4597 tertiary bytes with 0x80 per spec.
4599 1998-10-23 Tom Tromey <tromey@cygnus.com>
4601 * java/lang/String.java (init): Changed name of `copy' argument.
4602 * java/lang/natString.cc (init): Inverted sense of `copy'
4605 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4606 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4607 * boehm.cc (ObjectClass): New define.
4608 (ClassClass): Likewise.
4609 (mark_obj): Special-case Object and Class.
4611 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4613 * java/util/BitSet.java: Rewrote from scratch.
4615 * prims.cc (lookupArray): Removed useless cast.
4617 * java/lang/natObject.cc: Use `#pragma implementation'.
4619 * java/lang/String.java (init): Added `copy' argument.
4620 (String): Look in StringBuffer to find char array.
4621 * java/lang/natString.cc (init): Added `copy' argument.
4622 * java/lang/StringBuffer.java: Rewrote from scratch.
4624 * java/lang/Compiler.java: Rewrote from scratch.
4625 * java/lang/Throwable.java: Don't use NativeLang.
4626 * include/javaprims.h (java::lang): Don't mention NativeLang.
4627 * java/lang/Process.java: Rewrote from scratch.
4628 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4630 (currentClassLoader): Likewise.
4631 (currentLoadedClass): Likewise.
4632 * java/lang/natClass.cc (getClassLoader): Commented out.
4633 * java/lang/Class.java (getClassLoader): Commented out.
4634 * java/lang/Compiler.java: Removed.
4635 * java/lang/NativeLang.java: Removed.
4637 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4638 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4639 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4640 (_Jv_hashUtf8String): Now static.
4641 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4642 name of return type.
4644 * java/lang/Class.h (Class): Declare checkMemberAccess.
4645 * Makefile.in: Rebuilt.
4646 * Makefile.am (nat_headers): Added Member.h.
4647 * java/lang/natClass.cc: Include Member.h.
4648 (getDeclaredClasses): Call checkMemberAccess.
4649 * java/lang/Class.java (checkMemberAccess): Call
4650 SecurityManager.checkMemberAccess.
4652 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4654 * java/lang/SecurityManager.java: Rewritten.
4656 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4658 * java/applet/Applet.java, java/applet/AppletContext.java,
4659 java/applet/AppletStub.java, java/applet/AudioClip.java,
4660 java/awt/AWTError.java, java/awt/AWTException.java,
4661 java/awt/BorderLayout.java, java/awt/Button.java,
4662 java/awt/Canvas.java, java/awt/CardLayout.java,
4663 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4664 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4665 java/awt/Color.java, java/awt/Component.java,
4666 java/awt/Container.java, java/awt/Dialog.java,
4667 java/awt/Dimension.java, java/awt/Event.java,
4668 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4669 java/awt/Font.java, java/awt/FontMetrics.java,
4670 java/awt/Frame.java, java/awt/Graphics.java,
4671 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4672 java/awt/GridLayout.java, java/awt/Image.java,
4673 java/awt/Insets.java, java/awt/Label.java,
4674 java/awt/LayoutManager.java, java/awt/List.java,
4675 java/awt/MediaTracker.java, java/awt/Menu.java,
4676 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4677 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4678 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4679 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4680 java/awt/TextArea.java, java/awt/TextComponent.java,
4681 java/awt/TextField.java, java/awt/Toolkit.java,
4682 java/awt/Window.java, java/awt/image/ColorModel.java,
4683 java/awt/image/CropImageFilter.java,
4684 java/awt/image/DirectColorModel.java,
4685 java/awt/image/FilteredImageSource.java,
4686 java/awt/image/ImageConsumer.java,
4687 java/awt/image/ImageFilter.java,
4688 java/awt/image/ImageObserver.java,
4689 java/awt/image/ImageProducer.java,
4690 java/awt/image/IndexColorModel.java,
4691 java/awt/image/MemoryImageSource.java,
4692 java/awt/image/PixelGrabber.java,
4693 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4694 java/awt/peer/CanvasPeer.java,
4695 java/awt/peer/CheckboxMenuItemPeer.java,
4696 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4697 java/awt/peer/ComponentPeer.java,
4698 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4699 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4700 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4701 java/awt/peer/MenuBarPeer.java,
4702 java/awt/peer/MenuComponentPeer.java,
4703 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4704 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4705 java/awt/peer/TextAreaPeer.java,
4706 java/awt/peer/TextComponentPeer.java,
4707 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4708 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4709 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4710 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4711 java/net/MalformedURLException.java, java/net/NativeNet.java,
4712 java/net/ProtocolException.java, java/net/ServerSocket.java,
4713 java/net/Socket.java, java/net/SocketException.java,
4714 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4715 java/net/URL.java, java/net/URLConnection.java,
4716 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4717 java/net/URLStreamHandlerFactory.java,
4718 java/net/UnknownHostException.java,
4719 java/net/UnknownServiceException.java: Removed.
4721 1998-10-22 Tom Tromey <tromey@cygnus.com>
4723 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4724 finalizer is not Object.finalize.
4725 (internalAddClass): Don't set `final' member of class.
4726 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4727 other places that know about finalize() location.
4728 * java/lang/Class.h (Class): Removed `final' field.
4730 * aclocal.m4, configure: Rebuilt.
4731 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4732 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4734 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4735 * Makefile.in: Rebuilt.
4736 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4738 1998-10-21 Tom Tromey <tromey@cygnus.com>
4740 * java/lang/Object.java (finalize): Move to be first method in
4743 * configure: Rebuilt.
4744 * configure.in (GCINCS): Include contents of boehm-cflags file.
4746 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4748 * java/lang/ArrayIndexOutOfBoundsException.java
4749 (ArrayIndexOutOfBoundsException): Fixed string literal.
4750 * java/lang/StringIndexOutOfBoundsException.java
4751 (StringIndexOutOfBoundsException): Fixed string literal.
4753 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4755 * natFileDescriptorEcos.cc added.
4756 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4758 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4760 * acconfig.h: test for __int32_t and __uint32_t added.
4761 * include/config.h.in: test for __int32_t and __uint32_t added.
4762 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4763 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4764 * configure.in: test for __int32_t and __uint32_t added.
4765 * configure: test for __int32_t and __uint32_t added.
4767 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4769 * configure.in: Test for --enable ecos and link
4770 natFileDescriptor.cc to natFileDescriptorEcos.cc or
4771 natFileDescriptorPosix.cc
4773 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4775 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
4777 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4780 * java/io/CharArrayReader.java (close): Synchronize on lock
4781 object per Reader contract.
4782 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4783 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4784 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4785 Ensure that arg passed in isn't negative.
4787 * java/io/FilterReader.java (FilterReader): Use the lock obj when
4788 constructing the superclass.
4790 * java/io/PushbackReader.java (close): Synchronize on lock
4791 object per Reader contract.
4792 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4793 (ready): Synchronize on lock obj. Throw IOException if reader
4795 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4796 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4797 Ensure that arg passed in isn't negative.
4798 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
4800 * java/io/StringReader.java: Created.
4802 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
4804 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4806 (read): Removed synchronized modifier to match JCL.
4807 (reset): Removed synchronized modifier to match JCL.
4808 (skip): Removed synchronized modifier to match JCL.
4810 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
4812 * java/io/PushbackReader.java (PushbackReader): Made
4813 constructors public.
4815 1998-10-17 Tom Tromey <tromey@cygnus.com>
4817 * java/io/PushbackInputStream.java (PushbackInputStream): Made
4818 constructors public.
4820 1998-10-16 Anthony Green <green@cygnus.com>
4822 * aclocal.m4, configure: Rebuilt.
4823 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4825 * configure.host: Rewrote.
4826 * Makefile.in: Rebuilt.
4827 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4828 (AM_CFLAGS): New macro.
4829 ($(c_files)): Use COMPILE macro.
4830 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4831 automake problem(s).
4833 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
4835 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4837 * java/io/CharArrayReader.java: Created.
4839 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
4841 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4842 size check to allow 0 per JCL.
4844 * java/io/PushbackReader.java: Created.
4846 1998-10-16 Tom Tromey <tromey@cygnus.com>
4848 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4849 <sys/time.h> includes.
4850 * java/io/natFile.cc: Conditionalize <unistd.h> include.
4851 * include/no-threads.h: Conditionalize <unistd.h> include on
4854 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4856 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4859 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
4861 * java/io/FilterReader.java: Created.
4863 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
4865 * java/io/PushbackInputStream.java: Rewritten.
4867 * java/io/BufferedInputStream.java (BufferedInputStream): Check
4868 that size passed to constructor is legal.
4869 (read): Check that args passed in are legal.
4870 (skip): Rewritten to get rid of the temporary buffer.
4871 (refill): Added marklimit check to grow the buffer.
4873 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4875 (bytesAvail): Removed.
4876 (read): Changed bytesAvail to Math.min.
4877 (skip): Changed bytesAvail to Math.min.
4879 * java/io/InputStream.java (read): Got rid of extraneous exceptions
4880 from the throws clause.
4881 (skip): Rewritten to use a temporary buffer.
4883 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4885 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4888 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4890 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4891 to write the double one word at a time.
4893 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
4895 * java/io/BufferedInputStream.java: Rewritten.
4897 1998-10-12 Tom Tromey <tromey@cygnus.com>
4899 * jni.cc: Include config.h and stddef.h.
4901 * java/lang/Class.h (_dispatchTable): Removed again.
4902 Removed all ACC_* defines again.
4904 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
4906 * Makefile.am (nat_files): Add netField.o.
4907 (libjava_a_SOURCES): Add jni.cc.
4908 (java/lang/reflect/Field.h): New rule.
4909 * Makefile.in: Re-generated.
4910 * include/javaprims.h: Add some extra class and typedefs.
4911 * include/jni.h: New file.
4914 * include/java-field.h: New file.
4915 * include/jvm.h: #include <java-field.h>.
4916 * boehm.cc: #include <java-field.h>.
4917 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
4918 * java/lang/reflect/Member.java: New class.
4919 * java/lang/reflect/Field.java: New class. (Very incomplete.)
4920 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
4922 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
4924 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
4925 testsuite/Makefile.in: Rebuilt.
4926 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
4927 * configure.host: Created.
4929 1998-10-10 Tom Tromey <tromey@cygnus.com>
4931 * java/lang/natObject.cc (sync_init): Always allocate a new
4934 1998-10-09 Tom Tromey <tromey@cygnus.com>
4936 * java/io/ByteArrayInputStream.java (mark): Renamed from
4939 * java/io/FileOutputStream.java (finalize): Removed.
4940 * java/io/FileDescriptor.java (finalize): New method.
4942 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
4944 * ByteArrayInputStream.java: Corrected status comment.
4946 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
4948 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
4950 1998-10-08 Tom Tromey <tromey@cygnus.com>
4952 * prims.cc (lookupArray): Use static array to initialize list of
4955 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
4957 * prims.cc (lookupArray): Initialize the msize for new
4960 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
4962 * configure: Rebuilt.
4963 * configure.in: Check for fsync and sleep.
4964 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
4966 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
4967 HAVE_SLEEP. Include config.h.
4969 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
4970 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
4973 1998-10-08 Tom Tromey <tromey@cygnus.com>
4975 * java/io/natFile.cc: Don't include SecurityManager.h.
4976 (performList): Renamed.
4977 (performMkdir): Likewise.
4978 (performRenameTo): Likewise.
4979 (performDelete): Likewise.
4981 * java/io/File.java (performDelete): Renamed from natDelete.
4982 (list): Now written in Java.
4983 (performList): New method.
4984 (performMkdir): New method.
4985 (mkdir): Now written in Java.
4986 (performRenameTo): New method.
4987 (renameTo): Now written in Java.
4989 1998-10-06 Tom Tromey <tromey@cygnus.com>
4991 * Makefile.in: Rebuilt.
4992 * Makefile.am (ETAGS_ARGS): New macro.
4993 (TAGS_DEPENDENCIES): Likewise.
4995 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
4997 * Makefile.in: Rebuilt.
4998 * Makefile.am: Use -classpath option with javac.
5000 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5002 * java/io/FileOutputStream.java (finalize): Call
5005 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5007 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5009 * java/lang/mprec.c: Ditto.
5011 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5014 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5016 * java/io/InputStream.java (skip): Make local var i a long.
5018 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5020 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5021 * prims.cc (lookupArray): Use memcpy, not memmove.
5022 * include/config.h.in: Rebuilt.
5023 * acconfig.h (HAVE_MEMCPY): Added.
5024 * configure: Rebuilt.
5025 * configure.in: Check for memcpy again.
5027 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5028 String.compareTo, not ==.
5030 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5031 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5032 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5033 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5034 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5035 into new array's dtable.
5036 (_Jv_AllocObject): Use _Jv_DispatchTable.
5037 (_Jv_NewPrimArray): Likewise.
5038 (_Jv_NewObjectArray): Likewise.
5040 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5042 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5043 offending index value.
5044 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5046 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5047 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5049 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5051 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5053 * java/io/OutputStream.java (write): Use off and len parameters to
5054 output partial byte array.
5056 * java/io/BufferedReader.java, java/io/FileReader.java,
5057 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5058 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5059 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5060 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5062 * include/javaprims.h (java::lang): Added
5063 ExceptionInInitializerError, IllegalStateException,
5064 NoSuchFieldException, and UnsupportedOperationException.
5066 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5068 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5071 * include/java-array.h (__JArray): Added clone method.
5072 * prims.cc (CloneableClass): New define.
5073 (lookupArray): Initialize array class to indicate that it
5074 implements Cloneable.
5076 * java/lang/Class.h: Removed all ACC_* defines.
5077 * prims.cc: Include Modifier.h.
5078 (_Jv_LookupInterfaceMethod): Use methods in
5079 java.lang.reflect.Modifier, not ACC_ defines.
5081 * java/lang/Class.h (Class): Declare getClasses,
5082 getDeclaredClasses, getDeclaringClass, getModifiers,
5083 * java/lang/Class.java: Rewrote from scratch.
5085 * include/javaprims.h (java::lang): Added reflect and
5087 * Makefile.in: Rebuilt.
5088 * Makefile.am (nat_headers): Added Modifier.h.
5090 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5093 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5095 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5096 instead of test and abort.
5098 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5099 remove compiler warning.
5101 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5103 * java/lang/natDouble.cc: zero terminate string.
5104 * strtod.c: Set errno if no digits are found in fraction.
5106 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5108 * java/lang/reflect/Modifier.java: New file.
5110 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5111 * java/lang/VerifyError.java: Rewrote from scratch.
5112 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5113 * java/lang/UnknownError.java: Rewrote from scratch.
5114 * java/lang/StackOverflowError.java: Rewrote from scratch.
5115 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5116 * java/lang/InternalError.java: Rewrote from scratch.
5117 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5118 * java/lang/ExceptionInInitializerError.java: New file.
5119 * java/lang/Error.java: Rewrote from scratch.
5120 * java/lang/ClassFormatError.java: Rewrote from scratch.
5121 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5122 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5123 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5124 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5125 * java/lang/LinkageError.java: Rewrote from scratch.
5126 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5128 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5130 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5131 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5133 * include/cni.h (JvAllocObject): Moved from prims.cc.
5135 * prims.cc (JvAllocObject): Moved to cni.h.
5136 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5137 (finalize_name): Removed.
5139 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5141 * java/lang/Class.h (Class): Added size() method.
5142 * prims.cc (_Jv_MonitorEnter): Removed.
5143 (_Jv_MonitorExit): Removed.
5144 * java/lang/Object.h (JvSyncInfo): Removed.
5145 * Makefile.in: Rebuilt.
5146 * Makefile.am (nat_headers): Added Cloneable.h,
5147 CloneNotSupportedException.h.
5148 * java/lang/Object.h: Rewrote.
5149 * java/lang/natObject.cc: Rewrote from scratch.
5150 * java/lang/Object.java: Rewrote from scratch.
5152 * java/io/natFile.cc: Conditionally include <dirent.h>.
5153 (list): If no <dirent.h>, always return NULL.
5154 * configure: Rebuilt.
5155 * configure.in: Check for dirent.h.
5157 * prims.cc (lookupArray): Don't use sprintf.
5159 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5166 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5167 name conflict with method.
5169 * include/javaprims.h (java::util): Added HashtableEntry.
5171 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5173 * java/util/Hashtable.java: Rewritten.
5175 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5177 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5181 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5184 * posix-threads.cc (_Jv_CondWait): Now returns int.
5185 * include/javaprims.h (java::lang): Added
5186 IllegalMonitorStateException.
5187 * Makefile.in: Rebuilt.
5188 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5189 * include/no-threads.h (_Jv_CondDestroy): Removed.
5190 (_Jv_MutexDestroy): Removed.
5191 (_Jv_CondWait): Now returns int.
5192 (_Jv_CondNotify): Likewise. Added mutex argument.
5193 (_Jv_CondNotifyAll): Likewise.
5194 (_Jv_MutexLock): Always succeed.
5195 (_Jv_MutexUnlock): Likewise.
5196 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5197 (_Jv_HaveMutexDestroy): Define.
5198 (_Jv_CondNotify): Now returns int. Added mutex argument.
5199 (_Jv_CondNotifyAll): Likewise.
5200 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5201 (_Jv_MutexDestroy): Removed.
5202 (_Jv_CondWait): Now returns int.
5203 (_Jv_CondNotify): Likewise. Added mutex argument.
5204 (_Jv_CondNotifyAll): Likewise.
5205 * java/lang/natObject.cc (finalize_sync_info): New function.
5206 (init_mutex): Initialize `init' and register finalizer if
5209 (init_mutex): Use it.
5211 (notifyAll): Use it.
5213 (notify): Throw IllegalMonitorStateException on failure.
5214 (notifyAll): Likewise.
5215 (wait): Likewise. Also, throw InterruptedException if
5217 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5218 InterruptedException.h, IllegalArgumentException.h.
5219 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5221 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5222 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5223 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5224 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5225 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5226 * quick-threads.cc: Renamed all `JvPriv' functions.
5227 * prims.cc: Renamed all `JvPriv' functions.
5228 * posix-threads.cc: Renamed all `JvPriv' functions.
5229 * nogc.cc: Renamed all `JvPriv' functions.
5230 * no-threads.cc: Renamed all `JvPriv' functions.
5231 * boehm.cc: Renamed all `JvPriv' functions.
5232 * include/quick-threads.h: Renamed all `JvPriv' functions.
5233 * include/posix-threads.h: Renamed all `JvPriv' functions.
5234 * include/no-threads.h: Renamed all `JvPriv' functions.
5235 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5237 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5239 (JvPrivCondNotify): Do nothing.
5240 (JvPrivCondNotifyAll): Do nothing.
5242 * prims.cc (processClass): Handle case where state is
5245 * java/lang/natFirstThread.cc: Include <stdlib.h>
5247 * configure: Rebuilt.
5248 * configure.in: Fixed sense of --enable-libjava-debug.
5250 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5251 it can be used afterward by the assertion.
5253 * configure: Rebuilt.
5254 * configure.in: When cross-compiling, assume alloca.
5256 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5257 __builtin_alloca (autoconf docs are wrong here).
5259 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5261 (available): Use `FD_ZERO' (typo fix).
5263 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5265 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5266 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5268 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5269 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5272 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5274 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5276 * java/lang/natDouble.cc: Declare alloca safely.
5278 * configure, include/config.h.in: Rebuilt.
5279 * configure.in: Add alloca check.
5281 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5283 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5284 condition while calling notify.
5285 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5286 (interrupt): Hold mutex for interrupt condition while calling
5289 * java/lang/natString.cc (init): Allocate and try to read `count'
5290 characters, not `count - offset' characters.
5292 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5293 Correctly compute `count'.
5295 * java/lang/Boolean.java (getBoolean): Return false if property
5298 * java/lang/System.java (setProperties): Set prop_init.
5300 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5302 * java/io/PrintStream.java (println): Use line.separator, not
5304 * java/lang/System.java (out, err): Make both autoflush streams.
5305 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5307 * include/config.h.in: Rebuilt.
5308 * acconfig.h (HAVE_MEMCPY): Removed.
5309 * configure: Rebuilt.
5310 * configure.in: Never define HAVE_MEMCPY.
5312 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5314 (_Jv_AllocString): Use JvAllocObject again.
5315 * java/lang/Class.h (thread): New field.
5316 (_Jv_AllocString): No longer a friend.
5317 * prims.cc (processClass): Removed dead code. Changed to more
5318 closely follow the Java Language Specification.
5319 (processClass): Return early if already at the right state.
5321 * prims.cc (JvNewStringUTF): Removed.
5322 * include/cni.h (JvNewStringUTF): New function.
5323 (_Jv_NewStringUTF): Declare as `extern "C"'.
5324 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5326 * java/lang/natDouble.cc: Added copyright info and header
5327 comment. Include <stdlib.h>.
5328 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5329 bytes as are chars in string.
5331 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5333 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5337 * java/lang/System.java (init_properties): Now native.
5338 * java/lang/natSystem.cc (init_properties): New method.
5339 Include java/util/Properties.h.
5341 * Makefile.in: Rebuilt.
5342 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5343 OutputStreamWriter.h, ByteArrayInputStream.h,
5344 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5345 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5346 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5347 Properties.h, Hashtable.h, Dictionary.h.
5350 * include/javaprims.h (java::io): Added Reader, Writer,
5351 InputStreamReader, OutputStreamWriter,
5352 UnsupportedEncodingException, ByteArrayInputStream,
5353 ByteArrayOutputStream, EOFException, SyncFailedException,
5354 PushbackInputStream.
5355 (java::lang): Added Cloneable.
5356 (java::util): Added NoSuchElementException, VectorEnumeration,
5357 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5359 * java/io/PipedReader.java: New file.
5361 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5363 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5366 * java/io/io-defs.h: Removed.
5368 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5369 (FileInputStream): Use new constructor. Can throw IOException.
5371 * java/lang/System.java (getProperty): Don't throw
5372 NullPointerException.
5374 * java/io/RandomAccessFile.java: Rewrote from scratch.
5376 * java/io/natFileDescriptor.cc: Include EOFException.h.
5378 (length): New method.
5379 (getFilePointer): New method.
5381 (available): New method.
5382 * java/io/FileDescriptor.java (SET, CUR): New constants.
5383 (seek, length, getFilePointer, read, available): New decls.
5385 * java/io/PipedWriter.java: New file.
5386 * java/io/StringWriter.java: New file.
5387 * java/io/CharArrayWriter.java: New file.
5388 * java/io/CharConversionException.java: New file.
5389 * java/io/BufferedWriter.java: New file.
5390 * java/io/FilterWriter.java: New file.
5391 * java/io/FileWriter.java: New file.
5393 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5394 OutputStreamWriter.h, NullPointerException.h,
5395 ByteArrayInputStream.h, InputStreamReader.h.
5396 (getBytes): New method.
5397 (init): Throw NullPointerException.
5398 (init): New function.
5399 * java/lang/String.java (getBytes): Added missing decl.
5400 (getBytes): New method.
5401 (String): Added byte[]-based constructors.
5402 (copyValueOf): Wrote.
5403 (init): Declare variant which takes byte array and encoding.
5404 Import java.io.UnsupportedEncodingException.
5406 * java/io/File.java: Rewrote from scratch.
5407 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5408 * java/io/FileDescriptor.java: Rewrote from scratch.
5409 * java/io/FilenameFilter.java: Rewrote from scratch.
5411 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5413 * java/io/SyncFailedException.java: New file.
5414 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5415 * java/io/InterruptedIOException.java: Rewrote from scratch.
5416 * java/io/FileNotFoundException.java: Rewrote from scratch.
5417 * java/io/EOFException.java: Rewrote from scratch.
5418 * java/io/IOException.java: Rewrote from scratch.
5419 * java/io/PrintStream.java: Rewrote from scratch.
5420 * java/io/DataOutputStream.java: Rewrote from scratch.
5421 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5422 * java/io/FilterOutputStream.java: Rewrote from scratch.
5423 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5424 * java/io/PipedOutputStream.java: Rewrote from scratch.
5425 * java/io/FileOutputStream.java: Rewrote from scratch.
5426 * java/io/OutputStream.java: Rewrote from scratch.
5427 * java/io/DataOutput.java: Rewrote from scratch.
5429 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5431 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5433 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5435 * configure.in: Add --enable-libjava-debug
5437 * Makefile.am (nat_headers): Add java/lang/Float.h and
5440 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5442 * Makefile.in, configure, include/config.h.in: Rebuilt.
5444 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5446 * java/lang/Float.java: Rewritten
5447 * java/lang/Double.java: Rewritten
5448 * java/lang/natFloat.cc: toString() added.
5449 * java/lang/natDouble.cc: toString() added.
5450 * java/lang/natDouble.cc: doubleValueOf() added.
5451 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5452 java/lang/strtod.c: added.
5453 * ieeefp.h: __sparc added.
5454 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5456 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5458 * include/javaprims.h (java::lang): Added
5459 CloneNotSupportedException.
5461 * java/lang/Object.java (clone): No longer native. Implemented.
5462 * java/lang/natObject.cc (clone): Removed.
5464 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5466 * prims.cc: Don't make definitions `extern "C"'.
5467 (_Jv_RegisterClass): Renamed from registerClass.
5468 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5469 (_Jv_NewArray): Likewise.
5470 (_Jv_NewMultiArray): Likewise.
5471 (_Jv_CheckCast): Likewise.
5472 (_Jv_LookupInterfaceMethod): Likewise.
5473 (_Jv_CheckArrayStore): Likewise.
5474 (_Jv_RegisterClass): Likewise.
5476 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5477 * configure: Rebuilt.
5478 * configure.in: Don't check for fmod; it is provided by the fdlibm
5480 * prims.cc (fmod): Removed.
5482 * java/lang/natString.cc (charAt): Use _Jv_uint.
5483 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5484 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5485 (equalUtf8Consts): Likewise.
5486 (internalAddClass): Use _Jv_uint.
5487 (processClass): Likewise.
5488 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5489 (_Jv_uint): Renamed from uint32.
5490 (struct _Jv_Utf8Const): Changed members to use new type names.
5492 * configure: Rebuilt.
5493 * configure.in: Don't check for memcpy. Require memmove and a way
5495 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5497 (currentTimeMillis): Don't use #error.
5499 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5501 * java/lang/Math.java: static member random renamed to random_ to
5502 avoid conflict with member function of the same name.
5503 * include/javaprims.h: java.util.Random added.
5505 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5507 * include/java-chartables.h: Regenerated.
5508 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5511 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5513 * java/lang/Math.java: Rewritten.
5514 * java/lang/natMath.cc: New file.
5515 * Files added from fdlibm:
5516 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5517 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5518 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5519 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5520 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5521 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5522 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5523 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5524 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5525 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5526 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5527 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5528 java/lang/k_cos.c, java/lang/sf_ceil.c,
5529 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5530 java/lang/ieeefp.h, java/lang/fdlibm.h
5531 * Makefile.am: rules added for compiling C files from fdlibm.
5533 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5535 * chartables.pl: Minor documentation fixes.
5537 * configure: Rebuilt.
5538 * configure.in: Fixed --help output for --enable-fast-character.
5540 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5542 * configure: Rebuilt.
5543 * configure.in: Recognize --enable-fast-character.
5544 * acconfig.h (COMPACT_CHARACTER): New define.
5545 * include/config.h.in: Rebuilt.
5546 * include/java-chartables.h: New file.
5547 * Makefile.in: Rebuilt.
5548 * Makefile.am (nat_files): Added natCharacter.o.
5549 * java/lang/natCharacter.cc: New file.
5550 * chartables.pl (set_attribute): New function.
5551 (@attributes, @second_attributes): New globals.
5552 ($ROMAN_START, $ROMAN_END): Likewise.
5553 (process_char): Call set_attribute when required.
5554 (print_char): Just print hex value.
5555 (print_block): Generate C++ syntax.
5556 (print_numerics): Likewise.
5557 (print_single_map): Likewise.
5558 (print_all_block): Likewise.
5559 (print_case_table): Likewise.
5560 (print_fast_tables): New function.
5561 Generate C++ code suitable for a header file.
5562 * java/lang/Character.java (table_search): Removed.
5563 (digit_value): Now native.
5564 (getNumericValue): Likewise.
5565 (getType): Likewise.
5566 Removed all automatically-generated tables.
5567 (Tamil_Digit_One): Removed.
5568 (isSpaceChar): Now native.
5569 (isTitleCase): Likewise.
5570 (isLowerCase): Likewise.
5571 (isUpperCase): Likewise.
5572 (toLowerCase): Likewise.
5573 (toTitleCase): Likewise.
5574 (toUpperCase): Likewise.
5575 (isDefined): Fixed sense of test.
5577 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5579 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5581 (regionMatches): Likewise.
5583 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5585 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5587 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5589 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5592 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5595 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5597 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5599 * prims.cc (instanceof_class): Removed.
5600 (instanceof_array): Likewise.
5601 (instanceof): Likewise.
5602 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5603 (_Jv_CheckCast): Likewise.
5604 * java/lang/natClass.cc (isAssignableFrom): New method.
5605 * java/lang/Class.java (isAssignableFrom): Now native.
5607 * include/cni.h (JvThrow): Use `extern inline'.
5608 (JvAllocObject): Likewise.
5609 (JvInitClass): Likewise.
5611 * java/lang/natSystem.cc (arraycopy): Only check class of source
5614 * prims.cc (_Jv_CheckArrayStore): Wrote.
5615 (_Jv_MonitorEnter): Prefer `JvThrow'.
5616 Include ArrayStoreException.h.
5617 (_Jv_CheckCast): Indentation cleanup.
5619 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5621 * chartables.pl: New file.
5622 * java/lang/Character.java: Rewrote from scratch.
5624 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5626 * java/lang/ArithmeticException.java,
5627 java/lang/ArrayIndexOutOfBoundsException.java,
5628 java/lang/ArrayStoreException.java,
5629 java/lang/ClassCastException.java,
5630 java/lang/ClassNotFoundException.java,
5631 java/lang/CloneNotSupportedException.java,
5632 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5633 java/lang/IllegalArgumentException.java,
5634 java/lang/IllegalMonitorStateException.java,
5635 java/lang/IllegalThreadStateException.java,
5636 java/lang/IndexOutOfBoundsException.java,
5637 java/lang/InstantiationException.java,
5638 java/lang/InterruptedException.java,
5639 java/lang/NegativeArraySizeException.java,
5640 java/lang/NoSuchMethodException.java,
5641 java/lang/NullPointerException.java,
5642 java/lang/NumberFormatException.java,
5643 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5644 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5646 * java/lang/IllegalStateException.java,
5647 java/lang/NoSuchFieldException.java,
5648 java/lang/UnsupportedOperationException.java: Created.
5650 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5652 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5653 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5655 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5657 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5659 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5661 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5663 * Makefile.in: Rebuilt.
5665 * include/javaprims.h (java::lang): Added
5666 StringIndexOutOfBoundsException.
5668 * java/lang/String.java: Added header comment and FIXME comment for
5669 missing constructors/methods.
5670 (endsWith): Adjusted offset into string to look at just the last chars.
5671 Commented out undocumented method.
5673 * java/lang/natString.cc: Added includes for
5674 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5675 (String::init): Throw StringIndexOutOfBoundsException.
5676 (String::charAt): Throw StringIndexOutOfBoundsException.
5677 (String::substring): Throw StringIndexOutOfBoundsException.
5678 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5679 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5680 (String::compareTo): Return difference/offset between chars/strings.
5682 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5684 * java/lang/Boolean.java (TYPE): Added comment.
5686 * java/lang/Byte.java (decode): Added - commented out until dependent
5687 code for Integer is written.
5688 (compareTo): JDK 1.2 methods written.
5689 (hashCode): Added comment to note that values have been verified.
5691 * java/lang/Short.java (decode): Added - commented out until dependent
5692 code for Integer is written.
5693 (compareTo): JDK 1.2 methods written.
5694 (hashCode): Added comment to note that values have been verified.
5696 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5698 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5700 * include/javaprims.h (java::lang): Added VirtualMachineError,
5702 * Makefile.in: Rebuilt.
5703 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5704 VirtualMachineError.h.
5705 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5706 (lookupArray): Likewise.
5707 (makeUtf8Const): Likewise.
5708 (_Jv_AllocObject): Likewise.
5709 (_Jv_NewObjectArray): Likewise.
5710 Include OutOfMemoryError.h.
5712 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5713 to use JvNewStringLatin1.
5715 * java/io/io-defs.h: Include java/lang/IOException.h.
5716 * Makefile.in: Rebuilt.
5717 * Makefile.am (nat_headers): Added
5718 ArrayIndexOutOfBoundsException.h,
5719 ClassFormatError.h,ClassNotFoundException.h,
5720 ClassCircularityError.h, ClassCastException.h,
5721 IncompatibleClassChangeError.h, AbstractMethodError.h,
5722 IllegalAccessError.h, LinkageError.h, Error.h,
5723 NegativeArraySizeException.h, IOException.h.
5724 * include/cni.h (SignalError): Removed declaration.
5725 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5726 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5727 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5728 (newInstance): Likewise.
5729 (forName): Likewise.
5730 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5732 (read): Use JvThrow, not SignalError.
5737 (open_read): Likewise.
5738 (open_write): Likewise.
5741 (newstr): New function.
5742 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5744 (lastModifiedUnchecked): Likewise.
5745 (lengthUnchecked): Likewise.
5746 * include/javaprims.h (sorry): Removed declaration.
5747 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5748 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5749 ClassCastException, IncompatibleClassChangeError,
5750 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5751 * prims.cc (instanceof_array): Use JvFail, not sorry.
5753 Include ArrayIndexOutOfBoundsException.h,
5754 ClassFormatError.h,ClassNotFoundException.h,
5755 ClassCircularityError.h, ClassCastException.h,
5756 IncompatibleClassChangeError.h, AbstractMethodError.h,
5757 IllegalAccessError.h, NegativeArraySizeException.h.
5758 (_Jv_ThrowBadArrayIndex): Implemented.
5759 (JvNewStringUTF): Use JvFail, not sorry.
5760 (_Jv_FindClass): Likewise.
5761 (_Jv_NewArray): Likewise.
5762 (throwException): Removed.
5763 (getClass): Use JvThrow.
5764 (processClass): Likewise.
5765 (_Jv_NewObjectArray): Likewise.
5766 (_Jv_NewMultiArray): Likewise.
5767 (_Jv_CheckCast): Likewise.
5768 (_Jv_LookupInterfaceMethod): Likewise.
5769 (SignalError): Removed.
5770 (getClass): Use _Jv_NewStringUtf8Const to create String.
5772 * java/lang/natSystem.cc (arraycopy): Throw
5773 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5775 * Makefile.in: Rebuilt.
5776 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
5778 * include/java-array.h: Mention gcjh, not gjavah.
5780 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5781 (canReadUnchecked): Likewise.
5782 (canWriteUnchecked): Likewise.
5783 (isFileUnchecked): Likewise.
5784 * java/io/natFileDescriptor.cc: Don't include cni.h.
5786 * java/lang/Thread.java (run__): Declare.
5787 * java/lang/natThread.cc (run__): New method, to avoid compiler
5789 (start): Use run__, not run_.
5791 * java/io/io-defs.h: Include cni.h and jvm.h.
5793 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
5795 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5796 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
5797 to natString.cc (with suitable renaming, inlines etc).
5798 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
5799 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
5800 * java/lang/String.h: Removed - now generated using gjavah.
5801 * java/lang/String.java: Re-written from scratch. Many native methods.
5802 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
5803 * java/lang/natString.cc: Many functions re-written for "compact
5804 strings" representation, or native java.lang.String methods added.
5805 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
5806 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
5807 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
5808 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
5809 * include/cni.h: Add inline method.
5810 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
5811 * include/javaprims.h: Moved some stuff frm String.h.
5812 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
5813 * Makefile.am (nat_header): Added Character.h and String.h.
5814 (String.h): Add new rule.
5816 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5818 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
5820 * posix-threads.cc: Include cni.h, jvm.h.
5821 * quick-threads.cc: Include cni.h, jvm.h.
5822 * nogc.cc: Include cni.h, not javaprims.h.
5823 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5824 * java/lang/natThread.cc: Rearranged #include ordering. Don't
5825 include java-assert.h.
5826 * java/lang/natSystem.cc: Include cni.h. Don't include
5828 * java/lang/natRuntime.cc: Include cni.h. Don't include
5830 * prims.cc: Rearranged #include ordering. Don't include
5831 java-array.h or java-assert.h.
5832 * boehm.cc: Include config.h, cni.h.
5833 * exception.cc: Include config.h, cni.h.
5834 * include/jvm.h: Include java-assert.h.
5835 * include/cni.h: Include java/lang/Object.h. Don't include
5836 java-threads.h or java-array.h.
5838 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
5840 * java/lang/Boolean.java: Rewritten.
5842 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5844 * java/lang/natFirstThread.cc (main_func): New typedef.
5845 (run): Use main_func, not JvPrivThreadStartFunc.
5846 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5848 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5850 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5853 Can't throw Java exceptions with C++ `throw':
5854 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5855 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5856 (setPriority): Likewise.
5860 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5861 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5863 Can't catch Java exceptions from C++:
5864 * java/lang/natThread.cc (finish_): New method.
5866 * java/lang/Thread.java (run_): Rewrote in Java.
5867 (finish_): New native method.
5869 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
5871 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5873 * include/javaprims.h (java::io): Added Serializable.
5875 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
5877 * java/util/EmptyStackException.java,
5878 java/util/NoSuchElementException.java: Rewritten.
5880 * java/util/ConcurrentModificationException.java,
5881 java/util/MissingResourceException.java,
5882 java/util/TooManyListenersException.java: Created.
5884 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5886 * include/cni.h (JvThrow): New function.
5887 * include/javaprims.h (_Jv_Throw): Declare.
5889 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
5891 * java/util/Observable.java: Rewritten.
5893 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5895 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
5896 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
5897 Include NullPointerException.h.
5899 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
5901 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
5902 assignability checks. Don't bother using memcpy.
5904 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
5906 * include/quick-threads.h (JvPrivThreadWait): New function.
5907 * include/no-threads.h (JvPrivThreadWait): New function.
5908 * include/posix-threads.h (JvPrivThreadWait): New function.
5909 * prims.cc (JvRunMain): Call JvPrivThreadWait.
5911 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
5913 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
5914 offsets by size of type that is being copied.
5916 * java/lang/natThread.cc (start): Don't pass `object' argument to
5918 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
5919 * posix-threads.cc (JvPrivThreadStart): Removed `object'
5921 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
5922 always pass thread as object.
5923 * include/quick-threads.h, include/posix-threads.h,
5924 include/no-threads.h (JvPrivThreadStart): Removed `object'
5927 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
5929 * java/util/Dictionary.java: Rewritten.
5931 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
5933 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
5934 (JvPrivThreadDestroy): Likewise.
5936 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
5938 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
5940 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
5942 * java/lang/natSystem.cc: Rewrote from scratch.
5943 * java/lang/System.java: Rewrote from scratch.
5944 * java/lang/Class.h (Class): Declare isAssignableFrom.
5945 * include/javaprims.h (java::lang): Added ArrayStoreException,
5946 IndexOutOfBoundsException.
5947 * Makefile.in: Rebuilt.
5948 * Makefile.am (nat_headers): Added ArrayStoreException.h,
5949 IndexOutOfBoundsException.h.
5950 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
5951 * include/jvm.h (_Jv_HashCode): New function.
5953 * java/lang/natThread.cc (suspend): Call checkAccess.
5955 * java/lang/Thread.java (setDaemon): Call checkAccess.
5957 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
5959 * java/lang/Runtime.java: Rewrote from scratch.
5960 * java/lang/natRuntime.cc: Rewrote from scratch.
5962 * nogc.cc (JvPrivGCTotalMemory): New function.
5963 (JvPrivGCFreeMemory): Likewise.
5964 (total): New global.
5965 (JvPrivAllocObj): Increment total.
5966 (JvPrivAllocArray): Likewise.
5967 (JvPrivAllocBytes): Likewise.
5968 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
5969 * boehm.cc (JvPrivGCTotalMemory): New function.
5970 (sum_blocks): Likewise.
5971 (JvPrivGCFreeMemory): Likewise.
5973 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
5975 * include/javaprims.h (java::lang): Added FirstThread.
5976 * java/lang/natFirstThread.cc: New file.
5977 * java/lang/FirstThread.java: New file.
5978 * prims.cc (main_signature): Removed.
5979 (main_name): Removed.
5980 #include FirstThread.h.
5981 * Makefile.in: Rebuilt.
5982 * Makefile.am (TFRIEND): Removed.
5983 (java/lang/Thread.h): Likewise.
5984 (FTFRIEND): New macro.
5985 (java/lang/FirstThread.h): New target.
5986 (nat_files): Added natFirstThread.o.
5987 (nat_headers): Added FirstThread.h.
5988 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
5989 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
5991 * java/lang/Thread.java (setName): Throw IllegalArgumentException
5995 * java/lang/natThread.cc (start): Synchronize the thread.
5996 (stop): Synchronize the thread.
5998 * java/lang/ThreadDeath.java: Rewrote from scratch.
6000 * Makefile.in: Rebuilt.
6001 * Makefile.am (TGFRIEND): New macro.
6002 (java/lang/ThreadGroup.h): New target.
6003 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6005 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6007 * nogc.cc: Include config.h.
6009 * java/lang/ThreadGroup.java: Rewrote from scratch.
6011 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6013 * java/lang/Thread.java (checkAccess): Only call in to security
6014 manager if it exists.
6015 (Thread): Don't check access when creating the first thread. Add
6016 this thread to the appropriate ThreadGroup.
6018 * java/lang/natThread.cc (run_): Call uncaughtException method on
6021 * java/lang/Runnable.java: Rewrote from scratch.
6022 * java/lang/Thread.java: Updated copyright comment to correct
6025 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6027 * java/util/Random.java: Rewritten.
6029 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6031 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6032 trailing 0 in array[].
6034 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6036 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6037 and RUNTESTFLAGS from AM_MAKEFLAGS.
6038 (SUBDIRS): Conditionally include testsuite.
6039 * Makefile.in: Rebuilt.
6041 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6043 * java/lang/Object.h: Include java-assert.h.
6045 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6047 * Makefile.am: Add testsuite directory.
6048 * configure.in: Build testsuite/Makefile.
6049 * Makefile.in, configure: Rebuilt.
6051 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6053 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6054 * include/jvm.h (_Jv_StartFirstThread): Declare.
6056 * include/javaprims.h (java::lang): Added Exception,
6059 * Makefile.in: Rebuilt.
6060 * Makefile.am (nat_headers): Added NullPointerException.h,
6061 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6062 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6063 (java/lang/Thread.h): New target.
6064 (TFRIEND): New macro
6066 * include/java-assert.h (JvFail): Use 0 and not NULL.
6068 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6069 instead of assuming we are a friend of Thread.
6070 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6071 instead of assuming we are a friend of Thread.
6073 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6075 * java/lang/natThread.cc: Rewrote from scratch.
6076 * java/lang/Thread.java: Rewrote from scratch.
6077 * prims.cc (JvRunMain): Use new Thread constructor.
6078 * include/javaprims.h (java::lang): Added InterruptedException.
6079 * Makefile.in: Rebuilt.
6080 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6081 * java/lang/Thread.h: Removed.
6082 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6083 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6085 * posix-threads.cc (JvPrivThreadJoin): Removed.
6086 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6087 (really_start): Don't notify join_cond.
6088 (JvPrivThreadStart): Added `data' argument.
6089 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6090 (JvPrivThreadJoin): Likewise.
6091 Use JvFail instead of sorry.
6092 (JvPrivThreadSuspend): Removed.
6093 (JvPrivThreadResume): Removed.
6094 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6095 (JvPrivThreadJoin): Likewise.
6096 (JvPrivThreadSuspend): Use JvFail.
6097 (JvPrivThreadResume): Likewise.
6098 (JvPrivThreadSuspend): Removed.
6099 (JvPrivThreadResume): Likewise.
6100 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6101 (JvPrivThread_t): Removed join_mutex, join_cond.
6102 Use JvFail instead of sorry.
6103 (JvPrivThreadSuspend): Removed.
6104 (JvPrivThreadResume): Likewise.
6106 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6108 * java/util/Observer.java: Rewritten
6109 * java/util/Enumeration.java: Rewritten
6111 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6113 * java/util/StringTokenizer.java: Rewritten
6114 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6115 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6116 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6118 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6120 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6123 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6124 Include java-assert.h.
6125 * include/java-assert.h: New file.
6126 * prims.cc (_Jv_Abort): New function.
6127 Include java-assert.h, not assert.h.
6128 (_Jv_MonitorExit): Use JvAssert.
6129 (resolveConstants): Likewise.
6130 (processClass): Likewise.
6131 (JvRunMain): Assert that method is found.
6133 * configure: Rebuilt.
6134 * configure.in: Check for test subdir.
6135 * Makefile.in: Rebuilt.
6136 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6138 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6139 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6141 * prims.cc (resolveConstants): Removed unused variables.
6142 (processClass): Likewise.
6144 * include/quick-threads.h (JvPrivThreadCurrent): Use
6146 * quick-threads.cc (destroy_data): New function.
6147 (JvPrivInitThreads): Create key.
6148 (JvPrivThreadKey): New global.
6149 (JvPrivThreadStart): Use coop_setspecific.
6151 * include/quick-threads.h, include/posix-threads.h,
6152 include/no-threads.h, no-threads.cc, quick-threads.cc,
6153 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6155 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6157 * include/no-threads.h (JvPrivThreadInitData): Don't set
6160 * include/quick-threads.h (JvPrivCondWait): coop function now
6162 (JvPrivThreadJoin): Likewise.
6164 * java/lang/Thread.h (Thread): Updated declaration of
6166 * include/quick-threads.h, include/posix-threads.h: Updated
6167 declaration of JvPrivThreadStart.
6168 * include/no-threads.h (JvPrivThreadStart): Changed definition
6170 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6171 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6172 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6174 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6176 * quick-threads.cc (qthrow): New function.
6177 (JvPrivInitThreads): New function.
6178 (started): New global.
6179 (JvPrivThreadStart): Call coop_start if required.
6180 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6181 (JvPrivThreadDestroy): Likewise.
6182 (JvPrivInitThreads): Removed.
6183 * include/posix-threads.h (JvPrivThreadCancel): Added error
6185 * java/lang/natThread.cc (stop_): Pass exception to
6188 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6190 * include/javaprims.h (java::lang): Added
6191 IllegalArgumentException, IllegalThreadStateException, Math,
6192 NullPointerException, ThreadDeath.
6193 (java::util): Added Enumeration.
6195 * Makefile.in: Rebuilt.
6196 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6198 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6200 (threadsv): Renamed from threads to avoid clash in C++ header.
6201 (groupsv): Likewise.
6202 * include/no-threads.h (JvPrivThreadStart): Removed.
6203 * no-threads.cc (JvPrivThreadStart): New function.
6204 * java/lang/Thread.java (Thread): New constructor for internal use.
6205 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6206 (Thread): Declare constructor.
6207 * prims.cc (JvRunMain): Create the initial Thread and
6209 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6210 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6211 Removed `daemon' argument.
6213 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6214 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6216 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6218 * Makefile.in: Rebuilt.
6219 * Makefile.am (INCLUDES): Include THREADINCS.
6221 * configure: Rebuilt.
6222 * configure.in: Recognize `qt' as a threads package.
6224 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6226 * java/util/Stack.java (pop): Null out topmost node for robustness.
6228 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6230 * java/util/Stack.java: Rewritten.
6231 * java/util/Vector.java (isEmpty): Simplified expression.
6233 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6235 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6236 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6238 * include/java-array.h (JvNewObjectArray): Created inline to
6241 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6244 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6246 * java/util/Vector.java: Rewritten.
6247 * java/io/Serializable.java: Created.
6249 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6251 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6252 Infinity is 1/0, not 1/1.
6254 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6256 * configure: Rebuilt.
6257 * configure.in: Removed duplicate AC_ARG_WITH.
6259 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6261 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6263 (_Jv_InitClass): Renamed from soft_initialise_class.
6264 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6265 (_Jv_CheckCast): Renamed from soft_checkcast.
6266 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6267 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6268 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6269 * include/cni.h (JvInitClass): New function.
6270 (_Jv_InitClass): Renamed from soft_initialise_class.
6272 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6274 * configure: Rebuilt.
6275 * configure.in (CXX): Don't set.
6276 * Makefile.in: Rebuilt.
6277 * Makefile.am (AM_CXXFLAGS): New macro.
6279 * Makefile.in: Rebuilt.
6280 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6281 nogc.o): New target.
6283 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6285 (mark_array): Likewise.
6287 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6289 * java/lang/Class.h (JvMethod): Removed some unused fields.
6290 (JvField.info): Removed unused idx union variant.
6292 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6294 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6297 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6299 * configure.in, configure (CXX): Add -fvtable-thunks.
6301 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6303 * java/lang/Object.java (finalize): Move first.
6304 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6305 (Object): Re-arrange order to match Object.java.
6307 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6309 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6310 * java/lang/natString.cc (hashChars): Likewise.
6312 * prims.cc (RuntimeClass): New macro.
6313 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6315 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6317 * Makefile.in: Rebuilt.
6318 * Makefile.am (AM_MAKEFLAGS): New macro.
6320 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6322 * nogc.cc: Include <javaprims.h>.
6324 * Makefile.in: Rebuilt.
6325 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6327 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6329 * exception.cc (terminate): Removed.
6330 (unexpected): Removed.
6332 * configure: Rebuilt.
6333 * configure.in: Handle case where target subdir is ".".
6335 * configure: Rebuilt.
6336 * configure.in: Compute COMPPATH based on --with-target-subdir
6337 option. Added --with-target-subdir and --with-cross-host. Use
6338 --with-cross-host to determine when a cross compiler is in use.
6340 * Makefile.in: Rebuilt.
6341 * Makefile.am (GJAVAH): Include COMPPATH.
6342 * configure: Rebuilt.
6343 * configure.in: Subst COMPPATH.
6345 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6347 * prims.cc (lockMutex): Removed.
6348 (unlockMutex): Likewise.
6349 (processClass): Lock the class using a JvSynchronize object.
6351 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6353 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6354 (gc_free_fixed): Removed.
6355 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6356 freeing old value of strhash.
6358 * exception.cc (_Jv_type_matcher): Cast first argument to
6361 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6363 * include/java-array.h (jstringArray): New type.
6364 * java/lang/natSystem.cc (setProperty): Removed.
6365 (initProperties): Directly call JvNewStringLatin1 for arguments.
6366 * java/util/natDate.cc: Include java/util/Date.h, not
6369 * java/io/FileDescriptor.java (available): No longer static.
6370 * java/lang/natDouble.cc (Double): Removed class definition.
6371 * include/javaprims.h (java::lang::Number): Declare.
6372 (java::lang::NumberFormatException): Likewise.
6373 (java::io::FilenameFilter): Likewise.
6374 (java::lang::Character): Likewise.
6375 (java::lang::Error): Likewise.
6376 (java::lang::SecurityManager): Likewise.
6377 (java::util::Vector): Likewise.
6378 (java::io::FileNotFoundException): Likewise.
6379 (java::io::IOException): Likewise.
6380 (java::lang::NativeLang): Likewise.
6381 (java::lang::UnsatisfiedLinkError): Likewise.
6382 (java::util::StringTokenizer): Likewise.
6383 (java::io::InputStream, java::io::OutputStream): Likewise.
6384 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6385 (java::util::Hashtable): Likewise.
6386 * Makefile.in: Rebuilt.
6387 * Makefile.am (nat_headers): Added java/lang/Double.h,
6388 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6389 (MOSTLYCLEANFILES): Added nat_headers.
6390 * include/jvm.h: Moved many defines, declarations, and functions
6391 to java/lang/Class.h.
6392 (struct JvSyncInfo): Moved to java/lang/Object.h.
6393 (UTF8_GET): Moved to java/lang/String.h.
6395 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6397 * java/io/io-defs.h: Don't include java-io.h.
6398 * include/java-io.h: Removed.
6399 * include/javaprims.h: Include java::io.
6401 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6403 * include/java-io.h (File): Removed
6404 (FileDescriptor): Likewise.
6406 * java/io/io-defs.h: Include java/io/File.h and
6407 java/io/FileDescriptor.h.
6409 * Makefile.in: Rebuilt.
6410 * Makefile.am (GJAVAH): New macro.
6411 (.class.h): New rule.
6412 (SUFFIXES): Added .h.
6413 (nat_headers): New macro.
6414 ($(nat_headers)): New target.
6415 (BUILT_SOURCES): Added nat_headers.
6417 * include/java-util.h: Removed.
6419 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6421 * include/java-io.h: Changed to avoid java-lang.h.
6422 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6424 * java/lang/natSystem.cc: Include java/lang/System.h, not
6426 * java/lang/natString.cc: Include java/lang/String.h, not
6428 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6430 * java/lang/natClass.cc: Include java/lang/Class.h, not
6432 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6434 * java/lang/natObject.cc: Include java/lang/Object.h, not
6436 * exception.cc: Don't include java-lang.h.
6437 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6438 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6439 * nogc.cc: Don't include java-lang.h.
6440 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6441 * prims.cc (processClass): Don't use `init_type'; just cast to
6443 Include java/lang/Class.h and jvm.h, not java-lang.h.
6444 (JvAllocObject): Wrote single-argument version.
6445 (PrimClass): Inherit from Class.
6446 (initPrimClass): Removed.
6447 * include/java-lang.h: Removed.
6448 * include/jvm.h: Declare struct _dispatchTable.
6449 * include/cni.h: Don't declare _Jv_MonitorEnter,
6450 _Jv_MonitorExit, struct _dispatchTable.
6451 * include/javaprims.h: Moved all typedefs here, from cni.h.
6452 * java/lang/Class.h: New file.
6453 * include/java-array.h: New file.
6454 * java/lang/Object.h: New file.
6456 * prims.cc (classFromSig): Now static.
6458 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6460 * include/cni.h: Don't mention soft_new.
6461 * include/java-lang.h (Object): Don't mention soft_new. Mention
6462 _Jv_NewPrimArray, not newPrimArray.
6463 * prims.cc (soft_new): Removed.
6464 (_Jv_NewArray): Renamed from soft_newarray.
6465 (soft_anewarray): Use JvNewObjectArray.
6466 (newArray): Likewise.
6467 (newRefArray): Removed.
6468 (_Jv_NewPrimArray): Renamed from newPrimArray.
6469 (equalUtf8Consts): Now static.
6470 (soft_instanceof): Removed.
6471 * java/lang/natDouble.cc (doubleToString): Now static.
6473 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6474 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6477 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6479 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6481 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6483 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6484 (JvPrivMutexUnlock): Likewise.
6485 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6486 Return value now jint.
6487 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6490 * Makefile.in: Rebuilt.
6491 * Makefile.am: Don't allow `jV' names.
6492 (maintainer-check): Depend on libjava.a.
6493 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6495 * Makefile.in: Rebuilt.
6496 * Makefile.am (NM): New macro.
6497 (maintainer-check): New target.
6499 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6501 * configure: Rebuilt.
6502 * configure.in: Use --enable-threads, not --enable-gc. Fix
6503 documentation for --enable-threads. Changed option to work like
6504 identical option in gcc/configure.
6506 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6508 * boehm.cc (mark_array): Use JvGetArrayLength.
6510 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6512 * exception.cc: New file (mostly written by Andrew MacLeod),
6513 exception handling support.
6514 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6515 Remove -fexceptions - it is now the default.
6517 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6518 (JvAllocObject): Renamed to _Jv_AllocObject.
6519 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6520 (loadClass): Renamed to _Jv_FindClass.
6521 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6522 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6523 * include/java-lang.h (JvGetArrayLength): New CNI function.
6524 * include/jvm.h (_Jv_FindClass): Added declaration.
6526 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6528 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6530 * java/lang/natClass.cc (getName): Add implementation.
6531 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6533 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6535 * Makefile.in: Rebuilt.
6536 * Makefile.am (.class.o): Added -fexceptions.
6538 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6540 * configure: Rebuilt.
6541 * configure.in: Don't check for __nanosleep.
6542 * posix-threads.cc (nanosleep): Never define.
6544 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6546 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6549 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6551 * java/lang/natThread.cc (enumerate): Uncommented.
6552 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6553 (interrupt): Call it.
6555 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6557 * configure: Rebuilt.
6558 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6560 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6562 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6563 * include/java-lang.h (Thread): Added `interrupted_' method.
6564 * java/lang/Thread.java (interrupted_): New method.
6565 * java/lang/natThread.cc (join): Possibly throw interrupted
6566 exception after join finishes.
6567 (interrupted_): New method.
6568 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6570 (JvPrivThreadJoin): New function.
6571 (really_start): Notify all threads waiting for this thread.
6572 (struct starter): Added `data' member.
6573 (JvPrivThreadStart): Set it.
6574 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6576 (JvPrivThreadJoin): No longer inline.
6577 (JvPrivThreadInterrupt): New function.
6579 * include/no-threads.h (JvPrivThreadSleep): Removed.
6580 * posix-threads.cc (JvPrivThreadSleep): Removed.
6582 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6584 * configure: Rebuilt.
6585 * configure.in (THREADOBJS): Initialize to no-threads.o in
6587 * posix-threads.cc (key): New global.
6588 (JvPrivInitThreads): New function.
6589 (really_start): Set thread-specific data to point to object.
6590 (JvPrivThreadStart): Added `daemon' argument.
6591 (JvPrivThreadSleep): Added `data' argument.
6592 * include/posix-threads.h (JvPrivInitThreads): Removed
6594 (JvPrivThreadCurrent): New function.
6595 * include/no-threads.h (JvPrivThreadInitData): Initialize
6596 JvPrivOnlyThread. Added `thread' argument.
6597 (JvPrivThreadCurrent): New function.
6598 (JvPrivThreadStart): Added `daemon' argument.
6599 * no-threads.cc: New file.
6600 * java/lang/natThread.cc (init_data): New function.
6602 (start): Set `alive' member.
6603 (stop_): Clear `alive' member.
6604 (destroy): Likewise.
6605 (currentThread): Implemented.
6606 (start): Pass `daemon' argument to JvPrivThreadStart.
6608 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6609 (Thread): Added `init_data' method.
6610 * java/lang/Thread.java (alive, data): New instance variables.
6611 (init_data): New private method.
6612 (isAlive): No longer native.
6614 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6616 * include/java-lang.h (JvRunMain): Declare.
6617 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6618 * prims.cc (JvRunMain): New function.
6619 (main_signature, main_name): New globals.
6621 * boehm.cc (mark_array): Use `elements' function and not
6622 operator[] on jarray.
6624 * posix-threads.cc: Include <config.h>. Define nanosleep if
6627 * configure: Rebuilt.
6628 * configure.in: Check for _nanosleep.
6630 * configure: Rebuilt.
6631 * configure.in: Check for pthread_mutexattr_settype.
6633 * include/cni.h (class JvSynchronize): New class.
6634 * java/lang/Thread.java (sleep): Throws InterruptedException.
6635 (join): Throws InterruptedException.
6636 (resume): Not native.
6637 (resume_): New method.
6638 (start): Now synchronized.
6639 (stop_): New method.
6640 (Thread): Synchronize when accessing threadNumber.
6642 * java/lang/natThread.cc (throwException): New macro.
6643 (sleep): Throw InterruptedException.
6646 * include/java-lang.h (Runtime): Added interrupted().
6648 * boehm.cc (call_finalizer): Correctly initialize jobj.
6649 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6651 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6654 * configure: Rebuilt.
6655 * configure.in: Added support for --disable-threads.
6656 * include/no-threads.h: New file.
6658 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6660 * Makefile.in: Rebuilt.
6661 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6662 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6663 (libjava_a_LIBADD): Added THREADOBJS.
6664 * configure: Rebuilt.
6665 * configure.in: Added --with-threads option.
6666 * posix-threads.cc: New file.
6667 * include/posix-threads.h: New file.
6668 * include/java-lang.h (Object): Added static member sync_mutex,
6669 member sync_info, method init_mutex.
6670 (struct JvSyncInfo): New struct.
6671 Include "java-threads.h".
6672 * prims.cc (soft_monitorenter): Wrote.
6673 (soft_monitorexit): Likewise.
6674 * java/lang/natObject.cc (init_mutex): New method.
6678 (sync_mutex): Define.
6679 Include "java-threads.h".
6681 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6683 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6684 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6686 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6688 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6689 Added extern "Java" in places to tell G++ Object is a "Java" type.
6690 Other minor renaming and fixes.
6691 * include/java-io.h (FileDescriptor): Add friend class declarations.
6692 G++ no longer allows non-Java types in method parameters and results
6693 of Java classes. Converted most offending methods to friends.
6694 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6695 * java/lang/natSystem.cc (setProperty): Make friend.
6696 * java/lang/natString.cc, include/java-lang.h (String): Rename
6697 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6698 * include/java-lang.h (JArray): Remove getData and eoprator[].
6699 Add elements friend function instead.
6700 * java/lang/natSystem.cc (arraycopy): Use elements function.
6701 * java/io/natFileDescriptor.cc (read, write): Likewise.
6702 * include/java-lang.h (Object): Remove unused make method.
6703 (System::setProperty(char*,char*)): Turn into friend function.
6704 (Class): Rename newObject by JvAllocObject.
6705 * prims.cc: Update to use JvAllocObject, and elements.
6707 * java/lang/natDouble.cc: Fix double -> jdouble.
6709 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6711 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6713 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6715 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6716 * include/java-lang.h (Runtime): finalize_on_exit and
6717 runFinalizersOnExit now static.
6718 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6720 (finalize_on_exit): Now static.
6722 * boehm.cc (mark_obj): Get class using getClass() method on
6724 (_dispatchTable): Removed.
6726 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6728 * java/io/natFileDescriptor.cc (open_read): Only call open if
6730 (open_write): Likewise.
6732 * Makefile.in: Rebuilt.
6733 * Makefile.am ($(nat_files)): Depend on config.h.
6735 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6737 * prims.cc (ObjectClass): Now a macro; updated for new class name
6739 (StringClass): Likewise.
6740 (ClassClass): Likewise.
6742 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6744 * java/io/natFileDescriptor.cc (available): Do nothing unless
6745 HAVE_SELECT defined.
6746 * java/util/natDate.cc (setTime): Conditional on
6748 (toString): Conditional on HAVE_TIME.
6749 * aclocal.m4, configure: Rebuilt.
6750 * acinclude.m4: New file.
6751 * configure.in: Don't actually call AM_EXEEXT. Call
6752 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6753 --with-target-subdir option. Check for select and open
6756 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6758 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6759 (call_finalizer): Likewise.
6760 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6761 * prims.cc (newObject): Pass actual method pointer to
6762 JvPrivRegisterFinalizer.
6763 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6764 (JvPrivRegisterFinalizer): Changed interface.
6766 * Makefile.in: Rebuilt.
6767 * Makefile.am (MOSTLYCLEANFILES): New macro.
6768 (CLEANFILES): Removed javao_files.
6770 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
6772 * nogc.cc: New file.
6773 * Makefile.in: Rebuilt.
6774 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6775 (EXTRA_libjava_a_SOURCES): New macro.
6776 (libjava_a_SOURCES): Removed boehm.cc.
6777 (libjava_a_DEPENDENCIES): Added GCOBJS.
6778 (libjava_a_LIBADD): Likewise.
6779 * configure: Rebuilt.
6780 * configure.in: Added code for --enable-gc=TYPE.
6782 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
6784 * boehm.cc (mark_array): Don't further dereference pointer from
6787 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6788 * Makefile.in: Rebuilt.
6789 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6790 one for boehm-gc build directory.
6792 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
6794 * include/java-lang.h (finalize_on_exit): New instance variable in
6795 java::lang::Runtime.
6796 (runFinalizersOnExit): New method.
6797 * java/lang/Runtime.java (finalize_on_exit): New instance
6799 (runAllFinalizers_): New private method.
6800 (runFinalizersOnExit): New method.
6801 * boehm.cc (JvPrivRunFinalizers): New function.
6802 (JvPrivRunAllFinalizers): Likewise.
6803 (JvPrivRunGC): Likewise.
6804 * java/lang/natRuntime.cc: Include "jvm.h".
6805 (gc): Call JvPrivRunGC.
6806 (runFinalization): Call JvPrivRunFinalizers.
6807 (runFinalizersOnExit): New method.
6808 (exit_): Call JvPrivRunAllFinalizers if required.
6809 * include/jvm.h: Declare JvPrivRunFinalizers,
6810 JvPrivRunAllFinalizers, JvPrivRunGC.
6812 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
6814 * boehm.cc (JvPrivRegisterFinalizer): New function.
6815 (call_finalizer): Likewise.
6816 * include/jvm.h: Declare JvPrivRegisterFinalizer.
6817 * prims.cc (finalize_name): New global.
6818 (newObject): Just call other newObject.
6819 (newObject): Register finalizer if it exists.
6821 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
6823 * prims.cc (gc_malloc): Removed.
6824 (makeUtf8Const): Use JvPrivAllocBytes.
6825 (lookupArray): Likewise.
6826 (newPrimArray): Likewise.
6827 (JvNewObjectArray): Use JvPrivAllocArray.
6828 (newObject): Use JvPrivAllocObj.
6829 (newObject): Likewise.
6830 Changed Method -> JvMethod everywhere.
6831 Changed Field -> JvField everywhere.
6832 * include/java-lang.h (Object): Changed type of `fields' to
6834 (jmethodID, jfieldID): New typedefs.
6835 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6837 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6839 (METHOD_NATIVECODE): Moved from java-lang.h.
6840 (class JvField): New class.
6841 (JvGetFirstInstanceField): New function.
6842 (JvFieldIsRef): Likewise.
6843 (JvGetObjectField): Likewise.
6844 (JvNumInstanceFields): Likewise.
6846 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6848 * boehm.cc: New file.
6849 * Makefile.in: Rebuilt.
6850 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6851 (INCLUDES): Added -I options to find boehm-gc files.
6853 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
6855 * configure: Rebuilt.
6856 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6858 * Makefile.in: Rebuilt.
6859 * Makefile.am (nat_files): New macro.
6860 (libjava_a_DEPENDENCIES): Use it.
6861 (libjava_a_LIBADD): Likewise.
6862 ($(nat_files)): New static pattern rule.
6863 (class_files): Run separate find to find .class files.
6864 (javao_files): Compute based on class_files.
6865 (BUILT_SOURCES): New macro.
6867 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6869 * Makefile.am (java_files): New macro.
6870 (class_files): Likewise.
6871 (javao_files): Likewise.
6872 (libjava_a_DEPENDENCIES): Include $(javao_files).
6873 (libjava_a_LIBADD): Likewise.
6874 (classes.stamp): Depend on $(java_files); only recompile changed
6877 (CLEANFILES): Don't run find; use macros. Don't mention
6879 (.class.o): New target.
6880 (compiled.stamp): Removed.
6882 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
6884 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6885 LineNumberReader}>java: Newly-implemented standard classes.
6887 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
6889 * Makefile.in: Rebuilt.
6890 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
6892 * Makefile.in: Rebuilt.
6893 * Makefile.am (hack): New macro.
6894 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
6896 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
6898 * include/config.h.in: New file.
6899 * include/config.h: Removed.
6900 * acconfig.h: New file.
6901 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
6902 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
6903 libjava_a_LIBADD): New macros.
6904 (INCLUDES): New macro.
6907 (SUFFIXES): Removed.
6909 (libjava.a): Removed.
6911 * configure: Rebuilt.
6912 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
6913 Look for headers and functions we require. Create
6916 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
6918 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
6919 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
6920 soft_lookupinterfacemethod): New functions.
6921 (PrimClass): Actually initialize the primitive classes.
6922 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
6924 * include/java-util.h: Removed java::util definition.
6925 * include/cni.h: Moved java::util here and added Properties.
6926 Added more function prototypes.
6927 * include/java-lang.h: Added mroe methods and friend declarations.
6928 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
6929 * include/jvm.h (strLengthUtf8): Add declaration.
6931 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
6933 * java/lang/{Byte,Short,Void}.java: New classes.
6934 * java/lang/Character.java (isJavaIdentifierStart,
6935 JavaIdentifierPart): New static methods.
6936 * java/lang/Number.java (byteValue, shortValue): New methods.
6938 * java/lang/String.java (intern, hashCode): Make native.
6939 * java/lang/natString.cc: New file. Handle the string pool.
6940 * Makefile.am: Build natString.o. Use CXXFLAGS.
6942 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
6943 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
6944 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
6945 * java/lang/System.java (setProperty): New private method.
6946 (initProperties): Take argument, and make native.
6947 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
6948 (currentTimeMillis): Make more robust.
6950 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
6951 * java/io/UnsupportedEncodingException.java: New exception class.
6953 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
6954 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
6956 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
6958 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
6959 * prims.cc: Added bunch of stuff.
6960 * include/cni.h: Added various definitions.
6961 * include/java-lang.h: Added Method, various friends, some macros.
6963 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
6964 * java/lang/System.java (arraycopy): Make native.
6966 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
6968 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
6969 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
6970 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
6971 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
6973 * java/lang/Runtime.java: Declare methods as native instead of
6975 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
6976 * java/lang/System.java: Comment out some stuff, for now.
6977 * java/lang/Thread.java: Re-write. Use native methods.
6978 * java/lang/NativeLang.java: Remove most of it.
6980 * java/util/natDate.cc: Native (C++) methods for Date.
6981 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
6982 * java/util/Date.java: Complete re-write.
6984 * java/io/io-defs.h: New header file.
6985 * java/io/FileDescriptor.java: Add a bunch of private methods,
6986 mostly moved from NativeIO.java and natNativeIO.cc.
6987 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
6988 * java/io/File.java: Use new code.
6989 * java/io/{FileInputStream.java.FileOutputStream.java,
6990 RandomAccessFile.java}: Use new private FileDescriptor methods.
6991 * java/io/NativeIO.java: Removed, no longer used.
6993 * java/io/StreamTokenizer.java (numericChars): Make char array.
6995 * include/*.h: Various header files used by the C++ native code.
6997 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
6998 New autoconf+automake-based setup.
6999 * prims.cc: New file for Java "primitives".