1 2000-01-05 Tom Tromey <tromey@cygnus.com>
3 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
4 jboolean and select correct ffi type on that basis.
5 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6 Constructor call always has `void' return type.
8 2000-01-04 Tom Tromey <tromey@cygnus.com>
10 * java/lang/Class.h (getSignature): Updated.
11 * java/lang/Class.java (getSignature): Updated.
12 * java/lang/natClass.cc (getSignature): Added `is_constructor'
14 (getConstructor): Ensure constructor is public.
15 (_getConstructors): Check for public-ness of constructor when
16 `declared' is false, not when it is true.
18 2000-01-04 Warren Levy <warrenl@cygnus.com>
20 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
22 (receive): Set the sender's address in the DatagramPacket.
24 2000-01-04 Tom Tromey <tromey@cygnus.com>
26 * java/lang/reflect/natConstructor.cc (newInstance): Pass
27 declaring class as return_type argument to
28 _Jv_CallNonvirtualMethodA.
29 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
30 constructor case, create object and use it as `this' argument.
31 * java/lang/Class.h (_getConstructors): Declare.
32 (_getFields): Declare.
33 * java/lang/Class.java (getConstructors): Wrote.
34 (_getConstructors): New native method.
35 (getDeclaredConstructors): Wrote.
36 (_getFields): Declare new native method.
37 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
39 (getMethod): Work correctly when class is primitive.
40 (getDeclaredMethods): Likewise. Compute offset using `method',
42 (getDeclaredMethod): Likewise.
43 (getConstructor): Wrote.
44 (ConstructorClass): New define.
45 (getDeclaredConstructor): Wrote.
46 (_getConstructors): New method.
47 (_getFields): New method.
50 * Makefile.in: Rebuilt.
51 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
53 * prims.cc: Remove `#pragma implementation'.
54 * gcj/array.h: Remove `#pragma interface'.
56 * prims.cc (_Jv_equaln): New function.
57 * java/lang/Class.java (getSignature): Declare.
58 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
59 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
61 (getSignature): New method.
62 (getDeclaredMethod): Wrote.
64 Include StringBuffer.h.
65 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
66 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
68 (getSignature): Declare.
69 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
70 (_Jv_equaln): Declare.
71 (_Jv_CallNonvirtualMethodA): Declare.
72 * Makefile.in: Rebuilt.
73 * Makefile.am (nat_source_files): Added natConstructor.cc.
74 (java/lang/reflect/Constructor.h): New target.
75 * java/lang/reflect/natConstructor.cc: New file.
76 * java/lang/reflect/Constructor.java (newInstance): Now native.
77 (declaringClass): Renamed from decl_class.
78 (offset): Renamed from index.
79 (getType): New native method.
80 (getModifiers): Now native.
81 (getParameterTypes): Call getType if required.
82 (hashCode): Include hash code from declaring class.
84 (toString): Call getType if required.
85 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
86 * java/lang/reflect/natMethod.cc (hack_call): New method.
87 Removed `#if 0' around FFI code.
88 Include <gnu/gcj/RawData.h>.
89 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
90 IllegalArgumentException when argument object and class disagree.
91 (_Jv_GetTypesFromSignature): New function.
93 (ObjectClass): New define.
94 (_Jv_CallNonvirtualMethodA): New function.
95 * java/lang/reflect/Method.java (hack_trampoline): New method.
96 (hack_call): New native method.
98 1999-12-21 Per Bothner <per@bothner.com>
100 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
101 offset in new Method.
103 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
105 * java/lang/natObject.cc (notify): Throw message with
106 IllegalMonitorStateException.
109 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
110 (isInterrupted_): New function, which does clear interrupt_flag.
111 (interrupt): Use `isInterrupted_'.
112 * java/lang/natThread.cc (interrupt): Add comment.
113 (join): Set `prev' in joiner loop.
114 Change various calls to `isInterrupted' to use `isInterrupted_'.
115 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
116 on linux. Set result to 0 on an interrupt. Test interrupted status
117 of java Thread object directly.
118 FLAG_INTERRUPTED: removed.
119 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
120 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
121 (_Jv_InitThreads): Don't block SIGINT.
122 (_Jv_ThreadWait): Don't configure SIGINT handler.
124 1999-12-21 Tom Tromey <tromey@cygnus.com>
126 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
128 1999-12-20 Tom Tromey <tromey@cygnus.com>
130 * java/lang/reflect/Modifier.java (STRICT): New constant.
131 (isStrict): New method.
132 (toString): Added `strict'.
134 1999-12-23 Anthony Green <green@cygnus.com>
136 * configure: Rebuilt.
137 * configure.in (LIBDATASTARTSPEC): Force data_start in with
140 1999-12-19 Anthony Green <green@cygnus.com>
142 * libgcjdata.c: New file.
143 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
144 * configure: Rebuilt.
145 * configure.in (LIBDATASTARTSPEC): Force data with a known name
147 * Makefile.in: Rebuilt.
148 * Makefile.am: Build libgcjdata.a.
150 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
151 * configure: Rebuilt.
152 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
155 1999-12-17 Tom Tromey <tromey@cygnus.com>
157 * java/lang/reflect/Method.java (toString): Call getType if
158 required. Partial fix for PR libgcj/111. From Per Bothner.
160 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
162 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
164 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
165 null String constructor parameter.
166 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
167 for exception messages.
168 BooleanClass: declare.
169 (setOption): Use BooleanClass instead of Class.forName() for
171 (bind): Cast 4th parameter of setsockopt to `char *' for
172 compatibility with older Solaris headers.
173 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
174 sprintf calls for exception messages.
175 BooleanClass, IntegerClass: declare.
176 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
179 1999-12-15 Tom Tromey <tromey@cygnus.com>
181 * java/lang/natSystem.cc (init_properties): Don't set user.name or
182 user.home if NO_GETUID defined. Only set user.dir if getcwd
185 * include/config.h.in: Rebuilt.
186 * acconfig.h (NO_GETUID): New define.
187 * configure.in: Rebuilt.
188 * configure.in: Define NO_GETUID in cross case. Check for getcwd
191 1999-12-08 Tom Tromey <tromey@cygnus.com>
193 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
194 where no recursive mutexes exist. Fixes PR libgcj/117.
196 1999-12-05 Anthony Green <green@cygnus.com>
198 * include/jvm.h: Declare many functions with
199 __attribute__((__malloc__)).
200 * gcj/javaprims.h: Ditto.
202 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
204 * THANKS: Giving credit where credit is due.
206 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
208 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
210 * java/lang/natString.cc (equalsIgnoreCase): return false if
211 anotherString is null.
212 * java/lang/Boolean.java (valueOf): return FALSE if argument is
215 1999-11-30 Tom Tromey <tromey@cygnus.com>
217 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
218 mutex to initialize. Initialize `count' if required.
221 1999-11-27 Per Bothner <per@bothner.com>
223 * exception.cc: Remove prototype declarations for malloc and free.
224 These clash with recent versions of glibc, which specifies `throws ()'
225 when __cplusplus is defined. Instead, #include <stdlib.h>.
227 1999-11-24 Tom Tromey <tromey@cygnus.com>
229 * prims.cc (_Jv_NewObjectArray): Use
230 _Jv_GetArrayElementFromElementType.
231 (_Jv_NewPrimArray): Likewise.
232 * java/lang/natObject.cc (clone): Use
233 _Jv_GetArrayElementFromElementType instead of sizeof.
234 * java/lang/natSystem.cc (arraycopy): Use
235 _Jv_GetArrayElementFromElementType.
236 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
239 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
241 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
242 Exception messages. PR java.net/57.
243 (bind): set SO_REUSEADDR before bind.
244 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
245 overruns. PR java.net/57.
247 1999-11-19 Tom Tromey <tromey@cygnus.com>
249 * Makefile.am (DIVIDESPEC): Removed.
250 (EXCEPTIONSPEC): Removed.
252 1999-11-19 Andrew Haley <aph@cygnus.com>
254 * Makefile.am (JCFLAGS): Add -L$(here)
256 * Makefile.in: Rebuild.
258 1999-11-18 Tom Tromey <tromey@cygnus.com>
260 * java/lang/natDouble.cc: Include <config.h>.
262 * include/config.h.in: Rebuilt.
263 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
264 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
266 * configure: Rebuilt.
267 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
268 requested by configure.host. Don't put `-D' option into
269 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
271 * configure: Rebuilt.
272 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
275 1999-11-18 Andrew Haley <aph@cygnus.com>
277 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
278 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
280 * Makefile.in: Rebuild
281 * acconfig.h: remove SJLJ_EXCEPTIONS
282 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
283 Do not AC_DEFINE SJLJ_EXCEPTIONS.
284 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
285 * gcj/Makefile.in, include/Makefile.in: rebuild.
286 * include/config.h.in: remove SJLJ_EXCEPTIONS.
288 1999-11-18 Andrew Haley <aph@cygnus.com>
290 * gij.cc (main): Rename label to prevent conflict.
292 * exception.cc (_Jv_type_matcher): Don't check the table if we're
293 using setjmp/longjmp exceptions: there isn't one.
295 1999-11-17 Andrew Haley <aph@cygnus.com>
297 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
298 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
299 (__sjthrow): Add declaration.
300 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
304 * Makefile.in: Rebuild
305 * acconfig.h: Add SJLJ_EXCEPTIONS
306 * configure.in: Add SJLJ_EXCEPTIONS
307 * configure: Rebuild.
308 * gcj/Makefile.in: Rebuild.
309 * gcj/cni.h: Add support for sjlj-exceptions.
310 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
311 * include/Makefile.in: Rebuild.
312 * include/default-signal.h: Add support for sjlj-exceptions.
314 1999-11-18 Tom Tromey <tromey@cygnus.com>
316 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
318 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
320 (method_cache): Made larger.
322 1999-11-11 Tom Tromey <tromey@cygnus.com>
324 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
325 initializing mutex. Initialize `count' when required.
327 1999-11-07 Anthony Green <green@trip.cygnus.com>
329 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
332 1999-11-05 Tom Tromey <tromey@cygnus.com>
334 * java/lang/natThread.cc (destroy): Removed incorrect comment.
336 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
338 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
339 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
342 1999-11-05 Tom Tromey <tromey@cygnus.com>
344 * java/lang/natThread.cc (stop): Removed argument name.
346 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
347 `private'; now has default access.
348 * Makefile.in: Rebuilt.
349 * Makefile.am (java/lang/ThreadGroup.h): Removed.
351 1999-11-04 Tom Tromey <tromey@cygnus.com>
353 * java/lang/natClass.cc (method_cache_count): Removed.
354 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
355 (_Jv_AddMethodToCache): Don't loop.
357 * configure.in: Removed `qt' threads case.
358 * include/quick-threads.h: Removed.
359 * quick-threads.cc: Removed.
361 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
362 (_Jv_ThreadDestroy): Likewise.
363 * include/no-threads.h (_Jv_ThreadCancel): Removed.
364 (_Jv_ThreadDestroy): Likewise.
365 * include/posix-threads.h (struct _Jv_Thread_t): Removed
367 (_Jv_ThreadCancel): Removed decl.
368 (_Jv_ThreadDestroy): Removed.
369 * posix-threads.cc (_Jv_ThreadCancel): Removed.
370 (throw_cleanup): Removed.
371 (really_start): Don't push or pop cleanup.
372 (_Jv_ThreadInitData): Don't initialize `exception' field.
373 * java/lang/Thread.java (stop): Officially unimplemented.
374 * java/lang/natThread.cc (stop): Officially unimplemented.
376 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
378 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
381 1999-11-02 Tom Tromey <tromey@cygnus.com>
383 * boehm.cc: Don't include boehm-config.h.
385 1999-11-01 Tom Tromey <tromey@cygnus.com>
387 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
388 (sum_blocks): Removed.
389 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
391 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
393 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
395 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
396 * java/io/InputStreamReader (InputStreamReader): ditto.
398 1999-10-22 Tom Tromey <tromey@cygnus.com>
400 * Makefile.in: Rebuilt.
401 * Makefile.am (java/lang/ClassLoader.h): New target.
402 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
405 * include/java-props.h (_Jv_Compiler_Properties): Changed
407 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
408 * include/jvm.h (_Jv_GCSetInitialHeapSize,
409 _Jv_GCSetMaximumHeapSize): Declare.
410 (JvRunMain, _Jv_RunMain): Declare.
411 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
412 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
413 (_Jv_GCSetMaximumHeapSize): Likewise.
414 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
415 (_Jv_GCSetMaximumHeapSize): Likewise.
416 * prims.cc (parse_heap_size): New function.
417 (_Jv_SetInitialHeapSize): Likewise.
418 (_Jv_SetMaximumHeapSize): Likewise.
419 (_Jv_Compiler_Properties): New global.
420 * gij.cc (help): New function.
422 (heap_size): Likewise.
423 (heap_max_size): Likewise.
424 (main): Parse arguments. Set _Jv_Compiler_Properties.
425 Include <config.h>, <java-props.h>.
426 (_Jv_Compiler_Properties): Removed.
428 1999-10-18 Tom Tromey <tromey@cygnus.com>
430 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
432 (redirect): New static field.
433 * java/lang/ClassLoader.java (getSystemClassLoader): Now
435 (getVMClassLoader0): Removed.
436 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
438 (getSystemClassLoader): Implemented.
440 1999-10-16 Anthony Green <green@cygnus.com>
442 * java/lang/ClassLoader.java (getSystemResource): Use
443 getSystemClassLoader instead of ClassLoader.system.
444 (getSystemResourceAsStream): Ditto.
446 * java/lang/natClassLoader.cc (redirect): Make static and
447 remove #ifdef INTERPRETER so it is always defined.
448 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
449 returns a VMClassLoader.
451 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
452 PropertyResourceBundle if a properties file is found before a
453 ResourceBundle class.
455 1999-10-15 Tom Tromey <tromey@cygnus.com>
457 * gij.cc (main): Formatting fixes.
458 (_Jv_Compiler_Properties): Define.
459 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
461 (init_properties): Set properites from _Jv_Compiler_Properties.
462 * include/java-props.h (_Jv_Compiler_Properties,
463 _Jv_Environment_Properties): Declare.
465 * include/java-props.h: Added copyright.
467 1999-10-13 Anthony Green <green@cygnus.com>
469 * libtool-version: Catch up by incrementing current.
471 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
472 * configure, include/config.h.in: Rebuilt.
473 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
474 * configure.in: Added --disable-getenv-properties and new define
475 `DISABLE_GETENV_PROPERTIES'.
477 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
478 (next_property_key): New function.
479 (next_property_value): New function.
480 (process_gcj_properties): New function.
481 (JvRunMain): Call process_gcj_properties.
484 * java/lang/natSystem.cc (init_properties): Set properties defined
487 * include/java-props.h: New file.
489 * java/lang/natSystem.cc (init_properties): Add new properties to
490 conform with Java Product Versioning Specification.
492 1999-10-12 Tom Tromey <tromey@cygnus.com>
494 * configure: Rebuilt.
495 * configure.in: Fixed test for --disable-java-net.
497 1999-10-06 Tom Tromey <tromey@cygnus.com>
499 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
500 when building Canadian cross.
501 (NATIVE): Don't define when cross-compiling.
503 1999-10-04 Tom Tromey <tromey@cygnus.com>
505 * java/net/natPlainSocketImpl.cc: Don't include headers if
506 java.net is disabled.
508 * Makefile.in: Rebuilt.
509 * Makefile.am (ZINCS): Removed. This is defined in configure.in
510 when needed, and must be left empty when not needed.
512 1999-10-01 Anthony Green <green@cygnus.com>
514 * THANKS: Refreshed from htdocs version.
516 1999-10-01 Steve Chamberlain <sac@pobox.com>
518 * Makefile.in: Rebuilt.
519 * Makefile.am (ZINCS): Define
521 * configure: Rebuilt.
522 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
524 * java/lang/ieeefp.h: Add definitions for picoJava.
526 1999-10-01 Tom Tromey <tromey@cygnus.com>
528 * configure: Rebuilt.
529 * configure.in: Set classpath when invoking gcj. Use changequote
530 around sed invocation.
532 * java/net/natPlainSocketImpl.cc: Stub native functions if
533 DISABLE_JAVA_NET is defined.
534 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
535 typo in exception string.
536 (getTimeToLive): Likewise.
537 Stub native functions if DISABLE_JAVA_NET is defined.
538 * java/net/natInetAddress.cc: Stub native functions if
539 DISABLE_JAVA_NET is defined.
540 * configure.host: Disable java.net for mips-tx39.
541 * configure, include/config.h.in: Rebuilt.
542 * acconfig.h (DISABLE_JAVA_NET): Undefine.
543 * configure.in: Added --disable-java-net and new define
546 1999-09-30 Tom Tromey <tromey@cygnus.com>
548 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
550 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
554 1999-09-28 Tom Tromey <tromey@cygnus.com>
556 * configure: Rebuilt.
557 * configure.in (PROCESS): In POSIX case, only set if not already
559 * configure.host (PROCESS): Set in mips-tx39 case.
561 * aclocal.m4, configure: Rebuilt.
562 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
563 appropriate AC_PROG_ symbol.
565 1999-09-24 Tom Tromey <tromey@cygnus.com>
567 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
569 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
571 Fix for PR java.util/47:
572 * configure, include/config.h: Rebuilt.
573 * configure.in: Don't look for ctime or ctime_r.
574 * Makefile.in: Rebuilt.
575 * Makefile.am (nat_source_files): Don't mention natDate.cc.
576 * java/util/natDate.cc: Removed.
577 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
579 (getAvailableIDs): Rewrote.
580 (getTimeZone): Rewrote.
581 * java/util/Date.java (toGMTString): New method.
582 (toLocaleString): New method.
585 1999-09-23 Tom Tromey <tromey@cygnus.com>
587 * configure: Rebuilt.
588 * configure.in: Print message when checking to see if gcj can
589 handle -fuse-divide-subroutine.
591 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
593 * java/lang/FirstThread.java (run0): Renamed to `run'.
596 * prims.cc (main_init): New function.
597 (JvRunMain): Call it.
598 (_Jv_RunMain): Likewise.
600 (main_init): Ignore SIGPIPE. Fixes PR 51.
602 1999-09-22 Tom Tromey <tromey@cygnus.com>
604 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
606 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
608 * java/text/MessageFormat.java (MessageFormat(String)): Set the
610 * java/text/NumberFormat.java: Check that object is a Number. If
611 not, throw IllegialArgumentException.
613 1999-09-21 Tom Tromey <tromey@cygnus.com>
615 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
616 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
618 * include/posix-threads.h (_Jv_MutexDestroy): Use
620 (_Jv_MutexLock): Likewise.
621 (_Jv_MutexUnlock): Likewise.
623 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
624 previous patch; it too was incorrect.
625 * java/io/PrintStream.java (PrintStream): Likewise.
627 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
628 refer to `this' before calling superclass constructor.
629 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
630 before calling superclass constructor.
632 1999-09-20 Tom Tromey <tromey@cygnus.com>
634 * configure: Rebuilt.
635 * configure.in: Send output of `-fuse-divide-subroutine' test
636 compilation to /dev/null.
638 1999-09-14 Tom Tromey <tromey@cygnus.com>
640 * include/java-insns.h: Turned constants into an enum. Added
641 multiple-inclusion protection.
643 1999-09-10 Tom Tromey <tromey@cygnus.com>
645 * configure: Rebuilt.
646 * configure.in: Build include/Makefile.
647 * Makefile.in: Rebuilt.
648 * Makefile.am (SUBDIRS): Added gcj and include.
649 (install-data-local): New target.
650 (extra_headers): New macro.
651 * include/Makefile.in: New file.
652 * include/Makefile.am: New file.
654 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
655 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
657 * boehm.cc: Don't include java-threads.h or gcj/field.h.
658 * resolve.cc: Include config.h.
659 * defineclass.cc: Include config.h.
660 * include/java-interp.h: Don't include config.h.
661 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
664 * gcj/javaprims.h: Regenerated namespace decls.
665 * classes.pl (scan): Don't put `;' after closing brace.
667 * Makefile.in: Rebuilt.
668 * Makefile.am (INCLUDES): Added -I for top_srcdir.
669 * configure.in: Create gcj/Makefile.
670 * gcj/Makefile.in: New file.
671 * gcj/Makefile.am: New file.
672 * java/lang/Object.h: Don't include any other headers.
673 * gcj/array.h: Renamed from include/java-array.h.
674 * gcj/field.h: Renamed from include/java-field.h.
675 * gcj/method.h: Renamed from include/java-method.h.
676 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
677 Updated all files to reflect new include structure.
679 1999-09-09 Tom Tromey <tromey@cygnus.com>
681 * configure: Rebuilt.
682 * configure.in: Fixed typo; variable is THREADSPEC and not
685 1999-09-08 Tom Tromey <tromey@cygnus.com>
687 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
688 previous change and implemented a correct test in the __m_count
691 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
694 1999-09-07 Tom Tromey <tromey@cygnus.com>
696 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
697 code and don't set errno.
699 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
700 not `r'. Changed `done_sleeping' to a `bool'.
702 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
704 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
705 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
706 by another thread, rather than by the GC.
707 (_Jv_CondWait): Prevent premature thread wakeup by GC.
708 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
709 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
712 1999-09-03 Tom Tromey <tromey@cygnus.com>
714 * configure: Rebuilt.
715 * configure.in: Check for fstat function.
716 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
719 1999-09-02 Tom Tromey <tromey@cygnus.com>
721 * include/java-array.h (jobjectArrayjchar): Removed unused
724 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
725 _Jv_PrepareCompiledClass while holding class mutex.
727 1999-09-01 Tom Tromey <tromey@cygnus.com>
729 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
730 (_Jv_PthreadGetMutex): Use it.
731 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
732 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
733 (_Jv_MutexLock): Likewise.
734 (_Jv_MutexUnlock): Likewise.
735 * include/config.h.in: Rebuilt.
736 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
737 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
738 * configure: Rebuilt.
739 * libgcj.spec.in: Don't mention INTERPSPEC.
740 * configure.in (INTERPSPEC): Removed.
741 Only run pthreads-related checks when using POSIX threads. Check
742 for m_count and __m_count in mutex structure.
744 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
746 * java/lang/natClass.cc: Fixed notification of threads
747 when class initialization is complete.
749 1999-09-01 Tom Tromey <tromey@cygnus.com>
751 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
752 * resolve.cc: Removed constants defined by
753 java.lang.reflect.Modifier.
754 Include <java/lang/reflect/Modifier.h>.
755 (_Jv_ResolvePoolEntry): Use values from Modifier.
756 (_Jv_DetermineVTableIndex): Likewise.
757 (_Jv_PrepareClass): Likewise.
759 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
760 java.lang.reflect.Modifier.
761 Include <java/lang/reflect/Modifier.h>.
762 (checkExtends): Use values from Modifier.
763 (checkImplements): Likewise.
764 (handleField): Likewise.
765 (handleConstantValueAttribute): Likewise.
766 (handleFieldsEnd): Likewise.
767 (handleMethod ): Likewise.
768 (handleMethodsEnd): Likewise.
769 (handleClassBegin): Likewise.
770 * interpret.cc: Removed constants defined by
771 java.lang.reflect.Modifier.
772 (continue1): Use values from Modifier.
773 * java/lang/natClassLoader.cc: Removed constants defined by
774 java.lang.reflect.Modifier.
776 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
777 JV_STATE_NOTHING, not `0'.
778 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
780 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
781 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
783 (_Jv_PthreadGetMutex): New function.
784 (_Jv_PthreadCheckMonitor): Use it.
785 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
786 (_Jv_MutexLock): Update `count'.
787 (_Jv_MutexUnlock): Likewise.
788 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
791 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
793 * Makefile.am (.java.lo): Add rule.
795 * Makefile.in: Rebuilt.
797 1999-09-01 Tom Tromey <tromey@cygnus.com>
799 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
800 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
802 (_Jv_CondNotify): Use it.
803 (_Jv_CondNotifyAll): Likewise.
805 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
807 1999-08-31 Tom Tromey <tromey@cygnus.com>
809 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
812 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
814 * posix-threads.cc: Include <errno.h>.
816 1999-08-23 Tom Tromey <tromey@cygnus.com>
818 * boehm.cc: Undefine TRUE and FALSE.
820 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
822 1999-08-21 Tom Tromey <tromey@cygnus.com>
824 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
827 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
829 * configure.in: Check for in_addr_t in netinet/in.h too. Check
831 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
832 (HAVE_STRUCT_IP_MREQ): Added.
833 * configure, include/config.h.in: Rebuilt.
834 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
836 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
837 Disable if ip_mreq is not available.
839 * configure.in: Check types ssize_t and in_addr_t.
840 * acconfig.h: Undefine them.
841 * configure, include/config.h.in: Rebuilt.
843 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
844 function that detects the signature of getpwuid_r.
845 (init_properties): Use it.
846 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
849 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
851 * interpret.cc (continue1): Implement explicit dispatch table.
852 insn_target: Explicit interpreter switch table.
853 SAVE_PC: New macro, moves pc saving code into instructions that
855 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
856 PC_REGISTER_ASM: New macro.
857 INLINE_SWITCH: New macro. Constrols dispatching strategy.
858 opcode: Remove local variable.
859 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
860 (POKEI): Use _Jv_word.
861 (iinc): Use _Jv_word.
862 (dupx): Change reference argument (sp) to pointer.
865 * interpret.cc: Remove instruction timing instrumentation.
867 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
868 comment. Don't use _Jv_ClassNameSamePackage.
870 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
871 URLPathEntry, CacheEntry}: Removed.
873 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
875 (.java.lo): Rule removed.
877 * Makefile.in: Rebuilt.
879 1999-08-19 Tom Tromey <tromey@cygnus.com>
881 * java/lang/natThread.cc (class locker): New class.
882 (join): Use a locker around _Jv_CondWait.
885 1999-08-18 Tom Tromey <tromey@cygnus.com>
887 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
888 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
890 1999-08-18 Tom Tromey <tromey@cygnus.com>
892 * include/javaprims.h ("Java"): Regenerated namespace decls.
894 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
896 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
897 from _Jv_InternClassStrings.
899 * prims.cc (_Jv_RunMain): New function.
900 (JvRunMain): Remove gij-support.
902 * gij.cc (main): Use _Jv_RunMain.
904 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
906 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
907 argument in temp variable.
908 (continue1): For all op_x2y insns, use temp variable for
909 intermediate value. Also remove some comments.
911 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
912 (forName): Don't call _Jv_InitClass.
914 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
916 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
918 * java/util/jar/JarInputStream.java: New file.
920 * java/util/jar/JarEntry.java: New file.
922 * java/util/jar/JarFile.java: New file.
924 * java/net/URLClassLoader.java: New file.
926 * java/net/JarURLConnection.java: New file.
928 * gnu/gcj/protocol/jar/Handler.java: New file.
930 * gnu/gcj/protocol/jar/Connection.java: New file.
932 * java/security/SecureClassLoader.java: New file.
934 * java/lang/ClassLoader.java (parent): New variable.
935 (ClassLoader (ClassLoader)): new constructor.
936 (findClass): New method.
937 (loadClass): Add default 1.2 implementation.
938 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
939 (readfully): Removed.
941 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
942 (findSystemClass): New method.
943 (VMClassLoader): Constructor rewritten.
945 All other methods removed.
947 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
948 to gnu::gcj::runtime::VMClassLoader.
949 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
951 (VMClassLoader::findSystemClass): renamed from findBootClass.
953 * Makefile.am: Add new files.
954 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
956 * Makefile.in: Rebuilt.
958 1999-08-17 Tom Tromey <tromey@cygnus.com>
960 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
962 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
965 1999-08-16 Tom Tromey <tromey@cygnus.com>
967 * configure: Rebuilt.
968 * configure.in: Set DIVIDESPEC to empty string if compiler does
969 not support -fuse-divide-subroutine.
971 1999-08-14 Per Bothner <per@bothner.com>
973 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
974 * java/lang/natClass.cc (initializeClass): Likewise.
975 * java/lang/ClassLoader.java (resolveClass0): New static method.
976 (resolveClass): Call resolveClass0.
977 (findSystemClass): No longer static.
979 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
981 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
983 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
985 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
988 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
991 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
994 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
997 * configure: Rebuilt.
998 * configure.in: Properly align --help output, fix capitalization
1000 * acinclude.m4: Likewise.
1002 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1004 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1006 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1007 (_Jv_callInterpretedMethod): Unused. Remove.
1008 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1010 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1011 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1012 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1013 * interpret.cc: use _Jv_word.
1014 * defineclass.cc: use_Jv_word.
1015 * resolve.cc: Use _Jv_word.
1016 (_Jv_ResolvePoolEntry): Return _Jv_word.
1017 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1018 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1020 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1023 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1025 * configure: Rebuilt.
1026 * configure.in (sched_yield): Try librt first, then libposix4.
1027 Add -lrt, -lposix4 to THREADSPEC.
1029 1999-08-08 Anthony Green <green@cygnus.com>
1031 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1033 1999-08-08 Anthony Green <green@cygnus.com>
1035 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1038 1999-08-08 Anthony Green <green@cygnus.com>
1042 * include/config.h.in: Rebuilt.
1043 * acconfig.h: Add INTERPRETER.
1045 * Makefile.in: Rebuilt.
1046 * Makefile.am (libffi_files): Identify the libffi object files for
1047 inclusion in libgcj.
1048 (LIBFFIINCS): Define.
1050 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1051 Dummy definition for configurations without an interpreter.
1053 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1054 java::lang::Boolean constructor.
1056 * include/java-interp.h: Always include java-cpool.h.
1058 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1059 when INTERPRETER not defined.
1061 * java/lang/Class.h (finalize): Define.
1063 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1064 IOException from File.getCanonicalPath.
1065 (getStream): Likewise.
1068 * THANKS: More thanks.
1070 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1072 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1074 (_Jv_PrepareClass): Allow non-abstract classes to
1075 have abstract subclasses.
1076 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1078 * interpret.cc (continue1/perform_invoke): Don't sign extend
1080 (continue1/lshl,lshr): Push long, not int.
1081 (continue1/ulshr): Use UINT64, not long long.
1082 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1084 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1085 * java/lang/FirstThread.java (run): Add top-level exception
1087 (run0): Renamed from run.
1089 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1091 * configure.in (--with-interpreter): Added.
1092 * include/config.h.in (INTERPRETER): Added.
1094 * java/lang/ClassLoader.java: File replaced.
1095 * java/lang/VMClassLoader.java: New file.
1096 * java/lang/natClassLoader.cc: New file.
1097 * gnu/gcj/runtime/MethodInvocation.java: New file.
1098 * gnu/gcj/util/path/SearchPath.java: New file.
1099 * gnu/gcj/util/path/PathEntry.java: New file.
1100 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1101 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1102 * gnu/gcj/util/path/URLPathEntry.java: New file.
1103 * gnu/gcj/util/path/CacheEntry.java: New file.
1104 * include/java-interp.h: New file.
1105 * include/java-cpool.h: New file.
1106 * include/java-insns.h: New file.
1107 * defineclass.cc: New file.
1108 * interpret.cc: New file.
1109 * resolve.cc: New file.
1111 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1112 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1113 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1115 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1116 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1118 (initializeClass): Use new JV_ prefixed names. Also, call
1119 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1121 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1122 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1123 JV_STATE_LINKED): New.
1124 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1125 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1126 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1127 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1128 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1129 _Jv_InterpMethodInvocation): New friends for interpreter.
1131 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1132 include/java-cpool.h and renamed with JV_ prefix.
1134 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1136 (_Jv_UnregisterClass): New decl.
1138 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1139 class loader argument.
1140 (_Jv_FindClass): Use class loader.
1142 * prims.cc (_Jv_makeUtf8Const): New function.
1143 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1144 (_Jv_NewPrimArray): Ditto.
1145 (_Jv_FindClassFromSignature): Ditto.
1146 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1147 * java/lang/reflect/natMethod.cc (getType): Ditto.
1149 * include/java-field.h (_Jv_Field::isRef): Make robust for
1150 non-resolved contexts.
1152 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1153 Also, don't mark class->next field.
1155 * java/lang/VirtualMachineError.java: Added FIXME note.
1157 * configure.in (INTERPSPEC): New spec.
1158 * libgcj.spec.in: Added INTERPSPEC.
1159 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1160 gnu/gcj/runtime/MethodInvocation.
1161 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1162 (ordinary_java_source_files): Added above mentioned java classes.
1164 * configure: Rebuilt.
1165 * Makefile.in: Rebuilt.
1167 1999-08-06 Tom Tromey <tromey@cygnus.com>
1169 * configure: Rebuilt.
1170 * configure.in: Look for sched_yield in -lrt.
1172 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1174 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1175 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1176 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1178 (toString): Print correctly when `country' is empty.
1180 1999-08-04 Per Bothner <per@bothner.com>
1182 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1184 1999-08-02 Tom Tromey <tromey@cygnus.com>
1186 * aclocal.m4, configure: Rebuilt for new libtool.
1188 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1190 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1191 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1192 * java/net/ServerSocket.java: Define ANY_IF.
1193 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1194 all network interfaces.
1195 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1196 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1198 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1200 * java/io/natFile.cc (performMkdir): Remove FIXME.
1201 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1203 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1205 * configure.in: Check for bstring.h.
1206 * configure, include/config.h.in: Rebuilt.
1207 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1208 * java/net/natPlainSocketImpl.cc: Likewise.
1210 1999-07-31 Tom Tromey <tromey@cygnus.com>
1215 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1217 * configure.in: Check for struct hostent_data and need for
1218 -D_REENTRANT for gethostbyname_r declaration.
1219 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1220 (lookup): Use hostent_data for fixed_buffer.
1221 * configure, include/config.h.in: Rebuilt.
1223 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1225 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1226 available. Don't cast memmove args to (void*).
1227 * configure.in: Do not abort if memmove is not available.
1229 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1231 * java/lang/natString.cc (substring): optimize where substring is
1233 * java/io/File.java (getName): don't return separator with file name.
1234 * java/io/natFile.cc (attr): fix overflow.
1236 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1238 * mauve-libgcj: Disable Object Serialization tests.
1240 1999-07-20 Warren Levy <warrenl@cygnus.com>
1242 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1243 Default to using PlainDatagramSocketImpl.
1244 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1246 1999-07-19 Tom Tromey <tromey@cygnus.com>
1248 * include/stamp-h.in: New file.
1250 1999-07-12 Tom Tromey <tromey@cygnus.com>
1252 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1255 1999-07-07 Andrew Haley <aph@cygnus.com>
1257 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1258 bytes to make it point after the instruction where the trap
1260 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1262 1999-07-07 Tom Tromey <tromey@cygnus.com>
1264 * mauve-libgcj: Explicitly enable formerly disabled java.text
1267 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1270 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1272 * java/net/URL.java (equals): Compare strings using String.equals.
1273 * java/net/URL.java (sameFile): Ditto.
1275 1999-07-02 Warren Levy <warrenl@cygnus.com>
1277 * configure: Rebuilt.
1278 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1279 * include/config.h.in: Rebuilt.
1280 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1281 (mcastGrp): Updated FIXME comments.
1282 (setOption): Fixed typo.
1283 (getOption):Implemented IP_MULTICAST_IF.
1285 1999-07-02 Warren Levy <warrenl@cygnus.com>
1287 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1288 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1289 (getTimeToLive): Implemented.
1290 (setOption): Implemented IP_MULTICAST_IF.
1292 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1294 * java/lang/String.java (toString): Check for this == null and throw
1295 NullPointerException.
1297 1999-07-01 Warren Levy <warrenl@cygnus.com>
1299 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1300 to count and revised comments to match.
1301 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1302 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1303 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1304 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1305 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1306 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1308 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1310 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1311 properly as count rather than outlength.
1312 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1313 output on overflow rather than buffer fill.
1314 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1315 if markPos is 0 and there is still room in the buffer.
1317 1999-07-01 Andrew Haley <aph@cygnus.com>
1319 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1320 This is a workaround for a bug in glibc's pthreads package which
1321 doesn't deliver any sigcontext information to a signal handler.
1323 1999-06-24 Tom Tromey <tromey@cygnus.com>
1325 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1326 * java/lang/fdlibm.h (HUGE): Conditionally define.
1328 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1330 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1331 * java/lang/e_log.c: Don't use __uint32_t.
1333 1999-05-27 Eric Christopher <echristo@cygnus.com>
1335 * configure: Rebuilt
1336 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1337 * acconfig.h: Rebuilt
1338 * include/config.h.in: Rebuilt
1340 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1341 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1342 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1343 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1344 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1345 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1346 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1347 and namespace collision with __uint32_t
1349 1999-06-23 Tom Tromey <tromey@cygnus.com>
1351 * java/util/zip/InflaterInputStream.java (read): Throw
1352 ZipException if inflater throws a DataFormatException.
1354 1999-06-23 Warren Levy <warrenl@cygnus.com>
1356 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1357 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1358 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1359 is not final per JDK.
1360 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1362 * java/util/zip/DataFormatException.java: Class extends Exception.
1363 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1364 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1365 * java/util/zip/ZipInputStream.java: ditto.
1366 (closeEntry): Changed method name to match JDK spec.
1368 1999-06-21 Tom Tromey <tromey@cygnus.com>
1370 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1373 * Makefile.in: Rebuilt.
1374 * Makefile.am (toolexeclibdir): Define as libdir when
1376 * configure: Rebuilt.
1377 * configure.in (USE_LIBDIR): New conditional.
1379 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1381 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1382 hostname in returned InetAddress objects.
1383 (getLocalHostname): Fix typo.
1384 * java/net/InetAddress.java (getByName): Set hostname on return
1386 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1389 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1391 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1392 interfaces if host==NULL.
1393 (accept): Throw message with InterruptedIOException.
1394 (getOption): Cache localAddress.
1395 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1396 'address' for DatagramSocket.
1397 (setTimeToLive): Fix compiler warnings.
1398 (getOption): Cache localAddress.
1399 * java/net/Socket.java (getLocalAddress): Don't need local
1400 InetAddress object. Add FIXME comment about calling checkConnect().
1401 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1402 connection queue to 50 as per JDK 1.2 docs.
1403 (ServerSocket(int,int)): Listen on all network interfaces by
1404 default, per JDK 1.2 docs.
1405 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1406 Add localAddress caching.
1408 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1410 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1412 (write(byte[],int,int)): ditto.
1414 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1416 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1418 1999-06-11 Warren Levy <warrenl@cygnus.com>
1420 * mauve-libgcj: Activated java.net Mauve tests.
1422 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1424 * java/net/natInetAddress.cc (aton): Fix typos.
1425 (lookup): Use a bigger buffer size for gethostbyname_r on all
1426 versions of glibc. Updated FIXME comment explaining this.
1427 Modified while loops to not set herr = ERANGE to work around glibc
1428 problems. Use user specified hostname in InetAddress result when
1429 available (consistent with JDK).
1431 1999-06-10 Warren Levy <warrenl@cygnus.com>
1433 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1434 Throw FileNotFoundException instead of IOException.
1436 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1438 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1439 in static field name.
1440 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1441 throughout rather than ParseException.
1443 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1445 * java/lang/Runtime.java (exec): Convert prog name and arguments
1447 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1448 environment array conversion. Preserve current environment if envp
1449 not passed. Preserve PATH unless explicitly specified.
1450 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1451 followed by EOF. Set a flag when a line is terminated by '\r' and
1452 ignore following '\n' if set.
1454 1999-06-02 Warren Levy <warrenl@cygnus.com>
1456 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1457 Ignore context if spec is an absolute URL. Fix braindead
1459 (hashCode): Use JDK 1.2 style algorithm.
1460 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1461 context URL properly.
1463 1999-05-30 Anthony Green <green@cygnus.com>
1465 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1466 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1468 1999-05-28 Warren Levy <warrenl@cygnus.com>
1470 * java/net/DatagramSocket.java (laddr): Removed.
1471 (DatagramSocket): Removed attempts to get or set laddr if null.
1472 (getLocalAddress): Reimplemented per spec.
1473 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1475 (joinGroup): Throw NullPointerException if any argument is null.
1476 (leaveGroup): ditto.
1477 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1478 * java/net/PlainSocketImpl.java (timeout): Added.
1479 (getInputStream): Added FIXME comment on how to support timeouts
1481 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1482 * java/net/Socket.java: Added FIXME comments to identify
1483 conflicting specs between the JCL and JDK 1.2 documents.
1484 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1485 if host is null. Get localport value resolved by kernel if bind
1487 (receive): Implemented support for timeouts in UDP.
1488 (setOption): Implemented based on natPlainSocketImpl version.
1490 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1491 resolved by kernel if bind lport is 0.
1492 (connect): Get localport value resolved by kernel if bind wasn't
1493 done to set localport.
1494 (accept): Implemented support for timeouts for ServerSocket.
1495 (setOption): Save value for SO_TIMEOUT.
1496 (getOption): Return timeout for SO_TIMEOUT.
1498 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1500 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1501 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1502 (setOption): Made abstract.
1503 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1504 to avoid cpp conflicts in native code.
1505 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1506 cpp conflicts in native code.
1507 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1508 * java/net/Socket.java (getLocalAddress): Implemented.
1509 (setTcpNoDelay): Implemented.
1510 (getTcpNoDelay): Implemented.
1511 (setSoLinger): Implemented.
1512 (getSoLinger): Implemented.
1513 (getSoTimeout): Verify class type.
1514 (setSendBufferSize): Implemented.
1515 (getSendBufferSize): Implemented.
1516 (setReceiveBufferSize): Implemented.
1517 (getReceiveBufferSize): Implemented.
1518 (toString): Prepended "Socket".
1519 * java/net/SocketImpl.java (toString): Rewritten.
1520 (getOption): Made abstract.
1521 (setOption): Made abstract.
1522 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1523 (setOption): Implemented.
1524 (getOption): Implemented.
1526 1999-05-26 Warren Levy <warrenl@cygnus.com>
1528 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1529 address when null. Set SO_REUSEADDR for multicasts.
1530 (getSoTimeout): Implemented.
1531 (setSoTimeout): Implemented.
1532 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1533 * java/net/MulticastSocket.java (getInterface): Implemented.
1534 (setInterface): Implemented.
1535 (setTimeToLive): Check for invalid ttl.
1536 (joinGroup): Verify multicast address and security.
1537 (leaveGroup): Verify multicast address and security.
1538 (send): Implemented.
1539 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1545 (getTTL): Implemented as non-native.
1549 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1550 (getSoTimeout): Implemented.
1551 (setSocketFactory): Made synchronized.
1552 * java/net/Socket.java (setSoTimeout): Implemented.
1553 (getSoTimeout): Implemented.
1554 (close): Made synchronized.
1555 (setSocketImplFactory): Made synchronized.
1556 * java/net/SocketImpl.java: Implement SocketOptions interface.
1557 * java/net/natInetAddress.cc: Corrected module name at top of file.
1558 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1559 (bind): Added FIXME.
1560 (peek): Implemented.
1566 (setOption): Implemented for SO_REUSEADDR.
1567 (getOption): Implemented for SO_REUSEADDR.
1569 1999-05-24 Tom Tromey <tromey@cygnus.com>
1571 * java/util/ResourceBundle.java (getBundle): Throw
1572 NullPointerException if baseName is null.
1574 1999-05-22 Tom Tromey <tromey@cygnus.com>
1576 * java/util/zip/ZipInputStream.java (fill): New method.
1577 (compressed_len): New instance variable.
1578 (getNextStream): Set it.
1579 (read): Reset inflater on EOF. Only read via `super' if entry is
1581 (skip): Only skip via `super' if entry is deflated.
1582 * java/util/zip/Deflater.java (last_input_count): Removed.
1583 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1585 (needsInput): Don't use last_input_count.
1586 (setInput): Don't set last_input_count.
1587 * java/util/zip/natInflater.cc (getRemaining): Return correct
1589 (inflate): Return 0 if input array is length 0.
1590 (setInput): Don't set last_input_count.
1591 * java/util/zip/Inflater.java (last_input_count): Removed.
1593 1999-05-21 Tom Tromey <tromey@cygnus.com>
1595 * Makefile.in: Rebuilt.
1596 * Makefile.am (INCLUDES): Added $(ZINCS).
1597 * configure: Rebuilt.
1598 * configure.in (ZINCS): New subst.
1600 1999-05-21 Andrew Haley <aph@cygnus.com>
1602 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1603 to signal options to allow the same exceptions to be rethrown
1606 1999-05-20 Andrew Haley <aph@cygnus.com>
1608 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1610 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1611 (INIT_FPE): Exception string made more informative.
1612 * include/sparc-signal.h (INIT_FPE): Exception string made more
1614 * testsuite/libjava.lang/Divide_1.java: New file.
1615 * testsuite/libjava.lang/Divide_1.out: New file.
1617 1999-05-19 Tom Tromey <tromey@cygnus.com>
1619 * aclocal.m4, configure: Rebuilt.
1620 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1622 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1625 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1627 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1629 (update): Fail in default case. Always initialize `strat'.
1631 * mauve-libgcj: Enable java.util.zip.
1633 1999-05-18 Warren Levy <warrenl@cygnus.com>
1635 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1636 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1637 PlainDatagramSocketImpl.java, and SocketOptions.java.
1638 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1639 * Makefile.in: Rebuilt.
1641 * java/net/DatagramPacket.java: New file.
1642 * java/net/DatagramSocket.java: New file.
1643 * java/net/DatagramSocketImpl.java: New file.
1644 * java/net/MulticastSocket.java: New file.
1645 * java/net/PlainDatagramSocketImpl.java: New file.
1646 * java/net/SocketOptions.java: New file.
1647 * java/net/natPlainDatagramSocketImpl.cc: New file.
1649 1999-05-18 Tom Tromey <tromey@cygnus.com>
1651 * java/util/zip/ZipOutputStream.java (level): Initial value is
1652 Deflater.DEFAULT_COMPRESSION.
1653 (close): New method.
1654 (closeEntry): Likewise.
1656 (put_version): Likewise.
1657 (write_entry): Likewise.
1658 (put2, put4): Now return `int'.
1659 (comment): Default to empty string.
1660 (bytes_written): New instance variable.
1662 * java/util/zip/ZipEntry.java (setComment): Limit length of
1664 (setCrc): Check CRC validity.
1665 (setExtra): Check argument validity.
1666 (setMethod): Likewise.
1667 (setSize): Likewise.
1668 (ZipEntry): Likewise.
1669 * include/javaprims.h: Updated namespace declarations.
1670 * Makefile.in: Rebuilt.
1671 * Makefile.am (ordinary_java_source_files): Mention new files.
1672 (nat_source_files): Likewise.
1673 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1676 (getInputStream): Handle compressed entries.
1677 * java/util/zip/GZIPOutputStream.java: New file.
1678 * java/util/zip/GZIPInputStream.java: New file.
1679 * java/util/zip/DataFormatException.java: New file.
1680 * java/util/zip/CheckedInputStream.java: New file.
1681 * java/util/zip/CheckedOutputStream.java: New file.
1682 * java/util/zip/InflaterInputStream.java: Implemented.
1683 * java/util/zip/natInflater.cc: New file.
1684 * java/util/zip/Deflater.java: Implemented.
1685 * java/util/zip/natDeflater.cc: New file.
1686 * java/util/zip/DeflaterOutputStream.java: Implemented.
1688 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1689 ZipException, not IOException.
1690 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1693 1999-05-17 Tom Tromey <tromey@cygnus.com>
1695 * java/lang/natSystem.cc (init_properties): URL now points to
1698 1999-05-12 Per Bothner <bothner@cygnus.com>
1700 * java/util/Calendar.java (set): First call computeFields if needed.
1701 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1703 1999-05-12 Tom Tromey <tromey@cygnus.com>
1705 * configure: Rebuilt.
1706 * configure.in: Look for -ldl when using the Boehm collector.
1707 Look for sched_yield in -lposix4.
1709 1999-05-12 Per Bothner <bothner@cygnus.com>
1711 * java/io/File.java (mkdirs): Handle a null parent directory.
1713 1999-05-12 Tom Tromey <tromey@cygnus.com>
1715 * include/javaprims.h: Updated namespace declarations.
1716 * classes.pl (scan): Uniquify class list.
1717 * Makefile.in, configure: Rebuilt.
1718 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1719 (built_java_source_files): New macro.
1720 (nat_headers): Added built_java_source_files.
1721 (javao_files): Likewise.
1722 (EXTRA_libgcj_la_SOURCES): Likewise.
1723 (libgcj.zip): Create built class files.
1724 ($(built_java_source_files:.java=.class)): New target.
1725 (jv_convert_LDADD): Added -L$(here)/.libs.
1726 * configure.in: Create links for ConcreteProcess.java and
1727 natConcreteProcess.cc.
1728 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1729 * java/lang/natEcosProcess.cc: New file.
1730 * java/lang/EcosProcess.java: New file.
1731 * java/lang/PosixProcess.java: New file.
1732 * java/lang/natPosixProcess.cc: New file.
1734 1999-05-12 Warren Levy <warrenl@cygnus.com>
1736 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1737 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1738 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1739 (connect): Throw ConnectException.
1741 1999-05-11 Tom Tromey <tromey@cygnus.com>
1743 * Makefile.in: Rebuilt.
1744 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1745 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1748 * Makefile.in: Rebuilt.
1749 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1750 and it causes problems with libtool.
1752 * Makefile.in, configure: Rebuilt.
1753 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1754 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1755 (jv_convert_DEPENDENCIES): Added ZDEPS.
1756 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1758 (THREADSPEC): Added `-L' to point to qthreads build directory.
1762 * configure, Makefile.in: Rebuilt.
1763 * Makefile.am (toolexeclib_DATA): New macro.
1764 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1765 Recognize --with-system-zlib.
1766 (GCSPEC): New subst.
1767 (THREADSPEC): New subst.
1768 (SYSTEMSPEC): New subst.
1769 (ZLIBSPEC): New subst.
1770 * libgcj.spec.in: New file.
1772 1999-05-10 Tom Tromey <tromey@cygnus.com>
1774 * java/io/InputStreamReader.java (read): If length is 0, return
1775 0. Reset `wpos' and `wcount' when buffer has been filled and
1778 * java/util/Properties.java (save): Removed `FIXME' comment.
1779 (load): Invalid characters in \u now treated as terminators.
1780 Make sure to append character resulting from `\' handling.
1781 Cast to `char' when appending to key or value.
1782 (skip_ws): Inverted test for whitespace.
1784 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1786 (readLine): Likewise.
1787 (readFully): Implemented.
1789 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1791 * java/awt/natToolkit.cc: Added copyright header.
1792 * java/util/zip/InflaterInputStream.java: Added copyright header.
1794 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1796 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1798 (getNextStream): Likewise.
1800 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1802 (getBundle): Don't explicitly throw null pointer exception.
1804 * gnu/gcj/RawData.java: Added copyright header.
1806 * include/jni.h (_Jv_va_list): Always define as va_list.
1808 1999-05-9 Anthony Green <green@cygnus.com>
1810 * java/text/DateFormat.java (computeInstance): Separate time
1812 (getDateTimeInstance): Ditto.
1813 (getDateTimeInstance(int,int)): New method.
1815 * Makefile.in: Rebuilt.
1816 * Makefile.am (ordinary_java_source_files): Add new classes.
1818 * java/util/PropertyResourceBundle.java: New file.
1819 * gnu/gcj/util/EnumerationChain.java: New file.
1821 1999-05-07 Tom Tromey <tromey@cygnus.com>
1823 * acconfig.h (GCJVERSION): New undef.
1824 * java/lang/natSystem.cc (init_properties): Define java.version,
1825 java.class.version, os.name, os.arch, os.version.
1826 Include <sys/utsname.h> if required.
1827 * configure: Rebuilt.
1828 * configure.in: Compute and define GCJVERSION.
1830 * java/lang/natSystem.cc (default_file_encoding): Now static.
1832 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1834 * libtool-version: New file.
1835 * Makefile.in: Rebuilt.
1836 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1839 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1840 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1843 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1844 (we pick those up already).
1846 1999-05-05 Per Bothner <bothner@cygnus.com>
1848 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1849 stub classes. (This is enough to get Kawa to compile against libgcj.)
1851 * gnu/gcj/RawData.java: New class.
1852 * doc/cni.sgml: Document RawData.
1854 * java/util/zip/InflaterInputStream.java: New stub class.
1855 * java/util/zip/ZipInputStream.java: New class. Partly works.
1856 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1857 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1858 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1859 * java/util/zip/ZipOutputStream.java: Start implementation.
1861 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1862 (default_file_encoding): New global, initial value is above macro.
1863 (init_properties): Default file.encoding to default_file_encoding.
1865 * Makefile.am: Add new classes.
1867 1999-05-05 Tom Tromey <tromey@cygnus.com>
1869 * Makefile.in: Rebuilt.
1870 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1871 (clean-local): New target
1873 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1874 (load, loadLibrary): Now native.
1876 * java/lang/Runtime.java (load, loadLibrary): Now native.
1877 (init): New native method.
1878 (Runtime): Use init.
1879 * prims.cc: Include <ltdl.h> if required.
1880 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1882 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1884 * configure.in: Switch from irix threads to posix threads
1885 * configure: Regenerate.
1887 1999-04-30 Tom Tromey <tromey@cygnus.com>
1889 * Makefile.in: Rebuilt.
1890 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1892 1999-04-29 Tom Tromey <tromey@cygnus.com>
1894 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1897 * java/util/Locale.java (Locale(String,String)): Implement in
1898 terms of 3-argument version; variant now defaults to empty
1900 (toString): Assume variant is not null.
1901 (equals): Assume all strings are not null.
1902 (Locale): Throw NullPointerException if any argument is null.
1904 * java/util/ResourceBundle.java (getBundle): Don't try the base
1905 name; now implicit in partialGetBundle call.
1906 (trySomeGetBundle): Search for parent bundles and call setParent
1908 (partialGetBundle): Added `langStop' argument. Use
1909 `Locale.toString' to compute bundleName.
1910 (resource_cache): New static field.
1911 (partialGetBundle): Cache the returned resource bundle. Now
1914 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1917 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1918 * java/text/natCollator.cc (decomposeCharacter): `base' now
1920 * Makefile.in: Rebuilt.
1921 * Makefile.am (ordinary_java_source_files): Added
1922 CollationElementIterator, CollationKey, Collator,
1924 (nat_source_files): Added natCollator.cc.
1925 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1926 (compare): Pass `this' to CollationElementIterator constructor.
1927 (getCollationElementIterator): Likewise.
1928 (ceiNext): Fix off-by-one error when finding initial substring.
1929 (next): Correctly mask off bits when computing return value.
1930 Fixed return values when one string is shorter than the other.
1931 * java/text/CollationElementIterator.java (collator): New field.
1932 (CollationElementIterator): Added collator argument.
1933 (next): Call ceiNext on collator object.
1935 1999-04-26 Tom Tromey <tromey@cygnus.com>
1937 * natCollator.cc: New file.
1939 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1940 (GregorianCalendar): Use it in all constructors.
1941 * java/util/Calendar.java (Calendar): Changed argument name to
1942 `zone' to match code.
1944 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1945 * java/text/CollationKey.java: New file.
1946 * java/text/CollationElementIterator.java: New file.
1947 * java/text/Collator.java: New file.
1948 * java/text/RuleBasedCollator.java: New file.
1950 * Makefile.in: Rebuilt.
1951 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1952 (jv_convert_LDADD): Explicltly add -lm -lc.
1954 1999-04-26 Tom Tromey <tromey@cygnus.com>
1956 * configure, Makefile.in: Rebuilt.
1957 * configure.in: Added AM_PROG_LIBTOOL.
1958 (GCOBJS): Use `.lo' form of files.
1959 (THREADOBJS): Likewise.
1960 (GCDEPS): Use `.la' form of library.
1961 (GCLIBS): Set to be the same as GCDEPS.
1962 (THREADDEPS): Use `.la' form of library.
1963 (THREADLIBS): Set to be the same as THREADDEPS.
1964 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1965 toolexeclib_LIBRARIES.
1966 (libgcj_la_SOURCES): Renamed for libtoolization.
1967 (EXTRA_libgcj_la_SOURCES): Likewise.
1968 (libgcj_la_DEPENDENCIES): Likewise.
1969 (libgcj_la_LIBADD): Likewise.
1970 ($(nat_files)): Use LTCXXCOMPILE.
1971 ($(c_files)): Use LTCOMPILE.
1972 (GCJCOMPILE): New macro.
1974 (.java.o): Likewise.
1975 ($(javao_files)): Likewise.
1976 (jv_convert_LINK): Use LIBTOOL.
1977 (nat_files): Use `.lo' files.
1978 (c_files): Likewise.
1979 (javao_files): Likewise.
1980 (.class.lo): Renamed.
1981 (.java.lo): Likewise.
1982 ($(nat_files)): Depend on %.lo.
1983 ($(c_files)): Likewise.
1984 ($(javao_files)): Likewise.
1985 (jv_convert_LDADD): Link against .lo files.
1986 (jv_convert_DEPENDENCIES): Depend on .lo files.
1987 (maintainer-check): Depend on libgcj.la, but examine .a file.
1988 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1989 (libgcj_la_LDFLAGS): New macro.
1991 1999-04-23 Warren Levy <warrenl@cygnus.com>
1993 * Makefile.am: Added URLDecoder and URLEncoder.
1994 * Makefile.in: Rebuilt.
1996 * java/net/ServerSocket.java (setSocketFactory): Renamed from
1997 setSocketImplFactory to match spec.
1998 * java/net/Socket.java (getSoLinger): Changed return type to
2001 * java/net/URLDecoder.java: New file.
2002 * java/net/URLEncoder.java: New file.
2004 1999-04-21 Tom Tromey <tromey@cygnus.com>
2006 * java/lang/natString.cc (getBytes): Reverted earlier change and
2007 applied correct fix from Per Bothner.
2009 * java/lang/String.java: Don't throw
2010 UnsupportedEncodingException.
2012 * java/lang/natString.cc (getBytes): Correctly size result
2013 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2015 1999-04-20 Andrew Haley <aph@cygnus.com>
2017 * include/sparc-signal.h: new file.
2018 * configure.in: include/sparc-signal.h added.
2019 * configure: regenerated.
2020 * prims.cc (JvRunMain): signal handling code rewritten to be more
2022 (catch_segv): ditto.
2024 * include/i386-signal.h: reorganized.
2025 * include/default-signal.h: reorganized.
2027 1999-04-19 Tom Tromey <tromey@cygnus.com>
2029 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2030 once. From Anthony Green.
2032 1999-04-19 Andrew Haley <aph@cygnus.com>
2034 * Makefile.in: Processed with new automake.
2036 1999-04-19 Tom Tromey <tromey@cygnus.com>
2038 * include/javaprims.h: Removed security namespace.
2040 1999-04-20 Anthony Green <green@cygnus.com>
2042 * java/io/PrintStream.java (println): Remove extra println.
2044 1999-04-19 Anthony Green <green@cygnus.com>
2046 * Makefile.in: Rebuilt.
2047 * Makefile.am (ordinary_java_source_files): Add new security files.
2049 * java/security/NoSuchAlgorithmException.java,
2050 java/security/MessageDigest.java: New files.
2052 * include/javaprims.h: Add security namespace.
2054 1999-04-16 Per Bothner <bothner@cygnus.com>
2056 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2057 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2058 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2059 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2060 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2061 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2062 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2063 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2064 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2065 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2066 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2067 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2068 * Makefile.am: Various changes for new files and conversions.
2070 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2071 New overloading, allows greater efficiency.
2072 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2073 New overloading (for efficiency - avoids copying).
2075 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2076 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2078 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2079 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2080 (writeChars): Don't be quite so eager to flush.
2081 * java/io/PrintStream.java: Rewrite. Now more similar to
2082 OutputStreamWriter, using explicit UnicodeToBytes converter.
2083 Also, autoflush does not need to flush so often.
2084 * java/lang/natString.cc (getBytes): More efficient algorithm.
2085 (init(jbyteArray,jint,jint,jstring)): More efficient.
2087 1999-04-15 Warren Levy <warrenl@cygnus.com>
2089 * Makefile.am (ordinary_java_source_files): Added new Connection
2090 and Handler classes in gnu.gcj.protocol.file package.
2091 * Makefile.in: Rebuilt.
2093 * gnu/gcj/protocol/file/Connection.java: New file.
2094 * gnu/gcj/protocol/file/Handler.java: New file.
2095 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2096 if doInput allows input.
2097 (getOutputStream): Check if doOutput allows output.
2098 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2100 1999-04-14 Tom Tromey <tromey@cygnus.com>
2102 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2103 buffer larger to work around bug.
2104 From Bryce McKinlay <bryce@albatross.co.nz>.
2106 1999-04-14 Andrew Haley <aph@cygnus.com>
2108 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2109 NaNs are always converted to the same long value.
2110 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2113 1999-04-13 Tom Tromey <tromey@cygnus.com>
2115 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2116 instead switch on actual element type.
2118 * Makefile.in: Rebuilt.
2119 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2121 1999-04-13 Andrew Haley <aph@cygnus.com>
2123 * include/i386-signal.h, include/default-signal.h: New files.
2124 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2126 (catch_fpe): New function.
2127 * configure.in: Make link to appropriate include/java-signal.h.
2128 * configure: Rebuilt.
2129 * Makefile.am: include/java-signal.h added to dependency list.
2130 * Makefile.in: Rebuilt.
2132 1999-04-12 Urban Widmark <urban@svenskatest.se>
2134 * java/io/DataInputStream.java (readLine): Corrected handling of
2135 empty lines, from null to "".
2137 1999-04-12 Tom Tromey <tromey@cygnus.com>
2139 * Makefile.in: Rebuilt.
2140 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2142 * java/lang/natSystem.cc (SystemClass): New define.
2143 (init_properties): Synchronize.
2145 1999-04-08 Geoff Berry <gcb@gnu.org>
2147 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2148 * natPlainSocketImpl.cc (accept): Add missing else if check
2151 1999-04-08 Tom Tromey <tromey@cygnus.com>
2153 * java/lang/Long.java (parseLong): Corrected overflow detection
2155 * java/lang/Integer.java (parseInt): Corrected overflow detection
2158 * java/io/PrintStream.java (print): Handle null string argument.
2159 (println): Likewise.
2161 1999-04-07 Warren Levy <warrenl@cygnus.com>
2163 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2164 Set count to 0 when InputStreamReader returns -1 for EOF.
2166 1999-04-07 Tom Tromey <tromey@cygnus.com>
2168 * mauve-libgcj: Omit java.text.Collator,
2169 java.text.RuleBasedCollator.
2171 1999-04-06 Tom Tromey <tromey@cygnus.com>
2173 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2174 IOException from getHttpHeaders().
2175 (getHeaderFieldKey): Likewise.
2177 * include/javaprims.h: Regenerated declarations.
2179 * Makefile.in: Rebuilt.
2180 * Makefile.am (ordinary_java_source_files): Updated for removed
2183 1999-04-06 Per Bothner <bothner@cygnus.com>
2185 * java/util/zip/Adler32.java: New class.
2186 * java/util/zip/CRC32.java: Add working method bodies.
2187 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2188 * Makefile.in: Re-generate.
2190 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2192 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2193 from version in removed www hierarchy.
2194 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2195 version in removed www hierarchy.
2197 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2198 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2199 * gnu/gcj/www/protocol/http: Removed dir.
2200 * gnu/gcj/www/protocol: Removed dir.
2201 * gnu/gcj/www: Removed dir.
2203 * java/net/HttpURLConnection.java: Revised comments to indicate
2204 missing JDK 1.2 methods.
2206 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2207 hierarchy rather than the gnu/gcj/www/protocol one.
2208 * java/net/URLConnection.java: Updated status comments.
2209 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2210 the gnu/gcj/www/content one.
2212 1999-04-06 Per Bothner <bothner@cygnus.com>
2214 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2215 The gen-from-JIS program is in $(CONVERT_DIR).
2217 1999-04-06 Tom Tromey <tromey@cygnus.com>
2219 * mauve-libgcj: Renamed from mauve-libjava.
2221 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2223 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2224 (getResponseMessage): Implemented.
2225 (getResponseVals): New private method.
2227 * java/net/URLConnection.java (getContent): Implemented.
2228 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2230 1999-04-05 Tom Tromey <tromey@cygnus.com>
2232 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2233 (jv_convert_SOURCES): Renamed.
2234 (EXTRA_jv_convert_SOURCES): Likewise.
2235 (jv_convert_LDFLAGS): Likewise.
2236 (jv_convert_LINK): Likewise.
2237 (jv_convert_LDADD): Likewise.
2238 (jv_convert_DEPENDENCIES): Likewise.
2240 * Makefile.in: Rebuilt.
2241 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2244 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2246 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2247 method for comparison.
2249 * java/net/URLConnection.java (getContentLength): Implemented.
2250 (getContentType): Implemented.
2251 (getContentEncoding): Implemented.
2252 (getExpiration): Implemented.
2253 (getDate): Implemented.
2254 (getLastModified): Implemented.
2255 (getHeaderFieldInt): Implemented.
2256 (getHeaderFieldDate): Implemented.
2258 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2260 * java/net/URLConnection.java (toString): Implemented.
2261 (setContentHandlerFactory): Implemented.
2262 (setContentHandler): Wrote new private helper method.
2264 1999-04-01 Tom Tromey <tromey@cygnus.com>
2266 * Makefile.in: Rebuilt.
2267 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2268 of 1999-03-31; we always want to build all the .class files.
2269 Depend on java_source_files, not libgcj.zip.
2270 (nat_headers): Define in terms of ordinary_java_source_files.
2272 1999-03-31 Tom Tromey <tromey@cygnus.com>
2274 * Makefile.in: Rebuilt.
2275 * Makefile.am (special_java_source_files): New macro.
2276 (java_source_files): Use it.
2277 (ordinary_java_source_files): New macro.
2278 (java_source_files): Use it.
2279 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2280 creating headers for those files with hand-maintained headers.
2282 * include/javaprims.h: Regenerated namespace declarations.
2283 * classes.pl (scan): Include [0-9] in regexp for matching class
2284 names; for java.util.zip.CRC32.
2286 * Makefile.in: Rebuilt.
2287 * Makefile.am (nat_headers): Redefined to generate all possible
2290 * java/util/zip/ZipException.java: In package java.util.zip, not
2293 1999-03-30 Tom Tromey <tromey@cygnus.com>
2295 * configure: Rebuilt.
2296 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2297 eh-common.h when not building in tree with gcc.
2299 * Makefile.in: Rebuilt.
2300 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2301 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2303 ($(java_source_files:.java=.class)): New target.
2305 * Makefile.in: Rebuilt.
2306 * Makefile.am (java_source_files): Added
2307 java/net/HttpURLConnection.java and
2308 gnu/gcj/www/protocol/http/Connection.java.
2310 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2312 * gnu/gcj/www/protocol/http/Connection.java: New file.
2313 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2314 * java/net/HttpURLConnection.java: New file.
2315 * java/net/URLConnection.java (getHeaderField): Implemented default.
2316 (getHeaderFieldKey): Implemented default method.
2318 1999-03-30 Tom Tromey <tromey@cygnus.com>
2320 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2322 * java/util/zip/Deflater.java: Added copyright header.
2323 * java/util/zip/CRC32.java: Added copyright header.
2325 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2326 that it is automatically generated.
2327 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2329 * gnu/gcj/convert/BytesToUnicode.java,
2330 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2331 gnu/gcj/convert/Input_EUCJIS.java,
2332 gnu/gcj/convert/Input_UTF8.java,
2333 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2334 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2335 gnu/gcj/convert/Output_8859_1.java,
2336 gnu/gcj/convert/Output_JavaSrc.java,
2337 gnu/gcj/convert/Output_UTF8.java,
2338 gnu/gcj/convert/UnicodeToBytes.java,
2339 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2341 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2343 * Makefile.in, configure: Rebuilt.
2344 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2345 not if test subdir exists.
2346 (--enable-gcj-classes): Removed; gcj always used to generate
2348 (JAVA, JAVAC): Removed.
2349 (--enable-single-compilation, --enable-source-compilation):
2352 (NATIVE): New conditional.
2353 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2354 `install-exec' to work.
2355 (toolexeclibdir): Likewise.
2356 (toollib_LIBRARIES): Likewise.
2357 (AM_MAKEFLAGS): Don't pass tooldir.
2359 (javao_files): Redefined.
2360 (java_source_files): New macro.
2361 (c_source_files): New macro.
2362 (c_files): Redefined in terms of c_source_files.
2363 (java_io_files, java_lang_files, java_net_files, java_text_files,
2364 java_util_files, gnu_files, java_files): Removed.
2365 (class_io_files, class_lang_files, class_net_files,
2366 class_text_files, class_util_files, class_gnu_files, class_files):
2368 (nat_source_files): New macro.
2369 (nat_files): Redefined in terms of nat_source_files.
2370 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2371 java_source_files. Removed no-such-file.c.
2373 (ETAGS_ARGS): Removed.
2374 (TAGS_DEPENDENCIES): Likewise.
2375 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2377 (src_io_files, src_lang_files, src_text_files, src_util_files,
2378 src_gnu_files): Removed.
2379 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2380 (BUILT_SOURCES): Removed.
2381 (header-check): New target.
2383 (noinst_PROGRAMS): New macro.
2384 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2386 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2387 (gen-from-JIS): Build in top directory.
2388 (convert_source_files): New macro.
2389 (convert_SOURCES): New macro.
2390 (convert_LDFLAGS): Likewise.
2391 (convert_LINK): Likewise.
2392 (convert_LDADD): Likewise.
2393 (convert_DEPENDENCIES): Likewise.
2395 (gen-from-JIS): Removed.
2396 (gen_from_JIS_SOURCES): New macro.
2397 (gen_from_JIS_LDADD): Likewise.
2398 (gen_from_JIS_DEPENDENCIES): Likewise.
2400 * configure: Rebuilt.
2401 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2402 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2403 when defining conditional.
2405 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2407 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2408 The Unicode Consortium does not permit their re-distribution.
2409 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2410 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2412 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2414 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2416 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2418 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2419 from Unicode Consortium.
2420 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2421 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2422 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2423 New tables, generated using gen-from-JIS.
2424 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2425 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2426 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2427 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2429 * gnu/gcj/convert/Convert.java: New application.
2430 * Makefile.am, Makefile.in (convert): New program, using Convert.
2431 Build the various JIS conversion tables (in maintainer mode).
2433 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2435 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2437 * java/net/URL.java (URL): Deal with null property value. Use "."
2438 as separator in building class name.
2439 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2440 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2441 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2442 beginning of the substring rather than 'start'.
2444 1999-03-26 Tom Tromey <tromey@cygnus.com>
2446 * include/java-chartables.h: Rebuilt.
2447 * include/java-chardecomp.h: New file.
2448 * chartables.pl: Generate output files directly. Added support
2449 for generating decomposition header.
2450 (canonical_decomposition, full_decomposition): New globals.
2451 (DECOMPOSITION): New constant.
2452 (process_char): Call add_decomposition.
2453 (add_decomposition): New sub.
2454 (write_decompositions): New sub.
2456 1999-03-25 Tom Tromey <tromey@cygnus.com>
2458 * java/text/CollationElementIterator.java: New file.
2460 * mauve-libjava: Omit StringTest.
2462 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2464 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2465 without a '/' when parsing protocol. Handle ref outside of parseURL.
2466 (hashCode): Implemented.
2467 (set): Don't expand -1 to default port.
2468 (getDefaultPort): Removed.
2470 * java/net/URLStreamHandler.java (parseURL): Implemented.
2471 (toExternalForm): Implemented.
2473 1999-03-23 Tom Tromey <tromey@cygnus.com>
2475 * java/text/BreakIterator.java (getSentenceInstance):
2477 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2479 * Makefile.in: Rebuilt.
2480 * Makefile.am (nat_headers): Added IllegalAccessException.
2481 * java/lang/natClass.cc (newInstance): Throw
2482 IllegalAccessException, not IllegalAccessError.
2483 Include IllegalAccessException.h.
2485 1999-03-22 Tom Tromey <tromey@cygnus.com>
2487 * gnu/gcj/text/LineBreakIterator.java: New file.
2488 * java/text/BreakIterator.java (getLineInstance): Implemented.
2490 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2491 copy constructor private.
2492 (previous, next): Removed erroneous comment about line
2494 (previous): Correctly recognize break between non-letter on the
2495 left and letter on the right. Handle apostrophes correctly.
2497 * java/text/BreakIterator.java (getWordInstance): Implemented.
2498 * gnu/gcj/text/WordBreakIterator.java: New file.
2499 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2501 * gnu/gcj/text/BaseBreakIterator.java: New file.
2503 1999-03-19 Tom Tromey <tromey@cygnus.com>
2505 * java/text/BreakIterator.java: New file (partially stubbed out).
2506 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2508 * include/config.h.in: Rebuilt.
2509 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2510 (HAVE_TIMEZONE): Likewise.
2511 * configure: Rebuilt.
2512 * configure.in: Added timezone checks.
2513 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2516 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2518 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2519 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2520 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2521 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2522 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2523 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2524 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2525 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2527 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2528 (BSD_COMP): Kludge needed for Solaris2.
2530 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2532 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2533 URL(java.net.URL, string, URLStreamHandler) and call it with a
2534 null handler. In latter constructor, added SecurityManager check.
2535 (set): Expect null handler on bad protocol rather than an exception.
2536 (setURLStreamHandler): Simplified exception handling; return null
2537 on invalid protocol.
2539 1999-03-18 Tom Tromey <tromey@cygnus.com>
2541 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2543 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2545 Include PrintStream.h, InputStream.h.
2546 * java/lang/System.java (ForwardingInputStream,
2547 ForwardingOutputStream): Removed.
2548 (setErr, setIn, setOut): Now native.
2550 Reverted patch from 1999-02-12 to work around problem in
2552 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2553 (_Jv_eh_free): Use free.
2555 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2556 for path name. Minor formatting fixes.
2558 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2560 * prims.cc (fail_on_finalization): New function.
2561 (_Jv_GCWatch): Likewise.
2563 * prims.cc (JvRunMain): Initialize `nullp'.
2564 (nullp): New global.
2565 (catch_segv): Throw nullp.
2567 * Makefile.in: Rebuilt.
2568 * Makefile.am (ZIP): In "null target" case, zip is found in the
2571 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2575 * java/lang/StringBuffer.java (StringBuffer): Don't use
2576 ensureCapacity to set initial capacity.
2577 (capacity): Subtract `length' from return result.
2579 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2581 * java/io/natFileDescriptorPosix.cc (open): Throw
2582 FileNotFoundException, but with filename and errno in msg.
2584 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2586 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2587 functionality folded into java/net/URL.java per spec.
2589 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2590 than EEXIST for throwing FileNotFoundException.
2592 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2593 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2595 * java/net/URLStreamHandler.java (parseURL): Added stub.
2597 1999-03-15 Andrew Haley <aph@cygnus.com>
2599 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2602 1999-03-15 Andrew Haley <aph@cygnus.com>
2604 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2607 1999-03-12 Tom Tromey <tromey@cygnus.com>
2609 * prims.cc (catch_segv): New function.
2610 Include <signal.h> if HANDLE_SEGV defined. Include
2611 NullPointerException.h.
2612 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2615 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2616 a SimpleDateFormat, not just a DateFormat.
2617 (defaultCenturyStart, formatData, pattern): Now private.
2618 (append): Now `final'. Use `NumberFormat.format'.
2620 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2622 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2625 * java/text/MessageFormat.java (format): Use default MessageFormat
2627 (parse, parseObject): Wrote.
2629 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2632 1999-03-12 Andrew Haley <aph@cygnus.com>
2634 * java/lang/String.java (indexOf): Replace with native method for
2636 * java/lang/natString.cc (IndexOf): As above.
2638 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2639 Argument check corrected.
2640 (init(jbyteArray,jint,jint,jstring)): Likewise.
2642 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2643 1.2 compliant method.
2645 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2647 * java/lang/Float.java (byteValue, shortValue): Likewise.
2649 1999-03-11 Tom Tromey <tromey@cygnus.com>
2651 * java/text/DecimalFormat.java (parse): Wrote.
2653 * java/text/ChoiceFormat.java (parse): Set error index on
2654 ParsePosition object.
2656 * java/lang/Integer.java (parseInt): Throw exception on overflow
2657 when intermediate result is most negative number. Changed
2658 overflow detection as well.
2659 * java/lang/Long.java (parseLong): Likewise.
2661 * configure, Makefile.in: Rebuilt.
2662 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2663 CANADIAN when building in source tree that doesn't include gcc.
2664 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2667 * java/text/ChoiceFormat.java (nextDouble): Correct some
2668 off-by-one errors when masking or adding.
2670 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2671 parameter, if given. Use `%', not IEEEremainder.
2672 (scanFix): Throw error if multiplier already set.
2673 (computePattern): Wrote.
2675 1999-03-11 Andrew Haley <aph@cygnus.com>
2677 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2679 (nextDouble): Corrected masking logic. Handle interaction between
2680 `next' and negative numbers.
2682 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2684 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2685 * java/net/URL.java: Added general comments.
2687 1999-03-10 Tom Tromey <tromey@cygnus.com>
2689 * java/text/ChoiceFormat.java (parse): Wrote.
2691 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2693 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2694 Create ChoiceFormat objects.
2695 (format): Special-case ChoiceFormat.
2696 (scanFormatElement): Include { and } in generated style string.
2698 1999-03-09 Tom Tromey <tromey@cygnus.com>
2700 * java/text/ChoiceFormat.java: New file.
2702 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2704 * java/net/BindException.java: Created.
2705 * java/net/ConnectException.java: Created.
2706 * java/net/ContentHandler.java: Created.
2707 * java/net/ContentHandlerFactory.java: Created.
2708 * java/net/FileNameMap.java: Created.
2709 * java/net/MalformedURLException.java: Created.
2710 * java/net/NoRouteToHostException.java: Created.
2711 * java/net/ProtocolException.java: Created.
2712 * java/net/ServerSocket.java (@author): Fixed typo.
2713 * java/net/Socket.java (@author): Fixed typo.
2714 * java/net/SocketImpl.java (@author): Fixed typo.
2715 * java/net/SocketImplFactory.java (@author): Fixed typo.
2716 * java/net/URL.java: Created - nearly complete.
2717 * java/net/URLConnection.java: Created - near-empty stub.
2718 * java/net/URLStreamHandler.java: Created - incomplete stub.
2719 * java/net/URLStreamHandlerFactory.java: Created.
2720 * java/net/UnknownServiceException.java: Created.
2722 1999-03-09 Tom Tromey <tromey@cygnus.com>
2724 * java/lang/System.java (ForwardingInputStream): New class.
2725 (ForwardingOutputStream): Likewise.
2726 (in, out, err): Now `final' forwarding streams.
2727 (setIn, setOut, setErr): Use appropriate method on forwarding
2730 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2733 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2735 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2736 * java/util/zip/Checksum.java: New interface (complete).
2737 * java/util/zip/Deflater.java: New class (near-empty stub).
2738 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2739 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2740 * java/util/zip/ZipEntry.java: New class (complete).
2741 * java/util/zip/ZipException.java: New class (complete).
2742 * java/util/zip/ZipFile.java: New class (incomplete stub).
2743 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2745 1999-03-09 Tom Tromey <tromey@cygnus.com>
2747 * java/text/MessageFormat.java (MessageFormatElement): Removed
2748 `public' specifiers.
2750 * java/text/DecimalFormat.java (scanFormat): Increment index
2751 before processing exponential format. Fixed a couple typos in
2753 (format): Correct normalization of exponent.
2755 1999-03-08 Tom Tromey <tromey@cygnus.com>
2757 * java/text/SimpleDateFormat.java (parse): Throw
2758 IllegalArgumentException, not ParseException.
2760 1999-03-05 Tom Tromey <tromey@cygnus.com>
2762 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2763 when constructing DateFormatSymbols. Initialize numberFormat
2764 field of superclass.
2766 * java/text/DateFormat.java (equals): Rewrote.
2767 (getAvailableLocales): New method.
2768 (getDateInstance): New methods.
2769 (getDateTimeInstance): Likewise.
2770 (getTimeInstance): Likewise.
2771 (getInstance): New method.
2772 (computeInstance): New method.
2774 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2776 (safeGetResource): New method.
2777 (DateFormatSymbols): Use Locale paramater.
2778 (equals): Now protected.
2779 Made instance variables private.
2781 1999-03-04 Tom Tromey <tromey@cygnus.com>
2783 * java/text/DecimalFormat.java: New file.
2785 * java/text/NumberFormat.java (groupingUsed,
2786 maximumFractionDigits, maximumIntegerDigits,
2787 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2789 (setDecimalSeparatorAlwaysShown, setMultiplier,
2790 setPositivePrefix): Removed.
2791 (setMinimumFractionDigits, setMaximumFractionDigits):
2793 (format): Now final.
2794 Added many new methods.
2796 * Makefile.in: Rebuilt.
2797 * Makefile.am (gnu_files): New macro.
2798 (java_files): Added gnu_files.
2799 (class_gnu_files): New macro.
2800 (class_files): Use it.
2801 (src_gnu_files): New macro.
2802 (gnu.o): New target.
2803 (javao_files): Added gnu.o.
2805 * gnu/gcj/text/LocaleData_en_US.java: New file.
2806 * gnu/gcj/text/LocaleData_en.java: New file.
2807 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2808 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2809 (safeGetString): New method.
2810 (safeGetChar): Likewise.
2812 1999-03-03 Tom Tromey <tromey@cygnus.com>
2814 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2817 * java/text/FieldPosition.java (equals): Don't check for null
2818 object; instanceof does this.
2820 * java/util/Locale.java (clone): New method.
2823 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2825 * doc/cni.sgml: New file.
2827 1999-03-03 Tom Tromey <tromey@cygnus.com>
2829 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2831 * java/text/DecimalFormatSymbols.java: New file.
2833 1999-03-02 Tom Tromey <tromey@cygnus.com>
2835 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2837 * configure: Rebuilt.
2838 * configure.in: Check for sys/filio.h.
2840 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2842 (load): Always throw UnsatisfiedLinkError.
2843 (loadLibrary): Likewise.
2845 1999-03-02 Anthony Green <green@cygnus.com>
2847 * LIBGCJ_LICENSE: New file.
2848 * LIBJAVA_LICENSE: Removed.
2849 * Many files: libjava now libgcj.
2851 1999-03-02 Tom Tromey <tromey@cygnus.com>
2853 * include/java-chartables.h: Rebuilt.
2854 * chartables.pl (print_block): Make table `const'.
2855 (print_numerics): Likewise.
2856 (print_single_map): Likewise.
2857 (print_all_block): Likewise.
2858 (print_case_table): Likewise.
2859 (print_fast_tables): Likewise.
2860 * java/lang/natCharacter.cc (table_search): `table' argument now
2863 1999-03-01 Tom Tromey <tromey@cygnus.com>
2865 * java/util/Date.java (before, after): Inverted logic.
2867 * java/util/Date.java (parse): Handle case where first character
2868 in string is open parenthesis.
2869 (skipParens): Rewrote.
2871 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2872 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2874 * java/util/Date.java (parse): Correctly compute beginning of
2877 * java/util/Hashtable.java (get): Throw NullPointerException if
2879 (containsKey): Likewise.
2881 * java/util/Properties.java (list): Truncate value to 37
2882 characters and add `...'.
2884 * java/lang/Byte.java (parseByte): Pass `radix' to
2887 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2889 Include System.h, PrintStream.h.
2891 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2894 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2896 * configure: Rebuilt.
2897 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2900 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2902 * java/lang/SecurityManager.java: Import java.net.*.
2903 (checkMulticast): New methods.
2905 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2907 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2908 (nat_files): Add java/lang/reflect/natArray.o.
2909 (nat_headers): Add Field.h and NoSuchFieldException.h.
2911 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2912 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2913 (_Jv_FromReflectedField): Fix buglet.
2914 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2915 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2916 * prims.cc (_Jv_Abort): Include message in print-out.
2918 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2919 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2920 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2922 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2923 * include/config.h.in (HAVE_PWD_H): New feature macro.
2924 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2925 user.name, user.home, user.dir.
2927 * java/lang/reflect/Array.java: New class.
2928 * java/lang/reflect/natArray.cc: New native methods.
2929 * include/javaprims.h: Declare java::lang::reflect::Array.
2931 * java/lang/Class.h (getField): New private method. Add friends.
2932 * java/lang/Class.java (getField): Add private overload.
2933 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2934 getDeclaredMethods): Add working implementations.
2935 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2936 Finish implementation, except for access control.
2938 * java/lang/reflect/Modifier.java (toString): New overload.
2939 * include/java-method.h: New file.
2940 * java/lang/reflect/Method.java (index): Replaced by offset field.
2941 Remove various private fields - get them from _Jv_Field instead.
2942 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2943 New method implementations.
2945 * java/text/NumberFormat.java: Add a bunch of methods.
2947 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2949 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2951 1999-02-26 Tom Tromey <tromey@cygnus.com>
2953 * include/config.h.in: Rebuilt.
2954 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2955 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2956 HAVE_GETHOSTBYADDR_R): New defines.
2957 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2958 gethostbyaddr_r if available.
2960 * configure: Rebuilt.
2961 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2963 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2967 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2968 * prims.cc (_Jv_AllocBytesChecked): New function.
2970 * Makefile.in: Rebuilt.
2971 * Makefile.am (SUBDIRS): Removed `test'.
2972 * configure: Rebuilt.
2973 * configure.in: Don't build test/Makefile.
2974 * test/*: Removed all files.
2976 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
2978 * java/lang/reflect/Constructor.java: Make class final to match spec.
2979 * java/lang/reflect/Method.java: Ditto.
2981 1999-02-25 Tom Tromey <tromey@cygnus.com>
2983 * java/net/natInetAddress.cc: Include <sys/types.h> before
2985 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2988 * java/net/natInetAddress.cc: Declare gethostname if required.
2989 * include/config.h.in: Rebuilt.
2990 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2991 * configure: Rebuilt.
2992 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2993 declared in unistd.h.
2995 1999-02-24 Tom Tromey <tromey@cygnus.com>
2997 * Makefile.in: Rebuilt.
2998 * Makefile.am (java/io/FileDescriptor.h): Removed target.
2999 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3000 from private to "none".
3002 * include/javaprims.h: Regenerated class declarations with new
3004 * classes.pl (scan): Only generate decls for java.lang, java.io,
3007 1999-02-24 Tom Tromey <tromey@cygnus.com>
3009 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3010 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3012 1999-02-23 Tom Tromey <tromey@cygnus.com>
3014 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3015 not already defined.
3016 * java/io/natFile.cc (_REENTRANT): Only define if not already
3018 * include/config.h.in: Rebuilt.
3019 * acconfig.h (HAVE_BOEHM_GC): New define.
3020 * configure: Rebuilt.
3021 * configure.in: Define HAVE_BOEHM_GC if using it.
3022 * posix-threads.cc: Include boehm-config.h and gc.h if
3024 * include/posix-threads.h: Added explanatory note about Boehm GC.
3026 * java/io/BufferedReader.java (readLine): Only return null when
3027 EOF seen before any characters read. (In particular, an empty
3028 line should not return null.)
3030 * java/io/BufferedInputStream.java (read): Only refill once per
3033 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3034 java.lang.Character.classify12, java.lang.String.hash,
3035 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3036 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3038 * java/text/StringCharacterIterator.java (setIndex): No error if
3040 (next): Check for `pos == end', not `end - 1'.
3041 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3042 for null text in each constructor.
3043 (clone): Fixed order of arguments to constructor.
3045 1999-02-22 Tom Tromey <tromey@cygnus.com>
3047 * include/config.h.in: Rebuilt.
3048 * acconfig.h (HAVE_INET6): New define.
3049 (HAVE_SOCKLEN_T): Likewise.
3050 * java/net/PlainSocketImpl.java: Added copyright header.
3051 * java/net/natPlainSocketImpl.cc: Added copyright header.
3052 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3054 (connect): Likewise.
3056 (socklen_t): New typedef.
3057 (accept): Use socklen_t.
3058 * java/net/natInetAddress.cc: Added copyright header.
3059 (HAVE_GETHOSTNAME): Don't define.
3060 (HAVE_INET_ADDR): Likewise.
3061 (lookup): Fixed typo.
3062 (aton): Don't use `address' as name of local variable.
3063 (lookup): Use HAVE_INET6, not AF_INET6.
3065 * configure: Rebuilt.
3066 * configure.in: Look for functions inet_aton, inet_addr,
3067 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3068 Check for socklen_t typedef.
3070 * exception.cc (__throw): Declare as __noreturn__.
3072 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3074 * Makefile.am, Makefile.in: Also build java/net.
3075 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3077 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3078 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3080 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3081 * include/cni.h (JvMalloc, JvFree): New inline functions.
3082 (JvThrow): Add __noreturn__ attribute.
3083 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3084 (_Jv_Throw): Add __noreturn__ attribute.
3086 * java/net/PlainSocketImpl.java: Init fnum to -1.
3087 * java/net/ServerSocket.java: Add missing throws clauses.
3088 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3089 don't call create on the latter. Instead, other constructors
3090 have to explicitly call SocketImpl.create.
3091 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3092 from size_t to int, to match ::accept prototype.
3093 * java/net/natInetAddress.cc: Use JvFree rather than free.
3096 1999-02-22 Tom Tromey <tromey@cygnus.com>
3098 * include/javaprims.h: Added new classes.
3099 * java/text/StringCharacterIterator.java: New file.
3100 * java/text/CharacterIterator.java: New file.
3102 * java/text/ParseException.java (errorOffset): Now private.
3104 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3106 * java/net: New package.
3107 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3108 Socket.java,SocketException.java,SocketImpl.java,
3109 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3110 natPlainSocketImpl.cc}: New classes.
3112 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3113 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3114 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3115 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3117 * classes.pl: Translate package into "namespace", not "class".
3118 * include/javaprims.h: Update class list, using "namespace".
3120 1999-02-21 Tom Tromey <tromey@cygnus.com>
3122 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3123 Define when appropriate.
3125 1999-02-20 Tom Tromey <tromey@cygnus.com>
3127 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3128 as a single byte and \u07ff as two bytes.
3129 (_Jv_GetStringUTFLength): Likewise.
3130 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3131 with 0x0f, not 0x1f.
3133 1999-02-19 Tom Tromey <tromey@cygnus.com>
3135 * java/io/DataOutputStream.java (writeUTF): When encoding
3136 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3137 * java/io/DataInputStream.java (readUTF): Mask second byte of
3138 3-byte character with 0x3f, not 0x1f.
3140 * java/io/DataInputStream.java (readLong): Cast result of
3141 readUnsignedByte to long before using.
3143 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3146 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3147 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3148 argument to avoid warning.
3149 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3150 argument to avoid warning.
3152 1999-02-18 Tom Tromey <tromey@cygnus.com>
3154 * mauve-libjava: Omit java.io.DataInputOutput and
3155 java.io.Utf8Encoding.
3157 1999-02-17 Tom Tromey <tromey@cygnus.com>
3159 * Makefile.in: Rebuilt.
3160 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3161 * java/io/natFileDescriptorPosix.cc: Include
3162 InterruptedIOException.h, Thread.h.
3163 (write): Throw InterruptedIOException when required.
3165 * posix-threads.cc: Include <signal.h>.
3166 (_Jv_ThreadInterrupt): New function.
3168 (handle_intr): New function.
3169 (_Jv_InitThreads): Register handle_intr via sigaction.
3170 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3171 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3172 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3173 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3175 1999-02-19 Andrew Haley <aph@cygnus.com>
3177 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3179 (ThreadGroup (int)): Set the maximum priority of the initial
3182 1999-02-18 Andrew Haley <aph@cygnus.com>
3184 * java/lang/natClass.cc (forName): Check for the case where a
3185 classname is the name of an array and call FindClassFromSignature
3188 1999-02-18 Andrew Haley <aph@cygnus.com>
3190 * java/lang/StringBuffer (insert (int, String)): Move up any
3191 characters above the insert position and increase the length of
3192 the string buffer by the length of the argument.
3193 (insert (int, char[])): Likewise.
3194 (insert (int, char)): Likewise.
3195 (StringBuffer (String)): The initial capacity of the string buffer
3196 is 16 plus the length of the argument.
3197 (getChars): Add a JDK 1.2 FIXME.
3199 1999-02-18 Andrew Haley <aph@cygnus.com>
3201 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3204 1999-02-18 Andrew Haley <aph@cygnus.com>
3206 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3207 instead of floating-point equality. This is necessary for
3208 correct floating-point Hashtables.
3209 * java/lang/Float.java (equals): Ditto.
3211 1999-02-16 Tom Tromey <tromey@cygnus.com>
3213 * java/util/Properties.java (list): Truncate value to 37
3214 characters and add "...".
3216 1999-02-16 Tom Tromey <tromey@cygnus.com>
3218 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3219 if initCap is negative.
3220 (contains): Implement JDK1.2-style handling of null argument.
3221 (removeElement): Likewise.
3222 (indexOf): Likewise. Also, correctly handle case where idx is
3224 (lastIndexOf): Likewise.
3226 1999-02-16 Tom Tromey <tromey@cygnus.com>
3228 * java/lang/natString.cc (init): Increment source pointer in
3231 1999-02-16 Tom Tromey <tromey@cygnus.com>
3233 * exception.cc: Include NullPointerException.h.
3234 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3236 1999-02-16 Tom Tromey <tromey@cygnus.com>
3238 * Makefile.in: Rebuilt.
3239 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3241 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3243 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3244 we're compiling canadian.
3245 * configure: Regenerated.
3247 1999-02-12 Andrew Haley <aph@cygnus.com>
3249 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3250 deleted from libgcj.
3252 1999-02-12 Tom Tromey <tromey@cygnus.com>
3254 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3255 (_Jv_eh_free): Don't call free.
3256 Don't declare malloc or free.
3258 1999-02-11 Tom Tromey <tromey@cygnus.com>
3260 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3262 1999-02-11 Andrew Haley <aph@cygnus.com>
3264 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3265 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3266 needed by java.lang.*.
3267 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3268 wf_fmod.o: Removed from libjava.a.
3270 1999-02-11 Tom Tromey <tromey@cygnus.com>
3272 * include/javaprims.h: Reverted previous change; with it
3273 exception.cc can't compile.
3275 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3277 * include/config.h.in: Rebuilt.
3278 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3280 * configure: Rebuilt.
3281 * configure.in: Check for sched_yield. Look in thread library for
3282 all thread functions.
3284 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3285 no recursive mutexes.
3286 (_Jv_MutexDestroy): Define when required.
3287 (_Jv_MutexLock): Likewise.
3288 (_Jv_MutexUnlock): Likewise.
3289 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3290 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3291 (_Jv_Mutex_t): New structure.
3292 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3293 (_Jv_MutexLock): Likewise.
3294 (_Jv_MutexUnlock): Likewise.
3296 1999-02-10 Tom Tromey <tromey@cygnus.com>
3298 * aclocal.m4, configure, Makefile.in: Rebuilt.
3299 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3301 * configure.in: Changed to track library changes.
3302 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3303 (AM_CXXFLAGS): Likewise.
3304 (data_DATA): Likewise.
3305 (AM_CFLAGS): Likewise.
3306 (JC1FLAGS): Likewise.
3307 (libgcj_a_SOURCES): Likewise.
3308 (EXTRA_libgcj_a_SOURCES): Likewise.
3309 (libgcj_a_DEPENDENCIES): Likewise.
3310 (libgcj_a_LIBADD): Likewise.
3311 (libgcj.zip): Likewise.
3312 (CLEANFILES): Likewise.
3313 ($(nat_headers)): Likewise.
3314 (java/lang/FirstThread.h): Likewise.
3315 (java/lang/ThreadGroup.h): Likewise.
3316 (java/lang/String.h): Likewise.
3317 (java/lang/reflect/Field.h): Likewise.
3318 (BUILT_SOURCES): Likewise.
3319 (maintainer-check): Likewise.
3320 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3321 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3323 * java/util/natGregorianCalendar.cc (computeFields): Only use
3324 gmtime_r and localtime_r when configured for posix threads.
3326 * java/io/natFile.cc (get_entry): Only use readdir_r when
3327 configured for posix threads.
3329 * java/util/natGregorianCalendar.cc: Update copyright notice.
3330 * java/util/TimeZone.java: Ditto.
3331 * java/util/SimpleTimeZone.java: Ditto.
3333 1999-02-08 Tom Tromey <tromey@cygnus.com>
3335 * java/io/PrintStream.java (line_separator): New constant.
3336 (print): Use line_separator, not `file.separator' property.
3337 (println): Use line_separator.
3339 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3340 when trying to instantiate Class.
3342 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3343 NullPointerException if argument is null.
3345 * java/lang/Thread.java (setName): Throw NullPointerException, not
3346 IllegalArgumentException.
3349 1999-02-08 Andrew Haley <aph@cygnus.com>
3351 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3352 create new Classes with Class.newInstance().
3354 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3355 semiciolon to end of an array Class's signature if the elements of
3356 the array aren't themselves arrays.
3358 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3359 array of objects is always sizeof(jobject), not the size of the
3360 object to which the reference points.
3362 1999-02-08 Tom Tromey <tromey@cygnus.com>
3364 * java/util/BitSet.java (and): Throw NullPointerException when
3369 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3370 if argument is negative.
3371 (clear): Correctly compute `offset'. Throw
3372 IndexOutOfBoundsException when required.
3374 (get): Likewise. Also, return correct value.
3375 (ensure): Changed meaning of argument.
3376 (toString): Wrap contents in `{}'; put spaces after commas.
3377 (hashCode): Don't try to examine elements off the end of array.
3378 (or): Correctly include bits past the end of this bit set.
3381 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3383 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3384 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3386 1999-02-04 Andrew Haley <aph@cygnus.com>
3388 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3389 '/' in signatures to '.'
3390 (Class::getName): Likewise,
3391 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3393 * java/lang/natFirstThread.cc (run): Change '/' in main's
3396 1999-02-03 Andrew Haley <aph@cygnus.com>
3398 * configure.host: -ffloat-store added when compiling libjava on
3399 x86. fdlibm apparently relies on this.
3401 * java/lang/ThreadGroup.java (add): throw an exception if the
3402 ThreadGroup has been destroyed.
3404 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3407 1999-01-27 Tom Tromey <tromey@cygnus.com>
3409 * java/lang/StringBuffer.java (StringBuffer): Handle null
3412 1999-01-21 Tom Tromey <tromey@cygnus.com>
3414 * java/lang/natFirstThread.cc (run): Don't require main to be
3417 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3419 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3421 1999-01-20 Tom Tromey <tromey@cygnus.com>
3423 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3427 (unintern): Likewise.
3428 (_Jv_NewStringUtf8Const): Likewise.
3430 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3431 Character.isLetter, to see if character is self-quoting. Also,
3432 correctly handle quoted characters.
3433 (parse): Fixed typo. Also now throws ParseException.
3435 1999-01-15 Tom Tromey <tromey@cygnus.com>
3437 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3439 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3440 _Jv_SyncInfo has `init' member.
3442 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3445 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3446 IllegalMonitorStateException if unlock fails.
3448 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3450 (_Jv_NewObjectArray): Likewise.
3452 1999-01-14 Tom Tromey <tromey@cygnus.com>
3454 * java/lang/Character.java (isJavaIdentifierPart): Allow
3455 LETTER_NUMBER characters.
3457 * chartables.pl (process_char): Fixed error messages.
3459 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3460 * chartables.pl: Updated comments. Changed detection of non-digit
3461 numeric values (no longer miss \u00b2 and friends).
3463 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3464 currency symbols and connector punctuation.
3465 (isIdentifierIgnorable): Make 7f-9f ignorable.
3467 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3468 (_Jv_NewPrimArray): Likewise.
3469 (SIZE_T_MAX): New define.
3471 * java/lang/ClassLoader.java (system): Now private and final.
3473 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3476 * configure: Rebuilt.
3477 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3479 * exception.cc: Include gansidecl.h.
3481 1999-01-14 Andrew Haley <aph@cygnus.com>
3483 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3484 corrected: they didn't treat -0.0 and NaNs correctly.
3486 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3488 * nogc.cc: Use calloc to zero out memory.
3490 1999-01-11 Tom Tromey <tromey@cygnus.com>
3492 * java/lang/natClass.cc (isInstance): Return false if this class
3493 is primitive, not if class of `obj' is primitive.
3494 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3496 * java/io/SequenceInputStream.java (close): Handle case where `in'
3499 * java/text/DateFormat.java (format): New method.
3501 * mauve-libjava: Omit java.text.DateFormat.
3503 1999-01-08 Tom Tromey <tromey@cygnus.com>
3505 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3507 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3509 (_Jv_CondNotifyAll): Likewise.
3511 * configure: Rebuilt.
3512 * configure.in: Change --enable-source-compilation logic to work
3515 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3517 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3518 and RUNTESTFLAGS from AM_MAKEFLAGS.
3519 * configure.in: AM_RUNTESTFLAGS added.
3520 * configure.host: AM_RUNTESTFLAGS added.
3521 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3522 * configure: rebuilt.
3523 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3525 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3526 argv[] made conditional because embedded targets may not have
3528 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3529 explanatory comments added in call to super.
3531 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3532 exception thrown in the test harness itself added.
3533 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3535 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3537 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3539 1999-01-06 Tom Tromey <tromey@cygnus.com>
3541 * java/io/natFile.cc (get_entry): New function.
3542 (performList): Use get_entry.
3543 * include/config.h.in: Rebuilt.
3544 * acconfig.h (HAVE_READDIR_R): New define.
3545 * configure: Rebuilt.
3546 * configure.in: Look for readdir_r.
3548 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3550 * java/util/natDate.cc: Added copyright header.
3552 1999-01-05 Tom Tromey <tromey@cygnus.com>
3554 * include/config.h.in: Rebuilt.
3555 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3556 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3557 * configure: Rebuilt.
3558 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3559 unlink, and realpath.
3560 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3561 (stat): Conditionalize on HAVE_STAT.
3563 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3564 (performMkdir): Conditionalize on HAVE_MKDIR.
3565 (performRenameTo): Conditionalize on HAVE_RENAME.
3566 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3568 * include/config.h.in: Rebuilt.
3569 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3570 * configure: Rebuilt.
3571 * configure.in: Check for gmtime_r and localtime_r. For cross
3572 builds, assume they exist.
3574 * mauve-libjava: Include java.text.DateFormatSymbols again.
3575 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3576 from setAmPmStrings.
3578 * mauve-libjava: Omit java.text.DateFormatSymbols.
3580 1999-01-04 Tom Tromey <tromey@cygnus.com>
3582 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3584 * java/io/LineNumberReader.java (read): Decrement `count' in
3587 * java/io/BufferedWriter.java (write): Correctly determine when
3588 incoming data would overrun buffer. Flush buffer if write causes
3591 * java/io/BufferedOutputStream.java (write): Increment `count'
3592 after copying data into buffer.
3594 * java/io/FilterOutputStream.java (close): Call flush first.
3596 * java/io/PipedReader.java (read): If read causes `out' to catch
3597 up with `in', then set `in' to -1.
3599 * java/io/LineNumberInputStream.java (read): If no bytes read,
3600 return -1. If no bytes requested, return 0.
3602 * java/lang/StringBuffer.java (insert): If `str' is null, use
3605 1998-12-30 Anthony Green <green@cygnus.com>
3608 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3610 1998-12-23 Tom Tromey <tromey@cygnus.com>
3612 * java/io/PushbackInputStream.java (read): `off' already includes
3615 1998-12-17 Tom Tromey <tromey@cygnus.com>
3617 * Makefile.in: Rebuilt.
3618 * Makefile.am (GCJ_canadian): Include target_alias.
3620 * java/lang/natFirstThread.cc (run): Require main's class to be
3623 1998-12-16 Tom Tromey <tromey@cygnus.com>
3625 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3627 * java/util/ResourceBundle.java (getBundle): Throw
3628 NullPointerException if locale argument is null.
3630 * java/lang/natClass.cc (forName): Throw NullPointerException if
3632 Include NullPointerException.h.
3634 1998-12-14 Tom Tromey <tromey@cygnus.com>
3636 * java/lang/Character.java (Character): Implement Comparable.
3637 (compareTo): New methods.
3639 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3640 correct country and language codes.
3641 (UK, US): New constants.
3642 (setDefault): Language codes are lower-case.
3644 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3645 (getDeclaredConstructors): Likewise.
3646 (getDeclaredField): Likewise.
3647 (getDeclaredFields): Likewise.
3648 (getDeclaredMethod): Likewise.
3649 (getDeclaredMethods): Likewise.
3650 (getField): Likewise.
3651 (getFields): Likewise.
3652 (getMethod): Likewise.
3653 (getMethods): Likewise.
3654 * java/lang/Class.java: Declare new methods.
3655 * java/lang/Class.h: Declare new methods.
3657 * java/lang/natString.cc: Removed `#pragma implementation'.
3658 * include/cni.h (_Jv_GetStringChars): New function.
3659 * Makefile.in: Rebuilt.
3660 * Makefile.am (java/lang/String.h): Don't generate definition for
3663 * java/lang/natString.cc: Added `#pragma implementation'.
3665 * Makefile.in: Rebuilt.
3666 * Makefile.am (libjava.zip): Put build directory first in class
3667 path to avoid bug in compiler.
3669 1998-12-14 Anthony Green <green@cygnus.com>
3671 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3673 * include/javaprims.h: Add EventObject, ListResourceBundle and
3676 1998-12-13 Anthony Green <green@cygnus.com>
3678 * mauve-libjava: Run the ResourceBundle tests.
3680 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3683 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3685 * configure.in, configure: Make --enable-gcj-classes and
3686 --enable-source-compilation the default. (Nervously...) Yeah!
3687 Based on a patch from Tom Tromey.
3689 1998-12-13 Tom Tromey <tromey@cygnus.com>
3691 * java/util/EventObject.java: New file.
3692 * java/util/EventListener.java: New file.
3694 * include/javaprims.h: Updated class declarations.
3695 * Makefile.in: Rebuilt.
3696 * Makefile.am (nat_headers): Added Constructor.h.
3697 (java/lang/String.h): Don't inline String::length().
3698 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3699 * java/lang/Class.java (initializeClass, hackRunInitializers,
3700 hackTrampoline): No need to mark `final'.
3701 (getConstructor, getConstructors): Declare.
3702 * java/lang/reflect/Field.java (equals): New method.
3703 * java/lang/natClass.cc (getConstructor): New method.
3704 (getConstructors): Likewise.
3705 Include Method.h, Field.h, Constructor.h.
3706 * java/lang/reflect/Constructor.java: New file.
3707 * java/lang/reflect/Method.java (toString): No space before open
3709 (equals): Simplified.
3711 1998-12-13 Anthony Green <green@cygnus.com>
3713 * java/util/ResourceBundle.java: New file.
3714 * java/util/ListResourceBundle.java: New file.
3716 1998-12-12 Tom Tromey <tromey@cygnus.com>
3718 * java/lang/System.java (in, out, err): Now buffered streams by
3721 * include/javaprims.h: Updated class declarations.
3722 * Makefile.in: Rebuilt.
3723 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3724 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3726 (nat_files): Added natMethod.o.
3727 * java/lang/reflect/natMethod.cc: New file.
3728 * java/lang/reflect/Field.java (Field): Now extends
3730 * java/lang/reflect/AccessibleObject.java: New file.
3731 * java/lang/reflect/InvocationTargetException.java: New file.
3733 1998-12-11 Tom Tromey <tromey@cygnus.com>
3735 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3736 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3737 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3739 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3741 1998-12-09 Tom Tromey <tromey@cygnus.com>
3743 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3746 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3747 character is already titlecase.
3749 * java/lang/Character.java (isJavaLetter): Follow spec.
3750 (isJavaLetterOrDigit): Likewise.
3752 * java/util/GregorianCalendar.java (gregorianCutover): Append
3755 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3757 1998-12-08 Tom Tromey <tromey@cygnus.com>
3759 * java/lang/reflect/Modifier.java (toString): Replace second
3760 `static' with `synchronized'.
3762 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3763 * java/lang/Object.h (Object::hack12_6): Declare.
3764 * java/lang/Object.java (hack12_6): New function.
3766 1998-12-07 Tom Tromey <tromey@cygnus.com>
3768 * include/java-array.h (__JArray::clone): Removed decl.
3769 * prims.cc (__JArray::clone): Removed.
3770 * java/lang/natObject.cc (clone): Incorporate code to clone an
3773 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3774 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3775 Correctly use dtable_method_count.
3777 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3779 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3782 1998-12-06 Anthony Green <green@cygnus.com>
3784 * mauve-libjava: Don't test ResourceBundle.
3786 1998-12-04 Tom Tromey <tromey@cygnus.com>
3788 More JDK 1.2 spec fixes:
3789 * java/util/Date.java (millis): Now private.
3790 * java/text/DateFormat.java (DateFormat): Constructor now
3792 * java/lang/Void.java (Void): New private constructor.
3793 * java/lang/System.java (System): New private constructor.
3794 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3796 (currentClassLoader): New method.
3797 (currentLoadedClass): New method.
3798 * java/lang/Math.java (Math): New private constructor.
3799 * java/lang/Compiler.java (Compiler): New private constructor.
3800 * java/lang/Class.java (Class): New private constructor.
3801 * java/lang/Double.java (toString): Removed access specifier from
3802 two-argument `toString' method.
3804 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3806 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3807 causes it to be flushed from an fp register (where it may be
3808 longer than double precision) to a double in memory. This is
3809 essential to ensure correct rounding behaviour.
3811 1998-12-04 Tom Tromey <tromey@cygnus.com>
3813 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3816 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3817 explaining apparent divergence from JDK 1.2.
3819 1998-12-04 Per Bothner <bothner@cygnus.com>
3821 * include/no-threads.h: Remove unused parameter names.
3822 This silences a bunch of warnings.
3824 1998-12-04 Tom Tromey <tromey@cygnus.com>
3826 * include/config.h.in: Rebuilt.
3827 * acconfig.h (HAVE_CTIME_R): New symbol.
3829 1998-12-03 Tom Tromey <tromey@cygnus.com>
3831 * mauve-libjava: Added many more categories to reject.
3833 Changes to follow JDK1.2 spec:
3834 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3835 setErr, setIn, setOut): No need to be `final'.
3836 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3837 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3838 * java/lang/Object.java (wait): `nanos' argument is an int.
3839 * java/lang/VirtualMachineError.java: Class is abstract.
3840 * java/lang/ThreadDeath.java: Made constructors public.
3841 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3844 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3846 * java/text/DateFormatSymbols.java (getAmPmStrings,
3847 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3849 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3851 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3852 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3853 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3856 * java/lang/IllegalThreadStateException.java
3857 (IllegalThreadStateException): Changed extending class to match spec.
3859 * java/lang/NumberFormatException.java
3860 (java/lang/NumberFormatException): Changed extending class to match
3863 * java/util/Observer.java (Observer): Changed sig to match JCL.
3865 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3867 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3868 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3869 signature to match JDK 1.1 and 1.2.
3871 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3873 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3874 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3875 * Makefile.in, configure: Rebuilt.
3877 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3880 1998-12-02 Tom Tromey <tromey@cygnus.com>
3882 * mauve-libjava: New file.
3884 The remaining `-W -Wall' fixes:
3885 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3887 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3889 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3891 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3893 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3895 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3897 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3899 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3901 * java/lang/mprec.c (Balloc): Removed unused variable.
3902 (mult): Added parentheses per gcc suggestion.
3903 (pow5mult): Likewise.
3908 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3909 suggestion. Added cast to `int' to avoid signed/unsigned
3911 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3913 (IsAssignableFrom): Likewise.
3914 (_Jv_JNI_GetObjectField): Likewise.
3915 (_Jv_JNI_GetByteField): Likewise.
3916 (_Jv_JNI_GetShortField): Likewise.
3917 (_Jv_JNI_GetIntField): Likewise.
3918 (_Jv_JNI_GetLongField): Likewise.
3919 (_Jv_JNI_GetStringLength): Likewise.
3920 (_Jv_JNI_ToReflectedField): Likewise.
3921 (_Jv_JNI_FromReflectedField): Likewise.
3922 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3924 * Makefile.in: Rebuilt.
3925 * Makefile.am (AM_CFLAGS): Define conditionally.
3926 (WARNINGS): New macro.
3927 (AM_CXXFLAGS): Include WARNINGS.
3928 * configure: Rebuilt.
3929 * configure.in (USING_GCC): New conditional.
3931 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3933 * java/lang/Character.java: Changed classification constants to
3934 type `byte' to match JDK 1.2 docs.
3936 1998-12-01 Tom Tromey <tromey@cygnus.com>
3938 Some fixes to be `-W -Wall' clean:
3939 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3940 (_Jv_MarkArray): Likewise.
3941 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3942 (to_upper_title): Likewise.
3943 (isTitleCase): Likewise.
3944 (toTitleCase): Likewise.
3945 (getNumericValue): Likewise.
3946 (isLowerCase): Likewise.
3947 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3948 (avoids compiler warning).
3949 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3951 (getDeclaringClass): Likewise.
3952 (_Jv_LookupInterfaceMethod): Likewise.
3953 (_Jv_NewClass): Removed name of unused parameter.
3954 * exception.cc (_Jv_type_matcher): Removed unused variable.
3955 (_Jv_setup_eh_info): Removed name of unused parameter.
3956 * prims.cc (_Jv_NewArray): Always return a value.
3957 (_Jv_FindClassFromSignature): Likewise.
3958 * include/java-field.h (getNameUtf8Const): Removed name of unused
3960 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3962 (_Jv_ThreadSetPriority): Likewise.
3964 * java/lang/natString.cc (hashChars): Now static.
3966 * java/lang/FirstThread.java (FirstThread): Now final.
3968 * java/io/File.java (performMkdir, performRenameTo): Now private.
3970 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3971 if no time function defined.
3973 * configure: Rebuilt.
3974 * configure.in: Look for ctime_r, ctime.
3975 * java/util/Date.java (toString): Now native.
3976 * java/util/natDate.cc (toString): Rewrote.
3978 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
3980 * Add LDFLAGS line to allow TX39 test cases to link when cross
3983 1998-11-23 Anthony Green <green@cygnus.com>
3985 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3986 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3987 quick-threads.cc, include/boehm-gc.h, include/cni.h,
3988 include/java-array.h, include/java-assert.h, include/java-field.h,
3989 include/javaprims.h, include/jni.h, include/jvm.h,
3990 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3991 include/quick-threads.h, java/io/BufferedInputStream.java,
3992 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3993 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3994 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3995 java/io/CharArrayWriter.java,
3996 java/io/CharConversionException.java, java/io/DataInput.java,
3997 java/io/DataInputStream.java, java/io/DataOutput.java,
3998 java/io/DataOutputStream.java, java/io/EOFException.java,
3999 java/io/File.java, java/io/FileDescriptor.java,
4000 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4001 java/io/FileOutputStream.java, java/io/FileReader.java,
4002 java/io/FileWriter.java, java/io/FilenameFilter.java,
4003 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4004 java/io/FilterReader.java, java/io/FilterWriter.java,
4005 java/io/IOException.java, java/io/InputStream.java,
4006 java/io/InputStreamReader.java,
4007 java/io/InterruptedIOException.java,
4008 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4009 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4010 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4011 java/io/PipedReader.java, java/io/PipedWriter.java,
4012 java/io/PrintStream.java, java/io/PrintWriter.java,
4013 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4014 java/io/RandomAccessFile.java, java/io/Reader.java,
4015 java/io/SequenceInputStream.java, java/io/Serializable.java,
4016 java/io/StreamTokenizer.java,
4017 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4018 java/io/StringWriter.java, java/io/SyncFailedException.java,
4019 java/io/UTFDataFormatException.java,
4020 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4021 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4022 java/io/natFileDescriptorPosix.cc,
4023 java/lang/AbstractMethodError.java,
4024 java/lang/ArithmeticException.java,
4025 java/lang/ArrayIndexOutOfBoundsException.java,
4026 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4027 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4028 java/lang/Class.java, java/lang/ClassCastException.java,
4029 java/lang/ClassCircularityError.java,
4030 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4031 java/lang/ClassNotFoundException.java,
4032 java/lang/CloneNotSupportedException.java,
4033 java/lang/Cloneable.java, java/lang/Comparable.java,
4034 java/lang/Compiler.java, java/lang/Double.java,
4035 java/lang/Error.java, java/lang/Exception.java,
4036 java/lang/ExceptionInInitializerError.java,
4037 java/lang/FirstThread.java, java/lang/Float.java,
4038 java/lang/IllegalAccessError.java,
4039 java/lang/IllegalAccessException.java,
4040 java/lang/IllegalArgumentException.java,
4041 java/lang/IllegalMonitorStateException.java,
4042 java/lang/IllegalStateException.java,
4043 java/lang/IllegalThreadStateException.java,
4044 java/lang/IncompatibleClassChangeError.java,
4045 java/lang/IndexOutOfBoundsException.java,
4046 java/lang/InstantiationError.java,
4047 java/lang/InstantiationException.java, java/lang/Integer.java,
4048 java/lang/InternalError.java, java/lang/InterruptedException.java,
4049 java/lang/LinkageError.java, java/lang/Long.java,
4050 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4051 java/lang/NoClassDefFoundError.java,
4052 java/lang/NoSuchFieldError.java,
4053 java/lang/NoSuchFieldException.java,
4054 java/lang/NoSuchMethodError.java,
4055 java/lang/NoSuchMethodException.java,
4056 java/lang/NullPointerException.java, java/lang/Number.java,
4057 java/lang/NumberFormatException.java, java/lang/Object.h,
4058 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4059 java/lang/Process.java, java/lang/Runnable.java,
4060 java/lang/Runtime.java, java/lang/RuntimeException.java,
4061 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4062 java/lang/Short.java, java/lang/StackOverflowError.java,
4063 java/lang/String.java, java/lang/StringBuffer.java,
4064 java/lang/StringIndexOutOfBoundsException.java,
4065 java/lang/System.java, java/lang/Thread.java,
4066 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4067 java/lang/Throwable.java, java/lang/UnknownError.java,
4068 java/lang/UnsatisfiedLinkError.java,
4069 java/lang/UnsupportedOperationException.java,
4070 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4071 java/lang/Void.java, java/lang/natCharacter.cc,
4072 java/lang/natClass.cc, java/lang/natDouble.cc,
4073 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4074 java/lang/natMath.cc, java/lang/natObject.cc,
4075 java/lang/natRuntime.cc, java/lang/natString.cc,
4076 java/lang/natSystem.cc, java/lang/natThread.cc,
4077 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4078 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4079 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4080 java/text/FieldPosition.java, java/text/Format.java,
4081 java/text/NumberFormat.java, java/text/ParseException.java,
4082 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4083 java/util/BitSet.java, java/util/Calendar.java,
4084 java/util/ConcurrentModificationException.java,
4085 java/util/Date.java, java/util/Dictionary.java,
4086 java/util/EmptyStackException.java, java/util/Enumeration.java,
4087 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4088 java/util/Locale.java, java/util/MissingResourceException.java,
4089 java/util/NoSuchElementException.java, java/util/Observable.java,
4090 java/util/Observer.java, java/util/Properties.java,
4091 java/util/Random.java, java/util/SimpleTimeZone.java,
4092 java/util/Stack.java, java/util/StringTokenizer.java,
4093 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4094 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4097 * exception.cc: Include eh-common.h instead of duplicating
4100 1998-11-23 Tom Tromey <tromey@cygnus.com>
4102 * configure.host: Don't add `-O2' to libjava_flags. Only add
4103 `-Os' to libjava_flags once.
4105 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4107 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4108 * Makefile.in: likewise
4109 * acconfig.h: add ECOS conditional for configure.h
4110 * config.h.in: likewise
4111 * configure: add test for --with-ecos
4112 * configure.in: likewise
4113 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4114 rename call to avoid name clash.
4115 * java/lang/natSystem.cc: add eCos clock support.
4116 * java/util/natGregorianCalendar.cc: add eCos support.
4118 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4120 * Makefile.am, Makefile.in, configure.host: tx39 build option
4123 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4125 * java/io/BufferedReader.java: Added more comments for clarity.
4126 (mark): Used more mnemonic name for local var extraBuffSpace.
4128 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4129 confusion with private method of same name in superclass.
4130 (skipRedundantLF): Set fields in special case to avoid infinite
4131 recursion. Check if markPos has been invalidated in special case.
4132 (readLine): Rewritten to use readLine method of superclass.
4133 (skip): Incorporated code from lineEnd.
4135 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4137 * java/io/BufferedReader.java (readLine): New method.
4138 (lineEnd): new private method.
4139 (mark): Track special case for readLine of getting '\r' at the
4146 * java/io/InputStreamReader.java (read): Return number chars skipped
4147 rather than requested.
4149 * java/lang/StringBuffer.java (append): Update count and differentiate
4150 between field and local variable.
4152 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4153 seconds. Deal with military style time.
4154 (parse): Consistently treat all timezones in minutes until final
4155 calculation. Flag as non-local timezone. Return value in milliseconds.
4156 (setTime): Adjust for year offset from 1900.
4157 (UTC): Adjust for year offset from 1900.
4159 1998-11-17 Tom Tromey <tromey@cygnus.com>
4161 * configure: Rebuilt.
4162 * configure.in: Switch on host, not target.
4164 * Makefile.in: Rebuilt.
4165 * Makefile.am (GCJ_no): New macro.
4166 (GCJ): Use @CANADIAN@.
4167 (GCJH_no): New macro
4168 (GCJH_canadian): New macro.
4169 (GCJH): Use @CANADIAN@.
4170 (ZIP_no): New macro.
4171 (ZIP_canadian): New macro.
4172 (ZIP): Use @CANADIAN@.
4173 * aclocal.m4, configure: Rebuilt.
4174 * configure.in (CANADIAN): Compute and subst.
4176 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4178 * java/io/FileDescriptor.java (finalize): Only close file
4179 descriptor if valid.
4181 1998-11-17 Tom Tromey <tromey@cygnus.com>
4183 * prims.cc (_Jv_InitRuntime): Removed.
4185 1998-11-16 Tom Tromey <tromey@cygnus.com>
4187 * java/io/FileOutputStream.java (close): Only close file
4188 descriptor if valid.
4189 (finalize): New method.
4191 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4192 (_Jv_NewPrimArray): Likewise.
4193 * boehm.cc (_Jv_RegisterFinalizer): Use
4194 GC_REGISTER_FINALIZER_NO_ORDER.
4195 (GC_GENERIC_MALLOC): New define.
4196 (_Jv_AllocObj): Use it.
4197 (_Jv_AllocArray): Likewise.
4198 (_Jv_AllocBytes): Likewise.
4199 (_Jv_MarkObj): Just return if vtbl not set.
4200 (_Jv_MarkArray): Likewise.
4201 (MAYBE_MARK): New macro; use everywhere.
4202 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4204 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4206 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4207 to a jlong before calculation to prevent overflow.
4209 1998-11-16 Tom Tromey <tromey@cygnus.com>
4211 * Makefile.in: Rebuilt.
4212 * Makefile.am (nat_headers): Fixed typo.
4214 1998-11-15 Tom Tromey <tromey@cygnus.com>
4216 * java/lang/Class.h (Class::getName): Removed definition.
4217 * Makefile.in: Rebuilt.
4218 * Makefile.am (nat_headers): Added InstantiationException.h,
4219 NoSuchMethodException.h.
4220 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4221 (init_name): New global.
4222 (hackRunInitializers): Use clinit_name.
4223 Include InstantiationException.h, NoSuchMethodException.h.
4224 (newInstance): Do some error checking (but not all). Call
4226 (forName): Throw exception if class not found.
4227 (getName): New method.
4228 (forName): Transform class name from external format to internal
4229 format before lookup.
4231 1998-11-15 Anthony Green <green@cygnus.com>
4233 * java/lang/Class.h (Class::forName): Method is static.
4235 * java/lang/natClass.cc (newInstance): Add simple implementation.
4238 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4240 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4241 int), for compatibility with jc1.
4243 1998-11-14 Tom Tromey <tromey@cygnus.com>
4245 * include/config.h.in: Rebuilt.
4246 * acconfig.h (LINUX_THREADS): New define.
4247 * configure: Rebuilt.
4248 * configure.in: Define LINUX_THREADS if using POSIX threads on
4249 Linux. Look for pthread_mutexattr_setkind_np function.
4250 * posix-threads.cc (throw_cleanup): New function.
4251 (really_start): Push cleanup function.
4252 (_Jv_ThreadCancel): New function.
4253 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4254 (_Jv_ThreadInitData): Set `exception' field in new structure.
4255 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4257 (_Jv_ThreadWait): New function.
4258 (_Jv_InitThreads): Initialize daemon globals.
4259 (FLAG_DAEMON): New macro.
4260 (really_start): Notify daemon_cond when non-daemon thread exits.
4261 Include <java/lang/System.h>.
4262 (struct starter): `object' field now a thread.
4263 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4264 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4265 (_Jv_ThreadWait): Removed definition.
4266 (_Jv_Thread_t): Added `exception' field.
4267 (_Jv_ThreadCancel): Removed definition.
4269 1998-11-13 Tom Tromey <tromey@cygnus.com>
4271 * Makefile.in: Rebuilt.
4272 * Makefile.am (libjava.zip): Compute javac before changing
4275 * Makefile.in: Rebuilt.
4276 * Makefile.am (libjava.zip): Include directory entries.
4278 * Makefile.in: Rebuilt.
4279 * Makefile.am (expanded): New macro.
4282 1998-11-12 Tom Tromey <tromey@cygnus.com>
4284 * prims.cc (clone): New function.
4285 * include/java-array.h (__JArray::clone): Removed definition.
4287 * java/lang/natObject.cc (clone): Don't assert that class is not
4288 an array; array's `clone' method just calls this one.
4290 * Makefile.in: Rebuilt.
4291 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4292 Now creates zip file. Changed all users.
4294 (data_DATA): New macro.
4296 1998-11-11 Tom Tromey <tromey@cygnus.com>
4298 * configure: Rebuilt.
4299 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4301 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4303 * java/io/InputStream.java (reset): Add msg to thrown exception.
4305 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4307 * java/io/LineNumberInputStream.java: Rewritten.
4309 * java/io/StringBufferInputStream.java: Removed extraneous import.
4311 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4313 * java/io/StringBufferInputStream.java: Rewritten.
4315 * java/util/Date.java (parseMonth): Optimize.
4316 (parseDayOfWeek): Created.
4317 (parse): Optimize to use parseDayOfWeek.
4319 1998-11-11 Tom Tromey <tromey@cygnus.com>
4321 * java/lang/StringBuffer.java (append): Handle case where STR is
4324 * include/javaprims.h: Regenerated class declarations.
4326 * configure: Rebuilt.
4327 * configure.in: Added --enable-gcj-classes,
4328 --enable-single-compilation, --enable-source-compilation flags.
4329 * Makefile.in: Rebuilt.
4330 * Makefile.am (java_io_files): New macro.
4331 (java_lang_files): Likewise.
4332 (java_text_files): Likewise.
4333 (java_util_files): Likewise.
4334 (java_files): Use new macros.
4335 (java-io.o): New target.
4336 (java-lang.o): Likewise.
4337 (java-text.o): Likewise.
4338 (java-util.o): Likewise.
4339 (src_io_files): New macro.
4340 (src_lang_files): Likewise.
4341 (src_text_files): Likewise.
4342 (src_util_files): Likewise.
4343 (class_io_files): New macro.
4344 (class_lang_files): Likewise.
4345 (class_text_files): Likewise.
4346 (class_util_files): Likewise.
4347 (class_files): Use new macros.
4348 (javao_files): Define conditionally.
4349 (.java.o): New target.
4350 ($(javao_files)): New target.
4352 (GCJH): Added $(EXEEXT).
4353 (CLASSPATH_ENV): Removed.
4354 (GCJCOMPILE): New macro.
4356 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4358 * java/util/Date.java (parse): Written from scratch.
4360 1998-11-11 Tom Tromey <tromey@cygnus.com>
4362 * java/lang/Throwable.java (toString): Correct sense of test for
4363 determining when to include detail message in result.
4365 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4368 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4370 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4372 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4373 (_Jv_RegisterClass): Use it.
4374 * include/jvm.h (_Jv_RegisterClasses): Declare.
4375 * java/lang/natObject.cc (init): Removed.
4376 (sync_init): Never call _Jv_InitializeSyncMutex.
4377 (_Jv_InitializeSyncMutex): Don't set `init'.
4378 * prims.cc (JvRunMain): Don't run init functions.
4380 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4382 * java/lang/natClass.cc (initializeClass): Set state before
4383 resolving constants.
4385 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4386 (STATE_RESOLVED): New macro.
4387 (initializeClass): Call resolveConstants.
4388 (hackRunInitializers): Don't call resolveConstants.
4389 (_Jv_FindArrayClass): Move short-circuit return for primitive
4390 element types earlier in function.
4392 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4394 * prims.cc (no_memory): New global.
4395 (_Jv_makeUtf8Const): Throw no_memory.
4396 (_Jv_AllocObject): Likewise.
4397 (_Jv_NewObjectArray): Likewise.
4398 (_Jv_NewPrimArray): Likewise.
4399 (JvRunMain): Initialize no_memory.
4401 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4403 * java/io/FileInputStream.java: Corrected date comment.
4404 * java/io/SequenceInputStream.java: Rewritten.
4406 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4408 * java/lang/FirstThread.java (die): New method.
4409 * java/lang/natFirstThread.cc (die): Removed.
4411 (run): Use `DIE', not `die'.
4413 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4415 * java/io/CharArrayReader.java (read): Move check into synchronized
4416 block to prevent a close while in progress.
4419 * java/io/PushbackReader.java (read): Ditto.
4422 * java/io/StringReader.java (mark): Ditto.
4427 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4429 * java/io/PipedInputStream.java: Updated status.
4430 (connect): Added code to prevent infinite recursion and to
4431 differentiate exception causes.
4432 (read): Added code to differentiate exception causes.
4433 (receive): Made exception pass string with the cause.
4435 * java/io/PipedOutputStream.java: Updated status.
4436 (connect): Added code to call connect at the other end of the pipe.
4438 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4440 * java/io/PipedInputStream.java (connect): Throw exception if
4441 already connected to the same output stream.
4442 (read): Do bounds checking first.
4444 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4446 * java/io/PipedInputStream.java: Added private boolean outClosed.
4447 (available): Removed check if output stream is open.
4448 (close): Mark the buffer as empty so available returns 0.
4449 (read): Check if the output stream was closed and then return EOF
4450 when the buffer is empty.
4451 (receive): Mark the output stream as closed when passed a -1.
4453 * java/io/PipedOutputStream.java (close): Notify the input stream
4454 that there's no more data coming.
4455 (connect): Added a FIXME comment to note more coordination needed
4456 with PipedInputStream.
4457 (flush): Added a FIXME comment to mark what this method might do
4460 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4462 * java/io/PipedInputStream.java: Rewritten.
4464 1998-10-30 Tom Tromey <tromey@cygnus.com>
4466 * java/lang/Throwable.java: Rewrote from scratch.
4468 * java/lang/Class.h (Class): Don't mention newMultiArray.
4469 * prims.cc (newMultiArray): Removed.
4470 (_Jv_NewMultiArray): Removed.
4471 (newArray): Removed.
4472 (new_multi_array): New function.
4473 (_Jv_NewMultiArray): Rewrote from scratch.
4475 * include/javaprims.h: Regenerated class declarations.
4476 * classes.pl (scan): Don't declare PrimClass.
4477 * include/cni.h (JvPrimClass): Use new names for classes.
4478 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4479 added _Jv_PrimClass.
4480 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4481 (_Jv_initPrimClass): Removed.
4482 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4483 (_Jv_AllocObject): Added comment.
4484 (_Jv_NewObjectArray): Likewise.
4485 (_Jv_NewPrimArray): Likewise.
4487 1998-10-29 Tom Tromey <tromey@cygnus.com>
4489 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4490 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4492 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4494 * java/lang/natObject.cc (init): New global.
4495 (sync_init): Call _Jv_InitializeSyncMutex if required.
4497 * Makefile.in: Rebuilt.
4498 * Makefile.am (nat_headers): Added ClassLoader.h.
4499 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4500 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4501 internalAddClass, lookupArray no longer friends.
4502 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4503 _Jv_FindArrayClass now friends.
4504 * java/lang/natClass.cc (HASH_LEN): New macro.
4505 (HASH_UTF): Likewise.
4506 (loaded_classes): New global.
4507 (_Jv_FindClass): New function.
4508 (ClassClass): New define.
4509 (_Jv_FindClassInCache): New function.
4510 (_Jv_RegisterClass): Likewise.
4511 (_Jv_NewClass): Likewise.
4513 (ObjectClass): New define.
4514 (CloneableClass): New define.
4515 * prims.cc (_Jv_FindClass): Removed.
4516 (simpleLookupClass): Removed.
4517 (insertClass): Removed.
4518 (CLASSHASHSZ): Removed.
4519 (classPool): Removed.
4520 (_Jv_RegisterClass): Removed.
4521 (internalAddClass): Removed.
4522 (ClassClass): Removed.
4523 (RuntimeClass): Removed.
4524 (lookupArray): Removed.
4525 (CloneableClass): Removed.
4526 (CLASSMAXSIG): Removed.
4527 Rearranged file to group related functions together.
4528 (_Jv_IsInstanceOf): Moved to natClass.cc.
4529 (abort_final): Removed.
4530 Removed some unused includes.
4531 (classFromSig): Removed.
4532 (_Jv_FindClassFromSignature): New function.
4533 (_Jv_initPrimClass): Renamed.
4534 (getClass): Removed.
4536 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4538 * java/io/FileDescriptor.java (finalize): Throws IOException
4539 instead of Throwable.
4541 * java/io/FileInputStream.java: Rewritten.
4543 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4544 at the end of a comment.
4546 1998-10-29 Tom Tromey <tromey@cygnus.com>
4548 * include/javaprims.h: Regenerated class declarations.
4549 * classes.pl (scan): Don't special-case ClassLoader.
4551 * prims.cc (processClass): Removed.
4552 (_Jv_InitClass): Removed.
4553 Removed all CSTATE_ macros.
4554 (resolveConstants): Removed.
4556 (_Jv_NewMultiArray): Cleaned up.
4557 * Makefile.in: Rebuilt.
4558 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4559 * java/lang/Class.h (Class): Declare new methods. processClass no
4561 * java/lang/Class.java (hackTrampoline): New method.
4562 (initializeClass): Declare.
4563 (hackRunInitializers): Declare.
4564 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4565 (initializeClass): New method.
4566 (hackRunInitializers): New method.
4567 (init_name, void_signature): Moved from prims.cc.
4568 (_Jv_InitClass): New function.
4569 (isAssignableFrom): Don't call processClass.
4570 (STATE_NOTHING): New macro.
4571 (resolveConstants): New function.
4573 (ErrorClass): New define.
4575 * java/lang/Class.java (getClassLoader): Declare.
4576 * java/lang/ClassLoader.java: Rewrote from scratch.
4578 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4579 AbstractMethodError.h, IllegalAccessError.h,
4580 NoClassDefFoundError.h.
4581 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4582 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4583 longer static. Changed return type.
4584 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4585 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4586 * prims.cc (findMethodLocal): Removed.
4587 (processClass): Use _Jv_GetMethodLocal.
4589 1998-10-28 Tom Tromey <tromey@cygnus.com>
4591 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4592 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4594 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4595 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4597 * include/jni.h: Added copyright header.
4598 * include/javaprims.h: Added copyright header.
4599 * include/java-field.h: Added copyright header.
4600 * include/java-array.h: Added copyright header.
4601 * include/cni.h: Added copyright header.
4603 * include/javaprims.h: Regenerated class declarations using
4604 classes.pl; now they are complete.
4605 * classes.pl: New file.
4607 * java/lang/natMath.cc: Include <config.h>.
4608 * java/lang/reflect/natField.cc: Include <config.h>.
4609 * java/util/NativeUtil.java: Removed.
4610 * Makefile.in: Rebuilt.
4611 * Makefile.am (nat_headers): Added Math.h.
4612 * java/lang/Math.h: Removed.
4613 * java/util/natGregorianCalendar.cc: Added copyright header.
4615 * java/lang/natFloat.cc: Added copyright header.
4616 * java/lang/Byte.java: Added copyright header.
4617 * java/lang/Void.java: Added copyright header.
4618 * java/lang/Short.java: Added copyright header.
4620 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4622 * include/javaprims.h (java::io): Added bunch of missing classes.
4624 * java/io/DataInputStream.java (readLine): Added a special case
4625 for handling BufferedInputStream data to reduce the likelihood
4626 of a pushback error.
4627 (skipBytes): Added code to handle negative number of skip bytes.
4629 * java/io/StreamTokenizer.java: Rewritten.
4631 1998-10-28 Tom Tromey <tromey@cygnus.com>
4633 * java/util/natGregorianCalendar.cc (computeFields): Call
4634 getRawOffset as a method.
4636 * include/javaprims.h (java::io): Added FilterOutputStream.
4637 * Makefile.in: Rebuilt.
4638 * Makefile.am (nat_headers): Added PrintStream.h,
4639 FilterOutputStream.h.
4640 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4642 (die): New function.
4643 (run): Die if `main' not found, is not public, or is not static.
4645 * boehm.cc (_Jv_MarkObj): Use new field names.
4646 * include/java-field.h (JvGetFirstInstanceField): Use new field
4648 (JvNumInstanceFields): Likewise.
4649 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4650 (getInterfaces): Likewise.
4651 * prims.cc (CLASS_CONSTANTS): Removed.
4652 (CLASS_CONST_SIZE): Likewise.
4653 (CLASS_CONST_TAG): Likewise.
4654 (CLASS_CONST_DATA): Likewise.
4655 (CLASS_CONST_UTF8): Likewise.
4656 (WORD2UTF): Likewise.
4657 (CLASS_CLASS): Likewise.
4658 (CLASS_PRIM_SIG): Likewise.
4659 (CLASS_ARRAY_CACHE): Likewise.
4660 (HASH_CHARS): Likewise.
4661 (hashClassName): Likewise.
4662 Many changes to use new field names.
4663 * java/lang/Class.h (Class): Renamed fields to track compiler.
4665 1998-10-27 Tom Tromey <tromey@cygnus.com>
4667 * java/lang/natClass.cc: Use #pragma implementation.
4668 (getComponentType): Moved into header.
4669 (getModifiers): Likewise.
4670 (getName): Likewise.
4671 (getSuperclass): Likewise.
4672 (isArray): Likewise.
4673 (isPrimitive): Likewise.
4674 * include/jvm.h (_Jv_FindClass): Declare.
4675 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4676 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4677 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4678 * java/lang/Class.h: Rewrote from scratch.
4679 * prims.cc: Many changes to work with new Class.h.
4680 * include/java-field.h (CLASS_FIELDS): Removed.
4681 (CLASS_SFIELDS): Likewise.
4682 (CLASS_IFIELDS): Likewise.
4683 (CLASS_NFIELDS): Likewise.
4684 (CLASS_NIFIELDS): Likewise.
4685 (CLASS_NSFIELDS): Likewise.
4686 (CLASS_FSIZE): Likewise.
4687 (JvGetFirstInstanceField): Rewrote.
4688 (JvNumInstanceFields): Likewise.
4690 * java/lang/Object.h: Added copyright comment.
4692 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4694 * java/text: New package directory.
4695 * java/text/FieldPosition.java: New class.
4696 * java/text/ParsePosition.java: New class.
4697 * java/text/ParseException.java: New Exception class.
4698 * java/text/Format.java: New class.
4699 * java/text/NumberFormat.java: New (empty placeholder) class.
4700 * java/text/DateFormatSymbols.java: New class (no Locales support).
4701 * java/text/DateFormat.java: New Format class (incomplete).
4702 * java/text/SimpleDateFormat.java: New DateFormat class.
4704 * include/javaprims.h (java::test): Added new package and classes.
4705 * java/util/Calendar.java (clone): New method.
4706 * java/util/Date.java (toString): Added non-native implementation.
4707 (parse): Made public instead of synchronized.
4708 * java/util/natDate.cc (toString): Removed.
4709 * java/util/natGregorianCalendar.cc (computeFields):
4710 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4712 1998-10-27 Tom Tromey <tromey@cygnus.com>
4714 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4716 * prims.cc (lookupArray): Added explanatory comment.
4717 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4718 class. Mark the class of each object.
4719 (_Jv_MarkArray): Mark the object's class.
4721 * configure: Rebuilt.
4722 * configure.in: Create java-gc.h.
4723 * include/boehm-gc.h: New file.
4724 * include/no-gc.h: New file.
4725 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4727 * java/lang/Object.h: Include java-gc.h.
4728 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4729 friends, if defined.
4730 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4732 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4734 1998-10-26 Tom Tromey <tromey@cygnus.com>
4736 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4737 paragraph separators, not numbers.
4739 * java/io/Writer.java (write): Removed write(char) to avoid
4741 * java/util/Properties.java: Rewrote from scratch.
4742 * include/javaprims.h (java::io): Added PrintWriter,
4743 BufferedWriter, PushbackReader.
4745 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4747 * java/lang/System.java: exit() is a static method.
4749 1998-10-26 Tom Tromey <tromey@cygnus.com>
4751 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4753 (_Jv_NewStringUtf8Const): Likewise.
4754 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4755 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4757 * java/lang/Object.h (Object): Add mark_array as friend function.
4758 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4759 _Jv_AllocBytes, to ensure that header is marked.
4760 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4762 (mark_array): Push sync_info field for array.
4764 1998-10-24 Tom Tromey <tromey@cygnus.com>
4766 * java/lang/String.java (String): Updated for StringBuffer
4768 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4770 * java/lang/StringBuffer.java: Renamed fields to conform to
4771 serialization spec: buffer->value, next->count, copy->shared.
4773 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4775 * java/util/TimeZone.java: New class.
4776 * java/util/SimpleTimeZone.java: New class.
4777 * java/util/Locale.java: New file.
4778 * java/util/Calendar.java: Make almost complete.
4779 * java/util/GregorianCalendar.java
4780 * java/util/natGregorianCalendar.cc: New file.
4781 * java/util/Date.java: Re-written from scratch.
4782 * java/util/natDate.cc (setTime): Removed - no longer native.
4783 * include/javaprims.h (java::util): Add new classes.
4784 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4785 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4787 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4789 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4790 returning it as a jint.
4792 1998-10-23 Tom Tromey <tromey@cygnus.com>
4794 * prims.cc (arg_vec, main_group, main_thread): New globals.
4795 (JvRunMain): Use them.
4797 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4799 * java/io/DataInputStream.java: Rewritten.
4801 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4802 tertiary bytes with 0x80 per spec.
4804 1998-10-23 Tom Tromey <tromey@cygnus.com>
4806 * java/lang/String.java (init): Changed name of `copy' argument.
4807 * java/lang/natString.cc (init): Inverted sense of `copy'
4810 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4811 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4812 * boehm.cc (ObjectClass): New define.
4813 (ClassClass): Likewise.
4814 (mark_obj): Special-case Object and Class.
4816 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4818 * java/util/BitSet.java: Rewrote from scratch.
4820 * prims.cc (lookupArray): Removed useless cast.
4822 * java/lang/natObject.cc: Use `#pragma implementation'.
4824 * java/lang/String.java (init): Added `copy' argument.
4825 (String): Look in StringBuffer to find char array.
4826 * java/lang/natString.cc (init): Added `copy' argument.
4827 * java/lang/StringBuffer.java: Rewrote from scratch.
4829 * java/lang/Compiler.java: Rewrote from scratch.
4830 * java/lang/Throwable.java: Don't use NativeLang.
4831 * include/javaprims.h (java::lang): Don't mention NativeLang.
4832 * java/lang/Process.java: Rewrote from scratch.
4833 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4835 (currentClassLoader): Likewise.
4836 (currentLoadedClass): Likewise.
4837 * java/lang/natClass.cc (getClassLoader): Commented out.
4838 * java/lang/Class.java (getClassLoader): Commented out.
4839 * java/lang/Compiler.java: Removed.
4840 * java/lang/NativeLang.java: Removed.
4842 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4843 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4844 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4845 (_Jv_hashUtf8String): Now static.
4846 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4847 name of return type.
4849 * java/lang/Class.h (Class): Declare checkMemberAccess.
4850 * Makefile.in: Rebuilt.
4851 * Makefile.am (nat_headers): Added Member.h.
4852 * java/lang/natClass.cc: Include Member.h.
4853 (getDeclaredClasses): Call checkMemberAccess.
4854 * java/lang/Class.java (checkMemberAccess): Call
4855 SecurityManager.checkMemberAccess.
4857 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4859 * java/lang/SecurityManager.java: Rewritten.
4861 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4863 * java/applet/Applet.java, java/applet/AppletContext.java,
4864 java/applet/AppletStub.java, java/applet/AudioClip.java,
4865 java/awt/AWTError.java, java/awt/AWTException.java,
4866 java/awt/BorderLayout.java, java/awt/Button.java,
4867 java/awt/Canvas.java, java/awt/CardLayout.java,
4868 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4869 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4870 java/awt/Color.java, java/awt/Component.java,
4871 java/awt/Container.java, java/awt/Dialog.java,
4872 java/awt/Dimension.java, java/awt/Event.java,
4873 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4874 java/awt/Font.java, java/awt/FontMetrics.java,
4875 java/awt/Frame.java, java/awt/Graphics.java,
4876 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4877 java/awt/GridLayout.java, java/awt/Image.java,
4878 java/awt/Insets.java, java/awt/Label.java,
4879 java/awt/LayoutManager.java, java/awt/List.java,
4880 java/awt/MediaTracker.java, java/awt/Menu.java,
4881 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4882 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4883 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4884 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4885 java/awt/TextArea.java, java/awt/TextComponent.java,
4886 java/awt/TextField.java, java/awt/Toolkit.java,
4887 java/awt/Window.java, java/awt/image/ColorModel.java,
4888 java/awt/image/CropImageFilter.java,
4889 java/awt/image/DirectColorModel.java,
4890 java/awt/image/FilteredImageSource.java,
4891 java/awt/image/ImageConsumer.java,
4892 java/awt/image/ImageFilter.java,
4893 java/awt/image/ImageObserver.java,
4894 java/awt/image/ImageProducer.java,
4895 java/awt/image/IndexColorModel.java,
4896 java/awt/image/MemoryImageSource.java,
4897 java/awt/image/PixelGrabber.java,
4898 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4899 java/awt/peer/CanvasPeer.java,
4900 java/awt/peer/CheckboxMenuItemPeer.java,
4901 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4902 java/awt/peer/ComponentPeer.java,
4903 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4904 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4905 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4906 java/awt/peer/MenuBarPeer.java,
4907 java/awt/peer/MenuComponentPeer.java,
4908 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4909 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4910 java/awt/peer/TextAreaPeer.java,
4911 java/awt/peer/TextComponentPeer.java,
4912 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4913 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4914 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4915 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4916 java/net/MalformedURLException.java, java/net/NativeNet.java,
4917 java/net/ProtocolException.java, java/net/ServerSocket.java,
4918 java/net/Socket.java, java/net/SocketException.java,
4919 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4920 java/net/URL.java, java/net/URLConnection.java,
4921 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4922 java/net/URLStreamHandlerFactory.java,
4923 java/net/UnknownHostException.java,
4924 java/net/UnknownServiceException.java: Removed.
4926 1998-10-22 Tom Tromey <tromey@cygnus.com>
4928 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4929 finalizer is not Object.finalize.
4930 (internalAddClass): Don't set `final' member of class.
4931 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4932 other places that know about finalize() location.
4933 * java/lang/Class.h (Class): Removed `final' field.
4935 * aclocal.m4, configure: Rebuilt.
4936 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4937 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4939 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4940 * Makefile.in: Rebuilt.
4941 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4943 1998-10-21 Tom Tromey <tromey@cygnus.com>
4945 * java/lang/Object.java (finalize): Move to be first method in
4948 * configure: Rebuilt.
4949 * configure.in (GCINCS): Include contents of boehm-cflags file.
4951 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4953 * java/lang/ArrayIndexOutOfBoundsException.java
4954 (ArrayIndexOutOfBoundsException): Fixed string literal.
4955 * java/lang/StringIndexOutOfBoundsException.java
4956 (StringIndexOutOfBoundsException): Fixed string literal.
4958 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4960 * natFileDescriptorEcos.cc added.
4961 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4963 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4965 * acconfig.h: test for __int32_t and __uint32_t added.
4966 * include/config.h.in: test for __int32_t and __uint32_t added.
4967 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4968 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4969 * configure.in: test for __int32_t and __uint32_t added.
4970 * configure: test for __int32_t and __uint32_t added.
4972 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4974 * configure.in: Test for --enable ecos and link
4975 natFileDescriptor.cc to natFileDescriptorEcos.cc or
4976 natFileDescriptorPosix.cc
4978 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4980 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
4982 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4985 * java/io/CharArrayReader.java (close): Synchronize on lock
4986 object per Reader contract.
4987 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4988 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4989 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4990 Ensure that arg passed in isn't negative.
4992 * java/io/FilterReader.java (FilterReader): Use the lock obj when
4993 constructing the superclass.
4995 * java/io/PushbackReader.java (close): Synchronize on lock
4996 object per Reader contract.
4997 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4998 (ready): Synchronize on lock obj. Throw IOException if reader
5000 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5001 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5002 Ensure that arg passed in isn't negative.
5003 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5005 * java/io/StringReader.java: Created.
5007 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5009 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5011 (read): Removed synchronized modifier to match JCL.
5012 (reset): Removed synchronized modifier to match JCL.
5013 (skip): Removed synchronized modifier to match JCL.
5015 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5017 * java/io/PushbackReader.java (PushbackReader): Made
5018 constructors public.
5020 1998-10-17 Tom Tromey <tromey@cygnus.com>
5022 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5023 constructors public.
5025 1998-10-16 Anthony Green <green@cygnus.com>
5027 * aclocal.m4, configure: Rebuilt.
5028 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5030 * configure.host: Rewrote.
5031 * Makefile.in: Rebuilt.
5032 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5033 (AM_CFLAGS): New macro.
5034 ($(c_files)): Use COMPILE macro.
5035 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5036 automake problem(s).
5038 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5040 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5042 * java/io/CharArrayReader.java: Created.
5044 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5046 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5047 size check to allow 0 per JCL.
5049 * java/io/PushbackReader.java: Created.
5051 1998-10-16 Tom Tromey <tromey@cygnus.com>
5053 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5054 <sys/time.h> includes.
5055 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5056 * include/no-threads.h: Conditionalize <unistd.h> include on
5059 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5061 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5064 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5066 * java/io/FilterReader.java: Created.
5068 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5070 * java/io/PushbackInputStream.java: Rewritten.
5072 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5073 that size passed to constructor is legal.
5074 (read): Check that args passed in are legal.
5075 (skip): Rewritten to get rid of the temporary buffer.
5076 (refill): Added marklimit check to grow the buffer.
5078 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5080 (bytesAvail): Removed.
5081 (read): Changed bytesAvail to Math.min.
5082 (skip): Changed bytesAvail to Math.min.
5084 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5085 from the throws clause.
5086 (skip): Rewritten to use a temporary buffer.
5088 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5090 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5093 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5095 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5096 to write the double one word at a time.
5098 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5100 * java/io/BufferedInputStream.java: Rewritten.
5102 1998-10-12 Tom Tromey <tromey@cygnus.com>
5104 * jni.cc: Include config.h and stddef.h.
5106 * java/lang/Class.h (_dispatchTable): Removed again.
5107 Removed all ACC_* defines again.
5109 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5111 * Makefile.am (nat_files): Add netField.o.
5112 (libjava_a_SOURCES): Add jni.cc.
5113 (java/lang/reflect/Field.h): New rule.
5114 * Makefile.in: Re-generated.
5115 * include/javaprims.h: Add some extra class and typedefs.
5116 * include/jni.h: New file.
5119 * include/java-field.h: New file.
5120 * include/jvm.h: #include <java-field.h>.
5121 * boehm.cc: #include <java-field.h>.
5122 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5123 * java/lang/reflect/Member.java: New class.
5124 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5125 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5127 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5129 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5130 testsuite/Makefile.in: Rebuilt.
5131 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5132 * configure.host: Created.
5134 1998-10-10 Tom Tromey <tromey@cygnus.com>
5136 * java/lang/natObject.cc (sync_init): Always allocate a new
5139 1998-10-09 Tom Tromey <tromey@cygnus.com>
5141 * java/io/ByteArrayInputStream.java (mark): Renamed from
5144 * java/io/FileOutputStream.java (finalize): Removed.
5145 * java/io/FileDescriptor.java (finalize): New method.
5147 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5149 * ByteArrayInputStream.java: Corrected status comment.
5151 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5153 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5155 1998-10-08 Tom Tromey <tromey@cygnus.com>
5157 * prims.cc (lookupArray): Use static array to initialize list of
5160 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5162 * prims.cc (lookupArray): Initialize the msize for new
5165 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5167 * configure: Rebuilt.
5168 * configure.in: Check for fsync and sleep.
5169 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5171 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5172 HAVE_SLEEP. Include config.h.
5174 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5175 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5178 1998-10-08 Tom Tromey <tromey@cygnus.com>
5180 * java/io/natFile.cc: Don't include SecurityManager.h.
5181 (performList): Renamed.
5182 (performMkdir): Likewise.
5183 (performRenameTo): Likewise.
5184 (performDelete): Likewise.
5186 * java/io/File.java (performDelete): Renamed from natDelete.
5187 (list): Now written in Java.
5188 (performList): New method.
5189 (performMkdir): New method.
5190 (mkdir): Now written in Java.
5191 (performRenameTo): New method.
5192 (renameTo): Now written in Java.
5194 1998-10-06 Tom Tromey <tromey@cygnus.com>
5196 * Makefile.in: Rebuilt.
5197 * Makefile.am (ETAGS_ARGS): New macro.
5198 (TAGS_DEPENDENCIES): Likewise.
5200 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5202 * Makefile.in: Rebuilt.
5203 * Makefile.am: Use -classpath option with javac.
5205 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5207 * java/io/FileOutputStream.java (finalize): Call
5210 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5212 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5214 * java/lang/mprec.c: Ditto.
5216 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5219 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5221 * java/io/InputStream.java (skip): Make local var i a long.
5223 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5225 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5226 * prims.cc (lookupArray): Use memcpy, not memmove.
5227 * include/config.h.in: Rebuilt.
5228 * acconfig.h (HAVE_MEMCPY): Added.
5229 * configure: Rebuilt.
5230 * configure.in: Check for memcpy again.
5232 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5233 String.compareTo, not ==.
5235 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5236 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5237 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5238 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5239 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5240 into new array's dtable.
5241 (_Jv_AllocObject): Use _Jv_DispatchTable.
5242 (_Jv_NewPrimArray): Likewise.
5243 (_Jv_NewObjectArray): Likewise.
5245 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5247 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5248 offending index value.
5249 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5251 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5252 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5254 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5256 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5258 * java/io/OutputStream.java (write): Use off and len parameters to
5259 output partial byte array.
5261 * java/io/BufferedReader.java, java/io/FileReader.java,
5262 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5263 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5264 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5265 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5267 * include/javaprims.h (java::lang): Added
5268 ExceptionInInitializerError, IllegalStateException,
5269 NoSuchFieldException, and UnsupportedOperationException.
5271 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5273 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5276 * include/java-array.h (__JArray): Added clone method.
5277 * prims.cc (CloneableClass): New define.
5278 (lookupArray): Initialize array class to indicate that it
5279 implements Cloneable.
5281 * java/lang/Class.h: Removed all ACC_* defines.
5282 * prims.cc: Include Modifier.h.
5283 (_Jv_LookupInterfaceMethod): Use methods in
5284 java.lang.reflect.Modifier, not ACC_ defines.
5286 * java/lang/Class.h (Class): Declare getClasses,
5287 getDeclaredClasses, getDeclaringClass, getModifiers,
5288 * java/lang/Class.java: Rewrote from scratch.
5290 * include/javaprims.h (java::lang): Added reflect and
5292 * Makefile.in: Rebuilt.
5293 * Makefile.am (nat_headers): Added Modifier.h.
5295 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5298 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5300 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5301 instead of test and abort.
5303 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5304 remove compiler warning.
5306 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5308 * java/lang/natDouble.cc: zero terminate string.
5309 * strtod.c: Set errno if no digits are found in fraction.
5311 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5313 * java/lang/reflect/Modifier.java: New file.
5315 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5316 * java/lang/VerifyError.java: Rewrote from scratch.
5317 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5318 * java/lang/UnknownError.java: Rewrote from scratch.
5319 * java/lang/StackOverflowError.java: Rewrote from scratch.
5320 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5321 * java/lang/InternalError.java: Rewrote from scratch.
5322 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5323 * java/lang/ExceptionInInitializerError.java: New file.
5324 * java/lang/Error.java: Rewrote from scratch.
5325 * java/lang/ClassFormatError.java: Rewrote from scratch.
5326 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5327 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5328 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5329 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5330 * java/lang/LinkageError.java: Rewrote from scratch.
5331 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5333 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5335 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5336 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5338 * include/cni.h (JvAllocObject): Moved from prims.cc.
5340 * prims.cc (JvAllocObject): Moved to cni.h.
5341 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5342 (finalize_name): Removed.
5344 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5346 * java/lang/Class.h (Class): Added size() method.
5347 * prims.cc (_Jv_MonitorEnter): Removed.
5348 (_Jv_MonitorExit): Removed.
5349 * java/lang/Object.h (JvSyncInfo): Removed.
5350 * Makefile.in: Rebuilt.
5351 * Makefile.am (nat_headers): Added Cloneable.h,
5352 CloneNotSupportedException.h.
5353 * java/lang/Object.h: Rewrote.
5354 * java/lang/natObject.cc: Rewrote from scratch.
5355 * java/lang/Object.java: Rewrote from scratch.
5357 * java/io/natFile.cc: Conditionally include <dirent.h>.
5358 (list): If no <dirent.h>, always return NULL.
5359 * configure: Rebuilt.
5360 * configure.in: Check for dirent.h.
5362 * prims.cc (lookupArray): Don't use sprintf.
5364 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5371 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5372 name conflict with method.
5374 * include/javaprims.h (java::util): Added HashtableEntry.
5376 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5378 * java/util/Hashtable.java: Rewritten.
5380 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5382 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5386 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5389 * posix-threads.cc (_Jv_CondWait): Now returns int.
5390 * include/javaprims.h (java::lang): Added
5391 IllegalMonitorStateException.
5392 * Makefile.in: Rebuilt.
5393 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5394 * include/no-threads.h (_Jv_CondDestroy): Removed.
5395 (_Jv_MutexDestroy): Removed.
5396 (_Jv_CondWait): Now returns int.
5397 (_Jv_CondNotify): Likewise. Added mutex argument.
5398 (_Jv_CondNotifyAll): Likewise.
5399 (_Jv_MutexLock): Always succeed.
5400 (_Jv_MutexUnlock): Likewise.
5401 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5402 (_Jv_HaveMutexDestroy): Define.
5403 (_Jv_CondNotify): Now returns int. Added mutex argument.
5404 (_Jv_CondNotifyAll): Likewise.
5405 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5406 (_Jv_MutexDestroy): Removed.
5407 (_Jv_CondWait): Now returns int.
5408 (_Jv_CondNotify): Likewise. Added mutex argument.
5409 (_Jv_CondNotifyAll): Likewise.
5410 * java/lang/natObject.cc (finalize_sync_info): New function.
5411 (init_mutex): Initialize `init' and register finalizer if
5414 (init_mutex): Use it.
5416 (notifyAll): Use it.
5418 (notify): Throw IllegalMonitorStateException on failure.
5419 (notifyAll): Likewise.
5420 (wait): Likewise. Also, throw InterruptedException if
5422 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5423 InterruptedException.h, IllegalArgumentException.h.
5424 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5426 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5427 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5428 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5429 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5430 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5431 * quick-threads.cc: Renamed all `JvPriv' functions.
5432 * prims.cc: Renamed all `JvPriv' functions.
5433 * posix-threads.cc: Renamed all `JvPriv' functions.
5434 * nogc.cc: Renamed all `JvPriv' functions.
5435 * no-threads.cc: Renamed all `JvPriv' functions.
5436 * boehm.cc: Renamed all `JvPriv' functions.
5437 * include/quick-threads.h: Renamed all `JvPriv' functions.
5438 * include/posix-threads.h: Renamed all `JvPriv' functions.
5439 * include/no-threads.h: Renamed all `JvPriv' functions.
5440 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5442 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5444 (JvPrivCondNotify): Do nothing.
5445 (JvPrivCondNotifyAll): Do nothing.
5447 * prims.cc (processClass): Handle case where state is
5450 * java/lang/natFirstThread.cc: Include <stdlib.h>
5452 * configure: Rebuilt.
5453 * configure.in: Fixed sense of --enable-libjava-debug.
5455 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5456 it can be used afterward by the assertion.
5458 * configure: Rebuilt.
5459 * configure.in: When cross-compiling, assume alloca.
5461 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5462 __builtin_alloca (autoconf docs are wrong here).
5464 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5466 (available): Use `FD_ZERO' (typo fix).
5468 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5470 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5471 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5473 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5474 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5477 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5479 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5481 * java/lang/natDouble.cc: Declare alloca safely.
5483 * configure, include/config.h.in: Rebuilt.
5484 * configure.in: Add alloca check.
5486 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5488 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5489 condition while calling notify.
5490 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5491 (interrupt): Hold mutex for interrupt condition while calling
5494 * java/lang/natString.cc (init): Allocate and try to read `count'
5495 characters, not `count - offset' characters.
5497 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5498 Correctly compute `count'.
5500 * java/lang/Boolean.java (getBoolean): Return false if property
5503 * java/lang/System.java (setProperties): Set prop_init.
5505 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5507 * java/io/PrintStream.java (println): Use line.separator, not
5509 * java/lang/System.java (out, err): Make both autoflush streams.
5510 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5512 * include/config.h.in: Rebuilt.
5513 * acconfig.h (HAVE_MEMCPY): Removed.
5514 * configure: Rebuilt.
5515 * configure.in: Never define HAVE_MEMCPY.
5517 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5519 (_Jv_AllocString): Use JvAllocObject again.
5520 * java/lang/Class.h (thread): New field.
5521 (_Jv_AllocString): No longer a friend.
5522 * prims.cc (processClass): Removed dead code. Changed to more
5523 closely follow the Java Language Specification.
5524 (processClass): Return early if already at the right state.
5526 * prims.cc (JvNewStringUTF): Removed.
5527 * include/cni.h (JvNewStringUTF): New function.
5528 (_Jv_NewStringUTF): Declare as `extern "C"'.
5529 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5531 * java/lang/natDouble.cc: Added copyright info and header
5532 comment. Include <stdlib.h>.
5533 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5534 bytes as are chars in string.
5536 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5538 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5542 * java/lang/System.java (init_properties): Now native.
5543 * java/lang/natSystem.cc (init_properties): New method.
5544 Include java/util/Properties.h.
5546 * Makefile.in: Rebuilt.
5547 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5548 OutputStreamWriter.h, ByteArrayInputStream.h,
5549 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5550 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5551 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5552 Properties.h, Hashtable.h, Dictionary.h.
5555 * include/javaprims.h (java::io): Added Reader, Writer,
5556 InputStreamReader, OutputStreamWriter,
5557 UnsupportedEncodingException, ByteArrayInputStream,
5558 ByteArrayOutputStream, EOFException, SyncFailedException,
5559 PushbackInputStream.
5560 (java::lang): Added Cloneable.
5561 (java::util): Added NoSuchElementException, VectorEnumeration,
5562 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5564 * java/io/PipedReader.java: New file.
5566 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5568 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5571 * java/io/io-defs.h: Removed.
5573 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5574 (FileInputStream): Use new constructor. Can throw IOException.
5576 * java/lang/System.java (getProperty): Don't throw
5577 NullPointerException.
5579 * java/io/RandomAccessFile.java: Rewrote from scratch.
5581 * java/io/natFileDescriptor.cc: Include EOFException.h.
5583 (length): New method.
5584 (getFilePointer): New method.
5586 (available): New method.
5587 * java/io/FileDescriptor.java (SET, CUR): New constants.
5588 (seek, length, getFilePointer, read, available): New decls.
5590 * java/io/PipedWriter.java: New file.
5591 * java/io/StringWriter.java: New file.
5592 * java/io/CharArrayWriter.java: New file.
5593 * java/io/CharConversionException.java: New file.
5594 * java/io/BufferedWriter.java: New file.
5595 * java/io/FilterWriter.java: New file.
5596 * java/io/FileWriter.java: New file.
5598 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5599 OutputStreamWriter.h, NullPointerException.h,
5600 ByteArrayInputStream.h, InputStreamReader.h.
5601 (getBytes): New method.
5602 (init): Throw NullPointerException.
5603 (init): New function.
5604 * java/lang/String.java (getBytes): Added missing decl.
5605 (getBytes): New method.
5606 (String): Added byte[]-based constructors.
5607 (copyValueOf): Wrote.
5608 (init): Declare variant which takes byte array and encoding.
5609 Import java.io.UnsupportedEncodingException.
5611 * java/io/File.java: Rewrote from scratch.
5612 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5613 * java/io/FileDescriptor.java: Rewrote from scratch.
5614 * java/io/FilenameFilter.java: Rewrote from scratch.
5616 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5618 * java/io/SyncFailedException.java: New file.
5619 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5620 * java/io/InterruptedIOException.java: Rewrote from scratch.
5621 * java/io/FileNotFoundException.java: Rewrote from scratch.
5622 * java/io/EOFException.java: Rewrote from scratch.
5623 * java/io/IOException.java: Rewrote from scratch.
5624 * java/io/PrintStream.java: Rewrote from scratch.
5625 * java/io/DataOutputStream.java: Rewrote from scratch.
5626 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5627 * java/io/FilterOutputStream.java: Rewrote from scratch.
5628 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5629 * java/io/PipedOutputStream.java: Rewrote from scratch.
5630 * java/io/FileOutputStream.java: Rewrote from scratch.
5631 * java/io/OutputStream.java: Rewrote from scratch.
5632 * java/io/DataOutput.java: Rewrote from scratch.
5634 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5636 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5638 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5640 * configure.in: Add --enable-libjava-debug
5642 * Makefile.am (nat_headers): Add java/lang/Float.h and
5645 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5647 * Makefile.in, configure, include/config.h.in: Rebuilt.
5649 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5651 * java/lang/Float.java: Rewritten
5652 * java/lang/Double.java: Rewritten
5653 * java/lang/natFloat.cc: toString() added.
5654 * java/lang/natDouble.cc: toString() added.
5655 * java/lang/natDouble.cc: doubleValueOf() added.
5656 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5657 java/lang/strtod.c: added.
5658 * ieeefp.h: __sparc added.
5659 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5661 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5663 * include/javaprims.h (java::lang): Added
5664 CloneNotSupportedException.
5666 * java/lang/Object.java (clone): No longer native. Implemented.
5667 * java/lang/natObject.cc (clone): Removed.
5669 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5671 * prims.cc: Don't make definitions `extern "C"'.
5672 (_Jv_RegisterClass): Renamed from registerClass.
5673 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5674 (_Jv_NewArray): Likewise.
5675 (_Jv_NewMultiArray): Likewise.
5676 (_Jv_CheckCast): Likewise.
5677 (_Jv_LookupInterfaceMethod): Likewise.
5678 (_Jv_CheckArrayStore): Likewise.
5679 (_Jv_RegisterClass): Likewise.
5681 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5682 * configure: Rebuilt.
5683 * configure.in: Don't check for fmod; it is provided by the fdlibm
5685 * prims.cc (fmod): Removed.
5687 * java/lang/natString.cc (charAt): Use _Jv_uint.
5688 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5689 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5690 (equalUtf8Consts): Likewise.
5691 (internalAddClass): Use _Jv_uint.
5692 (processClass): Likewise.
5693 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5694 (_Jv_uint): Renamed from uint32.
5695 (struct _Jv_Utf8Const): Changed members to use new type names.
5697 * configure: Rebuilt.
5698 * configure.in: Don't check for memcpy. Require memmove and a way
5700 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5702 (currentTimeMillis): Don't use #error.
5704 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5706 * java/lang/Math.java: static member random renamed to random_ to
5707 avoid conflict with member function of the same name.
5708 * include/javaprims.h: java.util.Random added.
5710 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5712 * include/java-chartables.h: Regenerated.
5713 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5716 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5718 * java/lang/Math.java: Rewritten.
5719 * java/lang/natMath.cc: New file.
5720 * Files added from fdlibm:
5721 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5722 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5723 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5724 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5725 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5726 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5727 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5728 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5729 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5730 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5731 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5732 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5733 java/lang/k_cos.c, java/lang/sf_ceil.c,
5734 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5735 java/lang/ieeefp.h, java/lang/fdlibm.h
5736 * Makefile.am: rules added for compiling C files from fdlibm.
5738 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5740 * chartables.pl: Minor documentation fixes.
5742 * configure: Rebuilt.
5743 * configure.in: Fixed --help output for --enable-fast-character.
5745 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5747 * configure: Rebuilt.
5748 * configure.in: Recognize --enable-fast-character.
5749 * acconfig.h (COMPACT_CHARACTER): New define.
5750 * include/config.h.in: Rebuilt.
5751 * include/java-chartables.h: New file.
5752 * Makefile.in: Rebuilt.
5753 * Makefile.am (nat_files): Added natCharacter.o.
5754 * java/lang/natCharacter.cc: New file.
5755 * chartables.pl (set_attribute): New function.
5756 (@attributes, @second_attributes): New globals.
5757 ($ROMAN_START, $ROMAN_END): Likewise.
5758 (process_char): Call set_attribute when required.
5759 (print_char): Just print hex value.
5760 (print_block): Generate C++ syntax.
5761 (print_numerics): Likewise.
5762 (print_single_map): Likewise.
5763 (print_all_block): Likewise.
5764 (print_case_table): Likewise.
5765 (print_fast_tables): New function.
5766 Generate C++ code suitable for a header file.
5767 * java/lang/Character.java (table_search): Removed.
5768 (digit_value): Now native.
5769 (getNumericValue): Likewise.
5770 (getType): Likewise.
5771 Removed all automatically-generated tables.
5772 (Tamil_Digit_One): Removed.
5773 (isSpaceChar): Now native.
5774 (isTitleCase): Likewise.
5775 (isLowerCase): Likewise.
5776 (isUpperCase): Likewise.
5777 (toLowerCase): Likewise.
5778 (toTitleCase): Likewise.
5779 (toUpperCase): Likewise.
5780 (isDefined): Fixed sense of test.
5782 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5784 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5786 (regionMatches): Likewise.
5788 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5790 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5792 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5794 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5797 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5800 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5802 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5804 * prims.cc (instanceof_class): Removed.
5805 (instanceof_array): Likewise.
5806 (instanceof): Likewise.
5807 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5808 (_Jv_CheckCast): Likewise.
5809 * java/lang/natClass.cc (isAssignableFrom): New method.
5810 * java/lang/Class.java (isAssignableFrom): Now native.
5812 * include/cni.h (JvThrow): Use `extern inline'.
5813 (JvAllocObject): Likewise.
5814 (JvInitClass): Likewise.
5816 * java/lang/natSystem.cc (arraycopy): Only check class of source
5819 * prims.cc (_Jv_CheckArrayStore): Wrote.
5820 (_Jv_MonitorEnter): Prefer `JvThrow'.
5821 Include ArrayStoreException.h.
5822 (_Jv_CheckCast): Indentation cleanup.
5824 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5826 * chartables.pl: New file.
5827 * java/lang/Character.java: Rewrote from scratch.
5829 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5831 * java/lang/ArithmeticException.java,
5832 java/lang/ArrayIndexOutOfBoundsException.java,
5833 java/lang/ArrayStoreException.java,
5834 java/lang/ClassCastException.java,
5835 java/lang/ClassNotFoundException.java,
5836 java/lang/CloneNotSupportedException.java,
5837 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5838 java/lang/IllegalArgumentException.java,
5839 java/lang/IllegalMonitorStateException.java,
5840 java/lang/IllegalThreadStateException.java,
5841 java/lang/IndexOutOfBoundsException.java,
5842 java/lang/InstantiationException.java,
5843 java/lang/InterruptedException.java,
5844 java/lang/NegativeArraySizeException.java,
5845 java/lang/NoSuchMethodException.java,
5846 java/lang/NullPointerException.java,
5847 java/lang/NumberFormatException.java,
5848 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5849 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5851 * java/lang/IllegalStateException.java,
5852 java/lang/NoSuchFieldException.java,
5853 java/lang/UnsupportedOperationException.java: Created.
5855 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5857 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5858 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5860 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5862 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5864 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5866 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5868 * Makefile.in: Rebuilt.
5870 * include/javaprims.h (java::lang): Added
5871 StringIndexOutOfBoundsException.
5873 * java/lang/String.java: Added header comment and FIXME comment for
5874 missing constructors/methods.
5875 (endsWith): Adjusted offset into string to look at just the last chars.
5876 Commented out undocumented method.
5878 * java/lang/natString.cc: Added includes for
5879 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5880 (String::init): Throw StringIndexOutOfBoundsException.
5881 (String::charAt): Throw StringIndexOutOfBoundsException.
5882 (String::substring): Throw StringIndexOutOfBoundsException.
5883 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5884 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5885 (String::compareTo): Return difference/offset between chars/strings.
5887 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5889 * java/lang/Boolean.java (TYPE): Added comment.
5891 * java/lang/Byte.java (decode): Added - commented out until dependent
5892 code for Integer is written.
5893 (compareTo): JDK 1.2 methods written.
5894 (hashCode): Added comment to note that values have been verified.
5896 * java/lang/Short.java (decode): Added - commented out until dependent
5897 code for Integer is written.
5898 (compareTo): JDK 1.2 methods written.
5899 (hashCode): Added comment to note that values have been verified.
5901 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5903 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5905 * include/javaprims.h (java::lang): Added VirtualMachineError,
5907 * Makefile.in: Rebuilt.
5908 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5909 VirtualMachineError.h.
5910 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5911 (lookupArray): Likewise.
5912 (makeUtf8Const): Likewise.
5913 (_Jv_AllocObject): Likewise.
5914 (_Jv_NewObjectArray): Likewise.
5915 Include OutOfMemoryError.h.
5917 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5918 to use JvNewStringLatin1.
5920 * java/io/io-defs.h: Include java/lang/IOException.h.
5921 * Makefile.in: Rebuilt.
5922 * Makefile.am (nat_headers): Added
5923 ArrayIndexOutOfBoundsException.h,
5924 ClassFormatError.h,ClassNotFoundException.h,
5925 ClassCircularityError.h, ClassCastException.h,
5926 IncompatibleClassChangeError.h, AbstractMethodError.h,
5927 IllegalAccessError.h, LinkageError.h, Error.h,
5928 NegativeArraySizeException.h, IOException.h.
5929 * include/cni.h (SignalError): Removed declaration.
5930 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5931 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5932 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5933 (newInstance): Likewise.
5934 (forName): Likewise.
5935 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5937 (read): Use JvThrow, not SignalError.
5942 (open_read): Likewise.
5943 (open_write): Likewise.
5946 (newstr): New function.
5947 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5949 (lastModifiedUnchecked): Likewise.
5950 (lengthUnchecked): Likewise.
5951 * include/javaprims.h (sorry): Removed declaration.
5952 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5953 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5954 ClassCastException, IncompatibleClassChangeError,
5955 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5956 * prims.cc (instanceof_array): Use JvFail, not sorry.
5958 Include ArrayIndexOutOfBoundsException.h,
5959 ClassFormatError.h,ClassNotFoundException.h,
5960 ClassCircularityError.h, ClassCastException.h,
5961 IncompatibleClassChangeError.h, AbstractMethodError.h,
5962 IllegalAccessError.h, NegativeArraySizeException.h.
5963 (_Jv_ThrowBadArrayIndex): Implemented.
5964 (JvNewStringUTF): Use JvFail, not sorry.
5965 (_Jv_FindClass): Likewise.
5966 (_Jv_NewArray): Likewise.
5967 (throwException): Removed.
5968 (getClass): Use JvThrow.
5969 (processClass): Likewise.
5970 (_Jv_NewObjectArray): Likewise.
5971 (_Jv_NewMultiArray): Likewise.
5972 (_Jv_CheckCast): Likewise.
5973 (_Jv_LookupInterfaceMethod): Likewise.
5974 (SignalError): Removed.
5975 (getClass): Use _Jv_NewStringUtf8Const to create String.
5977 * java/lang/natSystem.cc (arraycopy): Throw
5978 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5980 * Makefile.in: Rebuilt.
5981 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
5983 * include/java-array.h: Mention gcjh, not gjavah.
5985 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5986 (canReadUnchecked): Likewise.
5987 (canWriteUnchecked): Likewise.
5988 (isFileUnchecked): Likewise.
5989 * java/io/natFileDescriptor.cc: Don't include cni.h.
5991 * java/lang/Thread.java (run__): Declare.
5992 * java/lang/natThread.cc (run__): New method, to avoid compiler
5994 (start): Use run__, not run_.
5996 * java/io/io-defs.h: Include cni.h and jvm.h.
5998 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6000 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6001 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6002 to natString.cc (with suitable renaming, inlines etc).
6003 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6004 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6005 * java/lang/String.h: Removed - now generated using gjavah.
6006 * java/lang/String.java: Re-written from scratch. Many native methods.
6007 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6008 * java/lang/natString.cc: Many functions re-written for "compact
6009 strings" representation, or native java.lang.String methods added.
6010 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6011 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6012 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6013 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6014 * include/cni.h: Add inline method.
6015 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6016 * include/javaprims.h: Moved some stuff frm String.h.
6017 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6018 * Makefile.am (nat_header): Added Character.h and String.h.
6019 (String.h): Add new rule.
6021 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6023 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6025 * posix-threads.cc: Include cni.h, jvm.h.
6026 * quick-threads.cc: Include cni.h, jvm.h.
6027 * nogc.cc: Include cni.h, not javaprims.h.
6028 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6029 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6030 include java-assert.h.
6031 * java/lang/natSystem.cc: Include cni.h. Don't include
6033 * java/lang/natRuntime.cc: Include cni.h. Don't include
6035 * prims.cc: Rearranged #include ordering. Don't include
6036 java-array.h or java-assert.h.
6037 * boehm.cc: Include config.h, cni.h.
6038 * exception.cc: Include config.h, cni.h.
6039 * include/jvm.h: Include java-assert.h.
6040 * include/cni.h: Include java/lang/Object.h. Don't include
6041 java-threads.h or java-array.h.
6043 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6045 * java/lang/Boolean.java: Rewritten.
6047 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6049 * java/lang/natFirstThread.cc (main_func): New typedef.
6050 (run): Use main_func, not JvPrivThreadStartFunc.
6051 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6053 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6055 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6058 Can't throw Java exceptions with C++ `throw':
6059 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6060 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6061 (setPriority): Likewise.
6065 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6066 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6068 Can't catch Java exceptions from C++:
6069 * java/lang/natThread.cc (finish_): New method.
6071 * java/lang/Thread.java (run_): Rewrote in Java.
6072 (finish_): New native method.
6074 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6076 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6078 * include/javaprims.h (java::io): Added Serializable.
6080 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6082 * java/util/EmptyStackException.java,
6083 java/util/NoSuchElementException.java: Rewritten.
6085 * java/util/ConcurrentModificationException.java,
6086 java/util/MissingResourceException.java,
6087 java/util/TooManyListenersException.java: Created.
6089 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6091 * include/cni.h (JvThrow): New function.
6092 * include/javaprims.h (_Jv_Throw): Declare.
6094 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6096 * java/util/Observable.java: Rewritten.
6098 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6100 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6101 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6102 Include NullPointerException.h.
6104 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6106 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6107 assignability checks. Don't bother using memcpy.
6109 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6111 * include/quick-threads.h (JvPrivThreadWait): New function.
6112 * include/no-threads.h (JvPrivThreadWait): New function.
6113 * include/posix-threads.h (JvPrivThreadWait): New function.
6114 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6116 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6118 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6119 offsets by size of type that is being copied.
6121 * java/lang/natThread.cc (start): Don't pass `object' argument to
6123 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6124 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6126 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6127 always pass thread as object.
6128 * include/quick-threads.h, include/posix-threads.h,
6129 include/no-threads.h (JvPrivThreadStart): Removed `object'
6132 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6134 * java/util/Dictionary.java: Rewritten.
6136 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6138 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6139 (JvPrivThreadDestroy): Likewise.
6141 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6143 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6145 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6147 * java/lang/natSystem.cc: Rewrote from scratch.
6148 * java/lang/System.java: Rewrote from scratch.
6149 * java/lang/Class.h (Class): Declare isAssignableFrom.
6150 * include/javaprims.h (java::lang): Added ArrayStoreException,
6151 IndexOutOfBoundsException.
6152 * Makefile.in: Rebuilt.
6153 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6154 IndexOutOfBoundsException.h.
6155 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6156 * include/jvm.h (_Jv_HashCode): New function.
6158 * java/lang/natThread.cc (suspend): Call checkAccess.
6160 * java/lang/Thread.java (setDaemon): Call checkAccess.
6162 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6164 * java/lang/Runtime.java: Rewrote from scratch.
6165 * java/lang/natRuntime.cc: Rewrote from scratch.
6167 * nogc.cc (JvPrivGCTotalMemory): New function.
6168 (JvPrivGCFreeMemory): Likewise.
6169 (total): New global.
6170 (JvPrivAllocObj): Increment total.
6171 (JvPrivAllocArray): Likewise.
6172 (JvPrivAllocBytes): Likewise.
6173 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6174 * boehm.cc (JvPrivGCTotalMemory): New function.
6175 (sum_blocks): Likewise.
6176 (JvPrivGCFreeMemory): Likewise.
6178 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6180 * include/javaprims.h (java::lang): Added FirstThread.
6181 * java/lang/natFirstThread.cc: New file.
6182 * java/lang/FirstThread.java: New file.
6183 * prims.cc (main_signature): Removed.
6184 (main_name): Removed.
6185 #include FirstThread.h.
6186 * Makefile.in: Rebuilt.
6187 * Makefile.am (TFRIEND): Removed.
6188 (java/lang/Thread.h): Likewise.
6189 (FTFRIEND): New macro.
6190 (java/lang/FirstThread.h): New target.
6191 (nat_files): Added natFirstThread.o.
6192 (nat_headers): Added FirstThread.h.
6193 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6194 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6196 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6200 * java/lang/natThread.cc (start): Synchronize the thread.
6201 (stop): Synchronize the thread.
6203 * java/lang/ThreadDeath.java: Rewrote from scratch.
6205 * Makefile.in: Rebuilt.
6206 * Makefile.am (TGFRIEND): New macro.
6207 (java/lang/ThreadGroup.h): New target.
6208 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6210 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6212 * nogc.cc: Include config.h.
6214 * java/lang/ThreadGroup.java: Rewrote from scratch.
6216 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6218 * java/lang/Thread.java (checkAccess): Only call in to security
6219 manager if it exists.
6220 (Thread): Don't check access when creating the first thread. Add
6221 this thread to the appropriate ThreadGroup.
6223 * java/lang/natThread.cc (run_): Call uncaughtException method on
6226 * java/lang/Runnable.java: Rewrote from scratch.
6227 * java/lang/Thread.java: Updated copyright comment to correct
6230 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6232 * java/util/Random.java: Rewritten.
6234 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6236 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6237 trailing 0 in array[].
6239 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6241 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6242 and RUNTESTFLAGS from AM_MAKEFLAGS.
6243 (SUBDIRS): Conditionally include testsuite.
6244 * Makefile.in: Rebuilt.
6246 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6248 * java/lang/Object.h: Include java-assert.h.
6250 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6252 * Makefile.am: Add testsuite directory.
6253 * configure.in: Build testsuite/Makefile.
6254 * Makefile.in, configure: Rebuilt.
6256 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6258 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6259 * include/jvm.h (_Jv_StartFirstThread): Declare.
6261 * include/javaprims.h (java::lang): Added Exception,
6264 * Makefile.in: Rebuilt.
6265 * Makefile.am (nat_headers): Added NullPointerException.h,
6266 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6267 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6268 (java/lang/Thread.h): New target.
6269 (TFRIEND): New macro
6271 * include/java-assert.h (JvFail): Use 0 and not NULL.
6273 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6274 instead of assuming we are a friend of Thread.
6275 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6276 instead of assuming we are a friend of Thread.
6278 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6280 * java/lang/natThread.cc: Rewrote from scratch.
6281 * java/lang/Thread.java: Rewrote from scratch.
6282 * prims.cc (JvRunMain): Use new Thread constructor.
6283 * include/javaprims.h (java::lang): Added InterruptedException.
6284 * Makefile.in: Rebuilt.
6285 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6286 * java/lang/Thread.h: Removed.
6287 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6288 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6290 * posix-threads.cc (JvPrivThreadJoin): Removed.
6291 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6292 (really_start): Don't notify join_cond.
6293 (JvPrivThreadStart): Added `data' argument.
6294 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6295 (JvPrivThreadJoin): Likewise.
6296 Use JvFail instead of sorry.
6297 (JvPrivThreadSuspend): Removed.
6298 (JvPrivThreadResume): Removed.
6299 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6300 (JvPrivThreadJoin): Likewise.
6301 (JvPrivThreadSuspend): Use JvFail.
6302 (JvPrivThreadResume): Likewise.
6303 (JvPrivThreadSuspend): Removed.
6304 (JvPrivThreadResume): Likewise.
6305 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6306 (JvPrivThread_t): Removed join_mutex, join_cond.
6307 Use JvFail instead of sorry.
6308 (JvPrivThreadSuspend): Removed.
6309 (JvPrivThreadResume): Likewise.
6311 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6313 * java/util/Observer.java: Rewritten
6314 * java/util/Enumeration.java: Rewritten
6316 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6318 * java/util/StringTokenizer.java: Rewritten
6319 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6320 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6321 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6323 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6325 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6328 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6329 Include java-assert.h.
6330 * include/java-assert.h: New file.
6331 * prims.cc (_Jv_Abort): New function.
6332 Include java-assert.h, not assert.h.
6333 (_Jv_MonitorExit): Use JvAssert.
6334 (resolveConstants): Likewise.
6335 (processClass): Likewise.
6336 (JvRunMain): Assert that method is found.
6338 * configure: Rebuilt.
6339 * configure.in: Check for test subdir.
6340 * Makefile.in: Rebuilt.
6341 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6343 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6344 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6346 * prims.cc (resolveConstants): Removed unused variables.
6347 (processClass): Likewise.
6349 * include/quick-threads.h (JvPrivThreadCurrent): Use
6351 * quick-threads.cc (destroy_data): New function.
6352 (JvPrivInitThreads): Create key.
6353 (JvPrivThreadKey): New global.
6354 (JvPrivThreadStart): Use coop_setspecific.
6356 * include/quick-threads.h, include/posix-threads.h,
6357 include/no-threads.h, no-threads.cc, quick-threads.cc,
6358 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6360 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6362 * include/no-threads.h (JvPrivThreadInitData): Don't set
6365 * include/quick-threads.h (JvPrivCondWait): coop function now
6367 (JvPrivThreadJoin): Likewise.
6369 * java/lang/Thread.h (Thread): Updated declaration of
6371 * include/quick-threads.h, include/posix-threads.h: Updated
6372 declaration of JvPrivThreadStart.
6373 * include/no-threads.h (JvPrivThreadStart): Changed definition
6375 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6376 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6377 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6379 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6381 * quick-threads.cc (qthrow): New function.
6382 (JvPrivInitThreads): New function.
6383 (started): New global.
6384 (JvPrivThreadStart): Call coop_start if required.
6385 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6386 (JvPrivThreadDestroy): Likewise.
6387 (JvPrivInitThreads): Removed.
6388 * include/posix-threads.h (JvPrivThreadCancel): Added error
6390 * java/lang/natThread.cc (stop_): Pass exception to
6393 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6395 * include/javaprims.h (java::lang): Added
6396 IllegalArgumentException, IllegalThreadStateException, Math,
6397 NullPointerException, ThreadDeath.
6398 (java::util): Added Enumeration.
6400 * Makefile.in: Rebuilt.
6401 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6403 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6405 (threadsv): Renamed from threads to avoid clash in C++ header.
6406 (groupsv): Likewise.
6407 * include/no-threads.h (JvPrivThreadStart): Removed.
6408 * no-threads.cc (JvPrivThreadStart): New function.
6409 * java/lang/Thread.java (Thread): New constructor for internal use.
6410 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6411 (Thread): Declare constructor.
6412 * prims.cc (JvRunMain): Create the initial Thread and
6414 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6415 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6416 Removed `daemon' argument.
6418 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6419 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6421 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6423 * Makefile.in: Rebuilt.
6424 * Makefile.am (INCLUDES): Include THREADINCS.
6426 * configure: Rebuilt.
6427 * configure.in: Recognize `qt' as a threads package.
6429 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6431 * java/util/Stack.java (pop): Null out topmost node for robustness.
6433 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6435 * java/util/Stack.java: Rewritten.
6436 * java/util/Vector.java (isEmpty): Simplified expression.
6438 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6440 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6441 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6443 * include/java-array.h (JvNewObjectArray): Created inline to
6446 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6449 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6451 * java/util/Vector.java: Rewritten.
6452 * java/io/Serializable.java: Created.
6454 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6456 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6457 Infinity is 1/0, not 1/1.
6459 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6461 * configure: Rebuilt.
6462 * configure.in: Removed duplicate AC_ARG_WITH.
6464 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6466 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6468 (_Jv_InitClass): Renamed from soft_initialise_class.
6469 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6470 (_Jv_CheckCast): Renamed from soft_checkcast.
6471 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6472 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6473 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6474 * include/cni.h (JvInitClass): New function.
6475 (_Jv_InitClass): Renamed from soft_initialise_class.
6477 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6479 * configure: Rebuilt.
6480 * configure.in (CXX): Don't set.
6481 * Makefile.in: Rebuilt.
6482 * Makefile.am (AM_CXXFLAGS): New macro.
6484 * Makefile.in: Rebuilt.
6485 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6486 nogc.o): New target.
6488 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6490 (mark_array): Likewise.
6492 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6494 * java/lang/Class.h (JvMethod): Removed some unused fields.
6495 (JvField.info): Removed unused idx union variant.
6497 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6499 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6502 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6504 * configure.in, configure (CXX): Add -fvtable-thunks.
6506 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6508 * java/lang/Object.java (finalize): Move first.
6509 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6510 (Object): Re-arrange order to match Object.java.
6512 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6514 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6515 * java/lang/natString.cc (hashChars): Likewise.
6517 * prims.cc (RuntimeClass): New macro.
6518 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6520 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6522 * Makefile.in: Rebuilt.
6523 * Makefile.am (AM_MAKEFLAGS): New macro.
6525 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6527 * nogc.cc: Include <javaprims.h>.
6529 * Makefile.in: Rebuilt.
6530 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6532 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6534 * exception.cc (terminate): Removed.
6535 (unexpected): Removed.
6537 * configure: Rebuilt.
6538 * configure.in: Handle case where target subdir is ".".
6540 * configure: Rebuilt.
6541 * configure.in: Compute COMPPATH based on --with-target-subdir
6542 option. Added --with-target-subdir and --with-cross-host. Use
6543 --with-cross-host to determine when a cross compiler is in use.
6545 * Makefile.in: Rebuilt.
6546 * Makefile.am (GJAVAH): Include COMPPATH.
6547 * configure: Rebuilt.
6548 * configure.in: Subst COMPPATH.
6550 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6552 * prims.cc (lockMutex): Removed.
6553 (unlockMutex): Likewise.
6554 (processClass): Lock the class using a JvSynchronize object.
6556 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6558 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6559 (gc_free_fixed): Removed.
6560 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6561 freeing old value of strhash.
6563 * exception.cc (_Jv_type_matcher): Cast first argument to
6566 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6568 * include/java-array.h (jstringArray): New type.
6569 * java/lang/natSystem.cc (setProperty): Removed.
6570 (initProperties): Directly call JvNewStringLatin1 for arguments.
6571 * java/util/natDate.cc: Include java/util/Date.h, not
6574 * java/io/FileDescriptor.java (available): No longer static.
6575 * java/lang/natDouble.cc (Double): Removed class definition.
6576 * include/javaprims.h (java::lang::Number): Declare.
6577 (java::lang::NumberFormatException): Likewise.
6578 (java::io::FilenameFilter): Likewise.
6579 (java::lang::Character): Likewise.
6580 (java::lang::Error): Likewise.
6581 (java::lang::SecurityManager): Likewise.
6582 (java::util::Vector): Likewise.
6583 (java::io::FileNotFoundException): Likewise.
6584 (java::io::IOException): Likewise.
6585 (java::lang::NativeLang): Likewise.
6586 (java::lang::UnsatisfiedLinkError): Likewise.
6587 (java::util::StringTokenizer): Likewise.
6588 (java::io::InputStream, java::io::OutputStream): Likewise.
6589 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6590 (java::util::Hashtable): Likewise.
6591 * Makefile.in: Rebuilt.
6592 * Makefile.am (nat_headers): Added java/lang/Double.h,
6593 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6594 (MOSTLYCLEANFILES): Added nat_headers.
6595 * include/jvm.h: Moved many defines, declarations, and functions
6596 to java/lang/Class.h.
6597 (struct JvSyncInfo): Moved to java/lang/Object.h.
6598 (UTF8_GET): Moved to java/lang/String.h.
6600 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6602 * java/io/io-defs.h: Don't include java-io.h.
6603 * include/java-io.h: Removed.
6604 * include/javaprims.h: Include java::io.
6606 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6608 * include/java-io.h (File): Removed
6609 (FileDescriptor): Likewise.
6611 * java/io/io-defs.h: Include java/io/File.h and
6612 java/io/FileDescriptor.h.
6614 * Makefile.in: Rebuilt.
6615 * Makefile.am (GJAVAH): New macro.
6616 (.class.h): New rule.
6617 (SUFFIXES): Added .h.
6618 (nat_headers): New macro.
6619 ($(nat_headers)): New target.
6620 (BUILT_SOURCES): Added nat_headers.
6622 * include/java-util.h: Removed.
6624 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6626 * include/java-io.h: Changed to avoid java-lang.h.
6627 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6629 * java/lang/natSystem.cc: Include java/lang/System.h, not
6631 * java/lang/natString.cc: Include java/lang/String.h, not
6633 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6635 * java/lang/natClass.cc: Include java/lang/Class.h, not
6637 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6639 * java/lang/natObject.cc: Include java/lang/Object.h, not
6641 * exception.cc: Don't include java-lang.h.
6642 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6643 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6644 * nogc.cc: Don't include java-lang.h.
6645 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6646 * prims.cc (processClass): Don't use `init_type'; just cast to
6648 Include java/lang/Class.h and jvm.h, not java-lang.h.
6649 (JvAllocObject): Wrote single-argument version.
6650 (PrimClass): Inherit from Class.
6651 (initPrimClass): Removed.
6652 * include/java-lang.h: Removed.
6653 * include/jvm.h: Declare struct _dispatchTable.
6654 * include/cni.h: Don't declare _Jv_MonitorEnter,
6655 _Jv_MonitorExit, struct _dispatchTable.
6656 * include/javaprims.h: Moved all typedefs here, from cni.h.
6657 * java/lang/Class.h: New file.
6658 * include/java-array.h: New file.
6659 * java/lang/Object.h: New file.
6661 * prims.cc (classFromSig): Now static.
6663 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6665 * include/cni.h: Don't mention soft_new.
6666 * include/java-lang.h (Object): Don't mention soft_new. Mention
6667 _Jv_NewPrimArray, not newPrimArray.
6668 * prims.cc (soft_new): Removed.
6669 (_Jv_NewArray): Renamed from soft_newarray.
6670 (soft_anewarray): Use JvNewObjectArray.
6671 (newArray): Likewise.
6672 (newRefArray): Removed.
6673 (_Jv_NewPrimArray): Renamed from newPrimArray.
6674 (equalUtf8Consts): Now static.
6675 (soft_instanceof): Removed.
6676 * java/lang/natDouble.cc (doubleToString): Now static.
6678 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6679 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6682 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6684 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6686 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6688 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6689 (JvPrivMutexUnlock): Likewise.
6690 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6691 Return value now jint.
6692 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6695 * Makefile.in: Rebuilt.
6696 * Makefile.am: Don't allow `jV' names.
6697 (maintainer-check): Depend on libjava.a.
6698 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6700 * Makefile.in: Rebuilt.
6701 * Makefile.am (NM): New macro.
6702 (maintainer-check): New target.
6704 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6706 * configure: Rebuilt.
6707 * configure.in: Use --enable-threads, not --enable-gc. Fix
6708 documentation for --enable-threads. Changed option to work like
6709 identical option in gcc/configure.
6711 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6713 * boehm.cc (mark_array): Use JvGetArrayLength.
6715 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6717 * exception.cc: New file (mostly written by Andrew MacLeod),
6718 exception handling support.
6719 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6720 Remove -fexceptions - it is now the default.
6722 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6723 (JvAllocObject): Renamed to _Jv_AllocObject.
6724 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6725 (loadClass): Renamed to _Jv_FindClass.
6726 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6727 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6728 * include/java-lang.h (JvGetArrayLength): New CNI function.
6729 * include/jvm.h (_Jv_FindClass): Added declaration.
6731 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6733 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6735 * java/lang/natClass.cc (getName): Add implementation.
6736 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6738 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6740 * Makefile.in: Rebuilt.
6741 * Makefile.am (.class.o): Added -fexceptions.
6743 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6745 * configure: Rebuilt.
6746 * configure.in: Don't check for __nanosleep.
6747 * posix-threads.cc (nanosleep): Never define.
6749 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6751 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6754 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6756 * java/lang/natThread.cc (enumerate): Uncommented.
6757 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6758 (interrupt): Call it.
6760 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6762 * configure: Rebuilt.
6763 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6765 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6767 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6768 * include/java-lang.h (Thread): Added `interrupted_' method.
6769 * java/lang/Thread.java (interrupted_): New method.
6770 * java/lang/natThread.cc (join): Possibly throw interrupted
6771 exception after join finishes.
6772 (interrupted_): New method.
6773 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6775 (JvPrivThreadJoin): New function.
6776 (really_start): Notify all threads waiting for this thread.
6777 (struct starter): Added `data' member.
6778 (JvPrivThreadStart): Set it.
6779 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6781 (JvPrivThreadJoin): No longer inline.
6782 (JvPrivThreadInterrupt): New function.
6784 * include/no-threads.h (JvPrivThreadSleep): Removed.
6785 * posix-threads.cc (JvPrivThreadSleep): Removed.
6787 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6789 * configure: Rebuilt.
6790 * configure.in (THREADOBJS): Initialize to no-threads.o in
6792 * posix-threads.cc (key): New global.
6793 (JvPrivInitThreads): New function.
6794 (really_start): Set thread-specific data to point to object.
6795 (JvPrivThreadStart): Added `daemon' argument.
6796 (JvPrivThreadSleep): Added `data' argument.
6797 * include/posix-threads.h (JvPrivInitThreads): Removed
6799 (JvPrivThreadCurrent): New function.
6800 * include/no-threads.h (JvPrivThreadInitData): Initialize
6801 JvPrivOnlyThread. Added `thread' argument.
6802 (JvPrivThreadCurrent): New function.
6803 (JvPrivThreadStart): Added `daemon' argument.
6804 * no-threads.cc: New file.
6805 * java/lang/natThread.cc (init_data): New function.
6807 (start): Set `alive' member.
6808 (stop_): Clear `alive' member.
6809 (destroy): Likewise.
6810 (currentThread): Implemented.
6811 (start): Pass `daemon' argument to JvPrivThreadStart.
6813 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6814 (Thread): Added `init_data' method.
6815 * java/lang/Thread.java (alive, data): New instance variables.
6816 (init_data): New private method.
6817 (isAlive): No longer native.
6819 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6821 * include/java-lang.h (JvRunMain): Declare.
6822 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6823 * prims.cc (JvRunMain): New function.
6824 (main_signature, main_name): New globals.
6826 * boehm.cc (mark_array): Use `elements' function and not
6827 operator[] on jarray.
6829 * posix-threads.cc: Include <config.h>. Define nanosleep if
6832 * configure: Rebuilt.
6833 * configure.in: Check for _nanosleep.
6835 * configure: Rebuilt.
6836 * configure.in: Check for pthread_mutexattr_settype.
6838 * include/cni.h (class JvSynchronize): New class.
6839 * java/lang/Thread.java (sleep): Throws InterruptedException.
6840 (join): Throws InterruptedException.
6841 (resume): Not native.
6842 (resume_): New method.
6843 (start): Now synchronized.
6844 (stop_): New method.
6845 (Thread): Synchronize when accessing threadNumber.
6847 * java/lang/natThread.cc (throwException): New macro.
6848 (sleep): Throw InterruptedException.
6851 * include/java-lang.h (Runtime): Added interrupted().
6853 * boehm.cc (call_finalizer): Correctly initialize jobj.
6854 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6856 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6859 * configure: Rebuilt.
6860 * configure.in: Added support for --disable-threads.
6861 * include/no-threads.h: New file.
6863 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6865 * Makefile.in: Rebuilt.
6866 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6867 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6868 (libjava_a_LIBADD): Added THREADOBJS.
6869 * configure: Rebuilt.
6870 * configure.in: Added --with-threads option.
6871 * posix-threads.cc: New file.
6872 * include/posix-threads.h: New file.
6873 * include/java-lang.h (Object): Added static member sync_mutex,
6874 member sync_info, method init_mutex.
6875 (struct JvSyncInfo): New struct.
6876 Include "java-threads.h".
6877 * prims.cc (soft_monitorenter): Wrote.
6878 (soft_monitorexit): Likewise.
6879 * java/lang/natObject.cc (init_mutex): New method.
6883 (sync_mutex): Define.
6884 Include "java-threads.h".
6886 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6888 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6889 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6891 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6893 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6894 Added extern "Java" in places to tell G++ Object is a "Java" type.
6895 Other minor renaming and fixes.
6896 * include/java-io.h (FileDescriptor): Add friend class declarations.
6897 G++ no longer allows non-Java types in method parameters and results
6898 of Java classes. Converted most offending methods to friends.
6899 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6900 * java/lang/natSystem.cc (setProperty): Make friend.
6901 * java/lang/natString.cc, include/java-lang.h (String): Rename
6902 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6903 * include/java-lang.h (JArray): Remove getData and eoprator[].
6904 Add elements friend function instead.
6905 * java/lang/natSystem.cc (arraycopy): Use elements function.
6906 * java/io/natFileDescriptor.cc (read, write): Likewise.
6907 * include/java-lang.h (Object): Remove unused make method.
6908 (System::setProperty(char*,char*)): Turn into friend function.
6909 (Class): Rename newObject by JvAllocObject.
6910 * prims.cc: Update to use JvAllocObject, and elements.
6912 * java/lang/natDouble.cc: Fix double -> jdouble.
6914 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6916 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6918 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6920 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6921 * include/java-lang.h (Runtime): finalize_on_exit and
6922 runFinalizersOnExit now static.
6923 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6925 (finalize_on_exit): Now static.
6927 * boehm.cc (mark_obj): Get class using getClass() method on
6929 (_dispatchTable): Removed.
6931 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6933 * java/io/natFileDescriptor.cc (open_read): Only call open if
6935 (open_write): Likewise.
6937 * Makefile.in: Rebuilt.
6938 * Makefile.am ($(nat_files)): Depend on config.h.
6940 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6942 * prims.cc (ObjectClass): Now a macro; updated for new class name
6944 (StringClass): Likewise.
6945 (ClassClass): Likewise.
6947 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6949 * java/io/natFileDescriptor.cc (available): Do nothing unless
6950 HAVE_SELECT defined.
6951 * java/util/natDate.cc (setTime): Conditional on
6953 (toString): Conditional on HAVE_TIME.
6954 * aclocal.m4, configure: Rebuilt.
6955 * acinclude.m4: New file.
6956 * configure.in: Don't actually call AM_EXEEXT. Call
6957 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6958 --with-target-subdir option. Check for select and open
6961 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6963 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6964 (call_finalizer): Likewise.
6965 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6966 * prims.cc (newObject): Pass actual method pointer to
6967 JvPrivRegisterFinalizer.
6968 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6969 (JvPrivRegisterFinalizer): Changed interface.
6971 * Makefile.in: Rebuilt.
6972 * Makefile.am (MOSTLYCLEANFILES): New macro.
6973 (CLEANFILES): Removed javao_files.
6975 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
6977 * nogc.cc: New file.
6978 * Makefile.in: Rebuilt.
6979 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6980 (EXTRA_libjava_a_SOURCES): New macro.
6981 (libjava_a_SOURCES): Removed boehm.cc.
6982 (libjava_a_DEPENDENCIES): Added GCOBJS.
6983 (libjava_a_LIBADD): Likewise.
6984 * configure: Rebuilt.
6985 * configure.in: Added code for --enable-gc=TYPE.
6987 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
6989 * boehm.cc (mark_array): Don't further dereference pointer from
6992 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6993 * Makefile.in: Rebuilt.
6994 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6995 one for boehm-gc build directory.
6997 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
6999 * include/java-lang.h (finalize_on_exit): New instance variable in
7000 java::lang::Runtime.
7001 (runFinalizersOnExit): New method.
7002 * java/lang/Runtime.java (finalize_on_exit): New instance
7004 (runAllFinalizers_): New private method.
7005 (runFinalizersOnExit): New method.
7006 * boehm.cc (JvPrivRunFinalizers): New function.
7007 (JvPrivRunAllFinalizers): Likewise.
7008 (JvPrivRunGC): Likewise.
7009 * java/lang/natRuntime.cc: Include "jvm.h".
7010 (gc): Call JvPrivRunGC.
7011 (runFinalization): Call JvPrivRunFinalizers.
7012 (runFinalizersOnExit): New method.
7013 (exit_): Call JvPrivRunAllFinalizers if required.
7014 * include/jvm.h: Declare JvPrivRunFinalizers,
7015 JvPrivRunAllFinalizers, JvPrivRunGC.
7017 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7019 * boehm.cc (JvPrivRegisterFinalizer): New function.
7020 (call_finalizer): Likewise.
7021 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7022 * prims.cc (finalize_name): New global.
7023 (newObject): Just call other newObject.
7024 (newObject): Register finalizer if it exists.
7026 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7028 * prims.cc (gc_malloc): Removed.
7029 (makeUtf8Const): Use JvPrivAllocBytes.
7030 (lookupArray): Likewise.
7031 (newPrimArray): Likewise.
7032 (JvNewObjectArray): Use JvPrivAllocArray.
7033 (newObject): Use JvPrivAllocObj.
7034 (newObject): Likewise.
7035 Changed Method -> JvMethod everywhere.
7036 Changed Field -> JvField everywhere.
7037 * include/java-lang.h (Object): Changed type of `fields' to
7039 (jmethodID, jfieldID): New typedefs.
7040 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7042 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7044 (METHOD_NATIVECODE): Moved from java-lang.h.
7045 (class JvField): New class.
7046 (JvGetFirstInstanceField): New function.
7047 (JvFieldIsRef): Likewise.
7048 (JvGetObjectField): Likewise.
7049 (JvNumInstanceFields): Likewise.
7051 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7053 * boehm.cc: New file.
7054 * Makefile.in: Rebuilt.
7055 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7056 (INCLUDES): Added -I options to find boehm-gc files.
7058 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7060 * configure: Rebuilt.
7061 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7063 * Makefile.in: Rebuilt.
7064 * Makefile.am (nat_files): New macro.
7065 (libjava_a_DEPENDENCIES): Use it.
7066 (libjava_a_LIBADD): Likewise.
7067 ($(nat_files)): New static pattern rule.
7068 (class_files): Run separate find to find .class files.
7069 (javao_files): Compute based on class_files.
7070 (BUILT_SOURCES): New macro.
7072 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7074 * Makefile.am (java_files): New macro.
7075 (class_files): Likewise.
7076 (javao_files): Likewise.
7077 (libjava_a_DEPENDENCIES): Include $(javao_files).
7078 (libjava_a_LIBADD): Likewise.
7079 (classes.stamp): Depend on $(java_files); only recompile changed
7082 (CLEANFILES): Don't run find; use macros. Don't mention
7084 (.class.o): New target.
7085 (compiled.stamp): Removed.
7087 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7089 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7090 LineNumberReader}>java: Newly-implemented standard classes.
7092 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7094 * Makefile.in: Rebuilt.
7095 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7097 * Makefile.in: Rebuilt.
7098 * Makefile.am (hack): New macro.
7099 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7101 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7103 * include/config.h.in: New file.
7104 * include/config.h: Removed.
7105 * acconfig.h: New file.
7106 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7107 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7108 libjava_a_LIBADD): New macros.
7109 (INCLUDES): New macro.
7112 (SUFFIXES): Removed.
7114 (libjava.a): Removed.
7116 * configure: Rebuilt.
7117 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7118 Look for headers and functions we require. Create
7121 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7123 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7124 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7125 soft_lookupinterfacemethod): New functions.
7126 (PrimClass): Actually initialize the primitive classes.
7127 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7129 * include/java-util.h: Removed java::util definition.
7130 * include/cni.h: Moved java::util here and added Properties.
7131 Added more function prototypes.
7132 * include/java-lang.h: Added mroe methods and friend declarations.
7133 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7134 * include/jvm.h (strLengthUtf8): Add declaration.
7136 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7138 * java/lang/{Byte,Short,Void}.java: New classes.
7139 * java/lang/Character.java (isJavaIdentifierStart,
7140 JavaIdentifierPart): New static methods.
7141 * java/lang/Number.java (byteValue, shortValue): New methods.
7143 * java/lang/String.java (intern, hashCode): Make native.
7144 * java/lang/natString.cc: New file. Handle the string pool.
7145 * Makefile.am: Build natString.o. Use CXXFLAGS.
7147 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7148 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7149 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7150 * java/lang/System.java (setProperty): New private method.
7151 (initProperties): Take argument, and make native.
7152 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7153 (currentTimeMillis): Make more robust.
7155 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7156 * java/io/UnsupportedEncodingException.java: New exception class.
7158 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7159 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7161 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7163 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7164 * prims.cc: Added bunch of stuff.
7165 * include/cni.h: Added various definitions.
7166 * include/java-lang.h: Added Method, various friends, some macros.
7168 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7169 * java/lang/System.java (arraycopy): Make native.
7171 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7173 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7174 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7175 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7176 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7178 * java/lang/Runtime.java: Declare methods as native instead of
7180 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7181 * java/lang/System.java: Comment out some stuff, for now.
7182 * java/lang/Thread.java: Re-write. Use native methods.
7183 * java/lang/NativeLang.java: Remove most of it.
7185 * java/util/natDate.cc: Native (C++) methods for Date.
7186 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7187 * java/util/Date.java: Complete re-write.
7189 * java/io/io-defs.h: New header file.
7190 * java/io/FileDescriptor.java: Add a bunch of private methods,
7191 mostly moved from NativeIO.java and natNativeIO.cc.
7192 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7193 * java/io/File.java: Use new code.
7194 * java/io/{FileInputStream.java.FileOutputStream.java,
7195 RandomAccessFile.java}: Use new private FileDescriptor methods.
7196 * java/io/NativeIO.java: Removed, no longer used.
7198 * java/io/StreamTokenizer.java (numericChars): Make char array.
7200 * include/*.h: Various header files used by the C++ native code.
7202 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7203 New autoconf+automake-based setup.
7204 * prims.cc: New file for Java "primitives".