1 2000-01-11 Tom Tromey <tromey@cygnus.com>
3 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
4 HP/UX. From David Scott Urban.
6 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
8 * java/lang/natMath.cc (pow): Cast args to `double', not
11 (IEEEremainder): Likewise.
12 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
13 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
15 2000-01-09 Anthony Green <green@cygnus.com>
17 * java/lang/natString.cc (init): Test for overflow condition
18 during out of bounds check.
19 (getChars): Throw StringIndexOutOfBoundsException, not
20 ArrayIndexOutOfBoundsException.
22 (regionMatches): Obey case option during string comparison.
24 * configure.host (ligcj_interpreter): New variable. Enable
25 interpreter by default on IA-32.
26 * configure.in: Examine libgcj_interpreter.
29 2000-01-07 Tom Tromey <tromey@cygnus.com>
31 * mauve-libgcj: Don't disable ClassTest.
33 * java/lang/natClass.cc (getClasses): Wrote.
35 2000-01-06 Tom Tromey <tromey@cygnus.com>
37 * java/lang/natClass.cc (_getConstructors): Correctly check
38 whether method name is the init name.
39 (getMethod): Look at accflags on method in `klass', not `this'.
41 2000-01-05 Tom Tromey <tromey@cygnus.com>
43 * java/lang/natClass.cc (getMethod): Compute offset relative to
44 `klass's methods table, not `this's table.
46 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
47 In unwrapping/widening case, check whether `k' is null, not
48 whether it is primitive. Initialize `num' from `argelts', not
49 `paramelts'. Correct create and pass arguments to ffi_call.
50 Don't let presence of `this' argument affect index used to look in
52 (COPY): Set appropriate element in `values' vector.
54 * java/lang/natClass.cc: Include <gcj/method.h>.
56 * java/lang/Class.h (_getMethods): Correctly declare as private,
59 * java/lang/Class.h (_getMethods): Declare.
60 * java/lang/Class.java (_getMethods): Declare.
61 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
62 (getDeclaredClasses): Always return empty array.
63 (_getMethods): New method.
65 (getDeclaredMethod): Return `rmethod'.
66 (finit_name): New global.
67 (getDeclaredMethods): Check for finit_name.
68 (_getMethods): Likewise.
69 (getMethod): Only return public methods.
71 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
72 jboolean and select correct ffi type on that basis.
73 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
74 Constructor call always has `void' return type.
76 2000-01-04 Tom Tromey <tromey@cygnus.com>
78 * java/lang/Class.h (getSignature): Updated.
79 * java/lang/Class.java (getSignature): Updated.
80 * java/lang/natClass.cc (getSignature): Added `is_constructor'
82 (getConstructor): Ensure constructor is public.
83 (_getConstructors): Check for public-ness of constructor when
84 `declared' is false, not when it is true.
86 2000-01-04 Warren Levy <warrenl@cygnus.com>
88 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
90 (receive): Set the sender's address in the DatagramPacket.
92 2000-01-04 Tom Tromey <tromey@cygnus.com>
94 * java/lang/reflect/natConstructor.cc (newInstance): Pass
95 declaring class as return_type argument to
96 _Jv_CallNonvirtualMethodA.
97 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
98 constructor case, create object and use it as `this' argument.
99 * java/lang/Class.h (_getConstructors): Declare.
100 (_getFields): Declare.
101 * java/lang/Class.java (getConstructors): Wrote.
102 (_getConstructors): New native method.
103 (getDeclaredConstructors): Wrote.
104 (_getFields): Declare new native method.
105 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
107 (getMethod): Work correctly when class is primitive.
108 (getDeclaredMethods): Likewise. Compute offset using `method',
110 (getDeclaredMethod): Likewise.
111 (getConstructor): Wrote.
112 (ConstructorClass): New define.
113 (getDeclaredConstructor): Wrote.
114 (_getConstructors): New method.
115 (_getFields): New method.
118 * Makefile.in: Rebuilt.
119 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
121 * prims.cc: Remove `#pragma implementation'.
122 * gcj/array.h: Remove `#pragma interface'.
124 * prims.cc (_Jv_equaln): New function.
125 * java/lang/Class.java (getSignature): Declare.
126 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
127 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
129 (getSignature): New method.
130 (getDeclaredMethod): Wrote.
132 Include StringBuffer.h.
133 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
134 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
136 (getSignature): Declare.
137 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
138 (_Jv_equaln): Declare.
139 (_Jv_CallNonvirtualMethodA): Declare.
140 * Makefile.in: Rebuilt.
141 * Makefile.am (nat_source_files): Added natConstructor.cc.
142 (java/lang/reflect/Constructor.h): New target.
143 * java/lang/reflect/natConstructor.cc: New file.
144 * java/lang/reflect/Constructor.java (newInstance): Now native.
145 (declaringClass): Renamed from decl_class.
146 (offset): Renamed from index.
147 (getType): New native method.
148 (getModifiers): Now native.
149 (getParameterTypes): Call getType if required.
150 (hashCode): Include hash code from declaring class.
151 (modifiers): Removed.
152 (toString): Call getType if required.
153 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
154 * java/lang/reflect/natMethod.cc (hack_call): New method.
155 Removed `#if 0' around FFI code.
156 Include <gnu/gcj/RawData.h>.
157 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
158 IllegalArgumentException when argument object and class disagree.
159 (_Jv_GetTypesFromSignature): New function.
161 (ObjectClass): New define.
162 (_Jv_CallNonvirtualMethodA): New function.
163 * java/lang/reflect/Method.java (hack_trampoline): New method.
164 (hack_call): New native method.
166 1999-12-21 Per Bothner <per@bothner.com>
168 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
169 offset in new Method.
171 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
173 * java/lang/natObject.cc (notify): Throw message with
174 IllegalMonitorStateException.
177 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
178 (isInterrupted_): New function, which does clear interrupt_flag.
179 (interrupt): Use `isInterrupted_'.
180 * java/lang/natThread.cc (interrupt): Add comment.
181 (join): Set `prev' in joiner loop.
182 Change various calls to `isInterrupted' to use `isInterrupted_'.
183 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
184 on linux. Set result to 0 on an interrupt. Test interrupted status
185 of java Thread object directly.
186 FLAG_INTERRUPTED: removed.
187 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
188 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
189 (_Jv_InitThreads): Don't block SIGINT.
190 (_Jv_ThreadWait): Don't configure SIGINT handler.
192 1999-12-21 Tom Tromey <tromey@cygnus.com>
194 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
196 1999-12-20 Tom Tromey <tromey@cygnus.com>
198 * java/lang/reflect/Modifier.java (STRICT): New constant.
199 (isStrict): New method.
200 (toString): Added `strict'.
202 1999-12-23 Anthony Green <green@cygnus.com>
204 * configure: Rebuilt.
205 * configure.in (LIBDATASTARTSPEC): Force data_start in with
208 1999-12-19 Anthony Green <green@cygnus.com>
210 * libgcjdata.c: New file.
211 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
212 * configure: Rebuilt.
213 * configure.in (LIBDATASTARTSPEC): Force data with a known name
215 * Makefile.in: Rebuilt.
216 * Makefile.am: Build libgcjdata.a.
218 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
219 * configure: Rebuilt.
220 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
223 1999-12-17 Tom Tromey <tromey@cygnus.com>
225 * java/lang/reflect/Method.java (toString): Call getType if
226 required. Partial fix for PR libgcj/111. From Per Bothner.
228 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
230 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
232 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
233 null String constructor parameter.
234 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
235 for exception messages.
236 BooleanClass: declare.
237 (setOption): Use BooleanClass instead of Class.forName() for
239 (bind): Cast 4th parameter of setsockopt to `char *' for
240 compatibility with older Solaris headers.
241 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
242 sprintf calls for exception messages.
243 BooleanClass, IntegerClass: declare.
244 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
247 1999-12-15 Tom Tromey <tromey@cygnus.com>
249 * java/lang/natSystem.cc (init_properties): Don't set user.name or
250 user.home if NO_GETUID defined. Only set user.dir if getcwd
253 * include/config.h.in: Rebuilt.
254 * acconfig.h (NO_GETUID): New define.
255 * configure.in: Rebuilt.
256 * configure.in: Define NO_GETUID in cross case. Check for getcwd
259 1999-12-08 Tom Tromey <tromey@cygnus.com>
261 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
262 where no recursive mutexes exist. Fixes PR libgcj/117.
264 1999-12-05 Anthony Green <green@cygnus.com>
266 * include/jvm.h: Declare many functions with
267 __attribute__((__malloc__)).
268 * gcj/javaprims.h: Ditto.
270 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
272 * THANKS: Giving credit where credit is due.
274 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
276 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
278 * java/lang/natString.cc (equalsIgnoreCase): return false if
279 anotherString is null.
280 * java/lang/Boolean.java (valueOf): return FALSE if argument is
283 1999-11-30 Tom Tromey <tromey@cygnus.com>
285 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
286 mutex to initialize. Initialize `count' if required.
289 1999-11-27 Per Bothner <per@bothner.com>
291 * exception.cc: Remove prototype declarations for malloc and free.
292 These clash with recent versions of glibc, which specifies `throws ()'
293 when __cplusplus is defined. Instead, #include <stdlib.h>.
295 1999-11-24 Tom Tromey <tromey@cygnus.com>
297 * prims.cc (_Jv_NewObjectArray): Use
298 _Jv_GetArrayElementFromElementType.
299 (_Jv_NewPrimArray): Likewise.
300 * java/lang/natObject.cc (clone): Use
301 _Jv_GetArrayElementFromElementType instead of sizeof.
302 * java/lang/natSystem.cc (arraycopy): Use
303 _Jv_GetArrayElementFromElementType.
304 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
307 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
309 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
310 Exception messages. PR java.net/57.
311 (bind): set SO_REUSEADDR before bind.
312 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
313 overruns. PR java.net/57.
315 1999-11-19 Tom Tromey <tromey@cygnus.com>
317 * Makefile.am (DIVIDESPEC): Removed.
318 (EXCEPTIONSPEC): Removed.
320 1999-11-19 Andrew Haley <aph@cygnus.com>
322 * Makefile.am (JCFLAGS): Add -L$(here)
324 * Makefile.in: Rebuild.
326 1999-11-18 Tom Tromey <tromey@cygnus.com>
328 * java/lang/natDouble.cc: Include <config.h>.
330 * include/config.h.in: Rebuilt.
331 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
332 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
334 * configure: Rebuilt.
335 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
336 requested by configure.host. Don't put `-D' option into
337 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
339 * configure: Rebuilt.
340 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
343 1999-11-18 Andrew Haley <aph@cygnus.com>
345 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
346 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
348 * Makefile.in: Rebuild
349 * acconfig.h: remove SJLJ_EXCEPTIONS
350 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
351 Do not AC_DEFINE SJLJ_EXCEPTIONS.
352 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
353 * gcj/Makefile.in, include/Makefile.in: rebuild.
354 * include/config.h.in: remove SJLJ_EXCEPTIONS.
356 1999-11-18 Andrew Haley <aph@cygnus.com>
358 * gij.cc (main): Rename label to prevent conflict.
360 * exception.cc (_Jv_type_matcher): Don't check the table if we're
361 using setjmp/longjmp exceptions: there isn't one.
363 1999-11-17 Andrew Haley <aph@cygnus.com>
365 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
366 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
367 (__sjthrow): Add declaration.
368 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
372 * Makefile.in: Rebuild
373 * acconfig.h: Add SJLJ_EXCEPTIONS
374 * configure.in: Add SJLJ_EXCEPTIONS
375 * configure: Rebuild.
376 * gcj/Makefile.in: Rebuild.
377 * gcj/cni.h: Add support for sjlj-exceptions.
378 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
379 * include/Makefile.in: Rebuild.
380 * include/default-signal.h: Add support for sjlj-exceptions.
382 1999-11-18 Tom Tromey <tromey@cygnus.com>
384 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
386 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
388 (method_cache): Made larger.
390 1999-11-11 Tom Tromey <tromey@cygnus.com>
392 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
393 initializing mutex. Initialize `count' when required.
395 1999-11-07 Anthony Green <green@trip.cygnus.com>
397 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
400 1999-11-05 Tom Tromey <tromey@cygnus.com>
402 * java/lang/natThread.cc (destroy): Removed incorrect comment.
404 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
406 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
407 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
410 1999-11-05 Tom Tromey <tromey@cygnus.com>
412 * java/lang/natThread.cc (stop): Removed argument name.
414 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
415 `private'; now has default access.
416 * Makefile.in: Rebuilt.
417 * Makefile.am (java/lang/ThreadGroup.h): Removed.
419 1999-11-04 Tom Tromey <tromey@cygnus.com>
421 * java/lang/natClass.cc (method_cache_count): Removed.
422 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
423 (_Jv_AddMethodToCache): Don't loop.
425 * configure.in: Removed `qt' threads case.
426 * include/quick-threads.h: Removed.
427 * quick-threads.cc: Removed.
429 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
430 (_Jv_ThreadDestroy): Likewise.
431 * include/no-threads.h (_Jv_ThreadCancel): Removed.
432 (_Jv_ThreadDestroy): Likewise.
433 * include/posix-threads.h (struct _Jv_Thread_t): Removed
435 (_Jv_ThreadCancel): Removed decl.
436 (_Jv_ThreadDestroy): Removed.
437 * posix-threads.cc (_Jv_ThreadCancel): Removed.
438 (throw_cleanup): Removed.
439 (really_start): Don't push or pop cleanup.
440 (_Jv_ThreadInitData): Don't initialize `exception' field.
441 * java/lang/Thread.java (stop): Officially unimplemented.
442 * java/lang/natThread.cc (stop): Officially unimplemented.
444 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
446 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
449 1999-11-02 Tom Tromey <tromey@cygnus.com>
451 * boehm.cc: Don't include boehm-config.h.
453 1999-11-01 Tom Tromey <tromey@cygnus.com>
455 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
456 (sum_blocks): Removed.
457 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
459 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
461 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
463 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
464 * java/io/InputStreamReader (InputStreamReader): ditto.
466 1999-10-22 Tom Tromey <tromey@cygnus.com>
468 * Makefile.in: Rebuilt.
469 * Makefile.am (java/lang/ClassLoader.h): New target.
470 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
473 * include/java-props.h (_Jv_Compiler_Properties): Changed
475 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
476 * include/jvm.h (_Jv_GCSetInitialHeapSize,
477 _Jv_GCSetMaximumHeapSize): Declare.
478 (JvRunMain, _Jv_RunMain): Declare.
479 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
480 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
481 (_Jv_GCSetMaximumHeapSize): Likewise.
482 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
483 (_Jv_GCSetMaximumHeapSize): Likewise.
484 * prims.cc (parse_heap_size): New function.
485 (_Jv_SetInitialHeapSize): Likewise.
486 (_Jv_SetMaximumHeapSize): Likewise.
487 (_Jv_Compiler_Properties): New global.
488 * gij.cc (help): New function.
490 (heap_size): Likewise.
491 (heap_max_size): Likewise.
492 (main): Parse arguments. Set _Jv_Compiler_Properties.
493 Include <config.h>, <java-props.h>.
494 (_Jv_Compiler_Properties): Removed.
496 1999-10-18 Tom Tromey <tromey@cygnus.com>
498 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
500 (redirect): New static field.
501 * java/lang/ClassLoader.java (getSystemClassLoader): Now
503 (getVMClassLoader0): Removed.
504 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
506 (getSystemClassLoader): Implemented.
508 1999-10-16 Anthony Green <green@cygnus.com>
510 * java/lang/ClassLoader.java (getSystemResource): Use
511 getSystemClassLoader instead of ClassLoader.system.
512 (getSystemResourceAsStream): Ditto.
514 * java/lang/natClassLoader.cc (redirect): Make static and
515 remove #ifdef INTERPRETER so it is always defined.
516 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
517 returns a VMClassLoader.
519 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
520 PropertyResourceBundle if a properties file is found before a
521 ResourceBundle class.
523 1999-10-15 Tom Tromey <tromey@cygnus.com>
525 * gij.cc (main): Formatting fixes.
526 (_Jv_Compiler_Properties): Define.
527 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
529 (init_properties): Set properites from _Jv_Compiler_Properties.
530 * include/java-props.h (_Jv_Compiler_Properties,
531 _Jv_Environment_Properties): Declare.
533 * include/java-props.h: Added copyright.
535 1999-10-13 Anthony Green <green@cygnus.com>
537 * libtool-version: Catch up by incrementing current.
539 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
540 * configure, include/config.h.in: Rebuilt.
541 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
542 * configure.in: Added --disable-getenv-properties and new define
543 `DISABLE_GETENV_PROPERTIES'.
545 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
546 (next_property_key): New function.
547 (next_property_value): New function.
548 (process_gcj_properties): New function.
549 (JvRunMain): Call process_gcj_properties.
552 * java/lang/natSystem.cc (init_properties): Set properties defined
555 * include/java-props.h: New file.
557 * java/lang/natSystem.cc (init_properties): Add new properties to
558 conform with Java Product Versioning Specification.
560 1999-10-12 Tom Tromey <tromey@cygnus.com>
562 * configure: Rebuilt.
563 * configure.in: Fixed test for --disable-java-net.
565 1999-10-06 Tom Tromey <tromey@cygnus.com>
567 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
568 when building Canadian cross.
569 (NATIVE): Don't define when cross-compiling.
571 1999-10-04 Tom Tromey <tromey@cygnus.com>
573 * java/net/natPlainSocketImpl.cc: Don't include headers if
574 java.net is disabled.
576 * Makefile.in: Rebuilt.
577 * Makefile.am (ZINCS): Removed. This is defined in configure.in
578 when needed, and must be left empty when not needed.
580 1999-10-01 Anthony Green <green@cygnus.com>
582 * THANKS: Refreshed from htdocs version.
584 1999-10-01 Steve Chamberlain <sac@pobox.com>
586 * Makefile.in: Rebuilt.
587 * Makefile.am (ZINCS): Define
589 * configure: Rebuilt.
590 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
592 * java/lang/ieeefp.h: Add definitions for picoJava.
594 1999-10-01 Tom Tromey <tromey@cygnus.com>
596 * configure: Rebuilt.
597 * configure.in: Set classpath when invoking gcj. Use changequote
598 around sed invocation.
600 * java/net/natPlainSocketImpl.cc: Stub native functions if
601 DISABLE_JAVA_NET is defined.
602 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
603 typo in exception string.
604 (getTimeToLive): Likewise.
605 Stub native functions if DISABLE_JAVA_NET is defined.
606 * java/net/natInetAddress.cc: Stub native functions if
607 DISABLE_JAVA_NET is defined.
608 * configure.host: Disable java.net for mips-tx39.
609 * configure, include/config.h.in: Rebuilt.
610 * acconfig.h (DISABLE_JAVA_NET): Undefine.
611 * configure.in: Added --disable-java-net and new define
614 1999-09-30 Tom Tromey <tromey@cygnus.com>
616 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
618 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
622 1999-09-28 Tom Tromey <tromey@cygnus.com>
624 * configure: Rebuilt.
625 * configure.in (PROCESS): In POSIX case, only set if not already
627 * configure.host (PROCESS): Set in mips-tx39 case.
629 * aclocal.m4, configure: Rebuilt.
630 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
631 appropriate AC_PROG_ symbol.
633 1999-09-24 Tom Tromey <tromey@cygnus.com>
635 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
637 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
639 Fix for PR java.util/47:
640 * configure, include/config.h: Rebuilt.
641 * configure.in: Don't look for ctime or ctime_r.
642 * Makefile.in: Rebuilt.
643 * Makefile.am (nat_source_files): Don't mention natDate.cc.
644 * java/util/natDate.cc: Removed.
645 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
647 (getAvailableIDs): Rewrote.
648 (getTimeZone): Rewrote.
649 * java/util/Date.java (toGMTString): New method.
650 (toLocaleString): New method.
653 1999-09-23 Tom Tromey <tromey@cygnus.com>
655 * configure: Rebuilt.
656 * configure.in: Print message when checking to see if gcj can
657 handle -fuse-divide-subroutine.
659 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
661 * java/lang/FirstThread.java (run0): Renamed to `run'.
664 * prims.cc (main_init): New function.
665 (JvRunMain): Call it.
666 (_Jv_RunMain): Likewise.
668 (main_init): Ignore SIGPIPE. Fixes PR 51.
670 1999-09-22 Tom Tromey <tromey@cygnus.com>
672 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
674 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
676 * java/text/MessageFormat.java (MessageFormat(String)): Set the
678 * java/text/NumberFormat.java: Check that object is a Number. If
679 not, throw IllegialArgumentException.
681 1999-09-21 Tom Tromey <tromey@cygnus.com>
683 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
684 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
686 * include/posix-threads.h (_Jv_MutexDestroy): Use
688 (_Jv_MutexLock): Likewise.
689 (_Jv_MutexUnlock): Likewise.
691 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
692 previous patch; it too was incorrect.
693 * java/io/PrintStream.java (PrintStream): Likewise.
695 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
696 refer to `this' before calling superclass constructor.
697 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
698 before calling superclass constructor.
700 1999-09-20 Tom Tromey <tromey@cygnus.com>
702 * configure: Rebuilt.
703 * configure.in: Send output of `-fuse-divide-subroutine' test
704 compilation to /dev/null.
706 1999-09-14 Tom Tromey <tromey@cygnus.com>
708 * include/java-insns.h: Turned constants into an enum. Added
709 multiple-inclusion protection.
711 1999-09-10 Tom Tromey <tromey@cygnus.com>
713 * configure: Rebuilt.
714 * configure.in: Build include/Makefile.
715 * Makefile.in: Rebuilt.
716 * Makefile.am (SUBDIRS): Added gcj and include.
717 (install-data-local): New target.
718 (extra_headers): New macro.
719 * include/Makefile.in: New file.
720 * include/Makefile.am: New file.
722 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
723 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
725 * boehm.cc: Don't include java-threads.h or gcj/field.h.
726 * resolve.cc: Include config.h.
727 * defineclass.cc: Include config.h.
728 * include/java-interp.h: Don't include config.h.
729 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
732 * gcj/javaprims.h: Regenerated namespace decls.
733 * classes.pl (scan): Don't put `;' after closing brace.
735 * Makefile.in: Rebuilt.
736 * Makefile.am (INCLUDES): Added -I for top_srcdir.
737 * configure.in: Create gcj/Makefile.
738 * gcj/Makefile.in: New file.
739 * gcj/Makefile.am: New file.
740 * java/lang/Object.h: Don't include any other headers.
741 * gcj/array.h: Renamed from include/java-array.h.
742 * gcj/field.h: Renamed from include/java-field.h.
743 * gcj/method.h: Renamed from include/java-method.h.
744 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
745 Updated all files to reflect new include structure.
747 1999-09-09 Tom Tromey <tromey@cygnus.com>
749 * configure: Rebuilt.
750 * configure.in: Fixed typo; variable is THREADSPEC and not
753 1999-09-08 Tom Tromey <tromey@cygnus.com>
755 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
756 previous change and implemented a correct test in the __m_count
759 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
762 1999-09-07 Tom Tromey <tromey@cygnus.com>
764 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
765 code and don't set errno.
767 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
768 not `r'. Changed `done_sleeping' to a `bool'.
770 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
772 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
773 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
774 by another thread, rather than by the GC.
775 (_Jv_CondWait): Prevent premature thread wakeup by GC.
776 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
777 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
780 1999-09-03 Tom Tromey <tromey@cygnus.com>
782 * configure: Rebuilt.
783 * configure.in: Check for fstat function.
784 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
787 1999-09-02 Tom Tromey <tromey@cygnus.com>
789 * include/java-array.h (jobjectArrayjchar): Removed unused
792 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
793 _Jv_PrepareCompiledClass while holding class mutex.
795 1999-09-01 Tom Tromey <tromey@cygnus.com>
797 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
798 (_Jv_PthreadGetMutex): Use it.
799 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
800 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
801 (_Jv_MutexLock): Likewise.
802 (_Jv_MutexUnlock): Likewise.
803 * include/config.h.in: Rebuilt.
804 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
805 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
806 * configure: Rebuilt.
807 * libgcj.spec.in: Don't mention INTERPSPEC.
808 * configure.in (INTERPSPEC): Removed.
809 Only run pthreads-related checks when using POSIX threads. Check
810 for m_count and __m_count in mutex structure.
812 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
814 * java/lang/natClass.cc: Fixed notification of threads
815 when class initialization is complete.
817 1999-09-01 Tom Tromey <tromey@cygnus.com>
819 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
820 * resolve.cc: Removed constants defined by
821 java.lang.reflect.Modifier.
822 Include <java/lang/reflect/Modifier.h>.
823 (_Jv_ResolvePoolEntry): Use values from Modifier.
824 (_Jv_DetermineVTableIndex): Likewise.
825 (_Jv_PrepareClass): Likewise.
827 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
828 java.lang.reflect.Modifier.
829 Include <java/lang/reflect/Modifier.h>.
830 (checkExtends): Use values from Modifier.
831 (checkImplements): Likewise.
832 (handleField): Likewise.
833 (handleConstantValueAttribute): Likewise.
834 (handleFieldsEnd): Likewise.
835 (handleMethod ): Likewise.
836 (handleMethodsEnd): Likewise.
837 (handleClassBegin): Likewise.
838 * interpret.cc: Removed constants defined by
839 java.lang.reflect.Modifier.
840 (continue1): Use values from Modifier.
841 * java/lang/natClassLoader.cc: Removed constants defined by
842 java.lang.reflect.Modifier.
844 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
845 JV_STATE_NOTHING, not `0'.
846 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
848 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
849 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
851 (_Jv_PthreadGetMutex): New function.
852 (_Jv_PthreadCheckMonitor): Use it.
853 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
854 (_Jv_MutexLock): Update `count'.
855 (_Jv_MutexUnlock): Likewise.
856 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
859 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
861 * Makefile.am (.java.lo): Add rule.
863 * Makefile.in: Rebuilt.
865 1999-09-01 Tom Tromey <tromey@cygnus.com>
867 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
868 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
870 (_Jv_CondNotify): Use it.
871 (_Jv_CondNotifyAll): Likewise.
873 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
875 1999-08-31 Tom Tromey <tromey@cygnus.com>
877 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
880 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
882 * posix-threads.cc: Include <errno.h>.
884 1999-08-23 Tom Tromey <tromey@cygnus.com>
886 * boehm.cc: Undefine TRUE and FALSE.
888 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
890 1999-08-21 Tom Tromey <tromey@cygnus.com>
892 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
895 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
897 * configure.in: Check for in_addr_t in netinet/in.h too. Check
899 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
900 (HAVE_STRUCT_IP_MREQ): Added.
901 * configure, include/config.h.in: Rebuilt.
902 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
904 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
905 Disable if ip_mreq is not available.
907 * configure.in: Check types ssize_t and in_addr_t.
908 * acconfig.h: Undefine them.
909 * configure, include/config.h.in: Rebuilt.
911 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
912 function that detects the signature of getpwuid_r.
913 (init_properties): Use it.
914 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
917 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
919 * interpret.cc (continue1): Implement explicit dispatch table.
920 insn_target: Explicit interpreter switch table.
921 SAVE_PC: New macro, moves pc saving code into instructions that
923 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
924 PC_REGISTER_ASM: New macro.
925 INLINE_SWITCH: New macro. Constrols dispatching strategy.
926 opcode: Remove local variable.
927 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
928 (POKEI): Use _Jv_word.
929 (iinc): Use _Jv_word.
930 (dupx): Change reference argument (sp) to pointer.
933 * interpret.cc: Remove instruction timing instrumentation.
935 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
936 comment. Don't use _Jv_ClassNameSamePackage.
938 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
939 URLPathEntry, CacheEntry}: Removed.
941 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
943 (.java.lo): Rule removed.
945 * Makefile.in: Rebuilt.
947 1999-08-19 Tom Tromey <tromey@cygnus.com>
949 * java/lang/natThread.cc (class locker): New class.
950 (join): Use a locker around _Jv_CondWait.
953 1999-08-18 Tom Tromey <tromey@cygnus.com>
955 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
956 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
958 1999-08-18 Tom Tromey <tromey@cygnus.com>
960 * include/javaprims.h ("Java"): Regenerated namespace decls.
962 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
964 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
965 from _Jv_InternClassStrings.
967 * prims.cc (_Jv_RunMain): New function.
968 (JvRunMain): Remove gij-support.
970 * gij.cc (main): Use _Jv_RunMain.
972 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
974 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
975 argument in temp variable.
976 (continue1): For all op_x2y insns, use temp variable for
977 intermediate value. Also remove some comments.
979 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
980 (forName): Don't call _Jv_InitClass.
982 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
984 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
986 * java/util/jar/JarInputStream.java: New file.
988 * java/util/jar/JarEntry.java: New file.
990 * java/util/jar/JarFile.java: New file.
992 * java/net/URLClassLoader.java: New file.
994 * java/net/JarURLConnection.java: New file.
996 * gnu/gcj/protocol/jar/Handler.java: New file.
998 * gnu/gcj/protocol/jar/Connection.java: New file.
1000 * java/security/SecureClassLoader.java: New file.
1002 * java/lang/ClassLoader.java (parent): New variable.
1003 (ClassLoader (ClassLoader)): new constructor.
1004 (findClass): New method.
1005 (loadClass): Add default 1.2 implementation.
1006 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1007 (readfully): Removed.
1009 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1010 (findSystemClass): New method.
1011 (VMClassLoader): Constructor rewritten.
1013 All other methods removed.
1015 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1016 to gnu::gcj::runtime::VMClassLoader.
1017 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1019 (VMClassLoader::findSystemClass): renamed from findBootClass.
1021 * Makefile.am: Add new files.
1022 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1024 * Makefile.in: Rebuilt.
1026 1999-08-17 Tom Tromey <tromey@cygnus.com>
1028 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1030 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1033 1999-08-16 Tom Tromey <tromey@cygnus.com>
1035 * configure: Rebuilt.
1036 * configure.in: Set DIVIDESPEC to empty string if compiler does
1037 not support -fuse-divide-subroutine.
1039 1999-08-14 Per Bothner <per@bothner.com>
1041 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1042 * java/lang/natClass.cc (initializeClass): Likewise.
1043 * java/lang/ClassLoader.java (resolveClass0): New static method.
1044 (resolveClass): Call resolveClass0.
1045 (findSystemClass): No longer static.
1047 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1049 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1051 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1053 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1056 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1058 * Makefile: Rebuilt.
1059 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1062 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1065 * configure: Rebuilt.
1066 * configure.in: Properly align --help output, fix capitalization
1068 * acinclude.m4: Likewise.
1070 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1072 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1074 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1075 (_Jv_callInterpretedMethod): Unused. Remove.
1076 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1078 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1079 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1080 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1081 * interpret.cc: use _Jv_word.
1082 * defineclass.cc: use_Jv_word.
1083 * resolve.cc: Use _Jv_word.
1084 (_Jv_ResolvePoolEntry): Return _Jv_word.
1085 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1086 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1088 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1091 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1093 * configure: Rebuilt.
1094 * configure.in (sched_yield): Try librt first, then libposix4.
1095 Add -lrt, -lposix4 to THREADSPEC.
1097 1999-08-08 Anthony Green <green@cygnus.com>
1099 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1101 1999-08-08 Anthony Green <green@cygnus.com>
1103 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1106 1999-08-08 Anthony Green <green@cygnus.com>
1110 * include/config.h.in: Rebuilt.
1111 * acconfig.h: Add INTERPRETER.
1113 * Makefile.in: Rebuilt.
1114 * Makefile.am (libffi_files): Identify the libffi object files for
1115 inclusion in libgcj.
1116 (LIBFFIINCS): Define.
1118 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1119 Dummy definition for configurations without an interpreter.
1121 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1122 java::lang::Boolean constructor.
1124 * include/java-interp.h: Always include java-cpool.h.
1126 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1127 when INTERPRETER not defined.
1129 * java/lang/Class.h (finalize): Define.
1131 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1132 IOException from File.getCanonicalPath.
1133 (getStream): Likewise.
1136 * THANKS: More thanks.
1138 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1140 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1142 (_Jv_PrepareClass): Allow non-abstract classes to
1143 have abstract subclasses.
1144 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1146 * interpret.cc (continue1/perform_invoke): Don't sign extend
1148 (continue1/lshl,lshr): Push long, not int.
1149 (continue1/ulshr): Use UINT64, not long long.
1150 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1152 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1153 * java/lang/FirstThread.java (run): Add top-level exception
1155 (run0): Renamed from run.
1157 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1159 * configure.in (--with-interpreter): Added.
1160 * include/config.h.in (INTERPRETER): Added.
1162 * java/lang/ClassLoader.java: File replaced.
1163 * java/lang/VMClassLoader.java: New file.
1164 * java/lang/natClassLoader.cc: New file.
1165 * gnu/gcj/runtime/MethodInvocation.java: New file.
1166 * gnu/gcj/util/path/SearchPath.java: New file.
1167 * gnu/gcj/util/path/PathEntry.java: New file.
1168 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1169 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1170 * gnu/gcj/util/path/URLPathEntry.java: New file.
1171 * gnu/gcj/util/path/CacheEntry.java: New file.
1172 * include/java-interp.h: New file.
1173 * include/java-cpool.h: New file.
1174 * include/java-insns.h: New file.
1175 * defineclass.cc: New file.
1176 * interpret.cc: New file.
1177 * resolve.cc: New file.
1179 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1180 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1181 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1183 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1184 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1186 (initializeClass): Use new JV_ prefixed names. Also, call
1187 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1189 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1190 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1191 JV_STATE_LINKED): New.
1192 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1193 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1194 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1195 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1196 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1197 _Jv_InterpMethodInvocation): New friends for interpreter.
1199 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1200 include/java-cpool.h and renamed with JV_ prefix.
1202 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1204 (_Jv_UnregisterClass): New decl.
1206 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1207 class loader argument.
1208 (_Jv_FindClass): Use class loader.
1210 * prims.cc (_Jv_makeUtf8Const): New function.
1211 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1212 (_Jv_NewPrimArray): Ditto.
1213 (_Jv_FindClassFromSignature): Ditto.
1214 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1215 * java/lang/reflect/natMethod.cc (getType): Ditto.
1217 * include/java-field.h (_Jv_Field::isRef): Make robust for
1218 non-resolved contexts.
1220 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1221 Also, don't mark class->next field.
1223 * java/lang/VirtualMachineError.java: Added FIXME note.
1225 * configure.in (INTERPSPEC): New spec.
1226 * libgcj.spec.in: Added INTERPSPEC.
1227 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1228 gnu/gcj/runtime/MethodInvocation.
1229 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1230 (ordinary_java_source_files): Added above mentioned java classes.
1232 * configure: Rebuilt.
1233 * Makefile.in: Rebuilt.
1235 1999-08-06 Tom Tromey <tromey@cygnus.com>
1237 * configure: Rebuilt.
1238 * configure.in: Look for sched_yield in -lrt.
1240 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1242 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1243 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1244 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1246 (toString): Print correctly when `country' is empty.
1248 1999-08-04 Per Bothner <per@bothner.com>
1250 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1252 1999-08-02 Tom Tromey <tromey@cygnus.com>
1254 * aclocal.m4, configure: Rebuilt for new libtool.
1256 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1258 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1259 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1260 * java/net/ServerSocket.java: Define ANY_IF.
1261 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1262 all network interfaces.
1263 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1264 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1266 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1268 * java/io/natFile.cc (performMkdir): Remove FIXME.
1269 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1271 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1273 * configure.in: Check for bstring.h.
1274 * configure, include/config.h.in: Rebuilt.
1275 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1276 * java/net/natPlainSocketImpl.cc: Likewise.
1278 1999-07-31 Tom Tromey <tromey@cygnus.com>
1283 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1285 * configure.in: Check for struct hostent_data and need for
1286 -D_REENTRANT for gethostbyname_r declaration.
1287 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1288 (lookup): Use hostent_data for fixed_buffer.
1289 * configure, include/config.h.in: Rebuilt.
1291 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1293 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1294 available. Don't cast memmove args to (void*).
1295 * configure.in: Do not abort if memmove is not available.
1297 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1299 * java/lang/natString.cc (substring): optimize where substring is
1301 * java/io/File.java (getName): don't return separator with file name.
1302 * java/io/natFile.cc (attr): fix overflow.
1304 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1306 * mauve-libgcj: Disable Object Serialization tests.
1308 1999-07-20 Warren Levy <warrenl@cygnus.com>
1310 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1311 Default to using PlainDatagramSocketImpl.
1312 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1314 1999-07-19 Tom Tromey <tromey@cygnus.com>
1316 * include/stamp-h.in: New file.
1318 1999-07-12 Tom Tromey <tromey@cygnus.com>
1320 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1323 1999-07-07 Andrew Haley <aph@cygnus.com>
1325 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1326 bytes to make it point after the instruction where the trap
1328 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1330 1999-07-07 Tom Tromey <tromey@cygnus.com>
1332 * mauve-libgcj: Explicitly enable formerly disabled java.text
1335 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1338 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1340 * java/net/URL.java (equals): Compare strings using String.equals.
1341 * java/net/URL.java (sameFile): Ditto.
1343 1999-07-02 Warren Levy <warrenl@cygnus.com>
1345 * configure: Rebuilt.
1346 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1347 * include/config.h.in: Rebuilt.
1348 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1349 (mcastGrp): Updated FIXME comments.
1350 (setOption): Fixed typo.
1351 (getOption):Implemented IP_MULTICAST_IF.
1353 1999-07-02 Warren Levy <warrenl@cygnus.com>
1355 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1356 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1357 (getTimeToLive): Implemented.
1358 (setOption): Implemented IP_MULTICAST_IF.
1360 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1362 * java/lang/String.java (toString): Check for this == null and throw
1363 NullPointerException.
1365 1999-07-01 Warren Levy <warrenl@cygnus.com>
1367 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1368 to count and revised comments to match.
1369 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1370 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1371 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1372 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1373 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1374 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1376 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1378 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1379 properly as count rather than outlength.
1380 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1381 output on overflow rather than buffer fill.
1382 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1383 if markPos is 0 and there is still room in the buffer.
1385 1999-07-01 Andrew Haley <aph@cygnus.com>
1387 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1388 This is a workaround for a bug in glibc's pthreads package which
1389 doesn't deliver any sigcontext information to a signal handler.
1391 1999-06-24 Tom Tromey <tromey@cygnus.com>
1393 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1394 * java/lang/fdlibm.h (HUGE): Conditionally define.
1396 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1398 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1399 * java/lang/e_log.c: Don't use __uint32_t.
1401 1999-05-27 Eric Christopher <echristo@cygnus.com>
1403 * configure: Rebuilt
1404 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1405 * acconfig.h: Rebuilt
1406 * include/config.h.in: Rebuilt
1408 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1409 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1410 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1411 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1412 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1413 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1414 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1415 and namespace collision with __uint32_t
1417 1999-06-23 Tom Tromey <tromey@cygnus.com>
1419 * java/util/zip/InflaterInputStream.java (read): Throw
1420 ZipException if inflater throws a DataFormatException.
1422 1999-06-23 Warren Levy <warrenl@cygnus.com>
1424 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1425 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1426 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1427 is not final per JDK.
1428 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1430 * java/util/zip/DataFormatException.java: Class extends Exception.
1431 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1432 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1433 * java/util/zip/ZipInputStream.java: ditto.
1434 (closeEntry): Changed method name to match JDK spec.
1436 1999-06-21 Tom Tromey <tromey@cygnus.com>
1438 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1441 * Makefile.in: Rebuilt.
1442 * Makefile.am (toolexeclibdir): Define as libdir when
1444 * configure: Rebuilt.
1445 * configure.in (USE_LIBDIR): New conditional.
1447 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1449 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1450 hostname in returned InetAddress objects.
1451 (getLocalHostname): Fix typo.
1452 * java/net/InetAddress.java (getByName): Set hostname on return
1454 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1457 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1459 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1460 interfaces if host==NULL.
1461 (accept): Throw message with InterruptedIOException.
1462 (getOption): Cache localAddress.
1463 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1464 'address' for DatagramSocket.
1465 (setTimeToLive): Fix compiler warnings.
1466 (getOption): Cache localAddress.
1467 * java/net/Socket.java (getLocalAddress): Don't need local
1468 InetAddress object. Add FIXME comment about calling checkConnect().
1469 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1470 connection queue to 50 as per JDK 1.2 docs.
1471 (ServerSocket(int,int)): Listen on all network interfaces by
1472 default, per JDK 1.2 docs.
1473 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1474 Add localAddress caching.
1476 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1478 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1480 (write(byte[],int,int)): ditto.
1482 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1484 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1486 1999-06-11 Warren Levy <warrenl@cygnus.com>
1488 * mauve-libgcj: Activated java.net Mauve tests.
1490 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1492 * java/net/natInetAddress.cc (aton): Fix typos.
1493 (lookup): Use a bigger buffer size for gethostbyname_r on all
1494 versions of glibc. Updated FIXME comment explaining this.
1495 Modified while loops to not set herr = ERANGE to work around glibc
1496 problems. Use user specified hostname in InetAddress result when
1497 available (consistent with JDK).
1499 1999-06-10 Warren Levy <warrenl@cygnus.com>
1501 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1502 Throw FileNotFoundException instead of IOException.
1504 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1506 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1507 in static field name.
1508 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1509 throughout rather than ParseException.
1511 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1513 * java/lang/Runtime.java (exec): Convert prog name and arguments
1515 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1516 environment array conversion. Preserve current environment if envp
1517 not passed. Preserve PATH unless explicitly specified.
1518 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1519 followed by EOF. Set a flag when a line is terminated by '\r' and
1520 ignore following '\n' if set.
1522 1999-06-02 Warren Levy <warrenl@cygnus.com>
1524 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1525 Ignore context if spec is an absolute URL. Fix braindead
1527 (hashCode): Use JDK 1.2 style algorithm.
1528 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1529 context URL properly.
1531 1999-05-30 Anthony Green <green@cygnus.com>
1533 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1534 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1536 1999-05-28 Warren Levy <warrenl@cygnus.com>
1538 * java/net/DatagramSocket.java (laddr): Removed.
1539 (DatagramSocket): Removed attempts to get or set laddr if null.
1540 (getLocalAddress): Reimplemented per spec.
1541 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1543 (joinGroup): Throw NullPointerException if any argument is null.
1544 (leaveGroup): ditto.
1545 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1546 * java/net/PlainSocketImpl.java (timeout): Added.
1547 (getInputStream): Added FIXME comment on how to support timeouts
1549 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1550 * java/net/Socket.java: Added FIXME comments to identify
1551 conflicting specs between the JCL and JDK 1.2 documents.
1552 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1553 if host is null. Get localport value resolved by kernel if bind
1555 (receive): Implemented support for timeouts in UDP.
1556 (setOption): Implemented based on natPlainSocketImpl version.
1558 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1559 resolved by kernel if bind lport is 0.
1560 (connect): Get localport value resolved by kernel if bind wasn't
1561 done to set localport.
1562 (accept): Implemented support for timeouts for ServerSocket.
1563 (setOption): Save value for SO_TIMEOUT.
1564 (getOption): Return timeout for SO_TIMEOUT.
1566 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1568 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1569 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1570 (setOption): Made abstract.
1571 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1572 to avoid cpp conflicts in native code.
1573 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1574 cpp conflicts in native code.
1575 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1576 * java/net/Socket.java (getLocalAddress): Implemented.
1577 (setTcpNoDelay): Implemented.
1578 (getTcpNoDelay): Implemented.
1579 (setSoLinger): Implemented.
1580 (getSoLinger): Implemented.
1581 (getSoTimeout): Verify class type.
1582 (setSendBufferSize): Implemented.
1583 (getSendBufferSize): Implemented.
1584 (setReceiveBufferSize): Implemented.
1585 (getReceiveBufferSize): Implemented.
1586 (toString): Prepended "Socket".
1587 * java/net/SocketImpl.java (toString): Rewritten.
1588 (getOption): Made abstract.
1589 (setOption): Made abstract.
1590 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1591 (setOption): Implemented.
1592 (getOption): Implemented.
1594 1999-05-26 Warren Levy <warrenl@cygnus.com>
1596 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1597 address when null. Set SO_REUSEADDR for multicasts.
1598 (getSoTimeout): Implemented.
1599 (setSoTimeout): Implemented.
1600 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1601 * java/net/MulticastSocket.java (getInterface): Implemented.
1602 (setInterface): Implemented.
1603 (setTimeToLive): Check for invalid ttl.
1604 (joinGroup): Verify multicast address and security.
1605 (leaveGroup): Verify multicast address and security.
1606 (send): Implemented.
1607 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1613 (getTTL): Implemented as non-native.
1617 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1618 (getSoTimeout): Implemented.
1619 (setSocketFactory): Made synchronized.
1620 * java/net/Socket.java (setSoTimeout): Implemented.
1621 (getSoTimeout): Implemented.
1622 (close): Made synchronized.
1623 (setSocketImplFactory): Made synchronized.
1624 * java/net/SocketImpl.java: Implement SocketOptions interface.
1625 * java/net/natInetAddress.cc: Corrected module name at top of file.
1626 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1627 (bind): Added FIXME.
1628 (peek): Implemented.
1634 (setOption): Implemented for SO_REUSEADDR.
1635 (getOption): Implemented for SO_REUSEADDR.
1637 1999-05-24 Tom Tromey <tromey@cygnus.com>
1639 * java/util/ResourceBundle.java (getBundle): Throw
1640 NullPointerException if baseName is null.
1642 1999-05-22 Tom Tromey <tromey@cygnus.com>
1644 * java/util/zip/ZipInputStream.java (fill): New method.
1645 (compressed_len): New instance variable.
1646 (getNextStream): Set it.
1647 (read): Reset inflater on EOF. Only read via `super' if entry is
1649 (skip): Only skip via `super' if entry is deflated.
1650 * java/util/zip/Deflater.java (last_input_count): Removed.
1651 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1653 (needsInput): Don't use last_input_count.
1654 (setInput): Don't set last_input_count.
1655 * java/util/zip/natInflater.cc (getRemaining): Return correct
1657 (inflate): Return 0 if input array is length 0.
1658 (setInput): Don't set last_input_count.
1659 * java/util/zip/Inflater.java (last_input_count): Removed.
1661 1999-05-21 Tom Tromey <tromey@cygnus.com>
1663 * Makefile.in: Rebuilt.
1664 * Makefile.am (INCLUDES): Added $(ZINCS).
1665 * configure: Rebuilt.
1666 * configure.in (ZINCS): New subst.
1668 1999-05-21 Andrew Haley <aph@cygnus.com>
1670 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1671 to signal options to allow the same exceptions to be rethrown
1674 1999-05-20 Andrew Haley <aph@cygnus.com>
1676 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1678 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1679 (INIT_FPE): Exception string made more informative.
1680 * include/sparc-signal.h (INIT_FPE): Exception string made more
1682 * testsuite/libjava.lang/Divide_1.java: New file.
1683 * testsuite/libjava.lang/Divide_1.out: New file.
1685 1999-05-19 Tom Tromey <tromey@cygnus.com>
1687 * aclocal.m4, configure: Rebuilt.
1688 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1690 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1693 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1695 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1697 (update): Fail in default case. Always initialize `strat'.
1699 * mauve-libgcj: Enable java.util.zip.
1701 1999-05-18 Warren Levy <warrenl@cygnus.com>
1703 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1704 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1705 PlainDatagramSocketImpl.java, and SocketOptions.java.
1706 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1707 * Makefile.in: Rebuilt.
1709 * java/net/DatagramPacket.java: New file.
1710 * java/net/DatagramSocket.java: New file.
1711 * java/net/DatagramSocketImpl.java: New file.
1712 * java/net/MulticastSocket.java: New file.
1713 * java/net/PlainDatagramSocketImpl.java: New file.
1714 * java/net/SocketOptions.java: New file.
1715 * java/net/natPlainDatagramSocketImpl.cc: New file.
1717 1999-05-18 Tom Tromey <tromey@cygnus.com>
1719 * java/util/zip/ZipOutputStream.java (level): Initial value is
1720 Deflater.DEFAULT_COMPRESSION.
1721 (close): New method.
1722 (closeEntry): Likewise.
1724 (put_version): Likewise.
1725 (write_entry): Likewise.
1726 (put2, put4): Now return `int'.
1727 (comment): Default to empty string.
1728 (bytes_written): New instance variable.
1730 * java/util/zip/ZipEntry.java (setComment): Limit length of
1732 (setCrc): Check CRC validity.
1733 (setExtra): Check argument validity.
1734 (setMethod): Likewise.
1735 (setSize): Likewise.
1736 (ZipEntry): Likewise.
1737 * include/javaprims.h: Updated namespace declarations.
1738 * Makefile.in: Rebuilt.
1739 * Makefile.am (ordinary_java_source_files): Mention new files.
1740 (nat_source_files): Likewise.
1741 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1744 (getInputStream): Handle compressed entries.
1745 * java/util/zip/GZIPOutputStream.java: New file.
1746 * java/util/zip/GZIPInputStream.java: New file.
1747 * java/util/zip/DataFormatException.java: New file.
1748 * java/util/zip/CheckedInputStream.java: New file.
1749 * java/util/zip/CheckedOutputStream.java: New file.
1750 * java/util/zip/InflaterInputStream.java: Implemented.
1751 * java/util/zip/natInflater.cc: New file.
1752 * java/util/zip/Deflater.java: Implemented.
1753 * java/util/zip/natDeflater.cc: New file.
1754 * java/util/zip/DeflaterOutputStream.java: Implemented.
1756 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1757 ZipException, not IOException.
1758 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1761 1999-05-17 Tom Tromey <tromey@cygnus.com>
1763 * java/lang/natSystem.cc (init_properties): URL now points to
1766 1999-05-12 Per Bothner <bothner@cygnus.com>
1768 * java/util/Calendar.java (set): First call computeFields if needed.
1769 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1771 1999-05-12 Tom Tromey <tromey@cygnus.com>
1773 * configure: Rebuilt.
1774 * configure.in: Look for -ldl when using the Boehm collector.
1775 Look for sched_yield in -lposix4.
1777 1999-05-12 Per Bothner <bothner@cygnus.com>
1779 * java/io/File.java (mkdirs): Handle a null parent directory.
1781 1999-05-12 Tom Tromey <tromey@cygnus.com>
1783 * include/javaprims.h: Updated namespace declarations.
1784 * classes.pl (scan): Uniquify class list.
1785 * Makefile.in, configure: Rebuilt.
1786 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1787 (built_java_source_files): New macro.
1788 (nat_headers): Added built_java_source_files.
1789 (javao_files): Likewise.
1790 (EXTRA_libgcj_la_SOURCES): Likewise.
1791 (libgcj.zip): Create built class files.
1792 ($(built_java_source_files:.java=.class)): New target.
1793 (jv_convert_LDADD): Added -L$(here)/.libs.
1794 * configure.in: Create links for ConcreteProcess.java and
1795 natConcreteProcess.cc.
1796 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1797 * java/lang/natEcosProcess.cc: New file.
1798 * java/lang/EcosProcess.java: New file.
1799 * java/lang/PosixProcess.java: New file.
1800 * java/lang/natPosixProcess.cc: New file.
1802 1999-05-12 Warren Levy <warrenl@cygnus.com>
1804 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1805 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1806 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1807 (connect): Throw ConnectException.
1809 1999-05-11 Tom Tromey <tromey@cygnus.com>
1811 * Makefile.in: Rebuilt.
1812 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1813 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1816 * Makefile.in: Rebuilt.
1817 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1818 and it causes problems with libtool.
1820 * Makefile.in, configure: Rebuilt.
1821 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1822 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1823 (jv_convert_DEPENDENCIES): Added ZDEPS.
1824 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1826 (THREADSPEC): Added `-L' to point to qthreads build directory.
1830 * configure, Makefile.in: Rebuilt.
1831 * Makefile.am (toolexeclib_DATA): New macro.
1832 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1833 Recognize --with-system-zlib.
1834 (GCSPEC): New subst.
1835 (THREADSPEC): New subst.
1836 (SYSTEMSPEC): New subst.
1837 (ZLIBSPEC): New subst.
1838 * libgcj.spec.in: New file.
1840 1999-05-10 Tom Tromey <tromey@cygnus.com>
1842 * java/io/InputStreamReader.java (read): If length is 0, return
1843 0. Reset `wpos' and `wcount' when buffer has been filled and
1846 * java/util/Properties.java (save): Removed `FIXME' comment.
1847 (load): Invalid characters in \u now treated as terminators.
1848 Make sure to append character resulting from `\' handling.
1849 Cast to `char' when appending to key or value.
1850 (skip_ws): Inverted test for whitespace.
1852 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1854 (readLine): Likewise.
1855 (readFully): Implemented.
1857 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1859 * java/awt/natToolkit.cc: Added copyright header.
1860 * java/util/zip/InflaterInputStream.java: Added copyright header.
1862 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1864 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1866 (getNextStream): Likewise.
1868 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1870 (getBundle): Don't explicitly throw null pointer exception.
1872 * gnu/gcj/RawData.java: Added copyright header.
1874 * include/jni.h (_Jv_va_list): Always define as va_list.
1876 1999-05-9 Anthony Green <green@cygnus.com>
1878 * java/text/DateFormat.java (computeInstance): Separate time
1880 (getDateTimeInstance): Ditto.
1881 (getDateTimeInstance(int,int)): New method.
1883 * Makefile.in: Rebuilt.
1884 * Makefile.am (ordinary_java_source_files): Add new classes.
1886 * java/util/PropertyResourceBundle.java: New file.
1887 * gnu/gcj/util/EnumerationChain.java: New file.
1889 1999-05-07 Tom Tromey <tromey@cygnus.com>
1891 * acconfig.h (GCJVERSION): New undef.
1892 * java/lang/natSystem.cc (init_properties): Define java.version,
1893 java.class.version, os.name, os.arch, os.version.
1894 Include <sys/utsname.h> if required.
1895 * configure: Rebuilt.
1896 * configure.in: Compute and define GCJVERSION.
1898 * java/lang/natSystem.cc (default_file_encoding): Now static.
1900 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1902 * libtool-version: New file.
1903 * Makefile.in: Rebuilt.
1904 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1907 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1908 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1911 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1912 (we pick those up already).
1914 1999-05-05 Per Bothner <bothner@cygnus.com>
1916 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1917 stub classes. (This is enough to get Kawa to compile against libgcj.)
1919 * gnu/gcj/RawData.java: New class.
1920 * doc/cni.sgml: Document RawData.
1922 * java/util/zip/InflaterInputStream.java: New stub class.
1923 * java/util/zip/ZipInputStream.java: New class. Partly works.
1924 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1925 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1926 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1927 * java/util/zip/ZipOutputStream.java: Start implementation.
1929 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1930 (default_file_encoding): New global, initial value is above macro.
1931 (init_properties): Default file.encoding to default_file_encoding.
1933 * Makefile.am: Add new classes.
1935 1999-05-05 Tom Tromey <tromey@cygnus.com>
1937 * Makefile.in: Rebuilt.
1938 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1939 (clean-local): New target
1941 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1942 (load, loadLibrary): Now native.
1944 * java/lang/Runtime.java (load, loadLibrary): Now native.
1945 (init): New native method.
1946 (Runtime): Use init.
1947 * prims.cc: Include <ltdl.h> if required.
1948 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1950 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1952 * configure.in: Switch from irix threads to posix threads
1953 * configure: Regenerate.
1955 1999-04-30 Tom Tromey <tromey@cygnus.com>
1957 * Makefile.in: Rebuilt.
1958 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1960 1999-04-29 Tom Tromey <tromey@cygnus.com>
1962 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1965 * java/util/Locale.java (Locale(String,String)): Implement in
1966 terms of 3-argument version; variant now defaults to empty
1968 (toString): Assume variant is not null.
1969 (equals): Assume all strings are not null.
1970 (Locale): Throw NullPointerException if any argument is null.
1972 * java/util/ResourceBundle.java (getBundle): Don't try the base
1973 name; now implicit in partialGetBundle call.
1974 (trySomeGetBundle): Search for parent bundles and call setParent
1976 (partialGetBundle): Added `langStop' argument. Use
1977 `Locale.toString' to compute bundleName.
1978 (resource_cache): New static field.
1979 (partialGetBundle): Cache the returned resource bundle. Now
1982 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1985 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1986 * java/text/natCollator.cc (decomposeCharacter): `base' now
1988 * Makefile.in: Rebuilt.
1989 * Makefile.am (ordinary_java_source_files): Added
1990 CollationElementIterator, CollationKey, Collator,
1992 (nat_source_files): Added natCollator.cc.
1993 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1994 (compare): Pass `this' to CollationElementIterator constructor.
1995 (getCollationElementIterator): Likewise.
1996 (ceiNext): Fix off-by-one error when finding initial substring.
1997 (next): Correctly mask off bits when computing return value.
1998 Fixed return values when one string is shorter than the other.
1999 * java/text/CollationElementIterator.java (collator): New field.
2000 (CollationElementIterator): Added collator argument.
2001 (next): Call ceiNext on collator object.
2003 1999-04-26 Tom Tromey <tromey@cygnus.com>
2005 * natCollator.cc: New file.
2007 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2008 (GregorianCalendar): Use it in all constructors.
2009 * java/util/Calendar.java (Calendar): Changed argument name to
2010 `zone' to match code.
2012 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2013 * java/text/CollationKey.java: New file.
2014 * java/text/CollationElementIterator.java: New file.
2015 * java/text/Collator.java: New file.
2016 * java/text/RuleBasedCollator.java: New file.
2018 * Makefile.in: Rebuilt.
2019 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2020 (jv_convert_LDADD): Explicltly add -lm -lc.
2022 1999-04-26 Tom Tromey <tromey@cygnus.com>
2024 * configure, Makefile.in: Rebuilt.
2025 * configure.in: Added AM_PROG_LIBTOOL.
2026 (GCOBJS): Use `.lo' form of files.
2027 (THREADOBJS): Likewise.
2028 (GCDEPS): Use `.la' form of library.
2029 (GCLIBS): Set to be the same as GCDEPS.
2030 (THREADDEPS): Use `.la' form of library.
2031 (THREADLIBS): Set to be the same as THREADDEPS.
2032 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2033 toolexeclib_LIBRARIES.
2034 (libgcj_la_SOURCES): Renamed for libtoolization.
2035 (EXTRA_libgcj_la_SOURCES): Likewise.
2036 (libgcj_la_DEPENDENCIES): Likewise.
2037 (libgcj_la_LIBADD): Likewise.
2038 ($(nat_files)): Use LTCXXCOMPILE.
2039 ($(c_files)): Use LTCOMPILE.
2040 (GCJCOMPILE): New macro.
2042 (.java.o): Likewise.
2043 ($(javao_files)): Likewise.
2044 (jv_convert_LINK): Use LIBTOOL.
2045 (nat_files): Use `.lo' files.
2046 (c_files): Likewise.
2047 (javao_files): Likewise.
2048 (.class.lo): Renamed.
2049 (.java.lo): Likewise.
2050 ($(nat_files)): Depend on %.lo.
2051 ($(c_files)): Likewise.
2052 ($(javao_files)): Likewise.
2053 (jv_convert_LDADD): Link against .lo files.
2054 (jv_convert_DEPENDENCIES): Depend on .lo files.
2055 (maintainer-check): Depend on libgcj.la, but examine .a file.
2056 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2057 (libgcj_la_LDFLAGS): New macro.
2059 1999-04-23 Warren Levy <warrenl@cygnus.com>
2061 * Makefile.am: Added URLDecoder and URLEncoder.
2062 * Makefile.in: Rebuilt.
2064 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2065 setSocketImplFactory to match spec.
2066 * java/net/Socket.java (getSoLinger): Changed return type to
2069 * java/net/URLDecoder.java: New file.
2070 * java/net/URLEncoder.java: New file.
2072 1999-04-21 Tom Tromey <tromey@cygnus.com>
2074 * java/lang/natString.cc (getBytes): Reverted earlier change and
2075 applied correct fix from Per Bothner.
2077 * java/lang/String.java: Don't throw
2078 UnsupportedEncodingException.
2080 * java/lang/natString.cc (getBytes): Correctly size result
2081 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2083 1999-04-20 Andrew Haley <aph@cygnus.com>
2085 * include/sparc-signal.h: new file.
2086 * configure.in: include/sparc-signal.h added.
2087 * configure: regenerated.
2088 * prims.cc (JvRunMain): signal handling code rewritten to be more
2090 (catch_segv): ditto.
2092 * include/i386-signal.h: reorganized.
2093 * include/default-signal.h: reorganized.
2095 1999-04-19 Tom Tromey <tromey@cygnus.com>
2097 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2098 once. From Anthony Green.
2100 1999-04-19 Andrew Haley <aph@cygnus.com>
2102 * Makefile.in: Processed with new automake.
2104 1999-04-19 Tom Tromey <tromey@cygnus.com>
2106 * include/javaprims.h: Removed security namespace.
2108 1999-04-20 Anthony Green <green@cygnus.com>
2110 * java/io/PrintStream.java (println): Remove extra println.
2112 1999-04-19 Anthony Green <green@cygnus.com>
2114 * Makefile.in: Rebuilt.
2115 * Makefile.am (ordinary_java_source_files): Add new security files.
2117 * java/security/NoSuchAlgorithmException.java,
2118 java/security/MessageDigest.java: New files.
2120 * include/javaprims.h: Add security namespace.
2122 1999-04-16 Per Bothner <bothner@cygnus.com>
2124 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2125 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2126 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2127 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2128 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2129 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2130 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2131 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2132 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2133 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2134 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2135 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2136 * Makefile.am: Various changes for new files and conversions.
2138 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2139 New overloading, allows greater efficiency.
2140 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2141 New overloading (for efficiency - avoids copying).
2143 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2144 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2146 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2147 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2148 (writeChars): Don't be quite so eager to flush.
2149 * java/io/PrintStream.java: Rewrite. Now more similar to
2150 OutputStreamWriter, using explicit UnicodeToBytes converter.
2151 Also, autoflush does not need to flush so often.
2152 * java/lang/natString.cc (getBytes): More efficient algorithm.
2153 (init(jbyteArray,jint,jint,jstring)): More efficient.
2155 1999-04-15 Warren Levy <warrenl@cygnus.com>
2157 * Makefile.am (ordinary_java_source_files): Added new Connection
2158 and Handler classes in gnu.gcj.protocol.file package.
2159 * Makefile.in: Rebuilt.
2161 * gnu/gcj/protocol/file/Connection.java: New file.
2162 * gnu/gcj/protocol/file/Handler.java: New file.
2163 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2164 if doInput allows input.
2165 (getOutputStream): Check if doOutput allows output.
2166 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2168 1999-04-14 Tom Tromey <tromey@cygnus.com>
2170 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2171 buffer larger to work around bug.
2172 From Bryce McKinlay <bryce@albatross.co.nz>.
2174 1999-04-14 Andrew Haley <aph@cygnus.com>
2176 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2177 NaNs are always converted to the same long value.
2178 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2181 1999-04-13 Tom Tromey <tromey@cygnus.com>
2183 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2184 instead switch on actual element type.
2186 * Makefile.in: Rebuilt.
2187 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2189 1999-04-13 Andrew Haley <aph@cygnus.com>
2191 * include/i386-signal.h, include/default-signal.h: New files.
2192 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2194 (catch_fpe): New function.
2195 * configure.in: Make link to appropriate include/java-signal.h.
2196 * configure: Rebuilt.
2197 * Makefile.am: include/java-signal.h added to dependency list.
2198 * Makefile.in: Rebuilt.
2200 1999-04-12 Urban Widmark <urban@svenskatest.se>
2202 * java/io/DataInputStream.java (readLine): Corrected handling of
2203 empty lines, from null to "".
2205 1999-04-12 Tom Tromey <tromey@cygnus.com>
2207 * Makefile.in: Rebuilt.
2208 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2210 * java/lang/natSystem.cc (SystemClass): New define.
2211 (init_properties): Synchronize.
2213 1999-04-08 Geoff Berry <gcb@gnu.org>
2215 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2216 * natPlainSocketImpl.cc (accept): Add missing else if check
2219 1999-04-08 Tom Tromey <tromey@cygnus.com>
2221 * java/lang/Long.java (parseLong): Corrected overflow detection
2223 * java/lang/Integer.java (parseInt): Corrected overflow detection
2226 * java/io/PrintStream.java (print): Handle null string argument.
2227 (println): Likewise.
2229 1999-04-07 Warren Levy <warrenl@cygnus.com>
2231 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2232 Set count to 0 when InputStreamReader returns -1 for EOF.
2234 1999-04-07 Tom Tromey <tromey@cygnus.com>
2236 * mauve-libgcj: Omit java.text.Collator,
2237 java.text.RuleBasedCollator.
2239 1999-04-06 Tom Tromey <tromey@cygnus.com>
2241 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2242 IOException from getHttpHeaders().
2243 (getHeaderFieldKey): Likewise.
2245 * include/javaprims.h: Regenerated declarations.
2247 * Makefile.in: Rebuilt.
2248 * Makefile.am (ordinary_java_source_files): Updated for removed
2251 1999-04-06 Per Bothner <bothner@cygnus.com>
2253 * java/util/zip/Adler32.java: New class.
2254 * java/util/zip/CRC32.java: Add working method bodies.
2255 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2256 * Makefile.in: Re-generate.
2258 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2260 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2261 from version in removed www hierarchy.
2262 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2263 version in removed www hierarchy.
2265 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2266 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2267 * gnu/gcj/www/protocol/http: Removed dir.
2268 * gnu/gcj/www/protocol: Removed dir.
2269 * gnu/gcj/www: Removed dir.
2271 * java/net/HttpURLConnection.java: Revised comments to indicate
2272 missing JDK 1.2 methods.
2274 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2275 hierarchy rather than the gnu/gcj/www/protocol one.
2276 * java/net/URLConnection.java: Updated status comments.
2277 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2278 the gnu/gcj/www/content one.
2280 1999-04-06 Per Bothner <bothner@cygnus.com>
2282 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2283 The gen-from-JIS program is in $(CONVERT_DIR).
2285 1999-04-06 Tom Tromey <tromey@cygnus.com>
2287 * mauve-libgcj: Renamed from mauve-libjava.
2289 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2291 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2292 (getResponseMessage): Implemented.
2293 (getResponseVals): New private method.
2295 * java/net/URLConnection.java (getContent): Implemented.
2296 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2298 1999-04-05 Tom Tromey <tromey@cygnus.com>
2300 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2301 (jv_convert_SOURCES): Renamed.
2302 (EXTRA_jv_convert_SOURCES): Likewise.
2303 (jv_convert_LDFLAGS): Likewise.
2304 (jv_convert_LINK): Likewise.
2305 (jv_convert_LDADD): Likewise.
2306 (jv_convert_DEPENDENCIES): Likewise.
2308 * Makefile.in: Rebuilt.
2309 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2312 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2314 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2315 method for comparison.
2317 * java/net/URLConnection.java (getContentLength): Implemented.
2318 (getContentType): Implemented.
2319 (getContentEncoding): Implemented.
2320 (getExpiration): Implemented.
2321 (getDate): Implemented.
2322 (getLastModified): Implemented.
2323 (getHeaderFieldInt): Implemented.
2324 (getHeaderFieldDate): Implemented.
2326 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2328 * java/net/URLConnection.java (toString): Implemented.
2329 (setContentHandlerFactory): Implemented.
2330 (setContentHandler): Wrote new private helper method.
2332 1999-04-01 Tom Tromey <tromey@cygnus.com>
2334 * Makefile.in: Rebuilt.
2335 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2336 of 1999-03-31; we always want to build all the .class files.
2337 Depend on java_source_files, not libgcj.zip.
2338 (nat_headers): Define in terms of ordinary_java_source_files.
2340 1999-03-31 Tom Tromey <tromey@cygnus.com>
2342 * Makefile.in: Rebuilt.
2343 * Makefile.am (special_java_source_files): New macro.
2344 (java_source_files): Use it.
2345 (ordinary_java_source_files): New macro.
2346 (java_source_files): Use it.
2347 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2348 creating headers for those files with hand-maintained headers.
2350 * include/javaprims.h: Regenerated namespace declarations.
2351 * classes.pl (scan): Include [0-9] in regexp for matching class
2352 names; for java.util.zip.CRC32.
2354 * Makefile.in: Rebuilt.
2355 * Makefile.am (nat_headers): Redefined to generate all possible
2358 * java/util/zip/ZipException.java: In package java.util.zip, not
2361 1999-03-30 Tom Tromey <tromey@cygnus.com>
2363 * configure: Rebuilt.
2364 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2365 eh-common.h when not building in tree with gcc.
2367 * Makefile.in: Rebuilt.
2368 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2369 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2371 ($(java_source_files:.java=.class)): New target.
2373 * Makefile.in: Rebuilt.
2374 * Makefile.am (java_source_files): Added
2375 java/net/HttpURLConnection.java and
2376 gnu/gcj/www/protocol/http/Connection.java.
2378 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2380 * gnu/gcj/www/protocol/http/Connection.java: New file.
2381 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2382 * java/net/HttpURLConnection.java: New file.
2383 * java/net/URLConnection.java (getHeaderField): Implemented default.
2384 (getHeaderFieldKey): Implemented default method.
2386 1999-03-30 Tom Tromey <tromey@cygnus.com>
2388 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2390 * java/util/zip/Deflater.java: Added copyright header.
2391 * java/util/zip/CRC32.java: Added copyright header.
2393 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2394 that it is automatically generated.
2395 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2397 * gnu/gcj/convert/BytesToUnicode.java,
2398 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2399 gnu/gcj/convert/Input_EUCJIS.java,
2400 gnu/gcj/convert/Input_UTF8.java,
2401 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2402 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2403 gnu/gcj/convert/Output_8859_1.java,
2404 gnu/gcj/convert/Output_JavaSrc.java,
2405 gnu/gcj/convert/Output_UTF8.java,
2406 gnu/gcj/convert/UnicodeToBytes.java,
2407 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2409 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2411 * Makefile.in, configure: Rebuilt.
2412 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2413 not if test subdir exists.
2414 (--enable-gcj-classes): Removed; gcj always used to generate
2416 (JAVA, JAVAC): Removed.
2417 (--enable-single-compilation, --enable-source-compilation):
2420 (NATIVE): New conditional.
2421 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2422 `install-exec' to work.
2423 (toolexeclibdir): Likewise.
2424 (toollib_LIBRARIES): Likewise.
2425 (AM_MAKEFLAGS): Don't pass tooldir.
2427 (javao_files): Redefined.
2428 (java_source_files): New macro.
2429 (c_source_files): New macro.
2430 (c_files): Redefined in terms of c_source_files.
2431 (java_io_files, java_lang_files, java_net_files, java_text_files,
2432 java_util_files, gnu_files, java_files): Removed.
2433 (class_io_files, class_lang_files, class_net_files,
2434 class_text_files, class_util_files, class_gnu_files, class_files):
2436 (nat_source_files): New macro.
2437 (nat_files): Redefined in terms of nat_source_files.
2438 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2439 java_source_files. Removed no-such-file.c.
2441 (ETAGS_ARGS): Removed.
2442 (TAGS_DEPENDENCIES): Likewise.
2443 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2445 (src_io_files, src_lang_files, src_text_files, src_util_files,
2446 src_gnu_files): Removed.
2447 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2448 (BUILT_SOURCES): Removed.
2449 (header-check): New target.
2451 (noinst_PROGRAMS): New macro.
2452 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2454 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2455 (gen-from-JIS): Build in top directory.
2456 (convert_source_files): New macro.
2457 (convert_SOURCES): New macro.
2458 (convert_LDFLAGS): Likewise.
2459 (convert_LINK): Likewise.
2460 (convert_LDADD): Likewise.
2461 (convert_DEPENDENCIES): Likewise.
2463 (gen-from-JIS): Removed.
2464 (gen_from_JIS_SOURCES): New macro.
2465 (gen_from_JIS_LDADD): Likewise.
2466 (gen_from_JIS_DEPENDENCIES): Likewise.
2468 * configure: Rebuilt.
2469 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2470 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2471 when defining conditional.
2473 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2475 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2476 The Unicode Consortium does not permit their re-distribution.
2477 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2478 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2480 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2482 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2484 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2486 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2487 from Unicode Consortium.
2488 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2489 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2490 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2491 New tables, generated using gen-from-JIS.
2492 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2493 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2494 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2495 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2497 * gnu/gcj/convert/Convert.java: New application.
2498 * Makefile.am, Makefile.in (convert): New program, using Convert.
2499 Build the various JIS conversion tables (in maintainer mode).
2501 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2503 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2505 * java/net/URL.java (URL): Deal with null property value. Use "."
2506 as separator in building class name.
2507 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2508 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2509 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2510 beginning of the substring rather than 'start'.
2512 1999-03-26 Tom Tromey <tromey@cygnus.com>
2514 * include/java-chartables.h: Rebuilt.
2515 * include/java-chardecomp.h: New file.
2516 * chartables.pl: Generate output files directly. Added support
2517 for generating decomposition header.
2518 (canonical_decomposition, full_decomposition): New globals.
2519 (DECOMPOSITION): New constant.
2520 (process_char): Call add_decomposition.
2521 (add_decomposition): New sub.
2522 (write_decompositions): New sub.
2524 1999-03-25 Tom Tromey <tromey@cygnus.com>
2526 * java/text/CollationElementIterator.java: New file.
2528 * mauve-libjava: Omit StringTest.
2530 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2532 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2533 without a '/' when parsing protocol. Handle ref outside of parseURL.
2534 (hashCode): Implemented.
2535 (set): Don't expand -1 to default port.
2536 (getDefaultPort): Removed.
2538 * java/net/URLStreamHandler.java (parseURL): Implemented.
2539 (toExternalForm): Implemented.
2541 1999-03-23 Tom Tromey <tromey@cygnus.com>
2543 * java/text/BreakIterator.java (getSentenceInstance):
2545 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2547 * Makefile.in: Rebuilt.
2548 * Makefile.am (nat_headers): Added IllegalAccessException.
2549 * java/lang/natClass.cc (newInstance): Throw
2550 IllegalAccessException, not IllegalAccessError.
2551 Include IllegalAccessException.h.
2553 1999-03-22 Tom Tromey <tromey@cygnus.com>
2555 * gnu/gcj/text/LineBreakIterator.java: New file.
2556 * java/text/BreakIterator.java (getLineInstance): Implemented.
2558 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2559 copy constructor private.
2560 (previous, next): Removed erroneous comment about line
2562 (previous): Correctly recognize break between non-letter on the
2563 left and letter on the right. Handle apostrophes correctly.
2565 * java/text/BreakIterator.java (getWordInstance): Implemented.
2566 * gnu/gcj/text/WordBreakIterator.java: New file.
2567 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2569 * gnu/gcj/text/BaseBreakIterator.java: New file.
2571 1999-03-19 Tom Tromey <tromey@cygnus.com>
2573 * java/text/BreakIterator.java: New file (partially stubbed out).
2574 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2576 * include/config.h.in: Rebuilt.
2577 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2578 (HAVE_TIMEZONE): Likewise.
2579 * configure: Rebuilt.
2580 * configure.in: Added timezone checks.
2581 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2584 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2586 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2587 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2588 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2589 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2590 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2591 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2592 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2593 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2595 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2596 (BSD_COMP): Kludge needed for Solaris2.
2598 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2600 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2601 URL(java.net.URL, string, URLStreamHandler) and call it with a
2602 null handler. In latter constructor, added SecurityManager check.
2603 (set): Expect null handler on bad protocol rather than an exception.
2604 (setURLStreamHandler): Simplified exception handling; return null
2605 on invalid protocol.
2607 1999-03-18 Tom Tromey <tromey@cygnus.com>
2609 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2611 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2613 Include PrintStream.h, InputStream.h.
2614 * java/lang/System.java (ForwardingInputStream,
2615 ForwardingOutputStream): Removed.
2616 (setErr, setIn, setOut): Now native.
2618 Reverted patch from 1999-02-12 to work around problem in
2620 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2621 (_Jv_eh_free): Use free.
2623 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2624 for path name. Minor formatting fixes.
2626 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2628 * prims.cc (fail_on_finalization): New function.
2629 (_Jv_GCWatch): Likewise.
2631 * prims.cc (JvRunMain): Initialize `nullp'.
2632 (nullp): New global.
2633 (catch_segv): Throw nullp.
2635 * Makefile.in: Rebuilt.
2636 * Makefile.am (ZIP): In "null target" case, zip is found in the
2639 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2643 * java/lang/StringBuffer.java (StringBuffer): Don't use
2644 ensureCapacity to set initial capacity.
2645 (capacity): Subtract `length' from return result.
2647 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2649 * java/io/natFileDescriptorPosix.cc (open): Throw
2650 FileNotFoundException, but with filename and errno in msg.
2652 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2654 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2655 functionality folded into java/net/URL.java per spec.
2657 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2658 than EEXIST for throwing FileNotFoundException.
2660 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2661 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2663 * java/net/URLStreamHandler.java (parseURL): Added stub.
2665 1999-03-15 Andrew Haley <aph@cygnus.com>
2667 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2670 1999-03-15 Andrew Haley <aph@cygnus.com>
2672 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2675 1999-03-12 Tom Tromey <tromey@cygnus.com>
2677 * prims.cc (catch_segv): New function.
2678 Include <signal.h> if HANDLE_SEGV defined. Include
2679 NullPointerException.h.
2680 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2683 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2684 a SimpleDateFormat, not just a DateFormat.
2685 (defaultCenturyStart, formatData, pattern): Now private.
2686 (append): Now `final'. Use `NumberFormat.format'.
2688 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2690 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2693 * java/text/MessageFormat.java (format): Use default MessageFormat
2695 (parse, parseObject): Wrote.
2697 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2700 1999-03-12 Andrew Haley <aph@cygnus.com>
2702 * java/lang/String.java (indexOf): Replace with native method for
2704 * java/lang/natString.cc (IndexOf): As above.
2706 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2707 Argument check corrected.
2708 (init(jbyteArray,jint,jint,jstring)): Likewise.
2710 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2711 1.2 compliant method.
2713 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2715 * java/lang/Float.java (byteValue, shortValue): Likewise.
2717 1999-03-11 Tom Tromey <tromey@cygnus.com>
2719 * java/text/DecimalFormat.java (parse): Wrote.
2721 * java/text/ChoiceFormat.java (parse): Set error index on
2722 ParsePosition object.
2724 * java/lang/Integer.java (parseInt): Throw exception on overflow
2725 when intermediate result is most negative number. Changed
2726 overflow detection as well.
2727 * java/lang/Long.java (parseLong): Likewise.
2729 * configure, Makefile.in: Rebuilt.
2730 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2731 CANADIAN when building in source tree that doesn't include gcc.
2732 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2735 * java/text/ChoiceFormat.java (nextDouble): Correct some
2736 off-by-one errors when masking or adding.
2738 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2739 parameter, if given. Use `%', not IEEEremainder.
2740 (scanFix): Throw error if multiplier already set.
2741 (computePattern): Wrote.
2743 1999-03-11 Andrew Haley <aph@cygnus.com>
2745 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2747 (nextDouble): Corrected masking logic. Handle interaction between
2748 `next' and negative numbers.
2750 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2752 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2753 * java/net/URL.java: Added general comments.
2755 1999-03-10 Tom Tromey <tromey@cygnus.com>
2757 * java/text/ChoiceFormat.java (parse): Wrote.
2759 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2761 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2762 Create ChoiceFormat objects.
2763 (format): Special-case ChoiceFormat.
2764 (scanFormatElement): Include { and } in generated style string.
2766 1999-03-09 Tom Tromey <tromey@cygnus.com>
2768 * java/text/ChoiceFormat.java: New file.
2770 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2772 * java/net/BindException.java: Created.
2773 * java/net/ConnectException.java: Created.
2774 * java/net/ContentHandler.java: Created.
2775 * java/net/ContentHandlerFactory.java: Created.
2776 * java/net/FileNameMap.java: Created.
2777 * java/net/MalformedURLException.java: Created.
2778 * java/net/NoRouteToHostException.java: Created.
2779 * java/net/ProtocolException.java: Created.
2780 * java/net/ServerSocket.java (@author): Fixed typo.
2781 * java/net/Socket.java (@author): Fixed typo.
2782 * java/net/SocketImpl.java (@author): Fixed typo.
2783 * java/net/SocketImplFactory.java (@author): Fixed typo.
2784 * java/net/URL.java: Created - nearly complete.
2785 * java/net/URLConnection.java: Created - near-empty stub.
2786 * java/net/URLStreamHandler.java: Created - incomplete stub.
2787 * java/net/URLStreamHandlerFactory.java: Created.
2788 * java/net/UnknownServiceException.java: Created.
2790 1999-03-09 Tom Tromey <tromey@cygnus.com>
2792 * java/lang/System.java (ForwardingInputStream): New class.
2793 (ForwardingOutputStream): Likewise.
2794 (in, out, err): Now `final' forwarding streams.
2795 (setIn, setOut, setErr): Use appropriate method on forwarding
2798 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2801 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2803 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2804 * java/util/zip/Checksum.java: New interface (complete).
2805 * java/util/zip/Deflater.java: New class (near-empty stub).
2806 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2807 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2808 * java/util/zip/ZipEntry.java: New class (complete).
2809 * java/util/zip/ZipException.java: New class (complete).
2810 * java/util/zip/ZipFile.java: New class (incomplete stub).
2811 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2813 1999-03-09 Tom Tromey <tromey@cygnus.com>
2815 * java/text/MessageFormat.java (MessageFormatElement): Removed
2816 `public' specifiers.
2818 * java/text/DecimalFormat.java (scanFormat): Increment index
2819 before processing exponential format. Fixed a couple typos in
2821 (format): Correct normalization of exponent.
2823 1999-03-08 Tom Tromey <tromey@cygnus.com>
2825 * java/text/SimpleDateFormat.java (parse): Throw
2826 IllegalArgumentException, not ParseException.
2828 1999-03-05 Tom Tromey <tromey@cygnus.com>
2830 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2831 when constructing DateFormatSymbols. Initialize numberFormat
2832 field of superclass.
2834 * java/text/DateFormat.java (equals): Rewrote.
2835 (getAvailableLocales): New method.
2836 (getDateInstance): New methods.
2837 (getDateTimeInstance): Likewise.
2838 (getTimeInstance): Likewise.
2839 (getInstance): New method.
2840 (computeInstance): New method.
2842 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2844 (safeGetResource): New method.
2845 (DateFormatSymbols): Use Locale paramater.
2846 (equals): Now protected.
2847 Made instance variables private.
2849 1999-03-04 Tom Tromey <tromey@cygnus.com>
2851 * java/text/DecimalFormat.java: New file.
2853 * java/text/NumberFormat.java (groupingUsed,
2854 maximumFractionDigits, maximumIntegerDigits,
2855 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2857 (setDecimalSeparatorAlwaysShown, setMultiplier,
2858 setPositivePrefix): Removed.
2859 (setMinimumFractionDigits, setMaximumFractionDigits):
2861 (format): Now final.
2862 Added many new methods.
2864 * Makefile.in: Rebuilt.
2865 * Makefile.am (gnu_files): New macro.
2866 (java_files): Added gnu_files.
2867 (class_gnu_files): New macro.
2868 (class_files): Use it.
2869 (src_gnu_files): New macro.
2870 (gnu.o): New target.
2871 (javao_files): Added gnu.o.
2873 * gnu/gcj/text/LocaleData_en_US.java: New file.
2874 * gnu/gcj/text/LocaleData_en.java: New file.
2875 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2876 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2877 (safeGetString): New method.
2878 (safeGetChar): Likewise.
2880 1999-03-03 Tom Tromey <tromey@cygnus.com>
2882 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2885 * java/text/FieldPosition.java (equals): Don't check for null
2886 object; instanceof does this.
2888 * java/util/Locale.java (clone): New method.
2891 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2893 * doc/cni.sgml: New file.
2895 1999-03-03 Tom Tromey <tromey@cygnus.com>
2897 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2899 * java/text/DecimalFormatSymbols.java: New file.
2901 1999-03-02 Tom Tromey <tromey@cygnus.com>
2903 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2905 * configure: Rebuilt.
2906 * configure.in: Check for sys/filio.h.
2908 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2910 (load): Always throw UnsatisfiedLinkError.
2911 (loadLibrary): Likewise.
2913 1999-03-02 Anthony Green <green@cygnus.com>
2915 * LIBGCJ_LICENSE: New file.
2916 * LIBJAVA_LICENSE: Removed.
2917 * Many files: libjava now libgcj.
2919 1999-03-02 Tom Tromey <tromey@cygnus.com>
2921 * include/java-chartables.h: Rebuilt.
2922 * chartables.pl (print_block): Make table `const'.
2923 (print_numerics): Likewise.
2924 (print_single_map): Likewise.
2925 (print_all_block): Likewise.
2926 (print_case_table): Likewise.
2927 (print_fast_tables): Likewise.
2928 * java/lang/natCharacter.cc (table_search): `table' argument now
2931 1999-03-01 Tom Tromey <tromey@cygnus.com>
2933 * java/util/Date.java (before, after): Inverted logic.
2935 * java/util/Date.java (parse): Handle case where first character
2936 in string is open parenthesis.
2937 (skipParens): Rewrote.
2939 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2940 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2942 * java/util/Date.java (parse): Correctly compute beginning of
2945 * java/util/Hashtable.java (get): Throw NullPointerException if
2947 (containsKey): Likewise.
2949 * java/util/Properties.java (list): Truncate value to 37
2950 characters and add `...'.
2952 * java/lang/Byte.java (parseByte): Pass `radix' to
2955 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2957 Include System.h, PrintStream.h.
2959 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2962 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2964 * configure: Rebuilt.
2965 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2968 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2970 * java/lang/SecurityManager.java: Import java.net.*.
2971 (checkMulticast): New methods.
2973 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2975 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2976 (nat_files): Add java/lang/reflect/natArray.o.
2977 (nat_headers): Add Field.h and NoSuchFieldException.h.
2979 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2980 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2981 (_Jv_FromReflectedField): Fix buglet.
2982 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2983 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2984 * prims.cc (_Jv_Abort): Include message in print-out.
2986 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2987 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2988 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2990 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2991 * include/config.h.in (HAVE_PWD_H): New feature macro.
2992 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2993 user.name, user.home, user.dir.
2995 * java/lang/reflect/Array.java: New class.
2996 * java/lang/reflect/natArray.cc: New native methods.
2997 * include/javaprims.h: Declare java::lang::reflect::Array.
2999 * java/lang/Class.h (getField): New private method. Add friends.
3000 * java/lang/Class.java (getField): Add private overload.
3001 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3002 getDeclaredMethods): Add working implementations.
3003 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3004 Finish implementation, except for access control.
3006 * java/lang/reflect/Modifier.java (toString): New overload.
3007 * include/java-method.h: New file.
3008 * java/lang/reflect/Method.java (index): Replaced by offset field.
3009 Remove various private fields - get them from _Jv_Field instead.
3010 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3011 New method implementations.
3013 * java/text/NumberFormat.java: Add a bunch of methods.
3015 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3017 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3019 1999-02-26 Tom Tromey <tromey@cygnus.com>
3021 * include/config.h.in: Rebuilt.
3022 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3023 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3024 HAVE_GETHOSTBYADDR_R): New defines.
3025 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3026 gethostbyaddr_r if available.
3028 * configure: Rebuilt.
3029 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3031 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3035 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3036 * prims.cc (_Jv_AllocBytesChecked): New function.
3038 * Makefile.in: Rebuilt.
3039 * Makefile.am (SUBDIRS): Removed `test'.
3040 * configure: Rebuilt.
3041 * configure.in: Don't build test/Makefile.
3042 * test/*: Removed all files.
3044 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3046 * java/lang/reflect/Constructor.java: Make class final to match spec.
3047 * java/lang/reflect/Method.java: Ditto.
3049 1999-02-25 Tom Tromey <tromey@cygnus.com>
3051 * java/net/natInetAddress.cc: Include <sys/types.h> before
3053 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3056 * java/net/natInetAddress.cc: Declare gethostname if required.
3057 * include/config.h.in: Rebuilt.
3058 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3059 * configure: Rebuilt.
3060 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3061 declared in unistd.h.
3063 1999-02-24 Tom Tromey <tromey@cygnus.com>
3065 * Makefile.in: Rebuilt.
3066 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3067 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3068 from private to "none".
3070 * include/javaprims.h: Regenerated class declarations with new
3072 * classes.pl (scan): Only generate decls for java.lang, java.io,
3075 1999-02-24 Tom Tromey <tromey@cygnus.com>
3077 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3078 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3080 1999-02-23 Tom Tromey <tromey@cygnus.com>
3082 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3083 not already defined.
3084 * java/io/natFile.cc (_REENTRANT): Only define if not already
3086 * include/config.h.in: Rebuilt.
3087 * acconfig.h (HAVE_BOEHM_GC): New define.
3088 * configure: Rebuilt.
3089 * configure.in: Define HAVE_BOEHM_GC if using it.
3090 * posix-threads.cc: Include boehm-config.h and gc.h if
3092 * include/posix-threads.h: Added explanatory note about Boehm GC.
3094 * java/io/BufferedReader.java (readLine): Only return null when
3095 EOF seen before any characters read. (In particular, an empty
3096 line should not return null.)
3098 * java/io/BufferedInputStream.java (read): Only refill once per
3101 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3102 java.lang.Character.classify12, java.lang.String.hash,
3103 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3104 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3106 * java/text/StringCharacterIterator.java (setIndex): No error if
3108 (next): Check for `pos == end', not `end - 1'.
3109 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3110 for null text in each constructor.
3111 (clone): Fixed order of arguments to constructor.
3113 1999-02-22 Tom Tromey <tromey@cygnus.com>
3115 * include/config.h.in: Rebuilt.
3116 * acconfig.h (HAVE_INET6): New define.
3117 (HAVE_SOCKLEN_T): Likewise.
3118 * java/net/PlainSocketImpl.java: Added copyright header.
3119 * java/net/natPlainSocketImpl.cc: Added copyright header.
3120 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3122 (connect): Likewise.
3124 (socklen_t): New typedef.
3125 (accept): Use socklen_t.
3126 * java/net/natInetAddress.cc: Added copyright header.
3127 (HAVE_GETHOSTNAME): Don't define.
3128 (HAVE_INET_ADDR): Likewise.
3129 (lookup): Fixed typo.
3130 (aton): Don't use `address' as name of local variable.
3131 (lookup): Use HAVE_INET6, not AF_INET6.
3133 * configure: Rebuilt.
3134 * configure.in: Look for functions inet_aton, inet_addr,
3135 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3136 Check for socklen_t typedef.
3138 * exception.cc (__throw): Declare as __noreturn__.
3140 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3142 * Makefile.am, Makefile.in: Also build java/net.
3143 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3145 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3146 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3148 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3149 * include/cni.h (JvMalloc, JvFree): New inline functions.
3150 (JvThrow): Add __noreturn__ attribute.
3151 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3152 (_Jv_Throw): Add __noreturn__ attribute.
3154 * java/net/PlainSocketImpl.java: Init fnum to -1.
3155 * java/net/ServerSocket.java: Add missing throws clauses.
3156 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3157 don't call create on the latter. Instead, other constructors
3158 have to explicitly call SocketImpl.create.
3159 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3160 from size_t to int, to match ::accept prototype.
3161 * java/net/natInetAddress.cc: Use JvFree rather than free.
3164 1999-02-22 Tom Tromey <tromey@cygnus.com>
3166 * include/javaprims.h: Added new classes.
3167 * java/text/StringCharacterIterator.java: New file.
3168 * java/text/CharacterIterator.java: New file.
3170 * java/text/ParseException.java (errorOffset): Now private.
3172 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3174 * java/net: New package.
3175 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3176 Socket.java,SocketException.java,SocketImpl.java,
3177 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3178 natPlainSocketImpl.cc}: New classes.
3180 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3181 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3182 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3183 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3185 * classes.pl: Translate package into "namespace", not "class".
3186 * include/javaprims.h: Update class list, using "namespace".
3188 1999-02-21 Tom Tromey <tromey@cygnus.com>
3190 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3191 Define when appropriate.
3193 1999-02-20 Tom Tromey <tromey@cygnus.com>
3195 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3196 as a single byte and \u07ff as two bytes.
3197 (_Jv_GetStringUTFLength): Likewise.
3198 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3199 with 0x0f, not 0x1f.
3201 1999-02-19 Tom Tromey <tromey@cygnus.com>
3203 * java/io/DataOutputStream.java (writeUTF): When encoding
3204 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3205 * java/io/DataInputStream.java (readUTF): Mask second byte of
3206 3-byte character with 0x3f, not 0x1f.
3208 * java/io/DataInputStream.java (readLong): Cast result of
3209 readUnsignedByte to long before using.
3211 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3214 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3215 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3216 argument to avoid warning.
3217 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3218 argument to avoid warning.
3220 1999-02-18 Tom Tromey <tromey@cygnus.com>
3222 * mauve-libjava: Omit java.io.DataInputOutput and
3223 java.io.Utf8Encoding.
3225 1999-02-17 Tom Tromey <tromey@cygnus.com>
3227 * Makefile.in: Rebuilt.
3228 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3229 * java/io/natFileDescriptorPosix.cc: Include
3230 InterruptedIOException.h, Thread.h.
3231 (write): Throw InterruptedIOException when required.
3233 * posix-threads.cc: Include <signal.h>.
3234 (_Jv_ThreadInterrupt): New function.
3236 (handle_intr): New function.
3237 (_Jv_InitThreads): Register handle_intr via sigaction.
3238 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3239 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3240 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3241 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3243 1999-02-19 Andrew Haley <aph@cygnus.com>
3245 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3247 (ThreadGroup (int)): Set the maximum priority of the initial
3250 1999-02-18 Andrew Haley <aph@cygnus.com>
3252 * java/lang/natClass.cc (forName): Check for the case where a
3253 classname is the name of an array and call FindClassFromSignature
3256 1999-02-18 Andrew Haley <aph@cygnus.com>
3258 * java/lang/StringBuffer (insert (int, String)): Move up any
3259 characters above the insert position and increase the length of
3260 the string buffer by the length of the argument.
3261 (insert (int, char[])): Likewise.
3262 (insert (int, char)): Likewise.
3263 (StringBuffer (String)): The initial capacity of the string buffer
3264 is 16 plus the length of the argument.
3265 (getChars): Add a JDK 1.2 FIXME.
3267 1999-02-18 Andrew Haley <aph@cygnus.com>
3269 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3272 1999-02-18 Andrew Haley <aph@cygnus.com>
3274 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3275 instead of floating-point equality. This is necessary for
3276 correct floating-point Hashtables.
3277 * java/lang/Float.java (equals): Ditto.
3279 1999-02-16 Tom Tromey <tromey@cygnus.com>
3281 * java/util/Properties.java (list): Truncate value to 37
3282 characters and add "...".
3284 1999-02-16 Tom Tromey <tromey@cygnus.com>
3286 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3287 if initCap is negative.
3288 (contains): Implement JDK1.2-style handling of null argument.
3289 (removeElement): Likewise.
3290 (indexOf): Likewise. Also, correctly handle case where idx is
3292 (lastIndexOf): Likewise.
3294 1999-02-16 Tom Tromey <tromey@cygnus.com>
3296 * java/lang/natString.cc (init): Increment source pointer in
3299 1999-02-16 Tom Tromey <tromey@cygnus.com>
3301 * exception.cc: Include NullPointerException.h.
3302 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3304 1999-02-16 Tom Tromey <tromey@cygnus.com>
3306 * Makefile.in: Rebuilt.
3307 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3309 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3311 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3312 we're compiling canadian.
3313 * configure: Regenerated.
3315 1999-02-12 Andrew Haley <aph@cygnus.com>
3317 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3318 deleted from libgcj.
3320 1999-02-12 Tom Tromey <tromey@cygnus.com>
3322 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3323 (_Jv_eh_free): Don't call free.
3324 Don't declare malloc or free.
3326 1999-02-11 Tom Tromey <tromey@cygnus.com>
3328 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3330 1999-02-11 Andrew Haley <aph@cygnus.com>
3332 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3333 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3334 needed by java.lang.*.
3335 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3336 wf_fmod.o: Removed from libjava.a.
3338 1999-02-11 Tom Tromey <tromey@cygnus.com>
3340 * include/javaprims.h: Reverted previous change; with it
3341 exception.cc can't compile.
3343 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3345 * include/config.h.in: Rebuilt.
3346 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3348 * configure: Rebuilt.
3349 * configure.in: Check for sched_yield. Look in thread library for
3350 all thread functions.
3352 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3353 no recursive mutexes.
3354 (_Jv_MutexDestroy): Define when required.
3355 (_Jv_MutexLock): Likewise.
3356 (_Jv_MutexUnlock): Likewise.
3357 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3358 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3359 (_Jv_Mutex_t): New structure.
3360 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3361 (_Jv_MutexLock): Likewise.
3362 (_Jv_MutexUnlock): Likewise.
3364 1999-02-10 Tom Tromey <tromey@cygnus.com>
3366 * aclocal.m4, configure, Makefile.in: Rebuilt.
3367 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3369 * configure.in: Changed to track library changes.
3370 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3371 (AM_CXXFLAGS): Likewise.
3372 (data_DATA): Likewise.
3373 (AM_CFLAGS): Likewise.
3374 (JC1FLAGS): Likewise.
3375 (libgcj_a_SOURCES): Likewise.
3376 (EXTRA_libgcj_a_SOURCES): Likewise.
3377 (libgcj_a_DEPENDENCIES): Likewise.
3378 (libgcj_a_LIBADD): Likewise.
3379 (libgcj.zip): Likewise.
3380 (CLEANFILES): Likewise.
3381 ($(nat_headers)): Likewise.
3382 (java/lang/FirstThread.h): Likewise.
3383 (java/lang/ThreadGroup.h): Likewise.
3384 (java/lang/String.h): Likewise.
3385 (java/lang/reflect/Field.h): Likewise.
3386 (BUILT_SOURCES): Likewise.
3387 (maintainer-check): Likewise.
3388 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3389 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3391 * java/util/natGregorianCalendar.cc (computeFields): Only use
3392 gmtime_r and localtime_r when configured for posix threads.
3394 * java/io/natFile.cc (get_entry): Only use readdir_r when
3395 configured for posix threads.
3397 * java/util/natGregorianCalendar.cc: Update copyright notice.
3398 * java/util/TimeZone.java: Ditto.
3399 * java/util/SimpleTimeZone.java: Ditto.
3401 1999-02-08 Tom Tromey <tromey@cygnus.com>
3403 * java/io/PrintStream.java (line_separator): New constant.
3404 (print): Use line_separator, not `file.separator' property.
3405 (println): Use line_separator.
3407 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3408 when trying to instantiate Class.
3410 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3411 NullPointerException if argument is null.
3413 * java/lang/Thread.java (setName): Throw NullPointerException, not
3414 IllegalArgumentException.
3417 1999-02-08 Andrew Haley <aph@cygnus.com>
3419 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3420 create new Classes with Class.newInstance().
3422 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3423 semiciolon to end of an array Class's signature if the elements of
3424 the array aren't themselves arrays.
3426 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3427 array of objects is always sizeof(jobject), not the size of the
3428 object to which the reference points.
3430 1999-02-08 Tom Tromey <tromey@cygnus.com>
3432 * java/util/BitSet.java (and): Throw NullPointerException when
3437 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3438 if argument is negative.
3439 (clear): Correctly compute `offset'. Throw
3440 IndexOutOfBoundsException when required.
3442 (get): Likewise. Also, return correct value.
3443 (ensure): Changed meaning of argument.
3444 (toString): Wrap contents in `{}'; put spaces after commas.
3445 (hashCode): Don't try to examine elements off the end of array.
3446 (or): Correctly include bits past the end of this bit set.
3449 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3451 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3452 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3454 1999-02-04 Andrew Haley <aph@cygnus.com>
3456 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3457 '/' in signatures to '.'
3458 (Class::getName): Likewise,
3459 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3461 * java/lang/natFirstThread.cc (run): Change '/' in main's
3464 1999-02-03 Andrew Haley <aph@cygnus.com>
3466 * configure.host: -ffloat-store added when compiling libjava on
3467 x86. fdlibm apparently relies on this.
3469 * java/lang/ThreadGroup.java (add): throw an exception if the
3470 ThreadGroup has been destroyed.
3472 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3475 1999-01-27 Tom Tromey <tromey@cygnus.com>
3477 * java/lang/StringBuffer.java (StringBuffer): Handle null
3480 1999-01-21 Tom Tromey <tromey@cygnus.com>
3482 * java/lang/natFirstThread.cc (run): Don't require main to be
3485 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3487 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3489 1999-01-20 Tom Tromey <tromey@cygnus.com>
3491 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3495 (unintern): Likewise.
3496 (_Jv_NewStringUtf8Const): Likewise.
3498 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3499 Character.isLetter, to see if character is self-quoting. Also,
3500 correctly handle quoted characters.
3501 (parse): Fixed typo. Also now throws ParseException.
3503 1999-01-15 Tom Tromey <tromey@cygnus.com>
3505 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3507 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3508 _Jv_SyncInfo has `init' member.
3510 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3513 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3514 IllegalMonitorStateException if unlock fails.
3516 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3518 (_Jv_NewObjectArray): Likewise.
3520 1999-01-14 Tom Tromey <tromey@cygnus.com>
3522 * java/lang/Character.java (isJavaIdentifierPart): Allow
3523 LETTER_NUMBER characters.
3525 * chartables.pl (process_char): Fixed error messages.
3527 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3528 * chartables.pl: Updated comments. Changed detection of non-digit
3529 numeric values (no longer miss \u00b2 and friends).
3531 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3532 currency symbols and connector punctuation.
3533 (isIdentifierIgnorable): Make 7f-9f ignorable.
3535 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3536 (_Jv_NewPrimArray): Likewise.
3537 (SIZE_T_MAX): New define.
3539 * java/lang/ClassLoader.java (system): Now private and final.
3541 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3544 * configure: Rebuilt.
3545 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3547 * exception.cc: Include gansidecl.h.
3549 1999-01-14 Andrew Haley <aph@cygnus.com>
3551 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3552 corrected: they didn't treat -0.0 and NaNs correctly.
3554 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3556 * nogc.cc: Use calloc to zero out memory.
3558 1999-01-11 Tom Tromey <tromey@cygnus.com>
3560 * java/lang/natClass.cc (isInstance): Return false if this class
3561 is primitive, not if class of `obj' is primitive.
3562 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3564 * java/io/SequenceInputStream.java (close): Handle case where `in'
3567 * java/text/DateFormat.java (format): New method.
3569 * mauve-libjava: Omit java.text.DateFormat.
3571 1999-01-08 Tom Tromey <tromey@cygnus.com>
3573 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3575 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3577 (_Jv_CondNotifyAll): Likewise.
3579 * configure: Rebuilt.
3580 * configure.in: Change --enable-source-compilation logic to work
3583 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3585 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3586 and RUNTESTFLAGS from AM_MAKEFLAGS.
3587 * configure.in: AM_RUNTESTFLAGS added.
3588 * configure.host: AM_RUNTESTFLAGS added.
3589 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3590 * configure: rebuilt.
3591 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3593 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3594 argv[] made conditional because embedded targets may not have
3596 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3597 explanatory comments added in call to super.
3599 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3600 exception thrown in the test harness itself added.
3601 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3603 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3605 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3607 1999-01-06 Tom Tromey <tromey@cygnus.com>
3609 * java/io/natFile.cc (get_entry): New function.
3610 (performList): Use get_entry.
3611 * include/config.h.in: Rebuilt.
3612 * acconfig.h (HAVE_READDIR_R): New define.
3613 * configure: Rebuilt.
3614 * configure.in: Look for readdir_r.
3616 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3618 * java/util/natDate.cc: Added copyright header.
3620 1999-01-05 Tom Tromey <tromey@cygnus.com>
3622 * include/config.h.in: Rebuilt.
3623 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3624 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3625 * configure: Rebuilt.
3626 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3627 unlink, and realpath.
3628 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3629 (stat): Conditionalize on HAVE_STAT.
3631 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3632 (performMkdir): Conditionalize on HAVE_MKDIR.
3633 (performRenameTo): Conditionalize on HAVE_RENAME.
3634 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3636 * include/config.h.in: Rebuilt.
3637 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3638 * configure: Rebuilt.
3639 * configure.in: Check for gmtime_r and localtime_r. For cross
3640 builds, assume they exist.
3642 * mauve-libjava: Include java.text.DateFormatSymbols again.
3643 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3644 from setAmPmStrings.
3646 * mauve-libjava: Omit java.text.DateFormatSymbols.
3648 1999-01-04 Tom Tromey <tromey@cygnus.com>
3650 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3652 * java/io/LineNumberReader.java (read): Decrement `count' in
3655 * java/io/BufferedWriter.java (write): Correctly determine when
3656 incoming data would overrun buffer. Flush buffer if write causes
3659 * java/io/BufferedOutputStream.java (write): Increment `count'
3660 after copying data into buffer.
3662 * java/io/FilterOutputStream.java (close): Call flush first.
3664 * java/io/PipedReader.java (read): If read causes `out' to catch
3665 up with `in', then set `in' to -1.
3667 * java/io/LineNumberInputStream.java (read): If no bytes read,
3668 return -1. If no bytes requested, return 0.
3670 * java/lang/StringBuffer.java (insert): If `str' is null, use
3673 1998-12-30 Anthony Green <green@cygnus.com>
3676 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3678 1998-12-23 Tom Tromey <tromey@cygnus.com>
3680 * java/io/PushbackInputStream.java (read): `off' already includes
3683 1998-12-17 Tom Tromey <tromey@cygnus.com>
3685 * Makefile.in: Rebuilt.
3686 * Makefile.am (GCJ_canadian): Include target_alias.
3688 * java/lang/natFirstThread.cc (run): Require main's class to be
3691 1998-12-16 Tom Tromey <tromey@cygnus.com>
3693 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3695 * java/util/ResourceBundle.java (getBundle): Throw
3696 NullPointerException if locale argument is null.
3698 * java/lang/natClass.cc (forName): Throw NullPointerException if
3700 Include NullPointerException.h.
3702 1998-12-14 Tom Tromey <tromey@cygnus.com>
3704 * java/lang/Character.java (Character): Implement Comparable.
3705 (compareTo): New methods.
3707 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3708 correct country and language codes.
3709 (UK, US): New constants.
3710 (setDefault): Language codes are lower-case.
3712 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3713 (getDeclaredConstructors): Likewise.
3714 (getDeclaredField): Likewise.
3715 (getDeclaredFields): Likewise.
3716 (getDeclaredMethod): Likewise.
3717 (getDeclaredMethods): Likewise.
3718 (getField): Likewise.
3719 (getFields): Likewise.
3720 (getMethod): Likewise.
3721 (getMethods): Likewise.
3722 * java/lang/Class.java: Declare new methods.
3723 * java/lang/Class.h: Declare new methods.
3725 * java/lang/natString.cc: Removed `#pragma implementation'.
3726 * include/cni.h (_Jv_GetStringChars): New function.
3727 * Makefile.in: Rebuilt.
3728 * Makefile.am (java/lang/String.h): Don't generate definition for
3731 * java/lang/natString.cc: Added `#pragma implementation'.
3733 * Makefile.in: Rebuilt.
3734 * Makefile.am (libjava.zip): Put build directory first in class
3735 path to avoid bug in compiler.
3737 1998-12-14 Anthony Green <green@cygnus.com>
3739 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3741 * include/javaprims.h: Add EventObject, ListResourceBundle and
3744 1998-12-13 Anthony Green <green@cygnus.com>
3746 * mauve-libjava: Run the ResourceBundle tests.
3748 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3751 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3753 * configure.in, configure: Make --enable-gcj-classes and
3754 --enable-source-compilation the default. (Nervously...) Yeah!
3755 Based on a patch from Tom Tromey.
3757 1998-12-13 Tom Tromey <tromey@cygnus.com>
3759 * java/util/EventObject.java: New file.
3760 * java/util/EventListener.java: New file.
3762 * include/javaprims.h: Updated class declarations.
3763 * Makefile.in: Rebuilt.
3764 * Makefile.am (nat_headers): Added Constructor.h.
3765 (java/lang/String.h): Don't inline String::length().
3766 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3767 * java/lang/Class.java (initializeClass, hackRunInitializers,
3768 hackTrampoline): No need to mark `final'.
3769 (getConstructor, getConstructors): Declare.
3770 * java/lang/reflect/Field.java (equals): New method.
3771 * java/lang/natClass.cc (getConstructor): New method.
3772 (getConstructors): Likewise.
3773 Include Method.h, Field.h, Constructor.h.
3774 * java/lang/reflect/Constructor.java: New file.
3775 * java/lang/reflect/Method.java (toString): No space before open
3777 (equals): Simplified.
3779 1998-12-13 Anthony Green <green@cygnus.com>
3781 * java/util/ResourceBundle.java: New file.
3782 * java/util/ListResourceBundle.java: New file.
3784 1998-12-12 Tom Tromey <tromey@cygnus.com>
3786 * java/lang/System.java (in, out, err): Now buffered streams by
3789 * include/javaprims.h: Updated class declarations.
3790 * Makefile.in: Rebuilt.
3791 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3792 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3794 (nat_files): Added natMethod.o.
3795 * java/lang/reflect/natMethod.cc: New file.
3796 * java/lang/reflect/Field.java (Field): Now extends
3798 * java/lang/reflect/AccessibleObject.java: New file.
3799 * java/lang/reflect/InvocationTargetException.java: New file.
3801 1998-12-11 Tom Tromey <tromey@cygnus.com>
3803 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3804 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3805 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3807 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3809 1998-12-09 Tom Tromey <tromey@cygnus.com>
3811 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3814 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3815 character is already titlecase.
3817 * java/lang/Character.java (isJavaLetter): Follow spec.
3818 (isJavaLetterOrDigit): Likewise.
3820 * java/util/GregorianCalendar.java (gregorianCutover): Append
3823 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3825 1998-12-08 Tom Tromey <tromey@cygnus.com>
3827 * java/lang/reflect/Modifier.java (toString): Replace second
3828 `static' with `synchronized'.
3830 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3831 * java/lang/Object.h (Object::hack12_6): Declare.
3832 * java/lang/Object.java (hack12_6): New function.
3834 1998-12-07 Tom Tromey <tromey@cygnus.com>
3836 * include/java-array.h (__JArray::clone): Removed decl.
3837 * prims.cc (__JArray::clone): Removed.
3838 * java/lang/natObject.cc (clone): Incorporate code to clone an
3841 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3842 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3843 Correctly use dtable_method_count.
3845 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3847 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3850 1998-12-06 Anthony Green <green@cygnus.com>
3852 * mauve-libjava: Don't test ResourceBundle.
3854 1998-12-04 Tom Tromey <tromey@cygnus.com>
3856 More JDK 1.2 spec fixes:
3857 * java/util/Date.java (millis): Now private.
3858 * java/text/DateFormat.java (DateFormat): Constructor now
3860 * java/lang/Void.java (Void): New private constructor.
3861 * java/lang/System.java (System): New private constructor.
3862 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3864 (currentClassLoader): New method.
3865 (currentLoadedClass): New method.
3866 * java/lang/Math.java (Math): New private constructor.
3867 * java/lang/Compiler.java (Compiler): New private constructor.
3868 * java/lang/Class.java (Class): New private constructor.
3869 * java/lang/Double.java (toString): Removed access specifier from
3870 two-argument `toString' method.
3872 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3874 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3875 causes it to be flushed from an fp register (where it may be
3876 longer than double precision) to a double in memory. This is
3877 essential to ensure correct rounding behaviour.
3879 1998-12-04 Tom Tromey <tromey@cygnus.com>
3881 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3884 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3885 explaining apparent divergence from JDK 1.2.
3887 1998-12-04 Per Bothner <bothner@cygnus.com>
3889 * include/no-threads.h: Remove unused parameter names.
3890 This silences a bunch of warnings.
3892 1998-12-04 Tom Tromey <tromey@cygnus.com>
3894 * include/config.h.in: Rebuilt.
3895 * acconfig.h (HAVE_CTIME_R): New symbol.
3897 1998-12-03 Tom Tromey <tromey@cygnus.com>
3899 * mauve-libjava: Added many more categories to reject.
3901 Changes to follow JDK1.2 spec:
3902 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3903 setErr, setIn, setOut): No need to be `final'.
3904 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3905 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3906 * java/lang/Object.java (wait): `nanos' argument is an int.
3907 * java/lang/VirtualMachineError.java: Class is abstract.
3908 * java/lang/ThreadDeath.java: Made constructors public.
3909 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3912 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3914 * java/text/DateFormatSymbols.java (getAmPmStrings,
3915 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3917 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3919 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3920 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3921 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3924 * java/lang/IllegalThreadStateException.java
3925 (IllegalThreadStateException): Changed extending class to match spec.
3927 * java/lang/NumberFormatException.java
3928 (java/lang/NumberFormatException): Changed extending class to match
3931 * java/util/Observer.java (Observer): Changed sig to match JCL.
3933 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3935 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3936 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3937 signature to match JDK 1.1 and 1.2.
3939 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3941 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3942 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3943 * Makefile.in, configure: Rebuilt.
3945 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3948 1998-12-02 Tom Tromey <tromey@cygnus.com>
3950 * mauve-libjava: New file.
3952 The remaining `-W -Wall' fixes:
3953 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3955 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3957 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3959 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3961 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3963 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3965 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3967 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3969 * java/lang/mprec.c (Balloc): Removed unused variable.
3970 (mult): Added parentheses per gcc suggestion.
3971 (pow5mult): Likewise.
3976 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3977 suggestion. Added cast to `int' to avoid signed/unsigned
3979 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3981 (IsAssignableFrom): Likewise.
3982 (_Jv_JNI_GetObjectField): Likewise.
3983 (_Jv_JNI_GetByteField): Likewise.
3984 (_Jv_JNI_GetShortField): Likewise.
3985 (_Jv_JNI_GetIntField): Likewise.
3986 (_Jv_JNI_GetLongField): Likewise.
3987 (_Jv_JNI_GetStringLength): Likewise.
3988 (_Jv_JNI_ToReflectedField): Likewise.
3989 (_Jv_JNI_FromReflectedField): Likewise.
3990 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3992 * Makefile.in: Rebuilt.
3993 * Makefile.am (AM_CFLAGS): Define conditionally.
3994 (WARNINGS): New macro.
3995 (AM_CXXFLAGS): Include WARNINGS.
3996 * configure: Rebuilt.
3997 * configure.in (USING_GCC): New conditional.
3999 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4001 * java/lang/Character.java: Changed classification constants to
4002 type `byte' to match JDK 1.2 docs.
4004 1998-12-01 Tom Tromey <tromey@cygnus.com>
4006 Some fixes to be `-W -Wall' clean:
4007 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4008 (_Jv_MarkArray): Likewise.
4009 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4010 (to_upper_title): Likewise.
4011 (isTitleCase): Likewise.
4012 (toTitleCase): Likewise.
4013 (getNumericValue): Likewise.
4014 (isLowerCase): Likewise.
4015 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4016 (avoids compiler warning).
4017 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4019 (getDeclaringClass): Likewise.
4020 (_Jv_LookupInterfaceMethod): Likewise.
4021 (_Jv_NewClass): Removed name of unused parameter.
4022 * exception.cc (_Jv_type_matcher): Removed unused variable.
4023 (_Jv_setup_eh_info): Removed name of unused parameter.
4024 * prims.cc (_Jv_NewArray): Always return a value.
4025 (_Jv_FindClassFromSignature): Likewise.
4026 * include/java-field.h (getNameUtf8Const): Removed name of unused
4028 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4030 (_Jv_ThreadSetPriority): Likewise.
4032 * java/lang/natString.cc (hashChars): Now static.
4034 * java/lang/FirstThread.java (FirstThread): Now final.
4036 * java/io/File.java (performMkdir, performRenameTo): Now private.
4038 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4039 if no time function defined.
4041 * configure: Rebuilt.
4042 * configure.in: Look for ctime_r, ctime.
4043 * java/util/Date.java (toString): Now native.
4044 * java/util/natDate.cc (toString): Rewrote.
4046 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4048 * Add LDFLAGS line to allow TX39 test cases to link when cross
4051 1998-11-23 Anthony Green <green@cygnus.com>
4053 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4054 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4055 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4056 include/java-array.h, include/java-assert.h, include/java-field.h,
4057 include/javaprims.h, include/jni.h, include/jvm.h,
4058 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4059 include/quick-threads.h, java/io/BufferedInputStream.java,
4060 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4061 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4062 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4063 java/io/CharArrayWriter.java,
4064 java/io/CharConversionException.java, java/io/DataInput.java,
4065 java/io/DataInputStream.java, java/io/DataOutput.java,
4066 java/io/DataOutputStream.java, java/io/EOFException.java,
4067 java/io/File.java, java/io/FileDescriptor.java,
4068 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4069 java/io/FileOutputStream.java, java/io/FileReader.java,
4070 java/io/FileWriter.java, java/io/FilenameFilter.java,
4071 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4072 java/io/FilterReader.java, java/io/FilterWriter.java,
4073 java/io/IOException.java, java/io/InputStream.java,
4074 java/io/InputStreamReader.java,
4075 java/io/InterruptedIOException.java,
4076 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4077 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4078 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4079 java/io/PipedReader.java, java/io/PipedWriter.java,
4080 java/io/PrintStream.java, java/io/PrintWriter.java,
4081 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4082 java/io/RandomAccessFile.java, java/io/Reader.java,
4083 java/io/SequenceInputStream.java, java/io/Serializable.java,
4084 java/io/StreamTokenizer.java,
4085 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4086 java/io/StringWriter.java, java/io/SyncFailedException.java,
4087 java/io/UTFDataFormatException.java,
4088 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4089 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4090 java/io/natFileDescriptorPosix.cc,
4091 java/lang/AbstractMethodError.java,
4092 java/lang/ArithmeticException.java,
4093 java/lang/ArrayIndexOutOfBoundsException.java,
4094 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4095 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4096 java/lang/Class.java, java/lang/ClassCastException.java,
4097 java/lang/ClassCircularityError.java,
4098 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4099 java/lang/ClassNotFoundException.java,
4100 java/lang/CloneNotSupportedException.java,
4101 java/lang/Cloneable.java, java/lang/Comparable.java,
4102 java/lang/Compiler.java, java/lang/Double.java,
4103 java/lang/Error.java, java/lang/Exception.java,
4104 java/lang/ExceptionInInitializerError.java,
4105 java/lang/FirstThread.java, java/lang/Float.java,
4106 java/lang/IllegalAccessError.java,
4107 java/lang/IllegalAccessException.java,
4108 java/lang/IllegalArgumentException.java,
4109 java/lang/IllegalMonitorStateException.java,
4110 java/lang/IllegalStateException.java,
4111 java/lang/IllegalThreadStateException.java,
4112 java/lang/IncompatibleClassChangeError.java,
4113 java/lang/IndexOutOfBoundsException.java,
4114 java/lang/InstantiationError.java,
4115 java/lang/InstantiationException.java, java/lang/Integer.java,
4116 java/lang/InternalError.java, java/lang/InterruptedException.java,
4117 java/lang/LinkageError.java, java/lang/Long.java,
4118 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4119 java/lang/NoClassDefFoundError.java,
4120 java/lang/NoSuchFieldError.java,
4121 java/lang/NoSuchFieldException.java,
4122 java/lang/NoSuchMethodError.java,
4123 java/lang/NoSuchMethodException.java,
4124 java/lang/NullPointerException.java, java/lang/Number.java,
4125 java/lang/NumberFormatException.java, java/lang/Object.h,
4126 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4127 java/lang/Process.java, java/lang/Runnable.java,
4128 java/lang/Runtime.java, java/lang/RuntimeException.java,
4129 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4130 java/lang/Short.java, java/lang/StackOverflowError.java,
4131 java/lang/String.java, java/lang/StringBuffer.java,
4132 java/lang/StringIndexOutOfBoundsException.java,
4133 java/lang/System.java, java/lang/Thread.java,
4134 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4135 java/lang/Throwable.java, java/lang/UnknownError.java,
4136 java/lang/UnsatisfiedLinkError.java,
4137 java/lang/UnsupportedOperationException.java,
4138 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4139 java/lang/Void.java, java/lang/natCharacter.cc,
4140 java/lang/natClass.cc, java/lang/natDouble.cc,
4141 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4142 java/lang/natMath.cc, java/lang/natObject.cc,
4143 java/lang/natRuntime.cc, java/lang/natString.cc,
4144 java/lang/natSystem.cc, java/lang/natThread.cc,
4145 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4146 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4147 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4148 java/text/FieldPosition.java, java/text/Format.java,
4149 java/text/NumberFormat.java, java/text/ParseException.java,
4150 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4151 java/util/BitSet.java, java/util/Calendar.java,
4152 java/util/ConcurrentModificationException.java,
4153 java/util/Date.java, java/util/Dictionary.java,
4154 java/util/EmptyStackException.java, java/util/Enumeration.java,
4155 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4156 java/util/Locale.java, java/util/MissingResourceException.java,
4157 java/util/NoSuchElementException.java, java/util/Observable.java,
4158 java/util/Observer.java, java/util/Properties.java,
4159 java/util/Random.java, java/util/SimpleTimeZone.java,
4160 java/util/Stack.java, java/util/StringTokenizer.java,
4161 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4162 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4165 * exception.cc: Include eh-common.h instead of duplicating
4168 1998-11-23 Tom Tromey <tromey@cygnus.com>
4170 * configure.host: Don't add `-O2' to libjava_flags. Only add
4171 `-Os' to libjava_flags once.
4173 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4175 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4176 * Makefile.in: likewise
4177 * acconfig.h: add ECOS conditional for configure.h
4178 * config.h.in: likewise
4179 * configure: add test for --with-ecos
4180 * configure.in: likewise
4181 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4182 rename call to avoid name clash.
4183 * java/lang/natSystem.cc: add eCos clock support.
4184 * java/util/natGregorianCalendar.cc: add eCos support.
4186 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4188 * Makefile.am, Makefile.in, configure.host: tx39 build option
4191 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4193 * java/io/BufferedReader.java: Added more comments for clarity.
4194 (mark): Used more mnemonic name for local var extraBuffSpace.
4196 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4197 confusion with private method of same name in superclass.
4198 (skipRedundantLF): Set fields in special case to avoid infinite
4199 recursion. Check if markPos has been invalidated in special case.
4200 (readLine): Rewritten to use readLine method of superclass.
4201 (skip): Incorporated code from lineEnd.
4203 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4205 * java/io/BufferedReader.java (readLine): New method.
4206 (lineEnd): new private method.
4207 (mark): Track special case for readLine of getting '\r' at the
4214 * java/io/InputStreamReader.java (read): Return number chars skipped
4215 rather than requested.
4217 * java/lang/StringBuffer.java (append): Update count and differentiate
4218 between field and local variable.
4220 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4221 seconds. Deal with military style time.
4222 (parse): Consistently treat all timezones in minutes until final
4223 calculation. Flag as non-local timezone. Return value in milliseconds.
4224 (setTime): Adjust for year offset from 1900.
4225 (UTC): Adjust for year offset from 1900.
4227 1998-11-17 Tom Tromey <tromey@cygnus.com>
4229 * configure: Rebuilt.
4230 * configure.in: Switch on host, not target.
4232 * Makefile.in: Rebuilt.
4233 * Makefile.am (GCJ_no): New macro.
4234 (GCJ): Use @CANADIAN@.
4235 (GCJH_no): New macro
4236 (GCJH_canadian): New macro.
4237 (GCJH): Use @CANADIAN@.
4238 (ZIP_no): New macro.
4239 (ZIP_canadian): New macro.
4240 (ZIP): Use @CANADIAN@.
4241 * aclocal.m4, configure: Rebuilt.
4242 * configure.in (CANADIAN): Compute and subst.
4244 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4246 * java/io/FileDescriptor.java (finalize): Only close file
4247 descriptor if valid.
4249 1998-11-17 Tom Tromey <tromey@cygnus.com>
4251 * prims.cc (_Jv_InitRuntime): Removed.
4253 1998-11-16 Tom Tromey <tromey@cygnus.com>
4255 * java/io/FileOutputStream.java (close): Only close file
4256 descriptor if valid.
4257 (finalize): New method.
4259 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4260 (_Jv_NewPrimArray): Likewise.
4261 * boehm.cc (_Jv_RegisterFinalizer): Use
4262 GC_REGISTER_FINALIZER_NO_ORDER.
4263 (GC_GENERIC_MALLOC): New define.
4264 (_Jv_AllocObj): Use it.
4265 (_Jv_AllocArray): Likewise.
4266 (_Jv_AllocBytes): Likewise.
4267 (_Jv_MarkObj): Just return if vtbl not set.
4268 (_Jv_MarkArray): Likewise.
4269 (MAYBE_MARK): New macro; use everywhere.
4270 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4272 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4274 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4275 to a jlong before calculation to prevent overflow.
4277 1998-11-16 Tom Tromey <tromey@cygnus.com>
4279 * Makefile.in: Rebuilt.
4280 * Makefile.am (nat_headers): Fixed typo.
4282 1998-11-15 Tom Tromey <tromey@cygnus.com>
4284 * java/lang/Class.h (Class::getName): Removed definition.
4285 * Makefile.in: Rebuilt.
4286 * Makefile.am (nat_headers): Added InstantiationException.h,
4287 NoSuchMethodException.h.
4288 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4289 (init_name): New global.
4290 (hackRunInitializers): Use clinit_name.
4291 Include InstantiationException.h, NoSuchMethodException.h.
4292 (newInstance): Do some error checking (but not all). Call
4294 (forName): Throw exception if class not found.
4295 (getName): New method.
4296 (forName): Transform class name from external format to internal
4297 format before lookup.
4299 1998-11-15 Anthony Green <green@cygnus.com>
4301 * java/lang/Class.h (Class::forName): Method is static.
4303 * java/lang/natClass.cc (newInstance): Add simple implementation.
4306 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4308 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4309 int), for compatibility with jc1.
4311 1998-11-14 Tom Tromey <tromey@cygnus.com>
4313 * include/config.h.in: Rebuilt.
4314 * acconfig.h (LINUX_THREADS): New define.
4315 * configure: Rebuilt.
4316 * configure.in: Define LINUX_THREADS if using POSIX threads on
4317 Linux. Look for pthread_mutexattr_setkind_np function.
4318 * posix-threads.cc (throw_cleanup): New function.
4319 (really_start): Push cleanup function.
4320 (_Jv_ThreadCancel): New function.
4321 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4322 (_Jv_ThreadInitData): Set `exception' field in new structure.
4323 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4325 (_Jv_ThreadWait): New function.
4326 (_Jv_InitThreads): Initialize daemon globals.
4327 (FLAG_DAEMON): New macro.
4328 (really_start): Notify daemon_cond when non-daemon thread exits.
4329 Include <java/lang/System.h>.
4330 (struct starter): `object' field now a thread.
4331 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4332 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4333 (_Jv_ThreadWait): Removed definition.
4334 (_Jv_Thread_t): Added `exception' field.
4335 (_Jv_ThreadCancel): Removed definition.
4337 1998-11-13 Tom Tromey <tromey@cygnus.com>
4339 * Makefile.in: Rebuilt.
4340 * Makefile.am (libjava.zip): Compute javac before changing
4343 * Makefile.in: Rebuilt.
4344 * Makefile.am (libjava.zip): Include directory entries.
4346 * Makefile.in: Rebuilt.
4347 * Makefile.am (expanded): New macro.
4350 1998-11-12 Tom Tromey <tromey@cygnus.com>
4352 * prims.cc (clone): New function.
4353 * include/java-array.h (__JArray::clone): Removed definition.
4355 * java/lang/natObject.cc (clone): Don't assert that class is not
4356 an array; array's `clone' method just calls this one.
4358 * Makefile.in: Rebuilt.
4359 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4360 Now creates zip file. Changed all users.
4362 (data_DATA): New macro.
4364 1998-11-11 Tom Tromey <tromey@cygnus.com>
4366 * configure: Rebuilt.
4367 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4369 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4371 * java/io/InputStream.java (reset): Add msg to thrown exception.
4373 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4375 * java/io/LineNumberInputStream.java: Rewritten.
4377 * java/io/StringBufferInputStream.java: Removed extraneous import.
4379 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4381 * java/io/StringBufferInputStream.java: Rewritten.
4383 * java/util/Date.java (parseMonth): Optimize.
4384 (parseDayOfWeek): Created.
4385 (parse): Optimize to use parseDayOfWeek.
4387 1998-11-11 Tom Tromey <tromey@cygnus.com>
4389 * java/lang/StringBuffer.java (append): Handle case where STR is
4392 * include/javaprims.h: Regenerated class declarations.
4394 * configure: Rebuilt.
4395 * configure.in: Added --enable-gcj-classes,
4396 --enable-single-compilation, --enable-source-compilation flags.
4397 * Makefile.in: Rebuilt.
4398 * Makefile.am (java_io_files): New macro.
4399 (java_lang_files): Likewise.
4400 (java_text_files): Likewise.
4401 (java_util_files): Likewise.
4402 (java_files): Use new macros.
4403 (java-io.o): New target.
4404 (java-lang.o): Likewise.
4405 (java-text.o): Likewise.
4406 (java-util.o): Likewise.
4407 (src_io_files): New macro.
4408 (src_lang_files): Likewise.
4409 (src_text_files): Likewise.
4410 (src_util_files): Likewise.
4411 (class_io_files): New macro.
4412 (class_lang_files): Likewise.
4413 (class_text_files): Likewise.
4414 (class_util_files): Likewise.
4415 (class_files): Use new macros.
4416 (javao_files): Define conditionally.
4417 (.java.o): New target.
4418 ($(javao_files)): New target.
4420 (GCJH): Added $(EXEEXT).
4421 (CLASSPATH_ENV): Removed.
4422 (GCJCOMPILE): New macro.
4424 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4426 * java/util/Date.java (parse): Written from scratch.
4428 1998-11-11 Tom Tromey <tromey@cygnus.com>
4430 * java/lang/Throwable.java (toString): Correct sense of test for
4431 determining when to include detail message in result.
4433 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4436 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4438 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4440 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4441 (_Jv_RegisterClass): Use it.
4442 * include/jvm.h (_Jv_RegisterClasses): Declare.
4443 * java/lang/natObject.cc (init): Removed.
4444 (sync_init): Never call _Jv_InitializeSyncMutex.
4445 (_Jv_InitializeSyncMutex): Don't set `init'.
4446 * prims.cc (JvRunMain): Don't run init functions.
4448 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4450 * java/lang/natClass.cc (initializeClass): Set state before
4451 resolving constants.
4453 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4454 (STATE_RESOLVED): New macro.
4455 (initializeClass): Call resolveConstants.
4456 (hackRunInitializers): Don't call resolveConstants.
4457 (_Jv_FindArrayClass): Move short-circuit return for primitive
4458 element types earlier in function.
4460 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4462 * prims.cc (no_memory): New global.
4463 (_Jv_makeUtf8Const): Throw no_memory.
4464 (_Jv_AllocObject): Likewise.
4465 (_Jv_NewObjectArray): Likewise.
4466 (_Jv_NewPrimArray): Likewise.
4467 (JvRunMain): Initialize no_memory.
4469 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4471 * java/io/FileInputStream.java: Corrected date comment.
4472 * java/io/SequenceInputStream.java: Rewritten.
4474 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4476 * java/lang/FirstThread.java (die): New method.
4477 * java/lang/natFirstThread.cc (die): Removed.
4479 (run): Use `DIE', not `die'.
4481 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4483 * java/io/CharArrayReader.java (read): Move check into synchronized
4484 block to prevent a close while in progress.
4487 * java/io/PushbackReader.java (read): Ditto.
4490 * java/io/StringReader.java (mark): Ditto.
4495 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4497 * java/io/PipedInputStream.java: Updated status.
4498 (connect): Added code to prevent infinite recursion and to
4499 differentiate exception causes.
4500 (read): Added code to differentiate exception causes.
4501 (receive): Made exception pass string with the cause.
4503 * java/io/PipedOutputStream.java: Updated status.
4504 (connect): Added code to call connect at the other end of the pipe.
4506 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4508 * java/io/PipedInputStream.java (connect): Throw exception if
4509 already connected to the same output stream.
4510 (read): Do bounds checking first.
4512 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4514 * java/io/PipedInputStream.java: Added private boolean outClosed.
4515 (available): Removed check if output stream is open.
4516 (close): Mark the buffer as empty so available returns 0.
4517 (read): Check if the output stream was closed and then return EOF
4518 when the buffer is empty.
4519 (receive): Mark the output stream as closed when passed a -1.
4521 * java/io/PipedOutputStream.java (close): Notify the input stream
4522 that there's no more data coming.
4523 (connect): Added a FIXME comment to note more coordination needed
4524 with PipedInputStream.
4525 (flush): Added a FIXME comment to mark what this method might do
4528 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4530 * java/io/PipedInputStream.java: Rewritten.
4532 1998-10-30 Tom Tromey <tromey@cygnus.com>
4534 * java/lang/Throwable.java: Rewrote from scratch.
4536 * java/lang/Class.h (Class): Don't mention newMultiArray.
4537 * prims.cc (newMultiArray): Removed.
4538 (_Jv_NewMultiArray): Removed.
4539 (newArray): Removed.
4540 (new_multi_array): New function.
4541 (_Jv_NewMultiArray): Rewrote from scratch.
4543 * include/javaprims.h: Regenerated class declarations.
4544 * classes.pl (scan): Don't declare PrimClass.
4545 * include/cni.h (JvPrimClass): Use new names for classes.
4546 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4547 added _Jv_PrimClass.
4548 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4549 (_Jv_initPrimClass): Removed.
4550 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4551 (_Jv_AllocObject): Added comment.
4552 (_Jv_NewObjectArray): Likewise.
4553 (_Jv_NewPrimArray): Likewise.
4555 1998-10-29 Tom Tromey <tromey@cygnus.com>
4557 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4558 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4560 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4562 * java/lang/natObject.cc (init): New global.
4563 (sync_init): Call _Jv_InitializeSyncMutex if required.
4565 * Makefile.in: Rebuilt.
4566 * Makefile.am (nat_headers): Added ClassLoader.h.
4567 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4568 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4569 internalAddClass, lookupArray no longer friends.
4570 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4571 _Jv_FindArrayClass now friends.
4572 * java/lang/natClass.cc (HASH_LEN): New macro.
4573 (HASH_UTF): Likewise.
4574 (loaded_classes): New global.
4575 (_Jv_FindClass): New function.
4576 (ClassClass): New define.
4577 (_Jv_FindClassInCache): New function.
4578 (_Jv_RegisterClass): Likewise.
4579 (_Jv_NewClass): Likewise.
4581 (ObjectClass): New define.
4582 (CloneableClass): New define.
4583 * prims.cc (_Jv_FindClass): Removed.
4584 (simpleLookupClass): Removed.
4585 (insertClass): Removed.
4586 (CLASSHASHSZ): Removed.
4587 (classPool): Removed.
4588 (_Jv_RegisterClass): Removed.
4589 (internalAddClass): Removed.
4590 (ClassClass): Removed.
4591 (RuntimeClass): Removed.
4592 (lookupArray): Removed.
4593 (CloneableClass): Removed.
4594 (CLASSMAXSIG): Removed.
4595 Rearranged file to group related functions together.
4596 (_Jv_IsInstanceOf): Moved to natClass.cc.
4597 (abort_final): Removed.
4598 Removed some unused includes.
4599 (classFromSig): Removed.
4600 (_Jv_FindClassFromSignature): New function.
4601 (_Jv_initPrimClass): Renamed.
4602 (getClass): Removed.
4604 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4606 * java/io/FileDescriptor.java (finalize): Throws IOException
4607 instead of Throwable.
4609 * java/io/FileInputStream.java: Rewritten.
4611 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4612 at the end of a comment.
4614 1998-10-29 Tom Tromey <tromey@cygnus.com>
4616 * include/javaprims.h: Regenerated class declarations.
4617 * classes.pl (scan): Don't special-case ClassLoader.
4619 * prims.cc (processClass): Removed.
4620 (_Jv_InitClass): Removed.
4621 Removed all CSTATE_ macros.
4622 (resolveConstants): Removed.
4624 (_Jv_NewMultiArray): Cleaned up.
4625 * Makefile.in: Rebuilt.
4626 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4627 * java/lang/Class.h (Class): Declare new methods. processClass no
4629 * java/lang/Class.java (hackTrampoline): New method.
4630 (initializeClass): Declare.
4631 (hackRunInitializers): Declare.
4632 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4633 (initializeClass): New method.
4634 (hackRunInitializers): New method.
4635 (init_name, void_signature): Moved from prims.cc.
4636 (_Jv_InitClass): New function.
4637 (isAssignableFrom): Don't call processClass.
4638 (STATE_NOTHING): New macro.
4639 (resolveConstants): New function.
4641 (ErrorClass): New define.
4643 * java/lang/Class.java (getClassLoader): Declare.
4644 * java/lang/ClassLoader.java: Rewrote from scratch.
4646 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4647 AbstractMethodError.h, IllegalAccessError.h,
4648 NoClassDefFoundError.h.
4649 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4650 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4651 longer static. Changed return type.
4652 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4653 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4654 * prims.cc (findMethodLocal): Removed.
4655 (processClass): Use _Jv_GetMethodLocal.
4657 1998-10-28 Tom Tromey <tromey@cygnus.com>
4659 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4660 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4662 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4663 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4665 * include/jni.h: Added copyright header.
4666 * include/javaprims.h: Added copyright header.
4667 * include/java-field.h: Added copyright header.
4668 * include/java-array.h: Added copyright header.
4669 * include/cni.h: Added copyright header.
4671 * include/javaprims.h: Regenerated class declarations using
4672 classes.pl; now they are complete.
4673 * classes.pl: New file.
4675 * java/lang/natMath.cc: Include <config.h>.
4676 * java/lang/reflect/natField.cc: Include <config.h>.
4677 * java/util/NativeUtil.java: Removed.
4678 * Makefile.in: Rebuilt.
4679 * Makefile.am (nat_headers): Added Math.h.
4680 * java/lang/Math.h: Removed.
4681 * java/util/natGregorianCalendar.cc: Added copyright header.
4683 * java/lang/natFloat.cc: Added copyright header.
4684 * java/lang/Byte.java: Added copyright header.
4685 * java/lang/Void.java: Added copyright header.
4686 * java/lang/Short.java: Added copyright header.
4688 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4690 * include/javaprims.h (java::io): Added bunch of missing classes.
4692 * java/io/DataInputStream.java (readLine): Added a special case
4693 for handling BufferedInputStream data to reduce the likelihood
4694 of a pushback error.
4695 (skipBytes): Added code to handle negative number of skip bytes.
4697 * java/io/StreamTokenizer.java: Rewritten.
4699 1998-10-28 Tom Tromey <tromey@cygnus.com>
4701 * java/util/natGregorianCalendar.cc (computeFields): Call
4702 getRawOffset as a method.
4704 * include/javaprims.h (java::io): Added FilterOutputStream.
4705 * Makefile.in: Rebuilt.
4706 * Makefile.am (nat_headers): Added PrintStream.h,
4707 FilterOutputStream.h.
4708 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4710 (die): New function.
4711 (run): Die if `main' not found, is not public, or is not static.
4713 * boehm.cc (_Jv_MarkObj): Use new field names.
4714 * include/java-field.h (JvGetFirstInstanceField): Use new field
4716 (JvNumInstanceFields): Likewise.
4717 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4718 (getInterfaces): Likewise.
4719 * prims.cc (CLASS_CONSTANTS): Removed.
4720 (CLASS_CONST_SIZE): Likewise.
4721 (CLASS_CONST_TAG): Likewise.
4722 (CLASS_CONST_DATA): Likewise.
4723 (CLASS_CONST_UTF8): Likewise.
4724 (WORD2UTF): Likewise.
4725 (CLASS_CLASS): Likewise.
4726 (CLASS_PRIM_SIG): Likewise.
4727 (CLASS_ARRAY_CACHE): Likewise.
4728 (HASH_CHARS): Likewise.
4729 (hashClassName): Likewise.
4730 Many changes to use new field names.
4731 * java/lang/Class.h (Class): Renamed fields to track compiler.
4733 1998-10-27 Tom Tromey <tromey@cygnus.com>
4735 * java/lang/natClass.cc: Use #pragma implementation.
4736 (getComponentType): Moved into header.
4737 (getModifiers): Likewise.
4738 (getName): Likewise.
4739 (getSuperclass): Likewise.
4740 (isArray): Likewise.
4741 (isPrimitive): Likewise.
4742 * include/jvm.h (_Jv_FindClass): Declare.
4743 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4744 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4745 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4746 * java/lang/Class.h: Rewrote from scratch.
4747 * prims.cc: Many changes to work with new Class.h.
4748 * include/java-field.h (CLASS_FIELDS): Removed.
4749 (CLASS_SFIELDS): Likewise.
4750 (CLASS_IFIELDS): Likewise.
4751 (CLASS_NFIELDS): Likewise.
4752 (CLASS_NIFIELDS): Likewise.
4753 (CLASS_NSFIELDS): Likewise.
4754 (CLASS_FSIZE): Likewise.
4755 (JvGetFirstInstanceField): Rewrote.
4756 (JvNumInstanceFields): Likewise.
4758 * java/lang/Object.h: Added copyright comment.
4760 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4762 * java/text: New package directory.
4763 * java/text/FieldPosition.java: New class.
4764 * java/text/ParsePosition.java: New class.
4765 * java/text/ParseException.java: New Exception class.
4766 * java/text/Format.java: New class.
4767 * java/text/NumberFormat.java: New (empty placeholder) class.
4768 * java/text/DateFormatSymbols.java: New class (no Locales support).
4769 * java/text/DateFormat.java: New Format class (incomplete).
4770 * java/text/SimpleDateFormat.java: New DateFormat class.
4772 * include/javaprims.h (java::test): Added new package and classes.
4773 * java/util/Calendar.java (clone): New method.
4774 * java/util/Date.java (toString): Added non-native implementation.
4775 (parse): Made public instead of synchronized.
4776 * java/util/natDate.cc (toString): Removed.
4777 * java/util/natGregorianCalendar.cc (computeFields):
4778 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4780 1998-10-27 Tom Tromey <tromey@cygnus.com>
4782 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4784 * prims.cc (lookupArray): Added explanatory comment.
4785 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4786 class. Mark the class of each object.
4787 (_Jv_MarkArray): Mark the object's class.
4789 * configure: Rebuilt.
4790 * configure.in: Create java-gc.h.
4791 * include/boehm-gc.h: New file.
4792 * include/no-gc.h: New file.
4793 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4795 * java/lang/Object.h: Include java-gc.h.
4796 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4797 friends, if defined.
4798 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4800 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4802 1998-10-26 Tom Tromey <tromey@cygnus.com>
4804 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4805 paragraph separators, not numbers.
4807 * java/io/Writer.java (write): Removed write(char) to avoid
4809 * java/util/Properties.java: Rewrote from scratch.
4810 * include/javaprims.h (java::io): Added PrintWriter,
4811 BufferedWriter, PushbackReader.
4813 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4815 * java/lang/System.java: exit() is a static method.
4817 1998-10-26 Tom Tromey <tromey@cygnus.com>
4819 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4821 (_Jv_NewStringUtf8Const): Likewise.
4822 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4823 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4825 * java/lang/Object.h (Object): Add mark_array as friend function.
4826 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4827 _Jv_AllocBytes, to ensure that header is marked.
4828 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4830 (mark_array): Push sync_info field for array.
4832 1998-10-24 Tom Tromey <tromey@cygnus.com>
4834 * java/lang/String.java (String): Updated for StringBuffer
4836 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4838 * java/lang/StringBuffer.java: Renamed fields to conform to
4839 serialization spec: buffer->value, next->count, copy->shared.
4841 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4843 * java/util/TimeZone.java: New class.
4844 * java/util/SimpleTimeZone.java: New class.
4845 * java/util/Locale.java: New file.
4846 * java/util/Calendar.java: Make almost complete.
4847 * java/util/GregorianCalendar.java
4848 * java/util/natGregorianCalendar.cc: New file.
4849 * java/util/Date.java: Re-written from scratch.
4850 * java/util/natDate.cc (setTime): Removed - no longer native.
4851 * include/javaprims.h (java::util): Add new classes.
4852 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4853 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4855 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4857 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4858 returning it as a jint.
4860 1998-10-23 Tom Tromey <tromey@cygnus.com>
4862 * prims.cc (arg_vec, main_group, main_thread): New globals.
4863 (JvRunMain): Use them.
4865 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4867 * java/io/DataInputStream.java: Rewritten.
4869 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4870 tertiary bytes with 0x80 per spec.
4872 1998-10-23 Tom Tromey <tromey@cygnus.com>
4874 * java/lang/String.java (init): Changed name of `copy' argument.
4875 * java/lang/natString.cc (init): Inverted sense of `copy'
4878 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4879 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4880 * boehm.cc (ObjectClass): New define.
4881 (ClassClass): Likewise.
4882 (mark_obj): Special-case Object and Class.
4884 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4886 * java/util/BitSet.java: Rewrote from scratch.
4888 * prims.cc (lookupArray): Removed useless cast.
4890 * java/lang/natObject.cc: Use `#pragma implementation'.
4892 * java/lang/String.java (init): Added `copy' argument.
4893 (String): Look in StringBuffer to find char array.
4894 * java/lang/natString.cc (init): Added `copy' argument.
4895 * java/lang/StringBuffer.java: Rewrote from scratch.
4897 * java/lang/Compiler.java: Rewrote from scratch.
4898 * java/lang/Throwable.java: Don't use NativeLang.
4899 * include/javaprims.h (java::lang): Don't mention NativeLang.
4900 * java/lang/Process.java: Rewrote from scratch.
4901 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4903 (currentClassLoader): Likewise.
4904 (currentLoadedClass): Likewise.
4905 * java/lang/natClass.cc (getClassLoader): Commented out.
4906 * java/lang/Class.java (getClassLoader): Commented out.
4907 * java/lang/Compiler.java: Removed.
4908 * java/lang/NativeLang.java: Removed.
4910 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4911 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4912 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4913 (_Jv_hashUtf8String): Now static.
4914 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4915 name of return type.
4917 * java/lang/Class.h (Class): Declare checkMemberAccess.
4918 * Makefile.in: Rebuilt.
4919 * Makefile.am (nat_headers): Added Member.h.
4920 * java/lang/natClass.cc: Include Member.h.
4921 (getDeclaredClasses): Call checkMemberAccess.
4922 * java/lang/Class.java (checkMemberAccess): Call
4923 SecurityManager.checkMemberAccess.
4925 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4927 * java/lang/SecurityManager.java: Rewritten.
4929 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4931 * java/applet/Applet.java, java/applet/AppletContext.java,
4932 java/applet/AppletStub.java, java/applet/AudioClip.java,
4933 java/awt/AWTError.java, java/awt/AWTException.java,
4934 java/awt/BorderLayout.java, java/awt/Button.java,
4935 java/awt/Canvas.java, java/awt/CardLayout.java,
4936 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4937 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4938 java/awt/Color.java, java/awt/Component.java,
4939 java/awt/Container.java, java/awt/Dialog.java,
4940 java/awt/Dimension.java, java/awt/Event.java,
4941 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4942 java/awt/Font.java, java/awt/FontMetrics.java,
4943 java/awt/Frame.java, java/awt/Graphics.java,
4944 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4945 java/awt/GridLayout.java, java/awt/Image.java,
4946 java/awt/Insets.java, java/awt/Label.java,
4947 java/awt/LayoutManager.java, java/awt/List.java,
4948 java/awt/MediaTracker.java, java/awt/Menu.java,
4949 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4950 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4951 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4952 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4953 java/awt/TextArea.java, java/awt/TextComponent.java,
4954 java/awt/TextField.java, java/awt/Toolkit.java,
4955 java/awt/Window.java, java/awt/image/ColorModel.java,
4956 java/awt/image/CropImageFilter.java,
4957 java/awt/image/DirectColorModel.java,
4958 java/awt/image/FilteredImageSource.java,
4959 java/awt/image/ImageConsumer.java,
4960 java/awt/image/ImageFilter.java,
4961 java/awt/image/ImageObserver.java,
4962 java/awt/image/ImageProducer.java,
4963 java/awt/image/IndexColorModel.java,
4964 java/awt/image/MemoryImageSource.java,
4965 java/awt/image/PixelGrabber.java,
4966 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4967 java/awt/peer/CanvasPeer.java,
4968 java/awt/peer/CheckboxMenuItemPeer.java,
4969 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4970 java/awt/peer/ComponentPeer.java,
4971 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4972 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4973 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4974 java/awt/peer/MenuBarPeer.java,
4975 java/awt/peer/MenuComponentPeer.java,
4976 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4977 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4978 java/awt/peer/TextAreaPeer.java,
4979 java/awt/peer/TextComponentPeer.java,
4980 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4981 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4982 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4983 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4984 java/net/MalformedURLException.java, java/net/NativeNet.java,
4985 java/net/ProtocolException.java, java/net/ServerSocket.java,
4986 java/net/Socket.java, java/net/SocketException.java,
4987 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4988 java/net/URL.java, java/net/URLConnection.java,
4989 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4990 java/net/URLStreamHandlerFactory.java,
4991 java/net/UnknownHostException.java,
4992 java/net/UnknownServiceException.java: Removed.
4994 1998-10-22 Tom Tromey <tromey@cygnus.com>
4996 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4997 finalizer is not Object.finalize.
4998 (internalAddClass): Don't set `final' member of class.
4999 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5000 other places that know about finalize() location.
5001 * java/lang/Class.h (Class): Removed `final' field.
5003 * aclocal.m4, configure: Rebuilt.
5004 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5005 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5007 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5008 * Makefile.in: Rebuilt.
5009 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5011 1998-10-21 Tom Tromey <tromey@cygnus.com>
5013 * java/lang/Object.java (finalize): Move to be first method in
5016 * configure: Rebuilt.
5017 * configure.in (GCINCS): Include contents of boehm-cflags file.
5019 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5021 * java/lang/ArrayIndexOutOfBoundsException.java
5022 (ArrayIndexOutOfBoundsException): Fixed string literal.
5023 * java/lang/StringIndexOutOfBoundsException.java
5024 (StringIndexOutOfBoundsException): Fixed string literal.
5026 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5028 * natFileDescriptorEcos.cc added.
5029 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5031 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5033 * acconfig.h: test for __int32_t and __uint32_t added.
5034 * include/config.h.in: test for __int32_t and __uint32_t added.
5035 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5036 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5037 * configure.in: test for __int32_t and __uint32_t added.
5038 * configure: test for __int32_t and __uint32_t added.
5040 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5042 * configure.in: Test for --enable ecos and link
5043 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5044 natFileDescriptorPosix.cc
5046 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5048 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5050 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5053 * java/io/CharArrayReader.java (close): Synchronize on lock
5054 object per Reader contract.
5055 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5056 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5057 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5058 Ensure that arg passed in isn't negative.
5060 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5061 constructing the superclass.
5063 * java/io/PushbackReader.java (close): Synchronize on lock
5064 object per Reader contract.
5065 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5066 (ready): Synchronize on lock obj. Throw IOException if reader
5068 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5069 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5070 Ensure that arg passed in isn't negative.
5071 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5073 * java/io/StringReader.java: Created.
5075 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5077 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5079 (read): Removed synchronized modifier to match JCL.
5080 (reset): Removed synchronized modifier to match JCL.
5081 (skip): Removed synchronized modifier to match JCL.
5083 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5085 * java/io/PushbackReader.java (PushbackReader): Made
5086 constructors public.
5088 1998-10-17 Tom Tromey <tromey@cygnus.com>
5090 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5091 constructors public.
5093 1998-10-16 Anthony Green <green@cygnus.com>
5095 * aclocal.m4, configure: Rebuilt.
5096 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5098 * configure.host: Rewrote.
5099 * Makefile.in: Rebuilt.
5100 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5101 (AM_CFLAGS): New macro.
5102 ($(c_files)): Use COMPILE macro.
5103 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5104 automake problem(s).
5106 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5108 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5110 * java/io/CharArrayReader.java: Created.
5112 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5114 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5115 size check to allow 0 per JCL.
5117 * java/io/PushbackReader.java: Created.
5119 1998-10-16 Tom Tromey <tromey@cygnus.com>
5121 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5122 <sys/time.h> includes.
5123 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5124 * include/no-threads.h: Conditionalize <unistd.h> include on
5127 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5129 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5132 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5134 * java/io/FilterReader.java: Created.
5136 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5138 * java/io/PushbackInputStream.java: Rewritten.
5140 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5141 that size passed to constructor is legal.
5142 (read): Check that args passed in are legal.
5143 (skip): Rewritten to get rid of the temporary buffer.
5144 (refill): Added marklimit check to grow the buffer.
5146 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5148 (bytesAvail): Removed.
5149 (read): Changed bytesAvail to Math.min.
5150 (skip): Changed bytesAvail to Math.min.
5152 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5153 from the throws clause.
5154 (skip): Rewritten to use a temporary buffer.
5156 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5158 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5161 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5163 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5164 to write the double one word at a time.
5166 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5168 * java/io/BufferedInputStream.java: Rewritten.
5170 1998-10-12 Tom Tromey <tromey@cygnus.com>
5172 * jni.cc: Include config.h and stddef.h.
5174 * java/lang/Class.h (_dispatchTable): Removed again.
5175 Removed all ACC_* defines again.
5177 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5179 * Makefile.am (nat_files): Add netField.o.
5180 (libjava_a_SOURCES): Add jni.cc.
5181 (java/lang/reflect/Field.h): New rule.
5182 * Makefile.in: Re-generated.
5183 * include/javaprims.h: Add some extra class and typedefs.
5184 * include/jni.h: New file.
5187 * include/java-field.h: New file.
5188 * include/jvm.h: #include <java-field.h>.
5189 * boehm.cc: #include <java-field.h>.
5190 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5191 * java/lang/reflect/Member.java: New class.
5192 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5193 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5195 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5197 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5198 testsuite/Makefile.in: Rebuilt.
5199 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5200 * configure.host: Created.
5202 1998-10-10 Tom Tromey <tromey@cygnus.com>
5204 * java/lang/natObject.cc (sync_init): Always allocate a new
5207 1998-10-09 Tom Tromey <tromey@cygnus.com>
5209 * java/io/ByteArrayInputStream.java (mark): Renamed from
5212 * java/io/FileOutputStream.java (finalize): Removed.
5213 * java/io/FileDescriptor.java (finalize): New method.
5215 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5217 * ByteArrayInputStream.java: Corrected status comment.
5219 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5221 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5223 1998-10-08 Tom Tromey <tromey@cygnus.com>
5225 * prims.cc (lookupArray): Use static array to initialize list of
5228 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5230 * prims.cc (lookupArray): Initialize the msize for new
5233 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5235 * configure: Rebuilt.
5236 * configure.in: Check for fsync and sleep.
5237 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5239 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5240 HAVE_SLEEP. Include config.h.
5242 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5243 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5246 1998-10-08 Tom Tromey <tromey@cygnus.com>
5248 * java/io/natFile.cc: Don't include SecurityManager.h.
5249 (performList): Renamed.
5250 (performMkdir): Likewise.
5251 (performRenameTo): Likewise.
5252 (performDelete): Likewise.
5254 * java/io/File.java (performDelete): Renamed from natDelete.
5255 (list): Now written in Java.
5256 (performList): New method.
5257 (performMkdir): New method.
5258 (mkdir): Now written in Java.
5259 (performRenameTo): New method.
5260 (renameTo): Now written in Java.
5262 1998-10-06 Tom Tromey <tromey@cygnus.com>
5264 * Makefile.in: Rebuilt.
5265 * Makefile.am (ETAGS_ARGS): New macro.
5266 (TAGS_DEPENDENCIES): Likewise.
5268 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5270 * Makefile.in: Rebuilt.
5271 * Makefile.am: Use -classpath option with javac.
5273 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5275 * java/io/FileOutputStream.java (finalize): Call
5278 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5280 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5282 * java/lang/mprec.c: Ditto.
5284 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5287 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5289 * java/io/InputStream.java (skip): Make local var i a long.
5291 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5293 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5294 * prims.cc (lookupArray): Use memcpy, not memmove.
5295 * include/config.h.in: Rebuilt.
5296 * acconfig.h (HAVE_MEMCPY): Added.
5297 * configure: Rebuilt.
5298 * configure.in: Check for memcpy again.
5300 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5301 String.compareTo, not ==.
5303 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5304 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5305 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5306 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5307 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5308 into new array's dtable.
5309 (_Jv_AllocObject): Use _Jv_DispatchTable.
5310 (_Jv_NewPrimArray): Likewise.
5311 (_Jv_NewObjectArray): Likewise.
5313 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5315 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5316 offending index value.
5317 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5319 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5320 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5322 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5324 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5326 * java/io/OutputStream.java (write): Use off and len parameters to
5327 output partial byte array.
5329 * java/io/BufferedReader.java, java/io/FileReader.java,
5330 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5331 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5332 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5333 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5335 * include/javaprims.h (java::lang): Added
5336 ExceptionInInitializerError, IllegalStateException,
5337 NoSuchFieldException, and UnsupportedOperationException.
5339 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5341 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5344 * include/java-array.h (__JArray): Added clone method.
5345 * prims.cc (CloneableClass): New define.
5346 (lookupArray): Initialize array class to indicate that it
5347 implements Cloneable.
5349 * java/lang/Class.h: Removed all ACC_* defines.
5350 * prims.cc: Include Modifier.h.
5351 (_Jv_LookupInterfaceMethod): Use methods in
5352 java.lang.reflect.Modifier, not ACC_ defines.
5354 * java/lang/Class.h (Class): Declare getClasses,
5355 getDeclaredClasses, getDeclaringClass, getModifiers,
5356 * java/lang/Class.java: Rewrote from scratch.
5358 * include/javaprims.h (java::lang): Added reflect and
5360 * Makefile.in: Rebuilt.
5361 * Makefile.am (nat_headers): Added Modifier.h.
5363 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5366 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5368 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5369 instead of test and abort.
5371 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5372 remove compiler warning.
5374 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5376 * java/lang/natDouble.cc: zero terminate string.
5377 * strtod.c: Set errno if no digits are found in fraction.
5379 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5381 * java/lang/reflect/Modifier.java: New file.
5383 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5384 * java/lang/VerifyError.java: Rewrote from scratch.
5385 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5386 * java/lang/UnknownError.java: Rewrote from scratch.
5387 * java/lang/StackOverflowError.java: Rewrote from scratch.
5388 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5389 * java/lang/InternalError.java: Rewrote from scratch.
5390 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5391 * java/lang/ExceptionInInitializerError.java: New file.
5392 * java/lang/Error.java: Rewrote from scratch.
5393 * java/lang/ClassFormatError.java: Rewrote from scratch.
5394 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5395 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5396 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5397 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5398 * java/lang/LinkageError.java: Rewrote from scratch.
5399 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5401 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5403 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5404 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5406 * include/cni.h (JvAllocObject): Moved from prims.cc.
5408 * prims.cc (JvAllocObject): Moved to cni.h.
5409 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5410 (finalize_name): Removed.
5412 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5414 * java/lang/Class.h (Class): Added size() method.
5415 * prims.cc (_Jv_MonitorEnter): Removed.
5416 (_Jv_MonitorExit): Removed.
5417 * java/lang/Object.h (JvSyncInfo): Removed.
5418 * Makefile.in: Rebuilt.
5419 * Makefile.am (nat_headers): Added Cloneable.h,
5420 CloneNotSupportedException.h.
5421 * java/lang/Object.h: Rewrote.
5422 * java/lang/natObject.cc: Rewrote from scratch.
5423 * java/lang/Object.java: Rewrote from scratch.
5425 * java/io/natFile.cc: Conditionally include <dirent.h>.
5426 (list): If no <dirent.h>, always return NULL.
5427 * configure: Rebuilt.
5428 * configure.in: Check for dirent.h.
5430 * prims.cc (lookupArray): Don't use sprintf.
5432 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5439 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5440 name conflict with method.
5442 * include/javaprims.h (java::util): Added HashtableEntry.
5444 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5446 * java/util/Hashtable.java: Rewritten.
5448 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5450 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5454 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5457 * posix-threads.cc (_Jv_CondWait): Now returns int.
5458 * include/javaprims.h (java::lang): Added
5459 IllegalMonitorStateException.
5460 * Makefile.in: Rebuilt.
5461 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5462 * include/no-threads.h (_Jv_CondDestroy): Removed.
5463 (_Jv_MutexDestroy): Removed.
5464 (_Jv_CondWait): Now returns int.
5465 (_Jv_CondNotify): Likewise. Added mutex argument.
5466 (_Jv_CondNotifyAll): Likewise.
5467 (_Jv_MutexLock): Always succeed.
5468 (_Jv_MutexUnlock): Likewise.
5469 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5470 (_Jv_HaveMutexDestroy): Define.
5471 (_Jv_CondNotify): Now returns int. Added mutex argument.
5472 (_Jv_CondNotifyAll): Likewise.
5473 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5474 (_Jv_MutexDestroy): Removed.
5475 (_Jv_CondWait): Now returns int.
5476 (_Jv_CondNotify): Likewise. Added mutex argument.
5477 (_Jv_CondNotifyAll): Likewise.
5478 * java/lang/natObject.cc (finalize_sync_info): New function.
5479 (init_mutex): Initialize `init' and register finalizer if
5482 (init_mutex): Use it.
5484 (notifyAll): Use it.
5486 (notify): Throw IllegalMonitorStateException on failure.
5487 (notifyAll): Likewise.
5488 (wait): Likewise. Also, throw InterruptedException if
5490 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5491 InterruptedException.h, IllegalArgumentException.h.
5492 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5494 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5495 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5496 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5497 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5498 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5499 * quick-threads.cc: Renamed all `JvPriv' functions.
5500 * prims.cc: Renamed all `JvPriv' functions.
5501 * posix-threads.cc: Renamed all `JvPriv' functions.
5502 * nogc.cc: Renamed all `JvPriv' functions.
5503 * no-threads.cc: Renamed all `JvPriv' functions.
5504 * boehm.cc: Renamed all `JvPriv' functions.
5505 * include/quick-threads.h: Renamed all `JvPriv' functions.
5506 * include/posix-threads.h: Renamed all `JvPriv' functions.
5507 * include/no-threads.h: Renamed all `JvPriv' functions.
5508 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5510 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5512 (JvPrivCondNotify): Do nothing.
5513 (JvPrivCondNotifyAll): Do nothing.
5515 * prims.cc (processClass): Handle case where state is
5518 * java/lang/natFirstThread.cc: Include <stdlib.h>
5520 * configure: Rebuilt.
5521 * configure.in: Fixed sense of --enable-libjava-debug.
5523 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5524 it can be used afterward by the assertion.
5526 * configure: Rebuilt.
5527 * configure.in: When cross-compiling, assume alloca.
5529 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5530 __builtin_alloca (autoconf docs are wrong here).
5532 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5534 (available): Use `FD_ZERO' (typo fix).
5536 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5538 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5539 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5541 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5542 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5545 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5547 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5549 * java/lang/natDouble.cc: Declare alloca safely.
5551 * configure, include/config.h.in: Rebuilt.
5552 * configure.in: Add alloca check.
5554 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5556 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5557 condition while calling notify.
5558 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5559 (interrupt): Hold mutex for interrupt condition while calling
5562 * java/lang/natString.cc (init): Allocate and try to read `count'
5563 characters, not `count - offset' characters.
5565 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5566 Correctly compute `count'.
5568 * java/lang/Boolean.java (getBoolean): Return false if property
5571 * java/lang/System.java (setProperties): Set prop_init.
5573 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5575 * java/io/PrintStream.java (println): Use line.separator, not
5577 * java/lang/System.java (out, err): Make both autoflush streams.
5578 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5580 * include/config.h.in: Rebuilt.
5581 * acconfig.h (HAVE_MEMCPY): Removed.
5582 * configure: Rebuilt.
5583 * configure.in: Never define HAVE_MEMCPY.
5585 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5587 (_Jv_AllocString): Use JvAllocObject again.
5588 * java/lang/Class.h (thread): New field.
5589 (_Jv_AllocString): No longer a friend.
5590 * prims.cc (processClass): Removed dead code. Changed to more
5591 closely follow the Java Language Specification.
5592 (processClass): Return early if already at the right state.
5594 * prims.cc (JvNewStringUTF): Removed.
5595 * include/cni.h (JvNewStringUTF): New function.
5596 (_Jv_NewStringUTF): Declare as `extern "C"'.
5597 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5599 * java/lang/natDouble.cc: Added copyright info and header
5600 comment. Include <stdlib.h>.
5601 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5602 bytes as are chars in string.
5604 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5606 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5610 * java/lang/System.java (init_properties): Now native.
5611 * java/lang/natSystem.cc (init_properties): New method.
5612 Include java/util/Properties.h.
5614 * Makefile.in: Rebuilt.
5615 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5616 OutputStreamWriter.h, ByteArrayInputStream.h,
5617 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5618 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5619 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5620 Properties.h, Hashtable.h, Dictionary.h.
5623 * include/javaprims.h (java::io): Added Reader, Writer,
5624 InputStreamReader, OutputStreamWriter,
5625 UnsupportedEncodingException, ByteArrayInputStream,
5626 ByteArrayOutputStream, EOFException, SyncFailedException,
5627 PushbackInputStream.
5628 (java::lang): Added Cloneable.
5629 (java::util): Added NoSuchElementException, VectorEnumeration,
5630 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5632 * java/io/PipedReader.java: New file.
5634 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5636 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5639 * java/io/io-defs.h: Removed.
5641 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5642 (FileInputStream): Use new constructor. Can throw IOException.
5644 * java/lang/System.java (getProperty): Don't throw
5645 NullPointerException.
5647 * java/io/RandomAccessFile.java: Rewrote from scratch.
5649 * java/io/natFileDescriptor.cc: Include EOFException.h.
5651 (length): New method.
5652 (getFilePointer): New method.
5654 (available): New method.
5655 * java/io/FileDescriptor.java (SET, CUR): New constants.
5656 (seek, length, getFilePointer, read, available): New decls.
5658 * java/io/PipedWriter.java: New file.
5659 * java/io/StringWriter.java: New file.
5660 * java/io/CharArrayWriter.java: New file.
5661 * java/io/CharConversionException.java: New file.
5662 * java/io/BufferedWriter.java: New file.
5663 * java/io/FilterWriter.java: New file.
5664 * java/io/FileWriter.java: New file.
5666 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5667 OutputStreamWriter.h, NullPointerException.h,
5668 ByteArrayInputStream.h, InputStreamReader.h.
5669 (getBytes): New method.
5670 (init): Throw NullPointerException.
5671 (init): New function.
5672 * java/lang/String.java (getBytes): Added missing decl.
5673 (getBytes): New method.
5674 (String): Added byte[]-based constructors.
5675 (copyValueOf): Wrote.
5676 (init): Declare variant which takes byte array and encoding.
5677 Import java.io.UnsupportedEncodingException.
5679 * java/io/File.java: Rewrote from scratch.
5680 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5681 * java/io/FileDescriptor.java: Rewrote from scratch.
5682 * java/io/FilenameFilter.java: Rewrote from scratch.
5684 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5686 * java/io/SyncFailedException.java: New file.
5687 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5688 * java/io/InterruptedIOException.java: Rewrote from scratch.
5689 * java/io/FileNotFoundException.java: Rewrote from scratch.
5690 * java/io/EOFException.java: Rewrote from scratch.
5691 * java/io/IOException.java: Rewrote from scratch.
5692 * java/io/PrintStream.java: Rewrote from scratch.
5693 * java/io/DataOutputStream.java: Rewrote from scratch.
5694 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5695 * java/io/FilterOutputStream.java: Rewrote from scratch.
5696 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5697 * java/io/PipedOutputStream.java: Rewrote from scratch.
5698 * java/io/FileOutputStream.java: Rewrote from scratch.
5699 * java/io/OutputStream.java: Rewrote from scratch.
5700 * java/io/DataOutput.java: Rewrote from scratch.
5702 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5704 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5706 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5708 * configure.in: Add --enable-libjava-debug
5710 * Makefile.am (nat_headers): Add java/lang/Float.h and
5713 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5715 * Makefile.in, configure, include/config.h.in: Rebuilt.
5717 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5719 * java/lang/Float.java: Rewritten
5720 * java/lang/Double.java: Rewritten
5721 * java/lang/natFloat.cc: toString() added.
5722 * java/lang/natDouble.cc: toString() added.
5723 * java/lang/natDouble.cc: doubleValueOf() added.
5724 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5725 java/lang/strtod.c: added.
5726 * ieeefp.h: __sparc added.
5727 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5729 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5731 * include/javaprims.h (java::lang): Added
5732 CloneNotSupportedException.
5734 * java/lang/Object.java (clone): No longer native. Implemented.
5735 * java/lang/natObject.cc (clone): Removed.
5737 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5739 * prims.cc: Don't make definitions `extern "C"'.
5740 (_Jv_RegisterClass): Renamed from registerClass.
5741 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5742 (_Jv_NewArray): Likewise.
5743 (_Jv_NewMultiArray): Likewise.
5744 (_Jv_CheckCast): Likewise.
5745 (_Jv_LookupInterfaceMethod): Likewise.
5746 (_Jv_CheckArrayStore): Likewise.
5747 (_Jv_RegisterClass): Likewise.
5749 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5750 * configure: Rebuilt.
5751 * configure.in: Don't check for fmod; it is provided by the fdlibm
5753 * prims.cc (fmod): Removed.
5755 * java/lang/natString.cc (charAt): Use _Jv_uint.
5756 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5757 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5758 (equalUtf8Consts): Likewise.
5759 (internalAddClass): Use _Jv_uint.
5760 (processClass): Likewise.
5761 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5762 (_Jv_uint): Renamed from uint32.
5763 (struct _Jv_Utf8Const): Changed members to use new type names.
5765 * configure: Rebuilt.
5766 * configure.in: Don't check for memcpy. Require memmove and a way
5768 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5770 (currentTimeMillis): Don't use #error.
5772 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5774 * java/lang/Math.java: static member random renamed to random_ to
5775 avoid conflict with member function of the same name.
5776 * include/javaprims.h: java.util.Random added.
5778 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5780 * include/java-chartables.h: Regenerated.
5781 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5784 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5786 * java/lang/Math.java: Rewritten.
5787 * java/lang/natMath.cc: New file.
5788 * Files added from fdlibm:
5789 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5790 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5791 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5792 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5793 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5794 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5795 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5796 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5797 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5798 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5799 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5800 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5801 java/lang/k_cos.c, java/lang/sf_ceil.c,
5802 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5803 java/lang/ieeefp.h, java/lang/fdlibm.h
5804 * Makefile.am: rules added for compiling C files from fdlibm.
5806 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5808 * chartables.pl: Minor documentation fixes.
5810 * configure: Rebuilt.
5811 * configure.in: Fixed --help output for --enable-fast-character.
5813 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5815 * configure: Rebuilt.
5816 * configure.in: Recognize --enable-fast-character.
5817 * acconfig.h (COMPACT_CHARACTER): New define.
5818 * include/config.h.in: Rebuilt.
5819 * include/java-chartables.h: New file.
5820 * Makefile.in: Rebuilt.
5821 * Makefile.am (nat_files): Added natCharacter.o.
5822 * java/lang/natCharacter.cc: New file.
5823 * chartables.pl (set_attribute): New function.
5824 (@attributes, @second_attributes): New globals.
5825 ($ROMAN_START, $ROMAN_END): Likewise.
5826 (process_char): Call set_attribute when required.
5827 (print_char): Just print hex value.
5828 (print_block): Generate C++ syntax.
5829 (print_numerics): Likewise.
5830 (print_single_map): Likewise.
5831 (print_all_block): Likewise.
5832 (print_case_table): Likewise.
5833 (print_fast_tables): New function.
5834 Generate C++ code suitable for a header file.
5835 * java/lang/Character.java (table_search): Removed.
5836 (digit_value): Now native.
5837 (getNumericValue): Likewise.
5838 (getType): Likewise.
5839 Removed all automatically-generated tables.
5840 (Tamil_Digit_One): Removed.
5841 (isSpaceChar): Now native.
5842 (isTitleCase): Likewise.
5843 (isLowerCase): Likewise.
5844 (isUpperCase): Likewise.
5845 (toLowerCase): Likewise.
5846 (toTitleCase): Likewise.
5847 (toUpperCase): Likewise.
5848 (isDefined): Fixed sense of test.
5850 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5852 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5854 (regionMatches): Likewise.
5856 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5858 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5860 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5862 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5865 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5868 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5870 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5872 * prims.cc (instanceof_class): Removed.
5873 (instanceof_array): Likewise.
5874 (instanceof): Likewise.
5875 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5876 (_Jv_CheckCast): Likewise.
5877 * java/lang/natClass.cc (isAssignableFrom): New method.
5878 * java/lang/Class.java (isAssignableFrom): Now native.
5880 * include/cni.h (JvThrow): Use `extern inline'.
5881 (JvAllocObject): Likewise.
5882 (JvInitClass): Likewise.
5884 * java/lang/natSystem.cc (arraycopy): Only check class of source
5887 * prims.cc (_Jv_CheckArrayStore): Wrote.
5888 (_Jv_MonitorEnter): Prefer `JvThrow'.
5889 Include ArrayStoreException.h.
5890 (_Jv_CheckCast): Indentation cleanup.
5892 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5894 * chartables.pl: New file.
5895 * java/lang/Character.java: Rewrote from scratch.
5897 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5899 * java/lang/ArithmeticException.java,
5900 java/lang/ArrayIndexOutOfBoundsException.java,
5901 java/lang/ArrayStoreException.java,
5902 java/lang/ClassCastException.java,
5903 java/lang/ClassNotFoundException.java,
5904 java/lang/CloneNotSupportedException.java,
5905 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5906 java/lang/IllegalArgumentException.java,
5907 java/lang/IllegalMonitorStateException.java,
5908 java/lang/IllegalThreadStateException.java,
5909 java/lang/IndexOutOfBoundsException.java,
5910 java/lang/InstantiationException.java,
5911 java/lang/InterruptedException.java,
5912 java/lang/NegativeArraySizeException.java,
5913 java/lang/NoSuchMethodException.java,
5914 java/lang/NullPointerException.java,
5915 java/lang/NumberFormatException.java,
5916 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5917 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5919 * java/lang/IllegalStateException.java,
5920 java/lang/NoSuchFieldException.java,
5921 java/lang/UnsupportedOperationException.java: Created.
5923 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5925 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5926 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5928 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5930 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5932 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5934 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5936 * Makefile.in: Rebuilt.
5938 * include/javaprims.h (java::lang): Added
5939 StringIndexOutOfBoundsException.
5941 * java/lang/String.java: Added header comment and FIXME comment for
5942 missing constructors/methods.
5943 (endsWith): Adjusted offset into string to look at just the last chars.
5944 Commented out undocumented method.
5946 * java/lang/natString.cc: Added includes for
5947 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5948 (String::init): Throw StringIndexOutOfBoundsException.
5949 (String::charAt): Throw StringIndexOutOfBoundsException.
5950 (String::substring): Throw StringIndexOutOfBoundsException.
5951 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5952 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5953 (String::compareTo): Return difference/offset between chars/strings.
5955 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5957 * java/lang/Boolean.java (TYPE): Added comment.
5959 * java/lang/Byte.java (decode): Added - commented out until dependent
5960 code for Integer is written.
5961 (compareTo): JDK 1.2 methods written.
5962 (hashCode): Added comment to note that values have been verified.
5964 * java/lang/Short.java (decode): Added - commented out until dependent
5965 code for Integer is written.
5966 (compareTo): JDK 1.2 methods written.
5967 (hashCode): Added comment to note that values have been verified.
5969 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5971 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5973 * include/javaprims.h (java::lang): Added VirtualMachineError,
5975 * Makefile.in: Rebuilt.
5976 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5977 VirtualMachineError.h.
5978 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5979 (lookupArray): Likewise.
5980 (makeUtf8Const): Likewise.
5981 (_Jv_AllocObject): Likewise.
5982 (_Jv_NewObjectArray): Likewise.
5983 Include OutOfMemoryError.h.
5985 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5986 to use JvNewStringLatin1.
5988 * java/io/io-defs.h: Include java/lang/IOException.h.
5989 * Makefile.in: Rebuilt.
5990 * Makefile.am (nat_headers): Added
5991 ArrayIndexOutOfBoundsException.h,
5992 ClassFormatError.h,ClassNotFoundException.h,
5993 ClassCircularityError.h, ClassCastException.h,
5994 IncompatibleClassChangeError.h, AbstractMethodError.h,
5995 IllegalAccessError.h, LinkageError.h, Error.h,
5996 NegativeArraySizeException.h, IOException.h.
5997 * include/cni.h (SignalError): Removed declaration.
5998 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5999 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6000 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6001 (newInstance): Likewise.
6002 (forName): Likewise.
6003 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6005 (read): Use JvThrow, not SignalError.
6010 (open_read): Likewise.
6011 (open_write): Likewise.
6014 (newstr): New function.
6015 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6017 (lastModifiedUnchecked): Likewise.
6018 (lengthUnchecked): Likewise.
6019 * include/javaprims.h (sorry): Removed declaration.
6020 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6021 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6022 ClassCastException, IncompatibleClassChangeError,
6023 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6024 * prims.cc (instanceof_array): Use JvFail, not sorry.
6026 Include ArrayIndexOutOfBoundsException.h,
6027 ClassFormatError.h,ClassNotFoundException.h,
6028 ClassCircularityError.h, ClassCastException.h,
6029 IncompatibleClassChangeError.h, AbstractMethodError.h,
6030 IllegalAccessError.h, NegativeArraySizeException.h.
6031 (_Jv_ThrowBadArrayIndex): Implemented.
6032 (JvNewStringUTF): Use JvFail, not sorry.
6033 (_Jv_FindClass): Likewise.
6034 (_Jv_NewArray): Likewise.
6035 (throwException): Removed.
6036 (getClass): Use JvThrow.
6037 (processClass): Likewise.
6038 (_Jv_NewObjectArray): Likewise.
6039 (_Jv_NewMultiArray): Likewise.
6040 (_Jv_CheckCast): Likewise.
6041 (_Jv_LookupInterfaceMethod): Likewise.
6042 (SignalError): Removed.
6043 (getClass): Use _Jv_NewStringUtf8Const to create String.
6045 * java/lang/natSystem.cc (arraycopy): Throw
6046 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6048 * Makefile.in: Rebuilt.
6049 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6051 * include/java-array.h: Mention gcjh, not gjavah.
6053 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6054 (canReadUnchecked): Likewise.
6055 (canWriteUnchecked): Likewise.
6056 (isFileUnchecked): Likewise.
6057 * java/io/natFileDescriptor.cc: Don't include cni.h.
6059 * java/lang/Thread.java (run__): Declare.
6060 * java/lang/natThread.cc (run__): New method, to avoid compiler
6062 (start): Use run__, not run_.
6064 * java/io/io-defs.h: Include cni.h and jvm.h.
6066 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6068 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6069 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6070 to natString.cc (with suitable renaming, inlines etc).
6071 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6072 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6073 * java/lang/String.h: Removed - now generated using gjavah.
6074 * java/lang/String.java: Re-written from scratch. Many native methods.
6075 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6076 * java/lang/natString.cc: Many functions re-written for "compact
6077 strings" representation, or native java.lang.String methods added.
6078 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6079 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6080 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6081 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6082 * include/cni.h: Add inline method.
6083 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6084 * include/javaprims.h: Moved some stuff frm String.h.
6085 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6086 * Makefile.am (nat_header): Added Character.h and String.h.
6087 (String.h): Add new rule.
6089 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6091 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6093 * posix-threads.cc: Include cni.h, jvm.h.
6094 * quick-threads.cc: Include cni.h, jvm.h.
6095 * nogc.cc: Include cni.h, not javaprims.h.
6096 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6097 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6098 include java-assert.h.
6099 * java/lang/natSystem.cc: Include cni.h. Don't include
6101 * java/lang/natRuntime.cc: Include cni.h. Don't include
6103 * prims.cc: Rearranged #include ordering. Don't include
6104 java-array.h or java-assert.h.
6105 * boehm.cc: Include config.h, cni.h.
6106 * exception.cc: Include config.h, cni.h.
6107 * include/jvm.h: Include java-assert.h.
6108 * include/cni.h: Include java/lang/Object.h. Don't include
6109 java-threads.h or java-array.h.
6111 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6113 * java/lang/Boolean.java: Rewritten.
6115 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6117 * java/lang/natFirstThread.cc (main_func): New typedef.
6118 (run): Use main_func, not JvPrivThreadStartFunc.
6119 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6121 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6123 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6126 Can't throw Java exceptions with C++ `throw':
6127 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6128 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6129 (setPriority): Likewise.
6133 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6134 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6136 Can't catch Java exceptions from C++:
6137 * java/lang/natThread.cc (finish_): New method.
6139 * java/lang/Thread.java (run_): Rewrote in Java.
6140 (finish_): New native method.
6142 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6144 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6146 * include/javaprims.h (java::io): Added Serializable.
6148 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6150 * java/util/EmptyStackException.java,
6151 java/util/NoSuchElementException.java: Rewritten.
6153 * java/util/ConcurrentModificationException.java,
6154 java/util/MissingResourceException.java,
6155 java/util/TooManyListenersException.java: Created.
6157 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6159 * include/cni.h (JvThrow): New function.
6160 * include/javaprims.h (_Jv_Throw): Declare.
6162 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6164 * java/util/Observable.java: Rewritten.
6166 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6168 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6169 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6170 Include NullPointerException.h.
6172 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6174 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6175 assignability checks. Don't bother using memcpy.
6177 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6179 * include/quick-threads.h (JvPrivThreadWait): New function.
6180 * include/no-threads.h (JvPrivThreadWait): New function.
6181 * include/posix-threads.h (JvPrivThreadWait): New function.
6182 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6184 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6186 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6187 offsets by size of type that is being copied.
6189 * java/lang/natThread.cc (start): Don't pass `object' argument to
6191 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6192 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6194 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6195 always pass thread as object.
6196 * include/quick-threads.h, include/posix-threads.h,
6197 include/no-threads.h (JvPrivThreadStart): Removed `object'
6200 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6202 * java/util/Dictionary.java: Rewritten.
6204 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6206 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6207 (JvPrivThreadDestroy): Likewise.
6209 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6211 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6213 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6215 * java/lang/natSystem.cc: Rewrote from scratch.
6216 * java/lang/System.java: Rewrote from scratch.
6217 * java/lang/Class.h (Class): Declare isAssignableFrom.
6218 * include/javaprims.h (java::lang): Added ArrayStoreException,
6219 IndexOutOfBoundsException.
6220 * Makefile.in: Rebuilt.
6221 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6222 IndexOutOfBoundsException.h.
6223 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6224 * include/jvm.h (_Jv_HashCode): New function.
6226 * java/lang/natThread.cc (suspend): Call checkAccess.
6228 * java/lang/Thread.java (setDaemon): Call checkAccess.
6230 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6232 * java/lang/Runtime.java: Rewrote from scratch.
6233 * java/lang/natRuntime.cc: Rewrote from scratch.
6235 * nogc.cc (JvPrivGCTotalMemory): New function.
6236 (JvPrivGCFreeMemory): Likewise.
6237 (total): New global.
6238 (JvPrivAllocObj): Increment total.
6239 (JvPrivAllocArray): Likewise.
6240 (JvPrivAllocBytes): Likewise.
6241 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6242 * boehm.cc (JvPrivGCTotalMemory): New function.
6243 (sum_blocks): Likewise.
6244 (JvPrivGCFreeMemory): Likewise.
6246 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6248 * include/javaprims.h (java::lang): Added FirstThread.
6249 * java/lang/natFirstThread.cc: New file.
6250 * java/lang/FirstThread.java: New file.
6251 * prims.cc (main_signature): Removed.
6252 (main_name): Removed.
6253 #include FirstThread.h.
6254 * Makefile.in: Rebuilt.
6255 * Makefile.am (TFRIEND): Removed.
6256 (java/lang/Thread.h): Likewise.
6257 (FTFRIEND): New macro.
6258 (java/lang/FirstThread.h): New target.
6259 (nat_files): Added natFirstThread.o.
6260 (nat_headers): Added FirstThread.h.
6261 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6262 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6264 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6268 * java/lang/natThread.cc (start): Synchronize the thread.
6269 (stop): Synchronize the thread.
6271 * java/lang/ThreadDeath.java: Rewrote from scratch.
6273 * Makefile.in: Rebuilt.
6274 * Makefile.am (TGFRIEND): New macro.
6275 (java/lang/ThreadGroup.h): New target.
6276 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6278 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6280 * nogc.cc: Include config.h.
6282 * java/lang/ThreadGroup.java: Rewrote from scratch.
6284 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6286 * java/lang/Thread.java (checkAccess): Only call in to security
6287 manager if it exists.
6288 (Thread): Don't check access when creating the first thread. Add
6289 this thread to the appropriate ThreadGroup.
6291 * java/lang/natThread.cc (run_): Call uncaughtException method on
6294 * java/lang/Runnable.java: Rewrote from scratch.
6295 * java/lang/Thread.java: Updated copyright comment to correct
6298 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6300 * java/util/Random.java: Rewritten.
6302 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6304 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6305 trailing 0 in array[].
6307 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6309 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6310 and RUNTESTFLAGS from AM_MAKEFLAGS.
6311 (SUBDIRS): Conditionally include testsuite.
6312 * Makefile.in: Rebuilt.
6314 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6316 * java/lang/Object.h: Include java-assert.h.
6318 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6320 * Makefile.am: Add testsuite directory.
6321 * configure.in: Build testsuite/Makefile.
6322 * Makefile.in, configure: Rebuilt.
6324 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6326 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6327 * include/jvm.h (_Jv_StartFirstThread): Declare.
6329 * include/javaprims.h (java::lang): Added Exception,
6332 * Makefile.in: Rebuilt.
6333 * Makefile.am (nat_headers): Added NullPointerException.h,
6334 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6335 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6336 (java/lang/Thread.h): New target.
6337 (TFRIEND): New macro
6339 * include/java-assert.h (JvFail): Use 0 and not NULL.
6341 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6342 instead of assuming we are a friend of Thread.
6343 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6344 instead of assuming we are a friend of Thread.
6346 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6348 * java/lang/natThread.cc: Rewrote from scratch.
6349 * java/lang/Thread.java: Rewrote from scratch.
6350 * prims.cc (JvRunMain): Use new Thread constructor.
6351 * include/javaprims.h (java::lang): Added InterruptedException.
6352 * Makefile.in: Rebuilt.
6353 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6354 * java/lang/Thread.h: Removed.
6355 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6356 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6358 * posix-threads.cc (JvPrivThreadJoin): Removed.
6359 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6360 (really_start): Don't notify join_cond.
6361 (JvPrivThreadStart): Added `data' argument.
6362 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6363 (JvPrivThreadJoin): Likewise.
6364 Use JvFail instead of sorry.
6365 (JvPrivThreadSuspend): Removed.
6366 (JvPrivThreadResume): Removed.
6367 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6368 (JvPrivThreadJoin): Likewise.
6369 (JvPrivThreadSuspend): Use JvFail.
6370 (JvPrivThreadResume): Likewise.
6371 (JvPrivThreadSuspend): Removed.
6372 (JvPrivThreadResume): Likewise.
6373 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6374 (JvPrivThread_t): Removed join_mutex, join_cond.
6375 Use JvFail instead of sorry.
6376 (JvPrivThreadSuspend): Removed.
6377 (JvPrivThreadResume): Likewise.
6379 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6381 * java/util/Observer.java: Rewritten
6382 * java/util/Enumeration.java: Rewritten
6384 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6386 * java/util/StringTokenizer.java: Rewritten
6387 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6388 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6389 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6391 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6393 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6396 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6397 Include java-assert.h.
6398 * include/java-assert.h: New file.
6399 * prims.cc (_Jv_Abort): New function.
6400 Include java-assert.h, not assert.h.
6401 (_Jv_MonitorExit): Use JvAssert.
6402 (resolveConstants): Likewise.
6403 (processClass): Likewise.
6404 (JvRunMain): Assert that method is found.
6406 * configure: Rebuilt.
6407 * configure.in: Check for test subdir.
6408 * Makefile.in: Rebuilt.
6409 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6411 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6412 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6414 * prims.cc (resolveConstants): Removed unused variables.
6415 (processClass): Likewise.
6417 * include/quick-threads.h (JvPrivThreadCurrent): Use
6419 * quick-threads.cc (destroy_data): New function.
6420 (JvPrivInitThreads): Create key.
6421 (JvPrivThreadKey): New global.
6422 (JvPrivThreadStart): Use coop_setspecific.
6424 * include/quick-threads.h, include/posix-threads.h,
6425 include/no-threads.h, no-threads.cc, quick-threads.cc,
6426 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6428 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6430 * include/no-threads.h (JvPrivThreadInitData): Don't set
6433 * include/quick-threads.h (JvPrivCondWait): coop function now
6435 (JvPrivThreadJoin): Likewise.
6437 * java/lang/Thread.h (Thread): Updated declaration of
6439 * include/quick-threads.h, include/posix-threads.h: Updated
6440 declaration of JvPrivThreadStart.
6441 * include/no-threads.h (JvPrivThreadStart): Changed definition
6443 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6444 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6445 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6447 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6449 * quick-threads.cc (qthrow): New function.
6450 (JvPrivInitThreads): New function.
6451 (started): New global.
6452 (JvPrivThreadStart): Call coop_start if required.
6453 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6454 (JvPrivThreadDestroy): Likewise.
6455 (JvPrivInitThreads): Removed.
6456 * include/posix-threads.h (JvPrivThreadCancel): Added error
6458 * java/lang/natThread.cc (stop_): Pass exception to
6461 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6463 * include/javaprims.h (java::lang): Added
6464 IllegalArgumentException, IllegalThreadStateException, Math,
6465 NullPointerException, ThreadDeath.
6466 (java::util): Added Enumeration.
6468 * Makefile.in: Rebuilt.
6469 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6471 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6473 (threadsv): Renamed from threads to avoid clash in C++ header.
6474 (groupsv): Likewise.
6475 * include/no-threads.h (JvPrivThreadStart): Removed.
6476 * no-threads.cc (JvPrivThreadStart): New function.
6477 * java/lang/Thread.java (Thread): New constructor for internal use.
6478 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6479 (Thread): Declare constructor.
6480 * prims.cc (JvRunMain): Create the initial Thread and
6482 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6483 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6484 Removed `daemon' argument.
6486 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6487 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6489 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6491 * Makefile.in: Rebuilt.
6492 * Makefile.am (INCLUDES): Include THREADINCS.
6494 * configure: Rebuilt.
6495 * configure.in: Recognize `qt' as a threads package.
6497 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6499 * java/util/Stack.java (pop): Null out topmost node for robustness.
6501 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6503 * java/util/Stack.java: Rewritten.
6504 * java/util/Vector.java (isEmpty): Simplified expression.
6506 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6508 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6509 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6511 * include/java-array.h (JvNewObjectArray): Created inline to
6514 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6517 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6519 * java/util/Vector.java: Rewritten.
6520 * java/io/Serializable.java: Created.
6522 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6524 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6525 Infinity is 1/0, not 1/1.
6527 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6529 * configure: Rebuilt.
6530 * configure.in: Removed duplicate AC_ARG_WITH.
6532 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6534 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6536 (_Jv_InitClass): Renamed from soft_initialise_class.
6537 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6538 (_Jv_CheckCast): Renamed from soft_checkcast.
6539 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6540 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6541 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6542 * include/cni.h (JvInitClass): New function.
6543 (_Jv_InitClass): Renamed from soft_initialise_class.
6545 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6547 * configure: Rebuilt.
6548 * configure.in (CXX): Don't set.
6549 * Makefile.in: Rebuilt.
6550 * Makefile.am (AM_CXXFLAGS): New macro.
6552 * Makefile.in: Rebuilt.
6553 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6554 nogc.o): New target.
6556 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6558 (mark_array): Likewise.
6560 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6562 * java/lang/Class.h (JvMethod): Removed some unused fields.
6563 (JvField.info): Removed unused idx union variant.
6565 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6567 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6570 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6572 * configure.in, configure (CXX): Add -fvtable-thunks.
6574 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6576 * java/lang/Object.java (finalize): Move first.
6577 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6578 (Object): Re-arrange order to match Object.java.
6580 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6582 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6583 * java/lang/natString.cc (hashChars): Likewise.
6585 * prims.cc (RuntimeClass): New macro.
6586 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6588 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6590 * Makefile.in: Rebuilt.
6591 * Makefile.am (AM_MAKEFLAGS): New macro.
6593 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6595 * nogc.cc: Include <javaprims.h>.
6597 * Makefile.in: Rebuilt.
6598 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6600 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6602 * exception.cc (terminate): Removed.
6603 (unexpected): Removed.
6605 * configure: Rebuilt.
6606 * configure.in: Handle case where target subdir is ".".
6608 * configure: Rebuilt.
6609 * configure.in: Compute COMPPATH based on --with-target-subdir
6610 option. Added --with-target-subdir and --with-cross-host. Use
6611 --with-cross-host to determine when a cross compiler is in use.
6613 * Makefile.in: Rebuilt.
6614 * Makefile.am (GJAVAH): Include COMPPATH.
6615 * configure: Rebuilt.
6616 * configure.in: Subst COMPPATH.
6618 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6620 * prims.cc (lockMutex): Removed.
6621 (unlockMutex): Likewise.
6622 (processClass): Lock the class using a JvSynchronize object.
6624 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6626 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6627 (gc_free_fixed): Removed.
6628 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6629 freeing old value of strhash.
6631 * exception.cc (_Jv_type_matcher): Cast first argument to
6634 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6636 * include/java-array.h (jstringArray): New type.
6637 * java/lang/natSystem.cc (setProperty): Removed.
6638 (initProperties): Directly call JvNewStringLatin1 for arguments.
6639 * java/util/natDate.cc: Include java/util/Date.h, not
6642 * java/io/FileDescriptor.java (available): No longer static.
6643 * java/lang/natDouble.cc (Double): Removed class definition.
6644 * include/javaprims.h (java::lang::Number): Declare.
6645 (java::lang::NumberFormatException): Likewise.
6646 (java::io::FilenameFilter): Likewise.
6647 (java::lang::Character): Likewise.
6648 (java::lang::Error): Likewise.
6649 (java::lang::SecurityManager): Likewise.
6650 (java::util::Vector): Likewise.
6651 (java::io::FileNotFoundException): Likewise.
6652 (java::io::IOException): Likewise.
6653 (java::lang::NativeLang): Likewise.
6654 (java::lang::UnsatisfiedLinkError): Likewise.
6655 (java::util::StringTokenizer): Likewise.
6656 (java::io::InputStream, java::io::OutputStream): Likewise.
6657 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6658 (java::util::Hashtable): Likewise.
6659 * Makefile.in: Rebuilt.
6660 * Makefile.am (nat_headers): Added java/lang/Double.h,
6661 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6662 (MOSTLYCLEANFILES): Added nat_headers.
6663 * include/jvm.h: Moved many defines, declarations, and functions
6664 to java/lang/Class.h.
6665 (struct JvSyncInfo): Moved to java/lang/Object.h.
6666 (UTF8_GET): Moved to java/lang/String.h.
6668 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6670 * java/io/io-defs.h: Don't include java-io.h.
6671 * include/java-io.h: Removed.
6672 * include/javaprims.h: Include java::io.
6674 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6676 * include/java-io.h (File): Removed
6677 (FileDescriptor): Likewise.
6679 * java/io/io-defs.h: Include java/io/File.h and
6680 java/io/FileDescriptor.h.
6682 * Makefile.in: Rebuilt.
6683 * Makefile.am (GJAVAH): New macro.
6684 (.class.h): New rule.
6685 (SUFFIXES): Added .h.
6686 (nat_headers): New macro.
6687 ($(nat_headers)): New target.
6688 (BUILT_SOURCES): Added nat_headers.
6690 * include/java-util.h: Removed.
6692 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6694 * include/java-io.h: Changed to avoid java-lang.h.
6695 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6697 * java/lang/natSystem.cc: Include java/lang/System.h, not
6699 * java/lang/natString.cc: Include java/lang/String.h, not
6701 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6703 * java/lang/natClass.cc: Include java/lang/Class.h, not
6705 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6707 * java/lang/natObject.cc: Include java/lang/Object.h, not
6709 * exception.cc: Don't include java-lang.h.
6710 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6711 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6712 * nogc.cc: Don't include java-lang.h.
6713 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6714 * prims.cc (processClass): Don't use `init_type'; just cast to
6716 Include java/lang/Class.h and jvm.h, not java-lang.h.
6717 (JvAllocObject): Wrote single-argument version.
6718 (PrimClass): Inherit from Class.
6719 (initPrimClass): Removed.
6720 * include/java-lang.h: Removed.
6721 * include/jvm.h: Declare struct _dispatchTable.
6722 * include/cni.h: Don't declare _Jv_MonitorEnter,
6723 _Jv_MonitorExit, struct _dispatchTable.
6724 * include/javaprims.h: Moved all typedefs here, from cni.h.
6725 * java/lang/Class.h: New file.
6726 * include/java-array.h: New file.
6727 * java/lang/Object.h: New file.
6729 * prims.cc (classFromSig): Now static.
6731 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6733 * include/cni.h: Don't mention soft_new.
6734 * include/java-lang.h (Object): Don't mention soft_new. Mention
6735 _Jv_NewPrimArray, not newPrimArray.
6736 * prims.cc (soft_new): Removed.
6737 (_Jv_NewArray): Renamed from soft_newarray.
6738 (soft_anewarray): Use JvNewObjectArray.
6739 (newArray): Likewise.
6740 (newRefArray): Removed.
6741 (_Jv_NewPrimArray): Renamed from newPrimArray.
6742 (equalUtf8Consts): Now static.
6743 (soft_instanceof): Removed.
6744 * java/lang/natDouble.cc (doubleToString): Now static.
6746 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6747 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6750 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6752 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6754 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6756 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6757 (JvPrivMutexUnlock): Likewise.
6758 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6759 Return value now jint.
6760 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6763 * Makefile.in: Rebuilt.
6764 * Makefile.am: Don't allow `jV' names.
6765 (maintainer-check): Depend on libjava.a.
6766 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6768 * Makefile.in: Rebuilt.
6769 * Makefile.am (NM): New macro.
6770 (maintainer-check): New target.
6772 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6774 * configure: Rebuilt.
6775 * configure.in: Use --enable-threads, not --enable-gc. Fix
6776 documentation for --enable-threads. Changed option to work like
6777 identical option in gcc/configure.
6779 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6781 * boehm.cc (mark_array): Use JvGetArrayLength.
6783 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6785 * exception.cc: New file (mostly written by Andrew MacLeod),
6786 exception handling support.
6787 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6788 Remove -fexceptions - it is now the default.
6790 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6791 (JvAllocObject): Renamed to _Jv_AllocObject.
6792 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6793 (loadClass): Renamed to _Jv_FindClass.
6794 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6795 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6796 * include/java-lang.h (JvGetArrayLength): New CNI function.
6797 * include/jvm.h (_Jv_FindClass): Added declaration.
6799 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6801 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6803 * java/lang/natClass.cc (getName): Add implementation.
6804 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6806 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6808 * Makefile.in: Rebuilt.
6809 * Makefile.am (.class.o): Added -fexceptions.
6811 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6813 * configure: Rebuilt.
6814 * configure.in: Don't check for __nanosleep.
6815 * posix-threads.cc (nanosleep): Never define.
6817 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6819 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6822 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6824 * java/lang/natThread.cc (enumerate): Uncommented.
6825 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6826 (interrupt): Call it.
6828 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6830 * configure: Rebuilt.
6831 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6833 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6835 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6836 * include/java-lang.h (Thread): Added `interrupted_' method.
6837 * java/lang/Thread.java (interrupted_): New method.
6838 * java/lang/natThread.cc (join): Possibly throw interrupted
6839 exception after join finishes.
6840 (interrupted_): New method.
6841 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6843 (JvPrivThreadJoin): New function.
6844 (really_start): Notify all threads waiting for this thread.
6845 (struct starter): Added `data' member.
6846 (JvPrivThreadStart): Set it.
6847 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6849 (JvPrivThreadJoin): No longer inline.
6850 (JvPrivThreadInterrupt): New function.
6852 * include/no-threads.h (JvPrivThreadSleep): Removed.
6853 * posix-threads.cc (JvPrivThreadSleep): Removed.
6855 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6857 * configure: Rebuilt.
6858 * configure.in (THREADOBJS): Initialize to no-threads.o in
6860 * posix-threads.cc (key): New global.
6861 (JvPrivInitThreads): New function.
6862 (really_start): Set thread-specific data to point to object.
6863 (JvPrivThreadStart): Added `daemon' argument.
6864 (JvPrivThreadSleep): Added `data' argument.
6865 * include/posix-threads.h (JvPrivInitThreads): Removed
6867 (JvPrivThreadCurrent): New function.
6868 * include/no-threads.h (JvPrivThreadInitData): Initialize
6869 JvPrivOnlyThread. Added `thread' argument.
6870 (JvPrivThreadCurrent): New function.
6871 (JvPrivThreadStart): Added `daemon' argument.
6872 * no-threads.cc: New file.
6873 * java/lang/natThread.cc (init_data): New function.
6875 (start): Set `alive' member.
6876 (stop_): Clear `alive' member.
6877 (destroy): Likewise.
6878 (currentThread): Implemented.
6879 (start): Pass `daemon' argument to JvPrivThreadStart.
6881 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6882 (Thread): Added `init_data' method.
6883 * java/lang/Thread.java (alive, data): New instance variables.
6884 (init_data): New private method.
6885 (isAlive): No longer native.
6887 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6889 * include/java-lang.h (JvRunMain): Declare.
6890 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6891 * prims.cc (JvRunMain): New function.
6892 (main_signature, main_name): New globals.
6894 * boehm.cc (mark_array): Use `elements' function and not
6895 operator[] on jarray.
6897 * posix-threads.cc: Include <config.h>. Define nanosleep if
6900 * configure: Rebuilt.
6901 * configure.in: Check for _nanosleep.
6903 * configure: Rebuilt.
6904 * configure.in: Check for pthread_mutexattr_settype.
6906 * include/cni.h (class JvSynchronize): New class.
6907 * java/lang/Thread.java (sleep): Throws InterruptedException.
6908 (join): Throws InterruptedException.
6909 (resume): Not native.
6910 (resume_): New method.
6911 (start): Now synchronized.
6912 (stop_): New method.
6913 (Thread): Synchronize when accessing threadNumber.
6915 * java/lang/natThread.cc (throwException): New macro.
6916 (sleep): Throw InterruptedException.
6919 * include/java-lang.h (Runtime): Added interrupted().
6921 * boehm.cc (call_finalizer): Correctly initialize jobj.
6922 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6924 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6927 * configure: Rebuilt.
6928 * configure.in: Added support for --disable-threads.
6929 * include/no-threads.h: New file.
6931 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6933 * Makefile.in: Rebuilt.
6934 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6935 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6936 (libjava_a_LIBADD): Added THREADOBJS.
6937 * configure: Rebuilt.
6938 * configure.in: Added --with-threads option.
6939 * posix-threads.cc: New file.
6940 * include/posix-threads.h: New file.
6941 * include/java-lang.h (Object): Added static member sync_mutex,
6942 member sync_info, method init_mutex.
6943 (struct JvSyncInfo): New struct.
6944 Include "java-threads.h".
6945 * prims.cc (soft_monitorenter): Wrote.
6946 (soft_monitorexit): Likewise.
6947 * java/lang/natObject.cc (init_mutex): New method.
6951 (sync_mutex): Define.
6952 Include "java-threads.h".
6954 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6956 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6957 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6959 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6961 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6962 Added extern "Java" in places to tell G++ Object is a "Java" type.
6963 Other minor renaming and fixes.
6964 * include/java-io.h (FileDescriptor): Add friend class declarations.
6965 G++ no longer allows non-Java types in method parameters and results
6966 of Java classes. Converted most offending methods to friends.
6967 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6968 * java/lang/natSystem.cc (setProperty): Make friend.
6969 * java/lang/natString.cc, include/java-lang.h (String): Rename
6970 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6971 * include/java-lang.h (JArray): Remove getData and eoprator[].
6972 Add elements friend function instead.
6973 * java/lang/natSystem.cc (arraycopy): Use elements function.
6974 * java/io/natFileDescriptor.cc (read, write): Likewise.
6975 * include/java-lang.h (Object): Remove unused make method.
6976 (System::setProperty(char*,char*)): Turn into friend function.
6977 (Class): Rename newObject by JvAllocObject.
6978 * prims.cc: Update to use JvAllocObject, and elements.
6980 * java/lang/natDouble.cc: Fix double -> jdouble.
6982 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6984 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6986 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6988 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6989 * include/java-lang.h (Runtime): finalize_on_exit and
6990 runFinalizersOnExit now static.
6991 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6993 (finalize_on_exit): Now static.
6995 * boehm.cc (mark_obj): Get class using getClass() method on
6997 (_dispatchTable): Removed.
6999 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7001 * java/io/natFileDescriptor.cc (open_read): Only call open if
7003 (open_write): Likewise.
7005 * Makefile.in: Rebuilt.
7006 * Makefile.am ($(nat_files)): Depend on config.h.
7008 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7010 * prims.cc (ObjectClass): Now a macro; updated for new class name
7012 (StringClass): Likewise.
7013 (ClassClass): Likewise.
7015 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7017 * java/io/natFileDescriptor.cc (available): Do nothing unless
7018 HAVE_SELECT defined.
7019 * java/util/natDate.cc (setTime): Conditional on
7021 (toString): Conditional on HAVE_TIME.
7022 * aclocal.m4, configure: Rebuilt.
7023 * acinclude.m4: New file.
7024 * configure.in: Don't actually call AM_EXEEXT. Call
7025 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7026 --with-target-subdir option. Check for select and open
7029 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7031 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7032 (call_finalizer): Likewise.
7033 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7034 * prims.cc (newObject): Pass actual method pointer to
7035 JvPrivRegisterFinalizer.
7036 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7037 (JvPrivRegisterFinalizer): Changed interface.
7039 * Makefile.in: Rebuilt.
7040 * Makefile.am (MOSTLYCLEANFILES): New macro.
7041 (CLEANFILES): Removed javao_files.
7043 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7045 * nogc.cc: New file.
7046 * Makefile.in: Rebuilt.
7047 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7048 (EXTRA_libjava_a_SOURCES): New macro.
7049 (libjava_a_SOURCES): Removed boehm.cc.
7050 (libjava_a_DEPENDENCIES): Added GCOBJS.
7051 (libjava_a_LIBADD): Likewise.
7052 * configure: Rebuilt.
7053 * configure.in: Added code for --enable-gc=TYPE.
7055 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7057 * boehm.cc (mark_array): Don't further dereference pointer from
7060 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7061 * Makefile.in: Rebuilt.
7062 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7063 one for boehm-gc build directory.
7065 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7067 * include/java-lang.h (finalize_on_exit): New instance variable in
7068 java::lang::Runtime.
7069 (runFinalizersOnExit): New method.
7070 * java/lang/Runtime.java (finalize_on_exit): New instance
7072 (runAllFinalizers_): New private method.
7073 (runFinalizersOnExit): New method.
7074 * boehm.cc (JvPrivRunFinalizers): New function.
7075 (JvPrivRunAllFinalizers): Likewise.
7076 (JvPrivRunGC): Likewise.
7077 * java/lang/natRuntime.cc: Include "jvm.h".
7078 (gc): Call JvPrivRunGC.
7079 (runFinalization): Call JvPrivRunFinalizers.
7080 (runFinalizersOnExit): New method.
7081 (exit_): Call JvPrivRunAllFinalizers if required.
7082 * include/jvm.h: Declare JvPrivRunFinalizers,
7083 JvPrivRunAllFinalizers, JvPrivRunGC.
7085 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7087 * boehm.cc (JvPrivRegisterFinalizer): New function.
7088 (call_finalizer): Likewise.
7089 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7090 * prims.cc (finalize_name): New global.
7091 (newObject): Just call other newObject.
7092 (newObject): Register finalizer if it exists.
7094 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7096 * prims.cc (gc_malloc): Removed.
7097 (makeUtf8Const): Use JvPrivAllocBytes.
7098 (lookupArray): Likewise.
7099 (newPrimArray): Likewise.
7100 (JvNewObjectArray): Use JvPrivAllocArray.
7101 (newObject): Use JvPrivAllocObj.
7102 (newObject): Likewise.
7103 Changed Method -> JvMethod everywhere.
7104 Changed Field -> JvField everywhere.
7105 * include/java-lang.h (Object): Changed type of `fields' to
7107 (jmethodID, jfieldID): New typedefs.
7108 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7110 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7112 (METHOD_NATIVECODE): Moved from java-lang.h.
7113 (class JvField): New class.
7114 (JvGetFirstInstanceField): New function.
7115 (JvFieldIsRef): Likewise.
7116 (JvGetObjectField): Likewise.
7117 (JvNumInstanceFields): Likewise.
7119 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7121 * boehm.cc: New file.
7122 * Makefile.in: Rebuilt.
7123 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7124 (INCLUDES): Added -I options to find boehm-gc files.
7126 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7128 * configure: Rebuilt.
7129 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7131 * Makefile.in: Rebuilt.
7132 * Makefile.am (nat_files): New macro.
7133 (libjava_a_DEPENDENCIES): Use it.
7134 (libjava_a_LIBADD): Likewise.
7135 ($(nat_files)): New static pattern rule.
7136 (class_files): Run separate find to find .class files.
7137 (javao_files): Compute based on class_files.
7138 (BUILT_SOURCES): New macro.
7140 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7142 * Makefile.am (java_files): New macro.
7143 (class_files): Likewise.
7144 (javao_files): Likewise.
7145 (libjava_a_DEPENDENCIES): Include $(javao_files).
7146 (libjava_a_LIBADD): Likewise.
7147 (classes.stamp): Depend on $(java_files); only recompile changed
7150 (CLEANFILES): Don't run find; use macros. Don't mention
7152 (.class.o): New target.
7153 (compiled.stamp): Removed.
7155 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7157 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7158 LineNumberReader}>java: Newly-implemented standard classes.
7160 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7162 * Makefile.in: Rebuilt.
7163 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7165 * Makefile.in: Rebuilt.
7166 * Makefile.am (hack): New macro.
7167 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7169 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7171 * include/config.h.in: New file.
7172 * include/config.h: Removed.
7173 * acconfig.h: New file.
7174 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7175 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7176 libjava_a_LIBADD): New macros.
7177 (INCLUDES): New macro.
7180 (SUFFIXES): Removed.
7182 (libjava.a): Removed.
7184 * configure: Rebuilt.
7185 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7186 Look for headers and functions we require. Create
7189 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7191 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7192 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7193 soft_lookupinterfacemethod): New functions.
7194 (PrimClass): Actually initialize the primitive classes.
7195 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7197 * include/java-util.h: Removed java::util definition.
7198 * include/cni.h: Moved java::util here and added Properties.
7199 Added more function prototypes.
7200 * include/java-lang.h: Added mroe methods and friend declarations.
7201 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7202 * include/jvm.h (strLengthUtf8): Add declaration.
7204 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7206 * java/lang/{Byte,Short,Void}.java: New classes.
7207 * java/lang/Character.java (isJavaIdentifierStart,
7208 JavaIdentifierPart): New static methods.
7209 * java/lang/Number.java (byteValue, shortValue): New methods.
7211 * java/lang/String.java (intern, hashCode): Make native.
7212 * java/lang/natString.cc: New file. Handle the string pool.
7213 * Makefile.am: Build natString.o. Use CXXFLAGS.
7215 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7216 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7217 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7218 * java/lang/System.java (setProperty): New private method.
7219 (initProperties): Take argument, and make native.
7220 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7221 (currentTimeMillis): Make more robust.
7223 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7224 * java/io/UnsupportedEncodingException.java: New exception class.
7226 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7227 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7229 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7231 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7232 * prims.cc: Added bunch of stuff.
7233 * include/cni.h: Added various definitions.
7234 * include/java-lang.h: Added Method, various friends, some macros.
7236 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7237 * java/lang/System.java (arraycopy): Make native.
7239 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7241 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7242 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7243 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7244 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7246 * java/lang/Runtime.java: Declare methods as native instead of
7248 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7249 * java/lang/System.java: Comment out some stuff, for now.
7250 * java/lang/Thread.java: Re-write. Use native methods.
7251 * java/lang/NativeLang.java: Remove most of it.
7253 * java/util/natDate.cc: Native (C++) methods for Date.
7254 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7255 * java/util/Date.java: Complete re-write.
7257 * java/io/io-defs.h: New header file.
7258 * java/io/FileDescriptor.java: Add a bunch of private methods,
7259 mostly moved from NativeIO.java and natNativeIO.cc.
7260 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7261 * java/io/File.java: Use new code.
7262 * java/io/{FileInputStream.java.FileOutputStream.java,
7263 RandomAccessFile.java}: Use new private FileDescriptor methods.
7264 * java/io/NativeIO.java: Removed, no longer used.
7266 * java/io/StreamTokenizer.java (numericChars): Make char array.
7268 * include/*.h: Various header files used by the C++ native code.
7270 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7271 New autoconf+automake-based setup.
7272 * prims.cc: New file for Java "primitives".